
/*
  Industrial (style C). Dieter Rams / Teenage Engineering hardware panels.
  Light = matte grey ABS chassis with a signal-orange accent. Dark = black anodised aluminium.
  Light comes from the top left everywhere: highlights top/left, shadows bottom/right.
  Elevation: well (recessed) < chassis < panel (raised) < key (floating control).
  Signal orange is kept for "waits on you" / current focus only. Status = LEDs (green ok, red fault).
  Always on: the web app ships Industrial only.
*/

/* ---------- Tokens: shared ---------- */
html {
  --font-strip: "Inter", system-ui, sans-serif;
  --font-text: "Inter", system-ui, sans-serif;
  --font-num: "JetBrains Mono", ui-monospace, monospace;
  --radius-cell: 8px;
  --radius-control: 8px;
  --radius-panel: 16px;
  --ease-out: cubic-bezier(0.175, 0.885, 0.32, 1.275); /* spring-loaded switch overshoot */
  --dur-fast: 150ms;
  --dur-mid: 250ms;

  --raise-sm: 3px 3px 6px var(--sh-d), -3px -3px 6px var(--sh-l);
  --raise: 6px 6px 12px var(--sh-d), -6px -6px 12px var(--sh-l);
  --raise-lg: 10px 10px 20px var(--sh-d), -10px -10px 20px var(--sh-l), inset 1px 1px 0 var(--rim);
  --press: inset 4px 4px 8px var(--sh-d), inset -4px -4px 8px var(--sh-l);
  --press-sm: inset 2px 2px 4px var(--sh-d), inset -2px -2px 4px var(--sh-l);
  --shadow-float: var(--raise-lg);
  --emboss: 0 1px 0 var(--sh-l);
  --screws:
    radial-gradient(circle at 38% 36%, var(--screw-hi) 0 0.8px, var(--screw) 1.3px 2.6px, transparent 3.2px) left 7px top 7px / 8px 8px no-repeat,
    radial-gradient(circle at 38% 36%, var(--screw-hi) 0 0.8px, var(--screw) 1.3px 2.6px, transparent 3.2px) right 7px top 7px / 8px 8px no-repeat,
    radial-gradient(circle at 38% 36%, var(--screw-hi) 0 0.8px, var(--screw) 1.3px 2.6px, transparent 3.2px) left 7px bottom 7px / 8px 8px no-repeat,
    radial-gradient(circle at 38% 36%, var(--screw-hi) 0 0.8px, var(--screw) 1.3px 2.6px, transparent 3.2px) right 7px bottom 7px / 8px 8px no-repeat;
}

/* ---------- Tokens: light (grey ABS chassis) ---------- */
html {
  color-scheme: light;
  --paper: #e0e5ec;
  --surface: #e6eaf1;
  --sunk: #d1d9e6;
  --ink: #2d3436;
  --ink-2: #3d4856;
  --ink-3: #4a5568;
  --rule: #c3cbd9;
  --rule-strong: #a3b1c6;
  --amber: #ea580c;
  --amber-soft: #f6d9c4;
  --amber-ink: #a73f06;
  --on-amber: #1a1008;
  --ok: #166534;
  --ok-soft: #cfe6d7;
  --fault: #b91c1c;
  --fault-soft: #f1d4d1;
  --focus: #1d4ed8;
  --orb-core: #ffc095;
  --sh-d: #babecc;
  --sh-l: #ffffff;
  --rim: rgba(255, 255, 255, 0.55);
  --screw: rgba(55, 65, 85, 0.5);
  --screw-hi: rgba(255, 255, 255, 0.95);
  --sheen: rgba(255, 255, 255, 0.4);
  --glow: rgba(255, 255, 255, 0.55);
  --screen: #2d3436;
  --screen-ink: #f0f2f5;
  --screen-ink-2: #b4bfd8;
  --led-ok: #22c55e;
  --led-fault: #ef4444;
  --led-off: #8a95a8;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Tokens: dark (black anodised) ---------- */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #1c1e22;
    --surface: #23262b;
    --sunk: #131417;
    --ink: #e6e9ee;
    --ink-2: #b9c0cb;
    --ink-3: #9ba3b0;
    --rule: #32363d;
    --rule-strong: #4b525d;
    --amber: #ff6a1a;
    --amber-soft: #43230f;
    --amber-ink: #ff8c4d;
    --on-amber: #1a1008;
    --ok: #4ade80;
    --ok-soft: #12331f;
    --fault: #f87171;
    --fault-soft: #3b1a1a;
    --focus: #7cb4ff;
    --orb-core: #ffb98a;
    --sh-d: #0a0b0d;
    --sh-l: #2e3238;
    --rim: rgba(255, 255, 255, 0.07);
    --screw: #0a0b0d;
    --screw-hi: rgba(255, 255, 255, 0.2);
    --sheen: rgba(255, 255, 255, 0.035);
    --glow: rgba(255, 255, 255, 0.05);
    --screen: #0a0b0d;
    --screen-ink: #eef1f6;
    --screen-ink-2: #aab4cc;
    --led-ok: #4ade80;
    --led-fault: #f87171;
    --led-off: #5a6270;
    --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }
}
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1c1e22;
  --surface: #23262b;
  --sunk: #131417;
  --ink: #e6e9ee;
  --ink-2: #b9c0cb;
  --ink-3: #9ba3b0;
  --rule: #32363d;
  --rule-strong: #4b525d;
  --amber: #ff6a1a;
  --amber-soft: #43230f;
  --amber-ink: #ff8c4d;
  --on-amber: #1a1008;
  --ok: #4ade80;
  --ok-soft: #12331f;
  --fault: #f87171;
  --fault-soft: #3b1a1a;
  --focus: #7cb4ff;
  --orb-core: #ffb98a;
  --sh-d: #0a0b0d;
  --sh-l: #2e3238;
  --rim: rgba(255, 255, 255, 0.07);
  --screw: #0a0b0d;
  --screw-hi: rgba(255, 255, 255, 0.2);
  --sheen: rgba(255, 255, 255, 0.035);
  --glow: rgba(255, 255, 255, 0.05);
  --screen: #0a0b0d;
  --screen-ink: #eef1f6;
  --screen-ink-2: #aab4cc;
  --led-ok: #4ade80;
  --led-fault: #f87171;
  --led-off: #5a6270;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
html body {
  /* Matte plastic: fractal noise plus a soft hot spot top left (skeuomorphic, per spec: chassis material). */
  background: var(--noise), radial-gradient(1100px 700px at 0% 0%, var(--glow), transparent 65%), var(--paper);
  background-attachment: scroll, fixed, scroll;
  font-weight: 400;
}
html :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
html ::placeholder { color: var(--ink-3); opacity: 1; }
html .num { letter-spacing: -0.01em; }

/* ---------- Console bar (base plate) ---------- */
html .console {
  background: var(--screws), var(--surface);
  border-bottom: 0;
  box-shadow: 0 6px 14px var(--sh-d), inset 0 -1px 0 var(--rim), inset 0 1px 0 var(--rim);
  padding: 8px 32px;
}
html .wordmark { font: 800 22px/1 var(--font-strip); letter-spacing: -0.04em; text-shadow: var(--emboss); }
html .wordmark span { color: var(--ink-3); }
html .boards { gap: 8px; }
html .board-tab {
  min-height: 44px; padding: 0 14px; border: 0; border-radius: var(--radius-control);
  background: var(--surface); box-shadow: var(--raise-sm);
  font: 700 12px/1 var(--font-strip); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2);
  transition: box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), color var(--dur-fast);
}
html .board-tab kbd { font: 500 10px/1 var(--font-num); color: var(--ink-3); letter-spacing: 0; }
html .board-tab:hover { background: var(--surface); color: var(--ink); }
html .board-tab:active { background: var(--surface); transform: translateY(2px); box-shadow: var(--press-sm); }
html .board-tab[aria-current="page"] { background: var(--sunk); border: 0; color: var(--ink); box-shadow: var(--press-sm); }
html .board-tab[aria-current="page"]::after {
  width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 8px 2px color-mix(in oklab, var(--amber) 70%, transparent);
}
html .collector { font: 500 11px/1.2 var(--font-num); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
html .collector .dot {
  width: 10px; height: 10px; background: var(--led-ok); margin-right: 8px;
  box-shadow: 0 0 8px 2px color-mix(in oklab, var(--led-ok) 65%, transparent), inset 1px 1px 1px rgba(255,255,255,0.6);
  animation: ind-pulse 3s ease-in-out infinite;
}
@keyframes ind-pulse { 50% { opacity: 0.55; } }

/* ---------- Buttons: physical keys ---------- */
html .btn {
  min-height: 44px; padding: 0 18px; border: 1px solid var(--rim); border-radius: var(--radius-control);
  background: var(--surface); box-shadow: var(--raise-sm);
  font: 700 12px/1 var(--font-strip); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink);
  transition: box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), color var(--dur-fast);
}
html .btn:hover { background: var(--surface); border-color: var(--rim); color: var(--ink); box-shadow: var(--raise); }
html .btn:active { transform: translateY(2px); box-shadow: var(--press-sm); }
html .btn:disabled { box-shadow: var(--raise-sm); }
html .btn[data-state="error"] { border-color: var(--fault); color: var(--fault); }
html .btn[data-state="success"] { border-color: var(--ok); color: var(--ok); }
html .btn--primary { background: var(--ink); color: var(--paper); border-color: var(--rim); box-shadow: var(--raise-sm), inset 1px 1px 0 rgba(255,255,255,0.18); }
html .btn--primary:hover { background: var(--ink-2); color: var(--paper); border-color: var(--rim); }
html .btn--quiet { border-color: transparent; background: none; box-shadow: none; color: var(--ink-2); }
html .btn--quiet:hover { background: none; color: var(--ink); box-shadow: var(--press-sm); }

/* ---------- Page frame ---------- */
html main { padding: 32px; }
html .board-head h1 { font: 800 40px/1.05 var(--font-strip); letter-spacing: -0.03em; text-shadow: var(--emboss); }
html .board-head p { color: var(--ink-2); }
html .section-title { font: 700 22px/1.2 var(--font-strip); letter-spacing: -0.02em; align-items: center; text-shadow: var(--emboss); }
html .section-title::after {
  content: ""; flex: 1 1 24px; height: 4px; border-radius: 2px; background: var(--sunk);
  box-shadow: inset 1px 1px 2px var(--sh-d), inset -1px -1px 1px var(--sh-l);
}
html .section-title .num { font-weight: 500; font-size: 13px; color: var(--ink-3); order: 1; }
html .section-title .num ~ * { order: 2; }
html .section-note { color: var(--ink-2); font-size: 13px; }

/* ---------- Today ---------- */
html .need {
  background: var(--surface); border: 0; border-left: 6px solid var(--amber); border-radius: 12px;
  box-shadow: var(--raise-sm), -3px 0 10px -2px color-mix(in oklab, var(--amber) 45%, transparent);
  padding: 12px 18px;
}
html .need + .need { margin-top: 12px; }
html .need__kind { font: 700 12px/1.2 var(--font-num); letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber-ink); }
html .need__kind small { font: 400 12px/1.3 var(--font-text); letter-spacing: 0; text-transform: none; color: var(--ink-3); }
html .need__since { color: var(--ink-3); font: 500 11px/1.3 var(--font-num); }

html .moved {
  border: 0; border-radius: 16px; padding: 4px 18px 8px; background: var(--sunk); box-shadow: var(--press);
}
html .moved li { border-bottom: 1px solid var(--rule); }
html .moved li:last-child { border-bottom: 0; }
html .moved .tag { font: 700 11px/1.2 var(--font-num); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); }
html .moved .when { color: var(--ink-3); }
html .moved .day { font: 700 11px/1 var(--font-num); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--rule-strong); }
html .cmd { background: var(--paper); box-shadow: var(--press-sm); border-radius: 4px; padding: 1px 6px; }

html .panel, html .message, html fieldset {
  background: var(--screws), linear-gradient(145deg, var(--sheen), transparent 45%), var(--surface);
  border: 0; border-radius: var(--radius-panel); box-shadow: var(--raise);
  position: relative;
}
html .panel { padding: 22px 22px; }
html .panel h2 { font: 700 17px/1.2 var(--font-strip); letter-spacing: -0.01em; text-shadow: var(--emboss); margin-bottom: 10px; }
html .panel h2 a, html .linkish { font: 700 11px/1 var(--font-num); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
html .glance li { border-top: 1px solid var(--rule); padding: 8px 0; }
html .state { font: 600 12px/1.2 var(--font-num); letter-spacing: 0.04em; text-transform: uppercase; gap: 8px; }
html .state::before {
  width: 10px; height: 10px; background: var(--led-off); flex: none;
  box-shadow: inset 1px 1px 2px rgba(0,0,0,0.35);
}
html .state--ok::before { background: var(--led-ok); box-shadow: 0 0 8px 2px color-mix(in oklab, var(--led-ok) 60%, transparent), inset 1px 1px 1px rgba(255,255,255,0.6); }
html .state--fault::before { background: var(--led-fault); box-shadow: 0 0 8px 2px color-mix(in oklab, var(--led-fault) 60%, transparent), inset 1px 1px 1px rgba(255,255,255,0.5); }
html .state--off::before { background: var(--sunk); border: 0; box-shadow: inset 1px 1px 2px var(--sh-d), 0 0 0 1px var(--led-off); }

html .capture label { font: 700 17px/1.2 var(--font-strip); letter-spacing: -0.01em; text-shadow: var(--emboss); }
html .capture textarea, html .search, html .field select, html .field input, html .comment-form textarea, html select.input, html .va-form input, html .field--block input{
  border: 0; background: var(--paper); box-shadow: var(--press); border-radius: var(--radius-control);
  font-family: var(--font-num); font-size: 13px; color: var(--ink);
  transition: box-shadow var(--dur-fast);
}
html .capture textarea:hover, html .search:hover, html .field select:hover, html .field input:hover, html .comment-form textarea:hover, html .va-form input:hover, html .field--block input:hover{ box-shadow: var(--press); }
html .capture textarea:focus-visible, html .search:focus-visible, html .field select:focus-visible, html .field input:focus-visible, html .comment-form textarea:focus-visible, html select.input:focus-visible, html .va-form input:focus-visible, html .field--block input:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px;
}
html .capture textarea[aria-invalid="true"], html .comment-form textarea[aria-invalid="true"] { box-shadow: var(--press), 0 0 0 2px var(--fault); }
html .capture .hint, html .hint, html .empty-inline { color: var(--ink-2); }
html .field { font: 700 11px/1.2 var(--font-num); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
html .field select, html .field input { font-size: 13px; text-transform: none; letter-spacing: 0; }

/* ---------- Strips: hardware modules ---------- */
html .strip-board { gap: 14px; }
html .strip-head { background: transparent; top: 60px; padding-top: 8px; padding-bottom: 6px; }
html .strip-head::before { content: ""; position: absolute; inset: 0 0 0 0; z-index: -1; background: var(--paper); border-radius: 0 0 12px 12px; }
html .strip-head .cell { font: 700 10.5px/1 var(--font-num); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); padding: 4px 8px; min-height: 0; border-right: 0; }
html .strip-head { padding-left: 5px; }
html .strip-head .track { margin: 0 10px; }
html .strip {
  background: linear-gradient(145deg, var(--sheen), transparent 50%), var(--surface);
  border: 0; border-left: 5px solid var(--rule-strong); border-radius: 14px;
  box-shadow: var(--raise-sm);
  transition: box-shadow var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out);
}
html .strip:hover { background: linear-gradient(145deg, var(--sheen), transparent 50%), var(--surface); border-color: var(--rule-strong); box-shadow: var(--raise); transform: translateY(-1px); }
html .strip:active { background: var(--surface); box-shadow: var(--press-sm); transform: translateY(1px); }
html .strip--waits { border-left-color: var(--amber); box-shadow: var(--raise-sm), -3px 0 10px -2px color-mix(in oklab, var(--amber) 50%, transparent); }
html .strip--waits:hover { border-left-color: var(--amber); }
html .strip--fault { border-left-color: var(--led-fault); box-shadow: var(--raise-sm), -3px 0 10px -2px color-mix(in oklab, var(--led-fault) 50%, transparent); }
html .strip--done { border-left-color: var(--led-ok); }
html .strip--row:hover { background: linear-gradient(145deg, var(--sheen), transparent 50%), var(--surface); box-shadow: var(--raise-sm); transform: none; }

html .strip__id { padding: 12px 16px; border-right: 1px solid var(--rule); }
html .strip__id strong { font: 700 16px/1.2 var(--font-strip); letter-spacing: -0.01em; text-shadow: var(--emboss); }
html .strip__id small { font: 500 11px/1.4 var(--font-num); color: var(--ink-3); }
html .strip__meta { padding: 12px 16px; border-left: 1px solid var(--rule); font-size: 12px; color: var(--ink-2); }
html .strip__meta .next { font-size: 13px; font-weight: 500; }

html .strip > .track {
  margin: 8px 10px; border-radius: 10px; background: var(--sunk); box-shadow: var(--press-sm);
}
html .cell {
  min-height: 56px; border-right: 1px solid var(--rule);
  font: 700 11px/1.2 var(--font-num); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3);
}
html .cell .sub { font: 400 12px/1.3 var(--font-text); letter-spacing: 0; text-transform: none; margin-top: 4px; }
html .cell--done { color: var(--ink-2); }
html .cell--done .lbl::before { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2); box-shadow: inset 1px 1px 1px rgba(255,255,255,0.4); vertical-align: 0; }
/* The "now" cell is a lit screen: dark glass with a lit rim, so it reads as the active window of the strip. */
html .cell--now {
  margin: 3px; padding: 5px; border-right: 0; border-radius: 8px;
  background: var(--screen); color: var(--screen-ink); font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14), 0 2px 5px var(--sh-d);
}
html .cell--now .sub { color: var(--screen-ink-2); }
html .strip--waits .cell--now {
  background: var(--amber); color: var(--on-amber); box-shadow: inset 1px 1px 0 rgba(255,255,255,0.35), 0 0 14px color-mix(in oklab, var(--amber) 55%, transparent);
}
html .strip--waits .cell--now .sub { color: var(--on-amber); }
html .cell--verdict-ok, html .cell--verdict-no, html .cell--verdict-park { margin: 3px; padding: 5px; border-radius: 8px; border-right: 0; box-shadow: var(--raise-sm); }
html .cell--verdict-park { background: var(--surface); }
html .cell--skip { color: var(--ink-3); }
/* A stage the project has been through before (live while a new version is in progress): lighter ink, never reduced opacity, so the label keeps AA contrast. */
html .cell--was-live, html .cell--was-live .sub { color: var(--ink-2); opacity: 1; }
html .segs i { border-radius: 2px; }
html .segs i.on { box-shadow: 0 0 4px currentColor; }

html .toolbar { gap: 12px; margin-bottom: 20px; }
html .seg-control { border: 0; border-radius: 12px; background: var(--sunk); box-shadow: var(--press); padding: 4px; gap: 4px; overflow: visible; }
html .seg-control button { border-radius: 8px; background: transparent; font: 700 12px/1 var(--font-strip); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); min-height: 44px; transition: box-shadow var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
html .seg-control button + button { border-left: 0; }
html .seg-control button:hover { background: var(--surface); box-shadow: var(--raise-sm); color: var(--ink); }
html .seg-control button[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: var(--press-sm), inset 0 0 0 1px rgba(255,255,255,0.1); }
html .seg-control .count { font-family: var(--font-num); font-size: 11px; opacity: 1; }
html .search { min-height: 44px; padding: 0 16px; }

html .empty { border: 0; border-radius: 16px; background: var(--sunk); box-shadow: var(--press); color: var(--ink-2); }

/* Bots + servers */
html .kv > div { border-right: 1px solid var(--rule); }
html .kv dt { font: 700 10.5px/1 var(--font-num); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
html .kv dd { font-size: 14px; }
html .week i { border-radius: 2px; }
html .week i.up { background: var(--led-ok); }
html .week i.down { background: var(--led-fault); }
html .pos { color: var(--ok); font-weight: 500; }
html .neg { color: var(--fault); font-weight: 500; }
html .row-error { border-top: 1px solid var(--rule); font-weight: 500; }

/* Claude board: the readout strip is the one dark LED display (spec: stats strip). */
html .facts {
  border: 0; border-radius: 16px; position: relative; overflow: hidden;
  background: linear-gradient(rgba(18,16,16,0) 50%, rgba(0,0,0,0.28) 50%) 0 0 / 100% 4px, var(--screen); /* CRT scanlines, spec */
  box-shadow: var(--press), inset 0 0 0 1px rgba(255,255,255,0.08);
}
html .facts > div { border-right: 1px solid rgba(255,255,255,0.14); padding: 16px 24px; }
html .facts b { font: 500 28px/1.1 var(--font-num); color: var(--screen-ink); text-shadow: 0 0 10px rgba(240,242,245,0.55); }
html .facts span { color: var(--screen-ink-2); font: 500 11px/1.4 var(--font-num); letter-spacing: 0.06em; text-transform: uppercase; }
html .bars li { padding: 7px 0; font-size: 14px; }
html .bars .bar {
  height: 14px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--ink-2) 0 7px, transparent 7px 9px); /* segmented VU meter */
}
html .bars li:first-child .bar { background: repeating-linear-gradient(90deg, var(--amber) 0 7px, transparent 7px 9px); }
html .notes-list li { border-top: 1px solid var(--rule); }
html .notes-list code { font-size: 12px; }

/* Brief */
html .message {
  border-left: 6px solid var(--ink); font-size: 15px; padding: 22px 56px 22px 26px; border-radius: var(--radius-panel);
}
html .message::after {
  content: ""; position: absolute; top: 22px; right: 22px; width: 20px; height: 24px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--sunk) 0 4px, transparent 4px 8px); /* three vent slots, spec signature detail */
  box-shadow: inset 1px 1px 2px var(--sh-d);
}
html .message h3 { font: 700 12px/1.2 var(--font-num); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); margin-top: 16px; }
html fieldset { padding: 18px 22px; }
html legend { font: 700 11px/1 var(--font-num); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); padding: 0 6px; }
html .opt { font-size: 14px; }
html .opt input { accent-color: var(--ink); }
html select.input { min-height: 44px; padding: 0 14px; }

/* ---------- Drawer ---------- */
html dialog.drawer { background: var(--noise), var(--paper); border-left: 0; box-shadow: -12px 0 30px var(--sh-d); }
html dialog.drawer::backdrop { background: rgba(20, 24, 30, 0.45); }
html .drawer__head { background: var(--surface); border-bottom: 0; box-shadow: 0 6px 14px var(--sh-d), inset 0 -1px 0 var(--rim); }
html .drawer__head h2 { font: 800 26px/1.1 var(--font-strip); letter-spacing: -0.03em; text-shadow: var(--emboss); }
html .drawer__body h3 { font: 700 12px/1.2 var(--font-num); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
html .timeline li, html .tasks li, html .comments li { border-top: 1px solid var(--rule); }
html .timeline .stage { font: 700 12px/1.3 var(--font-num); letter-spacing: 0.04em; text-transform: uppercase; }
html .timeline .is-now { color: var(--amber-ink); }
html .tasks .box { border-radius: 4px; box-shadow: var(--press-sm); border: 0; background: var(--paper); }
html .tasks .box.on { background: var(--ink-2); box-shadow: inset 1px 1px 1px rgba(0,0,0,0.3); }
html .prov { font-family: var(--font-num); font-size: 11px; color: var(--ink-3); }
html .prov--you { color: var(--amber-ink); font-weight: 700; }
html .comments small, html .need__since { color: var(--ink-3); }
html .toast { border-radius: 12px; box-shadow: var(--raise-lg); font-family: var(--font-num); font-size: 13px; }

/* ---------- Voice: the speaker/indicator unit ---------- */
html .ask-dock {
  border: 1px solid var(--rim); border-radius: 999px; background: var(--surface);
  box-shadow: var(--raise-lg); font: 700 14px/1 var(--font-strip); letter-spacing: 0.06em; text-transform: uppercase;
  transition: box-shadow var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
html .ask-dock:hover { background: var(--surface); border-color: var(--rim); }
html .ask-dock:active { transform: translateY(2px); box-shadow: var(--press-sm); }
html .ask-dock[aria-expanded="true"] { border-color: var(--rim); box-shadow: var(--press); }
html .ask-dock .mini {
  background: radial-gradient(circle at 35% 30%, var(--orb-core), var(--amber) 70%);
  box-shadow: 0 0 0 3px var(--sunk), inset -2px -2px 4px rgba(0,0,0,0.25), 0 0 12px color-mix(in oklab, var(--amber) 55%, transparent);
}
html .ask-dock kbd { font: 500 10px/1 var(--font-num); letter-spacing: 0; text-transform: none; border: 0; border-radius: 4px; box-shadow: var(--press-sm); background: var(--paper); color: var(--ink-2); }

html .assistant {
  background: var(--screws), linear-gradient(145deg, var(--sheen), transparent 45%), var(--paper);
  border: 0; border-radius: 24px; box-shadow: var(--raise-lg);
}
html .assistant__head { background: transparent; border-bottom: 1px solid var(--rule); padding: 16px 24px 12px; }
html .assistant__head h2 { font: 800 20px/1 var(--font-strip); letter-spacing: -0.02em; text-shadow: var(--emboss); }
html .assistant__body { padding: 20px 24px 24px; }
/* The orb sits in a recessed circular bezel with CRT scanlines, like a lit speaker grille. */
html .va-orb {
  position: relative; border-radius: 50%; background: var(--sunk);
  box-shadow: var(--press), 0 0 0 6px var(--paper), 0 0 0 7px var(--rule-strong), 4px 4px 12px 6px var(--sh-d), -4px -4px 12px 6px var(--sh-l);
  margin: 10px 0;
}
html .va-orb::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: linear-gradient(rgba(18,16,16,0) 50%, rgba(0,0,0,0.07) 50%) 0 0 / 100% 4px;
  box-shadow: inset 0 0 0 1px var(--rim);
}
html .va-orb:hover canvas { filter: brightness(1.05); }
html .assistant[data-state="listening"] .va-orb canvas, html .assistant[data-state="speaking"] .va-orb canvas { filter: drop-shadow(0 0 14px color-mix(in oklab, var(--amber) 70%, transparent)); }
html .va-state { font: 700 11px/1.2 var(--font-num); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); display: flex; align-items: center; justify-content: center; gap: 8px; }
html .va-state::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--led-off); box-shadow: inset 1px 1px 2px rgba(0,0,0,0.35); flex: none; }
html .assistant[data-state="listening"] .va-state::before, html .assistant[data-state="speaking"] .va-state::before { background: var(--amber); box-shadow: 0 0 8px 2px color-mix(in oklab, var(--amber) 70%, transparent); animation: ind-pulse 1.4s ease-in-out infinite; }
html .assistant[data-state="thinking"] .va-state::before { background: var(--ink-2); box-shadow: 0 0 6px 1px var(--ink-3); }
html .assistant[data-state="error"] .va-state::before { background: var(--led-fault); box-shadow: 0 0 8px 2px color-mix(in oklab, var(--led-fault) 60%, transparent); }
html .va-heard { font: 400 12px/1.5 var(--font-num); color: var(--ink-2); }
html .va-answer { font-size: 16px; padding: 12px 16px; border-radius: 12px; background: var(--sunk); box-shadow: var(--press-sm); min-height: 50px; }
html .va-chips button {
  border: 1px solid var(--rim); border-radius: 10px; background: var(--surface); box-shadow: var(--raise-sm);
  font: 600 12px/1.2 var(--font-text); color: var(--ink); min-height: 44px;
  transition: box-shadow var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
html .va-chips button:hover { background: var(--surface); border-color: var(--rim); box-shadow: var(--raise); }
html .va-chips button:active { background: var(--surface); transform: translateY(2px); box-shadow: var(--press-sm); }
html .va-foot { border-top: 1px solid var(--rule); color: var(--ink-2); }

/* ---------- Tablet and below ---------- */
@media (max-width: 1100px) {
  html .console { grid-template-columns: auto minmax(0, 1fr); }
  html .boards { grid-column: 1 / -1; grid-row: 2; }
  html .console__right { grid-column: 2; grid-row: 1; justify-self: end; }
  html .strip-head { top: 108px; }
  html .strip-head > span:first-child, html .strip-head > .cell { display: none; }
  html .strip-head, html .strip, html .strip--row { grid-template-columns: minmax(0, 1fr); }
  html .strip__id { border-right: 0; border-bottom: 1px solid var(--rule); }
  html .strip__meta { border-left: 0; border-top: 1px solid var(--rule); }
  html .strip__meta .now-line { display: block; font-weight: 600; color: var(--ink); font-size: 13px; }
  html .strip--row .kv { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row; }
  html .strip--row .kv > div { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 760px) {
  html main { padding: 20px 16px; }
  html .console { padding: 8px 20px; }
  html .boards { gap: 6px; }
  html .console__right { gap: 8px; }
  html .console__right .btn--quiet { padding: 0 6px; font-size: 11px; letter-spacing: 0.02em; }
  html .board-tab { min-height: 44px; padding: 0 2px; font-size: 11px; letter-spacing: 0.02em; }
  html .board-head h1 { font-size: 32px; }
  html .btn { min-height: 44px; }
  html .strip-head { display: none; }
  html .strip > .track { margin: 8px; }
  html .cell { font-size: 10px; letter-spacing: 0; padding: 6px 2px; min-height: 46px; }
  html .cell--now, html .cell--verdict-ok, html .cell--verdict-no, html .cell--verdict-park { margin: 2px; padding: 4px 1px; }
  html .cell--done .lbl::before { margin-right: 3px; width: 6px; height: 6px; }
  html .seg-control button { min-height: 44px; box-shadow: none; }
  html .seg-control button:hover { box-shadow: var(--raise-sm); }
  html .strip--row .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html .message { padding: 20px 48px 20px 22px; }
  html .panel { padding: 22px 20px; }
  html .assistant { border-radius: 20px; }
}

@media (max-width: 420px) {
  html .wordmark { font-size: 18px; }
  html .console { padding: 8px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html .collector .dot, html .assistant .va-state::before { animation: none !important; }
  html .board-tab:active, html .btn:active, html .strip:hover, html .strip:active, html .ask-dock:active, html .va-chips button:active { transform: none; }
}


/* ---------- Shell additions ---------- */
html .field--block { font-size: 11px; }
html .field--block input { font-size: 16px; min-height: 44px; text-transform: none; letter-spacing: 0; }
html .field--block input[aria-invalid="true"] { box-shadow: var(--press), 0 0 0 2px var(--fault); }
html .collector .dot.dot--stale, html .collector[data-stale="true"] .dot { background: var(--led-fault); box-shadow: 0 0 8px 2px color-mix(in oklab, var(--led-fault) 60%, transparent), inset 1px 1px 1px rgba(255,255,255,0.5); animation: none; }
html dialog.modal { background: var(--noise), var(--paper); border: 0; box-shadow: var(--raise-lg); }
html dialog.modal::backdrop { background: rgba(20, 24, 30, 0.45); }
html .modal__head { background: var(--surface); border-bottom: 0; box-shadow: 0 4px 10px var(--sh-d); position: relative; }
html .need.is-signal { border-left-color: var(--amber); }
html .badge-live { color: var(--ok); }
html .login__form { box-shadow: var(--raise); }
html .prov--set { color: var(--ink); font-weight: 700; }
html .prov--fault { color: var(--fault); font-weight: 700; }
html .prov--guess { color: var(--ink-2); }
