:root {
  --bg: #090c12;
  --panel: #0f131c;
  --panel-2: #151a26;
  --line: #222a3a;
  --text: #e9edf5;
  --muted: #8b95a9;
  --dim: #5d6679;
  --amber: #f5b942;
  --green: #3ddc97;
  --red: #ff5d73;
  --blue: #5aa9ff;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button, select { font: inherit; color: inherit; }
small {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--dim);
  text-transform: uppercase;
}

#app { display: grid; grid-template-columns: minmax(0, 1fr) 392px; height: 100vh; }

/* ---------- Stage ---------- */
#stage { position: relative; min-width: 0; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 40%, #121826 0%, #0a0d14 60%, #07090e 100%); }
#scene, #scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#scene .labels { position: absolute; inset: 0; pointer-events: none; }
#scene .labels > div > * { zoom: var(--label-zoom, 1); }       /* small in the overview of a roomy floor, full size up close */

.brand { position: absolute; top: 20px; left: 22px; display: flex; gap: 12px; align-items: center; pointer-events: none; }
.brand h1 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: 0.08em; }
.brand h1 span { color: var(--amber); }
.brand p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.brand-mark { display: flex; align-items: flex-end; gap: 3px; height: 30px; }
.brand-mark i { width: 6px; border-radius: 2px; background: var(--amber); }
.brand-mark i:nth-child(1) { height: 12px; opacity: .55; }
.brand-mark i:nth-child(2) { height: 21px; opacity: .8; }
.brand-mark i:nth-child(3) { height: 30px; }

.chip { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .1em;
  padding: 2px 7px; border-radius: 4px; }
.chip-paper { color: #0a0d14; background: var(--amber); }

/* Idea path */
#stepper { position: absolute; top: 20px; left: 272px;
  display: flex; align-items: center; gap: 0; padding: 6px 8px; border-radius: 999px;
  background: rgba(15, 19, 28, .78); border: 1px solid var(--line); backdrop-filter: blur(10px);
  max-width: calc(100% - 294px); overflow: hidden; }
#stepper .step { display: flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px;
  font-size: 12px; color: var(--dim); white-space: nowrap; transition: color .3s, background .3s; }
#stepper .step i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .7; }
#stepper .step.done { color: var(--muted); }
#stepper .step.done i { background: var(--green); opacity: 1; }
#stepper .step.on { color: #0a0d14; background: var(--c, var(--amber)); font-weight: 600; }
#stepper .step.on i { background: #0a0d14; opacity: 1; animation: blink 1s infinite; }
#stepper .sep { width: 10px; height: 1px; background: var(--line); flex: none; }
@keyframes blink { 50% { opacity: .25; } }

.decision { position: absolute; top: 72px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; padding: 8px 22px 10px; border-radius: 12px;
  background: rgba(15, 19, 28, .9); border: 1px solid var(--dc, var(--amber));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--dc, var(--amber)) 14%, transparent); }
.decision strong { font-size: 22px; letter-spacing: .06em; color: var(--dc, var(--amber)); }
.decision em { font-style: normal; font-size: 12px; color: var(--muted); max-width: 440px; text-align: center; margin-top: 2px; }
.decision em:empty { display: none; }
.decision[hidden] { display: none; }

.stage-foot { position: absolute; left: 22px; right: 22px; bottom: 18px; display: flex;
  justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; pointer-events: none; }
.controls { display: flex; gap: 8px; align-items: center; pointer-events: auto; flex-wrap: wrap; }
.controls select, .controls button { height: 32px; padding: 0 12px; border-radius: 8px; cursor: pointer;
  background: rgba(15, 19, 28, .86); border: 1px solid var(--line); font-size: 12.5px; }
.controls select { max-width: 230px; font-family: var(--mono); font-size: 11.5px; }
.controls button:hover { border-color: #3a4560; }
#btn-replay { background: var(--amber); color: #0a0d14; border-color: var(--amber); font-weight: 600; }
#btn-replay.stop { background: transparent; color: var(--text); border-color: var(--line); }
.speed { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.speed button { border: 0; border-radius: 0; height: 30px; padding: 0 9px; font-family: var(--mono); font-size: 11px;
  background: rgba(15, 19, 28, .86); color: var(--muted); }
.speed button.on { background: var(--panel-2); color: var(--text); }
.legend { display: flex; gap: 14px; color: var(--muted); font-size: 11.5px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { display: inline-block; width: 10px; height: 10px; }
.lg-human { border-radius: 50%; background: #38d6c4; }
.lg-robot { border-radius: 2px; background: var(--blue); }
.lg-dossier { border-radius: 2px; background: var(--amber); transform: rotate(8deg); }

/* ---------- 3D labels ---------- */
.zone-label { transform-origin: left bottom; white-space: nowrap; padding: 3px 9px 4px; border-radius: 7px;
  background: rgba(10, 13, 20, .72); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  transition: background .3s, box-shadow .3s; }
.zone-label b { display: block; font-size: 12.5px; font-weight: 600; color: var(--c); letter-spacing: .02em; }
.zone-label span { display: block; font-size: 10.5px; color: var(--muted); margin-top: -1px; }
.zone-label.on { background: color-mix(in srgb, var(--c) 18%, #0a0d14); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 16%, transparent); }

.agent-name { font-size: 10.5px; color: var(--muted); white-space: nowrap; padding: 1px 6px; border-radius: 5px;
  background: rgba(10, 13, 20, .6); transition: color .3s, background .3s; }
.agent-name.working { color: #0a0d14; background: var(--c); font-weight: 600; }
.agent-name.done { color: var(--text); }
.agent-name.done::before { content: "✓ "; color: var(--green); }
.agent-name.selected { outline: 1px solid var(--text); }

.bubble { max-width: 210px; padding: 5px 9px; border-radius: 9px 9px 9px 2px; font-size: 11.5px; line-height: 1.3;
  color: var(--text); background: rgba(21, 26, 38, .95); border: 1px solid color-mix(in srgb, var(--c) 60%, transparent);
  opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.bubble { position: relative; top: var(--dy, 0px); border-left: 3px solid var(--c); }
.bubble.show { opacity: 1; transform: none; }
.bubble .who { display: block; margin-bottom: 2px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--c); }
.bubble.chip { max-width: 180px; padding: 2px 8px; font-size: 10.5px; background: rgba(21, 26, 38, .84); }
.bubble.chip.show { opacity: .86; }
.bubble.chip .who { display: inline; margin: 0 6px 0 0; }
.bubble.chip .txt { color: var(--muted); }
.agent-name.thinking::after { content: " ···"; animation: blink 1s infinite; }
.bubble.wide { white-space: normal; width: max-content; max-width: 290px; display: -webkit-box; -webkit-line-clamp: 4;
  -webkit-box-orient: vertical; box-shadow: 0 6px 22px rgba(0, 0, 0, .45); }
.desklog li.new { animation: flash 1.4s ease-out; }

.dossier-label { font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: .06em;
  color: #0a0d14; background: var(--amber); padding: 2px 8px; border-radius: 5px;
  box-shadow: 0 0 18px rgba(245, 185, 66, .55); }

/* ---------- Side panel ---------- */
#panel { display: flex; flex-direction: column; min-height: 0; background: var(--panel);
  border-left: 1px solid var(--line); }
.run-card { padding: 18px 18px 14px; border-bottom: 1px solid var(--line); }
.run-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ticker { font-family: var(--mono); font-size: 30px; font-weight: 600; letter-spacing: .02em; line-height: 1.15; }
.status { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; padding: 3px 8px;
  border-radius: 5px; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); white-space: nowrap; }
.status-live { color: #0a0d14; background: var(--red); border-color: var(--red); }
.status-live::before { content: "● "; animation: blink 1s infinite; }
.status-replay { color: #0a0d14; background: var(--amber); border-color: var(--amber); }
.status-done { color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.status-off { color: var(--dim); }
.status-on { color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 0; }
.stats div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; padding: 7px 9px; }
.stats dt { font-size: 10.5px; color: var(--dim); }
.stats dd { margin: 1px 0 0; font-family: var(--mono); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.run-sub { margin: 10px 0 0; font-size: 11.5px; color: var(--dim); font-family: var(--mono); }

.tabs { display: flex; gap: 2px; padding: 8px 12px 0; border-bottom: 1px solid var(--line); }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 10px 9px;
  color: var(--muted); cursor: pointer; font-size: 13px; }
.tabs button.on { color: var(--text); border-bottom-color: var(--amber); font-weight: 600; }
.tab-body { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 0; scrollbar-width: thin; scrollbar-color: #2a3346 transparent; }
.tab-body[hidden] { display: none; }
.empty { color: var(--dim); padding: 14px 18px; margin: 0; font-size: 12.5px; }

#feed { list-style: none; margin: 0; padding: 0; }
#feed li { display: grid; grid-template-columns: 44px 10px 1fr; gap: 8px; align-items: baseline; padding: 6px 18px;
  cursor: default; border-left: 2px solid transparent; }
#feed li.has-report { cursor: pointer; }
#feed li.has-report:hover { background: var(--panel-2); }
#feed li.new { animation: flash 1.2s ease-out; }
@keyframes flash { from { background: color-mix(in srgb, var(--c) 22%, transparent); } to { background: transparent; } }
#feed time { font-family: var(--mono); font-size: 10.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
#feed .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); transform: translateY(-1px); }
#feed p { margin: 0; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
#feed p b { color: var(--text); font-weight: 600; }
#feed li.key p { color: var(--text); }
#feed .more { color: var(--c); font-size: 11px; white-space: nowrap; }

.log-summary { margin: 4px 18px 6px; font-size: 11.5px; color: var(--muted); }
.desklog { list-style: none; margin: 0; padding: 0; }
.desklog li { display: grid; grid-template-columns: 74px 10px 1fr; gap: 8px; align-items: baseline; padding: 6px 18px; }
.desklog time { font-family: var(--mono); font-size: 10.5px; color: var(--dim); }
.desklog .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); transform: translateY(-1px); }
.desklog p { margin: 0; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.desklog p b { color: var(--text); font-weight: 600; }
.report-bar { display: flex; gap: 8px; align-items: flex-start; padding: 8px 18px 2px; }
#btn-follow { flex: none; height: 26px; padding: 0 10px; border-radius: 999px; cursor: pointer; font-size: 11.5px;
  background: transparent; border: 1px solid var(--line); color: var(--muted); }
#btn-follow.on { background: color-mix(in srgb, var(--green) 16%, transparent); border-color: color-mix(in srgb, var(--green) 45%, transparent); color: var(--green); }
#btn-follow.on::before { content: "● "; animation: blink 1.4s infinite; }
.chips { display: flex; flex-wrap: nowrap; gap: 5px; min-width: 0; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; }
.chips button { height: 26px; padding: 0 9px; border-radius: 999px; cursor: pointer; font-size: 11px; white-space: nowrap;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); }
.chips button::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--c); margin-right: 5px; }
.chips button.on { color: var(--text); border-color: var(--c); }
.report-head { padding: 10px 18px 4px; }
.report-head h2 { margin: 0; font-size: 16px; }
.report-head p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.report-body { padding: 4px 18px 18px; font-size: 13px; color: #c9d0dd; overflow-wrap: anywhere; }
.report-body h3, .report-body h4 { color: var(--text); margin: 16px 0 6px; font-size: 13.5px; }
.report-body h3 { font-size: 14.5px; }
.report-body p { margin: 0 0 9px; }
.report-body ul { margin: 0 0 9px; padding-left: 18px; }
.report-body li { margin-bottom: 3px; }
.report-body b { color: var(--text); }
.report-body .tbl { overflow-x: auto; margin: 0 0 10px; }
.report-body table { border-collapse: collapse; font-size: 11.5px; font-family: var(--mono); }
.report-body th, .report-body td { border: 1px solid var(--line); padding: 3px 7px; text-align: left; vertical-align: top; }
.report-body th { background: var(--panel-2); color: var(--text); font-weight: 500; }
.report-body th, .report-body td { white-space: nowrap; }
.report-body td:last-child { white-space: normal; min-width: 150px; }
.report-body th:only-child, .report-body td:only-child { min-width: 0; }

.schedule { border-top: 1px solid var(--line); padding: 10px 18px 8px; background: #0c1018; }
#sched-list { list-style: none; margin: 7px 0 0; padding: 0; }
#sched-list li { display: grid; grid-template-columns: 42px 82px 1fr; gap: 8px; font-size: 11.5px; padding: 2px 0; color: var(--muted); }
#sched-list time { font-family: var(--mono); color: var(--text); }
#sched-list b { font-weight: 500; color: var(--text); }
#sched-list li.off { opacity: .45; }
#sched-list li.now span { color: var(--amber); }
#sched-list li.done span { color: var(--green); }
#sched-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.health { margin: 7px 0 0; font-size: 11px; color: var(--muted); cursor: help; }
.health.ok::before, .health.bad::before { content: "● "; }
.health.ok::before { color: var(--green); }
.health.bad::before { color: var(--red); }
.acct-body .pos.ord { color: var(--amber); }
.acct-body .pos.plan { color: var(--muted); font-size: 10.5px; gap: 8px; }
.account { border-top: 1px solid var(--line); padding: 12px 18px 14px; background: #0c1018; }
.account-row { display: flex; justify-content: space-between; align-items: center; }
.acct-body { margin: 8px 0 10px; font-size: 12.5px; color: var(--muted); }
.acct-body .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.acct-body .nums b { display: block; font-family: var(--mono); color: var(--text); font-size: 14px; font-weight: 500; }
.acct-body .pos { margin-top: 8px; font-family: var(--mono); font-size: 11.5px; display: flex; justify-content: space-between; }
.up { color: var(--green); } .down { color: var(--red); }
.budget { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; }
.budget b { font-family: var(--mono); font-size: 12px; font-weight: 500; }
.bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--panel-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--amber); transition: width .6s; }

@media (max-width: 980px) {
  body { overflow: auto; }
  #app { grid-template-columns: 1fr; height: auto; }
  #stage { height: 62vh; min-height: 380px; }
  #panel { border-left: 0; border-top: 1px solid var(--line); height: auto; }
  .tab-body { max-height: 46vh; }
  #stepper { display: none; }
  .legend { display: none; }
}
/* ---------- Views and the performance page ---------- */
.views { position: absolute; top: 66px; left: 22px; z-index: 6; display: flex; border: 1px solid var(--line);
  border-radius: 9px; overflow: hidden; background: rgba(15, 19, 28, .86); }
.views button { border: 0; background: none; padding: 6px 13px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.views button.on { background: var(--panel-2); color: var(--text); font-weight: 600; }
#performance { position: absolute; inset: 0; z-index: 5; overflow-y: auto; background: var(--bg);
  scrollbar-width: thin; scrollbar-color: #2a3346 transparent; }
#performance[hidden] { display: none; }
.perf-open #stepper, .perf-open .decision, .perf-open .stage-foot { display: none; }
.perf-open #scene { visibility: hidden; }   /* the 3D labels are HTML and would show through the page */
/* a speech bubble sets its own visibility when it opens, which a hidden parent cannot overrule: take the whole layer out */
.perf-open #scene .labels, .opt-open #scene .labels { display: none !important; }
.brand { z-index: 6; }
.perf-inner { max-width: 1040px; margin: 0 auto; padding: 112px 26px 40px; }
.perf-head h2 { margin: 0; font-size: 24px; letter-spacing: .01em; }
.perf-head p { margin: 4px 0 18px; color: var(--muted); font-size: 13px; max-width: 70ch; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; min-width: 0; }
.tile b { display: block; font-family: var(--mono); font-size: 21px; font-weight: 500; margin-top: 3px; font-variant-numeric: tabular-nums; }
.tile b i { font-style: normal; color: var(--dim); font-size: 15px; }
.tile span { display: block; font-size: 11px; color: var(--dim); margin-top: 1px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 15px 17px 14px; margin-bottom: 14px; min-width: 0; }
.card h3 { margin: 0; font-size: 14.5px; }
.card-sub { margin: 3px 0 10px; color: var(--muted); font-size: 12px; max-width: 80ch; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid { stroke: #1c2333; stroke-width: 1; }
.chart .ref { stroke: #5d6679; stroke-width: 1; stroke-dasharray: 4 4; }
.chart .cross { stroke: #5d6679; stroke-width: 1; }
.chart .axis { fill: var(--dim); font-family: var(--mono); font-size: 11px; }
.chart .value { fill: var(--text); font-family: var(--mono); font-size: 12px; font-weight: 600; }
.chart .hit { cursor: crosshair; }
.tip { position: absolute; pointer-events: none; background: #1a2030; border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 9px; font-size: 11.5px; width: 190px; box-shadow: 0 6px 20px rgba(0, 0, 0, .45); }
.tip b { display: block; font-family: var(--mono); font-size: 13px; }
.tip span { display: block; color: var(--muted); }
.bar-row { display: grid; grid-template-columns: 96px 1fr 26px; gap: 10px; align-items: center; padding: 4px 0; font-size: 12.5px; color: var(--muted); }
.bar-row .track { height: 12px; border-radius: 4px; background: var(--panel-2); overflow: hidden; }
.bar-row .track i { display: block; height: 100%; min-width: 0; border-radius: 0 4px 4px 0; background: #8fa3c8; }
.bar-row b { font-family: var(--mono); color: var(--text); font-weight: 500; text-align: right; }
#performance table { border-collapse: collapse; width: 100%; font-size: 12px; }
#performance th { text-align: left; font-weight: 500; color: var(--dim); font-size: 11px; padding: 5px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
#performance td { padding: 6px 8px; border-bottom: 1px solid #171d2a; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
#performance #review-stats td:last-child { white-space: normal; font-family: var(--sans); color: var(--muted); }
#perf-trades, #perf-positions, .data-table > div { overflow-x: auto; }
#performance td.why { white-space: normal; min-width: 150px; font-family: inherit; color: var(--muted); line-height: 1.4; }
#nottaken-summary { overflow-x: auto; }
.none { color: var(--dim); font-size: 12.5px; margin: 6px 0 2px; }
.data-table { margin-top: 10px; }
.data-table summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.lesson { border: 1px solid var(--line); border-left-width: 3px; border-radius: 9px; padding: 9px 12px; margin-bottom: 8px; }
.lesson.active { border-left-color: var(--green); }
.lesson.proposal { border-left-color: var(--amber); }
.lesson.watching { border-left-color: var(--dim); }
.lesson-top { display: flex; gap: 9px; align-items: center; }
.lesson .tag { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .08em; padding: 1px 6px; border-radius: 4px;
  background: var(--panel-2); color: var(--text); }
.lesson p { margin: 6px 0 0; font-size: 13px; color: var(--text); max-width: 85ch; }
.lesson p.evidence { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
@media (max-width: 1180px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .two { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* narrow stage: simpler labels */
.compact .zone-label span { display: none; }
.compact .zone-label { padding: 2px 7px 3px; }
.compact .zone-label b { font-size: 11px; }
.compact .agent-name:not(.working):not(.selected) { display: none; }
.compact .bubble { max-width: 150px; font-size: 10.5px; }
.controls button:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Today's board ---------- */
.today { display: flex; gap: 6px; align-items: center; overflow-x: auto; pointer-events: auto; padding-bottom: 6px;
  max-width: 100%; scrollbar-width: thin; }
.today-title { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--dim); white-space: nowrap; margin-right: 4px; }
.today-empty { color: var(--dim); font-size: 11.5px; }
.today-chip { display: inline-flex; align-items: baseline; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; cursor: pointer;
  white-space: nowrap; background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--c); color: var(--text);
  font-size: 11px; flex: none; }
.today-chip b { font-family: var(--mono); font-weight: 600; letter-spacing: .04em; }
.today-chip span { color: var(--muted); }
.today-chip:hover { border-color: #3a4560; border-left-color: var(--c); }
.today-chip.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--panel-2)); }
.today-chip.quiet { opacity: .6; }
.folder-label { font-family: var(--mono); font-weight: 600; font-size: 10.5px; letter-spacing: .05em; color: #0a0d14;
  background: var(--c); padding: 0 5px; line-height: 1.35; border-radius: 4px; cursor: pointer; pointer-events: auto; white-space: nowrap; }
.folder-label.quiet { opacity: .55; }
.folder-label.on { outline: 2px solid var(--text); outline-offset: 1px; }
.story { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.story li { font-size: 12.5px; line-height: 1.45; color: var(--text); }
.story time { font-family: var(--mono); color: var(--dim); margin-right: 8px; }
.story b { margin-right: 4px; }
.stage-foot { flex-wrap: wrap; row-gap: 8px; }
.stage-foot .today { flex: 1 0 100%; order: -1; }

/* =====================================================================================
   Layout v2: a top bar that says what time and what kind of day it is, a flow strip with
   today's counts per desk, one live caption, and a side panel in four tabs.
   ===================================================================================== */
#app { grid-template-columns: minmax(0, 1fr) 428px; grid-template-rows: 56px minmax(0, 1fr); }
#stage, #panel { grid-row: 2; }
.up { color: var(--green); } .down { color: var(--red); } .muted { color: var(--muted); }

#topbar { grid-column: 1 / -1; display: flex; align-items: center; gap: 22px; padding: 0 18px; min-width: 0;
  background: linear-gradient(180deg, #0d121b, #0a0e15); border-bottom: 1px solid var(--line); z-index: 8; }
.tb-brand { display: flex; align-items: center; gap: 10px; flex: none; }
.tb-brand .brand-mark { height: 22px; }
.tb-brand .brand-mark i { width: 5px; }
.tb-brand .brand-mark i:nth-child(1) { height: 9px; } .tb-brand .brand-mark i:nth-child(2) { height: 15px; } .tb-brand .brand-mark i:nth-child(3) { height: 22px; }
.tb-brand h1 { margin: 0; font-size: 14.5px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.tb-brand h1 span { color: var(--amber); }
.tb-session { display: flex; align-items: center; gap: 10px; flex: none; }
.pill { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; padding: 4px 9px; border-radius: 999px;
  color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); white-space: nowrap; }
.pill::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 7px; background: currentColor; vertical-align: 1px; }
.pill[data-session="regular"] { color: #0a0d14; background: var(--green); border-color: var(--green); }
.pill[data-session="regular"]::before { animation: blink 1.2s infinite; }
.pill[data-session="pre"], .pill[data-session="post"] { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 45%, transparent); }
.pill[data-session="pre"]::before, .pill[data-session="post"]::before { animation: blink 1.6s infinite; }
body[data-desk="down"] .pill { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, transparent); }
.tb-clock { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.tb-next { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }
.tb-next b { color: var(--text); font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.tb-tape { display: flex; gap: 6px; min-width: 0; overflow: hidden; }
.tape { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 9px; border-radius: 8px; background: var(--panel-2);
  border: 1px solid var(--line); white-space: nowrap; }
.tape small { letter-spacing: .04em; text-transform: none; font-family: var(--sans); font-size: 11px; color: var(--muted); }
.tape b { font-family: var(--mono); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.tape.up b { color: var(--green); } .tape.down b { color: var(--red); }
.tb-kpis { display: flex; gap: 20px; margin-left: auto; flex: none; }
.kpi { display: grid; gap: 1px; }
.kpi small { font-size: 9.5px; letter-spacing: .1em; }
.kpi b { font-family: var(--mono); font-size: 12.5px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi b span { color: var(--dim); font-weight: 400; }
.views { position: static; flex: none; }

/* Flow strip: the desks in order, each with what it has handled today */
#stepper { top: 14px; left: 18px; right: 18px; max-width: none; border-radius: 14px; padding: 7px 10px; justify-content: space-between; gap: 2px; }
#stepper .step { flex-direction: column; align-items: flex-start; gap: 1px; padding: 4px 10px 5px; border-radius: 10px; min-width: 0; }
#stepper .step b { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12px; color: inherit; }
#stepper .step em { font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--dim); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 100%; font-variant-numeric: tabular-nums; }
#stepper .step.on em { color: #0a0d14; opacity: .8; }
#stepper .step em.bump { animation: bump 1.6s ease-out; }
#stepper .sep { flex: 1 1 8px; max-width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
@keyframes bump { 0% { color: var(--amber); } 100% { color: var(--dim); } }

/* The decision card only while a meeting is live or replaying */
.decision { top: 84px !important; }
body[data-mode="done"] .decision, body[data-mode="idle"] .decision { display: none; }

/* Live caption */
.caption { position: absolute; left: 50%; bottom: 128px; transform: translate(-50%, 6px); width: min(760px, calc(100% - 44px));
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 11px 16px 12px; border-radius: 14px;
  background: rgba(11, 15, 23, .86); border: 1px solid var(--line); backdrop-filter: blur(12px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45); opacity: 0; transition: opacity .22s ease, transform .22s ease; pointer-events: none; }
.caption.in { opacity: 1; transform: translate(-50%, 0); }
.cap-who { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #0a0d14;
  background: var(--c, var(--amber)); padding: 3px 8px; border-radius: 6px; white-space: nowrap; margin-top: 1px; }
.cap-text { margin: 0; font-size: 14px; line-height: 1.42; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cap-time { font-family: var(--mono); font-size: 10.5px; color: var(--dim); margin-top: 3px; }
.caption[data-kind="alert"] { border-color: color-mix(in srgb, var(--red) 55%, transparent); }
.caption[data-kind="book"] { border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.perf-open .caption { display: none; }

/* Side panel */
.ptabs { display: flex; gap: 4px; padding: 10px 12px 0; border-bottom: 1px solid var(--line); flex: none; }
.ptabs button { flex: 1; background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 6px 10px; font-size: 13px;
  color: var(--muted); cursor: pointer; white-space: nowrap; }
.ptabs button:hover { color: var(--text); }
.ptabs button.on { color: var(--text); border-bottom-color: var(--amber); font-weight: 600; }
.ptabs button i { font-style: normal; font-family: var(--mono); font-size: 10px; margin-left: 6px; padding: 1px 6px; border-radius: 999px;
  background: var(--panel-2); color: var(--muted); }
.ptabs button i:empty { display: none; }
.pane { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2a3346 transparent; }
.pane[hidden] { display: none; }
.pane-lead { margin: 0; padding: 12px 18px 4px; color: var(--dim); font-size: 12px; }
#pane-live #tab-log { display: block !important; flex: 1; }
#pane-meeting .tab-body { flex: 1; }
.filters { display: flex; gap: 6px; padding: 10px 14px 6px; flex: none; flex-wrap: wrap; }
.filters button { background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; font-size: 11.5px;
  color: var(--muted); cursor: pointer; }
.filters button.on { color: #0a0d14; background: var(--text); border-color: var(--text); font-weight: 600; }
#desklog[data-f="flow"] li:not([data-g~="flow"]), #desklog[data-f="decisions"] li:not([data-g~="decisions"]),
#desklog[data-f="orders"] li:not([data-g~="orders"]), #desklog[data-f="alerts"] li:not([data-g~="alerts"]) { display: none; }
.desklog li { grid-template-columns: 44px 10px 1fr; padding: 7px 16px; }
.desklog li[data-g~="alerts"] p b { color: var(--red); }

.today-table { display: grid; gap: 4px; padding: 8px 12px 14px; }
.trow { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto 40px; gap: 10px; align-items: center; width: 100%; text-align: left;
  padding: 9px 10px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--c); cursor: pointer; }
.trow:hover { border-color: #3a4560; border-left-color: var(--c); }
.trow.on { background: color-mix(in srgb, var(--c) 12%, var(--panel-2)); border-color: var(--c); }
.trow.quiet { opacity: .62; }
.trow b { font-family: var(--mono); font-size: 12.5px; letter-spacing: .03em; }
.tlabel { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow time { font-family: var(--mono); font-size: 10.5px; color: var(--dim); text-align: right; }
.track { display: inline-flex; gap: 4px; align-items: center; }
.track i { width: 7px; height: 7px; border-radius: 50%; background: #2a3346; }
.track i.done { background: color-mix(in srgb, var(--c) 55%, #2a3346); }
.track i.at { background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }

.book-list, .book-costs { padding: 12px 16px 6px; }
.book-list h4, .book-costs h4 { margin: 6px 0 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--dim); font-weight: 500; }
.bpos { padding: 9px 11px 10px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); margin-bottom: 6px; }
.brow { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; font-size: 12.5px; }
.brow b { font-family: var(--mono); letter-spacing: .03em; }
.brow span { font-family: var(--mono); font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.brow span.up { color: var(--green); } .brow span.down { color: var(--red); }
.bsub { margin-top: 5px; font-size: 11px; color: var(--dim); }
.range { position: relative; height: 4px; margin: 10px 4px 2px; border-radius: 2px; background: linear-gradient(90deg, color-mix(in srgb, var(--red) 55%, #1b2231), #1b2231 35%, #1b2231 65%, color-mix(in srgb, var(--green) 55%, #1b2231)); }
.range.short { transform: scaleX(-1); }
.range i { position: absolute; top: -4px; width: 2px; height: 12px; margin-left: -1px; border-radius: 1px; }
.r-stop { background: var(--red); } .r-entry { background: var(--muted); } .r-target { background: var(--green); }
.r-price { background: var(--text); width: 8px !important; height: 8px !important; top: -2px !important; margin-left: -4px !important; border-radius: 50% !important;
  box-shadow: 0 0 0 3px rgba(233, 237, 245, .16); }
.cost-total { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.cost-total b { font-family: var(--mono); font-size: 20px; font-weight: 500; }
.cost-total span { font-size: 11.5px; color: var(--muted); }
.cost-row { display: grid; grid-template-columns: 124px 1fr 56px; gap: 8px; align-items: center; font-size: 11.5px; color: var(--muted); padding: 2px 0; }
.cost-row b { font-family: var(--mono); font-weight: 500; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.cost-bar { height: 4px; border-radius: 2px; background: #1b2231; overflow: hidden; }
.cost-bar i { display: block; height: 100%; border-radius: 2px; background: var(--amber); }
#pane-book .account, #pane-book .schedule { flex: none; }

@media (max-width: 1640px) { .tb-next { display: none; } }
@media (max-width: 1320px) { .tb-kpis { gap: 14px; } }
@media (max-width: 1120px) { .tb-tape { display: none; } }
@media (max-width: 980px) {
  #app { grid-template-rows: auto minmax(0, 1fr) auto; }
  #topbar { flex-wrap: wrap; gap: 10px 16px; padding: 10px 14px; }
  #stage, #panel { grid-row: auto; }
  .tb-kpis { margin-left: 0; }
  #stepper .step em { display: none; }
  .caption { bottom: 150px; }
}

.tb-tape { flex: 1 1 0; }
.tb-kpis { margin-left: 0; }
.tb-next { max-width: 260px; }
#stepper .step { flex: 1 1 0; }

#topbar { gap: 16px; }
.tb-next { max-width: 230px; }
.tb-kpis { gap: 16px; }
.tape { padding: 4px 8px; gap: 5px; }
.tb-tape { min-width: 0; flex: 1 1 auto; justify-content: center; }

.tb-tape { justify-content: flex-start; }

.folder-label.canceled { background: var(--red); color: #fff; box-shadow: 0 0 0 2px rgba(255, 93, 115, .28); }
.today-chip[style*="#ff5d73"] b { color: var(--red); }

/* the world switch in the top bar */
#world-btn, #sound-btn { height: 30px; padding: 0 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; font: 500 12.5px var(--sans);
  color: var(--text); background: var(--panel-2); border: 1px solid var(--line); margin-left: 14px; margin-right: 8px; flex: none; }
#world-btn small, #sound-btn small { font: 500 10px var(--mono); letter-spacing: .1em; color: var(--dim); margin-right: 4px; }
#world-btn span { color: var(--amber); margin-left: 2px; }
#world-btn:hover, #sound-btn:hover { border-color: var(--amber); }
#sound-btn { margin-left: 0; } #sound-btn b { font-weight: 500; color: var(--dim); } #sound-btn.on b { color: var(--green, #3ddc97); }
#world-btn + nav.views, #sound-btn + nav.views { margin-left: 0; }


/* ---- Options view: a stock's price with the option desk's picture on it ---- */
#options { position: absolute; inset: 0; z-index: 5; overflow-y: auto; background: var(--bg); }
#options[hidden] { display: none; }
.opt-open #stepper, .opt-open .decision, .opt-open .stage-foot, .opt-open .caption { display: none; }
.opt-open #scene { visibility: hidden; }
.opt-inner { max-width: 1240px; margin: 0 auto; padding: 22px 26px 40px; }
.opt-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.opt-id { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.opt-id b { font: 700 30px var(--mono); letter-spacing: .02em; color: var(--amber); }
.opt-price { font: 500 30px var(--mono); font-variant-numeric: tabular-nums; border-radius: 6px; padding: 0 4px; }
.opt-price.tick-up { animation: tick-up .7s ease-out; } .opt-price.tick-down { animation: tick-down .7s ease-out; }
@keyframes tick-up { from { background: rgba(61,220,151,.32); } to { background: transparent; } }
@keyframes tick-down { from { background: rgba(255,93,115,.32); } to { background: transparent; } }
.opt-change { font: 500 15px var(--mono); color: var(--muted); } .opt-change.up { color: var(--green); } .opt-change.down { color: var(--red); }
.opt-live { font: 600 10px var(--mono); letter-spacing: .12em; color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; align-self: center; }
.opt-live.on { color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.opt-live.on::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; background: currentColor; animation: blink 1.2s infinite; }
.opt-hero { --z: #8b95a9; border: 1px solid color-mix(in srgb, var(--z) 34%, var(--line)); border-radius: 14px; padding: 16px 18px 14px; margin-bottom: 14px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--z) 15%, var(--panel)) 0%, var(--panel) 62%); }
.opt-hero[hidden] { display: none; }
.hero-top { display: flex; align-items: baseline; gap: 14px; }
.hero-top h3 { margin: 0; font-size: 26px; color: var(--z); letter-spacing: .01em; }
.hero-top span { font: 500 16px var(--mono); color: var(--text); }
.opt-hero p { margin: 5px 0 0; font-size: 13.5px; color: var(--muted); max-width: 90ch; }
.opt-hero p b { color: var(--text); font-weight: 600; }
.opt-hero .hero-means { color: var(--text); font-size: 14.5px; }
.lvs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 10px; }
.lv { background: rgba(9, 12, 18, .55); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; min-width: 0; }
.lv small { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); letter-spacing: 0; text-transform: none; }
.lv small i { width: 8px; height: 8px; border-radius: 50%; }
.lv b { display: block; font: 500 24px var(--mono); margin-top: 2px; font-variant-numeric: tabular-nums; }
.lv b span { font: 14px var(--sans); color: var(--dim); }
.lv em { font-style: normal; font-size: 12px; color: var(--muted); }
.ruler { display: block; width: 100%; height: 30px; margin: 2px 0 8px; }
.opt-hero .hero-range { font-size: 14px; } .opt-hero .hero-more { font-size: 12.5px; } .opt-hero .hero-assume { font-size: 11.5px; color: var(--dim); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-top .seg button { padding: 4px 9px; font-size: 11.5px; }
.opt-pick input { width: 190px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; color: var(--text); font: 13px var(--mono);
  padding: 8px 11px; text-transform: uppercase; }
.opt-pick input::placeholder { text-transform: none; color: var(--dim); }
.opt-pick input:focus { outline: none; border-color: var(--blue); }
.opt-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; }
.opt-chips button { display: inline-flex; align-items: center; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font: 12px var(--mono); padding: 5px 11px; cursor: pointer; }
.opt-chips button:hover { color: var(--text); border-color: #33405a; }
.opt-chips button.on { color: var(--text); background: var(--panel-2); border-color: var(--amber); }
.opt-chips button i { width: 7px; height: 7px; border-radius: 50%; }
.opt-chips span { color: var(--dim); font-size: 11px; margin: 0 4px 0 10px; }
.opt-chart-card { padding: 12px 12px 10px; }
.opt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 4px 10px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: none; color: var(--muted); font: 12px var(--mono); padding: 6px 11px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--panel-2); color: var(--text); }
.opt-status { color: var(--muted); font-size: 12px; margin-left: auto; }
#opt-chart { height: 520px; width: 100%; }
.opt-legend { margin: 8px 4px 0; color: var(--dim); font-size: 11.5px; line-height: 1.7; }
.opt-legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin: 0 5px 0 10px; }
.opt-legend i:first-child { margin-left: 0; }
.opt-legend i.band { height: 9px; background: rgba(233,237,245,.08); border-top: 1px dashed #4a5670; border-bottom: 1px dashed #4a5670; border-radius: 0; }
.opt-fig { position: relative; }
.opt-fig svg { display: block; width: 100%; height: auto; }
.opt-fig .axis { font: 10.5px var(--mono); fill: var(--muted); }
.opt-fig .tag { font: 600 9.5px var(--mono); letter-spacing: .04em; }
.opt-fig .tip { position: absolute; pointer-events: none; z-index: 3; background: #090d14; border: 1px solid #33425c; border-radius: 8px; padding: 7px 10px;
  font: 11.5px/1.55 var(--mono); color: #c9d3e6; white-space: nowrap; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.opt-fig .tip b { display: block; color: #fff; font-size: 12.5px; }
.opt-fig .empty, .opt-fig .note { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 8px 0 0; max-width: 70ch; }
.opt-fig .note b { color: var(--text); font-family: var(--mono); font-weight: 500; }
.opt-fig h4 { margin: 14px 0 6px; font-size: 12.5px; color: var(--text); }
.pairs { display: grid; gap: 10px; margin: 4px 0 6px; }
.pair small { display: block; color: var(--muted); font-size: 11.5px; margin-bottom: 3px; }
.pair .bar { display: flex; align-items: center; gap: 8px; height: 18px; }
.pair .bar i { height: 10px; border-radius: 0 4px 4px 0; flex: none; max-width: 62%; }
.pair .bar span { font: 11.5px var(--mono); color: var(--muted); white-space: nowrap; }
.pair .bar span b { color: var(--text); font-weight: 500; }
#options table { border-collapse: collapse; width: 100%; font-size: 12px; margin-top: 10px; }
#options th { text-align: left; font-weight: 500; color: var(--dim); font-size: 11px; padding: 5px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
#options td { padding: 6px 8px; border-bottom: 1px solid #171d2a; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
#options td .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; }
.recs { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.rec small { color: var(--amber); font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.rec ul { list-style: none; margin: 6px 0 0; padding: 0; }
.rec li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid #171d2a; font-size: 12px; color: var(--muted); }
.rec li b { color: var(--text); font: 500 12px var(--mono); white-space: nowrap; }
.strip { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 14px; }
.strip i { width: 20px; height: 20px; border-radius: 4px; border: 1.5px solid var(--z); font: 700 11px/17px var(--mono); text-align: center; font-style: normal; color: var(--text); cursor: default; }
.strip i.in { background: color-mix(in srgb, var(--z) 55%, transparent); }
@media (max-width: 1180px) { .recs { grid-template-columns: 1fr; } #opt-chart { height: 420px; } }

/* the evening audit on the Performance page */
#performance .audit-summary { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 2px 0 12px; max-width: 110ch; }
#performance #audit-unseen h4, #performance #audit-patterns h4 { font-size: 12px; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: .04em; margin: 16px 0 6px; }
#performance .audit-patterns { margin: 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
#performance .audit-patterns b { color: var(--text, inherit); font-weight: 600; margin-right: 6px; text-transform: capitalize; }

/* the Book: what each desk last said about a position or a waiting order */
.bviews { margin-top: 9px; border-top: 1px solid var(--line); padding-top: 7px; }
.bviews.none { font-size: 11px; color: var(--dim); }
.bviews summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.bviews summary::-webkit-details-marker { display: none; }
.bviews summary::before { content: "▸"; margin-right: 6px; color: var(--dim); }
.bviews[open] summary::before { content: "▾"; }
.bviews summary span { margin-left: auto; font-weight: 400; font-size: 10.5px; color: var(--dim); }
.bviews h5 { margin: 10px 0 4px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 500; }
.bviews ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.bviews li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: baseline; }
.bviews .bv-who { font-size: 11px; font-weight: 600; color: var(--c); }
.bviews .bv-at { font-family: var(--mono); font-size: 10px; color: var(--dim); }
.bviews li p { grid-column: 1 / -1; margin: 0; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
