/* Controls are screen-only; printed forms retain the established light palette. */
@media screen {
 :root[data-theme="light"] { color-scheme: light; }
 :root[data-theme="dark"] {
  color-scheme: dark;
  --md-primary:#a8c7fa; --md-on-primary:#062e6f;
  --md-primary-container:#243f63; --md-on-primary-container:#d3e3fd;
  --md-surface:#12161c; --md-container:#242b35; --md-card:#1c222b;
  --md-ink:#e6e9ee; --md-secondary:#bdc5d1; --md-outline:#8b96a5;
  --md-divider:#414b59; --md-hover:#2b3542;
  --green:var(--md-primary); --ink:var(--md-ink); --muted:var(--md-secondary);
  --line:var(--md-divider); --paper:var(--md-surface); --orange:#ffb68f;
  background:var(--md-surface);
 }
 body>header .appearance-control { grid-column:1/-1; grid-row:auto; justify-self:end; display:flex; align-items:center; gap:8px; margin:0; color:var(--md-secondary); font-size:12px; font-weight:500; }
 body>header .appearance-control select { width:auto; min-height:44px; margin:0; padding:8px 30px 8px 12px; font-size:13px; border:1px solid var(--md-divider); border-radius:12px; background:var(--md-card); color:var(--md-ink); }
 body>header .appearance-control>span:first-child { font-size:20px; }
 :root[data-theme="dark"] body { background:var(--md-surface); color:var(--md-ink); }
 :root[data-theme="dark"] button:disabled { background:#303844; color:#b4bdc8; }
 :root[data-theme="dark"] input::placeholder,:root[data-theme="dark"] textarea::placeholder { color:#a4aebc; }
 :root[data-theme="dark"] .admin-sidebar .admin-nav-group a.selected { color:var(--md-on-primary-container); }
 :root[data-theme="dark"] .admin-settings-card { background:var(--md-card); border-color:var(--md-divider); }
 :root[data-theme="dark"] .admin-settings-card p { color:var(--md-secondary); }
 :root[data-theme="dark"] .admin-settings-card-icon { background:var(--md-primary-container); color:var(--md-primary); }
 :root[data-theme="dark"] .admin-settings-actions a { color:var(--md-primary); }
 :root[data-theme="dark"] .admin-settings-actions a:hover { background:var(--md-hover); }
}
@media print {
 .appearance-control { display:none!important; }
 :root { color-scheme:light; }
 body { background:#fff!important; }
}
