:root {
  /* Light (default): a control room in daylight. */
  --bg: #e7ecf2;
  --bg-dot: #d2dae4;
  --bar-1: #fbfcfd;
  --bar-2: #f1f4f8;
  --tabs-bg: #f1f4f8;
  --panel: #fbfcfd;
  --panel-2: #f1f4f8;
  --line: #dce3eb;
  --line-2: #c3cdd9;
  --ink: #1b2738;
  --ink-dim: #5b6a7e;
  --strong: #0a1220;
  --accent: #a35f00;
  --accent-dim: #dcb06a;
  --accent-hover: #b86d05;
  --accent-fill: #f0a43a;
  --on-accent: #ffffff;
  --accent-wash: rgba(214, 140, 20, 0.08);
  --hover-wash: rgba(16, 30, 54, 0.035);
  --cyan: #0a7f87;
  --trust: #13843f;
  --distrust: #c8304c;
  --distrust-wash: rgba(200, 48, 76, 0.05);
  --player: #7a3fc9;
  --reflect: #4b5bc9;
  --reflect-line: #7d8be0;
  --track: #e2e8ef;
  --tip-bg: #ffffff;
  --shadow: rgba(16, 30, 54, 0.16);
  --overlay: rgba(251, 252, 253, 0.92);
  --crowd: #96a4b7;
  --ride-fill: #dfe6ef;
  --ride-line: #b7c4d5;
  --path: rgba(10, 127, 135, 0.32);
  --pos: #2a78d6;
  --neg: #e34948;
  --glow: none;
  --panel-shadow: 0 1px 2px rgba(16, 30, 54, 0.06), 0 0 0 1px rgba(16, 30, 54, 0.01);
  --v-loved: #256abf;
  --v-liked: #86b6ef;
  --v-meh: #b6bfca;
  --v-hated: #e34948;
  --led-off: #c9d2dd;
  /* Chart chrome and the categorical palette, validated on --panel (light steps). */
  --chart-grid: #e4e9ef;
  --chart-axis: #c3cdd9;
  --chart-muted: #6b7a8d;
  --s1: #2a78d6;
  --s2: #eb6834;
  --s3: #1baf7a;
  --s4: #eda100;
  --s5: #e87ba4;
  --s6: #6250d6;
  /* Map. */
  --map-bg: #eef2f6;
  --map-grass: #e3eadf;
  --map-water: #cfe1ee;
  --map-scenery: #d7dfd2;
  --map-entrance: #d9b56c;
  --map-ride: #cfd9e5;
  --map-path: rgba(10, 127, 135, 0.38);
  --map-queue: rgba(10, 127, 135, 0.18);
  --map-grid: rgba(60, 90, 130, 0.18);
  --map-agent: #d07800;
  --map-agent-riding: #f2a33a;
  --map-label: rgba(20, 32, 50, 0.85);
  --map-bubble: rgba(255, 255, 255, 0.95);
  --map-bubble-ink: #0b1220;
  --ui: "Chakra Petch", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #070b12;
  --bg-dot: #0f1826;
  --bar-1: #0a111c;
  --bar-2: #080d16;
  --tabs-bg: #080d16;
  --panel: #0b121d;
  --panel-2: #101a29;
  --line: #1b293b;
  --line-2: #26384f;
  --ink: #c8d4e5;
  --ink-dim: #6c7d96;
  --strong: #ffffff;
  --accent: #ffb547;
  --accent-dim: #8a6427;
  --accent-hover: #ffc66e;
  --accent-fill: #ffb547;
  --on-accent: #070b12;
  --accent-wash: rgba(255, 181, 71, 0.07);
  --hover-wash: rgba(255, 255, 255, 0.025);
  --cyan: #5ce1e6;
  --trust: #7cf29a;
  --distrust: #ff5c7a;
  --distrust-wash: rgba(255, 92, 122, 0.05);
  --player: #c792ff;
  --reflect: #b9c5ff;
  --reflect-line: #8fa3ff;
  --track: #17243a;
  --tip-bg: #0d1624;
  --shadow: rgba(0, 0, 0, 0.55);
  --overlay: rgba(7, 11, 18, 0.8);
  --crowd: #3c4c66;
  --ride-fill: #23324a;
  --ride-line: #36506f;
  --path: rgba(92, 225, 230, 0.45);
  --pos: #5598e7;
  --neg: #e66767;
  --glow: 0 0 18px rgba(255, 181, 71, 0.35);
  --panel-shadow: none;
  --v-loved: #5598e7;
  --v-liked: #1c5cab;
  --v-meh: #4b5568;
  --v-hated: #e66767;
  --led-off: #26384f;
  --chart-grid: #17243a;
  --chart-axis: #26384f;
  --chart-muted: #6c7d96;
  --s1: #3987e5;
  --s2: #d95926;
  --s3: #199e70;
  --s4: #c98500;
  --s5: #d55181;
  --s6: #9085e9;
  --map-bg: #0b121d;
  --map-grass: #0c1622;
  --map-water: #0b2135;
  --map-scenery: #101a28;
  --map-entrance: #7a5a22;
  --map-ride: #1d2b41;
  --map-path: rgba(92, 225, 230, 0.42);
  --map-queue: rgba(92, 225, 230, 0.2);
  --map-grid: rgba(80, 120, 170, 0.35);
  --map-agent: #ffb547;
  --map-agent-riding: #ffe0a8;
  --map-label: rgba(220, 230, 245, 0.85);
  --map-bubble: rgba(10, 17, 28, 0.92);
  --map-bubble-ink: #e9f6ff;
  color-scheme: dark;
}
/* Building types: the same accent wherever a building appears. */
:root, :root[data-theme="dark"] {
  --k-workplace: var(--s1);
  --k-market: var(--s2);
  --k-bank: var(--s3);
  --k-social_club: var(--s5);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(circle at 1px 1px, var(--bg-dot) 1px, transparent 0);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 14px;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
button {
  font: inherit;
  color: var(--ink);
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: 3px;
  padding: 3px 10px;
  cursor: pointer;
}
button:hover { border-color: var(--accent-dim); color: var(--strong); }
button:focus-visible, canvas:focus-visible, [tabindex]:focus-visible, textarea:focus-visible, input:focus-visible, .chart-svg:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:disabled { opacity: 0.5; cursor: default; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
button.primary:hover { background: var(--accent-hover); color: var(--on-accent); }
button.ghost { background: transparent; border-color: var(--line-2); color: var(--ink-dim); }
button.ghost[aria-pressed="true"] { color: var(--accent); border-color: var(--accent-dim); }
button.small { padding: 1px 8px; font-size: 12px; }
a.agent { color: var(--accent); cursor: pointer; text-decoration: none; }
a.agent:hover, a.agent:focus-visible { text-decoration: underline; }
h2, h3 { margin: 0; font-weight: 600; }

/* ---------- top bar ---------- */
.bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(var(--bar-1), var(--bar-2));
}
.ident { min-width: 210px; display: grid; gap: 1px; }
.park { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: 0.01em; color: var(--strong); line-height: 1.15; }
.clockline { font-family: var(--mono); font-size: 11.5px; color: var(--ink-dim); display: flex; align-items: center; gap: 6px; }
.clockline #t-clock { color: var(--ink); }
.clockline #t-tick { color: var(--ink); font-variant-numeric: tabular-nums; }
.clockline .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }
.telemetry { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 18px; margin: 0; flex: 1; min-width: 0; }
.telemetry div { display: flex; flex-direction: column; }
.telemetry dt { font-size: 11px; color: var(--ink-dim); letter-spacing: 0.01em; }
.telemetry dd { margin: 0; font-family: var(--mono); font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
/* The date changes every game day; room for the longest month keeps the readouts after it still. */
#t-date { min-width: 20ch; }
.telemetry .hero dd { font-size: 24px; font-weight: 600; line-height: 1.1; color: var(--accent); text-shadow: var(--glow); }
.telemetry .hero { padding-right: 14px; border-right: 1px solid var(--line); }
.telemetry .hero + div:not(.hero) { padding-left: 2px; }

/* Building status lights. */
.leds { display: flex; gap: 4px; align-items: center; padding: 3px; border: 1px solid var(--line); background: var(--panel-2); }
.led { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px; border: 1px solid transparent; background: transparent; font-size: 12px; color: var(--ink-dim); border-radius: 2px; }
.led:hover { border-color: var(--line-2); color: var(--strong); }
/* The count keeps its room when nobody is inside, so the lights don't shift as people come and go. */
.led-count { min-width: 1.4ch; margin-left: -2px; font-variant-numeric: tabular-nums; }
.led .lamp { width: 9px; height: 9px; border-radius: 50%; background: var(--kind); opacity: 0.28; flex: none; }
.led.busy { color: var(--ink); }
.led.busy .lamp { opacity: 1; box-shadow: 0 0 0 0 color-mix(in srgb, var(--kind) 60%, transparent); animation: lamp 2.4s ease-out infinite; }
.led.closed .lamp { background: transparent; opacity: 1; box-shadow: inset 0 0 0 2px var(--distrust); }
@keyframes lamp { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--kind) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 6px transparent; } }
.lamp.ping { animation: ping 700ms ease-out; }
@keyframes ping { 0% { transform: scale(1.9); opacity: 1; } 100% { transform: scale(1); } }

/* Updates: a changed number flashes, a new row slides in. */
.bump { animation: bump 900ms ease-out; }
@keyframes bump { 0% { background: color-mix(in srgb, var(--accent-fill) 32%, transparent); } 100% { background: transparent; } }
tr.row-new { animation: rownew 1400ms ease-out; }
@keyframes rownew { 0% { background: color-mix(in srgb, var(--accent-fill) 22%, transparent); transform: translateY(-4px); } 25% { transform: none; } 100% { background: transparent; } }
.feed li.fresh, .hl.fresh, .blog li.fresh { animation: slidein 420ms ease-out; }
@keyframes slidein { from { transform: translateX(-8px); opacity: 0; } }
.bar-end { display: flex; align-items: center; gap: 14px; }
.theme-toggle { font-size: 12px; }
.link { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-dim); white-space: nowrap; }
.link .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--distrust); }
.link.live { color: var(--trust); }
.link.live .dot { background: var(--trust); box-shadow: 0 0 0 0 color-mix(in srgb, var(--trust) 60%, transparent); animation: beat 2s infinite; }
@keyframes beat { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- tabs ---------- */
.tabs {
  display: flex;
  gap: 2px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--tabs-bg);
}
.tabs button {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 8px 14px 7px;
  color: var(--ink-dim);
  font-size: 14px;
  font-weight: 500;
}
.tabs button:hover { color: var(--strong); }
.tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.badge {
  display: inline-block;
  min-width: 18px;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--distrust);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

/* ---------- layout ---------- */
.stage { flex: 1; min-height: 0; position: relative; display: flex; }
.grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(360px, 1fr);
  grid-template-rows: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 12px;
  padding: 12px;
  position: relative;
}
.map-panel { grid-row: 1 / span 2; }

.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--panel-shadow);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
/* Corner brackets: the console frame. */
.panel::before, .panel::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent-dim);
  pointer-events: none;
}
.panel::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.panel::after { bottom: -2px; right: -2px; border-left: none; border-top: none; }
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px 8px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 { font-size: 15px; font-weight: 700; color: var(--strong); letter-spacing: 0.005em; }
.readout { font-size: 12.5px; color: var(--ink-dim); }
.readout span { font-family: var(--mono); color: var(--cyan); }

/* ---------- map ---------- */
.map-wrap, .graph-wrap { position: relative; flex: 1; min-height: 0; }
#map, #graph { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#map { cursor: grab; }
#map.dragging { cursor: grabbing; }
.graph-empty {
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 12.5px;
  color: var(--ink-dim);
  pointer-events: none;
}
.map-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink-dim);
  font-size: 14px;
  pointer-events: none;
  text-align: center;
  padding: 24px;
  background: var(--panel);
}
.legend {
  position: absolute;
  left: 12px;
  bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 12px;
  color: var(--ink-dim);
  background: var(--overlay);
  padding: 5px 10px;
  border: 1px solid var(--line);
}
.legend.small { font-size: 11.5px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 10px; height: 10px; }
.sw-agent { background: var(--accent); border-radius: 50%; box-shadow: 0 0 6px var(--accent); }
.sw-crowd { background: var(--crowd); border-radius: 50%; width: 5px; height: 5px; }
.sw-path { background: var(--path); }
.sw-ride { background: var(--ride-fill); border: 1px solid var(--ride-line); }
.sw-talk { height: 2px; width: 14px; background: repeating-linear-gradient(90deg, var(--cyan) 0 4px, transparent 4px 7px); }
.sw-trust { height: 3px; width: 14px; background: var(--trust); }
.sw-distrust { height: 3px; width: 14px; background: var(--distrust); }
.sw-gossip { background: var(--cyan); border-radius: 50%; box-shadow: 0 0 6px var(--cyan); }
.zoom { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 4px; }
.zoom button { width: 38px; padding: 4px 0; font-family: var(--mono); background: var(--overlay); }

/* ---------- feed ---------- */
.filters { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.filters button { padding: 1px 9px; font-size: 12.5px; background: transparent; border-color: transparent; color: var(--ink-dim); }
.filters button[aria-selected="true"] { color: var(--accent); border-color: var(--accent-dim); background: var(--accent-wash); }
.feed { list-style: none; margin: 0; padding: 6px 0; overflow-y: auto; flex: 1; scrollbar-color: var(--line-2) transparent; }
.feed li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  padding: 5px 14px;
  border-left: 2px solid transparent;
}
.feed li.fresh { background: var(--accent-wash); }
.feed .t { font-family: var(--mono); font-size: 11.5px; color: var(--ink-dim); padding-top: 2px; }
.feed .who { font-weight: 600; }
.feed .who a { color: var(--accent); text-decoration: none; cursor: pointer; }
.feed .who a:hover, .feed .who a:focus-visible { text-decoration: underline; }
.feed .to { color: var(--ink-dim); }
.feed .text { color: var(--ink); }
.feed li.k-say { border-left-color: var(--accent); }
.feed li.k-say .text::before { content: "\201C"; }
.feed li.k-say .text::after { content: "\201D"; }
.feed li.k-thought .text { color: var(--ink-dim); font-style: italic; }
.feed li.k-reflection { border-left-color: var(--reflect-line); }
.feed li.k-reflection .text { color: var(--reflect); font-style: italic; }
.feed li.k-gossip { border-left-color: var(--cyan); }
.feed li.k-gossip .text { color: var(--cyan); }
.feed li.k-player { border-left-color: var(--player); }
.feed li.k-player .who, .feed li.k-player .text { color: var(--player); }
.feed li.k-goal .text, .feed li.k-ride .text, .feed li.k-social .text { color: var(--ink-dim); }
.feed-empty { color: var(--ink-dim); padding: 18px 14px; }
.jump { position: absolute; right: 16px; bottom: 12px; border-color: var(--accent-dim); color: var(--accent); }

/* ---------- agent card ---------- */
.card {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: min(460px, calc(100% - 24px));
  background: var(--panel);
  border: 1px solid var(--accent-dim);
  box-shadow: -18px 0 40px var(--shadow);
  display: flex;
  flex-direction: column;
  z-index: 5;
  animation: slide 180ms ease-out;
}
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.card-head h2 { font-size: 24px; color: var(--strong); line-height: 1.15; }
.card-head .sub { color: var(--ink-dim); font-size: 13px; margin-top: 2px; }
.card-actions { display: flex; gap: 6px; }
#c-follow[aria-pressed="true"] { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.card-body { overflow-y: auto; padding: 4px 16px 16px; scrollbar-color: var(--line-2) transparent; }
.card-top { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 10px 0 6px; }
#c-radar { width: 100%; height: 190px; }
#c-radar .ring { fill: none; stroke: var(--line-2); }
#c-radar .axis { stroke: var(--line); }
#c-radar .shape { fill: color-mix(in srgb, var(--accent-fill) 18%, transparent); stroke: var(--accent); stroke-width: 1.6; }
#c-radar text { fill: var(--ink-dim); font-family: var(--ui); font-size: 14px; }
.needs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.need { display: grid; grid-template-columns: 66px 1fr 30px; align-items: center; gap: 6px; font-size: 12.5px; }
.need .lbl { color: var(--ink-dim); }
.need .val { font-family: var(--mono); font-size: 12px; text-align: right; }
.meter { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; }
.meter i { height: 8px; background: var(--track); }
.meter i.on { background: var(--cyan); }
.meter.warn i.on { background: var(--accent); }
.meter.bad i.on { background: var(--distrust); }
.block { padding: 12px 0 4px; border-top: 1px solid var(--line); margin-top: 8px; }
.block h3 { font-size: 13px; color: var(--ink-dim); font-weight: 500; margin-bottom: 6px; }
.block.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.goal { margin: 0; font-size: 16px; color: var(--strong); }
.intent { margin: 6px 0 0; color: var(--player); font-size: 13px; }
blockquote { margin: 8px 0 0; padding-left: 10px; border-left: 2px solid var(--line-2); color: var(--ink); font-style: italic; max-width: 62ch; }
.plan { margin: 0; padding-left: 20px; }
.plan li { margin: 2px 0; }
.plan li::marker { font-family: var(--mono); color: var(--accent); }
.plan.empty { list-style: none; padding-left: 0; color: var(--ink-dim); }
.rel, .ops, .mem { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.rel li { display: grid; grid-template-columns: 1fr 46px; gap: 6px; align-items: center; padding: 2px 0; }
.rel a { color: var(--ink); cursor: pointer; text-decoration: none; }
.rel a:hover { color: var(--accent); }
.trustbar { height: 6px; position: relative; background: var(--track); }
.trustbar i { position: absolute; top: 0; bottom: 0; }
.ops li { padding: 2px 0; }
.ops .pos { color: var(--trust); }
.ops .neg { color: var(--distrust); }
.mem li { padding: 4px 0; border-bottom: 1px dashed var(--line); }
.mem .k { font-family: var(--mono); font-size: 11px; color: var(--ink-dim); margin-right: 6px; }
.mem li.player { color: var(--player); }
.mem li.reflection { color: var(--reflect); font-style: italic; }
.muted { color: var(--ink-dim); }

/* ---------- small screens ---------- */
@media (max-width: 980px) {
  body { overflow: auto; }
  .bar { flex-wrap: wrap; gap: 12px; padding: 10px 16px; }
  .grid { grid-template-columns: 1fr; grid-template-rows: 60vh 50vh 60vh; padding: 10px 16px; }
  .map-panel { grid-row: auto; }
  .card { position: fixed; top: 0; right: 0; bottom: 0; width: 100%; }
  .card-top { grid-template-columns: 1fr; }
  .block.two { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .link.live .dot, .led.busy .lamp, .lamp.ping, .bump, tr.row-new, .feed li.fresh, .hl.fresh, .blog li.fresh { animation: none; }
  .card { animation: none; }
}

/* ---------- tab views ---------- */
.view {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 12px 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-color: var(--line-2) transparent;
}
.view > * { flex-shrink: 0; }
.toolbar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.view-title { font-size: 23px; font-weight: 700; color: var(--strong); margin: 0; letter-spacing: 0.005em; }
.range { display: flex; gap: 2px; }
.range button { background: transparent; border-color: transparent; color: var(--ink-dim); font-size: 13px; }
.range button[aria-checked="true"] { color: var(--accent); border-color: var(--accent-dim); background: var(--accent-wash); }
.search {
  font: inherit;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line-2);
  padding: 4px 10px;
  width: 240px;
}
.sub { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-dim); }
.panel-head .sub { font-weight: 400; }
.empty-note { color: var(--ink-dim); padding: 14px; margin: 0; list-style: none; }
.small { font-size: 12.5px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.num-small { font-family: var(--mono); font-size: 12px; color: var(--ink); }
.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  font-size: 11px;
  color: var(--ink-dim);
  vertical-align: 1px;
}
.tag.player { color: var(--player); border-color: color-mix(in srgb, var(--player) 40%, transparent); }
.delta.up, .tile-delta.up { color: var(--trust); }
.delta.down, .tile-delta.down { color: var(--distrust); }
.ok { color: var(--trust); }
.bad { color: var(--distrust); }

/* ---------- stat tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--line-2); box-shadow: var(--panel-shadow); padding: 9px 12px 8px; display: grid; gap: 2px; }
.tile-label { font-size: 12px; color: var(--ink-dim); }
.tile-value { font-family: var(--mono); font-size: 25px; font-weight: 600; color: var(--strong); line-height: 1.2; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; justify-self: start; padding: 0 2px; margin-left: -2px; }
.tile-delta { font-size: 12px; color: var(--ink-dim); min-height: 17px; }
.tile-trend { height: 26px; }

/* ---------- charts ---------- */
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.chart-panel .panel-head { align-items: flex-start; }
.chart { display: flex; flex-direction: column; padding: 6px 10px 8px; height: 250px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--ink-dim); padding: 0 4px 4px 42px; }
.chart-legend span, .legend.inline span { display: inline-flex; align-items: center; gap: 6px; }
.chart-plot { position: relative; flex: 1; min-height: 0; }
.chart-svg { display: block; }
.chart-svg .tick { fill: var(--ink-dim); font-family: var(--mono); font-size: 10.5px; }
.chart-svg .col.hot { filter: brightness(1.35); }
.chart-empty { display: grid; place-items: center; height: 100%; color: var(--ink-dim); font-size: 13px; text-align: center; padding: 0 20px; }
.chart-table { position: absolute; inset: 0; overflow: auto; }
.chart-table table, .grid-table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.chart-table th, .chart-table td { padding: 3px 8px; text-align: right; border-bottom: 1px solid var(--line); }
.chart-table th:first-child, .chart-table td:first-child { text-align: left; }
.chart-table th { position: sticky; top: 0; background: var(--panel); color: var(--ink-dim); font-weight: 500; }
.key { display: inline-block; flex: none; }
.key.line { width: 14px; height: 2px; border-radius: 1px; }
.key.box { width: 10px; height: 10px; border-radius: 2px; }
.tip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 50;
  pointer-events: none;
  background: var(--tip-bg);
  border: 1px solid var(--line-2);
  box-shadow: 0 8px 24px var(--shadow);
  padding: 7px 10px;
  font-size: 12.5px;
  min-width: 140px;
}
.tip-title { color: var(--ink-dim); margin-bottom: 4px; font-family: var(--mono); font-size: 11.5px; }
.tip-row { display: grid; grid-template-columns: 14px auto 1fr; gap: 8px; align-items: center; }
.tip-row strong { color: var(--strong); font-family: var(--mono); font-weight: 600; }
.tip-row span { color: var(--ink-dim); }
.spark { display: block; }

/* ---------- tables ---------- */
.table-wrap { overflow: auto; max-height: 560px; scrollbar-color: var(--line-2) transparent; }
.grid-table th, .grid-table td { padding: 5px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }
.grid-table th { position: sticky; top: 0; z-index: 1; background: var(--panel); color: var(--ink-dim); font-weight: 500; }
.grid-table th.num, .grid-table td.num { text-align: right; }
.grid-table td.empty { color: var(--ink-dim); white-space: normal; padding: 16px 10px; }
.grid-table.compact td { white-space: normal; }
.grid-table tr.clickable { cursor: pointer; }
.grid-table tr.clickable:hover, .grid-table tr.clickable:focus-visible { background: var(--accent-wash); }
button.sort { background: none; border: none; padding: 0; color: inherit; font-weight: 500; }
button.sort:hover { color: var(--strong); }
th[aria-sort="ascending"] button.sort::after { content: " ↑"; color: var(--accent); }
th[aria-sort="descending"] button.sort::after { content: " ↓"; color: var(--accent); }
.ride-name { display: inline-flex; align-items: center; gap: 7px; }
.status { width: 8px; height: 8px; border-radius: 50%; background: var(--trust); flex: none; }
.status.closed, .status.simulating, .status.testing { background: var(--ink-dim); }
.legend.inline { position: static; border: none; background: none; padding: 6px 14px 0; }
.verdict-cell { display: inline-flex; align-items: center; gap: 8px; }
.verdicts { display: inline-flex; gap: 2px; width: 90px; height: 9px; }
.verdicts i { display: block; min-width: 3px; border-radius: 1px; }
.polar { display: inline-flex; align-items: center; gap: 8px; }
.polar-bar { position: relative; width: 70px; height: 7px; background: var(--track); }
.polar-bar::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--line-2); }
.polar-bar i { position: absolute; top: 0; bottom: 0; }
.polar-bar i.pos { background: var(--pos); }
.polar-bar i.neg { background: var(--neg); }
.polar-val { font-family: var(--mono); font-size: 12px; min-width: 40px; }
.agents-here { color: var(--accent); font-family: var(--mono); border-bottom: 1px dotted var(--accent-dim); cursor: default; }
.cells { display: inline-grid; grid-template-columns: repeat(5, 7px); gap: 2px; vertical-align: middle; }
.cells i { height: 9px; background: var(--track); }
.cells i.on { background: var(--cyan); }
.cells.warn i.on { background: var(--accent); }
.cells.bad i.on { background: var(--distrust); }
.mood { display: inline-flex; align-items: center; gap: 8px; }
.who-cell strong { color: var(--strong); font-weight: 600; }
.doing { display: inline-flex; flex-direction: column; line-height: 1.25; white-space: normal; min-width: 180px; max-width: 320px; }
.doing .muted { font-size: 12px; }
.with { display: inline-flex; flex-direction: column; line-height: 1.3; }

/* ---------- people ---------- */
.people { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 12px; align-items: start; }
.people .table-wrap { max-height: calc(100vh - 210px); }
.side { display: flex; flex-direction: column; gap: 12px; }
.groups, .circles { padding: 6px 14px 12px; display: grid; gap: 10px; }
.group { border: 1px solid var(--line); background: var(--panel-2); padding: 8px 10px; display: grid; gap: 5px; }
.group-head { display: flex; align-items: center; gap: 10px; }
.group-head strong { color: var(--strong); }
.group-mood { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; }
.members { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.member.leader a.agent { font-weight: 600; }
.circle { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: baseline; }
.history { list-style: none; margin: 0; padding: 6px 0; max-height: 320px; overflow-y: auto; font-size: 13px; }
.history .ev { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 4px 14px; border-left: 2px solid transparent; }
.history .ev-formed, .history .ev-joined { border-left-color: var(--pos); }
.history .ev-left, .history .ev-disbanded { border-left-color: var(--neg); }
.history .ev-leader { border-left-color: var(--accent-dim); }
.t { font-family: var(--mono); font-size: 11.5px; color: var(--ink-dim); }

/* ---------- stories ---------- */
.stories { display: grid; grid-template-columns: minmax(0, 1fr) 300px minmax(0, 1.25fr); gap: 12px; flex: 1 0 auto; height: calc(100vh - 150px); min-height: 520px; }
.stories .panel { min-height: 0; }
.highlights, .convos { list-style: none; margin: 0; padding: 4px 0; overflow-y: auto; flex: 1; scrollbar-color: var(--line-2) transparent; }
.hl { padding: 9px 14px; border-left: 3px solid var(--line-2); border-bottom: 1px solid var(--line); display: grid; gap: 3px; }
.hl.fresh { background: var(--accent-wash); }
.hl-meta { display: flex; justify-content: space-between; gap: 8px; }
.hl-kind { font-size: 11.5px; color: var(--ink-dim); }
.hl-title { color: var(--strong); font-weight: 600; }
.hl-detail { color: var(--ink); font-size: 13px; }
.hl-who { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12.5px; }
.hl-friendship { border-left-color: var(--pos); }
.hl-fallout { border-left-color: var(--neg); }
.hl-rumour { border-left-color: var(--cyan); }
.hl-group { border-left-color: var(--accent); }
.hl-misbehaviour { border-left-color: var(--s5); }
.hl-exit { border-left-color: var(--ink-dim); }
.convo { padding: 8px 14px; border-bottom: 1px solid var(--line); border-left: 2px solid transparent; cursor: pointer; }
.convo:hover { background: var(--hover-wash); }
.convo.open { border-left-color: var(--accent); background: var(--accent-wash); }
.convo-names { color: var(--strong); font-weight: 500; }
.convo-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--ink-dim); }
.live-tag { color: var(--trust); font-weight: 600; }
.live-tag::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--trust); vertical-align: 1px; }
.transcript { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.transcript .panel-head h2 { font-size: 17px; }
.lines { overflow-y: auto; padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 10px; scrollbar-color: var(--line-2) transparent; }
.line { max-width: 78%; display: grid; gap: 3px; }
.line.left { align-self: flex-start; }
.line.right { align-self: flex-end; text-align: right; }
.line-who { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; }
.line.right .line-who { justify-content: flex-end; }
.bubble { padding: 7px 11px; background: var(--panel-2); border: 1px solid var(--line-2); text-align: left; max-width: 62ch; }
.line.left .bubble { border-left: 2px solid var(--accent); }
.line.right .bubble { border-right: 2px solid var(--cyan); }
.typing { align-self: flex-start; color: var(--ink-dim); font-family: var(--mono); }
.end-why { color: var(--ink-dim); font-size: 13px; margin: 6px 0 0; text-align: center; }
.outcome { border-top: 1px solid var(--line); padding-top: 10px; }
.outcome h3 { font-size: 13px; color: var(--ink-dim); font-weight: 500; margin-bottom: 6px; }
.outcome ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13px; }
.outcome q { color: var(--cyan); }

/* ---------- model ---------- */
.model-bottom { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 12px; align-items: start; }
.model-bottom .table-wrap { max-height: 420px; }

/* ---------- agent card additions ---------- */
.talk textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  padding: 6px 8px;
  resize: vertical;
}
.talk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.talk-status { font-size: 12.5px; color: var(--ink-dim); }
.talk-status.ok { color: var(--trust); }
.talk-status.bad { color: var(--distrust); }
.sparks { display: grid; gap: 4px; }
.spark-row { display: grid; grid-template-columns: 74px 1fr 56px; gap: 8px; align-items: center; font-size: 12.5px; }
.spark-row .lbl { color: var(--ink-dim); }
.spark-row .val { font-family: var(--mono); font-size: 12px; text-align: right; }
.spark-row .spark-line { min-width: 0; }
.spark-row svg { width: 100%; }
.c-convos { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.c-convos li { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; align-items: center; padding: 3px 0; }
.timeline { list-style: none; margin: 0; padding: 0; font-size: 13px; max-height: 360px; overflow-y: auto; scrollbar-color: var(--line-2) transparent; }
.tl { display: grid; grid-template-columns: 44px 62px 1fr; gap: 8px; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.tl-kind { font-size: 11.5px; color: var(--ink-dim); padding-top: 1px; }
.tl-say .tl-text { color: var(--strong); }
.tl-thought .tl-text, .tl-reflection .tl-text { color: var(--ink-dim); font-style: italic; }
.tl-gossip .tl-text { color: var(--cyan); }
.tl-player .tl-text, .tl-player .tl-kind { color: var(--player); }

@media (max-width: 1200px) {
  .stories { grid-template-columns: 1fr 1fr; }
  .stories > .panel:first-child { grid-column: span 2; max-height: 420px; }
  .people { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .tabs { overflow-x: auto; padding: 0 8px; }
  .view { padding: 10px 16px 24px; }
  .charts, .model-bottom, .stories { grid-template-columns: 1fr; }
  .stories > .panel:first-child { grid-column: auto; }
  .stories .panel { max-height: 70vh; }
  .search { width: 100%; }
}
@media (max-width: 980px) {
  .stage { flex: 1 0 auto; min-height: 75vh; }
}
.panel-head { flex-wrap: wrap; }
.panel-head > .sub { flex-basis: 100%; margin-top: -4px; }
.bar, .tabs { flex: none; }

/* ---------- ledger ---------- */
.backend-line { margin-left: auto; }
.ledger { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: 12px; align-items: start; }
.table-wrap.tall { max-height: calc(100vh - 290px); }
.tx-table td { white-space: nowrap; }
.who-pay .arrow { color: var(--ink-dim); }
.chip { display: inline-block; padding: 0 7px; border-radius: 9px; font-size: 11.5px; border: 1px solid var(--line-2); color: var(--ink-dim); }
.chip.settled { color: var(--trust); border-color: color-mix(in srgb, var(--trust) 40%, transparent); }
.chip.pending, .chip.queued { color: var(--accent); border-color: var(--accent-dim); }
.chip.failed { color: var(--distrust); border-color: color-mix(in srgb, var(--distrust) 40%, transparent); }
tr.failed-row td { background: var(--distrust-wash); }
.health { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; margin: 0; padding: 8px 14px 12px; font-size: 12.5px; }
.health dt { color: var(--ink-dim); }
.health dd { margin: 0; overflow: hidden; text-overflow: ellipsis; }

/* ---------- agent buildings (park tab) ---------- */
.buildings { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; padding: 8px 14px 14px; }
.building { border: 1px solid var(--line); background: var(--panel-2); padding: 9px 11px; display: grid; gap: 6px; border-top: 2px solid var(--line-2); }
.building.b-workplace { border-top-color: var(--k-workplace); }
.building.b-market { border-top-color: var(--k-market); }
.building.b-bank { border-top-color: var(--k-bank); }
.building.b-social_club { border-top-color: var(--k-social_club); }
.building-head { display: flex; align-items: center; gap: 6px; }
.building-head strong { color: var(--strong); }
.building-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--ink-dim); }
.occupants { list-style: none; margin: 0; padding: 0; font-size: 12.5px; display: grid; gap: 2px; }

@media (max-width: 1200px) {
  .ledger { grid-template-columns: 1fr; }
}

/* ---------- buildings tab ---------- */
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.bcard {
  box-shadow: var(--panel-shadow);
  display: grid;
  gap: 6px;
  padding: 10px 12px 8px;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--kind);
  border-radius: 0;
}
.bcard:hover { border-color: var(--line-2); border-top-color: var(--kind); color: var(--ink); }
.bcard.on { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--kind); }
.bcard-head { display: flex; align-items: center; gap: 8px; }
.bcard-head strong { color: var(--strong); font-size: 15px; }
.bcard-head .kind { font-size: 11.5px; color: var(--kind); font-weight: 600; }
.bstatus { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-dim); }
.bstatus .lamp { width: 8px; height: 8px; border-radius: 50%; background: var(--kind); opacity: 0.28; }
.bcard.busy .bstatus { color: var(--ink); }
.bcard.busy .bstatus .lamp { opacity: 1; animation: lamp 2.4s ease-out infinite; }
.bcard.closed .bstatus .lamp { background: transparent; opacity: 1; box-shadow: inset 0 0 0 2px var(--distrust); }
.bcard-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.bcard-stats span { display: grid; }
.bcard-stats b { color: var(--strong); font-family: var(--mono); font-weight: 600; font-size: 19px; line-height: 1.15; }
.bcard-stats small { font-size: 11px; color: var(--ink-dim); }
.bcard-spark { display: grid; gap: 1px; border-top: 1px dashed var(--line); padding-top: 5px; }
.bcard-spark .spark { width: 100%; height: 30px; }
.bcard-spark span { font-size: 10.5px; color: var(--ink-dim); }

.bpage-inner { display: flex; flex-direction: column; gap: 12px; }
.bpage-inner > * { flex-shrink: 0; }
.progress { display: inline-grid; grid-template-columns: 56px auto; align-items: center; gap: 6px; }
.progress i { display: block; height: 5px; background: var(--kind); border-radius: 3px; box-shadow: 0 0 0 0 transparent; justify-self: start; }
.progress::before { content: ""; grid-area: 1 / 1; height: 5px; background: var(--track); border-radius: 3px; }
.progress i { grid-area: 1 / 1; }
/* Room for "100%", so the column doesn't resize as the percentage ticks up. */
.progress span { min-width: 4ch; text-align: right; }
.timeline-box { padding: 6px 12px 10px; overflow-x: auto; }
.timeline-svg { width: 100%; height: auto; min-width: 640px; }
.timeline-svg .tl-name { fill: var(--ink); }
.timeline-svg .tl-name:hover { fill: var(--accent); }
.tl-live { animation: tlpulse 1.8s ease-in-out infinite; }
@keyframes tlpulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .tl-live, .bcard.busy .bstatus .lamp { animation: none; } }
.bpage { display: flex; flex-direction: column; gap: 12px; }
.bpage > * { flex-shrink: 0; }
.bhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-left: 3px solid var(--kind); padding: 2px 0 2px 12px; }
.bhead h2 { font-size: 22px; color: var(--strong); }
.bhead .sub { margin: 2px 0 0; color: var(--ink-dim); font-size: 13px; }
.bscene { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(240px, 1fr); gap: 12px; align-items: start; }
.menu { list-style: none; margin: 0; padding: 6px 14px 12px; display: grid; gap: 6px; font-size: 13px; }
.menu li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line); padding-bottom: 5px; }
.menu li .mono { color: var(--accent); text-align: right; }
.bboard { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.board-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
.board-two > * { min-width: 0; }
.board-two > * + * { border-left: 1px solid var(--line); }
.blog { list-style: none; margin: 0; padding: 6px 14px 12px; display: grid; gap: 6px; font-size: 12.5px; max-height: 380px; overflow: auto; }
.blog li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.blog .t { font-family: var(--mono); font-size: 11.5px; color: var(--ink-dim); }
.blog.talk q { flex-basis: 100%; color: var(--ink-dim); font-style: italic; padding-left: 44px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px 14px; margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 12px; color: var(--ink-dim); }
.facts dd { margin: 0; color: var(--strong); font-size: 15px; }
.hour-bars { padding: 8px 12px 10px; }
.hour-bars svg { width: 100%; height: auto; display: block; }
@media (max-width: 900px) {
  .bscene, .bboard, .board-two { grid-template-columns: 1fr; }
  .board-two > * + * { border-left: none; border-top: 1px solid var(--line); }
}

/* ---------- money flow ---------- */
.flow-box { padding: 8px 14px 12px; }
.flow-svg { width: 100%; height: auto; display: block; }
.flow-band { transition: fill-opacity 120ms; }
.flow-band:hover { fill-opacity: 0.62; }

/* ---------- narrow screens: top bar ---------- */
@media (max-width: 980px) {
  .ident { flex-basis: 100%; }
  .telemetry { flex-basis: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; }
  .telemetry .hero { border-right: none; padding-right: 0; }
  .telemetry .hero dd { font-size: 21px; }
  .telemetry dd { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .leds { flex-wrap: wrap; }
  .bar-end { margin-left: auto; }
}

/* ---------- steadiness ---------- */
/* Scroll areas whose content grows and shrinks with live data keep the scrollbar's room, so a
   scrollbar appearing doesn't squeeze (and re-wrap) everything inside. */
.view, .feed, .table-wrap, .card-body, .timeline, .history, .blog, .highlights, .convos, .lines, .chart-table { scrollbar-gutter: stable; }
/* Live numbers keep their width as digits change. */
.bcard-stats b, .num-small, .need .val, .spark-row .val, .readout span, .polar-val, .facts dd, .health dd, .tip-row strong, .badge { font-variant-numeric: tabular-nums; }
/* First paint waits (briefly, at most ~0.8 s) for the web fonts, so text doesn't draw in a fallback
   face and then jump when they arrive. The page background is painted meanwhile. */
.fonts-wait body > * { visibility: hidden; }

/* Self-hosted faces (generated by build-readonly.mjs). */
@font-face { font-family: "Chakra Petch"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ChakraPetch-400.woff2") format("woff2"), local("Chakra Petch"); }
@font-face { font-family: "Chakra Petch"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ChakraPetch-500.woff2") format("woff2"), local("Chakra Petch"); }
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/ChakraPetch-600.woff2") format("woff2"), local("Chakra Petch"); }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/ChakraPetch-700.woff2") format("woff2"), local("Chakra Petch"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/JetBrainsMono-400.woff2") format("woff2"), local("JetBrains Mono"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/JetBrainsMono-600.woff2") format("woff2"), local("JetBrains Mono"); }
