/* Slate appearance tokens. Loaded after the surface stylesheet. */
:root {
  color-scheme: light;
  --pale: #eaf0f8;
  --strong-line: #a5b6cc;
  --surface: #ffffff;
  --control-line: #8290a3;
  --subtle: #f5f7fa;
  --action-ink: #ffffff;
  --action-hover: #27476d;
  --danger: #9a3636;
  --warning: #805419;
  --switch-off: #68778b;
  --switch-thumb: #ffffff;
  --scrim: rgb(17 24 35 / .45);
  --shadow: rgb(17 24 35 / .12);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #161c26;
  --surface: #1b2330;
  --control-line: #687f9e;
  --ink: #e4eaf3;
  --muted: #acb8c9;
  --line: #48586e;
  --accent: #9fc3f3;
  --pale: #253349;
  --strong-line: #687f9e;
  --subtle: #222c3b;
  --action-ink: #162235;
  --action-hover: #b8d3f7;
  --danger: #ffaaaa;
  --warning: #eac084;
  --switch-off: #68778b;
  --switch-thumb: #162235;
  --scrim: rgb(0 0 0 / .6);
  --shadow: rgb(0 0 0 / .3);
}
.appearance-control { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; color: var(--muted); flex: none; }
.appearance-control select { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--control-line); border-radius: 3px; padding: 7px; min-height: 36px; max-width: 100%; cursor: pointer; }
input:not([type=hidden]), select, textarea, button { border-color: var(--control-line); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
.btn-primary { border-color: var(--accent); }
.app-header .lane > .appearance-control { margin-left: auto; }
@media (max-width: 650px) {
  .appearance-control { gap: 5px; font-size: 11px; }
  .appearance-control select { min-height: 40px; padding-inline: 5px; }
}
@media print {
  :root[data-theme] { color-scheme: light; --paper: #fff; --surface: #fff; --ink: #252e3c; --muted: #606c7d; --line: #d5dce6; --accent: #345b89; --pale: #eaf0f8; --strong-line: #a5b6cc; }
  .appearance-control { display: none; }
}
