/* barj capital · Monitor: the research dashboard, in the language of the other pages (site.css):
   one typeface (Geist), Geist Mono only for figures and identifiers, labels in sentence case, hairline rules
   only where they separate data, square corners, gold used sparingly. Only the charts carry colour. */
.mon {
  --bg: #0A0F1C; --panel: #0E1424; --line: rgba(244,239,230,0.16); --line-soft: rgba(244,239,230,0.08);
  --fg: #F4EFE6; --fg-2: #D9D4C9; --muted: #9AA0B4; --faint: #8C92A8;
  --gold: #C9A87A; --gold-soft: rgba(201,168,122,0.12);
  --ok: #8cc49a; --warn: #e0a458; --bad: #e07a7a; --info: #7aa6d9;
  --r: 0; --r-sm: 0;
  /* tokens read by the UltraView module (shared with the claude.ai dashboard) */
  --color-fg: var(--fg); --color-fg-muted: var(--muted); --color-bg: var(--bg); --color-panel: var(--panel);
  --color-border-line: var(--line); --color-ok: var(--ok); --color-warn: var(--gold); --color-bad: var(--bad);
  --cds-chart-grid: rgba(244,239,230,0.06); --cds-chart-reference: rgba(244,239,230,0.3); --cds-chart-muted: #4E587A;
  --cds-surface-popover: #0E1424; --cds-border: var(--line); --cds-shadow-popover: 0 12px 32px rgba(0,0,0,0.45);
  --cds-radius: 0; --cds-pad-xs: 4px; --cds-pad-sm: 8px; --cds-pad-md: 12px; --cds-font-size-caption: 0.8rem;
  --font-anthropic-sans: var(--sans); --font-anthropic-serif: var(--sans);
  color: var(--fg); font-family: var(--sans); font-variant-numeric: lining-nums tabular-nums; color-scheme: dark;
}
.mon *, .mon *::before, .mon *::after { box-sizing: border-box; }
.mon button, .mon input, .mon select { font: inherit; color: inherit; }
.mon .wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter, 1.5rem); }
/* the charts keep their own type: a data face, not the page's */
.mon .chart, .mon .gl-stage, .mon .skeleton { font-family: var(--sans); }

/* label: the site's eyebrow */
.mon .kicker, .mon .stamp, .mon .sizes .lab, .mon .surv .h, .mon .drawer h4, .mon .count, .mon .finding .fsrc,
.mon table.t th, .mon .mini th, .mon .proj-ctrls label {
  font-family: var(--sans); font-weight: 500; font-size: 12.5px; color: var(--faint);
}

/* ---------------------------------------------------------------- hero */
.mon .mon-hero { padding-top: clamp(6.5rem, 12vh, 9rem); padding-bottom: 1.5rem; }
.mon .mon-hero h1 { font-family: var(--sans); font-weight: 400; font-size: clamp(2.2rem, 4.6vw, 3.9rem); line-height: 1.05; margin: 0.8rem 0 1.4rem; max-width: 22ch; }
.mon .lead { max-width: 64ch; color: var(--fg-2); line-height: 1.6; font-size: 1.14rem; font-weight: 400; }
.mon .lead em { font-style: italic; }
.mon .stamp { margin-top: 1.4rem; }

/* ---------------------------------------------------------------- sticky control bar */
.mon .bar { position: sticky; top: 64px; z-index: 30; background: rgba(10,15,28,0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); margin: 1.5rem 0 2.5rem; }
.mon .bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 2rem; padding-top: 0.8rem; padding-bottom: 0.8rem; }
/* sections: the site's navigation, lowercase with a hairline under the current one */
.mon .sections { display: flex; gap: clamp(1.2rem, 2.4vw, 2.2rem); flex-wrap: wrap; }
.mon .sections a { position: relative; text-decoration: none; color: var(--fg); opacity: 0.6; font-family: var(--sans); font-size: 14px;
  padding: 4px 0; transition: opacity .2s var(--ease, ease); white-space: nowrap; }
.mon .sections a:hover { opacity: 1; }
.mon .sections a[aria-current=page] { opacity: 1; }
.mon .sections a[aria-current=page]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; }
.mon .sizes { display: flex; align-items: center; gap: 0.9rem; margin-left: auto; flex-wrap: wrap; }

/* ---------------------------------------------------------------- buttons: square, hairline, engraved small capitals */
.mon .chips, .mon .seg2 { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 0; padding: 0; gap: 0; }
.mon .chips button, .mon .seg2 button { border: 0; border-left: 1px solid var(--line-soft); background: none; border-radius: 0; padding: 0.42rem 0.7rem; cursor: pointer; white-space: nowrap;
  font-family: var(--sans); font-size: 12.5px; color: var(--muted); transition: color .2s, background .2s; }
.mon .chips button:first-child, .mon .seg2 button:first-child { border-left: 0; }
.mon .chips button:hover, .mon .seg2 button:hover { color: var(--fg); }
.mon .chips button[aria-pressed=true], .mon .seg2 button[aria-pressed=true] { color: var(--fg); background: rgba(244,239,230,0.07); box-shadow: inset 0 -1px 0 var(--gold); font-weight: 500; }
.mon .btn { border: 1px solid rgba(244,239,230,0.3); background: transparent; border-radius: 0; padding: 0.55rem 1.05rem; cursor: pointer; color: var(--fg);
  font-family: var(--sans); font-size: 12.5px; transition: border-color .2s, background .2s; }
.mon .btn:hover { border-color: var(--fg); background: rgba(244,239,230,0.04); }
.mon .chips button:focus-visible, .mon .seg2 button:focus-visible, .mon .sections a:focus-visible, .mon .btn:focus-visible,
.mon .search:focus-visible, .mon .fsel:focus-visible, .mon .drawer .close:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

/* ---------------------------------------------------------------- layout */
.mon section.view { display: none; padding-bottom: 5rem; }
.mon section.view.on { display: block; animation: monIn .45s var(--ease, ease) both; }
@keyframes monIn { from { opacity: 0; } to { opacity: 1; } }
.mon .grid { display: grid; gap: 3rem 2.5rem; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.mon .c3 { grid-column: span 3; } .mon .c4 { grid-column: span 4; } .mon .c5 { grid-column: span 5; } .mon .c6 { grid-column: span 6; }
.mon .c7 { grid-column: span 7; } .mon .c8 { grid-column: span 8; } .mon .c12 { grid-column: span 12; }
@media (max-width: 1100px) { .mon .c3 { grid-column: span 6; } .mon .c4, .mon .c5, .mon .c7, .mon .c8 { grid-column: span 12; } .mon .c6 { grid-column: span 12; } }
@media (max-width: 900px) { .mon .grid { column-gap: 1.25rem; } }
@media (max-width: 640px) { .mon .c3 { grid-column: span 12; } .mon .grid { gap: 2.4rem 0.5rem; } }
/* a card is a section of a report: a hairline above, no box */
.mon .card { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 1.1rem 0 0; min-width: 0; position: relative; }
.mon .card h3 { font-family: var(--sans); font-weight: 400; font-size: 1.4rem; line-height: 1.25; margin: 0.2rem 0 0.5rem; color: var(--fg); }
.mon .card .sub { color: var(--muted); font-size: 0.98rem; line-height: 1.55; margin: 0 0 1.1rem; max-width: 74ch; }
.mon .kicker { margin-bottom: 0.6rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; }
.mon .h2 { font-family: var(--sans); font-weight: 400; font-size: clamp(1.7rem, 2.8vw, 2.4rem); margin: 0 0 0.5rem; }
.mon .h2-sub { color: var(--muted); max-width: 70ch; line-height: 1.6; margin: 0 0 1.8rem; font-size: 1.05rem; }
.mon .note { color: var(--faint); font-size: 0.86rem; margin-top: 0.8rem; line-height: 1.5; }
.mon .badge { display: inline-block; font-family: var(--sans); font-size: 12.5px; font-weight: 500; color: var(--gold); }

/* ---------------------------------------------------------------- KPI */
.mon .kpi { display: flex; flex-direction: column; justify-content: space-between; min-height: 132px; }
.mon .kpi .v { font-family: var(--sans); font-weight: 400; font-size: clamp(2.6rem, 3.6vw, 3.4rem); line-height: 1; }
.mon .kpi .v small { font-size: 0.4em; color: var(--muted); margin-left: .25rem; }
.mon .kpi .t { color: var(--fg-2); font-size: 0.98rem; line-height: 1.45; margin-top: 0.7rem; }
.mon .kpi.accent { border-top-color: var(--gold); }
.mon .kpi.accent .v { color: var(--gold); }

/* ---------------------------------------------------------------- findings */
.mon .finding { display: flex; flex-direction: column; gap: .55rem; }
.mon .finding .big { font-family: var(--sans); font-size: 2.1rem; font-weight: 400; color: var(--gold); line-height: 1.05; }
.mon .finding p { margin: 0; color: var(--fg-2); font-size: 1rem; line-height: 1.55; }

/* ---------------------------------------------------------------- tags, legend, chart */
/* a verdict read on alpha against the benchmark, not on net Sharpe (app.js vsBench) */
.mon .vsb { display: inline-block; margin-left: .5rem; font-family: var(--mono); font-size: 10.5px; letter-spacing: .02em; color: var(--faint);
  border: 1px solid var(--line); padding: 0 .3rem; line-height: 1.5; white-space: nowrap; text-transform: none; vertical-align: 1px; cursor: help; }
.mon .pill { display: inline-block; font-family: var(--sans); font-size: 12.5px; padding: 0; border-radius: 0;
  white-space: nowrap; line-height: 1.6; font-weight: 500; }
.mon .legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-family: var(--sans); font-size: 0.76rem; color: var(--muted); margin-top: .7rem; }
.mon .legend .sw { display: inline-block; width: .7rem; height: .7rem; border-radius: 0; margin-right: .4rem; vertical-align: -1px; }
.mon .chart { position: relative; width: 100%; }
.mon .chart svg { display: block; overflow: visible; }
/* the tooltip of every chart (ui.js): a small printed note, square and opaque */
.mon .tip { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 20; min-width: 11rem; max-width: 20rem; padding: .65rem .8rem;
  background: rgba(10,15,28,.97); border: 1px solid rgba(244,239,230,.2); border-radius: 0; box-shadow: 0 12px 32px rgba(0,0,0,.45);
  color: var(--fg); font-family: var(--sans); font-size: .76rem; line-height: 1.4; }
.mon .tip .tt { font-family: var(--sans); font-weight: 400; font-size: 1rem; line-height: 1.25; }
.mon .tip .ts { color: var(--faint); font-family: var(--sans); font-size: 12.5px; margin-top: .25rem; }
.mon .tip .tr { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; margin-top: .55rem; padding-top: .5rem; border-top: 1px solid rgba(244,239,230,.1); }
.mon .tip .k { color: var(--fg-2); display: flex; align-items: center; gap: .45rem; min-width: 0; }
.mon .tip .k i { flex: none; width: 8px; height: 8px; border-radius: 0; }
.mon .tip .v { font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.mon .tip .tn { color: var(--gold); font-family: var(--sans); font-size: 12.5px; margin-top: .5rem; }

/* chart marks drawn by the scripts */
.mon svg .gridl, .mon .pl-g .gx, .mon .pl-g .gy { stroke: rgba(244,239,230,.06); }
.mon svg .tick, .mon .pl-g .tx, .mon .pl-g .ty { fill: #8F98B3; font-family: var(--mono); font-size: 10px; }
.mon svg .tick.hi { fill: var(--fg); }
.mon svg .ref { stroke: rgba(244,239,230,.26); }
.mon svg .mark { stroke: rgba(143,152,179,.55); stroke-dasharray: 3 3; }
.mon svg .mark.strong { stroke: rgba(244,239,230,.7); stroke-dasharray: 4 3; }
.mon svg .ptitle { fill: var(--fg); font-size: 12px; font-weight: 500; }
.mon svg .slab { font-family: var(--mono); font-size: 10.5px; }
.mon svg .ax-lab { fill: #8F98B3; font-size: 11px; }
.mon svg .cur { stroke: var(--gold); stroke-width: 1.5; }
.mon svg .xh-rule { stroke: rgba(244,239,230,.42); stroke-width: 1; }
.mon svg .xh-tag rect { fill: var(--fg); }
.mon svg .xh-tag text { fill: var(--bg); font-family: var(--mono); font-size: 10px; font-weight: 600; }
.mon svg .hring { fill: none; stroke: var(--fg); stroke-width: 1.5; pointer-events: none; }

/* galaxy */
.mon .pl-g { touch-action: pan-y; }
.mon .pl-g .pl-bigyear { fill: var(--fg); opacity: .055; font-family: var(--sans); font-weight: 400; }
.mon .pl-g .pl-badzone { fill: var(--bad); opacity: .045; }
.mon .pl-g .pl-diag { stroke: rgba(244,239,230,.28); stroke-dasharray: 4 4; }
.mon .pl-g .pl-zero { stroke: rgba(244,239,230,.22); }
.mon .pl-g .pl-sel { fill: var(--fg); font-size: 11.5px; font-weight: 600; paint-order: stroke; stroke: rgba(10,15,28,.8); stroke-width: 3px; }
.mon .pl-g .pl-hover line { stroke: rgba(244,239,230,.38); }
.mon .pl-g .pl-hover .ring { fill: none; stroke-width: 2; }
.mon .pl-g .pl-hover rect { fill: var(--fg); }
.mon .pl-g .pl-hover text { fill: var(--bg); font-family: var(--mono); font-size: 10px; font-weight: 600; }
.mon .pl-g .pl-hit { cursor: crosshair; }
.mon #pl-galaxy.engaged .pl-g { outline: 1px solid rgba(201,168,122,.32); outline-offset: 3px; }
.mon .chart-reset { position: absolute; top: 6px; right: 8px; padding: .35rem .7rem; z-index: 3; background: rgba(10,15,28,.9); }

/* heat map overlays */
.mon .pl-heat-ov .hcol { fill: rgba(244,239,230,.1); }
.mon .pl-heat-ov .hrow { fill: rgba(244,239,230,.14); stroke: rgba(244,239,230,.55); stroke-width: .5; }
.mon .pl-heat-ov .selrow { fill: none; stroke: var(--gold); stroke-width: 1.2; }

/* WebGL scenes (gl.js): stage, projected labels, engagement, colour scale */
.mon .gl-stage { position: relative; overflow: hidden; border-radius: 0; border: 1px solid var(--line-soft); transition: border-color .3s, box-shadow .3s;
  background: var(--panel); }
.mon .gl-stage.on { border-color: rgba(201,168,122,.38); }
.mon .gl-stage canvas { display: block; cursor: grab; }
.mon .gl-stage canvas:active { cursor: grabbing; }
.mon .gl-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.mon .gl-tag { position: absolute; left: 0; top: 0; white-space: nowrap; font-family: var(--mono); font-size: 10px; color: #8F98B3; will-change: transform; }
.mon .gl-tag.axis, .mon .gl-tag.sid { color: var(--fg); font-family: var(--sans); font-size: 11px; font-weight: 600; }
.mon .gl-tag.fam { color: var(--fg-2); font-family: var(--sans); font-size: 10.5px; }
.mon .gl-tag.yr { color: var(--gold); font-size: 12px; font-weight: 600; text-shadow: 0 0 12px rgba(201,168,122,.6); }
.mon .gl-tag.sel { color: var(--gold); font-weight: 600; }
.mon .gl-hint { position: absolute; left: 10px; bottom: 9px; pointer-events: none; font-family: var(--sans); font-size: 12.5px; color: var(--muted);
  background: rgba(10,15,28,.85); border: 1px solid var(--line-soft); border-radius: 0; padding: 4px 9px; transition: opacity .3s; }
.mon .gl-stage.on .gl-hint { opacity: 0; }
.mon .gl-legend { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin-top: .7rem; font-family: var(--sans); font-size: .76rem; color: var(--muted); }
.mon .gl-legend .scale { flex: 0 1 240px; min-width: 160px; }
.mon .gl-legend .ramp { height: 6px; border-radius: 0; }
.mon .gl-legend .labs { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: var(--faint); margin-top: 3px; }

/* ---------------------------------------------------------------- survivors list */
.mon .surv { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(64px, .55fr)) minmax(90px, 1.1fr); gap: 0; align-items: stretch; }
.mon .surv .row > .all { color: var(--muted); }
.mon .surv .h { padding: 0 0 .4rem 1rem; border-bottom: 1px solid var(--line); align-self: end; }
.mon .surv .row { display: contents; cursor: pointer; }
.mon .surv .row > * { padding: .55rem 0 .55rem 1rem; border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; justify-content: center; }
.mon .surv .h:first-child, .mon .surv .row > :first-child { padding-left: 0; }
.mon .surv .row > .num { align-items: flex-end; }
.mon .surv .row:hover > * { color: var(--gold); }
.mon .surv .nm { font-size: 1rem; } .mon .surv .nm small { display: block; color: var(--faint); font-family: var(--sans); font-size: 12px; margin-top: .1rem; }
.mon .num { text-align: right; font-family: var(--mono); font-size: 0.8rem; }

/* ---------------------------------------------------------------- explorer */
.mon .filters { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: flex-end; margin-bottom: 1.2rem; }
.mon .search, .mon .fsel { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--fg); padding: .45rem .1rem; font-family: var(--sans); font-size: 1rem; }
.mon .search { flex: 1 1 260px; min-width: 0; }
.mon .search::placeholder { color: var(--faint); }
.mon .search:focus, .mon .fsel:focus { border-bottom-color: var(--fg); outline: none; }
.mon .fsel { color: var(--fg-2); padding-right: 1.4rem; cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #9AA0B4 50%), linear-gradient(-45deg, transparent 50%, #9AA0B4 50%);
  background-position: right .45rem center, right .15rem center; background-size: 4px 4px; background-repeat: no-repeat; }
.mon .fsel option { background: #0A0F1C; color: var(--fg); }
.mon .count { margin-left: auto; }
.mon .tablebox { overflow: auto; max-height: 72vh; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; }
.mon table.t { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 0.94rem; }
.mon table.t th { position: sticky; top: 0; background: #0A0F1C; z-index: 2; text-align: left; padding: .75rem .7rem; border-bottom: 1px solid var(--line); white-space: nowrap; cursor: pointer; user-select: none; }
.mon table.t th.num, .mon table.t td.num { text-align: right; }
.mon table.t th[aria-sort=ascending]::after { content: " ↑"; color: var(--gold); } .mon table.t th[aria-sort=descending]::after { content: " ↓"; color: var(--gold); }
.mon table.t td { padding: .55rem .7rem; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.mon table.t tbody tr { cursor: pointer; transition: background .15s; }
.mon table.t tbody tr:hover { background: rgba(244,239,230,.035); }
.mon table.t td.name { white-space: normal; min-width: 15rem; } .mon table.t td.name small { color: var(--faint); display: block; font-family: var(--sans); font-size: 12px; }
.mon .pos { color: var(--ok); } .mon .neg { color: var(--bad); }

/* ---------------------------------------------------------------- drawer: a strategy sheet */
.mon .scrim { position: fixed; inset: 0; background: rgba(5,8,16,.6); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 1000; }
.mon .scrim.on { opacity: 1; pointer-events: auto; }
.mon .drawer { position: fixed; top: 0; right: 0; height: 100vh; width: min(760px, 100vw); background: #0A0F1C; border-left: 1px solid var(--line); z-index: 1001;
  transform: translateX(102%); transition: transform .4s cubic-bezier(.2,.7,.2,1); overflow-y: auto; padding: 1.8rem 2rem 4rem; }
.mon .drawer.on { transform: none; }
.mon .drawer .close { position: sticky; top: 0; float: right; background: #0A0F1C; border: 1px solid rgba(244,239,230,.3); border-radius: 0; padding: .5rem .9rem; cursor: pointer; z-index: 2;
  font-family: var(--sans); font-size: 12.5px; color: var(--fg); }
.mon .drawer .close:hover { border-color: var(--fg); }
.mon .drawer h2 { font-family: var(--sans); font-weight: 400; font-size: 2.1rem; margin: .5rem 0 .5rem; line-height: 1.15; padding-right: 6rem; }
.mon .drawer .ref { color: var(--muted); font-size: 0.98rem; line-height: 1.5; }
.mon .drawer h4 { margin: 2rem 0 .7rem; padding-top: .8rem; border-top: 1px solid var(--line-soft); }
.mon .drawer p { color: var(--fg-2); font-size: 1rem; line-height: 1.6; margin: 0 0 .55rem; }
.mon .strip { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 2px; font-family: var(--sans); margin-bottom: .8rem; }
.mon .strip div { border-radius: 0; padding: .4rem .2rem; text-align: center; font-size: .66rem; line-height: 1.3; color: var(--bg); font-weight: 600; }
.mon .strip div span { display: block; font-weight: 400; opacity: .8; }
.mon .kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem 1.4rem; }
.mon .kv div { background: none; border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; padding: .55rem 0 0; }
.mon .kv b { display: block; font-family: var(--sans); font-weight: 400; font-size: 1.45rem; color: var(--fg); }
.mon .kv span { color: var(--faint); font-family: var(--sans); font-size: 12.5px; }
.mon .why { border-left: 1px solid var(--gold); padding: .3rem 0 .3rem 1rem; margin: .6rem 0; }
.mon .why p { margin: .3rem 0; font-size: .98rem; }
.mon .why b { color: var(--fg); font-weight: 500; }
.mon .mini { width: 100%; font-size: .92rem; border-collapse: collapse; }
.mon .mini th, .mon .mini td { padding: .4rem .4rem; border-bottom: 1px solid var(--line-soft); text-align: right; }
.mon .mini th:first-child, .mon .mini td:first-child { text-align: left; }

/* ---------------------------------------------------------------- programs */
.mon .src-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.6rem 2rem; }
.mon .src { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: .8rem 0 0; display: flex; flex-direction: column; gap: .45rem; }
.mon .src .id { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--faint); display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.mon .src b { font-weight: 400; font-size: 1.1rem; line-height: 1.3; } .mon .src p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.5; }
.mon .rules td, .mon .rules th { text-align: left !important; vertical-align: top; }
.mon .ctrls { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; margin-bottom: 1rem; }
.mon .ctrls input[type=range] { flex: 1; min-width: 10rem; }
/* the year slider: a hairline and a small square cursor */
.mon input[type=range] { -webkit-appearance: none; appearance: none; background: transparent; height: 18px; cursor: pointer; }
.mon input[type=range]::-webkit-slider-runnable-track { height: 1px; background: rgba(244,239,230,.35); }
.mon input[type=range]::-moz-range-track { height: 1px; background: rgba(244,239,230,.35); }
.mon input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 9px; height: 15px; margin-top: -7px; background: var(--fg); border: 0; border-radius: 0; }
.mon input[type=range]::-moz-range-thumb { width: 9px; height: 15px; background: var(--fg); border: 0; border-radius: 0; }
.mon input[type=range]:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
/* UltraView family legend (buttons that toggle a family) */
.mon .pl-leg { font-family: var(--sans); font-size: 0.76rem; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px 4px; border-radius: 0; }
.mon .pl-leg:hover { color: var(--fg); }
.mon .pl-leg[aria-pressed=false] { opacity: 0.35; text-decoration: line-through; }
.mon .pl-leg .sw { display: inline-block; width: .7rem; height: .7rem; border-radius: 0; margin-right: .35rem; vertical-align: -1px; }
.mon canvas { display: block; }
.mon .skeleton { min-height: 180px; display: grid; place-items: center; color: var(--faint); font-size: .8rem; }
/* the reading of a chart: its numbers for the year and size shown, computed by the page */
.mon .reading { margin: .1rem 0 1rem; padding: .1rem 0 .1rem 1rem; border-left: 1px solid var(--gold); background: none; border-radius: 0;
  color: var(--fg); font-size: 1.02rem; line-height: 1.55; font-weight: 400; }
.mon .reading:empty { display: none; }
.mon .legend .cutnote { color: var(--faint); font-family: var(--sans); font-size: .68rem; flex-basis: 100%; }
.mon .wrapseg { flex-wrap: wrap; margin-bottom: 1rem; }
.mon .proj-ctrls label { display: inline-flex; align-items: center; gap: .5rem; }
.mon .proj-ctrls .fsel { text-transform: none; letter-spacing: 0; font-size: .95rem; }
.mon .tm-ctx-bg { fill: rgba(244,239,230,.025); stroke: var(--line-soft); }
.mon .tm-brush .selection { fill: rgba(201,168,122,.18); stroke: var(--gold); stroke-width: 1; }
.mon .tm-brush .handle { fill: var(--gold); opacity: .6; }
.mon .gl-legend .fam { display: inline-flex; align-items: center; gap: .35rem; margin-right: .6rem; }
.mon .gl-legend .fam i { width: .7rem; height: .7rem; border-radius: 50%; display: inline-block; }
@media (max-width: 640px) {
  .mon .bar { top: 56px; }
  .mon .bar .wrap { gap: .55rem; padding-top: .55rem; padding-bottom: .55rem; }
  .mon .sections, .mon .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .mon .sections::-webkit-scrollbar, .mon .chips::-webkit-scrollbar { display: none; }
  .mon .sizes { margin-left: 0; width: 100%; flex-wrap: nowrap; }
  .mon .sizes .lab { display: none; }
  .mon .surv { grid-template-columns: minmax(0, 2fr) 58px 58px 58px; } .mon .surv .spark { display: none; }
  .mon .gl-tag.fam, .mon .gl-tag.minor { display: none; }
  .mon .tip { max-width: 16rem; }
  .mon .mini { display: block; overflow-x: auto; }
  .mon .drawer { padding: 1.4rem 1.2rem 4rem; }
  .mon .drawer h2 { font-size: 1.7rem; }
}
/* ---------------------------------------------------------------- UltraView terminal (terminal.js)
   The frame stays in the page's language (hairlines, mono labels, square controls); the field, the boards
   and the numbers carry the colour. */
.mon .h3.uv-strat { font-family: var(--sans); font-weight: 400; font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin: 4rem 0 .4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.mon .term { border-top: 1px solid var(--gold); border-bottom: 1px solid var(--line); padding: 1rem 0 1.6rem; margin: 0 0 1rem; outline: none; font-family: var(--sans); }
.mon .tx-loading { min-height: 420px; display: grid; place-items: center; font-family: var(--sans); font-size: 12.5px; }
.mon .tx-bar { display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; align-items: center; }
.mon .tx-cmd { position: relative; flex: 1 1 26rem; display: flex; align-items: center; border-bottom: 1px solid rgba(244,239,230,.35); min-width: 0; }
.mon .tx-prompt { font-family: var(--mono); color: var(--gold); font-size: 1.05rem; padding: 0 .55rem 0 .1rem; }
.mon .tx-q { flex: 1; min-width: 0; background: none; border: 0; padding: .6rem 0; font-family: var(--mono); font-size: .9rem; letter-spacing: .02em; color: var(--fg); outline: none; }
.mon .tx-q::placeholder { color: var(--faint); }
.mon .tx-hits { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; background: rgba(10,15,28,.98); border: 1px solid var(--line); border-top: 0; }
.mon .tx-hits:empty { display: none; }
.mon .tx-hit { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: .7rem; align-items: center; padding: .5rem .8rem; cursor: pointer; border-top: 1px solid var(--line-soft); outline: none; }
.mon .tx-hit:hover, .mon .tx-hit:focus { background: rgba(244,239,230,.06); }
.mon .tx-hit .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--sans); font-size: 1rem; }
.mon .tx-hit .t { font-family: var(--sans); font-size: 12.5px; color: var(--faint); white-space: nowrap; }
.mon .term .sw { display: inline-block; width: 8px; height: 8px; flex: none; margin-right: .45rem; }
.mon .tx-time { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; }
.mon .tx-range { width: clamp(10rem, 22vw, 20rem); }
.mon .tx-asof { font-family: var(--sans); font-size: 12.5px; color: var(--fg-2); min-width: 15ch; }
.mon .tx-filters { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin: 1rem 0 1rem; }
.mon .tx-filters .chips button[aria-pressed=false] { opacity: .45; }
.mon .tx-cls button { display: inline-flex; align-items: center; }
.mon .tx-main { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 0; border: 1px solid var(--line); }
.mon .tx-view { position: relative; min-width: 0; }
.mon .tx-modes { position: absolute; z-index: 5; top: .8rem; right: .8rem; background: rgba(10,15,28,.8); }
.mon .tx-stage { position: relative; height: clamp(420px, 62vh, 680px); background: var(--panel); overflow: hidden; touch-action: pan-y; }
.mon .tx-stage canvas { width: 100%; height: 100%; cursor: grab; }
.mon .tx-stage.on { box-shadow: inset 0 0 0 1px rgba(201,168,122,.35); }
.mon .tx-hud { position: absolute; left: 1rem; top: .8rem; pointer-events: none; z-index: 4; }
.mon .tx-clock { font-family: var(--sans); font-weight: 400; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1; color: var(--fg); }
.mon .tx-sub { font-family: var(--sans); font-size: 12.5px; color: var(--faint); margin-top: .45rem; max-width: 36ch; }
.mon .tx-legend { position: absolute; left: 1rem; bottom: .8rem; right: 1rem; z-index: 4; display: flex; flex-wrap: wrap; gap: .3rem 1rem; pointer-events: none;
  font-family: var(--sans); font-size: .72rem; color: var(--muted); }
.mon .tx-legend .k { display: inline-flex; align-items: center; gap: .35rem; }
.mon .tx-legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.mon .tx-legend .shape { color: var(--faint); font-family: var(--mono); font-size: 10px; letter-spacing: .06em; }
.mon .tx-labels, .mon .tx-tags { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.mon .tx-ax, .mon .tx-tag { position: absolute; left: 0; top: 0; white-space: nowrap; will-change: transform; }
.mon .tx-ax { font-family: var(--sans); font-size: 12.5px; color: rgba(244,239,230,.45); margin: -6px 0 0 -10px; }
.mon .tx-ax.k { color: rgba(244,239,230,.3); }
.mon .tx-ax.h { color: rgba(244,239,230,.35); }
.mon .tx-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--fg); background: rgba(10,15,28,.82); border-left: 1px solid var(--fg-2); padding: 1px 6px; }
.mon .tx-tag.on { border-left-color: var(--gold); color: var(--gold); }

.mon .tx-sheet { border-left: 1px solid var(--line); padding: 1rem 1.1rem 1.2rem; overflow-y: auto; max-height: clamp(420px, 62vh, 680px); background: rgba(14,20,36,.6); min-width: 0; }
.mon .tx-sheet h3 { font-family: var(--sans); font-weight: 400; font-size: 1.3rem; line-height: 1.2; margin: .1rem 0 .6rem; }
.mon .tx-tags-row { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.mon .tx-chip { display: inline-flex; align-items: center; font-family: var(--sans); font-size: 12.5px; color: var(--fg-2); }
.mon .tx-chip.good { color: var(--ok); }
.mon .tx-chip.bad { color: var(--bad); }
.mon .tx-chip.warn { color: var(--warn); }
.mon .tx-style { color: var(--faint); font-size: .82rem; line-height: 1.4; margin: .6rem 0 0; }
.mon .tx-kv { width: 100%; border-collapse: collapse; margin: 1rem 0 .6rem; font-size: .82rem; }
.mon .tx-kv th, .mon .tx-kv td { padding: .3rem 0; border-top: 1px solid var(--line-soft); text-align: right; font-weight: 400; }
.mon .tx-kv th:first-child { text-align: left; color: var(--muted); font-family: var(--sans); }
.mon .tx-kv tr:first-child th { font-family: var(--sans); font-size: 12.5px; color: var(--faint); border-top: 0; }
.mon .tx-kv th + th { padding-left: .8rem; }
.mon .tx-kv td { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--fg); padding-left: .6rem; white-space: nowrap; }
.mon .tx-spark svg { width: 100%; height: auto; display: block; }
.mon .tx-cap { font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; color: var(--faint); margin-top: .2rem; }
.mon .tx-acts { display: flex; flex-wrap: wrap; gap: .5rem; margin: .9rem 0; }
.mon .tx-rel { display: grid; gap: .8rem; }
.mon .drawer .tx-rel { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .4rem 1.6rem; }
.mon .drawer .tx-rel h4 { border-top: 0; padding-top: 0; }
/* the sheet of an instrument (terminal.js itemSheet) */
.mon .drawer .tx-tags-row { margin: .2rem 0 .6rem; }
.mon .drawer .tx-perf th.num { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; font-weight: 500; color: var(--muted); vertical-align: bottom; }
.mon .drawer .tx-perf td.num { font-family: var(--mono); font-size: .86rem; }
.mon .drawer .tx-perf td.lab { color: var(--fg-2); font-size: .9rem; }
.mon .drawer .tx-perf tr.ref td { color: var(--muted); font-size: .8rem; }
.mon .drawer .tx-ichart { margin-top: .5rem; }
.mon .drawer .tx-ichart svg { width: 100%; height: auto; }
.mon .drawer .tx-ichart .legend { margin: 0 0 .4rem; }
.mon .drawer .tx-ichart .legend i { display: inline-block; width: .9rem; height: 2px; margin-right: .4rem; vertical-align: middle; }
.mon .drawer .tx-cal td.num { font-family: var(--mono); font-size: .84rem; }
.mon .tx-tag.bench { border-left-color: var(--gold); color: var(--gold); }
.mon .tx-rel h4 { font-family: var(--sans); font-size: 12.5px; font-weight: 500; color: var(--faint); margin: .4rem 0 .2rem; }
.mon .tx-relrow { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; width: 100%; gap: .3rem; background: none; border: 0; border-top: 1px solid var(--line-soft);
  padding: .32rem 0; cursor: pointer; text-align: left; color: var(--fg-2); font-size: .8rem; }
.mon .tx-relrow:hover { color: var(--fg); }
.mon .tx-relrow .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mon .tx-relrow .v { font-family: var(--mono); color: var(--muted); }

.mon .tx-cmp, .mon .tx-screen { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.mon .tx-cmp-chart { min-height: 120px; }
.mon .tx-cmp .seg2 { margin: .8rem 0 0; }
.mon .tx-cmp svg .axis text, .mon .tx-ichart svg .axis text { fill: #8F98B3; font-family: var(--mono); font-size: 10px; }
.mon .tx-cmp svg .axis .lab, .mon .tx-ichart svg .axis .lab { fill: var(--faint); font-size: 11px; }
.mon .tx-cmp svg .axis .grid, .mon .tx-ichart svg .axis .grid { stroke: rgba(244,239,230,.06); }
.mon .tx-cmp svg .selection { fill: rgba(201,168,122,.14); stroke: var(--gold); }

.mon .tx-boards { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem; margin-top: 2rem; }
.mon .tx-world, .mon .tx-periodic { border-top: 1px solid var(--line); padding-top: 1rem; min-width: 0; }
.mon .tx-wgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.2rem; }
.mon .tx-wreg h4 { font-family: var(--sans); font-size: 12.5px; font-weight: 500; color: var(--faint); margin: 0 0 .3rem; }
.mon .tx-wcell, .mon .tx-pcell { position: relative; display: flex; justify-content: space-between; gap: .5rem; width: 100%; border: 0; border-top: 1px solid #0A0F1C;
  background: color-mix(in srgb, var(--c) 78%, #0A0F1C); color: #F4EFE6; padding: .26rem .45rem; cursor: pointer; font-size: .76rem; text-align: left; }
.mon .tx-wcell:hover, .mon .tx-pcell:hover { filter: brightness(1.25); }
.mon .tx-wcell.on, .mon .tx-pcell.on { box-shadow: inset 2px 0 0 var(--gold); }
.mon .tx-wcell .n, .mon .tx-pcell .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mon .tx-wcell .v, .mon .tx-pcell .v { font-family: var(--mono); font-size: .72rem; }
.mon .tx-ptab { display: grid; grid-template-columns: repeat(var(--n), minmax(4.6rem, 1fr)); gap: 2px; overflow-x: auto; }
.mon .tx-pcol .y { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--muted); padding: 0 0 .3rem .1rem; }
.mon .tx-pcell { flex-direction: column; gap: 0; font-size: .7rem; padding: .3rem .35rem; }
.mon .tx-pcell .v { font-size: .68rem; opacity: .9; }

.mon .tx-scr { overflow-x: auto; }
.mon .tx-scr table.t { width: 100%; border-collapse: collapse; font-size: .82rem; }
.mon .tx-scr th { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--line); cursor: pointer; white-space: nowrap; }
.mon .tx-scr th.on { color: var(--fg); }
.mon .tx-scr td { padding: .38rem .5rem; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.mon .tx-scr td:first-child { max-width: 22rem; overflow: hidden; text-overflow: ellipsis; font-family: var(--sans); font-size: .95rem; }
.mon .tx-scr td.num { font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.mon .tx-scr td.good { color: var(--ok); font-family: var(--mono); font-size: .72rem; }
.mon .tx-scr td.bad { color: var(--bad); font-family: var(--mono); font-size: .72rem; }
.mon .tx-scr tr[data-id] { cursor: pointer; outline: none; }
.mon .tx-scr tr[data-id]:hover, .mon .tx-scr tr[data-id]:focus { background: rgba(244,239,230,.04); }
.mon .tx-scr tr.on td:first-child { box-shadow: inset 2px 0 0 var(--gold); }
.mon .tx-screen > .btn { margin-top: .8rem; }
@media (max-width: 1100px) {
  .mon .tx-main { grid-template-columns: minmax(0, 1fr); }
  .mon .tx-sheet { border-left: 0; border-top: 1px solid var(--line); max-height: none; }
  .mon .tx-boards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .mon .tx-stage { height: 440px; }
  .mon .tx-modes { position: static; display: flex; width: max-content; margin: 0 0 .6rem; }
  .mon .tx-stage { height: 380px; }
  /* the date, the count and the legend stack under the field, in the flow, not over it nor over each other */
  .mon .tx-hud { position: static; margin: .7rem 1rem 0; }
  .mon .tx-clock { font-size: 1.6rem; }
  .mon .tx-sub { max-width: none; }
  .mon .tx-legend { position: static; margin: .6rem 1rem .9rem; }
  .mon .tx-filters .chips { flex-wrap: nowrap; }
  .mon .tx-wgrid { grid-template-columns: minmax(0, 1fr); }
  .mon .tx-time { width: 100%; }
  .mon .tx-range { flex: 1 1 8rem; width: auto; }
  /* the name stays in view while the figures scroll sideways */
  .mon .tx-scr td:first-child, .mon .tx-scr th:first-child { position: sticky; left: 0; z-index: 1; background: var(--bg, #0A0F1C); }
  .mon .tx-scr td:first-child { max-width: 10.5rem; min-width: 8rem; font-size: .86rem; white-space: normal; line-height: 1.2; }
  .mon .tx-scr th { white-space: normal; min-width: 4.2rem; vertical-align: bottom; }
  .mon .tx-scr td { padding: .38rem .4rem; }
  .mon table.t td.name { min-width: 8.5rem; max-width: 9.5rem; font-size: .88rem; line-height: 1.25; position: sticky; left: 0; z-index: 1; background: var(--bg, #0A0F1C); }
  .mon table.t td.name small { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .mon table.t th:first-child { position: sticky; left: 0; z-index: 3; background: var(--bg, #0A0F1C); }
  .mon table.t th { white-space: normal; min-width: 4.4rem; padding: .55rem .45rem; vertical-align: bottom; }
  .mon table.t td { padding: .5rem .45rem; }
  /* a name on two lines rather than cut; every cell keeps the height of two */
  .mon .tx-pcell .n { white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.3em; line-height: 1.15; }
}
.mon .tx-cmp-all { margin: .2rem 0 .6rem; }
.mon .tx-gl-cols { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: .3rem; font-family: var(--sans); font-size: 12.5px; color: var(--faint); padding: .2rem 0; }
.mon .tx-gl-list .v span, .mon .tx-gl-cols .v span { display: inline-block; min-width: 4.6ch; text-align: right; margin-left: .7ch; }
.mon .tx-gl-cols .v span:first-child { min-width: 9ch; }
.mon .tx-gl-list .tx-relrow .v span:first-child { min-width: 9ch; }
.mon .tx-relrow .n small { font-family: var(--mono); font-size: .68rem; color: var(--faint); }
.mon .ccy-note { max-width: 1440px; margin: .6rem auto 0; padding: 0 2.5rem; font-size: .78rem; line-height: 1.45; color: var(--muted); }
.mon .ccy-note[hidden] { display: none; }
@media (max-width: 640px) { .mon .ccy-note { padding: 0 1rem; } }
/* explorer: the vector chart and the distributions per group */
.mon .tx-exp, .mon .tx-globe { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.mon .tx-exp-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.1rem; margin: .4rem 0 1rem; }
.mon .tx-sel { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--sans); font-size: 12.5px; color: var(--faint); }
.mon .tx-sel select { font-family: var(--sans); font-size: .8rem; letter-spacing: 0; text-transform: none; color: var(--fg); background: var(--panel); border: 1px solid var(--line); padding: .3rem .4rem; }
.mon .tx-exp-chart { position: relative; }
.mon .tx-exp-cv { display: block; width: 100%; height: auto; }
.mon .tx-exp-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mon .tx-exp-dist svg { width: 100%; height: auto; display: block; }
.mon .tx-exp-dist { margin-top: .6rem; }
.mon .tx-exp svg .axis text { fill: #8F98B3; font-family: var(--mono); font-size: 10px; }
.mon .tx-exp svg .axis .lab { fill: var(--faint); font-size: 11px; }
.mon .tx-exp svg .axis .grid { stroke: rgba(244,239,230,.06); }
.mon .tx-exp svg .axis .zero { stroke: rgba(244,239,230,.28); }
.mon .tx-exp svg .tx-bline { stroke: var(--gold); stroke-dasharray: 3 4; opacity: .7; }
.mon .tx-exp svg .tx-bring { fill: #0A0F1C; stroke: var(--gold); stroke-width: 2.5; }
.mon .tx-exp svg .tx-bpill { fill: rgba(10,15,28,.9); stroke: rgba(201,168,122,.55); stroke-width: 1; }
.mon .tx-exp svg .tx-blab { fill: var(--gold); font-family: var(--mono); font-size: 10.5px; letter-spacing: .02em; }
.mon .tx-exp svg .tx-glab { fill: var(--fg); font-family: var(--sans); font-size: 11px; paint-order: stroke; stroke: #0A0F1C; stroke-width: 3px; }
.mon .tx-exp svg .tx-dlab { fill: var(--fg-2); font-family: var(--sans); font-size: 11px; }
.mon .tx-exp svg.tx-hi [data-k]:not(.on) { opacity: .06; }
.mon .tx-exp svg .tx-drow { cursor: default; }
/* globe */
.mon .tx-gl-main { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; border: 1px solid var(--line); }
.mon .tx-gl-view { position: relative; min-width: 0; background: var(--panel); }
.mon .tx-gl-stage { min-height: 360px; touch-action: pan-y; cursor: grab; overflow: hidden; }
.mon .tx-gl-legend { position: absolute; left: 1rem; bottom: .7rem; display: flex; align-items: center; gap: 1rem; pointer-events: none; font-size: .72rem; color: var(--muted); }
.mon .tx-gl-legend svg { width: 220px; height: auto; }
.mon .tx-gl-legend .k { display: inline-flex; align-items: center; gap: .35rem; }
.mon .tx-gl-legend i { width: 9px; height: 9px; display: inline-block; border: 1px solid var(--line); }
.mon svg .tx-gl-lt { fill: #8F98B3; font-family: var(--mono); font-size: 9.5px; }
.mon .tx-gl-movers { display: grid; gap: .3rem; margin: 0 0 .8rem; }
.mon .tx-gl-row { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.mon .tx-gl-rl { font-family: var(--sans); font-size: 12.5px; color: var(--faint); width: 4.5rem; }
.mon .tx-gl-chip { display: inline-flex; gap: .5rem; border: 0; background: color-mix(in srgb, var(--c) 70%, #0A0F1C); color: #F4EFE6; padding: .22rem .5rem; font-size: .74rem; cursor: pointer; }
.mon .tx-gl-chip .v { font-family: var(--mono); font-size: .7rem; }
.mon .tx-gl-chip:hover { filter: brightness(1.25); }
.mon .tx-gl-sheet { border-left: 1px solid var(--line); padding: 1rem 1.1rem 1.2rem; overflow-y: auto; max-height: 600px; background: rgba(14,20,36,.6); min-width: 0; }
.mon .tx-gl-sheet h3 { font-family: var(--sans); font-weight: 400; font-size: 1.3rem; line-height: 1.2; margin: .1rem 0 .3rem; }
.mon .tx-gl-cur { color: var(--muted); font-size: .8rem; line-height: 1.4; margin: 0; }
.mon .tx-gl-kv th:not(:first-child) { text-align: right; }
.mon .tx-gl-spark svg { width: 100%; height: auto; display: block; }
.mon .tx-gl-spark .grid { stroke: rgba(244,239,230,.12); }
.mon .tx-gl-list { margin-top: .9rem; }
.mon .tx-gl-list h5 { font-family: var(--sans); font-size: 12.5px; font-weight: 500; color: var(--faint); margin: 0 0 .2rem; }
.mon .tx-gl-float { position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; max-width: 260px; will-change: transform; }
.mon .tx-gl-float[hidden] { display: none; }
.tx-gl-tip { font-family: var(--sans); font-size: 12px; line-height: 1.45; color: #F4EFE6; background: rgba(14,20,36,.94); border: 1px solid rgba(244,239,230,.16); padding: 6px 9px; }
@media (max-width: 1100px) {
  .mon .tx-gl-main { grid-template-columns: minmax(0, 1fr); }
  .mon .tx-gl-sheet { border-left: 0; border-top: 1px solid var(--line); max-height: none; }
}
@media (max-width: 640px) {
  .mon .tx-exp-ctl { gap: .5rem .8rem; }
  .mon .tx-exp-ctl .seg2 { flex-wrap: wrap; }
  .mon .tx-gl-legend { position: static; padding: .4rem .8rem .6rem; }
  .mon .tx-gl-rl { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .mon section.view.on { animation: none; } .mon .drawer, .mon .scrim { transition: none; } }

/* identifiers (result tables, strategy ids) keep the mono face, in their real case */
.mon .finding .fsrc { font-family: var(--mono); font-size: 12px; }

/* ---------------------------------------------------------------- share buttons and deep links (link.js, share.js) */
.mon .kicker .sharecard-btn { margin-left: auto; padding: .18rem .5rem; font-size: 11px; }
.mon .card { scroll-margin-top: 7rem; }
.mon .card.mon-flash { outline: 1px solid var(--gold); outline-offset: 10px; transition: outline-color .6s; }
.mon .sheet-tools { display: flex; gap: .5rem; margin: .9rem 0 .2rem; }
.mon .drawer.mon-sheet-card { position: absolute; left: -10000px; top: 0; height: auto; max-height: none; overflow: visible; width: 640px; transform: none; border-left: 0; z-index: -1; }

/* ---------------------------------------------------------------- compare (compare.js) */
.mon .cmp-bar { display: grid; gap: .9rem; margin: 0 0 2.2rem; }
.mon .cmp-row { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; }
.mon .cmp-row .lab { font-size: 12.5px; color: var(--faint); }
.mon .cmp-add { flex: 0 1 22rem; min-width: 0; }
.mon .cmp-add .search { width: 100%; box-sizing: border-box; }
.mon .cmp-picks { display: flex; flex-wrap: wrap; gap: .5rem; min-width: 0; }
.mon .cmp-chip { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--line); padding: .25rem .3rem .25rem .55rem; max-width: 100%; min-width: 0; }
.mon .cmp-chip i, .mon .cmp-tn i, .mon .cmp-vn i { display: inline-block; width: .65rem; height: .65rem; flex: none; }
.mon .cmp-chip button { border: 0; background: none; color: var(--fg); cursor: pointer; padding: 0 .15rem; font: inherit; }
.mon .cmp-chip .cmp-nm { font-family: var(--mono); font-size: 12px; }
.mon .cmp-chip .cmp-cn { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 16rem; }
.mon .cmp-chip .cmp-x { color: var(--muted); font-size: 16px; line-height: 1; padding: 0 .35rem; }
.mon .cmp-chip .cmp-x:hover { color: var(--bad); }
.mon .cmp-scroll { overflow-x: auto; max-width: 100%; }
.mon .cmp-tab td, .mon .cmp-tab th { white-space: nowrap; }
.mon .cmp-tab td.num, .mon .cmp-tab th.num { text-align: right; font-family: var(--mono); font-size: .82rem; }
.mon .cmp-tab .cmp-tn { display: flex; align-items: center; gap: .45rem; font-family: var(--mono); font-size: .82rem; }
.mon .cmp-tab td.neg { color: #e0a458; }
.mon .cmp-costs tr.first td { border-top: 1px solid var(--line); }
.mon .cmp-costs tr.on td { background: var(--gold-soft); }
.mon .cmp-f { font-family: var(--mono); font-size: .74rem; line-height: 1.7; }
.mon .cmp-vg { display: grid; grid-template-columns: minmax(10rem, 1.6fr) repeat(9, minmax(0, 1fr)); gap: 2px; font-family: var(--sans); }
.mon .cmp-vh { font-size: .72rem; color: var(--faint); text-align: center; padding: .2rem 0; }
.mon .cmp-vh.on { color: var(--fg); font-weight: 600; }
.mon .cmp-vn { display: flex; align-items: center; gap: .45rem; text-align: left; border: 0; background: none; color: var(--fg); padding: .35rem .5rem .35rem 0; cursor: pointer; font: inherit; min-width: 0; }
.mon .cmp-vn:disabled { cursor: default; }
.mon .cmp-vn b { font-family: var(--mono); font-size: .8rem; font-weight: 500; flex: none; }
.mon .cmp-vn span { color: var(--muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mon .cmp-vc { padding: .35rem .15rem; text-align: center; color: var(--bg); font-size: .62rem; line-height: 1.25; min-width: 0; overflow: hidden; }
.mon .cmp-vc b { display: block; font-family: var(--mono); font-size: .78rem; font-weight: 600; }
.mon .cmp-vc span { display: block; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mon .cmp-vc.on { outline: 2px solid var(--fg); outline-offset: -2px; }
.mon .cmp-vc.ref { background: rgba(244,239,230,.04); color: var(--faint); display: flex; align-items: center; justify-content: center; }
@media (max-width: 640px) {
  .mon .cmp-vg { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .mon .cmp-vg > .cmp-vh:first-child { display: none; }
  .mon .cmp-vn { grid-column: 1 / -1; padding-top: .7rem; }
  .mon .cmp-vc span { display: none; }
  .mon .cmp-vc b { font-size: .66rem; }
  .mon .cmp-chip .cmp-cn { max-width: 9rem; }
}
