/* ── gitm.css — Phosphor, the Ghost in the Markets design system ─────────────
   One stylesheet every family site loads from /brand/gitm.css (served out of
   lib/brand/assets by each app, see lib/brand/__init__.py).

   Tokens first: dark is the brand's home and lives on :root; light is designed,
   not inverted, and is applied under prefers-color-scheme and the data-theme
   stamp. Components read tokens only — no component knows which theme it is in.
   Then the chrome every site shares: the bar (brand · tabs · global cluster in
   a fixed order), the toolbar, the two-pane body, the footer, and the phone
   rules. Radii: 4 chips, 6 controls, 8 cards — nothing rounder.
   ─────────────────────────────────────────────────────────────────────────── */

@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url("fonts/jost.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/instrument-sans.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("fonts/jetbrains-mono.woff2") format("woff2"); }

:root {
  /* ground */
  --ink: #07080C; --surface: #12151D; --raised: #1A1E28; --line: #262B38; --line-strong: #343A4A;
  /* text */
  --bone: #E6E8EC; --muted: #8A90A0; --faint: #5A6070;
  /* the accent — spent on one thing per screen */
  --phosphor: #7FE8C8; --phosphor-bright: #B9F5E2; --phosphor-ink: #07080C;
  --glow: rgba(127,232,200,.16); --glow-strong: rgba(127,232,200,.34);
  /* semantic — colours data, never chrome */
  --up: #3CDC8C; --down: #FF5E6B; --warn: #FFC247; --info: #7CC4FF;
  /* legacy aliases, so an app's old variable names keep resolving while it migrates */
  --bg: var(--ink); --panel: var(--surface); --grid: var(--line); --text: var(--bone); --dim: var(--muted);
  --amber: var(--warn); --flat: var(--muted); --accent: var(--phosphor);
  /* type */
  --display: "Jost", "Futura", "Avenir Next", "Instrument Sans", system-ui, sans-serif;
  --ui: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* shape */
  --r-chip: 4px; --r-ctl: 6px; --r-card: 8px; --r-pill: 999px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ink: #F3F4F7; --surface: #FFFFFF; --raised: #FFFFFF; --line: #DDE1E8; --line-strong: #C4CAD6;
    --bone: #151821; --muted: #5B6170; --faint: #8A90A0;
    --phosphor: #0F7A63; --phosphor-bright: #0F7A63; --phosphor-ink: #FFFFFF;
    --glow: rgba(15,122,99,.10); --glow-strong: rgba(15,122,99,.22);
    --up: #168A52; --down: #D23B4A; --warn: #B07A00; --info: #1E6FB8;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --ink: #F3F4F7; --surface: #FFFFFF; --raised: #FFFFFF; --line: #DDE1E8; --line-strong: #C4CAD6;
  --bone: #151821; --muted: #5B6170; --faint: #8A90A0;
  --phosphor: #0F7A63; --phosphor-bright: #0F7A63; --phosphor-ink: #FFFFFF;
  --glow: rgba(15,122,99,.10); --glow-strong: rgba(15,122,99,.22);
  --up: #168A52; --down: #D23B4A; --warn: #B07A00; --info: #1E6FB8;
  color-scheme: light;
}

/* ── base ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--ink); color: var(--bone); font-family: var(--ui); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
h1 { font-size: 28px; line-height: 1.1; } h2 { font-size: 20px; line-height: 1.15; }
h3 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--phosphor); font-family: var(--mono); font-weight: 500; }
a { color: var(--phosphor); }
p { margin: 0; }
code, pre, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.up { color: var(--up); } .down { color: var(--down); } .warn { color: var(--warn); }
:focus-visible { outline: 2px solid var(--phosphor); outline-offset: 2px; }
::selection { background: var(--glow-strong); }
main { flex: 1 1 auto; min-height: 0; }

/* ── controls ─────────────────────────────────────────────────────────────── */
button, .btn { font-family: var(--ui); font-size: 13px; font-weight: 500; line-height: 1; padding: 8px 12px; border-radius: var(--r-ctl);
  border: 1px solid var(--line-strong); background: var(--raised); color: var(--bone); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
/* A HOVER IS A POINTER'S, AND IT IS NEVER "ON" (Bobby, 6 Nov 2026: "If I click 'context' it stays marked even though
   it's not shown"). Every :hover of the family sits inside (hover: hover): a finger's tap leaves :hover on what it
   touched (the iPhone), and there it stays until the next tap elsewhere. A TOGGLE never hovers with its on look,
   so one clicked off under the pointer reads off: a button that says it is one (aria-pressed, aria-expanded) lifts
   its border to --muted instead of phosphor, and a component that draws its own toggles gives them a lift of their
   own. tests/lib/brand/test_a_hover_is_never_on.py holds every stylesheet of the family to both. */
@media (hover: hover) {
  button:hover, .btn:hover { border-color: var(--phosphor); }
  button:where([aria-pressed], [aria-expanded]):where(:not(.active, [aria-pressed="true"])):hover,
  .btn:where([aria-pressed], [aria-expanded]):where(:not(.active, [aria-pressed="true"])):hover { border-color: var(--muted); }
}
button:disabled, .btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; border-color: var(--line-strong); }
button.primary, .btn.primary { background: var(--phosphor); color: var(--phosphor-ink); border-color: var(--phosphor); font-weight: 600; }
@media (hover: hover) { button.primary:hover, .btn.primary:hover { box-shadow: 0 0 0 3px var(--glow); } }
button.quiet, .btn.quiet, button.ghost, .btn.ghost { background: none; border-color: transparent; color: var(--muted); }
@media (hover: hover) { button.quiet:hover, .btn.quiet:hover, button.ghost:hover, .btn.ghost:hover { color: var(--bone); border-color: var(--line); } }
button.danger, .btn.danger { background: none; color: var(--down); border-color: color-mix(in srgb, var(--down) 55%, transparent); }
button.sm, .btn.sm { padding: 5px 9px; font-size: 12px; }
button.active, .btn.active { color: var(--phosphor); border-color: var(--phosphor); }
button svg, .btn svg { width: 14px; height: 14px; }
.icon { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.ibtn { position: relative; width: 32px; height: 32px; padding: 0; display: inline-grid; place-items: center; border-radius: var(--r-ctl);
  border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; }
@media (hover: hover) { .ibtn:hover { color: var(--bone); border-color: var(--line-strong); background: var(--raised); } }
.ibtn.ai, .ibtn.on { color: var(--phosphor); border-color: color-mix(in srgb, var(--phosphor) 45%, transparent); }
.ibtn.slot { visibility: hidden; pointer-events: none; }
.ibtn .badge { position: absolute; top: -3px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--down); border: 2px solid var(--surface); }

input, select, textarea, .input { font-family: var(--ui); font-size: 13px; color: var(--bone); background: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r-ctl); padding: 7px 10px; }
input.mono, textarea.mono, .input.mono { font-family: var(--mono); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--phosphor); box-shadow: 0 0 0 3px var(--glow); }
input::placeholder, textarea::placeholder { color: var(--faint); }
/* A <select> renders its own selected text and CANNOT wrap it, so a long
   option in a narrow box is cut mid-word — "Claude (Max subscription · loca"
   on a phone (Bobby 2026-09-21). `text-overflow` DOES apply to a select in
   WebKit and Blink, which is every browser this family is read in, so the cut
   at least says there is more. `min-width: 0` is the other half: a select's
   intrinsic width is its LONGEST option, so as a flex or grid child it will
   otherwise refuse to shrink and push its container past the screen. */
select { padding-right: 24px; text-overflow: ellipsis; min-width: 0; }
.field { display: grid; gap: 4px; }
.field > label, label.lab { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* `nowrap` is right for what a chip IS — a short status word that should not
   break across two lines. `max-width`/`min-width` are the other half: without
   them a chip given something long (strategos puts a dotted tactic path in
   one) is as wide as that text and pushes its container past the screen.
   Capped, it can only ever cost itself, and a console whose chips carry long
   text says so locally (`white-space: normal; overflow-wrap: anywhere`). */
.chip, .g-chip, .r-chip { font-family: var(--mono); font-size: 11px; line-height: 1; padding: 3px 8px; border-radius: var(--r-chip);
  border: 1px solid var(--line-strong); color: var(--muted); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  min-width: 0; max-width: 100%; }
.chip.live, .chip.run, .r-chip.run { color: var(--phosphor); border-color: var(--phosphor); }
.chip.up, .chip.ok, .r-chip.ok { color: var(--up); border-color: color-mix(in srgb, var(--up) 60%, transparent); }
.chip.down, .chip.bad, .r-chip.bad { color: var(--down); border-color: color-mix(in srgb, var(--down) 60%, transparent); }
.chip.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 60%, transparent); }
.chip.info { color: var(--info); border-color: color-mix(in srgb, var(--info) 60%, transparent); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill { border-radius: var(--r-pill); }

/* ── surfaces ─────────────────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px 16px; display: grid; gap: 8px; align-content: start; }
.kpi { display: grid; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.kpi .v { font-family: var(--mono); font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi .k { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kpi .d { font-size: 12px; }
.empty { border: 1px dashed var(--line-strong); border-radius: var(--r-card); padding: 22px; text-align: center; color: var(--muted); font-size: 13px;
  display: grid; gap: 8px; justify-items: center; }
.toast { background: var(--raised); border: 1px solid var(--line-strong); border-left: 3px solid var(--phosphor); border-radius: var(--r-ctl);
  padding: 10px 12px; font-size: 13px; display: flex; gap: 10px; align-items: center; max-width: 360px; color: var(--bone); }
.toast.err, .toast.alert, .toast.error { border-left-color: var(--down); }
.toast.warn { border-left-color: var(--warn); }
.cmd { display: flex; align-items: center; gap: 10px; background: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--r-ctl);
  padding: 7px 12px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.cmd b { color: var(--phosphor); font-weight: 500; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: left;
  padding: 7px 10px; border-bottom: 1px solid var(--line-strong); font-weight: 500; }
.tbl td { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
@media (hover: hover) { .tbl tr:hover td { background: color-mix(in srgb, var(--phosphor) 5%, transparent); } }
.tbl .num, .tbl th.num, td.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs > .tab, .tabs > button { font-family: var(--ui); font-size: 13px; font-weight: 500; color: var(--muted); background: none; border: 0; border-radius: 0;
  border-bottom: 2px solid transparent; padding: 10px 12px; cursor: pointer; white-space: nowrap; }
@media (hover: hover) { .tabs > .tab:hover, .tabs > button:hover { color: var(--bone); border-color: transparent; border-bottom-color: var(--line-strong); } }
.tabs > .tab.active, .tabs > .tab.on, .tabs > button.active { color: var(--bone); border-bottom-color: var(--phosphor); }

/* ── the chrome every site shares ─────────────────────────────────────────── */
.gitm-bar { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; height: 54px; padding: 0 14px;
  border-bottom: 1px solid var(--line); background: var(--surface); position: relative; z-index: 5; }
.gitm-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--bone); white-space: nowrap; }
.gitm-brand .gitm-mark { width: 24px; height: 24px; color: var(--phosphor); --eye: var(--phosphor-bright); overflow: visible;
  filter: drop-shadow(0 0 3px var(--glow-strong)); }
.gitm-brand .gitm-word { font-family: var(--display); font-weight: 500; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; }
.gitm-brand .gitm-word .o { color: var(--phosphor); font-weight: 300; }
.gitm-bar .tabs { flex: 1 1 auto; min-width: 0; }
/* the meta is the bar's secondary text (argus's count and clock, a console's subtitle): it yields FIRST, so the
   global cluster never leaves the screen — it may shrink, with an ellipsis, and below 1000px it is not drawn at all
   (argus's bar wanted 975px with it: between the phone and that, the cluster sat off the right edge) */
.gitm-bar .gitm-meta { font-family: var(--mono); font-size: 11px; color: var(--faint); white-space: nowrap;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1000px) { .gitm-bar .gitm-meta { display: none; } }
/* below 1000px the name stacks, GH(O)ST over IN THE MARKETS (two lines, 31px, inside the 54px bar): on one line it
   pushed argus's cluster past the right edge at 820 and 760. The phone (under 741px) also sizes it to its room. Both
   rules hold only for the name's two lines: a page still carrying the older lockup (one word, served by a console
   not yet restarted when this stylesheet arrives) is left as it was */
@media (max-width: 1000px) {
  .gitm-brand .gitm-word .gitm-line { display: block; line-height: 1.2; }
}
.gitm-globals { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.gitm-globals .sep { width: 1px; height: 20px; background: var(--line-strong); margin: 0 6px; }
.gitm-globals a.ibtn { text-decoration: none; }
.gitm-status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.gitm-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); display: inline-block; }
.gitm-status.live i, .gitm-status.online i { background: var(--phosphor); box-shadow: 0 0 8px var(--glow-strong); }
.gitm-status.bad i { background: var(--down); }

/* the rail (2026-09-09): a console's views down the LEFT instead of across the
   bar, for a console whose views outgrew the strip (argus's eleven wrapped to
   two lines on a 1440-px MacBook). Markup from lib.brand.rail(): under the bar
   a .gitm-frame holds the rail and the .gitm-stage the views fill. Desktop:
   the rail is always there — ☰ (rail_toggle(), first in the bar) collapses it
   to html[data-rail="hidden"], remembered per browser by rail.js. Phone: the
   same element is a drawer over a veil (html[data-rail-open]). */
.gitm-frame { flex: 1 1 auto; display: flex; min-height: 0; }
.gitm-stage { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
/* The rail SCROLLS with its scrollbar hidden, so an overflow is silent —
   a view below the fold simply is not there as far as anyone can tell.
   argus reached 13 views on 2026-09-20 and Reports fell off the bottom of
   an 800-px window. The rhythm is therefore tight on purpose: 13 fit above
   the fold at 800 px, which is the shortest laptop this family is used on. */
/* A NAV CONTROL IS NOT TEXT (2026-09-22, Bobby on an iPhone: "if I click
   arrange, instead of dragging it selects text"). A rail tab is a <button>
   wrapping a <span class="lbl">, and on iOS a long press on that span is a
   SELECTION gesture — which is exactly the gesture the reorder needs, so the
   selection won and the tab never moved. `touch-action` does not help: it
   governs scrolling, not selection or the long-press callout. Both have to be
   refused, and `-webkit-` prefixes are load-bearing here — Safari is the
   browser this is for. */
.gitm-rail { flex: 0 0 auto; display: flex; flex-direction: column; gap: 1px; padding: 6px 5px; overflow-y: auto; overflow-x: hidden;
  scrollbar-width: none; background: var(--surface); border-right: 1px solid var(--line);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.gitm-rail::-webkit-scrollbar { display: none; }
.gitm-rail > .tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 62px; padding: 6px 2px 5px;
  font-family: var(--ui); font-size: 10px; font-weight: 500; line-height: 1.15; letter-spacing: .01em; color: var(--muted); background: none;
  border: 0; border-radius: var(--r-ctl); cursor: pointer; text-align: center; white-space: normal; }
.gitm-rail > .tab .icon { width: 20px; height: 20px; stroke-width: 1.6; }
.gitm-rail > .tab .lbl { max-width: 100%; }
@media (hover: hover) { .gitm-rail > .tab:hover { color: var(--bone); background: color-mix(in srgb, var(--bone) 6%, transparent); } }
.gitm-rail > .tab.active { color: var(--phosphor); background: color-mix(in srgb, var(--phosphor) 10%, transparent); }
.gitm-rail > .tab.active::before { content: ""; position: absolute; left: -5px; top: 7px; bottom: 7px; width: 2px; border-radius: 0 2px 2px 0;
  background: var(--phosphor); }
.gitm-rail-toggle { order: -1; }
.gitm-veil { display: none; }
@media (min-width: 741px) { html[data-rail="hidden"] .gitm-rail { display: none; } }

.gitm-toolbar { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.gitm-toolbar .group { display: inline-flex; gap: 6px; padding-left: 10px; border-left: 1px solid var(--line); }
.gitm-toolbar .primary-slot { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; }
.gitm-body { flex: 1 1 auto; display: flex; min-height: 0; }
.gitm-list { flex: 0 0 330px; overflow-y: auto; border-right: 1px solid var(--line); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.gitm-detail { flex: 1 1 auto; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.gitm-detail > * { flex: 0 0 auto; }
.gitm-foot { flex: 0 0 auto; display: flex; justify-content: space-between; gap: 12px; padding: 7px 14px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--faint); }
.gitm-item { display: grid; gap: 3px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface);
  font-size: 13px; text-align: left; width: 100%; color: var(--bone); }
.gitm-item.sel, .gitm-item.active { border-color: var(--phosphor); }
.gitm-item .m { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.phone-only { display: none; }

/* ── the open-positions component (positions.js) — one table for every book ── */
.pos-table { width: 100%; }
/* the table's own scroll box, and the width a detail opened inside it keeps: the
   box's visible width (cqi), pinned to its left edge while the table scrolls under
   it, so a phone wraps the detail's text at the screen */
.pos-scroll { overflow-x: auto; overflow-y: hidden; max-width: 100%; container-type: inline-size; }
.pos-detail-row > td > .pos-detail { position: sticky; left: 0; width: 100cqi; max-width: 100cqi; }
.pos-table th { white-space: nowrap; }
.pos-table td { vertical-align: top; }
.pos-row { cursor: pointer; }
.pos-row td { font-variant-numeric: tabular-nums; }
.pos-row.open td { background: color-mix(in srgb, var(--phosphor) 7%, transparent); box-shadow: inset 2px 0 0 var(--phosphor); }
.pos-sub { display: block; font-size: 11px; color: var(--muted); font-family: var(--mono); white-space: nowrap; }
.pos-venue { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pos-stale { color: var(--muted); margin-left: 2px; }
.pos-detail-row > td { padding: 0 0 12px; background: var(--bg); white-space: normal; }
@media (hover: hover) { .pos-detail-row:hover > td { background: var(--bg); } }
.pos-detail { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-card) var(--r-card); padding: 12px 14px;
  display: grid; gap: 10px; background: var(--surface); }
/* the ground is --bg, not --ink: the consoles' own palettes reuse --ink for TEXT (haruspex/horos), --bg is the ground in every palette */
.pos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px 18px; }
.pos-charts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 8px 18px; align-items: start; }
.pos-chart-box { display: grid; gap: 4px; min-width: 0; }
.pos-net { display: grid; gap: 4px; min-width: 0; margin-bottom: 12px; }
.pos-leg-curve { min-width: 0; }
.pos-sec { min-width: 0; display: grid; gap: 6px; align-content: start; }
.pos-sec h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--phosphor);
  font-weight: 500; margin: 2px 0 0; }
.pos-kv { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; font-size: 12px; margin: 0; }
.pos-kv dt { color: var(--muted); }
.pos-kv dd { margin: 0; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.pos-leg { border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 8px 10px; display: grid; gap: 6px; background: var(--bg); }
.pos-leg-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pos-leg-pnl { font-family: var(--mono); font-variant-numeric: tabular-nums; margin-left: auto; }
.pos-depth { display: flex; gap: 14px; font-size: 11px; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pos-depth > div { flex: 1; display: grid; gap: 1px; }
.pos-depth b { color: var(--muted); font-weight: 500; }
svg.pos-chart { display: block; border-bottom: 1px solid var(--line); }
svg.pos-chart .pos-line { fill: none; stroke: var(--phosphor); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
svg.pos-chart .pos-zero { stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
svg.pos-chart .pos-mark { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
svg.pos-chart .pos-mark.spot { stroke: var(--phosphor); stroke-dasharray: none; }
svg.pos-chart .pos-mark.entry { stroke: var(--info); stroke-dasharray: 1 3; }
svg.pos-chart .pos-area.up { fill: var(--up); opacity: .14; }
svg.pos-chart .pos-area.down { fill: var(--down); opacity: .14; }
svg.pos-chart .pos-dot { fill: var(--phosphor); }
svg.pos-chart .pos-cross { stroke: var(--phosphor); opacity: .5; vector-effect: non-scaling-stroke; }
svg.pos-chart .pos-hover { fill: var(--phosphor); }
.pos-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.pos-key { display: inline-block; width: 10px; height: 0; border-top: 2px solid var(--phosphor); margin-right: 4px; vertical-align: middle; }
.pos-key.entry { border-top-style: dotted; border-color: var(--info); }
.pos-note { font-size: 12px; }
.pos-actions { display: flex; gap: 8px; align-items: center; }
.pos-actions .pos-id { margin-left: auto; font-family: var(--mono); font-size: 10px; }
#pos-tip { position: fixed; display: none; background: var(--raised); border: 1px solid var(--line-strong); border-radius: var(--r-ctl);
  padding: 6px 9px; font-size: 12px; pointer-events: none; z-index: 60; font-variant-numeric: tabular-nums; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.live-note { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.live-note.down { color: var(--down); }

/* ── the book time machine (bookreplay.js) ────────────────────────────────── */
.rp-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.rp-head .rp-range { flex: 1 1 200px; min-width: 120px; accent-color: var(--phosphor); padding: 0; }
.rp-when { font-family: var(--mono); font-size: 11px; white-space: nowrap; }
svg.rp-chart { display: block; border-bottom: 1px solid var(--line); }
svg.rp-chart .rp-line { fill: none; stroke: var(--phosphor); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
svg.rp-chart .rp-line.faint { opacity: .22; }
svg.rp-chart .rp-ev { stroke-width: 2; vector-effect: non-scaling-stroke; stroke: var(--info); }
svg.rp-chart .rp-ev.bad { stroke: var(--down); }
svg.rp-chart .rp-ev.warn { stroke: var(--warn); }
svg.rp-chart .rp-ev.ok { stroke: var(--up); }
svg.rp-chart .rp-ev.future { opacity: .3; }
svg.rp-chart .rp-cursor { stroke: var(--phosphor); opacity: .6; vector-effect: non-scaling-stroke; }
svg.rp-chart .rp-dot { fill: var(--phosphor); }
.rp-readout { display: flex; flex-wrap: wrap; gap: 4px 16px; font-family: var(--mono); font-size: 12px; margin: 6px 0;
  font-variant-numeric: tabular-nums; }
.rp-readout span > i { font-style: normal; color: var(--muted); margin-right: 5px; text-transform: uppercase; font-size: 10px; letter-spacing: .08em; }
.rp-events { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.rp-event.latest { color: var(--bone); }
.rp-event > i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; background: var(--info); }
.rp-event > i.bad { background: var(--down); }
.rp-event > i.warn { background: var(--warn); }
.rp-event > i.ok { background: var(--up); }
.rp-note { font-size: 12px; }
details.rp-card > summary { cursor: pointer; }

/* the hem as a loading line: draws itself left to right */
.gitm-hem { width: 40px; height: 16px; color: var(--phosphor); }
.gitm-hem path { stroke-dasharray: 80; stroke-dashoffset: 0; animation: gitm-draw 1.2s ease-out infinite; }
@keyframes gitm-draw { from { stroke-dashoffset: 80; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .gitm-hem path { animation: none; } }

/* ── phone ────────────────────────────────────────────────────────────────── */
@media (max-width: 740px) {
  body { font-size: 13px; }
  .gitm-bar { height: auto; flex-wrap: wrap; padding: 8px 10px 0; gap: 6px 10px; }
  .gitm-bar .tabs { flex-basis: 100%; order: 10; margin: 0 -10px; padding: 0 10px; }
  .gitm-bar .gitm-meta { display: none; }
  .gitm-globals { margin-left: auto; }
  .gitm-globals .ibtn.command, .gitm-globals .ibtn.home, .gitm-globals .sep { display: none; }
  /* the name on a phone (Bobby, 15 Nov 2026: Ghost in the Markets everywhere), stacked as below 1000px: the lockup
     takes the room its bar leaves and the name is sized to it, 13px where it fits, never under 11px (a line of it is
     12.34 of its size wide, 12.6 keeps a margin). A bar with less room than that wraps its row instead of covering a
     button. */
  .gitm-brand:has(.gitm-line) { flex: 1 1 0; min-width: calc(33px + 11px * 12.6); container-type: inline-size; }
  .gitm-brand .gitm-word { font-size: clamp(11px, (100cqi - 33px) / 12.6, 13px); }
  /* the rail is a drawer: off-canvas until ☰, over a veil that closes it */
  .gitm-rail { position: fixed; top: 0; left: 0; bottom: 0; width: 240px; z-index: 45; padding: 12px 8px;
    border-right: 1px solid var(--line-strong); box-shadow: 0 0 40px rgba(0, 0, 0, .5);
    transform: translateX(-102%); transition: transform .18s ease; }
  .gitm-rail > .tab { flex-direction: row; justify-content: flex-start; width: auto; gap: 12px; padding: 10px 12px; font-size: 14px; }
  .gitm-rail > .tab .icon { width: 18px; height: 18px; }
  .gitm-rail > .tab.active::before { left: -8px; top: 8px; bottom: 8px; }
  html[data-rail-open] .gitm-rail { transform: none; }
  .gitm-veil { position: fixed; inset: 0; z-index: 44; background: rgba(0, 0, 0, .5); }
  html[data-rail-open] .gitm-veil { display: block; }
  @media (prefers-reduced-motion: reduce) { .gitm-rail { transition: none; } }
  .gitm-toolbar { padding: 6px 8px; gap: 6px; }
  .gitm-toolbar .primary-slot { margin-left: 0; flex-basis: 100%; }
  .gitm-body { flex-direction: column; flex: 0 0 auto; }
  .gitm-list { flex: 0 0 auto; overflow: visible; border-right: 0; border-bottom: 2px solid var(--line); }
  .gitm-detail { flex: 0 0 auto; overflow: visible; padding: 12px 12px 18px; }
  main { overflow-y: auto; -webkit-overflow-scrolling: touch; }
  input, select, textarea { font-size: 16px; }
  .phone-only { display: inline-flex; }
  table.tbl { display: block; overflow-x: auto; max-width: 100%; }
  .tbl th, .tbl td { white-space: nowrap; }
  .toast { max-width: none; }
  .pos-table .xw { display: none; }
  .pos-grid, .pos-charts { grid-template-columns: 1fr; }
  .pos-detail { padding: 10px; }
  .pos-detail-row > td { white-space: normal; }
  .pos-actions { flex-wrap: wrap; }
}

/* ── an equity curve's readout (curve.js, 30 Oct 2026): the marker and the value under the pointer ──
   A horizontal drag on a curve is curve.js's (it scrubs), a vertical swipe stays the page's (it scrolls): pan-y. The
   readout sits inside the curve's own box, so it can never push the page sideways. */
svg[data-curve] { touch-action: pan-y; cursor: crosshair; -webkit-user-select: none; user-select: none; }
.gitm-curve-cross { stroke: var(--series1, var(--muted)); stroke-width: 1; opacity: .55; vector-effect: non-scaling-stroke; }
.gitm-curve-dot { fill: var(--series1, var(--bone)); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.gitm-curve-dot.s1 { fill: var(--series2, var(--muted)); }
.gitm-readout { position: absolute; top: 0; z-index: 5; pointer-events: none; max-width: 100%;
  padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--raised); color: var(--bone);
  font-size: 12px; line-height: 1.35; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gitm-readout > span { display: block; }
.gitm-readout-t, .gitm-readout-d { color: var(--muted); }

/* ── a small chart of bars (research/minichart.js, N1 7 Nov 2026): candles in --up / --down, an overlay's line, a
   comparison's lines from a shared zero. The svg is drawn at its box's width (preserveAspectRatio none), so a line
   keeps its width however the box stretches (vector-effect), and nothing in it is text. */
.gitm-mini { position: relative; min-width: 0; }
.gitm-mini-svg { display: block; width: 100%; height: 170px; overflow: hidden; }
.gitm-mini-svg .mc-wick { stroke: var(--muted); stroke-width: 1; vector-effect: non-scaling-stroke; }
.gitm-mini-svg .mc-up { fill: var(--up); }
.gitm-mini-svg .mc-down { fill: var(--down); }
.gitm-mini-svg polyline { fill: none; stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.gitm-mini-svg .mc-band { fill: var(--glow); }
.gitm-mini-svg .mc-zero { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.gitm-mini-svg .mc-bb { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.gitm-mini-svg .mc-sma.n20, .mc-key.sma20::before { stroke: var(--info); background: var(--info); }
.gitm-mini-svg .mc-sma.n50, .mc-key.sma50::before { stroke: var(--warn); background: var(--warn); }
.gitm-mini-svg .mc-sma.n200, .mc-key.sma200::before { stroke: #C792EA; background: #C792EA; }
.gitm-mini-svg .s0, .mc-key.s0::before { stroke: var(--phosphor); background: var(--phosphor); }
.gitm-mini-svg .s1, .mc-key.s1::before { stroke: var(--info); background: var(--info); }
.gitm-mini-svg .s2, .mc-key.s2::before { stroke: var(--warn); background: var(--warn); }
.gitm-mini-svg .s3, .mc-key.s3::before { stroke: #C792EA; background: #C792EA; }
.gitm-mini-svg .s4, .mc-key.s4::before { stroke: var(--down); background: var(--down); }
.gitm-mini-svg .s5, .mc-key.s5::before { stroke: var(--up); background: var(--up); }
.gitm-mini-svg .s6, .mc-key.s6::before { stroke: var(--text); background: var(--text); }
.gitm-mini-svg .s7, .mc-key.s7::before { stroke: var(--faint); background: var(--faint); }
.gitm-mini-legend { display: flex; flex-wrap: wrap; gap: 2px 12px; min-width: 0; margin-top: 4px; font-size: 12px;
  color: var(--muted); font-variant-numeric: tabular-nums; }
.mc-key { min-width: 0; overflow-wrap: anywhere; }
.mc-key::before { content: ""; display: inline-block; width: 10px; height: 2px; margin-right: 5px; vertical-align: middle;
  background: var(--muted); }
.mc-key.mc-c::before { display: none; }
.mc-key b { color: var(--text); font-weight: 600; }
.mc-pos { color: var(--up); }
.mc-neg { color: var(--down); }
.gitm-mini-none { margin: 0; font-size: 12px; color: var(--muted); }

/* ── the graph's corner and its tip (graph3d.js `view`: the public graph, argus's Graph tab) ───────────────────
   Its look lives here, so the two sites draw one; WHERE it sits is the page's (its box: position relative). The
   bar: 2D | 3D, context, fit (◎), the names' mode (Aa), the drift, Fire with its ties box and "all", fullscreen (⛶,
   where the host asks for it: the public site's graphs), the fire's chip.
   The tip: what the pointer rests on and what the focus lights (G2b, 5 Nov 2026). */
.g3-ctl { position: absolute; top: 8px; right: 8px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px;
  align-items: center; justify-content: flex-end; max-width: calc(100% - 16px); }
.g3-ctl button { background: var(--panel); color: var(--dim); border: 1px solid var(--grid); border-radius: 3px;
  font: inherit; font-size: 12px; line-height: 1.1; padding: 5px 9px; cursor: pointer; }
.g3-ctl button.active { color: var(--phosphor); border-color: var(--phosphor); }
/* the bar's hover is a lift, never the on look (it was the same rule: "context" clicked off read on) */
@media (hover: hover) { .g3-ctl button:not(.active):hover { color: var(--text); border-color: var(--muted); } }
.g3-ctl button[hidden] { display: none; }
/* a slice's View (graph3d.js `slice`, SG1): sized as the bar's buttons, its text cut where the bar is narrow */
.g3-ctl .g3-arrange { background: var(--panel); color: var(--text); border: 1px solid var(--grid); border-radius: 3px;
  font: inherit; font-size: 12px; line-height: 1.1; padding: 4px 6px; min-width: 0; max-width: 9.5em; text-overflow: ellipsis;
  cursor: pointer; }
.g3-ctl .g3-arrange.busy { opacity: .6; cursor: progress; }   /* its first pack under way */
/* the bar's "?" where the host has no legend of its own: the gestures and the keys, over the pane's foot */
.g3-help { position: absolute; left: 8px; bottom: 8px; z-index: 2; max-width: min(440px, calc(100% - 16px));
  background: var(--panel); border: 1px solid var(--grid); border-radius: 4px; padding: 8px 10px; font-size: 12px;
  line-height: 1.5; color: var(--dim); }
.g3-help[hidden] { display: none; }
.g3-help b { color: var(--text); font-weight: 600; }
/* the "?" card is the graph's legend too (graph3d.js legendHtml): headings, swatches and lines, the same on every page */
.g3-help { display: flex; flex-direction: column; gap: 3px; max-height: calc(100% - 68px); overflow-y: auto; overflow-x: hidden;
  font-size: 11px; }
.g3-help h4 { margin: 5px 0 1px; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--phosphor); }
.g3-help h4:first-child { margin-top: 0; }
.g3-help .g-key { display: flex; align-items: center; gap: 6px; min-width: 0; }
.g3-help .g-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.g3-help .g-line { width: 15px; border-top: 2px solid; flex: 0 0 auto; }
.g3-help .g-help { line-height: 1.5; }
/* a node in fullscreen (graph3d.js showCard): a card inside the box, top left, clear of the bar on the right; on a phone a
   bottom sheet of at most 40% of the screen */
.g3-card { position: absolute; left: 8px; top: 8px; z-index: 4; width: min(320px, calc(100% - 16px)); max-height: 60%;
  overflow-y: auto; overflow-x: hidden; box-sizing: border-box; padding: 8px 10px; font-size: 12px; line-height: 1.45;
  color: var(--dim); background: var(--panel); border: 1px solid var(--grid); border-radius: 4px; }
.g3-card[hidden] { display: none; }
.g3-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; color: var(--text);
  font-size: 13px; min-width: 0; }
.g3-card-head b { overflow-wrap: anywhere; min-width: 0; }
.g3-card-head button { flex: 0 0 auto; font: inherit; padding: 0 7px; }
.g3-card-line { overflow-wrap: anywhere; }
.g3-card-open { margin-top: 6px; font: inherit; }
@media (max-width: 740px) {
  .g3-card { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 40%; border-radius: 8px 8px 0 0;
    border-bottom: 0; padding: 10px 14px 14px; }
}
/* a graph's FULLSCREEN (graph3d.js, opt-in): the class goes on with the Fullscreen API's and carries it where there is
   none (the iPhone's Safari): its target fixed over the page, the ground behind it, the page under it not scrolled */
.g3-full { position: fixed !important; inset: 0 !important; z-index: 60; width: auto !important; height: auto !important;
  max-width: none !important; max-height: none !important; margin: 0 !important; background: var(--bg);
  overflow: hidden; box-sizing: border-box; }
html.g3-full-page, html.g3-full-page body { overflow: hidden !important; }
/* ...in the TOP LAYER where the browser has no element fullscreen (graph3d.js, the Popover API): the popover's own
   frame taken off, the box as above */
.g3-full[popover] { border: 0 !important; padding: 0 !important; color: inherit; }
.g3-full::backdrop { background: var(--bg); }
/* its own ×, always drawn in fullscreen: top right inside the safe area, a finger's size on touch; the bar steps left */
.g3-exit { display: none; }
.g3-full > .g3-exit { display: flex; align-items: center; justify-content: center; position: absolute; z-index: 5;
  top: max(8px, env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right)); width: 32px; height: 32px;
  padding: 0; font: inherit; font-size: 20px; line-height: 1; color: var(--text); background: var(--panel);
  border: 1px solid var(--grid); border-radius: 3px; cursor: pointer; }
@media (pointer: coarse) { .g3-full > .g3-exit { width: 44px; height: 44px; font-size: 24px; } }
.g3-full .g3-ctl { top: max(8px, env(safe-area-inset-top)); right: calc(max(8px, env(safe-area-inset-right)) + 40px); }
@media (pointer: coarse) { .g3-full .g3-ctl { right: calc(max(8px, env(safe-area-inset-right)) + 52px); } }
.g3-depth { width: 3.2em; min-width: 0; text-align: center; font: inherit; font-size: 12px; line-height: 1.1;
  padding: 4px 2px; color: var(--text); background: var(--panel); border: 1px solid var(--grid); border-radius: 0;
  margin-left: -1px; appearance: textfield; -moz-appearance: textfield; }
.g3-depth::-webkit-outer-spin-button, .g3-depth::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.g3-depth:disabled { opacity: .45; }
.g3-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 9px; font-size: 12px;
  color: #ffd696; background: var(--panel); border: 1px solid #ff9f43; border-radius: 12px; }
.g3-chip[hidden] { display: none; }
.g3-chip button { padding: 1px 7px; border-radius: 10px; }
.g3-tip { position: absolute; z-index: 3; pointer-events: none; max-width: calc(100% - 16px); overflow: hidden;
  white-space: nowrap; text-overflow: ellipsis; font-size: 12px; line-height: 1.3; padding: 3px 7px;
  color: var(--text); background: var(--panel); border: 1px solid var(--grid); border-radius: 3px; }
.g3-tip[hidden] { display: none; }

/* THE PHONE'S FILTERS, A SHEET (Bobby, 12 Nov 2026; rail.js GitmFilters): on a phone a graph's row is its search with
   a sliders icon inside its right end, the chips of what is set, and its caption; the controls open in a sheet from the
   bottom. On a desktop the search's wrapper does not lay out and the row is as it was. */
.gitm-fsearch { display: contents; }
.gitm-fbtn, .gitm-fchips { display: none; }
@media (max-width: 740px) {
  .gitm-sheeted > :not(.gitm-fsearch):not(.gitm-fchips):not(.gitm-filters-keep) { display: none !important; }
  .gitm-sheeted > .gitm-fsearch { display: flex; flex: 1 1 100%; align-items: stretch; min-width: 0; box-sizing: border-box;
    border: 1px solid var(--grid); border-radius: 3px; background: var(--panel); }
  .gitm-fsearch > :first-child { flex: 1 1 auto; min-width: 0; }
  .gitm-fsearch input { width: 100%; min-width: 0 !important; min-height: 36px; box-sizing: border-box; border: 0 !important;
    background: transparent !important; outline-offset: -2px; }
  .gitm-sheeted .gitm-fbtn { display: flex; align-items: center; justify-content: center; position: relative; flex: none;
    width: 40px; padding: 0; border: 0; border-left: 1px solid var(--grid); background: transparent; color: var(--dim);
    cursor: pointer; }
  .gitm-fbtn.set { color: var(--text); }
  .gitm-fdot { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--phosphor); }
  .gitm-fdot[hidden] { display: none; }
  .gitm-sheeted > .gitm-fchips { display: flex; flex: 1 1 100%; flex-wrap: wrap; gap: 6px; min-width: 0; }
  .gitm-sheeted > .gitm-fchips[hidden] { display: none !important; }
  .gitm-sheeted > .gitm-filters-keep { flex: 1 1 100%; min-width: 0; }
  .gitm-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 28px; padding: 3px 10px;
    font: inherit; font-size: 12px; color: var(--text); background: var(--panel); border: 1px solid var(--grid);
    border-radius: 14px; cursor: pointer; }
  .gitm-chip-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .gitm-chip-x { color: var(--dim); }
}
.gitm-sheet { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: transparent; color: var(--text); overflow: hidden; }
.gitm-sheet::backdrop { background: rgba(0, 0, 0, .55); }
.gitm-sheet-body { position: absolute; left: 0; right: 0; bottom: 0; max-height: 76%; display: flex; flex-direction: column;
  box-sizing: border-box; padding: 4px 14px calc(14px + env(safe-area-inset-bottom)); background: var(--bg);
  border-top: 1px solid var(--grid); border-radius: 12px 12px 0 0; transition: transform .15s; }
.gitm-grab { flex: none; width: 36px; height: 4px; margin: 6px auto 4px; border-radius: 2px; background: var(--grid); }
.gitm-sheet-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 0 6px; }
.gitm-sheet-head button { min-height: 36px; padding: 0 2px; font: inherit; background: none; border: 0; color: var(--dim);
  cursor: pointer; }
.gitm-sheet-head .gitm-sheet-done { color: var(--phosphor); font-weight: 600; }
.gitm-sheet-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.gitm-sheet-sec h4 { margin: 10px 0 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--dim); }
.gitm-sheet-box { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gitm-sheet-box > * { min-width: 0; box-sizing: border-box; }
.gitm-sheet-box select, .gitm-sheet-box input:not([type="checkbox"]):not([type="radio"]), .gitm-sheet-box button {
  min-height: 36px; box-sizing: border-box; font: inherit; font-size: 13px; color: var(--text); background: var(--panel);
  border: 1px solid var(--grid); border-radius: 3px; }
/* a toggle that is on keeps the look it has in the row (argus's .active, an aria-pressed "all") */
.gitm-sheet-box button.active, .gitm-sheet-box button[aria-pressed="true"] { color: var(--phosphor); border-color: var(--phosphor); }
.gitm-sheet-box > select, .gitm-sheet-box > input { width: 100%; max-width: 100%; text-overflow: ellipsis; }
.gitm-sheet-box > :is(.g-cgroup, .pg-num, .ex-depth-box) { display: flex; align-items: stretch; gap: 0; }
.gitm-sheet-box > :is(.g-cgroup, .pg-num, .ex-depth-box) > :is(.g-clabel, label) { display: flex; align-items: center;
  padding: 0 8px; color: var(--dim); font-size: 12px; border: 1px solid var(--grid); border-right: 0; border-radius: 3px 0 0 3px; }
.gitm-sheet-box > :is(.g-cgroup, .pg-num, .ex-depth-box) input { flex: 1 1 auto; width: 0; min-width: 0; border-radius: 0; }
.gitm-sheet-box > :is(.g-cgroup, .pg-num, .ex-depth-box) button { flex: none; margin-left: -1px; border-radius: 0 3px 3px 0; }
.gitm-sheet-box > label { display: flex; align-items: center; gap: 6px; min-height: 36px; }
.gitm-sheet-actions .gitm-sheet-box { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gitm-sheet-actions .gitm-sheet-box button { min-height: 52px; padding: 4px; font-size: 12px; white-space: normal;
  overflow-wrap: anywhere; }
/* one treatment for every action (the reviewer, 12 Nov 2026): its name, the row's emoji and glyphs left in the row */
.gitm-sheet-actions button[data-sheet-label] { font-size: 0 !important; }
.gitm-sheet-actions button[data-sheet-label]::after { content: attr(data-sheet-label); font-size: 12px; color: var(--text); }

/* THE GRAPH'S STATISTICS (Bobby, 11 Nov 2026; research/graphstats.js): one panel under a graph's controls row, argus's
   and the site's alike. Sections side by side where there is room, one column on a phone; a long note wraps in its
   own cell, never past the panel. */
.gstats { margin: 6px 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--surface); min-width: 0; max-width: 100%; box-sizing: border-box;
  /* every number one scroll away inside the panel, and the graph below it still on screen */
  max-height: 45vh; overflow-y: auto; overflow-x: hidden;
  flex: none; /* a page that lays its graph out as a column of fixed height must not squeeze it shut */ }
.gstats-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.gstats-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 8px 16px;
  margin-top: 6px; }
.gstats-sec { min-width: 0; }
.gstats-sec h4 { margin: 4px 0; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--phosphor); }
.gstats-note { margin: 0 0 4px; font-size: 11px; overflow-wrap: anywhere; }
/* a page's own table rules (argus sets every table monospace and on one line) do not reach in here */
.gstats-table { width: 100%; border-collapse: collapse; font-size: 12px; table-layout: fixed; white-space: normal;
  font-family: var(--ui); }
.gstats-table th, .gstats-table td { font-family: var(--ui); white-space: normal; overflow-wrap: anywhere;
  vertical-align: top; padding: 2px 8px 2px 0; border: 0; font-size: 12px; text-align: left; }
.gstats-table th { font-weight: 400; color: var(--bone); width: 46%; }
.gstats-table td.gstats-n { font-family: var(--mono); text-align: right; width: 16%; white-space: nowrap; }
