/* V14: anchored search/name field and two explicit actions. */
.gc-favorites-editor{position:fixed;inset:auto;margin:0;width:560px;max-width:calc(100vw - 32px);padding:12px;border:1px solid #cddedb;border-radius:12px;background:#fff;color:#102d38;box-shadow:0 16px 48px #102d3826;z-index:100;font:14px/1.5 'Segoe UI',Arial,sans-serif;box-sizing:border-box;overflow:visible}
.gc-favorites-editor *{box-sizing:border-box}.named-form{display:flex;align-items:center;gap:8px;margin:0;min-width:0}.named-field{position:relative;min-width:0;flex:1}.named-field>.category-picker{margin:0;width:100%}.named-field input{width:100%;min-width:0;height:44px;min-height:44px;margin:0;padding:8px 52px 8px 12px;border:1px solid #b9d7c9;border-radius:8px;background:#fff;color:#102d38;font:16px/24px 'Segoe UI',Arial,sans-serif}
.named-action,.named-mode{display:grid;place-items:center;flex-shrink:0;width:44px;min-width:44px;height:44px;min-height:44px;margin:0;padding:12px;border:0;border-radius:8px;background:transparent;color:#526d7b;cursor:pointer}.named-action svg,.named-mode svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.named-action:hover,.named-mode:hover{background:#f1f7f7}.named-action[data-named-done]:not(:disabled){background:#e8f7f5;color:#087960}.named-action:disabled{opacity:.4;cursor:default}
.gc-favorites-editor :focus-visible{outline:3px solid #087960;outline-offset:3px}.gc-favorites-editor .has-mode input{padding-left:44px}.named-mode{position:absolute;left:0;top:0;z-index:2}.gc-favorites-editor[data-mode=name] input{border-color:#087960;background:#f6fbfa}.gc-favorites-editor [data-named-message]{margin:8px 0 0;font-size:12px;color:#9b342b;overflow-wrap:anywhere}.gc-favorites-editor [hidden]{display:none!important}

.gc-favorite-button{display:inline-grid;place-items:center;min-width:44px;width:44px;min-height:44px;height:44px;padding:10px;flex-shrink:0}.gc-favorite-button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.gc-favorite-button.is-saved svg{fill:#edb12e;stroke:#8d6507}
@media(max-width:600px){.gc-favorites-editor{width:calc(100vw - 16px);max-width:calc(100vw - 16px);padding:8px}.gc-favorites-editor .category-picker-toggle{width:44px}.gc-favorites-editor .named-field input{padding-right:44px}}

.gc-journal-favorite-row{display:flex;align-items:flex-start;gap:8px;min-width:0}.gc-journal-favorite-row>.search-shell{min-width:0;flex:1}.gc-journal-favorite-row>.gc-favorite-button{margin:0;width:var(--journal-control-height,42px);min-width:var(--journal-control-height,42px);height:var(--journal-control-height,42px);min-height:var(--journal-control-height,42px);border:0;color:#526d7b;background:transparent}.gc-journal-favorite-row>.gc-favorite-button:hover{background:#e8f7f5}
.gc-favorites-editor .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
