/* Watchtower. Look decided 2026-11-10: dark, 3D icons. Never colour alone: every status carries its word. */
:root {
  --ground: #0A0F1C; --panel: #111829; --panel2: #161F35; --hair: #25304A; --text: #EEF1FA; --muted: #9AA6C2; --accent: #B8A6FF;
  --crit: #FF6B8B; --warn: #FFD166; --ok: #7CF2C6; --off: #6F7C9C;
  --sans: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.45; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.05rem; } h3 { font-size: .95rem; }
p { margin: 0; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.small { font-size: .74rem; color: var(--muted); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--panel); padding: 8px; z-index: 9; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; padding: 10px 20px; padding-top: max(10px, env(safe-area-inset-top)); background: rgba(10,15,28,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--hair); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1rem; min-height: 44px; }
.mark svg { width: 34px; height: 44px; display: block; }
.tabs { display: flex; gap: 4px; flex: 1; }
.tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 500; white-space: nowrap; }
.tabs a[aria-current="page"] { color: var(--text); background: var(--panel2); box-shadow: inset 0 -2px 0 var(--accent); }
.top-right { display: flex; align-items: center; gap: 12px; }

main { max-width: 1440px; margin: 0 auto; padding: 20px; padding-bottom: 60px; }
.loading, .empty { color: var(--muted); padding: 24px 0; }

.btn { font: inherit; font-weight: 600; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--hair); background: var(--panel2); color: var(--text); cursor: pointer; }
.btn:hover:not(:disabled) { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: #14102B; border-color: var(--accent); }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* status */
.st { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st.crit, .c-crit { color: var(--crit); } .st.warn, .c-warn { color: var(--warn); } .st.ok, .c-ok { color: var(--ok); } .st.unknown, .st.off, .c-unknown, .c-off { color: var(--off); }
.st.crit::before { border-radius: 1px; transform: rotate(45deg); } .st.warn::before { border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); } .st.unknown::before, .st.off::before { background: transparent; border: 1.5px solid currentColor; }

/* counts */
.counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.count { background: var(--panel); border: 1px solid var(--hair); border-radius: 14px; padding: 14px 16px; border-left: 4px solid currentColor; }
.count .n { font-family: var(--mono); font-size: 2rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.count .l { color: var(--text); font-size: .85rem; font-weight: 500; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.side { display: grid; gap: 16px; position: sticky; top: 84px; grid-template-columns: minmax(0, 1fr); }
.layout > *, .side > * { min-width: 0; }
.panel { background: var(--panel); border: 1px solid var(--hair); border-radius: 16px; padding: 16px; }
.panel > h2 { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* clients and tiles */
.client { background: var(--panel); border: 1px solid var(--hair); border-radius: 16px; padding: 16px; margin-bottom: 16px; }
.client-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.client.off { padding: 12px 16px; margin-bottom: 10px; }
.client.off .client-head { margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tile { font: inherit; color: inherit; text-align: left; background: var(--panel2); border: 1px solid var(--hair); border-radius: 14px; padding: 12px; cursor: pointer; display: grid; gap: 6px; min-height: 44px; }
.tile:hover { border-color: var(--muted); }
.tile[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.tile-name { font-weight: 600; line-height: 1.25; }
.strip { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; height: 14px; }
.strip i { border-radius: 2px; background: #1E2740; }
.strip i.ok { background: var(--ok); opacity: .8; } .strip i.warn { background: var(--warn); } .strip i.crit { background: var(--crit); }
.strip-cap { display: flex; justify-content: space-between; }

/* checks */
.checks { display: grid; gap: 8px; }
.check { font: inherit; color: inherit; text-align: left; width: 100%; background: var(--panel2); border: 1px solid var(--hair); border-radius: 12px; padding: 10px 12px; cursor: pointer; display: grid; gap: 4px; min-height: 44px; }
.check:hover { border-color: var(--muted); }
.check-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.check-name { font-weight: 600; }
.check-val { color: var(--text); font-size: .88rem; overflow-wrap: anywhere; }
.check.crit { border-left: 3px solid var(--crit); } .check.warn { border-left: 3px solid var(--warn); }

/* chief panel */
.inc { border: 1px solid var(--hair); border-radius: 12px; padding: 12px; display: grid; gap: 8px; background: var(--panel2); }
.inc + .inc { margin-top: 10px; }
.inc.page { border-left: 3px solid var(--crit); } .inc.warn { border-left: 3px solid var(--warn); } .inc.recovered { border-left: 3px solid var(--ok); }
.inc h3 a { color: var(--text); text-decoration: none; } .inc h3 a:hover { text-decoration: underline; }
.kv { display: grid; gap: 2px; } .kv b { font-size: .72rem; font-family: var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 500; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.log { display: grid; gap: 8px; max-height: 320px; overflow: auto; }
.log div { font-size: .85rem; overflow-wrap: anywhere; } .log .small { display: block; }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th { text-align: left; font-family: var(--mono); font-size: .7rem; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 6px 10px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
td { padding: 8px 10px; overflow-wrap: anywhere; border-bottom: 1px solid var(--hair); vertical-align: top; }
td.num, th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--panel2); }
td .linklike { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; min-height: 32px; }

/* etl */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--panel); border: 1px solid var(--hair); border-radius: 14px; padding: 12px 14px; }
.stat .v { font-family: var(--mono); font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat .l { font-size: .78rem; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.bar { height: 10px; border-radius: 5px; background: #1E2740; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--accent); }
.section { margin-bottom: 20px; } .section > h2 { margin-bottom: 10px; }
.note { border: 1px dashed var(--hair); border-radius: 12px; padding: 10px 12px; color: var(--muted); font-size: .85rem; }

/* actions */
.win { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.win:last-child { border-bottom: 0; }
.day { position: relative; height: 22px; border-radius: 6px; background: #1E2740; overflow: hidden; }
.day i { position: absolute; top: 0; bottom: 0; background: var(--accent); opacity: .85; }
.day-scale { display: flex; justify-content: space-between; }
.action { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.action:last-child { border-bottom: 0; }
.switch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: inherit; color: var(--text); background: none; border: 0; cursor: pointer; padding: 0 4px; }
.switch .track { width: 44px; height: 24px; border-radius: 12px; background: #2A3554; position: relative; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: left .15s; }
.switch[aria-checked="true"] .track { background: var(--accent); } .switch[aria-checked="true"] .track::after { left: 23px; background: #14102B; }
.switch:disabled { cursor: not-allowed; opacity: .6; }
ul.plain { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
form.inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
label.f { display: grid; gap: 4px; font-size: .78rem; color: var(--muted); }
input[type="time"], input[type="number"] { font: inherit; font-family: var(--mono); color: var(--text); background: var(--ground); border: 1px solid var(--hair); border-radius: 8px; min-height: 44px; padding: 0 10px; color-scheme: dark; }

/* phone alert */
.phone { max-width: 460px; margin: 0 auto; display: grid; gap: 14px; }
.alert-card { background: var(--panel); border: 1px solid var(--hair); border-radius: 20px; padding: 18px; display: grid; gap: 12px; }
.alert-from { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }
.alert-card .btn-row .btn { flex: 1 1 30%; }

.signin { max-width: 380px; margin: 12vh auto; text-align: center; display: grid; gap: 16px; justify-items: center; }
.signin .mark svg { width: 96px; height: 128px; }
#toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--panel2); border: 1px solid var(--accent); padding: 10px 16px; border-radius: 12px; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 90vw; z-index: 20; }
#toast.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

@media (max-width: 1000px) { .layout { grid-template-columns: minmax(0, 1fr); } .side { position: static; } }
@media (max-width: 640px) {
  main { padding: 16px; }
  .top { flex-wrap: wrap; gap: 4px 12px; padding-left: 16px; padding-right: 16px; }
  .tabs { order: 3; flex: 1 0 100%; overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
  .top-right { margin-left: auto; } #stamp { display: none; }
  .counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .win { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .action { grid-template-columns: minmax(0, 1fr); }
}

/* Talk to Chief: available on every screen */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fab { position: fixed; right: 20px; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 12; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 24px; border: 1px solid var(--accent); background: var(--accent); color: #14102B; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.fab-dot { width: 9px; height: 9px; border-radius: 50%; background: #14102B; }
.chat { position: fixed; right: 20px; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 13; width: min(420px, calc(100vw - 32px)); height: min(620px, calc(100dvh - 110px)); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--panel); border: 1px solid var(--accent); border-radius: 18px; box-shadow: 0 16px 48px rgba(0,0,0,.6); overflow: hidden; }
.chat[hidden] { display: none; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--hair); }
.chat-head .btn { min-height: 44px; padding: 0 12px; }
.chat-head .btn-row { flex-wrap: nowrap; flex: none; }
#chat-about { overflow-wrap: anywhere; }
.chat-log { overflow-y: auto; padding: 14px; display: grid; gap: 10px; align-content: start; }
.msg { max-width: 92%; padding: 9px 12px; border-radius: 14px; overflow-wrap: anywhere; white-space: pre-wrap; font-size: .92rem; }
.msg.user { justify-self: end; background: var(--accent); color: #14102B; border-bottom-right-radius: 4px; }
.msg.chief { justify-self: start; background: var(--panel2); border: 1px solid var(--hair); border-bottom-left-radius: 4px; }
.msg.chief a { color: var(--accent); }
.msg.note { justify-self: stretch; max-width: 100%; background: transparent; border: 1px dashed var(--hair); color: var(--muted); font-size: .85rem; }
.msg.note.warn { border-color: var(--warn); color: var(--text); }
.msg .about { display: block; margin-top: 4px; font-size: .7rem; font-family: var(--mono); opacity: .75; }
.chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px; border-top: 1px solid var(--hair); align-items: end; }
.chat-form textarea { font: inherit; color: var(--text); background: var(--ground); border: 1px solid var(--hair); border-radius: 10px; padding: 10px; resize: none; min-height: 44px; }
.chat-form textarea:disabled { opacity: .5; }
@media (max-width: 640px) { .chat { right: 0; bottom: 0; width: 100vw; height: min(78dvh, 640px); border-radius: 18px 18px 0 0; border-left: 0; border-right: 0; border-bottom: 0; } .fab { right: 16px; } main { padding-bottom: 90px; } }

/* Discuss with Chief: right-click / long-press menu and the visible buttons */
.ctx-menu { position: fixed; z-index: 30; padding: 6px; background: var(--panel2); border: 1px solid var(--accent); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.6); }
.ctx-menu .btn { white-space: nowrap; }
.btn.discuss { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn.discuss.sm { min-height: 44px; padding: 0 12px; font-size: .8rem; }
.head-right { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.tile, .check, tr.click { -webkit-touch-callout: none; }

/* The reason is on the tile; phone full-screen detail; ETL monitor entry */
.reason { font-weight: 600; font-size: .86rem; line-height: 1.3; overflow-wrap: anywhere; }
.reason.big { font-size: 1.05rem; margin: 2px 0 4px; }
.linkbtn { display: inline-flex; align-items: center; text-decoration: none; }
.btn.primary.linkbtn { color: #14102B; }
.back { margin-bottom: 12px; }
.detail { display: grid; gap: 14px; max-width: 720px; margin: 0 auto; }
.detail > .back { justify-self: start; margin-bottom: 0; }
.detail-head { display: flex; gap: 14px; align-items: center; }
.detail-head h1 { font-size: 1.3rem; margin: 2px 0 6px; }
.tile[data-etl] { border-style: solid; }

/* Ticks: time and reason on hover or tap */
.strip { height: 18px; cursor: help; touch-action: manipulation; }
.strip i { min-width: 2px; }
.strip i:hover, .strip i.on { outline: 2px solid var(--text); outline-offset: 1px; }
.client-strip { display: grid; gap: 4px; margin: -4px 0 12px; max-width: 520px; }
.tick-tip { position: fixed; z-index: 40; max-width: min(360px, calc(100vw - 16px)); display: grid; gap: 6px; justify-items: start; padding: 10px 12px; background: var(--panel2); border: 1px solid var(--muted); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.6); font-size: .86rem; pointer-events: none; }
.tick-tip .why { display: grid; gap: 2px; overflow-wrap: anywhere; }

#update-bar { position: fixed; left: 50%; top: 12px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; background: var(--panel2); border: 1px solid var(--accent); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.6); max-width: calc(100vw - 16px); }

/* Discussions */
.thread-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.thread-tools .f { flex: 1 1 220px; }
.thread-tools input[type="search"], .thread-tools select { font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--hair); border-radius: 10px; min-height: 44px; padding: 0 12px; width: 100%; color-scheme: dark; }
.checkline { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text); }
.checkline input { width: 20px; height: 20px; accent-color: var(--accent); }
.thread-list { display: grid; gap: 10px; max-width: 900px; }
.thread-list .inc + .inc { margin-top: 0; }
.thread.test { opacity: .8; border-style: dashed; }
.thread-q { font-size: 1rem; overflow-wrap: anywhere; }
.thread-view { max-width: 820px; }
.thread-msgs { display: grid; gap: 10px; }
.thread-form { padding: 0; border-top: 0; position: sticky; bottom: 8px; background: var(--ground); padding-top: 8px; }
.msg a.btn { text-decoration: none; }
@media (max-width: 640px) { .tabs a { padding: 0 10px; } .thread-form { bottom: 78px; } }

/* Acknowledged by Tim: seen, so it no longer calls for attention. Subdued everywhere: badge, reason, check row, strip. */
:root { --ack: #8F8A78; }
.st.ack, .c-ack { color: var(--ack); } .st.ack { border-style: dashed; font-weight: 600; } .st.ack::before { background: transparent; border: 1.5px solid currentColor; }
.reason.c-ack { font-weight: 500; } .ack-line { color: var(--ack); }
.check.acked { border-left: 3px dashed var(--ack); }
.strip i.ack { background: #4A4838; opacity: 1; } .strip i.ack.ack-crit { background: #4C3A42; }
.count.c-ack .n { color: var(--ack); }
.ctx-menu { display: grid; gap: 6px; }
/* 390 wide: a long badge ("NOT YET CHECKED", "WARNING · ACKNOWLEDGED") beside the icon must wrap, not widen the tile past the screen. */
.tile { grid-template-columns: minmax(0, 1fr); } .tile-top { flex-wrap: wrap; gap: 6px; } .tile-top .st { white-space: normal; }
@media (min-width: 761px) { .counts.has-ack { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
/* A link out of Watchtower in the top bar (the home network monitor: reachable on the home network only). */
.tabs a.ext { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; line-height: 1.15; }
.tabs a.ext .ext-note { font-size: .62rem; color: var(--off); font-weight: 400; }
.reason.c-info { color: var(--muted); font-weight: 500; }

/* ================= Board: client workspaces ("Command deck", approved by Tim Nov 14, 2026) =================
   Looping animations take their phase from --t (seconds, set when the board is drawn) so a refresh does not restart them. */
.deck { --t: 0; --lav: #b3a1ff; --ack-c: var(--ack); }
.c-ack { --c: var(--ack); } .ws.s-crit, .b-crit { --c: var(--crit); } .ws.s-warn, .b-warn { --c: var(--warn); } .ws.s-ok, .b-ok { --c: var(--ok); } .ws.s-off, .b-unknown { --c: #93a3d1; } .b-ack { --c: var(--ack); }

/* hero */
.hero { position: relative; overflow: hidden; background: #070b18; border: 1px solid var(--hair); border-radius: 18px; padding: 22px 24px; margin-bottom: 20px; min-height: 236px; display: flex; align-items: center; }
.hero-text { position: relative; z-index: 2; display: grid; gap: 12px; min-width: 0; max-width: calc(100% - 190px); }
.hero-label { font-size: 11px; letter-spacing: .18em; color: var(--lav); margin: 0; }
.hero-line { font-family: "Space Grotesk", var(--sans); font-weight: 700; font-size: 44px; line-height: 1.05; margin: 0; text-shadow: 0 0 28px color-mix(in srgb, currentColor 50%, transparent); }
.hero-counts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; }
.hero-counts .count { background: none; border: 0; border-radius: 0; padding: 0; }
.hero-counts .count .n { font-size: 30px; text-shadow: 0 0 18px currentColor; }
.hero-counts .count .l { font-size: 13px; color: var(--muted); }
.hero .btn { min-height: 44px; }
.hero-floor { position: absolute; left: -20%; right: -20%; bottom: 0; height: 190px; z-index: 0; opacity: .5;
  background-image: linear-gradient(rgba(179,161,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(179,161,255,.5) 1px, transparent 1px);
  background-size: 48px 48px; transform: perspective(380px) rotateX(64deg); transform-origin: bottom;
  -webkit-mask-image: linear-gradient(to top, #000, transparent); mask-image: linear-gradient(to top, #000, transparent);
  animation: floor 2.2s linear infinite; animation-delay: calc(var(--t) * -1s); }
@keyframes floor { to { background-position: 0 48px, 0 0; } }
.hero-mark { position: absolute; right: 34px; top: 50%; width: 150px; height: 200px; margin-top: -100px; z-index: 1; }
.hero-mark svg { position: relative; width: 150px; height: 200px; z-index: 2; }
.hero-mark .beam { position: absolute; top: calc(40.6% - 70px); width: 560px; height: 140px; z-index: 1; pointer-events: none; animation: turn 9s ease-in-out infinite; animation-delay: calc(var(--t) * -1s); }
.hero-mark .beam.r { left: 50%; transform-origin: 0 50%; clip-path: polygon(0 50%, 100% 0, 100% 100%); background: linear-gradient(90deg, rgba(255,233,166,.26), rgba(255,233,166,0)); }
.hero-mark .beam.l { right: 50%; transform-origin: 100% 50%; clip-path: polygon(100% 50%, 0 0, 0 100%); background: linear-gradient(270deg, rgba(255,233,166,.26), rgba(255,233,166,0)); animation-delay: calc(var(--t) * -1s - 4.5s); }
@keyframes turn { 0%, 100% { transform: scaleX(1); opacity: 1; } 22% { transform: scaleX(.04); opacity: .5; } 25%, 75% { transform: scaleX(.04); opacity: 0; } 78% { transform: scaleX(.04); opacity: .5; } }
.hero-mark .lamp { position: absolute; left: 50%; top: 40.6%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; z-index: 1; background: radial-gradient(circle, rgba(255,233,166,.5), transparent 70%); animation: lamp 9s ease-in-out infinite; animation-delay: calc(var(--t) * -1s); }
@keyframes lamp { 0%, 50%, 100% { opacity: .35; } 25%, 75% { opacity: .9; } }

/* workspace row */
.client.ws { padding: 0; background: linear-gradient(180deg, #141c36, #0d1428); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); border-radius: 18px;
  box-shadow: 0 0 34px color-mix(in srgb, var(--c) 15%, transparent), inset 0 1px 0 rgba(255,255,255,.07); transition: transform .2s; }
.client.ws:hover { transform: translateY(-3px); }
.deck.first .client.ws { animation: rise .55s both; }
.deck.first .client.ws:nth-of-type(2) { animation-delay: .11s; } .deck.first .client.ws:nth-of-type(3) { animation-delay: .22s; } .deck.first .client.ws:nth-of-type(4) { animation-delay: .33s; } .deck.first .client.ws:nth-of-type(5) { animation-delay: .44s; } .deck.first .client.ws:nth-of-type(n+6) { animation-delay: .55s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.ws-head { font: inherit; color: inherit; text-align: left; background: none; border: 0; width: 100%; min-height: 44px; cursor: pointer; padding: 14px 16px; border-radius: 18px;
  display: grid; grid-template-columns: 84px minmax(110px, auto) auto minmax(0, 1fr) 220px 22px; gap: 16px; align-items: center; }
.ws-head:focus-visible { outline: 2px solid var(--lav); outline-offset: 2px; }
.radar { position: relative; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: repeating-radial-gradient(circle, transparent 0 13px, color-mix(in srgb, var(--c) 16%, transparent) 13px 14px), #0a1022; }
.radar .arm { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, color-mix(in srgb, var(--c) 60%, transparent), transparent 28%); animation: sweep 3.6s linear infinite; animation-delay: calc(var(--t) * -1s); }
@keyframes sweep { to { transform: rotate(360deg); } }
.radar i { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.ws-name { display: grid; gap: 2px; min-width: 0; }
.ws-title { font-family: "Space Grotesk", var(--sans); font-weight: 700; font-size: 26px; line-height: 1.1; overflow-wrap: anywhere; }
.ws-kind { font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.ws-pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); border-radius: 999px; padding: 5px 11px; }
.ws-pill .dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.ws-pill .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--c); animation: ping 3.2s ease-out infinite; animation-delay: calc(var(--t) * -1s); }
.ws.s-warn .ws-pill .dot::after, .ws.s-crit .ws-pill .dot::after { animation-duration: 1.3s; }
.ws.s-off .ws-pill .dot::after { animation: none; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(3.2); opacity: 0; } }
.ws-sum { display: grid; gap: 6px; min-width: 0; }
.ws-reason { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws.s-crit .ws-reason, .ws.s-warn .ws-reason { color: var(--c); }
.ws-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: var(--mono); font-size: .68rem; white-space: nowrap; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); border-radius: 999px; padding: 2px 8px; }
.beat { justify-self: end; max-width: 100%; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 70%, transparent)); }
.beat path { fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.beat .base { opacity: .28; }
.beat .run { stroke-dasharray: 70 550; animation: pulse 2.8s linear infinite; animation-delay: calc(var(--t) * -1s); }
.beat.fast .run { animation-duration: 1.5s; }
@keyframes pulse { to { stroke-dashoffset: -620; } }
.ws-chev { color: var(--muted); transition: transform .28s; }
.ws.open .ws-chev { transform: rotate(90deg); }
.ws-body { padding: 2px 16px 16px; }
.ws-body .client-head { margin-bottom: 12px; } .ws-body .client-strip { flex: 1; min-width: 0; }

/* tiles inside a workspace: glowing top bar, flip-in when opened, hover tilt */
.ws .tile { position: relative; overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.ws .tile::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--tc, var(--off)); box-shadow: 0 0 12px var(--tc, transparent); }
.ws .tile.t-crit { --tc: var(--crit); } .ws .tile.t-warn { --tc: var(--warn); } .ws .tile.t-ok { --tc: var(--ok); } .ws .tile.t-ack { --tc: var(--ack); }
.ws .tile:hover { transform: perspective(800px) translateY(-6px) rotateX(5deg); border-color: var(--lav); box-shadow: 0 10px 28px rgba(179,161,255,.18); }
.deck.first .ws.open .tile, .ws-body.opening .tile { animation: flip .55s both; }
.ws .tile:nth-child(2) { animation-delay: .06s; } .ws .tile:nth-child(3) { animation-delay: .12s; } .ws .tile:nth-child(4) { animation-delay: .18s; } .ws .tile:nth-child(5) { animation-delay: .24s; } .ws .tile:nth-child(6) { animation-delay: .3s; } .ws .tile:nth-child(7) { animation-delay: .36s; } .ws .tile:nth-child(8) { animation-delay: .42s; } .ws .tile:nth-child(n+9) { animation-delay: .48s; }
@keyframes flip { from { opacity: 0; transform: perspective(800px) rotateX(-32deg) translateY(22px); } to { opacity: 1; transform: none; } }

@media (max-width: 1250px) { .ws-head { grid-template-columns: 84px minmax(0, 1fr) auto 22px; } .ws-sum { grid-column: 1 / -1; } .ws-reason { white-space: normal; } .beat { grid-column: 1 / -1; justify-self: start; } .ws-chev { grid-row: 1; grid-column: 4; } }
@media (max-width: 640px) {
  .hero { padding: 16px; min-height: 0; } .hero-text { max-width: 100%; } .hero-line { font-size: 30px; padding-right: 84px; } .hero-label { padding-right: 84px; }
  .hero-mark { right: 6px; top: 8px; margin-top: 0; width: 78px; height: 104px; } .hero-mark svg { width: 78px; height: 104px; } .hero-mark .beam { width: 300px; height: 80px; top: calc(40.6% - 40px); } .hero-mark .lamp { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
  .hero-counts { gap: 8px 18px; } .hero-counts .count .n { font-size: 24px; }
  .ws-head { grid-template-columns: 64px minmax(0, 1fr) 22px; gap: 10px 12px; padding: 12px; } .radar { width: 64px; height: 64px; } .ws-title { font-size: 22px; }
  .ws-pill { grid-column: 1 / -1; justify-self: start; } .ws-chev { grid-row: 1; grid-column: 3; } .ws-body { padding: 2px 12px 12px; }
}
@media (hover: none) { .client.ws:hover, .ws .tile:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-floor, .hero-mark .beam, .hero-mark .lamp, .radar .arm, .ws-pill .dot::after, .beat .run, .deck.first .client.ws, .deck.first .ws.open .tile, .ws-body.opening .tile { animation: none !important; }
  .client.ws:hover, .ws .tile:hover { transform: none; } .beat .run { display: none; }
}
.c-info { color: var(--muted); }
