/* Light mode follows the spreader's white surfaces and warm neutral borders.
   The existing console overlay is enabled only by data-theme="dark". */
html { color-scheme:light; }
html[data-theme="dark"]:has(body.console) { color-scheme:dark; }
html:not([data-theme="dark"]) body.console {
  --bg:#fff; --card:#fff; --sunken:#faf9f5; --band:#f1efe8;
  --line:#d8d5cc; --line-soft:#eceae3; --ink:#1a1a18; --td:#3a3a36; --muted:#5f5e58;
  --blue:#314ed0; --cyan:#314ed0; --cyan-t:#2843b0; --green:#286315;
  --amber:#805600; --amber-t:#805600; --red:#a61c00; --red-t:#a61c00;
  --violet:#6544a0; --off:#5f5e58;
  --fill-ok:#e7f3e2; --fill-warn:#fff3d6; --fill-danger:#fdecec;
  --fill-info:#eef4fb; --fill-violet:#f0eafa; --fill-neutral:#f1efe8;
  background:var(--bg); color:var(--ink);
}
html:not([data-theme="dark"]) body.console header {
  background:#faf9f5; color:#1a1a18; border-bottom:1px solid #d8d5cc;
}
/* Newer dashboard pages were authored dark-first. */
html:not([data-theme="dark"]) body[data-dashboard] td { color:var(--td); border-color:var(--line-soft); }
html:not([data-theme="dark"]) body[data-dashboard] th { background:var(--sunken); border-color:var(--line); }
html:not([data-theme="dark"]) body[data-dashboard] .privacy { background:var(--fill-info); color:#1c4d7c; border-color:#b9cfe8; }
html:not([data-theme="dark"]) body[data-dashboard] .status.ready { background:var(--fill-ok); border-color:#a6c799; }
html:not([data-theme="dark"]) body[data-dashboard] .status.draft-only,
html:not([data-theme="dark"]) body[data-dashboard] .status.shell { background:var(--fill-warn); border-color:#d6bd7a; }
html:not([data-theme="dark"]) body[data-dashboard] .status.setup-required,
html:not([data-theme="dark"]) body[data-dashboard] .status.source-pending,
html:not([data-theme="dark"]) body[data-dashboard] #error { background:var(--fill-danger); color:var(--red); border-color:#dbb0a9; }
html:not([data-theme="dark"]) body[data-dashboard] button,
html:not([data-theme="dark"]) body[data-dashboard] input,
html:not([data-theme="dark"]) body[data-dashboard] select { background:#fff; color:var(--ink); border:1px solid var(--line); }
html:not([data-theme="dark"]) .rpo-schedule .area-terminal { background:#e7f3e2 !important; color:#286315 !important; }
html:not([data-theme="dark"]) .rpo-schedule .area-tower { background:#e3efff !important; color:#234d79 !important; }
html:not([data-theme="dark"]) .rpo-schedule .area-enroute { background:#fff3d6 !important; color:#805600 !important; }
body .rq-nav .rq-theme-switch {
  display:inline-flex; align-items:center; justify-content:center; flex-shrink:0;
  min-height:36px; padding:6px 10px; margin-left:6px; border:1px solid #d8d5cc;
  border-radius:8px; background:#fff; color:#3a3a36; font:500 12px 'Lexend',system-ui,sans-serif;
  cursor:pointer; white-space:nowrap;
}
body .rq-nav .rq-theme-switch:hover { background:#f1efe8; }
html[data-theme="dark"] body .rq-nav .rq-theme-switch { background:#0e1a24; color:#7fe9f5; border-color:#367281; }
body .rq-nav .rq-theme-switch:focus-visible { outline:2px solid #314ed0; outline-offset:3px; }
@media print { .rq-theme-switch { display:none !important; } }
