/*
  Shared by the wall (index.html) and settings.html.

  Provisional tokens — no design system exists for this project yet (L0).
  Neutral, untinted greys so the surround doesn't bias colour judgement.
  Yellow is reserved for "this is the feed you're hearing" (console SOLO/PFL convention).
*/
:root {
  color-scheme: dark;
  --bg: #0b0b0c;
  --panel: #151517;
  --panel-2: #1e1e21;
  --line: #2b2b2f;
  --text: #ececee;
  --dim: #9a9aa1;
  --faint: #66666d;
  --black: #000;

  --audio: #ffc400;
  --on-audio: #161200;
  --ok: #3ad483;
  --bad: #ff5b54;
  --idle: #b4b4bb;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;

  --bar-h: 44px;
  --radius: 4px;

  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", ui-monospace, "SF Mono", Consolas, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 13px/1.4 var(--font);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 3px;
  background: var(--panel-2);
  color: var(--text);
  font: 700 11px/1 var(--mono);
}

/* ---------- Top bar ---------- */
.bar {
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 0 var(--space-3);
  border-bottom: 1px solid var(--line);
}
/* Only elements marked .shrink may shrink; everything else keeps its size. */
.bar > * { flex: none; }
.bar > .shrink { flex: 0 1 auto; min-width: 0; }

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand svg { width: 16px; height: 16px; }

.clock {
  font: 600 15px/1 var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  padding-left: var(--space-3);
  border-left: 1px solid var(--line);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 28px;
  padding: 0 var(--space-2) 0 var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--panel-2); }
.btn kbd { height: 18px; min-width: 18px; font-size: 10px; }
.btn svg { width: 14px; height: 14px; flex: none; }
.btn.plain { padding: 0 var(--space-3); }
.btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600; padding: 0 var(--space-4); }
.btn.primary:hover { background: #fff; }
.btn[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn[aria-pressed="true"] kbd { background: var(--bg); border-color: var(--bg); color: var(--text); }

/* ---------- Text inputs ---------- */
.field {
  width: 100%;
  height: 36px;
  padding: 0 var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.field::placeholder { color: var(--faint); }
.field[aria-invalid="true"] { border-color: var(--bad); }

[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
