@font-face { font-family: "InterVar"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JBMono"; src: url("../fonts/jetbrains-mono-var.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #0a0a0b;
  --panel: rgba(17, 18, 20, 0.92);
  --panel-solid: #111214;
  --panel-2: #16171a;
  --line: #222428;
  --line-2: #2e3136;
  --dash: rgba(255, 255, 255, 0.09);
  --text: #e4e6e9;
  --text-2: #a3a8b0;
  --text-3: #6b7079;
  --ok: #57d38c;
  --warn: #f2b84b;
  --bad: #f06a6a;
  --run: #6cb6ff;
  --money: #57d38c;
  --fitness: #ff9a62;
  --bots: #b79cff;
  --hustle: #f472b6;
  --font: "InterVar", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JBMono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 6px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 120px; }
body {
  margin: 0; color: var(--text); font: 13.5px/1.45 var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 50% -20%, rgba(255, 255, 255, 0.045), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 100%, 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: 0 0, -1px -1px, -1px -1px, -1px -1px, -1px -1px;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.muted { color: var(--text-3); }
.small { font-size: 12px; }
.mono, .mono-label, .eyebrow, .badge, time, code { font-family: var(--mono); }
.mono-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }

/* ---------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 22px; height: 52px; padding: 0 20px;
  background: rgba(10, 10, 11, 0.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand-mark { width: 22px; height: 22px; border: 1.5px solid var(--text); border-radius: 4px; display: grid; place-items: center; }
.brand-mark i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.brand-name { font-family: var(--mono); font-weight: 600; letter-spacing: .14em; font-size: 13px; }
.brand-name span { color: var(--text-3); }
dugger-app-switcher { --das-font: var(--font); --das-mono: var(--mono); --das-bg: #111214; --das-border: var(--line-2); --das-size: 24px; min-height: 32px; }
/* Bot wordmarks: same treatment as BabyloniFi's "FI" (2px underline, 4px offset, color = accent via currentColor) */
.fi-mark { text-decoration-line: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.fi-fitness { color: #2dd4bf; }
.wm { white-space: nowrap; }
.brand-sub { color: var(--text-3); font-size: 12.5px; padding-left: 10px; border-left: 1px solid var(--line-2); }
.tabs { display: flex; gap: 2px; margin-left: auto; }
.tabs a { padding: 6px 12px; border-radius: 5px; color: var(--text-2); font-weight: 500; border: 1px solid transparent; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); border-color: var(--line-2); background: var(--panel-2); }
.tabs em { font-style: normal; font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--bots); margin-left: 4px; }
.top-right { display: flex; align-items: center; gap: 12px; }
.chip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; color: var(--text-2); padding: 4px 10px; border: 1px dashed var(--line-2); border-radius: 999px; }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.clock { font-family: var(--mono); font-size: 12px; color: var(--text-3); }

/* ---------- status strip */
.strip { display: flex; gap: 8px; padding: 10px 20px 0; align-items: stretch; }
.strip-count { display: grid; align-content: center; padding: 0 14px 0 2px; min-width: 92px; }
.strip-count b { font-family: var(--mono); font-size: 22px; font-weight: 600; line-height: 1; }
.strip-count span { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.strip-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; flex: 1; min-width: 0; }
.stile { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; gap: 4px; padding: 8px 10px 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; transition: border-color .15s; }
.stile:hover { border-color: var(--line-2); }
.stile-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.stile-top b { font-family: var(--mono); font-size: 13px; }
.stile-name { color: var(--text-2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1;  padding-bottom: 6px; margin-bottom: -6px; }
.stile-bot { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--text-3); white-space: nowrap; }
.stile-bot span { overflow: hidden; text-overflow: ellipsis; }
.stile-bar { height: 2px; margin: 4px -10px 0; background: var(--line); overflow: hidden; border-radius: 0 0 var(--r) var(--r); }
.stile-bar i { display: block; height: 100%; width: 100%; background: var(--tone, var(--text-3)); opacity: .7; }
.s-ok { --tone: var(--ok); } .s-warn { --tone: var(--warn); } .s-bad { --tone: var(--bad); } .s-run { --tone: var(--run); } .s-none { --tone: #4a4e55; }
.s-done { --tone: #6f8f7a; } .s-queue { --tone: #9eb4c8; }
.s-run .stile-bar i { width: 40%; animation: slide 1.6s linear infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.alarm { padding: 8px 22px 0; font-size: 12px; color: var(--text-3); font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alarm i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); margin-right: 8px; vertical-align: 1px; }
.alarm-on { color: var(--warn); }
.alarm-on i { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.alarm-on b { color: var(--text); font-weight: 600; }

/* ---------- badges */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; border: 1px solid; white-space: nowrap; line-height: 1.5; flex: none; }
.badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.b-ok { color: var(--ok); border-color: rgba(87, 211, 140, .35); background: rgba(87, 211, 140, .07); }
.b-warn { color: var(--warn); border-color: rgba(242, 184, 75, .35); background: rgba(242, 184, 75, .07); }
.b-bad { color: var(--bad); border-color: rgba(240, 106, 106, .4); background: rgba(240, 106, 106, .08); }
.b-run, .b-info { color: var(--run); border-color: rgba(108, 182, 255, .35); background: rgba(108, 182, 255, .07); }
.b-done { color: #8eaa98; border-color: rgba(142, 170, 152, .35); background: rgba(142, 170, 152, .07); }
.b-queue { color: #9eb4c8; border-color: rgba(158, 180, 200, .35); background: rgba(158, 180, 200, .07); }
.b-run i { animation: blink 1.2s infinite; }
.b-none { color: var(--text-3); border-color: var(--line-2); border-style: dashed; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- layout */
.main { max-width: 1440px; margin: 0 auto; padding: 18px 20px 24px; }
.hero { display: grid; grid-template-columns: minmax(260px, auto) minmax(0, 1fr); gap: 28px; align-items: end; padding: 10px 2px 18px; }
.hero h1 { font-size: 30px; letter-spacing: -0.02em; font-weight: 650; margin-top: 6px; line-height: 1.1; }
.briefs { display: grid; gap: 6px; }
.brief { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.brief-id { font-family: var(--mono); font-size: 11px; font-weight: 600; }
.br-money .brief-id { color: var(--money); } .br-fitness .brief-id { color: var(--fitness); }
.brief-t { color: var(--text); }
.brief-w { font-family: var(--mono); font-size: 11px; color: var(--text-3); white-space: nowrap; }

.zone { position: relative; margin-top: 22px; padding: 26px 12px 12px; border: 1px dashed var(--dash); border-radius: 8px; background: rgba(10, 10, 11, 0.35); }
.zone[data-accent="money"] { --accent: var(--money); } .zone[data-accent="fitness"] { --accent: var(--fitness); } .zone[data-accent="bots"] { --accent: var(--bots); }
.zone-head { position: absolute; top: 0; left: 12px; right: 12px; transform: translateY(-50%); display: flex; justify-content: space-between; align-items: center; gap: 10px; pointer-events: none; }
.zone-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; color: var(--accent); background: var(--bg); padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zone-meta { color: var(--text-3); letter-spacing: .02em; }
.zone-link { pointer-events: auto; font-family: var(--mono); font-size: 11px; color: var(--text-2); background: var(--bg); padding: 3px 10px; border: 1px solid var(--line-2); border-radius: 999px; white-space: nowrap; }
.zone-link:empty { display: none; }
.zone-link:hover { color: var(--text); border-color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.issues:empty { display: none; }
.issue { margin-bottom: 10px; padding: 9px 12px; border: 1px solid rgba(242, 184, 75, .3); border-radius: var(--r); background: rgba(242, 184, 75, .06); color: #f5d38e; }

/* ---------- cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px 10px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card.span2 { grid-column: span 2; }
.card-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.card-titles { min-width: 0; }
.eyebrow { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent, var(--text-3)); }
.card h3 { font-size: 14px; font-weight: 600; margin-top: 2px; letter-spacing: -0.005em; }
.card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-main { display: flex; flex-direction: column; gap: 9px; }
.big { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.big .num { font-size: 28px; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.big .unit { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }
.caption { color: var(--text-2); font-size: 12.5px; margin-top: -4px; }
.footnote { color: var(--text-3); font-size: 11.5px; }
.rows { margin: 0; border-top: 1px solid var(--line); }
.rows.two { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
.row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed rgba(255, 255, 255, .05); }
.row:last-child { border-bottom: 0; }
.rows.two .row:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
.row dt { color: var(--text-2); font-size: 12.5px; }
.row dd { margin: 0; font-weight: 600; font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; }
.row dd small { display: block; font-weight: 400; color: var(--text-3); font-size: 11px; font-family: var(--mono); }
.row.is-muted dt, .row.is-muted dd { color: var(--text-3); font-weight: 500; }
.row.is-strong dt { color: var(--text); }
.t-ok { color: var(--ok); } .t-warn { color: var(--warn); } .t-bad { color: var(--bad); } .t-info { color: var(--run); }

.chart { color: var(--accent); }
.chart.is-invert { color: var(--warn); }
.spark-wrap { position: relative; height: 56px; }
.spark { width: 100%; height: 100%; display: block; overflow: visible; }
.spark-line { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.spark-band { fill: rgba(87, 211, 140, .10); stroke: rgba(87, 211, 140, .35); stroke-dasharray: 3 3; stroke-width: 1; vector-effect: non-scaling-stroke; }
.spark-hit { fill: transparent; }
.spark-dot { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 25%, transparent); }
.chart-label { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); margin-top: 4px; }

.bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; align-items: end; }
.bar { display: grid; gap: 5px; }
.bar-track { position: relative; height: var(--h); border-bottom: 1px solid var(--line-2); }
.bar-plan, .bar-fill { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 3px 3px 0 0; }
.bar-plan { border: 1px dashed rgba(255, 154, 98, .45); border-bottom: 0; }
.bar-fill { background: rgba(255, 154, 98, .55); left: 22%; right: 22%; }
.bar.is-current .bar-fill { background: var(--fitness); box-shadow: 0 0 12px rgba(255, 154, 98, .5); }
.bar-label { font-family: var(--mono); font-size: 9.5px; color: var(--text-3); text-align: center; white-space: nowrap; height: 12px; }
.bar.is-current .bar-label { color: var(--text); }
.legend { display: flex; gap: 14px; font-family: var(--mono); font-size: 10.5px; color: var(--text-3); margin-top: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 2px; }
.lg-a { background: var(--fitness); } .lg-p { border: 1px dashed rgba(255, 154, 98, .6); }

.progress { display: grid; gap: 6px; }
.track { position: relative; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .07); }
.fill { height: 100%; border-radius: 3px; background: var(--accent); }
.marker { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--text); opacity: .75; }
.progress-meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-family: var(--mono); font-size: 10.5px; color: var(--text-2); }

.gauge { display: grid; gap: 7px; }
.gauge-track { position: relative; height: 10px; border-radius: 3px; overflow: visible; background: rgba(255, 255, 255, .05); }
.gz { position: absolute; top: 0; bottom: 0; }
.gz-g { left: 0; background: rgba(87, 211, 140, .5); border-radius: 3px 0 0 3px; }
.gz-y { background: rgba(242, 184, 75, .55); }
.gz-r { background: rgba(240, 106, 106, .45); border-radius: 0 3px 3px 0; }
.gauge-mark { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1.5px; background: #fff; border-radius: 2px; box-shadow: 0 0 10px rgba(255, 255, 255, .6); }
.gauge-meta { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); }

.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.tile { position: relative; display: grid; gap: 1px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 5px; background: rgba(255, 255, 255, .02); min-width: 0; }
.tile::before { content: ""; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--tt, var(--text-3)); }
.tt-ok { --tt: var(--ok); } .tt-warn { --tt: var(--warn); } .tt-bad { --tt: var(--bad); }
.tile-l { font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-v { font-size: 18px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--tt, var(--text)); }
.tile-v small { font-size: 10.5px; color: var(--text-3); font-weight: 500; }
.tile-h { font-size: 10.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-today .card-body { flex-direction: column; }
.c-race .num { color: var(--fitness); }

.sources { border-top: 1px solid var(--line); padding-top: 6px; font-size: 11px; color: var(--text-3); }
.sources summary { cursor: pointer; list-style: none; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; user-select: none; }
.sources summary::-webkit-details-marker { display: none; }
.sources summary::before { content: "▸ "; }
.sources[open] summary::before { content: "▾ "; }
.sources ul { margin: 6px 0 2px; padding: 0; list-style: none; display: grid; gap: 5px; }
.sources li { display: grid; }
.sources li span { color: var(--text-2); }
.sources code { font-size: 10px; color: var(--text-3); word-break: break-all; }
.card.empty { grid-column: 1 / -1; align-items: center; text-align: center; padding: 28px; border-style: dashed; color: var(--text-2); }

/* activity terminal */
.activity { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px; }
.term { background: #07120c; border: 1px solid #1c2a21; border-radius: var(--r); padding: 10px 12px; font-family: var(--mono); font-size: 11.5px; color: #9fe3b6; display: grid; gap: 4px; box-shadow: inset 0 0 30px rgba(87, 211, 140, .05); min-width: 0; }
.log { display: grid; grid-template-columns: 118px 34px minmax(0, 1fr); gap: 10px; }
.log time { color: #4f8e66; white-space: nowrap; }
.log span { color: #c6f0d4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.id-householdfi { color: var(--money); } .id-fitnessfi { color: var(--fitness); } .id-fantasyfootbal { color: var(--run); } .id-dugger-dev { color: var(--bots); } .id-hustlefi { color: var(--hustle); } .id-cursor { color: #7aa2ff; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
.upnext ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 7px; }
.upnext li { display: grid; grid-template-columns: 96px 34px minmax(0, 1fr); gap: 8px; font-size: 12px; align-items: baseline; }
.upnext time { font-size: 11px; color: var(--text-2); white-space: nowrap; }
.upnext b { font-family: var(--mono); font-size: 11px; }
.upnext span { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- bots page */
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 10px 2px 16px; }
.page-head h1 { font-size: 28px; font-weight: 650; letter-spacing: -0.02em; margin: 4px 0 4px; display: flex; align-items: baseline; gap: 10px; }
.count { font-family: var(--mono); font-size: 14px; color: var(--text-3); font-weight: 500; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 6px; padding: 2px; background: var(--panel); }
.seg a { padding: 5px 12px; border-radius: 4px; font-family: var(--mono); font-size: 11.5px; color: var(--text-2); }
.seg a.on { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: start; }
.col { border: 1px dashed var(--dash); border-radius: 8px; padding: 8px; background: rgba(10, 10, 11, .4); display: grid; gap: 8px; min-width: 0; }
.col > header { display: flex; align-items: center; gap: 8px; padding: 2px 4px 4px; font-weight: 600; font-size: 12.5px; }
.col > header b { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--text-3); font-weight: 500; }
.col-i { width: 18px; height: 18px; border-radius: 4px; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; border: 1px solid var(--line-2); color: var(--text-2); }
.col-running .col-i { color: var(--run); border-color: rgba(108, 182, 255, .4); }
.col-attention .col-i { color: var(--warn); border-color: rgba(242, 184, 75, .4); }
.col-error .col-i { color: var(--bad); border-color: rgba(240, 106, 106, .4); }
.col-idle .col-i { color: var(--ok); border-color: rgba(87, 211, 140, .4); }
.col-empty { font-family: var(--mono); font-size: 11px; color: var(--text-3); text-align: center; padding: 18px 0; border: 1px dashed var(--line); border-radius: 5px; }
.bcard { background: var(--panel-solid); border: 1px solid var(--line); border-left: 2px solid var(--tone); border-radius: var(--r); padding: 10px 11px; display: grid; gap: 9px; min-width: 0; }
.bcard > header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; align-items: center; }
.bcard h3 { font-size: 13.5px; font-weight: 600; }
.bcard header p { font-size: 11.5px; color: var(--text-3); }
.av { width: 30px; height: 30px; border-radius: 5px; display: grid; place-items: center; font-family: var(--mono); font-size: 10.5px; font-weight: 700; border: 1px solid currentColor; background: color-mix(in srgb, currentColor 10%, transparent); flex: none; }
.bcard-h { font-size: 12.5px; color: var(--text); line-height: 1.45; }
.bcard-h.is-empty { color: var(--text-3); font-style: italic; }
.kv { margin: 0; display: grid; gap: 3px; font-size: 11.5px; }
.kv div { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 6px; }
.kv dt { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.kv dd { margin: 0; color: var(--text-2); font-family: var(--mono); font-size: 11px; }
.bcard footer { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 11.5px; }
.link { color: var(--text); border-bottom: 1px solid var(--line-2); }
.link:hover { border-color: var(--text); }
.srcid { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--text-3); }
.table-wrap { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); padding: 10px 14px; background: rgba(255, 255, 255, .02); border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 12.5px; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: rgba(255, 255, 255, .02); }
.who { display: flex; gap: 10px; align-items: center; }
.who b { display: block; font-weight: 600; } .who small { color: var(--text-3); font-size: 11.5px; }
.sched { display: grid; gap: 2px; }
.sched .mono { font-size: 12px; } .sched small { color: var(--text-2); font-size: 11.5px; } .sched .more { color: var(--text-3); font-family: var(--mono); font-size: 10.5px; }
.sites { display: grid; gap: 3px; }
.term-full { max-height: none; }
.note { margin-top: 14px; }
.cursor-sec { margin-top: 22px; }
.cursor-head { padding: 4px 2px 12px; }
.cursor-head h2 { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; margin: 4px 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.acard h3 { font-size: 13px; line-height: 1.35; }
.demo-banner { margin: 0; padding: 8px 22px; background: #2a2416; color: var(--warn); font-family: var(--mono); font-size: 12px; border-bottom: 1px solid rgba(242, 184, 75, .35); }

/* ---------- floor (station engine styles live in shared/floor/station.css, loaded on demand) */
.floor { padding: 0; overflow: hidden; }
.stn-loading { display: grid; place-items: center; height: clamp(440px, calc(100vh - 330px), 780px); font-family: var(--mono); font-size: 12px; color: var(--text-3); background: #030406; }

/* ---------- stats bar */
.statsbar { position: sticky; bottom: 0; z-index: 25; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0; margin: 0; background: rgba(12, 12, 14, .94); backdrop-filter: blur(10px); border-top: 1px solid var(--line-2); }
.stat { display: grid; gap: 1px; padding: 9px 16px 10px; border-right: 1px solid var(--line); min-width: 0; }
.stat:last-child { border-right: 0; }
.stat:hover { background: rgba(255, 255, 255, .03); }
.stat-l { font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.a-money .stat-l { color: color-mix(in srgb, var(--money) 70%, var(--text-3)); }
.a-fitness .stat-l { color: color-mix(in srgb, var(--fitness) 70%, var(--text-3)); }
.stat-v { font-size: 18px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-v small { font-size: 11px; color: var(--text-3); font-weight: 500; }
.stat-s { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.foot { margin-top: 22px; color: var(--text-3); font-size: 11.5px; font-family: var(--mono); }
.fatal { position: fixed; left: 20px; right: 20px; bottom: 80px; padding: 12px 14px; border-radius: 6px; background: #3b1219; color: #fecaca; border: 1px solid #7f1d1d; }

/* ---------- responsive */
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statsbar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat:nth-child(4) { border-right: 0; }
  .stat:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .hero { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 760px) {
  body { font-size: 13.5px; background-size: 100% 100%, 96px 96px, 96px 96px, 24px 24px, 24px 24px; }
  .topbar { gap: 10px; padding: 0 12px; height: 48px; }
  .brand-sub, .top-right { display: none; }
  .tabs a { padding: 5px 8px; white-space: nowrap; }
  .tabs em { display: none; }
  .brand { min-width: 0; }
  dugger-app-switcher { --das-size: 22px; }
  .strip { padding: 8px 12px 0; }
  .strip-count { display: none; }
  .strip-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .strip-tiles > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stile-name { font-size: 12px; }
  .stile .badge { display: none; }
  .alarm { padding: 8px 14px 0; white-space: normal; }
  .main { padding: 12px 12px 18px; }
  .hero h1 { font-size: 25px; }
  .brief { grid-template-columns: 40px minmax(0, 1fr); }
  .brief-w { display: none; }
  .zone { padding: 22px 8px 8px; margin-top: 20px; }
  .zone-head { left: 8px; right: 8px; }
  .zone-meta { display: none; }
  .grid { grid-template-columns: 1fr; gap: 8px; }
  .card.span2 { grid-column: auto; }
  .rows.two { grid-template-columns: 1fr; }
  .rows.two .row:nth-last-child(2):nth-child(odd) { border-bottom: 1px dashed rgba(255, 255, 255, .05); }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .activity { grid-template-columns: 1fr; }
  .log { grid-template-columns: 1fr 34px; row-gap: 0; }
  .log time { grid-column: 1; } .log b { grid-column: 2; grid-row: 1; text-align: right; }
  .log span { grid-column: 1 / -1; white-space: normal; padding-bottom: 4px; }
  .page-head { flex-direction: column; align-items: start; }
  .board { grid-template-columns: 1fr; }
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .tbl td { border: 0; padding: 5px 14px; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; }
  .tbl td::before { content: attr(data-l); font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding-top: 2px; }
  .tbl td:first-child { grid-template-columns: 1fr; } .tbl td:first-child::before { display: none; }
  .statsbar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-bottom: 1px solid var(--line); padding: 9px 14px; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); } .stat:nth-child(even) { border-right: 0; }
}
@media (max-width: 760px) {
  .stile-bot { flex-direction: column; gap: 0; }
}
/* screenshot mode: render the sticky bars in flow so full-page captures read top-to-bottom */
body.shot .statsbar, body.shot .topbar { position: static; }
@media (max-width: 760px) {
  .col-attention { order: -3; } .col-error { order: -2; } .col-running { order: -1; }
  .demo-banner { padding: 8px 14px; }
  .agent-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .s-run .stile-bar i, .b-run i, .boot span { animation: none; }
}
@media (max-width: 760px) {
}

/* ---------- auth gate + boot */
body:not(.is-ready) .strip, body:not(.is-ready) .alarm, body:not(.is-ready) .main, body:not(.is-ready) .statsbar,
body:not(.is-ready) .tabs, body:not(.is-ready) .top-right { display: none; }
.boot { position: fixed; inset: 0; display: grid; place-content: center; grid-auto-flow: column; gap: 10px; align-items: center;
  font-family: var(--mono); font-size: 12px; color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.boot span { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: blink 1s infinite; }
.gate { min-height: calc(100vh - 52px); display: grid; place-items: center; padding: 24px 16px 60px; }
.gate-card { width: min(420px, 100%); text-align: center; display: grid; justify-items: center; gap: 12px; padding: 36px 28px 26px;
  background: rgba(17, 18, 20, .9); border: 1px solid var(--line); border-radius: 10px; position: relative;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); }
.gate-card::before { content: ""; position: absolute; inset: -10px; border: 1px dashed var(--dash); border-radius: 14px; pointer-events: none; }
.gate-mark { width: 44px; height: 44px; border: 2px solid var(--text); border-radius: 8px; display: grid; place-items: center; margin-bottom: 4px; }
.gate-mark i { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 14px var(--ok); }
.gate h1 { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; }
.gate-text { color: var(--text-2); max-width: 330px; }
.gate-text b { color: var(--text); font-weight: 600; word-break: break-all; }
.gate-actions { display: grid; gap: 8px; width: 100%; margin-top: 8px; }
.gbtn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 11px 16px; border-radius: 6px;
  border: 1px solid var(--line-2); background: #f1f3f4; color: #1f1f1f; font: 600 14px var(--font); cursor: pointer; transition: filter .15s; }
.gbtn svg { width: 18px; height: 18px; }
.gbtn:hover { filter: brightness(.95); }
.gbtn:disabled { opacity: .7; cursor: progress; }
.gbtn.ghost { background: transparent; color: var(--text-2); }
.gate-foot { margin-top: 10px; font-family: var(--mono); font-size: 10.5px; color: var(--text-3); letter-spacing: .04em; }
body.gated .strip, body.gated .alarm, body.gated .main, body.gated .statsbar, body.gated .tabs { display: none !important; }
.chip-btn { background: transparent; cursor: pointer; font-family: var(--mono); }
.chip-btn:hover { color: var(--text); border-color: var(--text-3); }
.chip.is-live i { background: var(--ok); }
