/* Private interfaces share the public preset; no auth/layout selectors are replaced. */
html[data-account-surface]{--account-danger:#90263c;--account-danger-bg:#fff0f2;--account-success:#1b6c3d;--account-success-bg:#e8f7ee}
html[data-account-surface][data-theme="4"],html[data-account-surface][data-theme="6"]{--account-danger:#ffb4bc;--account-danger-bg:#45252b;--account-success:#a5dfb8;--account-success-bg:#193b2b}
html[data-account-surface] body{--bg:var(--vt-bg);--panel:var(--vt-panel);--panel-alt:var(--vt-soft);--text:var(--vt-ink);--muted:var(--vt-muted);--line:var(--vt-line);--navy:var(--vt-ink);--gold:var(--vt-accent);--blue:var(--vt-accent);--radius:var(--vt-radius);background:var(--vt-bg)!important;color:var(--vt-ink)!important;color-scheme:light}
html[data-account-surface][data-theme="4"] body,html[data-account-surface][data-theme="6"] body{color-scheme:dark}
html[data-account-surface] :is(input,select,textarea){background:var(--vt-bg)!important;color:var(--vt-ink)!important;border-color:var(--vt-line)!important}
html[data-account-surface] :is(input,textarea)::placeholder{color:var(--vt-muted);opacity:1}
html[data-account-surface] input:autofill{box-shadow:0 0 0 1000px var(--vt-bg) inset!important;-webkit-text-fill-color:var(--vt-ink)!important;caret-color:var(--vt-ink)}
html[data-account-surface] input:-webkit-autofill{box-shadow:0 0 0 1000px var(--vt-bg) inset!important;-webkit-text-fill-color:var(--vt-ink)!important;caret-color:var(--vt-ink)}
html[data-account-surface] :focus-visible{outline:2px solid var(--vt-accent);outline-offset:3px}
html[data-account-surface="login"] .card{background:var(--vt-panel)!important;color:var(--vt-ink);border:1px solid var(--vt-line);border-radius:var(--vt-radius);box-shadow:var(--vt-shadow)}
html[data-account-surface="login"] .card :is(h1,label){color:var(--vt-ink)}
html[data-account-surface="login"] .card :is(p,.meta){color:var(--vt-muted)}
html[data-account-surface="login"] .card a{color:var(--vt-accent)!important}
html[data-account-surface="login"] .chip{background:var(--vt-soft)!important;color:var(--vt-ink)!important;border-color:var(--vt-line)!important}
html[data-account-surface="login"] .actions .btn.dark{background:var(--vt-soft)!important;color:var(--vt-ink)!important;border:1px solid var(--vt-line)}
html[data-account-surface="login"] .card button{background:var(--vt-accent)!important;color:var(--vt-bg)!important;border:1px solid var(--vt-accent);border-radius:var(--vt-radius)}
html[data-account-surface] :is(.notice,.flash-info,.user-dashboard__flash-info){background:var(--vt-soft)!important;color:var(--vt-ink)!important;border-color:var(--vt-line)!important}
html[data-account-surface] :is(.error,.flash-error,.user-dashboard__flash-error){background:var(--account-danger-bg)!important;color:var(--account-danger)!important}
html[data-account-surface] :is(.flash-success,.user-dashboard__flash-success){background:var(--account-success-bg)!important;color:var(--account-success)!important}
html[data-account-surface="admin"] :is(.sidebar,.panel,.stat,.dashboard-summary-card,.dashboard-canvas-wrap){background:var(--vt-panel)!important;color:var(--vt-ink);border:1px solid var(--vt-line);border-radius:var(--vt-radius)}
html[data-account-surface="admin"] :is(.brand,.nav-group,.sidebar-meta,.dashboard-radio-set,.dashboard-demographic-meta,.dashboard-chart-legend .item,.bar-track){background:var(--vt-soft)!important;color:var(--vt-ink)!important;border-color:var(--vt-line)}
html[data-account-surface="admin"] .sidebar a{color:var(--vt-ink);background:transparent}
html[data-account-surface="admin"] .nav-group :is(a.active,a:hover){background:var(--vt-panel);color:var(--vt-accent)}
html[data-account-surface="admin"] :is(.brand-sub,.nav-group h3,.eyebrow,.muted,.stat h2){color:var(--vt-muted)!important}
html[data-account-surface="admin"] :is(.title-wrap h1,.num,.dashboard-summary-card .value,.dashboard-radio-set label,.dashboard-demographic-meta){color:var(--vt-ink)!important}
html[data-account-surface="admin"] .btn-navy{background:var(--vt-ink);color:var(--vt-bg)}
html[data-account-surface="admin"] .btn-gold{background:var(--vt-accent);color:var(--vt-bg)}
html[data-account-surface="admin"] .btn-red{background:#a5263b;color:#fff}
html[data-account-surface="admin"] .btn-green{background:#176d40;color:#fff}
html[data-account-surface="admin"] :is(td,th){border-color:var(--vt-line)}
html[data-account-surface="admin"] th{color:var(--vt-muted);background:var(--vt-soft)}
html[data-account-surface="admin"] .bar-fill{background:var(--vt-accent)}
html[data-account-surface="admin"] :is(.btn,.nav-group,.sidebar-meta,.dashboard-radio-set){border-radius:var(--vt-radius)}
html[data-account-surface="admin"] .stat::after{background:var(--vt-soft)}
html[data-account-surface="admin"] .pill{background:var(--vt-soft);color:var(--vt-ink)}
html[data-account-surface="admin"] .ok{background:var(--account-success-bg);color:var(--account-success)}
html[data-account-surface="admin"] .bad{background:var(--account-danger-bg);color:var(--account-danger)}
html[data-account-surface="admin"] .warn{background:var(--vt-soft);color:var(--vt-ink)}
html[data-account-surface="dashboard"] :is(.user-dashboard__panel,.user-dashboard__stat){background:var(--vt-panel);border-color:var(--vt-line);border-radius:var(--vt-radius)}
html[data-account-surface="dashboard"] .user-dashboard__pill{background:var(--vt-soft);color:var(--vt-ink)}
html[data-account-surface="dashboard"] :is(.user-dashboard td,.user-dashboard th){border-color:var(--vt-line)}
html[data-account-surface="dashboard"] .user-dashboard__grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr))}
html[data-account-surface="dashboard"] .user-dashboard__content,html[data-account-surface="dashboard"] .user-dashboard__grid>*{min-width:0}
html[data-account-surface="admin"] :is(.sidebar .brand-title,.sidebar .brand h2){color:var(--vt-ink)}
@media(prefers-reduced-motion:no-preference){html[data-account-surface] :is(body,.card,.panel,.sidebar,.user-dashboard__panel){transition:background-color .2s,color .2s,border-color .2s}}
