/* Blackened Silver: shared by the local app and remote dashboard. */
:root {
  color-scheme: light dark;
  --theme-page: light-dark(#dfe3e7,#121416);
  --theme-surface: light-dark(#f5f7f9,#1e2125);
  --theme-surface-raised: light-dark(#e9edf1,#292e34);
  --theme-input: light-dark(#f9fafb,#191c20);
  --theme-header: #22272e;
  --theme-header-ink: #f1f4f7;
  --theme-header-muted: #cad2db;
  --theme-ink: light-dark(#171c22,#f3f4f6);
  --theme-muted: light-dark(#3c4853,#b5bfc8);
  --theme-soft: light-dark(#4b5865,#a3b0bc);
  --theme-line: light-dark(#b4bdc7,#48515b);
  --theme-accent: light-dark(#263744,#c9d5e0);
  --theme-accent-ink: light-dark(#f6f8fa,#1b222b);
  --theme-accent-hover: light-dark(#354b5f,#e0e7ef);
  --theme-accent-pale: light-dark(#cbd4dd,#38434d);
  --theme-success: light-dark(#315c4f,#a9d8c2);
  --theme-success-pale: light-dark(#e1eee8,#263d33);
  --theme-warning: light-dark(#704318,#ffd49f);
  --theme-warning-pale: light-dark(#f9ead3,#463323);
  --theme-danger: light-dark(#902c34,#f6a9af);
  --theme-danger-pale: light-dark(#f4e1e4,#452a30);
  --theme-focus: light-dark(#285c86,#acd3fa);
  --theme-shadow: 0 3px 13px #00000020;
}

body { background: var(--theme-page); color: var(--theme-ink); }
::selection { background: var(--theme-accent); color: var(--theme-accent-ink); }
button, input, select, textarea, progress { accent-color: var(--theme-accent); }
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--theme-focus);
  outline-offset: 3px;
}
input::placeholder, textarea::placeholder { color: var(--theme-soft); opacity: 1; }
input:disabled, select:disabled, textarea:disabled { -webkit-text-fill-color: var(--theme-muted); }
