/* Shultana — interface concept A (Futuristic AI Command Center), chosen by the owner on 26 Oct 2026 (with concept C for
   the Create area). It grows out of direction B: goal bar on top, live workflow panel, right rail on Today. Space Grotesk
   headings, Inter text, JetBrains Mono only for data. One dark theme; text colours checked at 4.5:1 or better. */
:root {
  --bg: #07090D; --surface: #0E1219; --surface2: #0A0E14; --line: #1C2330;
  --ink: #D8E1EE; --muted: #7F8BA0; --faint: #7F8BA0; --white: #FFFFFF;
  --accent: #5EE1F5; --accent2: #5BE39A; --accent-ink: #05121A; --accent-bg: #0B1A22; --accent-line: #16404C;
  --gold: #F4C35A; --good: #5BE39A; --warn: #F4C35A; --bad: #FF7A85;
  --idea: #5EE1F5; --build: #F4C35A; --check: #5EE1F5; --listed: #C9B6FF; --selling: #5BE39A;
  --chip-gold: #2A2210; --chip-blue: #0B1A22; --chip-lilac: #1E1A33; --chip-green: #0E2A1D; --chip-red: #2E1418; --chip-teal: #0B1A22;
  --shadow: none; --shadow-hover: none; --backdrop: rgba(0,0,0,.7);
  color-scheme: dark;
  --radius: 8px; --f-mono: ui-monospace, "JetBrains Mono", "Cascadia Mono", Consolas, Menlo, "Hind Siliguri", monospace;
  --f-head: var(--f-mono); --f-body: var(--f-mono);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.5; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.2; margin: 0; }
h1 { font-size: 30px; font-weight: 700; }
h2 { font-size: 18px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.mono { font-variant-numeric: tabular-nums; }

.app { display: flex; min-height: 100vh; }
.nav { flex: 0 0 236px; border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 16px; font: 700 18px var(--f-head); }
.logo { width: 30px; height: 30px; border-radius: 9px; background: var(--gold); color: #0E0F13; display: grid; place-items: center; font: 700 16px var(--f-head); }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 14px; min-height: 40px; }
.nav a:hover { background: var(--surface2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--surface2); color: var(--ink); font-weight: 600; }
.nav .count { margin-left: auto; }
.nav .foot { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.main { flex: 1 1 auto; min-width: 0; padding: 26px 32px 0; display: flex; flex-direction: column; gap: 20px; outline: none; }
.credit { text-align: center; color: var(--faint); font-size: 12px; padding: 28px 0 22px; margin-top: auto; }

.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.kicker { font: 500 12px var(--f-body); color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.lede { color: var(--muted); max-width: 75ch; margin-top: 6px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.grow { flex: 1 1 260px; min-width: 0; }
.cols { display: flex; flex-wrap: wrap; gap: 16px; }
.cols > * { flex: 1 1 320px; min-width: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sep { border-top: 1px solid var(--line); }

.btn { font: 600 13.5px var(--f-body); border-radius: 10px; padding: 9px 14px; min-height: 40px; cursor: pointer; border: 1px solid var(--line); background: var(--surface2); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.danger { color: var(--bad); }
.btn.ghost { background: transparent; }
.btn.small { min-height: 34px; padding: 6px 10px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.c-gold { background: var(--chip-gold); color: var(--gold); } .c-blue { background: var(--chip-blue); color: var(--accent); } .c-lilac { background: var(--chip-lilac); color: var(--listed); }
.c-green { background: var(--chip-green); color: var(--good); } .c-red { background: var(--chip-red); color: var(--bad); } .c-teal { background: var(--chip-teal); color: var(--check); } .c-grey { background: var(--surface2); color: var(--muted); }

label.field, .field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); min-width: 0; }
input[type=text], input[type=search], input[type=number], input[type=password], input[type=url], input[type=email], input[type=tel], input[type=date], input[type=datetime-local], input:not([type]), select, textarea {
  font: 15px var(--f-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 42px; width: 100%; }
textarea { min-height: 220px; resize: vertical; line-height: 1.5; font-size: 14px; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface2); font-size: 14px; cursor: pointer; color: var(--ink); }
.opt input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); }
.opt:has(input:checked) { border-color: var(--accent); }
.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 26px; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.drop.over { border-color: var(--accent); }

.board { display: grid; grid-template-columns: repeat(5, minmax(170px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.lane { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 8px; border-top-width: 3px; min-height: 120px; }
.lane .item { background: var(--surface2); border-radius: 10px; padding: 10px; font-size: 13px; text-decoration: none; color: var(--ink); display: block; }
.lane .empty { border: 1px dashed var(--line); border-radius: 10px; padding: 10px; font-size: 12px; color: var(--muted); }

.draft { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.draft:first-of-type { border-top: none; }
.est { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: 13px; }
.est b { font: 600 16px var(--f-head); font-variant-numeric: tabular-nums; }
.est details { width: 100%; }
.est summary { cursor: pointer; color: var(--accent); font-size: 13px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px; border-top: 1px solid var(--line); font-size: 13px; vertical-align: top; }
th { color: var(--muted); font-weight: 500; border-top: none; }
.scroll { overflow-x: auto; }
.bar { height: 8px; background: var(--surface2); border-radius: 99px; overflow: hidden; } .bar > span { display: block; height: 100%; background: var(--gold); }
.chat { display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 760px; padding: 12px 14px; border-radius: 14px; white-space: pre-wrap; }
.msg.me { align-self: flex-end; background: var(--chip-blue); }
.msg.ai { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); }
.note { background: var(--surface2); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; }
.note.bad { background: var(--chip-red); color: var(--ink); }
.note.good { background: var(--chip-green); color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.kpi .v { font: 700 24px var(--f-head); font-variant-numeric: tabular-nums; margin-top: 4px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { padding: 7px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); border: 1px solid var(--line); font-size: 13px; }
.tabs a[aria-current="page"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; z-index: 60; max-width: calc(100vw - 32px); }
.dlg { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); padding: 0; width: min(820px, calc(100vw - 24px)); max-height: calc(100vh - 32px); }
.dlg::backdrop { background: var(--backdrop); }
.dlg .inner { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.gate { max-width: 520px; margin: 10vh auto 0; }
.tabbar { display: none; }

@media (max-width: 860px) {
  .nav { display: none; }
  .main { padding: 18px 16px 0; padding-bottom: 90px; }
  h1 { font-size: 24px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line); padding: 4px 6px calc(8px + env(safe-area-inset-bottom, 0px)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; color: var(--muted); text-decoration: none; min-height: 48px; justify-content: center; }
  .tabbar a[aria-current="page"] { color: var(--accent); }
  .grid2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* long URLs and keys wrap instead of widening the page */
.note code,.note a,.est a{overflow-wrap:anywhere;word-break:break-word}
.preview-banner{position:sticky;top:0;z-index:50;background:var(--chip-gold);color:var(--gold);text-align:center;font-size:13px;padding:6px 12px;border-bottom:1px solid currentColor}

/* agent team */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flow-step { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface2); }
.flow-step.off { opacity: .45; text-decoration: line-through; }
.flow-arrow { color: var(--muted); }
.flow-ic { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--chip-blue); color: var(--accent); flex: none; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.agent-card { gap: 10px; }
.agent-card.off { opacity: .65; }
.check ul { margin: 6px 0 0; padding-left: 18px; }
.prose h2{margin-top:1.4em}.prose p,.prose li{line-height:1.7}.prose a{overflow-wrap:anywhere}

/* saved chats */
.chat-layout { display: grid; grid-template-columns: 260px 1fr; gap: 16px; align-items: start; }
.chat-list { gap: 8px; max-height: 75vh; overflow: auto; }
.chat-item { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.chat-item:hover, .chat-item.on { background: var(--surface2); }
@media (max-width: 860px) { .chat-layout { grid-template-columns: 1fr; } .chat-list { max-height: 220px; } }
[hidden] { display: none !important; }
.nav-group { margin: 14px 12px 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.nav-faint { font-size: 13px; } /* Release 71: the fade made this text too faint to read (contrast 3.8); it now keeps the menu's own colour */

/* Release 1 */
.big { font: 600 32px/1.1 var(--f-head); margin: 4px 0 8px; }
.action { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.action:hover { background: var(--surface2); }
.action .grow { display: flex; flex-direction: column; gap: 2px; }
.action-n { font: 700 18px var(--f-head); color: var(--gold); width: 18px; text-align: center; }
.cal-layout { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); gap: 8px; overflow-x: auto; }
.cal-day { display: flex; flex-direction: column; gap: 6px; min-height: 160px; padding: 8px; border-radius: 10px; background: var(--surface2); }
.cal-day.today { outline: 2px solid var(--accent); }
.cal-head { font-size: 12px; font-weight: 600; color: var(--muted); }
.cal-item { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; text-align: left; width: 100%; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; }
.cal-item.st-posted { opacity: .7; }
.kit { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.kit-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.kit-text { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 160px; overflow: auto; }
.idea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.idea { gap: 8px; }
@media (max-width: 860px) { .cal-layout { grid-template-columns: 1fr; } .cal-week { grid-template-columns: repeat(7, 140px); } .idea-grid { grid-template-columns: 1fr; } }
.row > select, .row > input[type=search] { width: auto; }
#fs, #fc, #or { width: auto; min-width: 150px; }
.cal-week { grid-template-columns: repeat(7, minmax(96px, 1fr)); }
/* Release 2+ workspace screens */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid .wide { grid-column: 1 / -1; }
.check-row { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--ink); }
.check-row input { margin-top: 3px; }
.empty-box { display: flex; flex-direction: column; gap: 4px; border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px; }
.list-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.list-row input { width: 100%; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.media-card { gap: 8px; }
.media-card .thumb { aspect-ratio: 4 / 3; border-radius: 10px; background: var(--surface2); display: grid; place-items: center; overflow: hidden; }
.media-card .thumb img, .media-card .thumb video { width: 100%; height: 100%; object-fit: cover; }
.phone { max-width: 340px; margin: 0 auto; border: 1px solid var(--line); border-radius: 22px; padding: 22px 16px; display: flex; flex-direction: column; gap: 10px; text-align: center; background: var(--bg); }
.phone-link { display: block; padding: 12px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.phone-box { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: left; }
.phone-input { border: 1px solid var(--line); border-radius: 8px; padding: 8px; color: var(--faint); font-size: 13px; }
.sw { width: 42px; height: 24px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface2); position: relative; cursor: pointer; flex: 0 0 auto; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--faint); transition: left .15s; }
.sw[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
.sw[aria-checked="true"]::after { left: 20px; background: var(--accent-ink); }
.sw:disabled { opacity: .45; cursor: not-allowed; }
.mchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.chips-row { display: flex; gap: 6px; flex-wrap: wrap; }
.bad-text { color: var(--bad); }
fieldset.plain { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.lane .item .row { flex-wrap: wrap; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid textarea, .list-row textarea, form.chat textarea[rows] { min-height: 0; }
input[type=color] { width: 64px; height: 40px; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface2); }

/* M4: approvals, connectors, tools, system health */
.stack { display: flex; flex-direction: column; gap: 14px; }
.cards4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cards4 .card { display: flex; flex-direction: column; gap: 6px; }
.cards4 .big { font: 700 26px var(--f-head); }
.approval .small + .small { margin-top: 2px; }
label.c { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; padding: 4px 0; }
fieldset.field { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 0; }
fieldset.field legend { font-size: 13px; color: var(--muted); padding: 0 4px; }
.score-pill { font: 700 15px var(--f-head); min-width: 44px; text-align: center; padding: 4px 8px; border-radius: 10px; background: var(--surface2); }
.crit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; }
.crit select { min-width: 70px; }
@media (max-width: 760px) { .cards4 { grid-template-columns: 1fr 1fr; } }

/* M5: direction C components + B's live workflow panel */
.card { box-shadow: var(--shadow); transition: box-shadow .15s, transform .15s; }
a.card:hover, .card.lift:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.logo { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--accent-ink); }
.nav { background: var(--surface); }
.nav a[aria-current="page"] { background: var(--chip-blue); color: var(--accent); }
.nav .count { background: var(--accent); color: var(--accent-ink); }
.btn.primary { background-color: var(--accent); background-image: linear-gradient(135deg, var(--accent), var(--accent2)); border-color: transparent; box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn.primary:hover { filter: brightness(1.05); }
.bar > span { background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.action-n { color: var(--accent); background: var(--chip-blue); border-radius: 10px; width: 34px; height: 34px; display: grid; place-items: center; font-size: 15px; flex: none; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { gap: 4px; }
a.card { color: var(--ink); text-decoration: none; }
a.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.stat .v { font: 700 26px var(--f-head); font-variant-numeric: tabular-nums; }
.stat a { text-decoration: none; }
.dash { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; }
.ring { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.ring svg { flex: 0 0 auto; }
.ring .track { stroke: var(--chip-blue); } .ring .val { stroke: var(--accent); } .ring text { fill: var(--ink); font: 700 22px var(--f-head); }
.tag { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
/* live workflow (B): every state shown comes from the server */
.live-run { display: flex; flex-direction: column; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.live-run:first-of-type { border-top: 0; }
.wf { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding: 4px 2px 6px; }
.wf-node { flex: 1 0 140px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface2); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wf-node b { font-size: 13.5px; }
.wf-node .tiny { color: var(--muted); }
.wf-node.done { border-color: color-mix(in srgb, var(--good) 45%, var(--line)); }
.wf-node.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, 0 0 18px color-mix(in srgb, var(--accent) 25%, transparent); }
.wf-node.waiting { border-style: dashed; border-color: var(--gold); }
.wf-node.failed { border-color: var(--bad); }
.wf-node.not_needed, .wf-node.pending, .wf-node.cancelled { opacity: .6; }
.wf-link { flex: 0 0 22px; align-self: center; height: 2px; background: var(--line); }
.wf-link.on { background: linear-gradient(90deg, var(--accent), transparent); background-size: 200% 100%; animation: wf-flow 1.4s linear infinite; }
@keyframes wf-flow { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; background: var(--faint); }
.dot.done { background: var(--good); } .dot.active { background: var(--accent); animation: dot-pulse 1.2s ease-in-out infinite; } .dot.waiting { background: var(--gold); } .dot.failed { background: var(--bad); }
@keyframes dot-pulse { 50% { opacity: .3; } }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .wf { flex-direction: column; } .wf-node { flex: 0 0 auto; } .wf-link { width: 2px; height: 12px; flex: 0 0 12px; margin: 0 auto; } }
@media (prefers-reduced-motion: reduce) { .wf-link.on, .dot.active { animation: none; } a.card:hover, .card.lift:hover { transform: none; } }

/* Menu: Option C keeps the sidebar short, so each section folds; the one you're in stays open. */
.nav details.nav-sec { margin: 0; }
.nav details.nav-sec > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-size: 14px; min-height: 40px; cursor: pointer; user-select: none; }
.nav details.nav-sec > summary::-webkit-details-marker { display: none; }
.nav details.nav-sec > summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.nav details.nav-sec[open] > summary::after { transform: rotate(45deg); }
.nav details.nav-sec > summary:hover { background: var(--surface2); color: var(--ink); }
.nav details.nav-sec.here > summary { color: var(--ink); font-weight: 600; }
.nav details.nav-sec > summary .count { margin-left: 0; }
.nav details.nav-sec > a { padding-left: 24px; }
.nav details.nav-sec[open] > summary .count { display: none; }

/* ===== Concept A: command centre ===== */
:root {
  --bg: #070B12; --surface: #0D131D; --surface2: #0A0F18; --line: #1B2636;
  --ink: #E4EBF5; --muted: #8C99AD; --faint: #8C99AD; --white: #FFFFFF;
  --accent: #4FD8EB; --accent2: #3DD68C; --accent-ink: #04222A; --accent-bg: #0C2630; --accent-line: #1E5865;
  --gold: #F5B84A; --good: #3DD68C; --warn: #F5B84A; --bad: #FF7D8C; --violet: #A898FF;
  --st-work: #4FD8EB; --st-queue: #8C99AD; --st-wait: #F5B84A; --st-done: #3DD68C; --st-fail: #FF7D8C; --st-pause: #6B7789;
  --chip-gold: #2A2210; --chip-blue: #0C2630; --chip-lilac: #1E1A33; --chip-green: #0E2A22; --chip-red: #2E1418; --chip-teal: #0C2630;
  --radius: 14px;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, Menlo, "Hind Siliguri", monospace;
  --f-head: "Space Grotesk", "Inter", "Hind Siliguri", system-ui, sans-serif;
  --f-body: "Inter", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
}
html, body { font-size: 14.5px; line-height: 1.55; }
h1 { font: 600 26px/1.15 var(--f-head); color: var(--white); letter-spacing: -.01em; }
h2 { font: 600 16px var(--f-head); }
.topbar { display: flex; align-items: center; gap: 16px; padding: 12px 22px; border-bottom: 1px solid var(--line); background: var(--surface2); position: sticky; top: 0; z-index: 30; }
.topbar .brandb { color: var(--ink); font: 700 15px var(--f-head); letter-spacing: .08em; text-decoration: none; white-space: nowrap; }
.topbar form { flex: 1; min-width: 0; display: flex; }
.topbar input.cmd { flex: 1; min-height: 40px; padding: 8px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font: 14px var(--f-body); color: var(--ink); }
.topbar input.cmd::placeholder { color: var(--muted); }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; color: var(--muted); white-space: nowrap; font: 12px var(--f-mono); text-decoration: none; }
.pill.g { color: var(--good); border-color: #1F4A35; } .pill.w { color: var(--warn); border-color: #4A3B17; } .pill.r { color: var(--bad); border-color: #4A1F25; }
.app { min-height: calc(100vh - 65px); }
.nav { flex: 0 0 224px; padding: 14px 10px; background: var(--surface2); border-right: 1px solid var(--line); top: 65px; height: calc(100vh - 65px); gap: 2px; }
.nav .brand { display: none; }
.nav a, .nav details.nav-sec > summary { border-radius: 8px; padding: 8px 12px; min-height: 38px; font-size: 14px; color: #B8C3D3; border-left: 0; }
.nav a:hover, .nav details.nav-sec > summary:hover { background: #111A27; color: var(--ink); }
.nav a[aria-current="page"] { background: #11202A; color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.nav details.nav-sec > a { padding-left: 26px; font-size: 13.5px; }
.nav details.nav-sec.here > summary { color: var(--ink); font-weight: 600; }
.nav .count { background: transparent; color: var(--warn); border: 1px solid #4A3B17; font-family: var(--f-mono); }
.nav .foot { padding: 12px 4px 0; }
.nav .foot .card { background: var(--surface); }
.main { padding: 22px 24px 0; gap: 16px; }
.card, .kpi, .lane, .dlg { border-radius: var(--radius); box-shadow: none; }
.card { padding: 16px; gap: 10px; background: var(--surface); border-color: var(--line); }
a.card:hover, .card.lift:hover { transform: none; border-color: var(--accent-line); }
.card > h2, .card > .row > h2, .card h2.ph { font: 600 15px var(--f-head); letter-spacing: 0; text-transform: none; color: var(--ink); }
.kicker { font: 500 12px var(--f-mono); letter-spacing: .1em; color: var(--muted); }
.btn { font: 600 13.5px var(--f-body); border-radius: 10px; min-height: 40px; padding: 8px 14px; background: var(--surface); border: 1px solid var(--line); }
.btn.primary { background: var(--accent); background-image: none; color: var(--accent-ink); border: 1px solid var(--accent); box-shadow: none; font-weight: 700; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.small { min-height: 34px; padding: 5px 11px; border-radius: 8px; }
.chip { border-radius: 999px; font-weight: 600; }
input[type=text], input[type=search], input[type=number], input[type=password], input[type=url], input[type=email], input[type=tel], input[type=date], input[type=datetime-local], input:not([type]), select, textarea { font: 14px var(--f-body); background: var(--surface2); border-radius: 10px; border-color: var(--line); }
.logo { display: none; }
.bar > span, .goalbar i { background: var(--accent); }
.stat .v, .kpi .v, .big, .cards4 .big { font-family: var(--f-head); color: var(--white); font-variant-numeric: tabular-nums; }
.ring .track { stroke: #141F2D; } .ring text { fill: var(--white); }
.toast { background: #0C2630; color: var(--ink); border: 1px solid var(--accent-line); border-radius: 10px; }
.credit { color: var(--muted); }
code, kbd, .mono, .log, .tiny.mono { font-family: var(--f-mono); }
/* Today: main column + right rail */
.bgrid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; margin: -22px -24px 0; }
.bgrid > .bmain { padding: 22px 0 0 24px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.bgrid > aside { border-left: 1px solid var(--line); padding: 22px 20px; display: grid; gap: 16px; align-content: start; min-height: calc(100vh - 65px); background: #080D15; }
.kpi4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi4 .card { gap: 4px; text-decoration: none; }
.kpi4 .card span { color: var(--muted); font-size: 12.5px; } .kpi4 .card b { font: 600 26px var(--f-head); color: var(--white); }
.ph { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 4px; }
.ph span { font: 500 12px var(--f-mono); letter-spacing: .06em; color: var(--muted); }
.btab { width: 100%; border-collapse: collapse; }
.btab td { padding: 8px 4px; border-top: 1px solid var(--line); }
.btab td:last-child { text-align: right; color: var(--muted); white-space: nowrap; font-family: var(--f-mono); font-size: 12.5px; }
.q { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.q .btn { flex: none; }
.log { color: var(--muted); line-height: 1.8; overflow-wrap: anywhere; font-size: 12.5px; } .log i { color: var(--accent); font-style: normal; }
.goalbar { height: 6px; background: #141F2D; border-radius: 3px; margin-top: 8px; overflow: hidden; } .goalbar i { display: block; height: 100%; border-radius: 3px; }
/* State language (same in every screen): working, queued, waiting for you, completed, failed, paused */
.wf-node { background: var(--surface2); border-radius: 10px; }
.wf-node.active { border-color: var(--st-work); background: #0C2630; }
.wf-node.done { border-color: #1F4A35; } .wf-node.waiting { border-color: var(--st-wait); border-style: solid; }
.wf-node.pending { border-style: dashed; } .wf-node.failed { border-color: var(--st-fail); }
.dot { width: 9px; height: 9px; }
.dot.active { background: var(--st-work); } .dot.waiting { background: var(--st-wait); } .dot.done { background: var(--st-done); }
.dot.failed { background: var(--st-fail); } .dot.queued { background: transparent; border: 1px dashed var(--st-queue); } .dot.paused { background: var(--st-pause); }
@keyframes ring-spin { to { transform: rotate(360deg); } }
.dot.active { box-shadow: 0 0 0 3px rgba(79,216,235,.18); }
@media (prefers-reduced-motion: reduce) { .dot.active { box-shadow: none; } }
@media (max-width: 1400px) { .bgrid { grid-template-columns: 1fr; } .bgrid > aside { border-left: 0; min-height: 0; padding: 0 24px; background: transparent; } }
@media (max-width: 860px) {
  .topbar .pill { display: none; } .topbar { padding: 10px 12px; gap: 10px; }
  .app { min-height: 0; }
  .main { padding: 16px 16px 96px; }
  h1 { font-size: 22px; }
  .bgrid { margin: -16px -16px 0; } .bgrid > .bmain { padding: 16px 16px 0; } .bgrid > aside { order: -1; padding: 16px 16px 0; }
  .kpi4 { grid-template-columns: 1fr 1fr; }
  .tabbar { background: var(--surface2); border-top: 1px solid var(--line); }
  .tabbar a { min-height: 52px; }
  .tabbar a[aria-current="page"] { color: var(--accent); }
}
.warn-text { color: var(--warn); } .good { color: var(--good); }
/* Technology registry: decision filter chips */
button.chip { border: 1px solid transparent; cursor: pointer; font: inherit; font-size: 12px; }
button.chip[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ===== Concept C: Creative Studio (Release 17). Scoped to the Create area; the shell stays concept A. ===== */
.studio-c {
  --c-ground: #121214; --c-surface: #1B1B1F; --c-surface2: #222228; --c-line: #2A2A30;
  --accent: #FF8A65; --accent-ink: #1E0D07; --c-blue: #7AA2FF; --good: #4ADE80; --gold: #FBBF24; --bad: #F87171;
  --f-head: "Sora", "Inter", "Hind Siliguri", system-ui, sans-serif;
  display: flex; flex-direction: column; gap: 18px;
  background: radial-gradient(1200px 400px at 0% -10%, rgba(255,138,101,.07), transparent 60%), var(--c-ground);
  margin: -22px -24px 0; padding: 22px 24px 8px; border-bottom: 1px solid var(--c-line);
}
.studio-c .card { background: var(--c-surface); border-color: var(--c-line); border-radius: 18px; }
.studio-c h1 { font: 600 28px/1.15 var(--f-head); }
.studio-c h2, .studio-c .sc-h2 { font: 600 16px var(--f-head); margin: 0 0 10px; }
.studio-c .btn { border-radius: 12px; }
.studio-c a:not(.btn):not(.sc-card) { color: var(--accent); }
.studio-c .dot.done { background: var(--good); } .studio-c .dot.waiting { background: var(--gold); } .studio-c .dot.failed { background: var(--bad); } .studio-c .dot.active { background: var(--accent); }
.sc-run { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--c-line); }
.sc-run:first-of-type { border-top: 0; }
.sc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.sc-board { display: grid; grid-template-columns: repeat(5, minmax(180px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.sc-lane { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 160px; }
.sc-lane-h { display: flex; align-items: center; gap: 4px; } .sc-lane-h h3 { font: 600 14px var(--f-head); flex: 1; }
.sc-n { font: 600 12px var(--f-mono, monospace); color: var(--muted); background: var(--c-surface2); border-radius: 99px; padding: 2px 8px; }
.sc-card { display: flex; flex-direction: column; gap: 3px; background: var(--c-surface2); border: 1px solid transparent; border-radius: 12px; padding: 10px; color: var(--ink); text-decoration: none; font-size: 13px; transition: border-color .15s, transform .15s; }
.sc-card:hover, .sc-card:focus-visible { border-color: var(--accent); transform: translateY(-1px); }
.sc-empty { border: 1px dashed var(--c-line); border-radius: 12px; padding: 10px; font-size: 12px; color: var(--muted); }
.sc-side { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.sc-crewlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: 18px; }
.sc-crew { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 0; border-top: 1px solid var(--c-line); }
.sc-crew > .tiny { flex-basis: 100%; padding-left: 42px; }
.sc-av { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font: 600 14px var(--f-head); background: rgba(255,138,101,.14); color: var(--accent); flex: 0 0 auto; }
.sc-bad { color: var(--bad); }
.studio-c input { min-height: 40px; }
@media (max-width: 1100px) { .sc-side { grid-template-columns: minmax(0, 1fr); } }
.sc-grid > * { min-width: 0; }
@media (max-width: 860px) { .studio-c { margin: -16px -16px 0; padding: 16px 16px 8px; } }
@media (max-width: 760px) {
  .sc-board { grid-template-columns: repeat(5, minmax(220px, 82vw)); scroll-snap-type: x mandatory; }
  .sc-lane { scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) { .sc-card { transition: none; } .sc-card:hover { transform: none; } }

/* ===== Release 19: concept A visual layer (graphics drawn from real data; motion only for real work) ===== */
.hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.hero .kicker { font: 500 12px var(--f-mono); letter-spacing: .1em; color: var(--muted); }
.hero h1 { font-size: 28px; margin-top: 4px; }
.card { box-shadow: 0 1px 0 rgba(255,255,255,.02) inset, 0 10px 30px -18px rgba(0,0,0,.6); }
.kpi4 .card { position: relative; overflow: hidden; transition: border-color .15s, transform .15s; }
.kpi4 .card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--accent), transparent 70%); opacity: .55; }
.kpi4 .card:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.spark { display: block; margin: 2px 0; }
.wf-graph { display: block; margin: 6px auto 4px; overflow: visible; }
.wf-graph .ring { animation: spin 3.2s linear infinite; transform-origin: center; transform-box: fill-box; }
.wf-graph .edge-live { stroke-dasharray: 6 6; animation: edge-flow 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes edge-flow { to { stroke-dashoffset: -24; } }
@keyframes breathe { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.wf-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); }
.wf-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.wf-legend i.q { border: 1px dashed var(--muted); }
/* The step list is the accessible text of the graph: shown on phones, kept for screen readers on wide screens. */
@media (min-width: 861px) { .wf-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
@media (max-width: 860px) { .wf-graph { display: none; } .wf-graph + .wf-legend { display: none; } }
.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; display: flex; flex-direction: column; gap: 10px; border-left: 1px solid var(--line); font-size: 13px; }
.timeline li { position: relative; display: flex; gap: 10px; }
.timeline li::before { content: ""; position: absolute; left: -19px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.timeline time { color: var(--muted); font-size: 12px; flex: 0 0 auto; }
#livePill .live-dot { display: inline-block; animation: breathe 1.8s ease-in-out infinite; }
#livePill.g { box-shadow: 0 0 12px -4px var(--good); }
@media (prefers-reduced-motion: reduce) { .wf-graph .ring, .wf-graph .edge-live, #livePill .live-dot { animation: none; } .kpi4 .card:hover { transform: none; } }

/* ===== Release 19: look switch — Creative Studio (C) across the whole app ===== */
:root[data-look="c"] {
  --bg: #121214; --surface: #1B1B1F; --surface2: #17171A; --line: #2A2A30;
  --ink: #EDEDF0; --muted: #A0A0AB; --faint: #A0A0AB;
  --accent: #FF8A65; --accent2: #7AA2FF; --accent-ink: #1E0D07; --accent-bg: #2A1A14; --accent-line: #5A3426;
  --gold: #FBBF24; --good: #4ADE80; --warn: #FBBF24; --bad: #F87171;
  --st-work: #FF8A65; --st-wait: #FBBF24; --st-done: #4ADE80; --st-fail: #F87171;
  --chip-gold: #2B2410; --chip-blue: #2A1A14; --chip-green: #12281A; --chip-red: #2E1616; --chip-teal: #14213A;
  --radius: 18px;
  --f-head: "Sora", "Inter", "Hind Siliguri", system-ui, sans-serif;
}
:root[data-look="c"] body { background: radial-gradient(1200px 500px at 0% -10%, rgba(255,138,101,.07), transparent 60%), var(--bg); }
:root[data-look="c"] .nav a, :root[data-look="c"] .nav details.nav-sec > summary { color: #C9C9D1; }
:root[data-look="c"] .nav a:hover, :root[data-look="c"] .nav details.nav-sec > summary:hover { background: #222228; }
:root[data-look="c"] .nav a[aria-current="page"] { background: #2A1A14; }
:root[data-look="c"] .pill.g { border-color: #1F4A30; } :root[data-look="c"] .pill.w { border-color: #4A3B17; } :root[data-look="c"] .pill.r { border-color: #4A1F22; }
:root[data-look="c"] .btn { border-radius: 12px; }
:root[data-look="c"] .kpi4 .card::before { background: linear-gradient(90deg, var(--accent), var(--accent2) 60%, transparent); }
:root[data-look="c"] .timeline li::before { border-color: var(--accent); }
/* Look picker in Settings */
.look-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.look-opt { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface2); cursor: pointer; color: var(--ink); text-align: left; font: inherit; }
.look-opt[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.look-opt .look-sw { display: flex; gap: 6px; } .look-opt .look-sw i { width: 22px; height: 22px; border-radius: 6px; display: block; }
.look-btn { background: none; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); min-height: 30px; padding: 4px 10px; font: 12px var(--f-mono); cursor: pointer; white-space: nowrap; }
.look-btn:hover { color: var(--ink); border-color: var(--muted); }

/* ===== Release 19: Creative Studio visual layer ===== */
.studio-c { --c-surface2: #222228; }
.sc-card { border-left: 3px solid var(--k, var(--c-line)); }
.sc-card-h { display: flex; gap: 8px; align-items: flex-start; }
.sc-kind { flex: 0 0 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--k); background: color-mix(in srgb, var(--k) 16%, transparent); }
.sc-avring { flex: 0 0 40px; }
.sc-crew > .tiny { padding-left: 50px; }
.sc-prod { border: 1px solid var(--c-line); border-radius: 16px; overflow: hidden; background: var(--c-surface2); margin-bottom: 10px; }
.sc-prod .sc-run { padding: 10px 12px; border-top: 0; }
.sc-prod-art { height: 64px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #C7D6FF; background: linear-gradient(110deg, #1A2340 30%, #2A3A6A 50%, #1A2340 70%); background-size: 400px 100%; }
.sc-prod.live .sc-prod-art { animation: shimmer 1.6s linear infinite; }
.sc-prod.wait .sc-prod-art { background: #2B2410; color: var(--gold); }
.sc-track { position: relative; height: 6px; margin: 0 12px 12px; border-radius: 99px; background: #2A2A30; }
.sc-track > i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, var(--accent), #7AA2FF); }
.sc-playhead { position: absolute; top: -4px; width: 3px; height: 14px; border-radius: 2px; background: #fff; box-shadow: 0 0 10px var(--accent); animation: bob 1.4s ease-in-out infinite; }
.sk { height: 54px; border-radius: 12px; background: linear-gradient(90deg, #1E1E23 0%, #2A2A31 50%, #1E1E23 100%); background-size: 400px 100%; animation: shimmer 1.4s linear infinite; }
.sk.short { height: 30px; width: 60%; }
@keyframes shimmer { from { background-position: -400px 0; } to { background-position: 400px 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .sc-prod.live .sc-prod-art, .sc-playhead, .sk { animation: none; } }

/* ===== Release 20: Launch & Earnings, invoices, social centre ===== */
.launch-strip { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); border-left: 3px solid var(--accent); }
.launch-strip .kicker { font: 500 11px var(--f-mono); letter-spacing: .1em; color: var(--accent); }
.next-card { border-color: var(--accent-line); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, var(--surface)), var(--surface)); }
.next-card .kicker { font: 500 12px var(--f-mono); letter-spacing: .08em; color: var(--accent); }
.next-card h2 { font-size: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; font-size: 13.5px; }
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; }
.stages li { border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; min-width: 0; }
.stages li b { font: 600 16px var(--f-head); } .stages li span { overflow-wrap: anywhere; }
.stages li.past { border-color: color-mix(in srgb, var(--good) 45%, var(--line)); } .stages li.past b { color: var(--good); }
.stages li.now { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; } .stages li.now b { color: var(--accent); }
.ltl, .ocl, .steps, .fsc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lt { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.lt.done b, .lt.skipped b { color: var(--muted); }
.fsc li { padding: 5px 0; font-size: 13.5px; } .fsc li.ok span { color: var(--good); }
.funnel { display: flex; flex-direction: column; gap: 6px; }
.funnel .fr { display: grid; grid-template-columns: 130px 1fr 32px; gap: 8px; align-items: center; }
.funnel .fb { height: 10px; border-radius: 99px; background: var(--surface2); overflow: hidden; } .funnel .fb i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.oc { border-top: 1px solid var(--line); padding: 12px 0; display: flex; flex-direction: column; gap: 6px; }
.soc .steps li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; padding: 4px 0; }
.soc .steps .opt { flex: 1 1 320px; }
fieldset { border: 0; padding: 0; margin: 4px 0; } legend { margin-bottom: 4px; }
@media (max-width: 860px) { .stages { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .grid3 { grid-template-columns: 1fr; } .funnel .fr { grid-template-columns: 110px 1fr 28px; } }

/* Release 21: money reports and releases */
.rp-bars { display: flex; align-items: flex-end; gap: 10px; height: 140px; padding: 8px 0; overflow-x: auto; }
.rp-col { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 34px; height: 100%; }
.rp-pair { flex: 1; display: flex; align-items: flex-end; gap: 3px; width: 100%; justify-content: center; }
.rp-bar { width: 10px; border-radius: 3px 3px 0 0; min-height: 1px; }
.rp-bar.rev, .rp-key.rev { background: var(--accent); }
.rp-bar.exp, .rp-key.exp { background: var(--gold, #FBBF24); }
.rp-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: middle; margin-right: 4px; }
.rp-share { display: grid; grid-template-columns: minmax(90px, 1fr) 2fr 52px; gap: 8px; align-items: center; margin: 6px 0; }
.rp-track { height: 8px; border-radius: 4px; background: var(--line, rgba(127,127,127,.25)); overflow: hidden; }
.rp-track span { display: block; height: 100%; background: var(--accent); }
.rel-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rel h2 { margin: 0; font-size: 1.05rem; }
.later-card { margin: 10px 0; }
.later-card > summary { cursor: pointer; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.later-card[open] > summary { margin-bottom: 8px; }
.inapp { border: 0; padding: 0; margin: 6px 0; display: grid; gap: 4px; }

/* ===== Release 22: owner's chosen look (26 Oct 2026) = the original command-centre mock-up (docs/ui-options/option-b.html):
   near-black ground, flat 8px panels, one monospace face everywhere, uppercase letter-spaced panel labels, cyan accent.
   It replaces the A and C looks app-wide; layout, screens, graphics and behaviour are unchanged. ===== */
:root, :root[data-look="c"] {
  --bg: #07090D; --surface: #0E1219; --surface2: #0A0E14; --line: #1C2330;
  --ink: #D8E1EE; --muted: #7F8BA0; --faint: #7F8BA0; --white: #FFFFFF;
  --accent: #5EE1F5; --accent2: #5BE39A; --accent-ink: #05121A; --accent-bg: #0B1A22; --accent-line: #16404C;
  --gold: #F4C35A; --good: #5BE39A; --warn: #F4C35A; --bad: #FF7A85; --violet: #A898FF;
  --st-work: #5EE1F5; --st-queue: #7F8BA0; --st-wait: #F4C35A; --st-done: #5BE39A; --st-fail: #FF7A85; --st-pause: #5B6678;
  --chip-gold: #2A2210; --chip-blue: #0B1A22; --chip-lilac: #1E1A33; --chip-green: #0E2A1D; --chip-red: #2E1418; --chip-teal: #0B1A22;
  --radius: 8px;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, Menlo, "Hind Siliguri", monospace;
  --f-head: var(--f-mono); --f-body: var(--f-mono);
}
html, body, :root[data-look="c"] body { font-size: 13.5px; line-height: 1.5; background: var(--bg); }
h1, .hero h1, .studio-c h1 { font: 600 22px/1.2 var(--f-head); letter-spacing: 0; color: var(--white); }
h2, .studio-c h2, .studio-c .sc-h2 { font: 600 14px var(--f-head); }
.card > h2, .card > .row > h2, .card h2.ph, .ph > h2 { font: 600 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card, .kpi, .lane, .dlg, .studio-c .card, :root[data-look="c"] .card { border-radius: 8px; background: var(--surface); border-color: var(--line); box-shadow: none; }
.kpi4 .card::before, :root[data-look="c"] .kpi4 .card::before { display: none; }
.kpi4 .card b, .stat .v, .kpi .v, .big, .cards4 .big { font: 600 22px var(--f-mono); color: var(--white); }
.topbar, :root[data-look="c"] .topbar { background: var(--surface); padding: 10px 18px; }
.topbar .brandb { color: var(--accent); font: 700 14px var(--f-mono); letter-spacing: .12em; }
.topbar input.cmd { background: #05070A; border-radius: 6px; font: 13.5px var(--f-mono); min-height: 36px; }
.pill { border-radius: 6px; font: 12.5px var(--f-mono); }
.nav, :root[data-look="c"] .nav { background: var(--bg); padding: 12px 0; flex-basis: 210px; }
.nav a, .nav details.nav-sec > summary, :root[data-look="c"] .nav a, :root[data-look="c"] .nav details.nav-sec > summary { border-radius: 0; padding: 7px 18px; min-height: 34px; font-size: 13.5px; color: var(--muted); }
.nav details.nav-sec > a { padding-left: 30px; font-size: 13px; }
.nav a:hover, .nav details.nav-sec > summary:hover, :root[data-look="c"] .nav a:hover { background: var(--surface2); color: var(--ink); }
.nav a[aria-current="page"], :root[data-look="c"] .nav a[aria-current="page"] { background: var(--accent-bg); color: var(--accent); font-weight: 500; box-shadow: inset 2px 0 0 var(--accent); }
.btn, :root[data-look="c"] .btn { font: 500 13px var(--f-mono); border-radius: 6px; min-height: 36px; padding: 6px 12px; background: var(--surface2); border: 1px solid var(--line); color: var(--ink); }
.btn.primary { background: var(--accent-bg); color: var(--accent); border: 1px solid var(--accent-line); font-weight: 600; }
.btn.primary:hover { border-color: var(--accent); filter: none; }
.btn.small { min-height: 30px; padding: 3px 9px; border-radius: 6px; }
.chip { border-radius: 6px; font-weight: 500; font-family: var(--f-mono); }
input[type=text], input[type=search], input[type=number], input[type=password], input[type=url], input[type=email], input[type=tel], input[type=date], input[type=datetime-local], input:not([type]), select, textarea { font: 13.5px var(--f-mono); background: #05070A; border-radius: 6px; }
.kicker, .hero .kicker { font: 500 11px var(--f-mono); letter-spacing: .14em; color: var(--muted); }
.bgrid > aside { background: var(--bg); }
.studio-c, :root[data-look="c"] .studio-c { --c-ground: var(--bg); --c-surface: var(--surface); --c-surface2: var(--surface2); --c-line: var(--line); --accent: #5EE1F5; --accent-ink: #05121A; --c-blue: #5EE1F5; --good: #5BE39A; --gold: #F4C35A; --bad: #FF7A85; --f-head: var(--f-mono); background: var(--bg); }
.sc-av { background: var(--accent-bg); color: var(--accent); border-radius: 6px; }
:root[data-look="c"] body { background: var(--bg); }
.toast { border-radius: 6px; font-family: var(--f-mono); }
svg text { font-family: var(--f-mono); }

/* Release 22: Income Control Centre, Opportunity Explorer, Eligibility tracker */
.ic-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ic-act { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.ic-act:first-child { border-top: 0; }
.ic-n { flex: 0 0 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--accent-line); color: var(--accent); border-radius: 6px; font-size: 12px; }
.ic-act .grow { flex: 1; min-width: 0; }
.ic-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.ic-kv { display: grid; gap: 2px; padding: 4px 0 8px; } .ic-kv b { font-size: 20px; color: var(--white); }
.ic-funnel { display: grid; gap: 6px; }
.ic-step { display: grid; grid-template-columns: 90px 1fr 36px; gap: 8px; align-items: center; } .ic-step b { text-align: right; font-size: 13px; }
.ic-bar { display: block; height: 6px; background: var(--surface2); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; } .ic-bar i { display: block; height: 100%; background: var(--accent); }
.ic-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.ic-side { display: grid; gap: 14px; min-width: 0; }
@media (max-width: 900px) { .ic-cols { grid-template-columns: 1fr; } }
.ic-grp { padding: 6px 0 10px; border-top: 1px solid var(--line); } .ic-grp:first-of-type { border-top: 0; }
.ic-ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; } .ic-ul li { overflow-wrap: anywhere; }
.od-scores { display: grid; gap: 8px; }
.od-s { display: grid; grid-template-columns: 190px 90px 1fr; gap: 10px; align-items: center; }
@media (max-width: 700px) { .od-s { grid-template-columns: 1fr auto; } .od-s .tiny { grid-column: 1 / -1; } }
.od-pips { display: inline-flex; gap: 3px; } .od-pips i { width: 12px; height: 8px; border-radius: 2px; background: var(--surface2); border: 1px solid var(--line); } .od-pips i.on { background: var(--accent); border-color: var(--accent); }
.el-list { display: grid; gap: 12px; }
.el .el-name { font: 600 14px var(--f-mono); letter-spacing: 0; text-transform: none; color: var(--ink); }
/* Release 23: Service Factory, Storefront Centre */
.pk-list { display: grid; gap: 12px; }
.pk .pk-name { font: 600 15px var(--f-mono); letter-spacing: 0; text-transform: none; color: var(--ink); }
.pk-ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 2px; }
.sf-pay { max-width: 420px; overflow-wrap: anywhere; }
.wz-biz { align-items: flex-start; padding: 6px 0; }
/* Release 24: Repair Centre */
.rp-stages { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rp-stages li { font: 500 12px var(--f-mono); padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); }
.rp-stages li.done { color: var(--good); border-color: #1F4A35; }
.rp-stages li.now { color: var(--accent); border-color: var(--accent); background: var(--accent-bg); }
.rp-ev li { margin: 4px 0; overflow-wrap: anywhere; }
.rp-pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.5 var(--f-mono); background: var(--surface2); border: 1px solid var(--line); border-radius: 6px; padding: 10px; max-height: 420px; overflow: auto; }

/* Release 25: free AI status bars */
.qbar{height:6px;background:var(--line,#1c2230);border-radius:3px;overflow:hidden;margin-top:4px;min-width:90px}
.qbar i{display:block;height:100%;background:#5EE1F5}
.qbar i.warn{background:#F5C25E}
.qbar i.bad{background:#F55E7A}

/* Release 27: thumbnail frame picker */
.tv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin:8px 0}
.tv-frame{display:flex;flex-direction:column;gap:4px;padding:4px;border:1px solid var(--line,#1c2230);border-radius:8px;background:transparent;color:inherit;cursor:pointer}
.tv-frame img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:4px}
.tv-frame[aria-pressed="true"]{border-color:#5EE1F5;box-shadow:0 0 0 2px #5EE1F5}

/* ===== Release 35: three looks and the five rooms.
   a = Mission control (owner's choice, 2 Nov 2026): deep navy, glowing cyan / pink / green panels, one code-style face.
   m = Mission control, readable: the same navy and neon, with a clean sans-serif for text you read.
   s = Calm slate: dark slate, one cyan accent, the clean sans-serif. Text colours are 4.5:1 or better in all three. ===== */
:root, :root[data-look="a"], :root[data-look="m"] {
  --bg: #070B1A; --surface: #0B1226; --surface2: #0E1631; --line: #1C2547;
  --ink: #E2E8FF; --muted: #8E97BC; --faint: #8E97BC; --white: #FFFFFF;
  --accent: #5EE1F5; --accent2: #4DFF9A; --accent-ink: #04121C; --accent-bg: #0D1F3A; --accent-line: #1F4E7A;
  --pink: #FF5FAE; --pink-bg: #2A0F22; --good: #4DFF9A; --gold: #F4C35A; --warn: #F4C35A; --bad: #FF7A85;
  --chip-blue: #0D1F3A; --chip-teal: #0D1F3A; --chip-green: #0C2A1E; --chip-red: #2E1022; --chip-lilac: #1E1A3A; --chip-gold: #2A2210;
  --glow-c: 0 0 0 1px rgba(94,225,245,.10), 0 0 20px rgba(94,225,245,.08);
  --glow-p: 0 0 0 1px rgba(255,95,174,.12), 0 0 20px rgba(255,95,174,.08);
  --glow-g: 0 0 0 1px rgba(77,255,154,.10), 0 0 20px rgba(77,255,154,.07);
  --radius: 6px;
}
:root[data-look="m"] { --bg: #0B1020; --surface: #121A2E; --surface2: #151F38; --line: #222C48; --radius: 10px;
  --f-head: "Figtree", "Hind Siliguri", system-ui, sans-serif; --f-body: "Figtree", "Hind Siliguri", system-ui, sans-serif; }
:root[data-look="s"] {
  --bg: #12151C; --surface: #1A1F29; --surface2: #202633; --line: #2C3342;
  --ink: #E7EAF1; --muted: #9AA2B4; --faint: #9AA2B4; --white: #FFFFFF;
  --accent: #5CB6D4; --accent2: #6CC28F; --accent-ink: #0D1A20; --accent-bg: #1B3340; --accent-line: #2F5A6C;
  --pink: #E08AAE; --pink-bg: #2E1A24; --good: #6CC28F; --gold: #E0B25A; --warn: #E0B25A; --bad: #F08A94;
  --chip-blue: #1B3340; --chip-teal: #1B3340; --chip-green: #173226; --chip-red: #331A20; --chip-lilac: #24213A; --chip-gold: #30281A;
  --glow-c: none; --glow-p: none; --glow-g: none; --radius: 10px;
  --f-head: "Figtree", "Hind Siliguri", system-ui, sans-serif; --f-body: "Figtree", "Hind Siliguri", system-ui, sans-serif;
}
html, body { background: var(--bg); font-family: var(--f-body); }
:root[data-look="a"] body, :root:not([data-look]) body { background: radial-gradient(1100px 520px at 50% -12%, rgba(94,225,245,.07), transparent 62%), var(--bg); }
:root[data-look="m"] body { background: radial-gradient(1100px 520px at 50% -12%, rgba(94,225,245,.05), transparent 62%), var(--bg); }
:root[data-look="m"] h1, :root[data-look="s"] h1 { font-weight: 800; font-size: 24px; }
.card, .kpi, .lane, .dlg { border-radius: var(--radius); background: var(--surface); border-color: var(--line); }
.card { box-shadow: var(--glow-c); }
.card.glow-p { border-color: color-mix(in srgb, var(--pink) 45%, var(--line)); box-shadow: var(--glow-p); }
.card.glow-g { border-color: color-mix(in srgb, var(--good) 40%, var(--line)); box-shadow: var(--glow-g); }
.card.glow-c { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: var(--glow-c); }
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.kicker { color: var(--accent); }
.nav { background: var(--bg); }
.nav a[aria-current="page"] { background: var(--accent-bg); color: var(--accent); box-shadow: inset 2px 0 0 var(--accent); }
/* five rooms on top of the menu, everything else folded under All tools */
.rooms { display: grid; gap: 2px; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.rooms a { font-weight: 600; color: var(--ink) !important; }
.rooms a svg { flex: none; color: var(--accent); }
.rooms a.earn svg { color: var(--pink); }
details.nav-all > summary { list-style: none; cursor: pointer; padding: 7px 18px; font: 600 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; min-height: 34px; }
details.nav-all > summary::-webkit-details-marker { display: none; }
details.nav-all > summary::after { content: "›"; margin-left: auto; transition: transform .15s; }
details.nav-all[open] > summary::after { transform: rotate(90deg); }
/* Home room and Library */
.room-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.room-cards .card { display: grid; gap: 6px; align-content: start; }
.room-cards .big-n { font: 700 28px var(--f-mono); font-variant-numeric: tabular-nums; }
.room-cards .glow-c .big-n { color: var(--accent); } .room-cards .glow-p .big-n { color: var(--pink); } .room-cards .glow-g .big-n { color: var(--good); }
.room-cards .item { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 13px; }
.room-cards .item span:last-child { font: 11px var(--f-mono); color: var(--muted); white-space: nowrap; }
.lib-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.lib-filters .field { min-width: 160px; }
.lib-filters .grow { flex: 1 1 220px; }
.lib-card { display: grid; gap: 6px; align-content: start; }
.lib-card[data-type="video"] { border-color: color-mix(in srgb, var(--pink) 45%, var(--line)); box-shadow: var(--glow-p); }
.lib-card[data-type="text"] { border-color: color-mix(in srgb, var(--good) 35%, var(--line)); box-shadow: var(--glow-g); }
.lib-card .thumb video, .lib-card .thumb img { width: 100%; max-height: 220px; object-fit: cover; border-radius: calc(var(--radius) - 2px); background: #000; }
.lib-card .thumb audio { width: 100%; }
.lib-text { margin: 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
@media (prefers-reduced-motion: reduce) { details.nav-all > summary::after { transition: none; } }
/* Home hub (Release 35), styled after the owner's reference picture */
.hub-top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hub-top .stat { display: grid; gap: 4px; }
.lbl { font: 600 10.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.big-n { font: 700 26px var(--f-mono); font-variant-numeric: tabular-nums; color: var(--white); }
.big-n.small-n { font-size: 15px; }
.glow-c .big-n { color: var(--accent); } .glow-p .big-n { color: var(--pink); } .glow-g .big-n { color: var(--good); }
.pk { color: var(--pink); } .cy { color: var(--accent); } .ok { color: var(--good); } .bad { color: var(--bad); }
.hub { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(560px, 2.4fr) minmax(220px, 1fr); gap: 12px; align-items: start; }
.hub-side-col { display: grid; gap: 12px; }
.hub-side, .hub-log { display: grid; gap: 2px; align-content: start; }
.hub-side .item, .hub-log .item { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 12.5px; min-width: 0; }
.hub-side .item > span:first-child, .hub-log .item > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.hub-side .item > span:last-child, .hub-log .item > span:last-child { font: 11px var(--f-mono); color: var(--muted); white-space: nowrap; }
.hub-side .item > span.pk:last-child { color: var(--pink); }
.hub-log .item > span.ok:last-child { color: var(--good); } .hub-log .item > span.bad:last-child { color: var(--bad); }
.hub-core { position: relative; height: 600px; min-width: 0; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub-lines path { fill: none; stroke: var(--line); stroke-width: 1.4; }
.hub-lines .ln-working { stroke: var(--accent); stroke-dasharray: 6 5; animation: flowdash 1.2s linear infinite; filter: drop-shadow(0 0 3px var(--accent)); }
.hub-lines .ln-done { stroke: color-mix(in srgb, var(--good) 60%, transparent); }
.hub-lines .ln-problem { stroke: var(--bad); }
@keyframes flowdash { to { stroke-dashoffset: -22; } }
.hub-centre { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 210px; height: 210px; border-radius: 50%; box-shadow: 0 0 40px rgba(94,225,245,.18); }
.hub-ring { width: 100%; height: 100%; }
.hub-ring .ring-n { font: 700 30px var(--f-mono); fill: var(--accent); }
.hub-ring .ring-l { font: 600 9px var(--f-mono); letter-spacing: .14em; fill: var(--muted); }
.hub-ring .ring-s { font: 10px var(--f-mono); fill: var(--muted); }
.hub-ring .seg-live { filter: drop-shadow(0 0 3px var(--accent)); }
.bot { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: 196px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; display: grid; gap: 3px; z-index: 1; }
.bot header { display: flex; justify-content: space-between; gap: 6px; font: 600 9.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.bot-tag { color: var(--accent); background: var(--accent-bg); padding: 1px 5px; border-radius: 3px; }
.bot-state { color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.bot-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); display: inline-block; }
.bot h3 { font: 700 12.5px var(--f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--white); margin: 0; }
.bot-task { margin: 0; font-size: 11.5px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bot-meta { margin: 0; font: 10.5px var(--f-mono); color: var(--muted); }
.bot.s-working { border-color: var(--accent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), 0 0 22px color-mix(in srgb, var(--accent) 35%, transparent); }
.bot.s-working .bot-state { color: var(--accent); } .bot.s-working .bot-state i { background: var(--accent); animation: botpulse 1.4s infinite; }
.bot.s-done { border-color: color-mix(in srgb, var(--good) 55%, var(--line)); box-shadow: 0 0 16px color-mix(in srgb, var(--good) 15%, transparent); }
.bot.s-done .bot-state { color: var(--good); } .bot.s-done .bot-state i { background: var(--good); }
.bot.s-problem { border-color: var(--bad); box-shadow: 0 0 16px color-mix(in srgb, var(--bad) 25%, transparent); }
.bot.s-problem .bot-state { color: var(--bad); } .bot.s-problem .bot-state i { background: var(--bad); }
.bot.s-idle, .bot.s-paused { opacity: .72; }
.bot.s-paused .bot-state i { background: var(--muted); }
@keyframes botpulse { 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }
/* how every day runs */
.day-flow { display: grid; gap: 10px; }
.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; counter-reset: none; }
.flow-steps li a { display: grid; gap: 2px; height: 100%; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface2); color: var(--ink); text-decoration: none; position: relative; }
.flow-steps li.fs-bot a { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.flow-steps li.fs-you a { border-color: var(--pink); box-shadow: 0 0 16px color-mix(in srgb, var(--pink) 25%, transparent); background: var(--pink-bg); }
.flow-steps li:not(:last-child) a::after { content: "›"; position: absolute; right: -8px; top: 50%; transform: translateY(-50%); color: var(--muted); font: 700 14px var(--f-mono); }
.fs-n { font: 600 10px var(--f-mono); color: var(--accent); letter-spacing: .1em; } .fs-you .fs-n { color: var(--pink); }
.flow-steps b { font-size: 12.5px; }
.fs-who { font-size: 11px; color: var(--ink); } .fs-you .fs-who { color: var(--pink); font-weight: 600; }
.fs-when, .fs-c { font: 10.5px var(--f-mono); color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .hub-lines .ln-working, .bot.s-working .bot-state i { animation: none; } }
@media (max-width: 1280px) { .flow-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } .flow-steps li:nth-child(4n) a::after { display: none; } }
@media (max-width: 1400px) {
  .hub { grid-template-columns: 1fr; }
  .hub-core { height: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .hub-lines { display: none; }
  .hub-centre { position: static; transform: none; grid-column: 1 / -1; justify-self: center; }
  .bot { position: static; transform: none; width: auto; }
}
@media (max-width: 700px) { .hub-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .flow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .flow-steps li a::after { display: none; } }

/* Release 38: video maker picture picker */
.vpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.vthumb { display: grid; gap: 4px; position: relative; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface2); cursor: pointer; min-width: 0; }
.vthumb input { position: absolute; top: 10px; left: 10px; }
.vthumb img, .vthumb video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 4px; background: #000; }
.vthumb span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vthumb:has(input:checked) { border-color: var(--accent); box-shadow: var(--glow-c); }

/* Release 39: researched topics */
.topic { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.topic .grow { flex: 1 1 320px; min-width: 0; display: grid; gap: 3px; }
.item-row { padding: 8px 0; border-top: 1px solid var(--line); gap: 8px; flex-wrap: wrap; }

/* ----- Release 41: agent rail ("hologram"): agents and the daily flow on the right of every screen ----- */
.arail { flex: 0 0 auto; margin: 12px 0 6px; padding: 10px 8px 10px; border: 1px solid var(--accent-line); border-radius: 10px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%), repeating-linear-gradient(0deg, transparent 0 3px, color-mix(in srgb, var(--accent) 4%, transparent) 3px 4px), var(--surface2); }
.arail[hidden], .arail-m[hidden] { display: none !important; }
.arail-h { display: flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; color: var(--accent); margin-bottom: 6px; }
.arail-h b { margin-left: auto; font-weight: 600; color: var(--muted); }
.arail-h b.on { color: var(--accent); text-shadow: 0 0 8px color-mix(in srgb, var(--accent) 70%, transparent); }
.arail-p { font-family: var(--f-mono); font-size: 11px; color: var(--warn, #F5C451); margin: 0 0 6px; }
.hexc { width: 22px; height: 22px; flex: 0 0 22px; overflow: visible; }
.hexc .hx-o { fill: color-mix(in srgb, var(--accent) 6%, transparent); stroke: var(--accent-line); stroke-width: 1.4; }
.hexc .hx-i { fill: none; stroke: var(--accent-line); stroke-width: 1; opacity: .7; }
.hexc .hx-c { fill: var(--accent-line); }
.arail-list { list-style: none; margin: 0; padding: 0; position: relative; }
.arail-list::before { content: ""; position: absolute; left: 10px; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: var(--line); }
.arail-list.live::before { background: linear-gradient(180deg, transparent, var(--accent), transparent) 0 0 / 100% 40% no-repeat, var(--line); animation: beam 3.2s linear infinite; }
@keyframes beam { from { background-position: 0 -40%; } to { background-position: 0 140%; } }
.arail-list a { display: flex; align-items: flex-start; gap: 8px; padding: 5px 4px 5px 0; min-height: 0; border-radius: 8px; color: var(--muted); position: relative; }
.arail-list a:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.ar-b { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ar-n { font-size: 12.5px; color: var(--ink); display: flex; gap: 6px; align-items: baseline; }
.ar-n i { font-style: normal; font-family: var(--f-mono); font-size: 9.5px; color: var(--faint); letter-spacing: .08em; }
.ar-t { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.arail-list a { text-decoration: none; }
.arail-side { flex: 0 0 244px; align-self: flex-start; position: sticky; top: 0; max-height: 100vh; overflow-y: auto; margin: 0; border-radius: 0; border-width: 0 0 0 1px; padding: 18px 12px; min-height: 100vh; box-sizing: border-box; }
.ar.s-working .hx-o { stroke: var(--accent); fill: color-mix(in srgb, var(--accent) 18%, transparent); filter: drop-shadow(0 0 4px var(--accent)); }
.ar.s-working .hx-i { stroke: var(--accent); }
.ar.s-working .hx-c, .hexc.live .hx-c { fill: var(--accent); animation: core 1.6s ease-in-out infinite; }
.hexc.live .hx-o { stroke: var(--accent); }
.ar.s-working .ar-t { color: var(--accent); }
.ar.s-done .hx-o { stroke: color-mix(in srgb, var(--accent2) 70%, transparent); } .ar.s-done .hx-c { fill: var(--accent2); }
.ar.s-problem .hx-o { stroke: var(--bad, #FF6B6B); } .ar.s-problem .hx-c { fill: var(--bad, #FF6B6B); } .ar.s-problem .ar-t { color: var(--bad, #FF6B6B); }
.ar.s-paused { opacity: .55; }
@keyframes core { 0%, 100% { opacity: .55; r: 2.6px; } 50% { opacity: 1; r: 3.6px; } }
.arail-flow { display: grid; grid-template-columns: 1fr 8px 1fr 8px 1fr 8px 1fr; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.arail-flow > i { height: 1px; background: var(--line); }
.arail-flow a.fl-n { text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 0; padding: 4px 0; min-height: 0; border-radius: 6px; color: var(--muted); font-size: 9px; letter-spacing: .04em; text-align: center; }
.fl-n b { font-family: var(--f-mono); font-size: 14px; color: var(--muted); font-weight: 600; }
.fl-n.on b { color: var(--accent); text-shadow: 0 0 8px color-mix(in srgb, var(--accent) 60%, transparent); }
.arail-m { display: none; }
@media (max-width: 1180px) {
  .arail-side { display: none !important; }
  .arail-m { display: block; border-bottom: 1px solid var(--accent-line); background: var(--surface2); }
  .arail-m-in { display: flex; gap: 4px; overflow-x: auto; padding: 6px 10px; scrollbar-width: none; }
  .arail-m .ar { display: flex; align-items: center; gap: 5px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 11.5px; color: var(--muted); text-decoration: none; white-space: nowrap; flex: 0 0 auto; }
  .arail-m .ar.s-working { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 30%, transparent); }
  .arail-m .hexc { width: 16px; height: 16px; flex-basis: 16px; }
}
@media (prefers-reduced-motion: reduce) { .arail-list.live::before, .ar.s-working .hx-c, .hexc.live .hx-c { animation: none; } }

/* ----- Release 45: Home dashboard (layout B), platform cards and pages ----- */
body[data-view="start"] #arail, body[data-view="start"] #railM, body[data-view="classic"] #arail, body[data-view="classic"] #railM { display: none !important; }
.dash-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.dash-kpis .stat { display: grid; gap: 2px; text-decoration: none; color: var(--ink); }
.hub.dash { grid-template-columns: minmax(230px, 1fr) minmax(520px, 2.4fr) minmax(220px, 1fr); }
.hub-side .item.todo { align-items: center; }
.hub-side .item.todo > a.btn { flex: 0 0 auto; }
.plat-card { display: grid; gap: 3px; text-decoration: none; color: var(--ink); padding: 10px 12px; }
.plat-card:hover { border-color: var(--accent); }
.plat-add { display: flex; align-items: center; justify-content: center; min-height: 54px; border-style: dashed; border-color: var(--accent); color: var(--accent); text-decoration: none; }
.card.dash-ctl { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-start; padding: 10px; }
.dash-ctl .sw { width: 28px; height: 15px; border-radius: 9px; background: color-mix(in srgb, var(--pink) 18%, var(--surface2)); position: relative; display: inline-block; vertical-align: middle; }
.dash-ctl .sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--pink); transition: left .2s; }
.dash-ctl .sw.on { background: color-mix(in srgb, var(--pink) 55%, transparent); } .dash-ctl .sw.on::after { left: 15px; background: #fff; }
.dash-ctl a.pk-on, .dash-ctl a#ctlAuto { border-color: var(--pink); color: var(--pink); }
.dash-low { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr); gap: 12px; align-items: start; }
/* hex agents in the hub */
.bot.hexbot { background: transparent; border: 0; box-shadow: none; padding: 0; display: flex; align-items: flex-start; gap: 6px; width: min(200px, 29%); }
.bot.hexbot .bot-task { -webkit-line-clamp: 2; }
.bot.hexbot .bot-hex { width: 40px; height: 40px; flex: 0 0 40px; overflow: visible; }
.bot.hexbot .bot-b { display: grid; gap: 1px; min-width: 0; padding: 4px 6px; border-radius: 8px; background: color-mix(in srgb, var(--bg) 70%, transparent); }
.bot-hex .hx-o { fill: color-mix(in srgb, var(--accent) 6%, transparent); stroke: var(--accent-line); stroke-width: 1.4; }
.bot-hex .hx-i { fill: none; stroke: var(--accent-line); stroke-width: .9; }
.bot-hex .hx-c { fill: var(--accent-line); }
.bot.hexbot.s-working, .bot.hexbot.s-done, .bot.hexbot.s-problem { border: 0; box-shadow: none; }
.bot.hexbot.s-working .bot-hex { filter: drop-shadow(0 0 8px var(--accent)); }
.bot.hexbot.s-working .hx-o { stroke: var(--accent); fill: color-mix(in srgb, var(--accent) 22%, transparent); }
.bot.hexbot.s-working .hx-i { stroke: var(--accent); } .bot.hexbot.s-working .hx-c { fill: var(--accent); animation: core 1.6s ease-in-out infinite; }
.bot.hexbot.s-done .hx-o { stroke: color-mix(in srgb, var(--good) 70%, transparent); } .bot.hexbot.s-done .hx-c { fill: var(--good); }
.bot.hexbot.s-problem .hx-o { stroke: var(--bad); } .bot.hexbot.s-problem .hx-c { fill: var(--bad); }
.bot.hexbot .bot-tag { background: transparent; padding: 0; }
.hub-core { background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 55%), repeating-linear-gradient(0deg, transparent 0 3px, color-mix(in srgb, var(--accent) 3%, transparent) 3px 4px); border: 1px solid var(--line); border-radius: var(--radius); }
.hub-lines .ln-flow { fill: none; stroke: var(--pink); stroke-opacity: .45; stroke-width: 1.2; stroke-dasharray: 3 6; animation: flowdash 2.4s linear infinite; }
.plat-nav { display: grid; gap: 1px; margin-top: 8px; }
.plat-nav .nav-group { margin: 6px 12px 2px; }
.pdot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); display: inline-block; }
.pdot.on { background: var(--good); box-shadow: 0 0 6px var(--good); }
@media (max-width: 1280px) { .dash-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dash-low { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .hub.dash { grid-template-columns: 1fr; } .bot.hexbot { width: auto; min-width: 0; } .bot.hexbot .bot-b { min-width: 0; } }
@media (max-width: 700px) { .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .hub-lines .ln-flow, .bot.hexbot.s-working .hx-c { animation: none; } }
/* Release 47: autopilot */
.note.ap-on { border-color: var(--pink); background: color-mix(in srgb, var(--pink) 10%, var(--surface)); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0; }
#ctlPilot { border-color: var(--pink); color: var(--pink); }
/* Release 48: quick approve, monetization bars */
.qa-card { max-width: 560px; margin: 0 auto; touch-action: pan-y; transition: transform .15s; user-select: none; }
.qa-card[data-dir="ok"] { box-shadow: 0 0 0 2px var(--good); } .qa-card[data-dir="no"] { box-shadow: 0 0 0 2px var(--bad); }
.qa-media { width: 100%; max-height: 52vh; border-radius: 10px; background: #000; object-fit: contain; }
.qa-text { white-space: pre-wrap; max-height: 34vh; overflow: auto; margin: 0; }
.qa-btns { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; } .qa-btns .btn { min-height: 52px; font-size: 15px; }
.qa-reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.mon-bar { display: grid; gap: 4px; margin: 6px 0; } .mon-bar .bar { height: 7px; background: var(--surface2); border-radius: 5px; overflow: hidden; } .mon-bar .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--pink)); }
/* Release 50: channel pack */
.cp { gap: 6px; } .cp-p { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; }

/* ----- Release 54: work map. Home keeps its layout; the agent hub is smaller with today's flow beside it. ----- */
.core-pair { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr); gap: 12px; align-items: stretch; min-width: 0; }
.hub-core.compact { height: 600px; }
.day-rail { display: grid; gap: 8px; align-content: start; }
.dr-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.df { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 2px; position: relative; }
.df::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: repeating-linear-gradient(180deg, var(--accent) 0 6px, transparent 6px 12px); opacity: .55; animation: dfflow 1.6s linear infinite; }
@keyframes dfflow { to { background-position: 0 12px; } }
.df::after { content: ""; position: absolute; left: 8px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px 3px var(--accent); animation: dfrun 6s ease-in-out infinite; }
@keyframes dfrun { 0% { top: 10px; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: calc(100% - 18px); opacity: 0; } }
.df-step a { position: relative; display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 8px 7px 0; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 12px; border: 1px solid transparent; }
.df-step a:hover { border-color: var(--accent-line); background: var(--surface2); }
.df-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); justify-self: center; z-index: 1; }
.df-done .df-dot { border-color: var(--good); background: var(--good); }
.df-now a { border-color: var(--accent-line); background: var(--accent-bg); }
.df-now .df-dot { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-line), 0 0 12px var(--accent); animation: dfpulse 1.6s ease-in-out infinite; }
@keyframes dfpulse { 50% { box-shadow: 0 0 0 6px transparent, 0 0 18px var(--accent); } }
.df-idle .df-l { color: var(--muted); }
.df-l { min-width: 0; overflow-wrap: anywhere; }
.df-c { font: 10.5px var(--f-mono); color: var(--muted); white-space: nowrap; }
.df-now .df-c { color: var(--accent); }
.df-who { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
.df-who b { font: 600 9px var(--f-mono); padding: 0 4px; border-radius: 4px; background: var(--chip-lilac); color: var(--listed); }
.df-who b.s2 { background: color-mix(in srgb, var(--pink) 18%, var(--surface2)); color: var(--pink); }
@media (prefers-reduced-motion: reduce) { .df::before, .df-now .df-dot { animation: none; } .df::after { display: none; } }
@media (max-width: 1400px) { .hub-core.compact { height: auto; } }
@media (max-width: 860px) { .core-pair { grid-template-columns: 1fr; } }

/* the strip at the top of each tab */
.daystrip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface2); }
.ds-steps { display: flex; align-items: center; overflow-x: auto; max-width: 100%; padding: 2px; }
.ds-node { flex: 0 0 auto; font: 11px var(--f-mono); padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; white-space: nowrap; }
.ds-node:hover { color: var(--ink); border-color: var(--accent-line); }
.ds-node.here { color: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px -2px var(--accent); }
.ds-link { flex: 0 0 14px; height: 1px; background: var(--line); }
.ds-what { flex: 1 1 260px; min-width: 0; font-size: 12px; color: var(--muted); }
.ds-full { font-size: 12px; white-space: nowrap; }
.ds-fold { background: none; border: 0; color: var(--muted); font-size: 16px; line-height: 1; padding: 2px 6px; cursor: pointer; border-radius: 6px; }
.ds-fold:hover { color: var(--ink); background: var(--surface); }

/* How it works */
.hiw-map img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.hiw-map { display: grid; gap: 8px; }
.hiw-day { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hiw-day li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; font-size: 13px; padding-top: 6px; border-top: 1px solid var(--line); }
.hiw-day li span:first-child { color: var(--accent); font-size: 12px; }
.hiw-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.hiw-step { display: grid; gap: 3px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface2); min-width: 0; overflow-wrap: anywhere; }

/* Release 54: Home work chart */
.day-rail svg.wm { width: 100%; height: auto; display: block; }
.wm-lane { fill: color-mix(in srgb, var(--ink) 1.5%, transparent); stroke: var(--line); stroke-dasharray: 3 4; }
.wm-lt { font: 600 8.5px var(--f-mono); letter-spacing: .1em; fill: var(--muted); text-transform: uppercase; }
.wm-e { fill: none; stroke: #3a4f66; stroke-width: 1.4; marker-end: url(#wm-a0); }
.wm-e.flow { stroke: var(--accent); stroke-dasharray: 5 6; animation: wmdash 1.1s linear infinite; marker-end: url(#wm-ac); }
.wm-e.yes { stroke: var(--good); stroke-dasharray: 5 6; animation: wmdash 1.1s linear infinite; marker-end: url(#wm-ag); }
.wm-e.opt { stroke: var(--listed); stroke-dasharray: 3 5; opacity: .7; marker-end: url(#wm-al); }
@keyframes wmdash { to { stroke-dashoffset: -22; } }
.wm-n rect { fill: var(--surface2); stroke: #2a3a4c; stroke-width: 1.2; transition: stroke .2s; }
.wm-n:hover rect, .wm-n:focus-visible rect { stroke: var(--accent); }
.wm-n:focus-visible { outline: none; }
.wm-n .t { font: 700 10px var(--f-mono); fill: var(--ink); }
.wm-n .s { font: 8.5px var(--f-mono); fill: var(--muted); }
.wm-n.people rect { stroke: color-mix(in srgb, var(--pink) 40%, var(--line)); }
.wm-n.st-done rect { stroke: var(--good); } .wm-n.st-done .s { fill: var(--good); }
.wm-n.st-now rect { stroke: var(--accent); fill: color-mix(in srgb, var(--accent) 9%, var(--surface2)); filter: url(#wm-gC); animation: wmbreathe 2.2s ease-in-out infinite; } .wm-n.st-now .s { fill: var(--accent); }
.wm-n.st-wait rect { stroke: var(--pink); fill: color-mix(in srgb, var(--pink) 9%, var(--surface2)); filter: url(#wm-gP); animation: wmbreathe 1.6s ease-in-out infinite; } .wm-n.st-wait .s { fill: var(--pink); }
.wm-n.st-start rect { stroke: var(--gold); fill: color-mix(in srgb, var(--gold) 9%, var(--surface2)); filter: url(#wm-gG); animation: wmbreathe 1.3s ease-in-out infinite; } .wm-n.st-start .s { fill: var(--gold); }
.wm-n.st-off rect { stroke-dasharray: 4 3; opacity: .55; } .wm-n.st-off text { opacity: .6; }
@keyframes wmbreathe { 50% { stroke-width: 2.4; } }
.wm-badge circle { stroke: var(--bg); stroke-width: 2; } .wm-badge text { font: 700 8.5px var(--f-mono); fill: #07090D; text-anchor: middle; }
.wm-spark { fill: #eaffff; filter: url(#wm-gC); }
.wm-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); }
.wm-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; border: 1.5px solid; margin-right: 5px; vertical-align: -2px; }
.lg-now { border-color: var(--accent) !important; box-shadow: 0 0 6px var(--accent); } .lg-wait { border-color: var(--pink) !important; box-shadow: 0 0 6px var(--pink); } .lg-start { border-color: var(--gold) !important; box-shadow: 0 0 6px var(--gold); } .lg-done { border-color: var(--good) !important; } .lg-off { border-color: #2a3a4c !important; border-style: dashed !important; }
@media (prefers-reduced-motion: reduce) { .wm-e.flow, .wm-e.yes, .wm-n rect { animation: none; } .wm-spark { display: none; } }
.core-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }


/* Release 54: the agent hub keeps its exact look, drawn at a smaller scale so it fits beside the chart */
.hub-core.compact { height: 600px; overflow: visible; }
.hub-core.compact .hub-scale { position: absolute; left: 0; top: 0; width: 160%; height: 160%; transform: scale(.625); transform-origin: 0 0; }
.hub-core.compact .hub-centre { width: 210px; height: 210px; }
@media (max-width: 1400px) { .hub-core.compact { height: auto; } .hub-core.compact .hub-scale { position: static; width: auto; height: auto; transform: none; display: contents; } }

/* Release 55: app address */
.addr-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.addr-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
.addr-steps li > div { display: grid; gap: 6px; min-width: 0; }
.addr-n { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--accent-line); color: var(--accent); display: grid; place-items: center; font: 600 11px var(--f-mono); }
.addr-steps li.done .addr-n { border-color: var(--good); color: var(--good); }
.addr-list { display: grid; gap: 6px; }
.addr-code { font: 12px var(--f-mono); padding: 4px 8px; border-radius: 6px; background: var(--surface2); border: 1px solid var(--line); overflow-wrap: anywhere; }

/* Release 56: setup and limits */
.pg-steps { padding-left: 18px; margin: 0 0 8px; display: grid; gap: 4px; }
.pg-card h3 { margin: 0 0 6px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-size: 11.5px; }

/* Release 57: create-on-the-platforms checklist */
.cl-item { border-top: 1px solid var(--line); padding: 6px 0; }
.cl-item summary { cursor: pointer; list-style: none; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.cl-item summary::-webkit-details-marker { display: none; }
.cl-s { color: var(--muted); font-family: var(--f-mono); } .cl-s.ok { color: var(--good); }
.cl-body { display: grid; gap: 6px; padding: 8px 0 4px 18px; }
.cl-f { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.cl-v { font-size: 12.5px; overflow-wrap: anywhere; }
@media (max-width: 560px) { .cl-f { grid-template-columns: 1fr auto; } .cl-f > .tiny { grid-column: 1 / -1; } }

/* ---------- Release 62: Live operations panel (Part 16). Motion = SVG dash + transform only; Calm and reduced-motion stop it. ---------- */
.liveops { --lo-v: var(--violet, #A898FF); --lo-o: #FF9F5A; }
.lo-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.lo-head h2 { margin: 0; }
.lo-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex: 1; min-width: 200px; }
.lo-ctl { display: flex; gap: 6px; margin-left: auto; }
.lo-dotlive { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; }
.lo-dotlive.on { background: var(--good); box-shadow: 0 0 8px var(--good); animation: lo-blink 1.6s ease-in-out infinite; }
.lo-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr) 260px; gap: 12px; margin-top: 12px; }
.lo-grid.nomap { grid-template-columns: 260px minmax(0, 1fr); }
.lo-rail { border: 1px solid color-mix(in srgb, var(--lo-v) 45%, transparent); border-radius: 12px; padding: 12px; font-family: var(--f-mono); font-size: 12px; background: color-mix(in srgb, var(--lo-v) 6%, var(--surface2)); }
.lo-k { color: var(--lo-v); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.lo-sub { color: var(--muted); font-size: 11px; }
.lo-awake { font-size: 16px; margin: 8px 0; color: var(--muted); }
.lo-awake.st-active { color: var(--lo-v); } .lo-awake.st-done { color: var(--good); }
.lo-steps { list-style: none; padding: 0 0 0 2px; margin: 8px 0; border-left: 1px solid color-mix(in srgb, var(--lo-v) 45%, transparent); }
.lo-steps li { position: relative; padding: 0 0 10px 12px; color: var(--muted); }
.lo-steps li::before { content: ""; position: absolute; left: -5px; top: 3px; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--lo-v); background: var(--surface2); }
.lo-steps li.hit::before { background: var(--lo-v); box-shadow: 0 0 8px var(--lo-v); }
.lo-steps b { color: var(--ink); font-weight: 600; }
.lo-big { font: 700 24px var(--f-mono); }
.lo-map { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%), var(--surface2); min-width: 0; }
.lo-runhead { font-size: 12px; color: var(--muted); margin-bottom: 4px; overflow-wrap: anywhere; }
.lo-runhead b { color: var(--ink); }
.lo-calls { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.lo-call { font: 11px var(--f-mono); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; overflow-wrap: anywhere; }
.lo-call.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 50%, transparent); }
.lo-idle { display: grid; gap: 4px; place-content: center; text-align: center; min-height: 150px; }
.lo-side { display: grid; gap: 10px; align-content: start; min-width: 0; }
.lo-box { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--surface2); }
.lo-box h3, .lo-log h3, .lo-health h3 { font: 700 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.lo-prow { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.lo-prow .lo-tag.wide { grid-column: 1 / -1; }
.lo-bar { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.lo-bar i { display: block; height: 100%; background: var(--accent); }
.lo-tag { font: 10px var(--f-mono); color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
.lo-int { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 12.5px; }
.lo-int li::before { content: "⚠ "; color: var(--gold); } .lo-int li.bad::before { color: var(--bad); } .lo-int li.info::before { content: "• "; color: var(--accent); }
.lo-int a { color: var(--ink); }
.lo-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 10px; }
.lo-tile { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; gap: 2px; background: var(--surface2); }
.lo-tile .lo-pc { font: 700 13px var(--f-mono); color: var(--muted); }
.lo-tile.st-done .lo-pc { color: var(--good); } .lo-tile.st-active { border-color: var(--accent); } .lo-tile.st-active .lo-pc { color: var(--accent); }
.lo-tile.st-waiting .lo-pc { color: var(--gold); } .lo-tile.st-failed .lo-pc { color: var(--bad); }
.lo-low { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; margin-top: 10px; }
.lo-log { font: 11.5px/1.7 var(--f-mono); color: var(--muted); max-height: 220px; overflow: auto; overflow-wrap: anywhere; }
.lo-log b { color: var(--ink); font-weight: 600; }
.lo-health { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; align-content: start; }
.lo-health h3 { grid-column: 1 / -1; }
.lo-h { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 12px; }
.lo-hd { width: 8px; height: 8px; border-radius: 50%; margin-top: 4px; flex: none; background: var(--muted); }
.hs-ok .lo-hd { background: var(--good); box-shadow: 0 0 6px var(--good); } .hs-warn .lo-hd { background: var(--gold); } .hs-bad .lo-hd { background: var(--bad); }
.hs-off .lo-hd { background: transparent; border: 1px dashed var(--muted); }
.ds-live { margin-left: 6px; }
@keyframes lo-dash { to { stroke-dashoffset: -30; } }
@keyframes lo-blink { 50% { opacity: .35; } }
.liveops.calm *, .tab-hidden .liveops * { animation: none !important; }
.liveops.calm .lo-link.on i { display: none; }
@media (prefers-reduced-motion: reduce) { .liveops * { animation: none !important; } .lo-link.on i { display: none; } }
@media (max-width: 1100px) { .lo-grid { grid-template-columns: 1fr; } .lo-low { grid-template-columns: 1fr; } }
.lo-flist { display: none; list-style: none; margin: 4px 0; padding: 0 0 0 4px; border-left: 2px solid var(--line); }
.lo-flist li { position: relative; padding: 4px 0 8px 14px; font-size: 13px; }
.lo-flist li::before { content: ""; position: absolute; left: -7px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); }
.lo-flist li.st-done::before { border-color: var(--good); background: var(--good); }
.lo-flist li.st-active::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.lo-flist li.st-waiting::before { border-color: var(--gold); } .lo-flist li.st-failed::before { border-color: var(--bad); }
@media (max-width: 700px) { .lo-flow { display: none; } .lo-flist { display: block; } .lo-ctl { margin-left: 0; } }
.lo-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 0; padding: 10px 2px; }
.lo-node { display: grid; gap: 2px; min-width: 104px; max-width: 150px; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); }
.lo-node b { font-size: 13px; line-height: 1.25; } .lo-node span { font: 11px var(--f-mono); color: var(--muted); overflow-wrap: anywhere; }
.lo-node.st-done { border-color: color-mix(in srgb, var(--good) 70%, transparent); }
.lo-node.st-active { border-color: var(--accent); box-shadow: 0 0 14px -2px color-mix(in srgb, var(--accent) 70%, transparent); }
.lo-node.st-active span { color: var(--accent); }
.lo-node.st-waiting, .lo-node.gate { border-color: var(--gold); } .lo-node.st-failed { border-color: var(--bad); } .lo-node.st-skip { border-style: dashed; opacity: .6; }
.lo-link { position: relative; flex: 1 0 18px; max-width: 64px; height: 2px; background: var(--line); overflow: hidden; }
.lo-link.done { background: color-mix(in srgb, var(--good) 60%, transparent); }
.lo-link.on { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.lo-link.on i { position: absolute; top: -3px; left: 0; width: 14px; height: 8px; border-radius: 4px; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: lo-run 1.4s linear infinite; }
@keyframes lo-run { from { transform: translateX(-14px); } to { transform: translateX(64px); } }
@media (max-width: 700px) { .liveops .lo-flow { display: none; } .liveops .lo-flist { display: block; } }
.lo-verdict { font: 700 13px var(--f-mono); margin-top: 6px; } .lo-verdict.good { color: var(--good); } .lo-verdict.warn { color: var(--gold); } .lo-verdict.bad { color: var(--bad); }
.lo-tools { margin-top: 10px; } .lo-tools h3 { font: 700 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
/* Release 64: business command centre (top of Control centre) */
.cmd h3 { font: 700 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.cmd-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.cmd-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13.5px; }
.cmd-list.warn li::marker { color: var(--gold); }
.cmd-ladder td.cmd-st { text-align: center; color: var(--muted); } .cmd-ladder td.cmd-st.done { color: var(--good); font-weight: 700; }
.cmd-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.cmd-steps li { display: flex; gap: 8px; align-items: baseline; font-size: 13.5px; }
.cmd-mark { width: 18px; flex: none; color: var(--muted); } .cmd-steps li.done .cmd-mark { color: var(--good); }

/* Release 66: Mission control, the owner's design mix (A constellation + glowing stage tiles, B summary row and
   approval centre), monospace like the rest of the shell. Colours come from the theme variables. */
.mc { display: flex; flex-direction: column; gap: 16px; }
.mc .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.mc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.mc-head h2 { margin: 0; }
.mc-sumrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); padding: 0; }
.mc-sum { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-right: 1px solid var(--line); }
.mc-sum:last-child { border-right: 0; }
.mc-sum b { font-size: 26px; color: var(--ink); }
.mc-sum b.mc-hot { color: var(--gold); }
.mc-k { font-size: 11px; letter-spacing: 2px; color: var(--muted); }
.mc-sub { font-size: 12px; color: var(--muted); }
.mc-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 16px; }
.mc-con { background: radial-gradient(520px 420px at 50% 45%, var(--accent-bg) 0%, var(--surface) 70%); }
.mc-svg { width: 100%; height: auto; display: block; font-family: inherit; }
.mc-svg .mc-orbit { fill: none; stroke: var(--line); stroke-dasharray: 2 6; }
.mc-svg .mc-orbit2 { fill: none; stroke: var(--line); opacity: .5; }
.mc-svg line { stroke: var(--line); stroke-width: 1; }
.mc-svg line.b-done, .mc-svg line.b-working { stroke: var(--accent-line); stroke-width: 1.6; }
.mc-svg line.b-problem { stroke: var(--bad); opacity: .6; }
.mc-svg line.mc-beam.b-working { stroke: var(--accent); stroke-dasharray: 6 6; animation: mcflow 1.2s linear infinite; }
.mc-svg .mc-dot { fill: var(--line); }
.mc-svg .mc-dot.d-done { fill: var(--good); }
.mc-svg .mc-dot.d-working { fill: var(--accent); animation: mcpulse 1.6s ease-in-out infinite; }
.mc-svg .mc-dot.d-problem { fill: var(--bad); }
.mc-svg .mc-dot.d-paused { fill: var(--muted); }
.mc-svg .mc-hex { fill: var(--accent-bg); stroke: var(--line); stroke-width: 1.5; }
.mc-svg .mc-hex.h-done, .mc-svg .mc-hex.h-working { stroke: var(--accent); }
.mc-svg .mc-hex.h-problem { stroke: var(--bad); }
.mc-svg .mc-hexn { font-size: 11px; font-weight: 700; fill: var(--muted); }
.mc-svg .mc-hexn.h-done, .mc-svg .mc-hexn.h-working { fill: var(--accent); }
.mc-svg .mc-tl { font-size: 11px; letter-spacing: 1px; fill: var(--ink); }
.mc-svg .mc-ts { font-size: 10px; fill: var(--muted); }
.mc-svg .mc-ts.t-done { fill: var(--good); } .mc-svg .mc-ts.t-working { fill: var(--accent); } .mc-svg .mc-ts.t-problem { fill: var(--bad); }
.mc-svg a:focus-visible .mc-tl { text-decoration: underline; }
.mc-svg .mc-core { fill: var(--surface2); stroke: var(--accent-line); stroke-width: 2; }
.mc-svg .mc-core-ring { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; }
.mc-svg .mc-core-ring.live { animation: mcpulse 3s ease-in-out infinite; }
.mc-svg .mc-big { font-size: 30px; font-weight: 700; fill: var(--ink); }
.mc-svg .mc-small { font-size: 10px; letter-spacing: 1px; fill: var(--muted); }
.mc-teams { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }
.mc-teams li { border: 1px solid var(--line); border-radius: 12px; padding: 2px 9px; color: var(--muted); }
.mc-teams li.done { border-color: var(--accent-line); color: var(--ink); }
.mc-teams li.working { border-color: var(--accent); color: var(--accent); }
.mc-live .mc-ev { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.mc-live .mc-t { color: var(--muted); flex-shrink: 0; min-width: 44px; }
.mc-appr { border-color: var(--gold); }
.mc-appr .item { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.mc-you { color: var(--gold); }
.mc-stages { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); gap: 8px; }
.mc-st a { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; color: var(--ink); text-decoration: none; min-height: 44px; }
.mc-st a b { font-size: 20px; }
.mc-st.st-done a { border-color: var(--accent-line); background: var(--accent-bg); }
.mc-st.st-active a { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-line), 0 0 18px -6px var(--accent); }
.mc-st.st-you a { border-color: var(--gold); box-shadow: 0 0 18px -8px var(--gold); }
.mc-st.st-you .mc-sub { color: var(--gold); }
.mc-low { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.mc-prov { margin: 8px 0; font-size: 13px; }
.mc-bar { height: 6px; background: var(--line); border-radius: 3px; margin-top: 4px; overflow: hidden; }
.mc-bar i { display: block; height: 6px; background: var(--good); }
@keyframes mcpulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes mcflow { to { stroke-dashoffset: -12; } }
@media (prefers-reduced-motion: reduce) { .mc-svg * { animation: none !important; } }
.mc-teams li a { color: inherit; text-decoration: none; display: inline-block; min-height: 24px; }
.mc-teams li a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mc-low .item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }

/* ---------- Release 69: the owner's Home is back, upgraded (10 Nov 2026). Every moving effect uses transform or
   opacity only (no animated filters, sizes or background positions), so phones draw it cheaply; sections out of view,
   the app in the background, Calm and the system's reduce-motion setting all stop it. Light shows only real work. ---------- */
/* agent reactor: two counter-rotating orbits, a glowing arc and a ripple round the core while agents work */
.home-fx .hub-centre { isolation: isolate; }
.home-fx .hub-centre .hub-ring { position: relative; z-index: 2; }
.fx-orbit, .fx-arc, .fx-ripple { position: absolute; border-radius: 50%; pointer-events: none; z-index: 1; will-change: transform; }
.fx-orbit.o1 { inset: -16px; border: 1.5px dashed color-mix(in srgb, var(--accent) 38%, transparent); animation: fx-spin 46s linear infinite; }
.fx-orbit.o2 { inset: -32px; border: 1px dotted color-mix(in srgb, var(--good) 45%, transparent); animation: fx-spin 70s linear infinite reverse; }
.fx-arc { inset: -6px; border: 3px solid transparent; border-top-color: var(--accent); border-right-color: color-mix(in srgb, var(--accent) 30%, transparent); opacity: .35; animation: fx-spin 9s linear infinite; }
.hub-centre.fx-live .fx-arc { opacity: 1; animation-duration: 4s; }
.fx-ripple { inset: 18px; border: 2px solid var(--accent); opacity: 0; }
.hub-centre.fx-live .fx-ripple { animation: fx-ripple 2.8s ease-out infinite; }
.hub-centre.fx-live { box-shadow: 0 0 60px rgba(94,225,245,.32); }
@keyframes fx-spin { to { transform: rotate(360deg); } }
@keyframes fx-ripple { from { transform: scale(.85); opacity: .7; } to { transform: scale(1.35); opacity: 0; } }
/* spokes: a static neon glow under live lines and light running from a working agent into the core */
.hub-lines .ln-working { filter: none; }
.hub-lines .ln-glow { fill: none; stroke-width: 7; stroke-linecap: round; opacity: .22; }
.hub-lines .ln-glow.g-working { stroke: var(--accent); } .hub-lines .ln-glow.g-problem { stroke: var(--bad); opacity: .3; }
.hub-lines .ln-spark { fill: #E9FCFF; }
.bot.hexbot.s-working .bot-hex { filter: drop-shadow(0 0 6px var(--accent)); }
.bot.hexbot.s-working .hx-c, .ar.s-working .hx-c, .hexc.live .hx-c { animation: fx-core 1.6s ease-in-out infinite; }
@keyframes fx-core { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.bot.s-working .bot-state i { animation: fx-core 1.4s ease-in-out infinite; box-shadow: 0 0 8px var(--accent); }
/* the side rail's beam: a moving light, not a moving background */
.arail-list.live::before { background: var(--line); animation: none; }
.arail-list.live { overflow: hidden; }
.arail-list.live::after { content: ""; position: absolute; left: 10px; top: 0; width: 2px; height: 40%; border-radius: 2px; background: linear-gradient(180deg, transparent, var(--accent), transparent); animation: fx-beam 3.2s linear infinite; pointer-events: none; }
@keyframes fx-beam { from { transform: translateY(-100%); } to { transform: translateY(250%); } }
/* workflow map: glow under live arrows, light on each of them, halos that breathe behind live boxes */
.wm-eg { fill: none; stroke-width: 7; stroke-linecap: round; opacity: .2; }
.wm-eg.flow { stroke: var(--accent); } .wm-eg.yes { stroke: var(--good); opacity: .14; }
.wm-spark2 { fill: #E9FCFF; } .wm-spark2.yes { fill: var(--good); }
.wm-n.st-now rect.wm-r, .wm-n.st-wait rect.wm-r, .wm-n.st-start rect.wm-r { filter: none; animation: none; }
.wm-n rect.wm-halo { fill: none; filter: none; stroke-width: 7; opacity: .15; animation: fx-glow 2.2s ease-in-out infinite; }
.wm-n rect.wm-halo.h-now { stroke: var(--accent); } .wm-n rect.wm-halo.h-wait { stroke: var(--pink); animation-duration: 1.6s; } .wm-n rect.wm-halo.h-start { stroke: var(--gold); animation-duration: 1.3s; }
@keyframes fx-glow { 0%, 100% { opacity: .12; } 50% { opacity: .5; } }
/* how every day runs: a light streak across the stages; steps with real work glow */
.fs-comet { position: relative; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin: 2px 0 12px; }
.fs-comet i { position: absolute; left: 0; top: 0; width: 18%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--accent), #E9FCFF); animation: fx-comet 6s linear infinite; will-change: transform; }
@keyframes fx-comet { from { transform: translateX(-100%); } to { transform: translateX(560%); } }
.flow-steps li.fs-live > a { position: relative; box-shadow: 0 0 0 1px var(--accent), 0 0 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.flow-steps li.fs-you.fs-live > a { box-shadow: 0 0 0 1px var(--pink), 0 0 18px color-mix(in srgb, var(--pink) 40%, transparent); }
.fs-glow { position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 55%, transparent); opacity: 0; animation: fx-glow 2.4s ease-in-out infinite; pointer-events: none; }
.fs-you .fs-glow { box-shadow: 0 0 26px color-mix(in srgb, var(--pink) 60%, transparent); }
@media (max-width: 1400px) { .home-fx .hub-centre { position: relative; } }
/* numbers row: a glowing line under each number; it breathes when something waits for you */
.dash-kpis .stat { position: relative; overflow: hidden; }
.kbar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent); opacity: .45; }
.kbar.hot { background: var(--pink); box-shadow: 0 0 12px var(--pink); animation: fx-core 2s ease-in-out infinite; }
/* the rest of the app: the same effects without the costly kinds */
.wf-link.on { background: var(--accent); background-size: auto; animation: fx-core 1.4s ease-in-out infinite; }
.sk, .sc-prod.live .sc-prod-art { animation: fx-core 1.4s ease-in-out infinite; }
.df::before { animation: none; }
/* stop: out of view, app in the background, Calm, reduce motion */
.fx-paused *, .fx-paused *::before, .fx-paused *::after, .tab-hidden .home-fx *, .tab-hidden .home-fx *::before, .tab-hidden .home-fx *::after, .tab-hidden .arail-list::after { animation-play-state: paused !important; }
.home-calm .fx-orbit, .home-calm .fx-arc, .home-calm .fx-ripple, .home-calm .hub-centre, .home-calm .fs-comet i, .home-calm .wm-halo, .home-calm .fs-glow, .home-calm .kbar, .home-calm .hx-c, .home-calm .wm-e, .home-calm .hub-lines path { animation: none !important; }
.home-calm .ln-spark, .home-calm .wm-spark, .home-calm .wm-spark2 { display: none; }
@media (prefers-reduced-motion: reduce) {
  .fx-orbit, .fx-arc, .fx-ripple, .hub-centre, .fs-comet i, .wm-halo, .fs-glow, .kbar, .hx-c, .arail-list.live::after, .wf-link.on, .sk, .sc-prod-art { animation: none !important; }
  .ln-spark, .wm-spark2 { display: none; }
}

/* ---------- Release 70: tidy Home layouts (owner picks A, B or C). Same sections, clean rows and columns, equal gaps,
   cards in a row share one height. The agent reactor stays a ring at every size: it scales to its box (container
   query), and agents shrink to a hex and a name when the box is small, so nothing overlaps or falls into a list. ---------- */
.hl { display: grid; gap: 16px; }
.hl-r { display: grid; gap: 16px; min-width: 0; align-items: stretch; }
.hl-r > * { min-width: 0; margin: 0; }
.hl-top { gap: 12px; }
.hl-top .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.hl-stage { grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); }
.hl-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hl-duo { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.hl-split { grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); align-items: start; }
.hl-main, .hl-side, .hl-stack { display: grid; gap: 16px; align-content: start; }
.hl-hero { justify-items: center; }
.hl-hero > .hub-core { width: 100%; max-width: 980px; }
.hl .card { margin: 0; }
.hl .day-rail { height: 100%; }
/* the reactor box */
.hl .hub-core.compact, .hl .hub-core { position: relative; height: auto; display: block; aspect-ratio: 4 / 3; container-type: inline-size; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.hl-hero .hub-core { aspect-ratio: 16 / 9; }
.hl-main .hub-core { aspect-ratio: 16 / 10; }
.hl .hub-core .hub-scale { position: absolute; inset: 0; width: 100%; height: 100%; transform: none; display: block; }
.hl .hub-core .hub-lines { display: block; }
.hl .hub-core .hub-centre { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: clamp(120px, 30cqw, 220px); height: clamp(120px, 30cqw, 220px); grid-column: auto; }
.hl .hub-core .bot, .hl .hub-core .bot.hexbot { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: clamp(120px, 24cqw, 210px); }
.hl .hub-core .bot-task { -webkit-line-clamp: 1; }
.hl .hub-core .bot-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@container (max-width: 760px) {
  .hl .hub-core .bot.hexbot { width: auto; max-width: 30cqw; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
  .hl .hub-core .bot.hexbot .bot-hex { width: 30px; height: 30px; flex-basis: 30px; }
  .hl .hub-core .bot.hexbot .bot-b { padding: 2px 4px; justify-items: center; }
  .hl .hub-core .bot .bot-task, .hl .hub-core .bot .bot-meta, .hl .hub-core .bot .bot-tag { display: none; }
  .hl .hub-core .bot header { justify-content: center; }
  .hl .hub-core .bot h3 { font-size: 10px; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30cqw; }
  .hl .hub-core .bot-state { font-size: 8.5px; }
  .hl .hub-core .hub-ring .ring-n { font-size: 26px; }
}
@container (max-width: 420px) {
  .hl .hub-core .bot .bot-state { display: none; }
  .hl .hub-core .bot h3 { font-size: 9px; max-width: 26cqw; }
  .hl .hub-core .bot.hexbot .bot-hex { width: 24px; height: 24px; flex-basis: 24px; }
  .hl .hub-core .fx-orbit.o2 { inset: -18px; } .hl .hub-core .fx-orbit.o1 { inset: -9px; }
}
/* platforms: one tidy list */
.plat-list { display: grid; gap: 2px; align-content: start; }
.plat-list h2 { margin-bottom: 6px; }
.pl-row { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; grid-template-areas: "dot name views" "dot state state"; column-gap: 10px; row-gap: 1px; align-items: center; padding: 9px 4px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; min-height: 44px; }
.pl-row:first-of-type { border-top: 0; }
.pl-row:hover b { color: var(--accent); }
.pl-dot { grid-area: dot; width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.pl-dot.on { background: var(--good); box-shadow: 0 0 8px var(--good); } .pl-dot.no { background: var(--bad); }
.pl-row b { grid-area: name; font-size: 13px; } .pl-v { grid-area: views; font: 11px var(--f-mono); color: var(--muted); }
.pl-s { grid-area: state; font: 11px var(--f-mono); color: var(--muted); } .pl-s.no { color: var(--bad); } .pl-s.on { color: var(--good); }
.pl-add { margin-top: 8px; display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1px dashed var(--accent); border-radius: var(--radius); color: var(--accent); text-decoration: none; }
/* tidy cards in rows: same height, tidy lists */
.hl-trio > .card, .hl-duo > .card, .hl-stack > .card { height: 100%; }
.hl .dash-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.hl .flow-steps { grid-template-columns: repeat(8, minmax(0, 1fr)); }
/* laptop widths */
@media (max-width: 1280px) {
  .hl-stage, .hl-split { grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); }
  .hl .flow-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hl .dash-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* tablets and phones: one tidy column */
@media (max-width: 900px) {
  .hl-stage, .hl-trio, .hl-duo, .hl-split { grid-template-columns: minmax(0, 1fr); }
  .hl .hub-core, .hl-hero .hub-core, .hl-main .hub-core { aspect-ratio: 1 / 1; }
}
@media (max-width: 560px) {
  .hl, .hl-r, .hl-main, .hl-side, .hl-stack { gap: 12px; }
  .hl .dash-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hl .dash-kpis .stat { padding: 10px 8px; } .hl .dash-kpis .big-n { font-size: 22px; } .hl .dash-kpis .lbl { font-size: 9.5px; letter-spacing: .06em; }
  .hl .flow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hl .card.dash-ctl { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; } .hl .card.dash-ctl > * { flex: 0 0 auto; }
}
/* the reactor sits beside the work map: it takes the row's height instead of growing wider than its column */
.hl-stage > .hub-core { aspect-ratio: auto; height: 100%; min-height: 540px; }
.hl-r > .hub-core { align-self: stretch; justify-self: stretch; max-width: 100%; }
.hl-split .hl-main > .hub-core, .hl-hero > .hub-core { align-self: start; }
@media (max-width: 900px) { .hl-stage > .hub-core { aspect-ratio: 1 / 1; height: auto; min-height: 0; } }
.hl-hero .hub-core { aspect-ratio: 16 / 10; max-width: 900px; }
.hl-main .flow-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hl-main .flow-steps li:nth-child(4n) a::after { display: none; }
/* final arrangement: live operations beside the live log; every card glows softly in its section's colour */
.hl-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hl-pair > #liveops > .card, .hl-pair > * > .liveops { height: 100%; margin: 0; }
.hl-stack > .card { height: auto; } .hl-stack > .card:last-child { flex: 1; }
.hl .card, .hl .hub-core { border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent), 0 0 22px color-mix(in srgb, var(--accent) 9%, transparent); }
.hl .card.glow-p { border-color: color-mix(in srgb, var(--pink) 55%, var(--line)); box-shadow: 0 0 22px color-mix(in srgb, var(--pink) 14%, transparent); }
.hl .card.glow-g { border-color: color-mix(in srgb, var(--good) 45%, var(--line)); box-shadow: 0 0 22px color-mix(in srgb, var(--good) 10%, transparent); }
.hl .card.glow-c { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
@media (max-width: 900px) { .hl-pair { grid-template-columns: minmax(0, 1fr); } }
.hl-stack { grid-template-rows: auto 1fr; }
/* ---------- Release 70 (final): the previous Home order, tidy. To-dos, reactor, work map and platforms side by side
   at one height; cards stretch and their spare space holds moving graphics from real data (agent pulse, platform
   signal, next 24 hours). Transform and opacity only; Calm and reduce-motion still stop them. ---------- */
.hl-quad { grid-template-columns: minmax(240px, 1fr) minmax(0, 1.75fr) minmax(300px, 1.2fr) minmax(230px, .95fr); }
.hl-quad > * { height: 100%; }
.hl-quad > .hub-core { aspect-ratio: auto; min-height: 600px; }
.hl-quad > .hub-side, .hl-quad > .hub-side-col > .plat-list, .hl-low > .card { display: flex; flex-direction: column; }
.hl-quad > .hub-side-col { display: grid; grid-template-rows: 1fr; }
.hl-quad > .hub-side-col > .plat-list { height: 100%; }
.hl-low { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr); }
.hl-low > .card { height: 100%; }
.fx-fill { position: relative; flex: 1 1 auto; min-height: 110px; margin-top: 12px; border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); border-radius: 10px; overflow: hidden; background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%), var(--surface2); }
.fx-cap { position: absolute; left: 10px; top: 8px; z-index: 2; font: 600 9.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
/* agent pulse */
.fx-bars { position: absolute; left: 10px; right: 10px; bottom: 10px; top: 28px; display: flex; align-items: flex-end; gap: 6px; }
.fx-bars i { flex: 1; height: var(--h); border-radius: 3px 3px 1px 1px; background: linear-gradient(180deg, var(--accent-line), color-mix(in srgb, var(--accent-line) 40%, transparent)); transform-origin: bottom; }
.fx-bars i.b-working { background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 25%, transparent)); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 50%, transparent); animation: fx-bar 1.4s ease-in-out infinite; }
.fx-bars i.b-done { background: linear-gradient(180deg, var(--good), color-mix(in srgb, var(--good) 20%, transparent)); }
.fx-bars i.b-problem { background: linear-gradient(180deg, var(--bad), color-mix(in srgb, var(--bad) 20%, transparent)); }
.fx-bars i:nth-child(2n) { animation-delay: -.5s; } .fx-bars i:nth-child(3n) { animation-delay: -.9s; }
@keyframes fx-bar { 0%, 100% { transform: scaleY(.82); } 50% { transform: scaleY(1); } }
.fx-scan { position: absolute; top: 0; bottom: 0; left: 0; width: 30%; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 16%, transparent), transparent); animation: fx-scanx 4s linear infinite; pointer-events: none; }
@keyframes fx-scanx { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
/* platform signal */
.fx-radar { min-height: 150px; display: grid; place-items: center; }
.fx-dish { position: relative; width: min(150px, 80%); aspect-ratio: 1; border-radius: 50%; margin-top: 18px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: radial-gradient(circle, transparent 0 32%, color-mix(in srgb, var(--accent) 22%, transparent) 33% 34%, transparent 35% 64%, color-mix(in srgb, var(--accent) 22%, transparent) 65% 66%, transparent 67%); }
.fx-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, color-mix(in srgb, var(--accent) 55%, transparent), transparent 25%); animation: fx-spin 4s linear infinite; }
.fx-dish b { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--line); }
.fx-dish b.on { background: var(--good); box-shadow: 0 0 10px var(--good); animation: fx-core 1.8s ease-in-out infinite; }
/* next 24 hours */
.fx-time { min-height: 96px; }
.fx-track { position: absolute; left: 12px; right: 12px; top: 50%; height: 2px; background: color-mix(in srgb, var(--accent) 25%, var(--line)); overflow: visible; }
.fx-track::before { content: ""; position: absolute; inset: -3px 0; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--accent) 40%, transparent) 0 1px, transparent 1px 25%); }
.fx-run { position: absolute; left: 0; top: -2px; width: 22%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, transparent, var(--accent), #E9FCFF); animation: fx-comet 5s linear infinite; }
.fx-track b { position: absolute; top: -6px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; border: 2px solid var(--pink); background: var(--pink-bg); box-shadow: 0 0 10px var(--pink); }
.fx-hours { position: absolute; left: 12px; right: 12px; bottom: 8px; display: flex; justify-content: space-between; font: 9.5px var(--f-mono); color: var(--muted); }
.home-calm .fx-bars i, .home-calm .fx-scan, .home-calm .fx-sweep, .home-calm .fx-run, .home-calm .fx-dish b { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .fx-bars i, .fx-scan, .fx-sweep, .fx-run, .fx-dish b { animation: none !important; } }
/* laptop: reactor and map on top, to-dos and platforms below */
@media (max-width: 1360px) {
  .hl-quad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hl-quad > .hub-core { order: 1; min-height: 520px; } .hl-quad > [data-sec="chart"] { order: 2; } .hl-quad > .hub-side { order: 3; } .hl-quad > .hub-side-col { order: 4; }
  .hl-low { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .hl-low > [data-sec="log"] { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hl-quad, .hl-low { grid-template-columns: minmax(0, 1fr); }
  .hl-quad > .hub-side { order: 0; } .hl-quad > .hub-core { aspect-ratio: 1 / 1; min-height: 0; height: auto; }
}
/* the reactor stays a perfect circle at the top of its column; the activity wave fills the rest */
.hl-quad > .hub-core { display: flex; flex-direction: column; padding: 0 0 12px; }
.hl-quad .hub-core .hub-scale { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 1 / 1; flex: none; }
.hl-quad .hub-core .fx-wave { margin: 0 12px; }
.hl-quad > [data-sec="chart"] { display: flex; flex-direction: column; }
.fx-wave { min-height: 120px; }
.fx-wv { position: absolute; left: 0; top: 26px; width: 200%; height: 48px; }
.fx-wv path { fill: none; stroke: var(--accent-line); stroke-width: 2; vector-effect: non-scaling-stroke; }
.fx-wave.live .fx-wv { animation: fx-wave 3s linear infinite; } .fx-wave.live .fx-wv path { stroke: var(--accent); filter: none; }
@keyframes fx-wave { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.fx-counts { position: absolute; left: 10px; right: 10px; bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px 14px; font: 11px var(--f-mono); color: var(--muted); }
.fx-counts b { color: var(--white); } .fx-counts b.cy { color: var(--accent); } .fx-counts b.ok { color: var(--good); } .fx-counts b.bad { color: var(--bad); }
.fx-gauges { min-height: 140px; display: grid; align-content: end; gap: 8px; padding: 30px 10px 10px; }
.fx-g { display: grid; grid-template-columns: minmax(0, 1fr) 1.4fr auto; gap: 8px; align-items: center; font: 11px var(--f-mono); color: var(--muted); }
.fx-g i { position: relative; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.fx-g i em { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 6px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.fx-g.pk i em { background: var(--pink); box-shadow: 0 0 10px var(--pink); } .fx-g.ok i em { background: var(--good); box-shadow: 0 0 10px var(--good); }
.fx-g i em::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); width: 40%; animation: fx-shine 2.6s linear infinite; }
@keyframes fx-shine { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.fx-g b { color: var(--white); min-width: 2ch; text-align: right; }
.fx-dish { width: min(190px, 86%); }
.home-calm .fx-wv, .home-calm .fx-g i em::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .fx-wv, .fx-g i em::after { animation: none !important; } }
@media (min-width: 1361px) { .hl-quad { grid-template-columns: minmax(230px, .9fr) minmax(0, 1.7fr) minmax(300px, 1.15fr) minmax(220px, .9fr); } }
@media (max-width: 900px) { .hl-quad .hub-core { aspect-ratio: auto; } }
.hl .hl-quad > .hub-core.compact { display: flex; flex-direction: column; }
.hl-quad .hub-core .fx-wave { flex: 1 1 auto; }
.fx-gauges { align-content: space-evenly; }
.fx-wave .fx-wv { top: calc(50% - 30px); height: 60px; }
@media (max-width: 900px) { .hl .hl-quad > .hub-core.compact { height: auto; aspect-ratio: auto; min-height: 0; } }

/* ===== Release 74: polish and pin, speed pass ===== */
/* The pinned strip: stays under the top bar on every screen. */
.strip { position: sticky; top: var(--tb-h, 65px); z-index: 28; display: flex; gap: 8px; padding: 6px 22px; background: var(--surface2); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip-c { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; white-space: nowrap; font: 12px var(--f-mono); color: var(--ink); background: var(--surface); min-height: 30px; }
.strip-c b { font: 700 13px var(--f-mono); } .strip-c span { color: var(--ink); opacity: .86; }
.strip-c.g b { color: var(--good); } .strip-c.w b { color: var(--warn); } .strip-c.r b { color: var(--bad); } .strip-c.c b { color: var(--accent); }
.strip-c.r { border-color: #4A1F25; } .strip-c.w { border-color: #4A3B17; }
.strip-c:hover, .strip-c:focus-visible { border-color: var(--accent); }
/* Tabs inside a screen stay in reach while you scroll. */
.viewroot > .tabs { position: sticky; top: calc(var(--tb-h, 65px) + var(--strip-h, 0px)); z-index: 6; background: var(--bg, #070b1a); padding: 8px 0; margin: 0 0 4px; }
/* One rhythm everywhere: the same gap between cards and the same heading size on every screen. */
.viewroot > section.card + section.card, .viewroot > form > section.card + section.card, .viewroot > div > section.card + section.card { margin-top: 14px; }
.viewroot .card > h2 { font-size: 15px; letter-spacing: .02em; margin: 0; }
.viewroot .item + .item { margin-top: 8px; }
/* Speed: long screens draw only what is near the screen; cards don't force the rest of the page to re-lay out. */
.viewroot > section.card, .viewroot > div > section.card { contain: layout style; }
.viewroot .scroll table tbody tr { content-visibility: auto; contain-intrinsic-size: auto 44px; }
.mw-card, .mw-task { content-visibility: auto; contain-intrinsic-size: auto 150px; }
/* Home: AI services panel */
.api-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.api-s { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; min-width: 0; }
.api-s.off { border-style: dashed; } /* no fade: faded text fails the contrast check */
.api-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; }
.api-bar i { display: block; height: 100%; width: var(--w, 0%); border-radius: 6px; background: var(--good); transform-origin: left; transition: width .4s; }
.api-s.w .api-bar i { background: var(--warn); } .api-s.r .api-bar i { background: var(--bad); }
/* A device that can't hold the frame rate gets the lighter set: effects slow down and soften, nothing is removed. */
html.lite .fx-fill *, html.lite .home-fx * { animation-duration: 6s !important; }
html.lite .fx-orbit, html.lite .fx-ripple, html.lite .wm-spark2 { animation-play-state: paused !important; }
html.lite .card { box-shadow: none; }
@media (max-width: 720px) { .strip { padding: 6px 12px; } .strip-c span { max-width: 150px; overflow: hidden; text-overflow: ellipsis; } }
@media (prefers-reduced-motion: reduce) { .api-bar i { transition: none; } }

/* Release 77: Simple mode. Help box on every screen, How we work, All tools search, daily automation card, Arrange Home. */
.nav-help { display: block; margin: 6px 0 2px; padding: 6px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .9rem; }
.nav-help:hover, .nav-help[aria-current="page"] { background: var(--surface2); }
.nav-find { display: block; font-weight: 600; }
.helpbox { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface2); padding: 6px 12px; margin: 0 0 12px; }
.helpbox > summary { cursor: pointer; font-size: .9rem; font-weight: 600; padding: 4px 0; min-height: 24px; }
.helpbox dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; margin: 6px 0; font-size: .9rem; }
.helpbox dt { font-weight: 600; color: var(--ink); } .helpbox dd { margin: 0; }
@media (max-width: 600px) { .helpbox dl { grid-template-columns: minmax(0, 1fr); } .helpbox dd { margin-bottom: 6px; } }
.auto-card.on { border-color: var(--good); }
.hw-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hw-step { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.hw-step p { margin: 2px 0 0; }
.hw-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface2); border: 1px solid var(--line); font-weight: 700; }
.hl-c { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 44px; gap: 12px; }
.hl-cell { grid-column: var(--x) / span var(--w); grid-row: var(--y) / span var(--h); min-width: 0; min-height: 0; overflow: auto; border-radius: var(--radius); }
.hl-cell > * { height: 100%; margin: 0; box-sizing: border-box; }
.hl .hl-cell > .hub-core { aspect-ratio: auto; height: 100%; }
@media (max-width: 900px) { .hl-c { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; } .hl-cell { grid-column: auto; grid-row: auto; overflow: visible; } .hl-cell > * { height: auto; } .hl .hl-cell > .hub-core { aspect-ratio: 1 / 1; } }
.dlg.dlg-wide { width: min(1200px, calc(100vw - 24px)); }
.arr-grid { position: relative; border: 1px dashed var(--line); border-radius: var(--radius); min-height: 300px; touch-action: none; user-select: none;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: var(--cw, 60px) 100%; }
.arr-box { position: absolute; margin: 3px; padding: 6px 8px; border: 1px solid var(--accent); border-radius: 8px; background: var(--surface2); color: var(--ink); cursor: grab; display: flex; flex-direction: column; gap: 2px; overflow: hidden; box-sizing: border-box; }
.arr-box:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.arr-box.moving { cursor: grabbing; opacity: .85; z-index: 2; }
.arr-box b { font-size: .85rem; } .arr-rs { position: absolute; right: 2px; bottom: 0; width: 24px; height: 24px; display: grid; place-items: center; cursor: nwse-resize; font-style: normal; color: var(--accent); }

/* Release 78: Home tidy (no empty space under the agents or the work map) and one shared upgrade for every screen. */
.hl-quad > .hub-core { justify-content: center; }
.hl-quad .hub-core .hub-scale { margin-block: auto; }
.hl-quad > [data-sec="chart"] { justify-content: space-between; }
.hl-quad > [data-sec="chart"] > :not(h2):not(:last-child) { flex: 1 1 auto; }
.hl .flow-steps li a { min-height: 150px; transition: transform .18s ease, border-color .18s ease; }
.hl .flow-steps li a:hover, .hl .flow-steps li a:focus-visible { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 10px 26px -14px var(--accent); }
.hl .flow-steps li b { font-size: 15px; }
.hl .flow-steps li.fs-you a { box-shadow: 0 0 0 1px #ff6fae, 0 0 26px -6px #ff6fae; }
@media (prefers-reduced-motion: reduce) { .hl .flow-steps li a { transition: none; } }

/* Page header on every screen: icon chip, accent kicker, a soft divider. */
#view .viewroot > header:first-of-type, #view .viewroot > .head:first-of-type { padding: 4px 0 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(94,225,245,.06), transparent 60%) bottom / 100% 1px no-repeat; }
#view .viewroot > header:first-of-type h1 { font-size: 26px; display: flex; align-items: center; gap: 12px; }
.h-ico { flex: none; width: 38px; height: 38px; border-radius: 11px; display: inline-grid; place-items: center; color: var(--accent); background: var(--surface2); border: 1px solid var(--line); box-shadow: 0 0 18px -8px var(--accent); }
.h-ico svg { width: 20px; height: 20px; }
#view .viewroot > header:first-of-type .kicker::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; box-shadow: 0 0 8px var(--accent); }
/* Cards: one glow, clear section titles. */
#view .card { transition: border-color .18s ease; }
#view .card:hover { border-color: rgba(94,225,245,.35); }
#view .viewroot > .card > h2:first-child, #view .viewroot > section.card > h2:first-child { padding-left: 10px; border-left: 3px solid var(--accent); }
/* Tables: header row stays visible while you scroll the table, gentle stripes, row highlight. */
#view .scroll:has(> table) { max-height: 72vh; overflow: auto; border-radius: 10px; }
#view .scroll > table thead th { position: sticky; top: 0; z-index: 1; background: var(--surface); box-shadow: 0 1px 0 var(--line); }
#view table tbody tr:nth-child(even) td { background: rgba(255,255,255,.018); }
#view table tbody tr:hover td { background: rgba(94,225,245,.05); }
/* Bigger, easier buttons. */
#view .btn { min-height: 42px; border-radius: 11px; }
#view .btn.small { min-height: 36px; }
#view .btn.primary { box-shadow: 0 0 18px -8px var(--accent); }
/* Empty screens say so clearly. */
.empty-box { align-items: center; text-align: center; padding: 28px 18px; gap: 6px; }
.empty-box::before { content: "◇"; font-size: 22px; color: var(--accent); opacity: .8; }
@media (max-width: 1100px) { .lo-grid.nomap { grid-template-columns: minmax(0, 1fr); } }
/* Release 79: Sell everywhere */
.sp-plats { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 14px; }
.sp-f { display: grid; gap: 10px; margin-top: 10px; }
.sp-fld { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--surface2); }
.sp-v { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; margin-top: 4px; }

/* Release 80: Home "Under each" (Signal under the agents, Next posts under the work map) and a compact, gap-free fit. */
.hl-quad.hl-mid { grid-template-columns: minmax(220px, .9fr) minmax(0, 1.55fr) minmax(0, 1.35fr) minmax(210px, .85fr); grid-template-areas: "todo core chart plats" "todo sig next plats"; grid-template-rows: auto auto; align-items: stretch; }
.hl-mid > [data-sec="todo"] { grid-area: todo; } .hl-mid > [data-sec="core"] { grid-area: core; } .hl-mid > [data-sec="chart"] { grid-area: chart; }
.hl-mid > [data-sec="plats"] { grid-area: plats; } .hl-mid > [data-sec="sig"] { grid-area: sig; } .hl-mid > [data-sec="next"] { grid-area: next; }
.hl-mid > * { height: auto; min-height: 0; order: 0 !important; }
.hl .hl-mid > .hub-core, .hl .hl-mid > .hub-core.compact { min-height: 0; aspect-ratio: auto; }
.hl-mid .hub-core .hub-scale { margin-inline: auto; }
.hl-mid > [data-sec="sig"] { display: flex; flex-direction: column; padding: 12px; }
.hl-mid > [data-sec="sig"] .fx-radar { flex: 1 1 auto; min-height: 150px; }
.hl-mid > [data-sec="next"] { display: flex; flex-direction: column; }
.hl-mid > [data-sec="next"] .fx-time { margin-top: auto; }
.hl-mid > [data-sec="plats"] > .plat-list { height: 100%; }
@media (max-width: 1360px) { .hl-quad.hl-mid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "core chart" "sig next" "todo plats"; } }
@media (max-width: 900px) { .hl-quad.hl-mid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "todo" "core" "chart" "sig" "next" "plats"; } .hl .hl-mid > .hub-core { aspect-ratio: 1 / 1; } }
/* Compact Home: same details, less padding, so more fits on one screen. */
.hl { gap: 10px; } .hl-r { gap: 10px; }
.hl .card { padding: 12px 14px; gap: 8px; }
.hl .flow-steps li a { min-height: 118px; padding: 8px 10px; }
.hl .dash-kpis .stat { padding: 10px 12px; }
.hl-top { gap: 8px; }
.hl-mid > [data-sec="chart"] svg { max-height: 430px; }
.hl-mid > [data-sec="todo"] .fx-meter { max-height: 150px; }
.hl-bottom { grid-template-columns: minmax(0, 2.2fr) minmax(200px, .8fr) minmax(0, 1.2fr); align-items: stretch; }
.hl-bottom > * { height: 100%; }
.hl-bottom .api-panel .api-s { padding: 8px 10px; }
@media (max-width: 1360px) { .hl-bottom { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .hl-bottom > [data-sec="api"] { grid-column: 1 / -1; } }
@media (max-width: 900px) { .hl-bottom { grid-template-columns: minmax(0, 1fr); } }
.hl .dash-ctl { padding: 6px 10px; }
.hl .flow-steps li a { min-height: 104px; }
.hl-mid > [data-sec="chart"] svg { max-height: 420px; }
.hl-mid .hub-core .hub-scale { width: 100%; max-width: none; height: 440px; aspect-ratio: auto; }
.hl-mid > [data-sec="sig"] .fx-radar { min-height: 120px; max-height: 160px; overflow: hidden; }
.hl-mid > [data-sec="sig"] .fx-dish { width: 120px; margin-top: 14px; }
.hl-mid > [data-sec="next"] .fx-time { max-height: 90px; }

/* ═══════════════════════════════════════════════════════════════════
   R80 — Schedules & AI mode screen
═══════════════════════════════════════════════════════════════════ */
.sch-mode { display: flex; flex-direction: column; gap: 12px; }
.mode-opts { display: flex; gap: 10px; flex-wrap: wrap; }
.mode-opt { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 10px; border: 1.5px solid var(--border); cursor: pointer; min-width: 160px; flex: 1 1 160px; transition: border-color .15s, background .15s; }
.mode-opt:hover { border-color: var(--accent); }
.mode-opt.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.mode-label { font-weight: 600; }
.res-list { display: flex; flex-direction: column; gap: 8px; }
.res-bar { height: 7px; border-radius: 4px; background: var(--border); overflow: hidden; margin-top: 2px; }
.res-fill { height: 100%; border-radius: 4px; transition: width .4s; }
.res-fill.rb-g { background: var(--green, #22c55e); }
.res-fill.rb-w { background: var(--gold, #f59e0b); }
.res-fill.rb-r { background: var(--red, #ef4444); }
.sch-jobs { display: flex; flex-direction: column; gap: 8px; }
.sch-job { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); }
.sj-left { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; }
.sj-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sj-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.sj-dot.on { background: var(--green, #22c55e); box-shadow: 0 0 6px var(--green, #22c55e); }
.sj-dot.off { background: var(--border); }
.sj-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sch-tbl { width: 100%; border-collapse: collapse; }
.sch-tbl th { text-align: left; font-size: .78rem; color: var(--muted); padding: 4px 8px; font-weight: 500; border-bottom: 1px solid var(--border); }
.sch-tbl td { padding: 7px 8px; vertical-align: middle; font-size: .88rem; border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent); }
.sch-tbl tr:last-child td { border-bottom: none; }
.spin-wrap { display: flex; justify-content: center; padding: 32px; }
.spin { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════════
   R80 — Top navbar option (adds class "topnav" to <html>)
   The left sidebar collapses; a horizontal bar takes its place.
   This gives the full viewport width to the content area.
═══════════════════════════════════════════════════════════════════ */
html.topnav .app { flex-direction: column; }
html.topnav .nav { width: 100%; height: auto; min-height: 0; flex-direction: row; align-items: center; padding: 0 12px; border-right: none; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; overflow-x: auto; overflow-y: hidden; gap: 0; flex-wrap: nowrap; }
html.topnav .nav .brand { padding: 8px 12px 8px 4px; border-bottom: none; flex-shrink: 0; }
html.topnav .nav .rooms { flex-direction: row; flex-wrap: nowrap; gap: 2px; padding: 0; }
html.topnav .nav .rooms a { flex-direction: row; gap: 6px; padding: 8px 12px; border-radius: 6px; min-width: 0; font-size: .82rem; white-space: nowrap; }
html.topnav .nav .foot { display: none; }
html.topnav .nav .plat-nav { display: none; }
html.topnav .nav .nav-help { display: none; }
html.topnav .nav details.nav-all { position: relative; }
html.topnav .nav details.nav-all summary { padding: 8px 12px; border-radius: 6px; cursor: pointer; white-space: nowrap; font-size: .82rem; }
html.topnav .nav details.nav-all[open] > summary { background: color-mix(in srgb, var(--accent) 10%, transparent); }
html.topnav .nav details.nav-all > *:not(summary) { position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,.35); z-index: 200; padding: 8px; max-height: 70vh; overflow-y: auto; }
html.topnav .main { width: 100%; max-width: 100%; min-height: calc(100dvh - 56px); }
html.topnav #strip { margin-left: 0; }
html.topnav .tabbar { display: none; }

/* ═══════════════════════════════════════════════════════════════════
   R80 — Multi-account per platform (workspaces / channel list)
═══════════════════════════════════════════════════════════════════ */
.ws-owner-tag { font-size: .72rem; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); font-weight: 600; }
.ws-owner-tag.partner { background: color-mix(in srgb, #c084fc 15%, transparent); color: #c084fc; }
.ws-add-account { border: 1.5px dashed var(--border); background: none; color: var(--muted); border-radius: 10px; padding: 10px 14px; cursor: pointer; font-size: .85rem; transition: border-color .15s, color .15s; }
.ws-add-account:hover { border-color: var(--accent); color: var(--accent); }
.plat-quota { font-size: .75rem; color: var(--muted); margin-left: auto; }

/* ═══════════════════════════════════════════════════════════════════
   R80 — Premium UI upgrades (glassmorphism, hover glow, transitions)
═══════════════════════════════════════════════════════════════════ */
/* Smoother card hover */
.card { transition: box-shadow .18s, border-color .18s; }
.card:has(a:hover), .card:has(button:hover) { border-color: color-mix(in srgb, var(--accent) 25%, var(--border)); }
/* Accent glow on focused inputs */
.inp:focus, .cmd:focus { box-shadow: 0 0 0 2.5px color-mix(in srgb, var(--accent) 30%, transparent); }
/* Chip hover lift */
.chip { transition: opacity .12s, transform .12s; }
a.chip:hover { opacity: .85; transform: translateY(-1px); }
/* Premium button feel */
.btn.primary { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #fff)); }
.btn.primary:hover { filter: brightness(1.1); }
/* Stat value emphasis */
.stat-val { font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
/* Smooth page transitions */
#main { animation: fadeUp .18s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* KPI row on mobile */
@media (max-width: 600px) { .kpis { grid-template-columns: 1fr 1fr !important; } }

/* ═══════════════════════════════════════════════════════════════════
   Release 86 — the owner's current Home, tidied (his wish of 17 Nov 2026: keep the look and colours, fit and resize
   the panels so no space is left empty, add the brain, globe and platform icons from his pictures, update the fonts).
   Same order and same panels; only sizes, fonts and a few drawings change.
═══════════════════════════════════════════════════════════════════ */
/* Fonts: Space Grotesk for titles, Inter for reading; JetBrains Mono stays for data, chips and logs. */
:root, :root[data-look="a"] { --f-head: "Space Grotesk", "Inter", "Hind Siliguri", system-ui, sans-serif; --f-body: "Inter", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif; }
:root:not([data-look="s"]):not([data-look="m"]) h1 { letter-spacing: -.01em; }
.kicker, .fx-cap, .hl h2 { letter-spacing: .08em; }
/* Primary buttons: dark text on the bright cyan, so the words can be read */
.hl .btn.primary, .dash-ctl .btn.primary, .hub-side .btn.primary { background: var(--accent); background-image: none; color: var(--accent-ink); border-color: var(--accent); }
/* The middle row: reactor nearly square, the work map filling its column, cards stretched to one height */
.hl .hl-quad.hl-mid { grid-template-columns: minmax(220px, .85fr) minmax(0, 1.75fr) minmax(0, 1.15fr) minmax(220px, .85fr); }
.hl .hl-mid > .hub-core, .hl .hl-mid > .hub-core.compact { min-height: 460px; }
.hl .hl-mid .hub-core .hub-scale { height: 100%; }
.hl .hl-mid > [data-sec="chart"] { display: flex; flex-direction: column; }
.hl .hl-mid > [data-sec="chart"] svg { max-height: none; width: 100%; height: auto; flex: 1 1 auto; }
.hl .hl-mid > [data-sec="todo"] .fx-meter { max-height: none; flex: 1 1 130px; }
/* Master Brain in the ring */
.ring-brain .rb-l, .ring-brain .rb-r { fill: color-mix(in srgb, var(--accent) 16%, transparent); stroke: var(--accent); stroke-width: 4; }
.ring-brain .rb-r { fill: color-mix(in srgb, #A78BFA 18%, transparent); stroke: #A78BFA; }
.ring-brain .rb-f path { fill: none; stroke: #E9FCFF; stroke-opacity: .7; stroke-width: 3.5; stroke-linecap: round; }
.ring-brain .rb-d circle { fill: #E9FCFF; }
.ring-brain { filter: drop-shadow(0 0 4px color-mix(in srgb, var(--accent) 70%, transparent)); }
.home-fx .ring-brain .rb-d { animation: rb-glow 2.4s ease-in-out infinite; }
@keyframes rb-glow { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.hl .hub-core .hub-ring .ring-n { font-family: var(--f-head); }
/* Signal: a turning globe with a light per platform */
.hl .hl-mid > [data-sec="sig"] .fx-radar.fx-globe { max-height: none; min-height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 26px 10px 10px; overflow: hidden; }
.hl .hl-mid > [data-sec="sig"] .fx-globe .fx-dish { position: relative; width: min(190px, 70%); aspect-ratio: 1; margin: 0; border: 0; background: none; border-radius: 50%; box-shadow: 0 0 36px color-mix(in srgb, var(--accent) 28%, transparent); }
.fx-globe .gl-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fx-globe .gl-l { fill: none; stroke: var(--accent); stroke-opacity: .32; stroke-width: .6; }
.fx-globe .gl-m { transform-box: fill-box; transform-origin: center; animation: gl-turn 7s ease-in-out infinite; }
.fx-globe .gl-m.m2 { animation-delay: -3.5s; }
@keyframes gl-turn { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.06); } }
.fx-globe .gl-rim { fill: none; stroke: var(--accent); stroke-opacity: .8; stroke-width: .8; }
.fx-globe .fx-sweep { opacity: .45; }
.fx-globe .fx-dish b { z-index: 2; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; background: #3A4A6B; }
.gl-keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; font: 11px var(--f-body); color: var(--muted); }
.gl-keys span { display: inline-flex; align-items: center; gap: 5px; opacity: .65; }
.gl-keys span.on { opacity: 1; color: var(--ink); }
.home-calm .fx-globe .gl-m, .home-calm .ring-brain .rb-d { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .fx-globe .gl-m, .ring-brain .rb-d { animation: none !important; } }
/* Platform icons */
.pico { flex: none; display: inline-block; vertical-align: middle; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--pc) 45%, transparent)); }
.plat-nav a { display: flex; align-items: center; gap: 10px; }
.plat-nav a .pn { flex: 1; min-width: 0; }
.plat-nav a .pdot { margin-left: auto; }
.hl .pl-row { grid-template-columns: 8px 26px minmax(0, 1fr) auto; grid-template-areas: "dot ico name views" "dot ico state state"; column-gap: 10px; min-height: 52px; }
.hl .pl-row .pico { grid-area: ico; }
.hl .pl-row .pl-dot { grid-area: dot; }
/* Platforms column: waiting/ready bars and four totals fill the space under the list */
.hl-mid > [data-sec="plats"] > .plat-list { display: flex; flex-direction: column; }
.pl-bars { flex: 1 1 120px; min-height: 120px; margin-top: 12px; padding: 10px 8px 8px; display: flex; align-items: stretch; gap: 8px; border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); border-radius: 10px; background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%), var(--surface2); }
.pl-bars > div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.pl-bars i { width: 70%; max-width: 26px; height: var(--h); border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 20%, transparent)); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 35%, transparent); }
.pl-bars .plb-n { font: 600 11px var(--f-mono); color: var(--muted); }
.pl-sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.pl-sum > div { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface2); display: grid; }
.pl-sum b { font: 700 18px var(--f-head); color: var(--white); }
.pl-sum span { font-size: 11px; color: var(--muted); }
/* Next posts: approved items ready to plan, with their platform icon */
.hub-side .item.nx-ready { justify-content: flex-start; align-items: center; gap: 10px; }
.hub-side .item.nx-ready > span:nth-of-type(1) { flex: 1; color: var(--ink); font: 12.5px var(--f-body); white-space: normal; }
.hub-side .item.nx-ready > span:last-child { color: var(--good); }
/* Bottom row: all AI services in one line, library as three tiles, log filling its card */
.hl .hl-bottom .api-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.lib-tiles { flex: 1 1 auto; display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.lib-t { display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface2); color: var(--ink); text-decoration: none; }
.lib-t:hover { border-color: var(--accent); }
.lib-t i { grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-size: 15px; color: #fff; }
.lib-t.t-v i { background: linear-gradient(135deg, #E62117, #FF5FAE); box-shadow: 0 0 12px rgba(230,33,23,.4); }
.lib-t.t-i i { background: linear-gradient(135deg, #3B82F6, #A78BFA); box-shadow: 0 0 12px rgba(59,130,246,.4); }
.lib-t.t-s i { background: linear-gradient(135deg, #10B981, #5EE1F5); box-shadow: 0 0 12px rgba(16,185,129,.4); }
.lib-t b { font: 700 20px var(--f-head); color: var(--white); line-height: 1; }
.lib-t span { font-size: 11.5px; color: var(--muted); }
.hl-bottom > [data-sec="lib"] { display: flex; flex-direction: column; }
@media (max-width: 1360px) { .hl .hl-quad.hl-mid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .hl .hl-quad.hl-mid { grid-template-columns: minmax(0, 1fr); } .pl-bars { min-height: 110px; } }
/* Release 86: buttons and menus in the reading font; the to-do list no longer stretches the whole row (it scrolls inside
   its card when it is long), so the reactor and the work map set the row height and fill it. */
.btn, .nav a, .nav summary { font-family: var(--f-body); letter-spacing: 0; }
@media (min-width: 1361px) {
  .hl .hl-mid > [data-sec="todo"] { contain: size; overflow-y: auto; scrollbar-width: thin; }
  .hl .hl-mid > [data-sec="todo"] .fx-meter { flex: 1 0 110px; }
}
@media (min-width: 1361px) and (max-width: 1700px) { .hl .hl-quad.hl-mid { grid-template-columns: minmax(210px, .8fr) minmax(0, 1.6fr) minmax(0, 1.3fr) minmax(210px, .8fr); } }
@media (min-width: 1361px) and (max-width: 1700px) {
  .hl .hl-bottom { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hl .hl-bottom > [data-sec="api"] { grid-column: 1 / -1; }
}
@media (max-width: 1700px) { .lib-tiles { grid-template-rows: none; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rv-ok { color: var(--good); }

/* ═══════════════════════════════════════════════════════════════════
   Release 88 — the owner's wish of 17 Nov 2026: "What is this screen?" at the very top (second line, under the search),
   no empty space anywhere on Home (spare room carries useful, live information), every button readable.
═══════════════════════════════════════════════════════════════════ */
/* Every bright button gets dark text, on every screen (was cyan on cyan outside Home). */
.btn.primary, a.btn.primary, .btn.primary:visited { color: var(--accent-ink); }
/* The help button: one small pill at the right end of the second line; its answer opens over the page. */
.strip { align-items: center; }
.helpbox.hb-top { margin: 0 0 0 auto; padding: 0; border: 0; background: none; flex: none; position: sticky; right: 0; }
.helpbox.hb-top > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; min-height: 0; border: 1px solid var(--accent-line); border-radius: 999px; background: var(--accent-bg); color: var(--accent); font: 600 12px var(--f-body); white-space: nowrap; }
.helpbox.hb-top > summary::-webkit-details-marker { display: none; }
.helpbox.hb-top > summary::before { content: "?"; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 11px var(--f-body); }
.helpbox.hb-top[open] > summary { border-color: var(--accent); }
.helpbox.hb-top > .hb-pan { position: fixed; right: 22px; top: calc(var(--tb-h, 65px) + var(--strip-h, 40px) + 6px); z-index: 60; width: min(540px, calc(100vw - 32px)); padding: 12px 16px; background: var(--surface); border: 1px solid var(--accent-line); border-radius: 12px; box-shadow: 0 18px 40px -12px #000c; }
.helpbox.hb-top > .hb-pan dl { margin: 0 0 8px; }
@media (max-width: 720px) { .helpbox.hb-top > summary { padding: 4px 9px; } .helpbox.hb-top > .hb-pan { right: 8px; } }
/* Home header: one tight block, the buttons on the greeting's line. */
.hl-top .head { align-items: center; margin-bottom: 0; }
.hl-top .head h1 { margin: 0; }
.hl-top .head .kicker { margin-bottom: 2px; }
.hl-top .head .lede { margin: 2px 0 0; }
/* Agent pulse as rows: state light, name, today's count, a bar that fills with work done. */
.fx-meter.fx-rows { display: flex; flex-direction: column; gap: 6px; padding: 10px 10px 8px; }
.fx-meter.fx-rows .fx-cap { position: static; }
.fx-meter.fx-rows .fx-bars { position: static; display: grid; grid-auto-rows: minmax(22px, 1fr); gap: 4px; flex: 1 1 auto; align-items: stretch; }
.ar-row { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; grid-template-rows: auto 3px; column-gap: 7px; align-items: center; font-size: 11.5px; color: var(--ink); }
.ar-row .ar-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-row .ar-c { font: 600 11px var(--f-mono); color: var(--muted); }
.ar-row .ar-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.ar-row.s-working .ar-dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.ar-row.s-done .ar-dot { background: var(--good); } .ar-row.s-problem .ar-dot { background: var(--bad); } .ar-row.s-paused .ar-dot { background: var(--muted); }
.ar-row.s-working .ar-c { color: var(--accent); }
.fx-meter.fx-rows .fx-bars i { grid-column: 2 / 4; height: 3px; width: var(--h); flex: none; align-self: start; border-radius: 3px; animation: none; transform: none; }
/* Next 24 hours: shaded hours, ticks and a key. */
.fx-day { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 26px 12px 10px; min-height: 120px; }
.fx-day .fx-zones { position: relative; height: 22px; border-radius: 6px; background: var(--surface2); overflow: hidden; }
.fx-day .tz { position: absolute; top: 0; bottom: 0; }
.fx-day .tz-you { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 30%, transparent), color-mix(in srgb, var(--accent) 10%, transparent)); }
.fx-day .tz-night { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--violet, #9B8CFF) 26%, transparent) 0 6px, color-mix(in srgb, var(--violet, #9B8CFF) 10%, transparent) 6px 12px); }
.fx-day .fx-track { position: relative; left: auto; right: auto; top: auto; margin: 4px 0; }
.fx-day .fx-track em { position: absolute; top: -4px; width: 8px; height: 8px; margin-left: -4px; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.fx-day .fx-ticks { position: relative; height: 14px; font: 10px var(--f-mono); color: var(--muted); }
.fx-day .fx-ticks span { position: absolute; transform: translateX(-50%); } .fx-day .fx-ticks span:first-child { transform: none; color: var(--accent); } .fx-day .fx-ticks span:last-child { transform: translateX(-100%); }
.fx-day .fx-key { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 10.5px; color: var(--muted); }
.fx-day .fx-key span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 2px; vertical-align: -1px; }
.fx-day .k-you::before { background: color-mix(in srgb, var(--accent) 35%, transparent); } .fx-day .k-night::before { background: color-mix(in srgb, var(--violet, #9B8CFF) 35%, transparent); }
.fx-day .k-job::before { background: var(--gold); transform: rotate(45deg) scale(.8); } .fx-day .k-post::before { border: 2px solid var(--pink); border-radius: 50%; width: 7px; height: 7px; }
.hl .hl-mid > [data-sec="next"] .fx-time.fx-day { max-height: none; flex: 1 1 auto; }
/* Platforms: shorter bars, then the next seven days as a grid. */
.hl .pl-bars { flex: 0 0 auto; min-height: 84px; height: 84px; }
.wk-grid { margin-top: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface2); display: grid; gap: 4px; flex: 1 1 auto; align-content: space-evenly; }
.wk-cap { display: flex; justify-content: space-between; font: 600 10.5px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); } .wk-cap b { color: var(--accent); }
.wk-row { display: grid; grid-template-columns: 18px repeat(7, minmax(0, 1fr)); gap: 4px; align-items: center; }
.wk-row.wk-h span { font: 10px var(--f-mono); color: var(--muted); text-align: center; } .wk-row.wk-h span.today { color: var(--accent); font-weight: 700; }
.wk-row i { height: 16px; border-radius: 4px; background: color-mix(in srgb, var(--line) 70%, transparent); font: 600 10px var(--f-mono); font-style: normal; text-align: center; line-height: 16px; color: var(--accent-ink); }
.wk-row i.plan { background: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 0 8px -2px var(--accent); } .wk-row i.done { background: var(--good); }
.wk-row .pico { transform: scale(.9); }
/* Live log: today's daily jobs under the activity. */
.dj { margin-top: auto; padding-top: 10px; } .dj .fx-cap { position: static; display: block; margin-bottom: 6px; }
.dj ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.dj li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface2); font-size: 11.5px; }
.dj li b { font: 600 11px var(--f-mono); color: var(--accent); grid-row: span 2; align-self: center; } .dj li em { font-style: normal; font-size: 10.5px; color: var(--muted); }
.dj li.dj-now { border-color: var(--accent); box-shadow: 0 0 10px -4px var(--accent); } .dj li.dj-past b { color: var(--muted); } .dj li.dj-off { opacity: .55; }
.dj-small ol { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.hl .hub-log { display: flex; flex-direction: column; }
/* Health & security beside the globe (Release 88). */
.hl-mid > [data-sec="sig"] { flex-direction: row; gap: 12px; align-items: stretch; }
.hl-mid > [data-sec="sig"] .fx-radar { flex: 1 1 42%; min-width: 0; }
.hp { flex: 1 1 58%; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.hp-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; font: 600 10.5px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hp-sum { letter-spacing: 0; text-transform: none; font-weight: 500; } .hp-sum b.ok { color: var(--good); } .hp-sum b.warn { color: var(--warn); } .hp-sum b.bad { color: var(--bad); }
.hp-row { flex: 1 1 0; min-height: 40px; display: grid; grid-template-columns: 22px minmax(60px, auto) auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 5px 9px; border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: 9px; background: var(--surface2); color: var(--ink); text-decoration: none; font-size: 12px; }
.hp-row .pico { grid-row: span 2; } .hp-row > b { font-weight: 600; }
.hp-row .hp-shield { display: inline-flex; align-items: center; gap: 4px; font: 600 10.5px var(--f-mono); white-space: nowrap; }
.hp-shield svg { width: 14px; height: 14px; fill: currentColor; fill-opacity: .18; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; } .hp-shield .t { fill: none; stroke-width: 1.6; stroke-linecap: round; }
.hp-row .hp-why { grid-column: 2 / 4; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-row .hp-ticks { grid-column: 4; grid-row: 1 / 3; justify-self: end; display: flex; gap: 3px; }
.hp-ticks i { width: 6px; height: 16px; border-radius: 2px; background: var(--line); } .hp-ticks i.ok { background: var(--good); } .hp-ticks i.warn { background: var(--warn); } .hp-ticks i.bad { background: var(--bad); box-shadow: 0 0 6px var(--bad); }
.hp-ok { border-left-color: var(--good); } .hp-ok .hp-shield { color: var(--good); } .hp-warn { border-left-color: var(--warn); } .hp-warn .hp-shield { color: var(--warn); }
.hp-bad { border-left-color: var(--bad); } .hp-bad .hp-shield { color: var(--bad); } .hp-off { opacity: .6; } .hp-off .hp-shield { color: var(--muted); }
.hp-row:hover, .hp-row:focus-visible { border-color: var(--accent-line); }
@media (max-width: 900px) { .hl-mid > [data-sec="sig"] { flex-direction: column; } }
/* Release 90: Health & Security Center */
.hc-sh { width: 16px; height: 16px; flex: none; fill: currentColor; fill-opacity: .18; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; } .hc-sh .t { fill: none; stroke-width: 1.6; stroke-linecap: round; }
.hc-sh.hc-ok { color: var(--good); } .hc-sh.hc-info { color: var(--accent); } .hc-sh.hc-warn { color: var(--warn); } .hc-sh.hc-bad { color: var(--bad); } .hc-sh.hc-off { color: var(--muted); }
.hc-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.hc-tile { display: flex; gap: 8px; align-items: center; min-width: 0; padding: 7px 10px; border: 1px solid var(--line); border-left: 3px solid var(--good); border-radius: 10px; background: var(--surface2); color: var(--ink); text-decoration: none; }
.hc-tile.hc-warn { border-left-color: var(--warn); } .hc-tile.hc-bad { border-left-color: var(--bad); box-shadow: 0 0 12px -6px var(--bad); }
.hc-tile span { display: grid; min-width: 0; } .hc-tile b { font-size: 12px; } .hc-tile em { font-style: normal; font-size: 10.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-tile:hover, .hc-tile:focus-visible { border-color: var(--accent-line); }
@media (max-width: 1100px) { .hc-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } } @media (max-width: 600px) { .hc-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hc-sum { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 12px; } .hc-sum > span:first-child { display: flex; gap: 8px; align-items: center; } .hc-sum .hc-sh { width: 22px; height: 22px; }
.hc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 12px; align-items: start; }
.hc-area { border-top: 3px solid var(--good); } .hc-area.hc-warn { border-top-color: var(--warn); } .hc-area.hc-bad { border-top-color: var(--bad); }
.hc-h { display: flex; align-items: center; gap: 8px; } .hc-h h2 { margin: 0; flex: 1; } .hc-ico { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.hc-lv { display: inline-flex; gap: 5px; align-items: center; font: 600 11px var(--f-mono); }
.hc-hist { display: flex; gap: 2px; margin: 8px 0; } .hc-hist i { flex: 1; max-width: 12px; height: 14px; border-radius: 2px; background: var(--line); }
.hc-hist i.ok, .hc-hist i.info { background: var(--good); } .hc-list li.hc-info b { color: var(--ink); } .hc-hist i.warn { background: var(--warn); } .hc-hist i.bad { background: var(--bad); }
.hc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hc-list li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface2); }
.hc-list li > div { display: grid; gap: 2px; min-width: 0; } .hc-list b { font-size: 12.5px; } .hc-list span { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; } .hc-list em { font-style: normal; font-size: 11.5px; color: var(--warn); }
.hc-list li .hc-sh { margin-top: 2px; }
/* Consolidation (23 Nov 2026): areas in the menu, and the quiet tab row a hub shows above its screen. */
.nav details.area-f > summary, .nav details.nav-all > summary { list-style: none; cursor: pointer; }
.nav details.area-f > summary { display: flex; align-items: center; margin: 14px 12px 4px; padding: 2px 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); min-height: 24px; }
.nav details.area-f > summary::-webkit-details-marker { display: none; }
.nav details.area-f > summary::after { content: ""; margin-left: auto; width: 6px; height: 6px; border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.nav details.area-f[open] > summary::after { transform: rotate(45deg); }
.nav .hub-l .count { margin-left: auto; }
.hubtabs { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.hub-k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.hub-row { position: relative; display: flex; flex-wrap: wrap; gap: 4px 2px; }
.hub-row a { padding: 7px 12px; min-height: 36px; display: inline-flex; align-items: center; border-radius: 8px; text-decoration: none; color: var(--muted); font-size: 13.5px; }
.hub-row a:hover, .hub-row a:focus-visible { color: var(--ink); background: var(--surface2); }
.hub-row a[aria-current="page"] { color: var(--ink); background: var(--surface2); box-shadow: inset 0 -2px 0 var(--accent); }
.plat-note { margin: -4px 0 10px; }
.reg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.reg-hub { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); }
.reg-hub:first-of-type { border-top: 0; }
.reg-hub .tiny a { color: inherit; }
@media (max-width: 600px) { .hub-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .hub-row a { white-space: nowrap; } }
