/* The Obol console. The mock-up's stylesheet, with the fonts served from this site. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/Fraunces-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/IBMPlexMono-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/IBMPlexMono-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/IBMPlexSans-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/IBMPlexSans-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/IBMPlexSans-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Layout: ops console. Fixed left rail (live views, then planned views), one working column.
   Palette: cool paper, ink, one signal teal for "live", amber for attention, brick for faults. */
:root {
  --bg: #f3f5f6; --panel: #ffffff; --ink: #14202b; --muted: #5a6b79; --line: #d6dde2;
  --rail: #14202b; --rail-ink: #dbe4ea; --rail-muted: #8ea0ae; --rail-line: #263644;
  --rail-ok: #8fd49d; --rail-warn: #e3a94a; --rail-fault: #ee8a80; --rail-signal: #4cc4bd; /* the rail is dark in both themes */
  --signal: #0e7c78; --signal-bg: #dff2f0; --warn: #9a5b00; --warn-bg: #fbecd0;
  --fault: #a3322a; --fault-bg: #f8dcd8; --ok: #2f6b3a; --ok-bg: #dcefdf;
  --ghost: #eceff1; --ghost-line: #b9c4cc; --mono-bg: #eef2f4;
  --event: #1f6fe0; --demo: #1d7a45; --demo-bg: #ddf3e5;
  --f-ui: "IBM Plex Sans", system-ui, sans-serif; --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --f-head: "Fraunces", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f171e; --panel: #16222c; --ink: #e3ebf0; --muted: #97a8b5; --line: #29394690;
    --rail: #0a1015; --rail-ink: #dbe4ea; --rail-muted: #7d909e; --rail-line: #1f2d38;
    --signal: #4cc4bd; --signal-bg: #12403f; --warn: #e3a94a; --warn-bg: #3d2d10;
    --fault: #ee8a80; --fault-bg: #45201c; --ok: #8fd49d; --ok-bg: #1b3a22;
    --ghost: #1b2832; --ghost-line: #3a4c5a; --mono-bg: #1b2832; --event: #7fb0ff; --demo: #6fe3a0; --demo-bg: #163a26; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f171e; --panel: #16222c; --ink: #e3ebf0; --muted: #97a8b5; --line: #29394690;
  --rail: #0a1015; --rail-ink: #dbe4ea; --rail-muted: #7d909e; --rail-line: #1f2d38;
  --signal: #4cc4bd; --signal-bg: #12403f; --warn: #e3a94a; --warn-bg: #3d2d10;
  --fault: #ee8a80; --fault-bg: #45201c; --ok: #8fd49d; --ok-bg: #1b3a22;
  --ghost: #1b2832; --ghost-line: #3a4c5a; --mono-bg: #1b2832; --event: #7fb0ff; --demo: #6fe3a0; --demo-bg: #163a26; color-scheme: dark;
}
* { box-sizing: border-box; }
/* The text keeps the sizes written here (owner, 21 Nov 2026): `none` turns off the browser's own text-size adjustment, so the phone's
   text-size setting and turning sideways do not enlarge it. It does not stop Safari's Page Zoom. */
html { -webkit-text-size-adjust: none; text-size-adjust: none; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-ui); font-size: 14px; line-height: 1.5; }
a { color: var(--signal); }
.app { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: calc(100vh - 30px); }
.rail { background: var(--rail); color: var(--rail-ink); padding: 18px 0 24px; display: flex; flex-direction: column; gap: 4px; padding-left: max(0px, env(safe-area-inset-left, 0px)); }
.etclock { font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; padding: 0 20px 8px; color: var(--rail-muted); font-variant-numeric: tabular-nums; }
.etclock.open { color: var(--rail-ok); }
.brand { font-family: var(--f-head); font-size: 22px; padding: 0 20px 2px; letter-spacing: .01em; }
.brand small { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--rail-muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }
.who { margin: 12px 14px 10px; padding: 10px 12px; border: 1px solid var(--rail-line); border-radius: 6px; font-size: 12px; }
.who b { display: block; font-weight: 500; font-size: 13px; }
.who span { color: var(--rail-muted); }
.rail a.who { display: block; color: inherit; border-left: 1px solid var(--rail-line); padding: 10px 12px; justify-content: initial; }
.rail a.who:hover { background: var(--rail-line); }
.rail a.who b, .rail a.who span { display: block; }
.rail a.top { font-weight: 600; margin-bottom: 4px; }
.group { margin-top: 6px; }
.ghead { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; text-align: left; padding: 10px 20px 4px; color: var(--rail-muted); font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.ghead:hover { color: var(--rail-ink); }
.ghead .chev { width: 10px; display: inline-block; transition: transform .12s; }
.group[data-open="true"] .chev { transform: rotate(90deg); }
.group[data-open="false"] .gitems { display: none; }
/* Favorite pages: a star on each built page's link (shown on hover or focus, and always on a touch screen), a
   Favorites section under Overview, and a Favorite button on a page's header. */
.prow { display: flex; align-items: center; }
.prow > a { flex: 1; min-width: 0; }
.fav-star { background: none; border: 0; color: var(--rail-muted); cursor: pointer; font-size: 15px; line-height: 1; padding: 4px 12px 4px 4px; opacity: 0; }
.prow:hover .fav-star, .prow:focus-within .fav-star, .fav-star.on, .fav-star:focus-visible { opacity: 1; }
.fav-star.on { color: var(--rail-warn); }
.fav-star:focus-visible { outline: 2px solid var(--signal); border-radius: 4px; }
.favs { margin-top: 6px; }
.favs .fav-star { padding: 4px 0 4px 20px; opacity: 1; }
.favs .prow > a { border-left: 0; padding-left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.favmsg { padding: 4px 20px; font-size: 12px; color: var(--rail-muted); }
/* The grip that reorders the favorites: at the right of the row, on hover or focus, always on a touch screen. */
.grip { background: none; border: 0; color: var(--rail-muted); cursor: grab; font: 15px/1 var(--f-mono); letter-spacing: -2px; padding: 4px 14px 4px 6px; opacity: 0; touch-action: none; }
.favs .prow:hover .grip, .favs .prow:focus-within .grip, .grip:focus-visible { opacity: 1; }
.grip:focus-visible { outline: 2px solid var(--signal); border-radius: 4px; }
.favs .prow.dragging { opacity: .5; }
.favs .prow.dragging .grip { opacity: 1; cursor: grabbing; }
.dropline { height: 2px; background: var(--signal); margin: 0 14px; }
.srow { margin: 0 0 18px; } /* a strategy's row of boxes on the Overview, when there are several */
.panel.attn { margin-bottom: 22px; } /* the strategies under Needs attention: one strategy's tiles or several rows */
.srow .grip { margin-left: auto; opacity: .6; color: var(--muted); padding: 4px 8px; }
.srow .grip:hover, .srow .grip:focus-visible, .srow.dragging .grip { opacity: 1; }
.srow.dragging { opacity: .5; }
.standing .grip { opacity: .6; color: var(--muted); padding: 4px 8px; } /* the Strategies list's rows (mock-up v107) */
.standing .grip:hover, .standing .grip:focus-visible, .standing tr.dragging .grip { opacity: 1; }
.standing tr.dragging { opacity: .5; }
.srow .rh { display: flex; align-items: center; gap: 10px; margin: 0 0 8px 2px; font-size: 15px; }
.liveblock + .liveblock { margin-top: 16px; }
.livename { font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.strategy { margin-bottom: 22px; position: relative; } /* each strategy is a block, with room before the next */
.strategy .panel > h3:first-child { padding-right: 40px; } /* room for the grip at the card's corner */
.strategy .panel { position: relative; }
.strategy .grip { position: absolute; top: 10px; right: 8px; opacity: .6; color: var(--muted); padding: 4px 8px; }
.strategy .grip:hover, .strategy .grip:focus-visible, .strategy.dragging .grip { opacity: 1; }
.strategy.dragging { opacity: .5; }
.pickctl { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; } /* a strategy menu and its quiet default control */
.pickctl select { min-width: 0; flex: 1 1 auto; }
/* A check and a small grey "Default", no box: faint while the chosen strategy is not the default, solid when it is. */
.pickctl .mkdefault { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; padding: 2px 4px; font-size: 12.5px; color: var(--muted); white-space: nowrap; border-radius: 4px; }
.pickctl .mkdefault .mark { font-size: 13px; opacity: .35; }
.pickctl .mkdefault:hover { color: var(--ink); }
.pickctl .mkdefault:hover .mark { opacity: .8; }
.pickctl .mkdefault.on { color: var(--ink); }
.pickctl .mkdefault.on .mark { opacity: 1; color: var(--signal); }
form.cmd .pickctl { display: flex; }
.fieldrow { display: grid; gap: 3px; } /* a label over its control, where the control holds a button too */
form.cmd .fieldrow > label { font-size: 12.5px; color: var(--muted); }
.holdings { margin-top: 14px; }
.holdings .hh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; margin: 0 0 8px; }
.holdhead { margin: 0; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.holdings .hh .src { font-size: 11.5px; font-style: italic; color: var(--muted); }
.holdings > .note { margin: 0 0 8px; }
@media (hover: none) { .fav-star, .grip { opacity: 1; } }
.fav-toggle { margin-left: 10px; font: inherit; font-size: 13px; font-weight: 400; vertical-align: middle; padding: 2px 10px; background: none; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.fav-toggle.on { color: var(--warn); border-color: var(--warn); }
@media (prefers-reduced-motion: reduce) { .ghead .chev { transition: none; } }
.grp { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--rail-muted); padding: 14px 20px 4px; }
.rail a { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--rail-ink); text-decoration: none; padding: 6px 20px; font-size: 14px; border-left: 3px solid transparent; }
.rail a:hover { background: var(--rail-line); }
.rail a[aria-current="page"] { background: var(--rail-line); border-left-color: var(--signal); }
.rail a.planned { color: var(--rail-muted); flex-direction: column; align-items: flex-start; gap: 3px; } /* the title on its own line, its Coming soon tag under it (the owner, 30 Nov 2026) */
.rail .tag { font-family: var(--f-mono); font-size: 11px; border: 1px solid var(--rail-line); border-radius: 3px; padding: 0 5px; color: var(--rail-muted); white-space: nowrap; }
.rail .rt { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.rail .rt .pill { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; } /* the status is plain text and a dot: the dot ends where Alerts' dot ends */
.rail .rt .dot, .rail .rt .dot.feed { margin: 0; }
.rail .rt .pill.fault { color: var(--rail-fault); } .rail .rt .pill.fault .dot { background: var(--rail-fault); }
.rail .rt .pill.warn { color: var(--rail-warn); }
.rail .rt .pill.live { color: var(--rail-signal); } .rail .rt .pill.live .dot { background: var(--rail-signal); }
.ghead .cnt { margin-left: auto; }
.rail .foot { margin-top: auto; padding: 14px 20px 0; font-size: 11.5px; color: var(--rail-muted); }
main { padding: 22px max(20px, env(safe-area-inset-right, 0px)) 48px 28px; min-width: 0; max-width: 1800px; } /* past ~1,800 px the page stops growing, so a row stays readable (owner, 5 Dec 2026) */
h1.recordtitle { font-size: 20px; } /* a record's own title, under its page's */
h1 { font-family: var(--f-head); font-size: 26px; font-weight: 600; margin: 0 0 4px; text-wrap: balance; }
.sub { color: var(--muted); margin: 0 0 18px; max-width: 70ch; }
h2 { font-size: 12px; font-family: var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 22px 0 8px; }
.grid { display: grid; gap: 12px; }
.g4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.srow .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } /* several strategies: the same four columns, a missing tile leaves its place (owner, 5 Dec 2026) */
@media (max-width: 900px) { .srow .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tablewrap.scroll { max-height: 340px; overflow-y: auto; }
.tablewrap.scroll th { position: sticky; top: 0; background: var(--panel); }
.tile.holding .v { font-size: 17px; margin-top: 5px; }  /* several symbols on one line */
.g2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; min-width: 0; }
.tile .k { font-size: 12px; color: var(--muted); }
.tile .v { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; }
.tile .v.num { font-family: var(--f-mono); font-weight: 500; } /* times and counts (F26) */
.vbad { color: var(--fault); } .vstale { color: var(--warn); }
.tile .n { font-size: 12px; color: var(--muted); margin-top: 2px; }
/* Where a tile's figures come from (QuantConnect, and when it was read): small, grey, italic, pinned to the bottom of the box. */
.tile.sourced { display: flex; flex-direction: column; }
.tile .src { margin-top: auto; padding-top: 8px; font-size: 11.5px; font-style: italic; color: var(--muted); }
.pill { display: inline-block; font-family: var(--f-mono); font-size: 11px; padding: 1px 7px; border-radius: 10px; background: var(--mono-bg); border: 1px solid var(--line); white-space: nowrap; text-transform: none; letter-spacing: normal; } /* its own case, even in an uppercase heading */
.pill.live { background: var(--signal-bg); color: var(--signal); border-color: transparent; }
.pill.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.pill.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.pill.fault { background: var(--fault-bg); color: var(--fault); border-color: transparent; }
.pill.fault .dot { background: var(--fault); }
.pill.idle { color: var(--muted); }
.rechead .pill.paper, .tile .k .pill.paper { margin-left: 4px; }
.pill.paper { background: var(--panel); color: var(--ink); border: 1px dashed var(--ink); font-weight: 500; letter-spacing: .04em; } /* paper is a mark that must be present: never the live teal */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); margin-right: 6px; }
.dot.pulse { animation: pulse 1.6s ease-in-out infinite; }
.dot.feed { margin: 0 0 0 6px; }
.dot.off { background: var(--muted); animation: none; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .dot.pulse { animation: none; } .fresh { animation: none !important; } }
.versions { margin-top: 14px; }
.versions h4 { margin: 0 0 8px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
/* on the first cell, not the row: a box-shadow on a table row is not painted by every engine */
.vhistory tr.now td:first-child { box-shadow: inset 3px 0 0 var(--signal); font-weight: 600; }
.versions .tablewrap { margin-top: 10px; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th { text-align: left; font-weight: 500; font-size: 11.5px; font-family: var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.t, td.m { font-family: var(--f-mono); font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.num, th.num { text-align: right; } /* numbers line up on the right (F8) */
td .src { color: var(--muted); font-size: 12px; }
tr.row { cursor: pointer; }
tr.row:hover td { background: var(--mono-bg); }
/* a phone must not enlarge the note lines on its own (it did once the file name became an element inside the note) */
tr.detail { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* The line under the alerts that are new since the person last opened the Alerts page */
tr.seenline td { padding: 2px 8px; border-bottom: 1px dashed var(--muted); color: var(--muted); font: 11px var(--f-mono); text-align: center; }
/* The grey rows a list shows until its first page is in */
.sk { display: inline-block; width: 70%; height: 10px; border-radius: 3px; background: var(--ghost-line); opacity: .45; }
.tile .v .sk { width: 40px; height: 18px; vertical-align: middle; } /* a waiting tile has the filled one's shape: nothing moves when it fills */
/* A strategy card's "since 10:42 ET (18 minutes)" under its heading (mock-up v104) */
.panel p.since { margin: -6px 0 10px; font-size: 12.5px; color: var(--muted); }
/* The Alerts page's Clear filters, beside the live toggle at the bar's right end */
.besidebar { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.besidebar .toggle { margin-left: 0; }
/* A tile that is also a button (the Alerts page's today figures set the filters) */
button.tile { text-align: left; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-start; } /* top-aligned like a div tile, not centred */
button.tile:hover { border-color: var(--muted); }
tr.detail td { background: var(--mono-bg); font-size: 12.5px; }
tr.detail .meta { margin-top: 10px; font-size: 11px; font-style: italic; color: var(--muted); overflow-wrap: anywhere; }
.prop.picked, tr.picked { outline: 2px solid var(--signal); outline-offset: 2px; }
a.go { display: inline-block; margin-top: 8px; color: var(--signal); }
.woHead { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.woHead strong { font-size: 22px; }
.woline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; font-size: 13px; }
.tablewrap + a.go, .panel + a.go { margin-top: 14px; } /* room under a table's scrollbar */
td.brief { white-space: pre-line; }
/* Latest transactions and alerts: stacked, and side by side only where both tables have room. */
.latest { display: grid; grid-template-columns: minmax(0, 1fr); } /* the Overview's latest transactions, then its alerts, full width */
.strip.strip30 .hr { display: flex; gap: 3px; }
.strip.strip30 .c { flex: 1 1 0; height: 22px; border-radius: 3px; min-width: 0; cursor: default; }
.strip30 .ends { display: flex; justify-content: space-between; margin-top: 4px; font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
  /* a phone version of several lines (a proposal) keeps its lines */
tr.detail pre { margin: 6px 0 0; white-space: pre-wrap; font-family: var(--f-mono); font-size: 12px; }
.fresh { animation: fresh 2.4s ease-out; }
@keyframes fresh { from { background: var(--signal-bg); } to { background: transparent; } }
.bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.tablewrap + .bar, .tablewrap + button { margin-top: 10px; }
.grid + .bar { margin-top: 14px; } /* filters under a row of tiles */
.panel + .grid, .panel + .panel.result, .panel.result + .grid { margin-top: 12px; } /* a status box over cards */
.stack { display: grid; gap: 10px; } /* boxes one under the other */
select, input[type=text], button { font: inherit; font-size: 13px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: 5px 9px; }
button { cursor: pointer; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 10px 0 14px; }
button.tab { font: inherit; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 8px 14px; color: var(--muted); }
button.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--signal); font-weight: 600; }
button:focus-visible, a:focus-visible, select:focus-visible, tr.row:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
button[disabled], select[disabled], input[disabled] { cursor: not-allowed; opacity: .55; }
.ghost { background: var(--ghost); border: 1.5px dashed var(--ghost-line); border-radius: 6px; padding: 16px 18px; }
.ghost h3 { margin: 0 0 4px; font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ghost p { margin: 0 0 10px; color: var(--muted); max-width: 70ch; }
.skel { display: grid; gap: 6px; margin-top: 8px; }
.skel i { display: block; height: 10px; border-radius: 3px; background: var(--ghost-line); opacity: .45; }
.skel i:nth-child(2) { width: 82%; } .skel i:nth-child(3) { width: 64%; } .skel i:nth-child(4) { width: 76%; }
.kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 14px; margin: 0; }
.kv dt { color: var(--muted); font-size: 12.5px; } .kv dd { margin: 0; font-family: var(--f-mono); font-size: 12.5px; overflow-wrap: anywhere; } .kv dd.prose { font-family: var(--f-ui); font-size: 13px; } /* a sentence, not an id, number or time */
.tl { list-style: none; margin: 10px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: grid; gap: 12px; }
.tl li { position: relative; padding-left: 12px; }
.tl li::before { content: ""; position: absolute; left: -22px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--panel); border: 2px solid var(--signal); }
.tl li.bad::before { border-color: var(--fault); } .tl li.warn::before { border-color: var(--warn); }
.tl .when { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
/* a record's file name, whose hover title is its whole key */
.keyname { cursor: help; text-decoration: underline dotted; text-underline-offset: 2px; }
.tl .src { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; }
.banner { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; background: var(--fault); color: #fff; text-decoration: none; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); font-weight: 500; }
.banner:hover { filter: brightness(1.08); } .banner .go { margin-left: auto; text-decoration: underline; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .banner, :root:not([data-theme="light"]) .cnt { color: #1a0a08; } }
:root[data-theme="dark"] .banner, :root[data-theme="dark"] .cnt { color: #1a0a08; }
.banner .dot { background: currentColor; }
.prop { border: 1.5px solid var(--warn); border-radius: 6px; padding: 14px 16px; background: var(--panel); margin-bottom: 12px; }
.prop h3 { margin: 0 0 6px; font-size: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.left { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 600; color: var(--fault); }
.left.calm { color: var(--warn); }
.cnt { font-family: var(--f-mono); font-size: 10.5px; background: var(--fault); color: #fff; border-radius: 9px; padding: 0 6px; }
.cnt.ok { background: var(--ok); } /* a count that is a fact, not a problem (working orders); its text is the .cnt colour of each theme */
.strip { display: grid; gap: 3px; margin: 8px 0; }
.strip .hr { display: grid; grid-template-columns: 34px repeat(60, minmax(0, 1fr)); gap: 2px; align-items: center; }
.strip .hr span.l { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.strip .c { height: 14px; border-radius: 2px; background: var(--ghost-line); opacity: .35; cursor: pointer; }
.strip .c.ok { background: var(--signal); opacity: 1; } .strip .c.part { background: var(--warn); opacity: 1; } .strip .c.miss { background: var(--fault); opacity: 1; } .strip .c.off { opacity: 0; cursor: default; } .strip .c.sel { outline: 2px solid var(--ink); outline-offset: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
/* The event marker (23 Nov 2026, ring dropped 25 Nov): a dot on a minute where a symbol did something other than no action.
   The cell keeps its colour (the minute was decided); the dot is the same for everyone. */
.strip .c.ev { background-image: radial-gradient(circle at 50% 50%, var(--event) 0 2.5px, var(--panel) 3px 3.8px, transparent 4.3px); } /* drawn in the cell, so the grid keeps its layout */
.legend em.evdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--event); border: 1px solid var(--panel); margin-right: 6px; vertical-align: 0; }
ul.decided { margin: 6px 0 0 18px; padding: 0; }
.minute-detail { font-size: 13px; margin-top: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); } .legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 5px; vertical-align: -2px; }
.note { font-size: 12.5px; color: var(--muted); max-width: 75ch; }
.toggle { margin-left: auto; }
.feedstate { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; } .feedstate button { margin-left: 4px; }
form.cmd { display: grid; gap: 10px; max-width: 520px; }
form.cmd label { display: grid; gap: 3px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .rail { flex-direction: row; flex-wrap: wrap; padding: 10px 0; gap: 0; }
  .rail .etclock, .rail .brand, .rail .who, .rail .foot { flex: 1 1 100%; }
  .grp { flex: 1 1 100%; padding-top: 8px; }
  .rail a { padding: 6px 12px; border-left: 0; border-bottom: 2px solid transparent; }
  .rail a[aria-current="page"] { border-bottom-color: var(--signal); }
  .rail a.top, .rail .group, .rail .favs, .rail .favmsg { flex: 1 1 100%; }
  .rail .gitems { display: flex; flex-wrap: wrap; }
  .rail .favs .gitems { flex-direction: column; flex-wrap: nowrap; } /* a list, so a drag has a vertical order on a phone too */
  .ghead { padding-left: 12px; padding-right: 12px; }
  main { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .kv { grid-template-columns: minmax(0, 1fr); }
}
[data-view] { display: none; } [data-view].on { display: block; }

/* real-site additions */
.centered { max-width: 520px; margin: 12vh auto; }
.signedout p { font-size: 16px; margin: 12px 0 14px; } /* "You've been signed out", above Sign back in */
.signout { margin: 18px 20px 0; }
.rail .foot { padding: 14px 20px 0; }
button.signout { align-self: flex-start; }

/* An element with the hidden attribute stays hidden whatever its own display says (the banner and counts are flex or inline-block). */
[hidden] { display: none !important; }

/* Halt and liquidate: the confirmation dialog and the result */
.dialog-wrap { position: fixed; inset: 0; background: rgba(10, 16, 21, .55); display: grid; place-items: center; padding: 16px; z-index: 20; }
.dialog { max-width: 560px; width: 100%; }
.dialog label { display: block; margin: 16px 0 8px; font-size: 12.5px; color: var(--muted); }
.dialog input[type=text] { width: 100%; }
.dialog input[type=text].codebox { width: 11ch; font-family: var(--f-mono); letter-spacing: .15em; } /* a six-digit code, not a line */
.dialog .what { font-weight: 500; }
.dialog .kv { margin: 10px 0; } /* what the proposal is, above its code */
.dialog > .bar:last-child { margin: 26px 0 0; } /* room above Confirm and Cancel, clear of the focus ring of the box above */
.dialog .bar { gap: 12px; }
.pill.code { font-size: 18px; letter-spacing: .15em; }
.result { margin: 12px 0; border-left: 4px solid var(--signal); }
.result[data-kind="fault"] { border-left-color: var(--fault); }
.result[data-kind="warn"] { border-left-color: var(--warn); } /* waiting for a second person */
.result pre { margin: 6px 0 0; font-family: var(--f-mono); font-size: 12.5px; white-space: pre-wrap; }
button.danger { border-color: var(--fault); color: var(--fault); }
.panel > h2:first-child { margin-top: 0; }

/* Needs attention: an item, why it is there, and Acknowledge / Undo (ADR-25) */
.attnrow { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.attnrow:last-child { border-bottom: 0; }
.attnrow .txt { flex: 1 1 320px; min-width: 0; }
.attnrow .why { color: var(--muted); font-size: 12px; }
.ackbtn { font: inherit; font-size: 12px; line-height: 18px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); color: var(--ink); cursor: pointer; }
.ackbtn:hover, .ackbtn:focus-visible { border-color: var(--signal); }
.ackdone { margin-top: 10px; font-size: 13px; }
.ackdone summary { cursor: pointer; color: var(--muted); }
.ackhelp { margin-top: 8px; font-size: 12px; color: var(--muted); }
.ackflash { margin-top: 6px; font-size: 12px; color: var(--ok); }
.ackflash.bad { color: var(--fault); }

/* Send a command (ADR-25) */
form.cmd { max-width: 560px; display: grid; gap: 14px; }
form.cmd > .note { margin: 0; }
h1 + form.cmd { margin-top: 14px; }
form.cmd label { display: grid; gap: 4px; }
form.cmd .bar label { display: inline-flex; gap: 6px; align-items: center; }
.pill.code { font-size: 16px; letter-spacing: .15em; }
.note.bad { color: var(--fault); }
.viewcommand { margin-top: 10px; }
.note.ok { color: var(--ok); }

/* The button a box offers when it could not get its data (21 Nov 2026) */
.retrybtn { margin-top: 6px; background: none; border: 1px solid var(--line); color: var(--signal); border-radius: 6px; padding: 2px 10px; font-size: 12.5px; cursor: pointer; }

/* A page's own "Loading…" under its heading while its parts come in (21 Nov 2026) */
.pageload { margin: 2px 0 12px; color: var(--muted); font-size: 13px; animation: pulse 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .pageload { animation: none; } }

/* Working states: something is loading or being done (aria-busy says so to assistive technology too) */
/* pinned to the bottom of the screen while it shows, so it is seen on a long page whose frame is already drawn (21 Nov 2026) */
main.loading::after { content: "Loading…"; display: block; position: sticky; bottom: max(12px, env(safe-area-inset-bottom, 0px)); width: max-content; margin-top: 14px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--muted); font-size: 13px; animation: pulse 1.6s ease-in-out infinite; }
[aria-busy="true"] { cursor: progress; }
.panel[aria-busy="true"] { opacity: .55; transition: opacity .15s; }
.tablewrap[aria-busy="true"] { opacity: .55; transition: opacity .15s; } /* a list being read again keeps its rows, greyed */
@media (prefers-reduced-motion: reduce) { main.loading::after { animation: none; } }
/* a page that says Loading… itself (under its heading) does not also get the shell's line */
main.loading:has(.pageload)::after { content: none; display: none; }
.working { display: flex; gap: 6px; align-items: center; color: var(--muted); }
/* Trade ledger: category chips beside the count, a group's heading row, and the chain a row opens to. */
.chip { display: inline-flex; gap: 6px; align-items: baseline; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--signal-bg); color: var(--signal); border-color: transparent; }
.chip b { font-family: var(--f-mono); }
tr.tlg td { background: var(--mono-bg); }
ol.chain { margin: 0 0 0 18px; padding: 0; }
table.plain td { padding: 4px 12px 4px 0; vertical-align: top; border: 0; }

/* The rail on a wide screen (15 Nov 2026): pinned to the window, scrolling on its own, and foldable to a 44 px strip.
   The page then scrolls only for its own content, so a long rail can no longer leave the working column blank.
   On a phone none of this applies: the rail stays the wrapped bar at the top. */
.railbox .rstrip, .railbox .rtoggle { display: none; }
@media (min-width: 761px) {
  /* --wait: how long the pointer rests on the folded rail before it opens; --open and --close: how long it takes to slide
     open and to fold. The page slides over by the same amount when the rail is pinned open or folded, and the rail's own width is
     timed with it (the .railbox rule and the .app.collapsed rule), so the two move together in both directions. */
  .app { align-items: start; --wait: .3s; --open: .18s; --close: .12s; transition: grid-template-columns var(--open) ease-out; }
  .app.collapsed { grid-template-columns: 44px minmax(0, 1fr); transition: grid-template-columns var(--close) ease-in; }
  /* the banner (sticky, 0 high while hidden) is above the rail: --banner-h is its height, set by the page. The page
     keeps the browser's 8 px body margin, so the rail starts 8 px in and leaves 8 px at the bottom: it sits where it
     would without being pinned, so it does not jump when the page first scrolls. */
  .railbox { position: sticky; top: calc(var(--banner-h, 0px) + 8px); z-index: 15; display: flex; flex-direction: column; width: 244px; overflow: hidden; background: var(--rail); transition: width var(--open) ease-out; height: calc(100vh - var(--banner-h, 0px) - 16px); height: calc(100dvh - var(--banner-h, 0px) - 16px); }
  .railbox .rail { flex: 1; min-height: 0; width: 244px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
  /* 13 px each side of an 18 px icon is the 44 px strip: the icon is centred in the strip and stays at the same place when the rail opens, so it does not move under the pointer */
  .railbox .rtoggle { display: flex; align-items: center; justify-content: flex-start; flex: none; height: 40px; padding: 0 13px; background: none; border: 0; border-top: 1px solid var(--rail-line); color: var(--rail-muted); cursor: pointer; }
  .rtoggle:hover { color: var(--rail-ink); background: var(--rail-line); }
  .rtoggle:focus-visible { outline: 2px solid var(--signal); outline-offset: -2px; }
  .rtoggle svg { width: 18px; height: 18px; }
  .rtoggle .pane { opacity: 0; }
  .rtoggle[aria-expanded="true"] .pane { opacity: 1; } /* the left pane fills in while the rail is pinned open */

  /* a thin scrollbar, only while the pointer is over the rail, inset from both ends */
  .railbox .rail::-webkit-scrollbar { width: 4px; }
  .railbox .rail::-webkit-scrollbar-track-piece { background: transparent; margin: 72px 0 24px; }
  .railbox .rail::-webkit-scrollbar-thumb { background: transparent; border-radius: 2px; }
  .railbox .rail:hover::-webkit-scrollbar-thumb { background: var(--rail-muted); }
  @supports not selector(::-webkit-scrollbar) {
    .railbox .rail { scrollbar-width: thin; scrollbar-color: transparent transparent; }
    .railbox .rail:hover { scrollbar-color: var(--rail-muted) transparent; }
  }

  /* folded: the strip shows; the rail is still there (so a keyboard can reach it) but not seen */
  .app.collapsed .railbox { width: 44px; box-shadow: none; transition: width var(--close) ease-in, box-shadow var(--close); }
  .app.collapsed .rail { opacity: 0; pointer-events: none; overflow: hidden; transition: opacity var(--close); }
  .app.collapsed .rstrip { display: flex; opacity: 1; visibility: visible; transition: opacity var(--close), visibility 0s; }
  /* The pointer opens the folded rail over the page (which does not move): after a short wait (--wait), so crossing
     the strip on the way to something else does not open it, and then sliding open (--open) while the strip fades
     out and the rail's own content fades in. Closing is quicker (--close) and has no wait. Every part of the strip
     that is a link fills the strip's whole width and height (no gaps), and the pointer on one of them keeps the rail
     folded (it returns to the closed state at once), so the click reaches it and the rail does not open under the pointer.
     After the toggle folds the rail (.held, until the pointer leaves) the pointer does not open it either. */
  .app.collapsed .railbox:not(.held):hover { width: 244px; box-shadow: 6px 0 18px rgba(10, 16, 21, .35); transition: width var(--open) ease-out var(--wait), box-shadow var(--open) var(--wait); }
  .app.collapsed .railbox:not(.held):hover .rail { opacity: 1; pointer-events: auto; overflow-y: auto; transition: opacity var(--open) var(--wait); }
  .app.collapsed .railbox:not(.held):hover .rstrip { opacity: 0; visibility: hidden; transition: opacity var(--close) var(--wait), visibility 0s calc(var(--wait) + var(--close)); }
  /* a keyboard in the rail's links opens it with no wait (not the toggle, which is outside .rail, so Enter on it folds the rail);
     clicking a link is not :focus-visible, so a click does not leave it open. The hold (.held, set when a mouse
     or pen folds the rail) applies to focus too: a rail someone tabbed into must still hide when they fold it. */
  .app.collapsed .railbox:not(.held):has(.rail :focus-visible) { width: 244px; box-shadow: 6px 0 18px rgba(10, 16, 21, .35); transition: width var(--open) ease-out, box-shadow var(--open); }
  .app.collapsed .railbox:not(.held):has(.rail :focus-visible) .rail { opacity: 1; pointer-events: auto; overflow-y: auto; transition: opacity var(--open); }
  .app.collapsed .railbox:not(.held):has(.rail :focus-visible) .rstrip { opacity: 0; visibility: hidden; transition: opacity var(--close), visibility 0s var(--close); }
  .app.collapsed .railbox:has(.rstrip a:hover) { width: 44px; box-shadow: none; transition: width var(--close) ease-in, box-shadow var(--close); }
  .app.collapsed .railbox:has(.rstrip a:hover) .rail { opacity: 0; pointer-events: none; overflow: hidden; transition: opacity var(--close); }
  .app.collapsed .railbox:has(.rstrip a:hover) .rstrip { opacity: 1; visibility: visible; transition: opacity var(--close), visibility 0s; }

  .rstrip { --r-signal: #4cc4bd; --r-fault: #ee8a80; position: absolute; inset: 0 auto 40px 0; width: 44px; padding-top: 14px; flex-direction: column; align-items: stretch; background: var(--rail); }
  .rstrip .rule { width: 22px; height: 1px; background: var(--rail-line); margin: 8px auto; flex: none; }
  .rstrip .nm { writing-mode: vertical-rl; transform: rotate(180deg); align-self: center; font: 500 13px var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--rail-ink); }
  /* each link is the strip's full width, so there is no blank space between them to open the rail by */
  .ldot { display: grid; place-items: center; width: 44px; height: 36px; flex: none; }
  .ldot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--r-signal); }
  .ldot.live::before, .ldot.silent::before { animation: pulse 1.6s ease-in-out infinite; }
  .ldot.silent::before { background: var(--r-fault); }
  .ldot.idle::before { background: var(--rail-muted); }
  .ldot.wait::before { background: transparent; border: 2px solid var(--rail-muted); }
  .ldot:hover { background: var(--rail-line); }
  .snum { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; text-decoration: none; color: #fff; }
  .snum .face { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 34px; height: 36px; border-radius: 6px; line-height: 1; }
  .snum i { font: 600 9px var(--f-ui); font-style: normal; letter-spacing: .06em; opacity: .9; margin-bottom: 3px; }
  .snum b { font: 700 12px var(--f-mono); color: inherit; }
  .snum.red .face { background: var(--fault); }
  .snum.green .face { background: var(--ok); }
  .snum:hover .face { filter: brightness(1.15); }
  .ldot.here, .snum.here .face { box-shadow: 0 0 0 2px var(--rail), 0 0 0 4px var(--signal); } /* the page on screen */
  .ldot.here { box-shadow: inset 0 0 0 2px var(--signal); }
}
:root[data-theme="dark"] .snum { color: #1a0a08; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .snum { color: #1a0a08; } }
@media (prefers-reduced-motion: reduce) {
  .ldot::before { animation: none !important; }
  .app { --open: 0s; --close: 0s; } /* nothing slides or fades; the wait stays, so the rail still does not open under a passing pointer */
}

/* The trade ledger's Action column (16 Nov 2026): what an order did to the position. */
/* The Action pill has the standard pill's size and shape, in lower case like the status pills beside it (the owner, 30 Nov 2026);
   its colour says what the order did. The data keeps its words ("Buy", "Cover, then Buy"). */
.act { display: inline-block; font-family: var(--f-mono); font-size: 11px; padding: 1px 7px; border-radius: 10px; border: 1px solid transparent; white-space: nowrap; text-transform: lowercase; }
.act.buy { background: var(--signal-bg); color: var(--signal); }
.act.sell { color: var(--muted); border-color: var(--line); }
.act.short { background: var(--warn-bg); color: var(--warn); }
.act.cover { background: var(--ok-bg); color: var(--ok); }
.act.side { color: var(--muted); border: 1px dashed var(--line); }
.pos { display: block; margin-top: 2px; font: 12px var(--f-mono); color: var(--muted); }
.checks .callout { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; background: var(--panel); margin: 8px 0; max-width: 980px; }
.checks .callout.warn { border-color: var(--warn); }

/* A window over the page (lib/window.js): the record window and the transactions window */
.dialog.window { max-width: 1040px; max-height: 88vh; overflow: auto; }
.dhead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.dhead h3 { margin: 0; font-size: 16px; }
.dhead .x { margin-left: auto; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 6px; padding: 3px 10px; font-size: 13px; }
.window pre.raw { background: var(--mono-bg); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font: 11.5px/1.45 var(--f-mono); margin: 6px 0 0; max-height: 260px; overflow: auto; }
.window .kv { grid-template-columns: 150px minmax(0, 1fr); }
.chips { display: flex; gap: 8px; margin: 12px 0 10px; }
.chip { border: 1px solid var(--line); border-radius: 14px; padding: 2px 11px; font-size: 12px; color: var(--muted); background: none; }
.chip[aria-pressed="true"] { color: var(--ink); border-color: var(--signal); }
.tx { font-size: 12px; } .tx th, .tx td { white-space: nowrap; padding: 6px 8px; } .tx th { font-size: 10.5px; } .tx td.small { font-size: 12px; color: var(--muted); }
tr.fault td { background: rgba(214, 72, 72, .08); } tr.info td { background: rgba(120, 140, 170, .08); }
.chg { color: var(--fault); } .arrow { color: var(--muted); }
/* the fills behind a transactions-window order (layout A, mock-up v93) */
.tg { width: 14px; padding-right: 0 !important; } .tgb { background: none; border: 0; color: var(--signal); cursor: pointer; font-size: 11px; padding: 0 2px; }
.tx tr.detail td { padding: 0 8px 12px 8px; border-top: none; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 6px 0 4px; padding: 10px 12px; border-left: 2px solid var(--signal); background: rgba(120, 140, 170, .07); border-radius: 0 6px 6px 0; }
@media (max-width: 760px) { .fgrid { grid-template-columns: 1fr; } }
.fb { min-width: 0; overflow-x: auto; } .fb h5 { margin: 0 0 6px; font: 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.ft { width: 100%; font-size: 11.5px; border-collapse: collapse; } .ft th { font-size: 10px; text-align: left; color: var(--muted); padding: 3px 6px; font-weight: 500; } .ft th.num { text-align: right; }
.ft td { padding: 3px 6px; white-space: nowrap; } .ft tfoot td { border-top: 1px solid var(--line); color: var(--muted); padding-top: 5px; }
/* where each strategy stands (the Reconciliation page): a plain table, and the row shown marked */
.standing { width: 100%; border-collapse: collapse; } .standing th, .standing td { padding: 7px 10px; font-size: 13px; text-align: left; white-space: nowrap; vertical-align: middle; }
.standing th { font-size: 11px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.standing tbody tr { cursor: pointer; border-top: 1px solid var(--line); } .standing tbody tr:hover td { background: var(--mono-bg); } .standing tr.on td { background: var(--signal-bg); }

/* Capital actions (ADR-36, mock-up v108). The DEMO pill is bright green on purpose (owner, 1 Dec 2026): a demo must never be
   mistaken for a real strategy's data. Dark text on the green reads in both themes. */
.demopill { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 9px; background: var(--demo-bg); color: var(--demo); border: 1px solid var(--demo); font-family: var(--f-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; vertical-align: 1px; } /* no glow, tokens only (F27) */
.demoband { border: 2px dashed var(--demo); border-radius: 8px; padding: 8px 12px; margin: 10px 0; }
.demoband .demopill { margin: 0 6px 0 0; }
/* The capital action form (mock-up v109): label and control pairs on a grid, each box sized to what it holds. */
.trform { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 16px; align-items: center; max-width: 680px; margin: 10px 0; font-size: 13px; }
.trform .trform, .trform .bar { grid-column: 1 / -1; }
.trform > div:not(.bar):not(.pair) { display: contents; }
.trform .pair { display: contents; }
.trform .pair[hidden] { display: none !important; }
.trform label { color: var(--muted); }
.trform textarea { min-height: 4.5em; }
.trform .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; }
.box { height: 28px; box-sizing: border-box; padding: 3px 8px; }
.box.m { font-family: var(--f-mono); }
.box.r { text-align: right; }
.w-xs { width: 80px; } .w-s { width: 110px; } .w-m { width: 180px; } .w-l { width: 300px; } .w-xl { width: min(420px, 100%); }
.trform .hint { color: var(--muted); font-size: 11.5px; }
.trform .hint.ok { color: var(--ok, #5fd38d); }
.trform .hint.bad { color: var(--fault); }
.trform .hint.warn { color: var(--warn); margin-top: 4px; }
.trform .fielderror { grid-column: 2; margin-top: -6px; }
.trform .invalid { border-color: var(--fault); }
.trform .trsum { grid-column: 1 / -1; margin: 6px 0 0; padding: 8px 10px; border-left: 3px solid var(--signal); background: var(--signal-bg); color: var(--ink); }
.seg { display: inline-flex; justify-self: start; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { padding: 4px 12px; color: var(--ink); cursor: pointer; }
.seg label + input + label { border-left: 1px solid var(--line); }
.seg input:checked + label { background: var(--signal-bg); color: var(--signal); }
.seg input:focus-visible + label { outline: 2px solid var(--signal); outline-offset: -2px; }
.datefield { position: relative; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.calbtn { height: 28px; padding: 0 8px; }
.datecal { position: absolute; top: 32px; left: 0; z-index: 15; width: 250px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); font-size: 12px; }
.datecal .calhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-weight: 600; }
.datecal .calgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.datecal .calgrid .dow { color: var(--muted); font-size: 10.5px; }
.datecal .calgrid button { padding: 4px 0; border: 0; border-radius: 4px; background: none; color: var(--ink); font: 12px var(--f-mono); }
.datecal .calgrid button:disabled { color: var(--muted); opacity: .5; text-decoration: line-through; }
.datecal .calgrid button.half { box-shadow: inset 0 -2px 0 var(--warn); }
.datecal .calgrid button.sel { background: var(--signal); color: var(--bg); }
.datecal .hint { margin-top: 6px; }
button.primary { background: var(--signal); border-color: var(--signal); color: var(--bg); }
@media (max-width: 600px) { .trform { grid-template-columns: minmax(0, 1fr); gap: 4px 0; } .trform label { margin-top: 8px; } .w-l, .w-xl { width: 100%; } }
.trtl { list-style: none; margin: 0; padding: 0; }
.trtl li { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.trsec { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 10px; }

/* Named classes in place of inline styles (F23) */
td.muted { color: var(--muted); } tr.closedday td { background: var(--mono-bg); }
.sessionpanel { margin-bottom: 10px; } .sessiontitle { font-weight: 600; margin-bottom: 8px; }
.minutedetail { margin-top: 10px; } .spaced { margin-top: 14px; }
.ctlrow { margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.rechead { margin: 0 0 10px; font-size: 16px; }
.staterules { margin: 10px 0 16px; } .staterules summary { cursor: pointer; color: var(--muted); font-size: 13px; } .staterules[open] summary { margin-bottom: 8px; }
.panel .legend { margin-top: 8px; }
.about { margin: 14px 0; } .about summary { cursor: pointer; color: var(--muted); font-size: 13px; } .about[open] summary { margin-bottom: 8px; } /* a page's reference text, folded */
.panel.firing { border-color: var(--fault); } .tight { margin: 0 0 6px; } .subhead { margin: 16px 0 6px; font-size: 15px; }
.grid.gsmall { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); } .gapleft { margin-left: 8px; } .gaptop { margin-top: 10px; } .panel.wide { grid-column: 1 / -1; }
