:root {
  --theme-bg:#06101f; --theme-panel:#0a1d35; --theme-panel-2:#08172b;
  --theme-text:#f5faff; --theme-muted:#b0c4de; --theme-border:rgba(176,196,222,.18);
  --input-bg:#0a1d35;
}
html[data-theme="light"] {
  --theme-bg:#f3f8fc; --theme-panel:#ffffff; --theme-panel-2:#eaf3f9;
  --theme-text:#10243a; --theme-muted:#52677c; --theme-border:rgba(36,83,118,.22);
  --input-bg:#f8fbfd;
}
.appearance-control { position:fixed; z-index:10000; right:16px; bottom:16px; display:flex; align-items:center; gap:7px; padding:8px 10px; border:1px solid var(--theme-border); border-radius:999px; background:color-mix(in srgb,var(--theme-panel) 92%,transparent); color:var(--theme-text); box-shadow:0 10px 30px rgba(0,0,0,.18); backdrop-filter:blur(14px); font:600 13px/1 system-ui,sans-serif; }
.appearance-control select { width:auto!important; min-width:74px; border:0!important; padding:3px 18px 3px 3px!important; background:transparent!important; color:inherit!important; font:inherit; }
.appearance-control option { background:var(--theme-panel); color:var(--theme-text); }
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
html[data-theme="light"] body { background-color:var(--theme-bg)!important; color:var(--theme-text)!important; }
html[data-theme="light"] body:before { opacity:.35; }
html[data-theme="light"] .sidebar, html[data-theme="light"] .side-nav, html[data-theme="light"] .top-nav,
html[data-theme="light"] .public-nav { background-color:var(--theme-panel)!important; color:var(--theme-text)!important; border-color:var(--theme-border)!important; }
html[data-theme="light"] .card, html[data-theme="light"] .metric, html[data-theme="light"] .settings-panel,
html[data-theme="light"] .auth-card, html[data-theme="light"] .glass-card, html[data-theme="light"] .panel,
html[data-theme="light"] .modal-content, html[data-theme="light"] .dashboard-card { background:var(--theme-panel)!important; color:var(--theme-text)!important; border-color:var(--theme-border)!important; box-shadow:0 14px 34px rgba(19,52,78,.09)!important; }
html[data-theme="light"] h1, html[data-theme="light"] h2, html[data-theme="light"] h3,
html[data-theme="light"] strong, html[data-theme="light"] td { color:var(--theme-text)!important; }
html[data-theme="light"] p, html[data-theme="light"] small, html[data-theme="light"] .subtitle,
html[data-theme="light"] .muted { color:var(--theme-muted)!important; }
/* These Aurora surfaces intentionally stay dark in Light mode. Keep their
   foreground tokens on the matching light-on-dark palette. */
html[data-theme="light"] :is(.welcome-window, .public-package-card, .feature-card, .support-card, .download-note, .release-card, .tutorial-step, .mode-card, .pricing-builder) :is(h1, h2, h3, strong) {
  color:#f5faff!important;
}
html[data-theme="light"] :is(.welcome-window, .public-package-card, .feature-card, .support-card, .download-note, .release-card, .tutorial-step, .mode-card, .pricing-builder) :is(p, small, .subtitle, .muted) {
  color:#b0c4de!important;
}
html[data-theme="light"] :is(.welcome-window, .public-package-card, .feature-card, .support-card, .download-note, .release-card, .tutorial-step, .mode-card, .pricing-builder) a:not(.btn):not(.primary-button) {
  color:#65dcff;
}
html[data-theme="light"] input, html[data-theme="light"] select, html[data-theme="light"] textarea {
  background:var(--input-bg)!important; color:var(--theme-text)!important; border-color:var(--theme-border)!important;
}
html[data-theme="light"] th { background:var(--theme-panel-2)!important; color:var(--theme-muted)!important; }
html[data-theme="light"] td { border-color:var(--theme-border)!important; }
html[data-theme="light"] a:not(.btn):not(.primary-button) { color:#075d83; }
.admin-notice { margin:0 0 16px; padding:12px 14px; border-radius:10px; border:1px solid; font-weight:700; }
.admin-notice.success { color:#087f5b; background:rgba(0,255,198,.10); border-color:rgba(0,255,198,.35); }
.admin-notice.error { color:#dc3545; background:rgba(239,68,68,.10); border-color:rgba(239,68,68,.35); }
.create-user-grid { display:grid; grid-template-columns:repeat(2,minmax(220px,1fr)); gap:14px; }
.create-user-grid label { display:grid; gap:6px; color:var(--theme-muted); font-weight:700; }
.create-user-grid .create-user-attestation { display:flex; align-items:center; gap:8px; }
.create-user-grid .create-user-attestation input { width:auto; }
@media (max-width:700px) { .create-user-grid { grid-template-columns:1fr; } .appearance-control { right:10px; bottom:10px; } }
