/* Mission Control (Control Loop v3).
   Layout: status bar on top; desktop = left rail + task table + detail pane;
   tablet/phone (<1000px) = bottom tab bar, detail opens as a full-screen sheet;
   phone (<760px) = task table becomes cards. */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --rule: #e5e7eb;
  --rule-strong: #d1d5db;
  --accent: #2563eb;
  --accent-ink: #ffffff;
  --accent-soft: #e8efff;
  --ok: #15803d;
  --ok-soft: #e7f6ec;
  --warn: #b45309;
  --warn-soft: #fdf3e2;
  --bad: #b91c1c;
  --bad-soft: #fdecec;
  --idle: #6b7280;
  --idle-soft: #eef0f3;
  --violet: #7c3aed;
  --violet-soft: #f1e9ff;
  --teal: #0e7490;
  --teal-soft: #e0f5f7;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.06), 0 1px 1px rgba(17, 24, 39, 0.04);
  --shadow-lg: 0 16px 40px rgba(17, 24, 39, 0.18);
  --radius: 10px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --bar-h: 56px;
  --tab-h: 60px;
  --narrate-dock-pad: 120px;
  --narrate-bg: var(--surface);
  --narrate-fg: var(--ink);
  --narrate-muted: var(--muted);
  --narrate-accent: var(--accent);
  --narrate-border: var(--rule);
  --narrate-danger: var(--bad);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --surface: #151b23;
    --surface-2: #1b222c;
    --ink: #e6edf3;
    --ink-2: #c3ccd6;
    --muted: #8b96a3;
    --rule: #262e39;
    --rule-strong: #333d4a;
    --accent: #6ea0ff;
    --accent-ink: #0d1117;
    --accent-soft: #18233a;
    --ok: #4ade80;
    --ok-soft: #10261a;
    --warn: #fbbf24;
    --warn-soft: #2a2110;
    --bad: #f87171;
    --bad-soft: #2c1414;
    --idle: #8b96a3;
    --idle-soft: #1f2630;
    --violet: #b794f6;
    --violet-soft: #241a3a;
    --teal: #5ec8d8;
    --teal-soft: #0f2a2e;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); font-size: 12px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.spacer { flex: 1; }
.nowrap { white-space: nowrap; }
