/* ========================================================================== 
   GEO-UX-109 — Theme switcher and final visual convergence
   ========================================================================== */
.ui-092 {
    transition: background-color .16s ease, color .16s ease;
}
.ui-092 .panel,
.ui-092 .step-card,
.ui-092 :where(.article-row,.review-card,.project-kpi-grid article,.content-gap-kpis-v108 article) {
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.ui-092 .topbar { background:color-mix(in srgb, var(--ui-surface) 95%, transparent); }
.ui-092 .panel { background:var(--ui-surface); border-color:var(--ui-border); }
.ui-092 .btn.primary { border-color:var(--ui-brand); background:var(--ui-brand); }
.ui-092 .btn.primary:hover { border-color:var(--ui-brand-hover); background:var(--ui-brand-hover); }
.ui-092 .btn.secondary { color:var(--ui-brand); }
.ui-092 .text-link,
.ui-092 .eyebrow { color:var(--ui-brand); }
.ui-092 .count-chip { color:var(--ui-brand); background:var(--ui-brand-soft); }

/* Theme selector lives in the existing account dropdown to avoid topbar clutter. */
.ui-092 .top-user-dropdown { width: 284px; }
.ui-092 .theme-menu-block-v109 {
    margin: 6px 0 0;
    padding: 10px 10px 9px;
    border-top: 1px solid var(--ui-border);
}
.ui-092 .theme-menu-head-v109 {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:9px;
}
.ui-092 .theme-menu-head-v109 strong { font-size:12px; }
.ui-092 .theme-menu-head-v109 small { color:var(--ui-muted); font-size:10px; }
.ui-092 .theme-options-v109 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
.ui-092 .top-user-dropdown .theme-option-v109 {
    min-width:0;
    min-height:52px;
    display:grid;
    justify-items:center;
    align-content:center;
    gap:5px;
    padding:7px 5px;
    border:1px solid var(--ui-border);
    border-radius:10px;
    color:var(--ui-text-2);
    background:var(--ui-surface-subtle);
    font-size:10px;
    font-weight:650;
    text-align:center;
    cursor:pointer;
    color:var(--ui-text-2);
    text-align:center;
    font-size:10px;
    font-weight:650;
}

.ui-092 .top-user-dropdown .theme-option-v109:hover { border-color:var(--ui-border-strong); background:var(--ui-surface-hover); }
.ui-092 .top-user-dropdown .theme-option-v109[aria-pressed="true"] {
    border-color:var(--ui-brand);
    color:var(--ui-brand);
    background:var(--ui-brand-soft);
    box-shadow:0 0 0 2px color-mix(in srgb, var(--ui-brand) 10%, transparent);
}
.ui-092 .theme-swatches-v109 { display:flex; gap:3px; }
.ui-092 .theme-swatches-v109 i { width:10px; height:10px; border-radius:50%; box-shadow:inset 0 0 0 1px rgba(15,23,42,.08); }
.ui-092 .top-user-dropdown .theme-option-v109[data-theme-option="classic"] i:nth-child(1){background:#2563d9}.ui-092 .top-user-dropdown .theme-option-v109[data-theme-option="classic"] i:nth-child(2){background:#121d2e}.ui-092 .top-user-dropdown .theme-option-v109[data-theme-option="classic"] i:nth-child(3){background:#f5f7fa}
.ui-092 .top-user-dropdown .theme-option-v109[data-theme-option="mint"] i:nth-child(1){background:#0f7c72}.ui-092 .top-user-dropdown .theme-option-v109[data-theme-option="mint"] i:nth-child(2){background:#132724}.ui-092 .top-user-dropdown .theme-option-v109[data-theme-option="mint"] i:nth-child(3){background:#f3f8f7}
.ui-092 .top-user-dropdown .theme-option-v109[data-theme-option="slate"] i:nth-child(1){background:#526d94}.ui-092 .top-user-dropdown .theme-option-v109[data-theme-option="slate"] i:nth-child(2){background:#17212e}.ui-092 .top-user-dropdown .theme-option-v109[data-theme-option="slate"] i:nth-child(3){background:#f4f6f8}
.ui-092 .top-user-dropdown form { margin-top:0; }
.ui-092 .top-user-dropdown form button { color:var(--ui-danger); }

/* Additional polish after geometry normalization. */
.ui-092.page-project-detail .project-detail-hero,
.ui-092.page-content-gaps .content-gap-hero-v88 { background:linear-gradient(135deg,var(--ui-surface) 0%,var(--ui-surface-subtle) 100%); }
.ui-092.page-project-detail .project-kpi-grid article,
.ui-092.page-content-gaps .content-gap-kpis-v108 article,
.ui-092.page-content .article-row-v83,
.ui-092.page-review .review-card { background:var(--ui-surface); }
.ui-092.page-content .article-row-v83:hover,
.ui-092.page-review .review-card:hover { border-color:var(--ui-border-strong); }
.ui-092.page-settings .settings-group { background:var(--ui-surface-subtle); }
.ui-092.page-review .review-warning,
.ui-092.page-content .inline-warning { box-shadow:none; }

@media (max-width: 640px) {
    .ui-092 .top-user-dropdown { width:min(284px,calc(100vw - 24px)); }
}
@media (prefers-reduced-motion: reduce) {
    .ui-092,
    .ui-092 .panel,
    .ui-092 .step-card { transition:none; }
}
