/* SOL150: dashboard shortcut, using the existing theme palette and writer. */
html[data-panel-theme] .ff-panel .ff-greeting { display:flex;justify-content:space-between;align-items:center;gap:24px;position:relative;z-index:5; }
html[data-panel-theme] .ff-panel .ff-greeting-copy { min-width:0; }
.ff-panel .ff-quick-theme { position:relative;flex:0 0 auto;max-width:280px;min-width:180px;text-align:right; }
.ff-panel .ff-quick-theme-trigger { display:inline-flex;align-items:center;justify-content:flex-end;gap:12px;max-width:100%;min-height:48px;padding:5px 7px;border:1px solid transparent;border-radius:8px;color:var(--ff-gold);background:transparent;cursor:pointer; }
.ff-panel .ff-quick-theme-trigger:hover,
.ff-panel .ff-quick-theme-trigger[aria-expanded="true"] { background:var(--ff-card);border-color:var(--ff-line); }
.ff-panel .ff-quick-theme-caption { display:none; }
.ff-panel .ff-quick-theme-name { font:italic 43px/1.2 var(--ff-serif); }
.ff-panel .ff-quick-theme-trigger>svg { flex:none;transition:transform .15s; }
.ff-panel .ff-quick-theme-trigger[aria-expanded="true"]>svg { transform:rotate(180deg); }
.ff-panel .ff-quick-theme-trigger:focus-visible,
.ff-panel .ff-quick-theme-option:focus-visible,
.ff-panel .ff-quick-theme-retry:focus-visible { outline:2px solid var(--ff-gold);outline-offset:3px; }
.ff-panel .ff-quick-theme-popover { position:absolute;z-index:30;top:calc(100% + 8px);right:0;width:258px;max-width:calc(100vw - 40px);max-height:min(440px,60dvh);overflow-y:auto;overscroll-behavior:contain;padding:9px;border:1px solid var(--ff-line);border-radius:12px;background:var(--ff-card);color:var(--ff-ink);box-shadow:0 16px 36px #0004;text-align:left; }
html[data-panel-theme] .ff-panel .ff-greeting .ff-quick-theme-heading { font:12px/1.4 var(--ff-sans);letter-spacing:0;margin:5px 9px 9px;color:var(--ff-muted); }
.ff-panel .ff-quick-theme-option { width:100%;min-height:46px;display:flex;align-items:center;gap:12px;padding:9px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--ff-ink);font:15px/1.3 var(--ff-sans);text-align:left;cursor:pointer; }
.ff-panel .ff-quick-theme-option:hover,
.ff-panel .ff-quick-theme-option[aria-checked="true"] { border-color:var(--ff-line);background:var(--ff-bg); }
.ff-panel .ff-quick-theme-check { margin-left:auto;color:var(--ff-gold); }
.ff-panel .ff-quick-theme-swatch { width:30px;height:26px;flex:none;border-radius:5px;border:1px solid #8887;background:linear-gradient(135deg,#141311 60%,#d4bc83 61%); }
.ff-panel .ff-quick-theme-option--mechanika .ff-quick-theme-swatch { background:linear-gradient(135deg,#272b2a 60%,#cda56b 61%); }
.ff-panel .ff-quick-theme-option--editorial .ff-quick-theme-swatch { background:linear-gradient(135deg,#f5efe5 60%,#793548 61%); }
.ff-panel .ff-quick-theme-option--kobalt .ff-quick-theme-swatch { background:linear-gradient(135deg,#fffdf7 60%,#234b99 61%); }
.ff-panel .ff-quick-theme-option--riviera .ff-quick-theme-swatch { background:linear-gradient(135deg,#f8f0e5 60%,#a7431d 61%); }
.ff-panel .ff-quick-theme-status { font:12px/1.45 var(--ff-sans);color:var(--ff-muted);max-width:280px;margin:5px 7px 0; }
.ff-panel .ff-quick-theme-status[data-theme-save-state="idle"] { margin:0; }
.ff-panel .ff-quick-theme-status[data-theme-save-state="error"] { color:var(--ff-ink); }
.ff-panel .ff-quick-theme-retry { display:block;margin:7px 0 0 auto;min-height:36px;background:var(--ff-card);color:var(--ff-gold);border:1px solid var(--ff-line);border-radius:6px;padding:6px 10px;font:12px/1.4 var(--ff-sans);cursor:pointer; }
html[data-panel-theme="kobalt"] .ff-panel .ff-quick-theme-name { font:700 29px/1.3 var(--ff-sans);letter-spacing:-.02em; }
@media(max-width:700px) {
 html[data-panel-theme] .ff-panel .ff-greeting { flex-direction:column;align-items:stretch;gap:15px; }
 .ff-panel .ff-quick-theme { align-self:flex-end;max-width:100%;min-width:0; }
 .ff-panel .ff-quick-theme-trigger { min-height:44px;padding:7px 10px;border-color:var(--ff-line);background:var(--ff-card);gap:9px; }
 .ff-panel .ff-quick-theme-caption { display:inline;font:12px/1.4 var(--ff-sans);color:var(--ff-muted); }
 html[data-panel-theme] .ff-panel .ff-quick-theme-name { font-size:22px; }
 html[data-panel-theme="kobalt"] .ff-panel .ff-quick-theme-name { font-size:18px; }
 .ff-panel .ff-quick-theme-popover { max-width:calc(100vw - 40px); }
 .ff-panel .ff-quick-theme-status { max-width:280px; }
}
@media(prefers-reduced-motion:reduce) { .ff-panel .ff-quick-theme-trigger>svg { transition:none; } }

/* SOL158: an empty success notice must not leave a separate blank row. */
.ff-panel .ff-quick-theme-status[data-theme-save-notice="empty"] { margin:0; }

.ff-panel .ff-quick-theme-popover[data-placement="above"] { top:auto;bottom:calc(100% + 8px); }
