/* The app's look (docs/ux/OWNER_NOTES.md, REFERENCE_SURVEY.md section 7). Mobile first: every rule is for a 360 px screen, widened at 720 px and
   1024 px. White surfaces on a cool grey page, one deep-blue accent for actions only, green and red only for right and wrong (always with a word or
   an icon), and a fixed colour and marker per subject. Corners slightly rounded, never pill-shaped. Every colour is a token, so the light and dark
   sets stay in step. Sizes in rem, so the phone's font setting is respected. The exam room has its own sheet (exam.css). */
:root {
  color-scheme: light;
  --bg: #f3f5f8; --panel: #ffffff; --panel-2: #f5f7fa; --line: #e1e6ee; --line-strong: #c4cdda;
  --ink: #121926; --dim: #4f5b6d; --faint: #788396;
  --accent: #1e4fa8; --accent-hover: #173f88; --on-accent: #ffffff; --accent-soft: #e7eefb;
  --ok: #187530; --ok-soft: #e5f4e9; --warn: #8a5200; --warn-soft: #fff2dc; --bad: #c0362c; --bad-soft: #fdeceb;
  --nv: #e6e6e6; --nv-edge: #9a9a9a; --na: #e24401; --an: #2dba00; --mk: #50209c;
  --s-math: #2a78d6; --s-phys: #eb6834; --s-chem: #d55181; --s-bot: #2a78d6; --s-zoo: #a87400; --s-other: #788396;
  --b-right: #187530; --b-right-slow: #86c995; --b-wrong: #c0362c; --b-wrong-other: #f0a39c; --b-none: #c4cdda;
  --shadow: 0 10px 28px rgba(18, 25, 38, .14);
  --radius: 8px; --radius-card: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Telugu", Arial, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1219; --panel: #161d27; --panel-2: #1c2531; --line: #29323f; --line-strong: #3a4656;
  --ink: #e8edf4; --dim: #a9b4c4; --faint: #7d899b;
  --accent: #7ea9ee; --accent-hover: #a0c0f3; --on-accent: #0b1626; --accent-soft: #1b2b45;
  --ok: #6fd08a; --ok-soft: #15301f; --warn: #f0b45a; --warn-soft: #33270f; --bad: #f28b82; --bad-soft: #3a1c1a;
  --nv: #4a5160; --nv-edge: #6b7385;
  --s-math: #4b93e8; --s-phys: #f17d4e; --s-chem: #e46d9a; --s-bot: #4b93e8; --s-zoo: #f0b429; --s-other: #8a96a8;
  --b-right: #4fbf6e; --b-right-slow: #2f6b41; --b-wrong: #ef7a70; --b-wrong-other: #7a3a35; --b-none: #3a4656;
  --shadow: 0 10px 28px rgba(0, 0, 0, .45);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
/* overflow-wrap: a name or an address with no space in it breaks where it must, and stays in its card (browser test 1, ChatGPT F-10) */
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.5; color: var(--ink); background: var(--bg); overflow-x: hidden; overflow-wrap: anywhere; }
a { color: var(--accent); text-underline-offset: 2px; }
h1 { font-size: 1.45rem; line-height: 1.25; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 1.12rem; line-height: 1.3; margin: 0 0 .6rem; }
h3, .h3 { font-size: 1rem; margin: 0 0 .5rem; }
p { margin: 0 0 .7rem; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.icon { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dim { color: var(--dim); }
.small { font-size: .875rem; }
.block { display: block; }
.mt { margin-top: .8rem; }
.inline { display: inline; margin: 0; }
.grow { flex: 1 1 auto; min-width: 0; }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { font-size: .8rem; font-weight: 600; color: var(--dim); margin: 0 0 .2rem; }
.split { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem .75rem; margin-bottom: .5rem; }
.split > h2, .split > .eyebrow { margin: 0; }
.later { display: inline-block; font-size: .75rem; font-weight: 600; line-height: 1.4; padding: .1rem .45rem; border-radius: 4px; background: var(--warn-soft); color: var(--warn); white-space: nowrap; vertical-align: middle; }

/* the frame: a header, and the destinations as bottom tabs on a phone or a rail on a desktop */
.top { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; padding: .45rem 1rem; background: var(--panel); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; }
.logo { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-size: .95rem; font-weight: 800; }
.tools { margin-left: auto; display: flex; gap: .4rem; align-items: center; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: var(--radius); border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; }
.iconbtn:hover { background: var(--panel-2); }
.iconbtn.plain { border-color: transparent; }

.switcher { order: 3; flex-basis: 100%; position: relative; }
.switcher > summary { list-style: none; display: flex; align-items: center; gap: .5rem; min-height: 44px; padding: .35rem .75rem; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--panel-2); color: var(--ink); font-weight: 600; font-size: .95rem; cursor: pointer; }
.switcher > summary::-webkit-details-marker, .others > summary::-webkit-details-marker { display: none; }
.switcher > summary .sw-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switcher[open] > summary { border-color: var(--accent); }
.sheet { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: .5rem; }
.sheet-title { font-size: .8rem; font-weight: 600; color: var(--dim); margin: .25rem .6rem .25rem; }
.sheet-note { font-size: .82rem; color: var(--dim); margin: .4rem .6rem .3rem; }
.sw-row { margin: 0; }
.sw-choice { display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 44px; padding: .45rem .6rem; border: 0; border-radius: var(--radius); background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.sw-choice:hover { background: var(--panel-2); }
.sw-choice.on { color: var(--accent); font-weight: 600; }
.sw-choice:not(.on) .icon { color: var(--dim); }
.others > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: .45rem .6rem; border-radius: var(--radius); color: var(--dim); font-weight: 600; cursor: pointer; }
.others > summary:hover { background: var(--panel-2); }

.appnav { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--panel); border-top: 1px solid var(--line);
  padding: .25rem .25rem calc(.25rem + env(safe-area-inset-bottom)); }
.appnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: 56px; border-radius: var(--radius); color: var(--dim); text-decoration: none; font-size: .74rem; font-weight: 600; }
.appnav a .icon { width: 1.4rem; height: 1.4rem; }
.appnav a.on { color: var(--accent); }
.appnav a.on .icon { background: var(--accent-soft); border-radius: 6px; padding: 2px 12px; width: calc(1.4rem + 24px); height: calc(1.4rem + 4px); box-sizing: border-box; }
body.has-nav { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }

.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .6rem 1rem; background: var(--warn-soft); color: var(--ink); border-bottom: 1px solid var(--line); }
.banner .left { white-space: nowrap; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 1rem 1rem 2rem; }
.wrap.narrow { max-width: 520px; }
.wrap > * + *, .tabpanel > * + *, .col > * + * { margin-top: 1rem; }
.col { min-width: 0; }
.grid2 { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
.grid2 > .col + .col { margin-top: 0; }
.foot { display: flex; flex-direction: column; gap: .25rem; align-items: center; text-align: center; color: var(--dim); font-size: .85rem; padding: .5rem 1rem 1.5rem; }
.foot a { color: var(--dim); display: inline-flex; align-items: center; min-height: 44px; padding: 0 .5rem; }

/* surfaces */
.card, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 1rem; min-width: 0; }
.panel { margin: 0 0 1rem; }
.wrap > .panel + .panel { margin-top: 0; }
.subpanel { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem; margin: .8rem 0; }
.list-card { padding: .35rem 1rem; }
.list-card > h2, .list-card > .split { margin-top: .65rem; }
.link-card { display: flex; align-items: center; gap: .5rem; min-height: 54px; color: var(--ink); text-decoration: none; font-weight: 600; }
.link-card:hover, a.role-card:hover { border-color: var(--accent); }
.row-card { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.pagehead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; }
.pagehead p { margin: 0; }
.result-head { flex-wrap: nowrap; align-items: flex-start; justify-content: flex-start; gap: .5rem; }
.hello { font-size: 1.35rem; }
.hero h1 { font-size: 1.75rem; }
.lead { font-size: 1.08rem; color: var(--dim); max-width: 46rem; }
.cards3, .two { display: grid; gap: 1rem; grid-template-columns: 1fr; }
/* Get started's role cards. They shared the class `choice` with the papers-allowed control further down, whose phone rule set each card's
   heading, description and link side by side, touching (browser test 1, Gemini F-05). */
.role-card { display: block; color: inherit; text-decoration: none; }
.go { color: var(--accent); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.who { display: flex; align-items: center; gap: .85rem; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 1.2rem; }

/* buttons: rectangular with soft corners, 44 px at least */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: .55rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--accent);
  background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { background: var(--panel); color: var(--accent); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn.small { padding: .4rem .8rem; font-size: .9rem; }
.btn.big { min-height: 52px; padding: .8rem 1.6rem; font-size: 1.05rem; }
.btn.block, .next .start-btn { width: 100%; }
.btn.danger, .btn.ghost.danger { color: var(--bad); border-color: var(--bad); }
.btn.danger:not(.ghost) { background: var(--bad); color: #fff; }
.btn[disabled] { background: var(--panel-2); border-color: var(--line-strong); color: var(--faint); cursor: not-allowed; }
.top .btn.ghost { border-color: var(--line); color: var(--ink); }
.acts { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
/* a link that stands alone on its line is a touch target of its own: it was one line of text, 19 to 21 px high (browser test 1, Gemini F-17) */
a.lone { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }

/* chips and tabs */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .9rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel);
  color: var(--ink); font: inherit; font-size: .9rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chip .count { color: var(--dim); font-weight: 500; font-variant-numeric: tabular-nums; }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a { display: inline-flex; align-items: center; min-height: 46px; padding: 0 1rem; color: var(--dim); text-decoration: none; font-weight: 600; white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--accent); }
/* On a phone the result's four tabs share the row: at 1rem a side they needed 378 px, and "Questions" was cut off at the edge of a 390 px
   screen, more at 360, the row scrolling with no bar to show it (browser test 1, Gemini F-14). */
@media (max-width: 479px) { .tabs a { flex: 1 1 auto; justify-content: center; padding: 0 .5rem; } }

/* forms */
.form { display: grid; gap: .8rem; margin: .6rem 0; }
.form label { display: grid; gap: .3rem; font-weight: 600; font-size: .95rem; }
.form label.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; min-height: 44px; }
.form input[type=text], .form input[type=email], .form input[type=number], .form input[type=datetime-local], .form input[type=date], .form input:not([type]), .form select, .form textarea {
  width: 100%; min-height: 44px; padding: .55rem .7rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); color: var(--ink); font: inherit; font-weight: 400; }
.form input[type=checkbox] { width: 1.3rem; height: 1.3rem; margin-top: .15rem; flex: none; accent-color: var(--accent); }
.form input.code { font-size: 1.4rem; letter-spacing: .3em; text-align: center; }
.help { font-weight: 400; color: var(--dim); font-size: .85rem; }
.row2 { display: grid; gap: .8rem; grid-template-columns: 1fr; }
.checks { display: grid; gap: .2rem; }
.error { background: var(--bad-soft); color: var(--bad); border: 1px solid var(--bad); border-radius: var(--radius); padding: .7rem .9rem; }
.note { border-radius: var(--radius); padding: .7rem .9rem; border: 1px solid var(--line); }
.note.ok { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }
.note.warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn); }
.status { display: inline-block; font-size: .875rem; font-weight: 600; margin: 0; }
.status.ok { color: var(--ok); } .status.wait { color: var(--warn); } .status.busy { color: var(--na); }
.tag { display: inline-flex; align-items: center; gap: .25rem; font-size: .8rem; font-weight: 600; padding: .1rem .45rem; border-radius: 4px; background: var(--panel-2); border: 1px solid var(--line); color: var(--dim); }
.tag .icon { width: .95rem; height: .95rem; stroke-width: 2.4; }
.tag.oC, .tag.oP, .tag.l-strength { color: var(--ok); border-color: var(--ok); background: var(--ok-soft); }
.tag.oW, .tag.l-improve, .tag.warn { color: var(--bad); border-color: var(--bad); background: var(--bad-soft); }
.tag.oB { color: var(--mk); border-color: var(--mk); }

/* lists and tables */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem .75rem; padding: .7rem 0; border-bottom: 1px solid var(--line); min-height: 44px; }
.rows li:last-child { border-bottom: 0; }
.rows li > a { display: inline-flex; align-items: center; min-height: 44px; }
.rows.compact li { padding: .45rem 0; }
.rows li.subject-row, .rows li.time-row { display: grid; gap: .4rem; justify-content: stretch; }
.rows li.why-row { border-bottom: 0; padding-top: 0; }
.row-link { display: flex !important; align-items: center; gap: .5rem; width: 100%; color: inherit; text-decoration: none; }
.subject-link { display: grid !important; gap: .4rem; color: inherit; text-decoration: none; padding: .15rem 0; }
.subject-link .icon { color: var(--faint); }
.score-cell b { font-size: 1.05rem; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* A table wider than its wrap scrolls sideways in it, and on a touch screen nothing showed that it did: the columns past the edge were simply
   out of view (browser test 1, Gemini F-07; the owner's decision of 2026-11-24: keep the scroll, and show it). site.js marks a wrap that
   holds more than it shows (.scrolls) and the sides that have more (.more-left, .more-right), and puts a line under it (.scroll-cue). The
   two edges lie over the table: each shares the wrap's one grid cell with it and is held at the wrap's own edge, so a cell with a
   background cannot hide them, and neither takes a touch. All of it goes when the table fits again. */
.tablewrap.scrolls { display: grid; grid-template-columns: 1fr; }
.tablewrap.scrolls > table { grid-area: 1 / 1; }
.tablewrap.scrolls::before, .tablewrap.scrolls::after { content: ""; grid-area: 1 / 1; position: sticky; z-index: 1; width: 1rem; pointer-events: none; color: var(--ink);
  opacity: 0; transition: opacity .15s; }
.tablewrap.scrolls::before { left: 0; justify-self: start; background: linear-gradient(to left, transparent, currentColor); }
.tablewrap.scrolls::after { right: 0; justify-self: end; background: linear-gradient(to right, transparent, currentColor); }
.tablewrap.more-left::before, .tablewrap.more-right::after { opacity: .25; }
.scroll-cue { margin: .35rem 0 .7rem; font-size: .85rem; color: var(--dim); }
table.list { width: 100%; border-collapse: collapse; font-size: .95rem; overflow-wrap: normal; }  /* a table scrolls inside its wrap; its words stay whole */
table.list th, table.list td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list thead th { font-size: .82rem; color: var(--dim); font-weight: 600; }
table.list tbody th { font-weight: 600; }

/* the student's home and tests */
.startform { display: grid; gap: .5rem; margin: .4rem 0 0; }
.rows .startform { display: flex; margin: 0; }
.startrow { display: grid; gap: .6rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.startrow:last-child { border-bottom: 0; }
.why { color: var(--warn); font-size: .9rem; font-weight: 600; }
.refusal { font-weight: 600; }
.people { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.person h2 { margin-bottom: .2rem; }
.next h2 { margin-bottom: .2rem; }
.last { display: flex; align-items: center; gap: 1rem; }
.big { font-size: 1.6rem; font-weight: 700; line-height: 1.2; margin: 0 0 .5rem; }
.change { display: inline-flex; align-items: center; gap: .2rem; font-size: .85rem; font-weight: 600; color: var(--dim); }
.change .icon { width: 1rem; height: 1rem; stroke-width: 2.2; }
.change.up { color: var(--ok); } .change.down { color: var(--bad); }
.num.below { color: var(--bad); }  /* a score below zero: its bar is empty, so the figure says it */
.big .change { display: flex; margin-top: .2rem; }
.segments { display: flex; gap: 6px; }
.segments span { flex: 1; height: 10px; border-radius: 5px; background: var(--panel-2); border: 1px solid var(--line); }
.segments span.done { background: var(--ink); border-color: var(--ink); }
.subject-line { display: flex; align-items: center; gap: .55rem; margin: 0; }

/* Home: recent papers as bars, each opening its result */
.recent { display: flex; align-items: stretch; gap: 6px; margin: .25rem 0 .6rem; }
.recent-bar { flex: 1 1 0; min-width: 44px; max-width: 72px; display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .25rem 0;
  border-radius: var(--radius); color: var(--dim); text-decoration: none; font-size: .75rem; }
.recent-bar:hover { background: var(--panel-2); }
.recent-bar .col { position: relative; width: 70%; height: 72px; display: flex; align-items: flex-end; }
.recent-bar .fill { display: block; width: 100%; height: var(--h, 0%); border-radius: 4px 4px 0 0; background: var(--line-strong); }
.recent-bar.on { color: var(--ink); font-weight: 700; }
.recent-bar.on .fill { background: var(--ink); }
.recent-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; margin: 0; }
.recent-foot b { font-size: 1.25rem; }

/* subjects: one colour and one marker each, everywhere */
.s-math { color: var(--s-math); } .s-phys { color: var(--s-phys); } .s-chem { color: var(--s-chem); } .s-bot { color: var(--s-bot); } .s-zoo { color: var(--s-zoo); }
.s-other { color: var(--s-other); } .s-total { color: var(--ink); }
.dot { flex: none; }
.dot .mk { fill: currentColor; }
.bar { display: block; position: relative; height: 8px; border-radius: 4px; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; }
.bar .fill { display: block; height: 100%; width: var(--w, 0%); background: currentColor; border-radius: 0 4px 4px 0; }
.bar.ticked { overflow: visible; }
.bar .tick { position: absolute; top: -5px; left: var(--at, 0%); width: 2px; height: 16px; background: var(--ink); border-radius: 1px; }

/* results */
.scorecard { display: flex; align-items: center; gap: 1rem; }
.score { font-size: 2.1rem; font-weight: 700; line-height: 1.1; margin: 0 0 .3rem; }
.score .of { font-size: 1.05rem; color: var(--dim); font-weight: 500; }
.ring { flex: none; font-family: var(--font); }
.ring-track { fill: none; stroke: var(--panel-2); stroke-width: 9; }
.ring-fill { fill: none; stroke: var(--ink); stroke-width: 9; stroke-linecap: round; }
.ring-value { fill: var(--ink); font-weight: 700; }
.ring-of { fill: var(--dim); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; }
.tiles div { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: .5rem .75rem; }
.tiles dt { color: var(--dim); font-size: .82rem; font-weight: 600; }
.tiles dd { margin: 0; }
.tiles dd.num { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
@media (min-width: 720px) { .tiles div { padding: .7rem .85rem; } .tiles dd.num { font-size: 1.4rem; } }
.tiles dd.sub { font-size: .78rem; color: var(--dim); }
.hint { display: flex; align-items: flex-start; gap: .75rem; }
.hint .icon { color: var(--warn); width: 1.5rem; height: 1.5rem; }
.hint p { margin: 0; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1rem; margin: 0; }
.facts.plain { margin-bottom: 1rem; }
.facts div { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .7rem; }
.facts dt { color: var(--dim); font-size: .82rem; }
.facts dd { margin: 0; font-size: 1.15rem; font-weight: 700; }
.warnpanel { border-color: var(--warn); background: var(--warn-soft); }
.lostlist { padding-left: 1.2rem; margin: 0; }
.lostlist li { margin-bottom: .3rem; }
.stack { display: flex; height: 14px; border-radius: 4px; overflow: hidden; background: var(--panel-2); margin: .25rem 0 .5rem; }
.stack span { width: var(--w, 0%); box-shadow: inset -2px 0 var(--panel); }
.key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; flex: none; }
.b-right_in_time { background: var(--b-right); } .b-right_slow { background: var(--b-right-slow); } .b-wrong_rushed { background: var(--b-wrong); }
.b-wrong_other { background: var(--b-wrong-other); } .b-unanswered { background: var(--b-none); }
.filters { display: grid; gap: .5rem; }
.palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.pq { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: var(--radius); border: 1.5px solid transparent; font-weight: 600; font-size: .9rem;
  font-variant-numeric: tabular-nums; text-decoration: none; }
.pq.oC, .pq.oP, .pq.oB { background: var(--ok-soft); color: var(--ok); }
.pq.oW { background: var(--bad-soft); color: var(--bad); border-color: var(--bad); }
.pq.oU { background: transparent; color: var(--dim); border: 1.5px dashed var(--line-strong); }
.pq.sel { outline: 3px solid var(--accent); outline-offset: 1px; }
.pq-key { display: inline-block; width: 16px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: .3rem; border: 1.5px solid transparent; }
.pq-key.oC { background: var(--ok-soft); border-color: var(--ok-soft); } .pq-key.oW { background: var(--bad-soft); border-color: var(--bad); } .pq-key.oU { border: 1.5px dashed var(--line-strong); }
.legend-row { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: .75rem 0 0; }
.none { margin: .75rem 0 0; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.rq header { display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: center; margin-bottom: .6rem; }
.rq .stem { overflow-x: auto; }
.rq .te { margin-top: .4rem; color: var(--dim); }
.qtime { display: flex; align-items: center; gap: .35rem; margin: .5rem 0 0; }
.qtime .icon { width: 1rem; height: 1rem; }
#review > .rq + .rq { margin-top: 1rem; }
.rq { scroll-margin-top: 4.5rem; }  /* a question brought into view clears the header that stays at the top */
#class-list li > span:first-child > a { display: inline-flex; align-items: center; min-height: 44px; }  /* a pupil's name: a full touch target */
.ropts { list-style: none; padding: 0; margin: .4rem 0; display: grid; gap: .4rem; }
.ropts li { border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .65rem; overflow-x: auto; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.ropts li.right { border-color: var(--ok); background: var(--ok-soft); }
.ropts li.mine:not(.right) { border-color: var(--bad); background: var(--bad-soft); }
.olabel { font-weight: 700; }
.solution { margin: .6rem 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2); }
.solution > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: 0 .8rem; font-weight: 600; color: var(--accent); }
.solution .sol-body { padding: 0 .8rem; overflow-x: auto; }
.solution > p { padding: 0 .8rem .6rem; margin: .4rem 0 0; }
.report summary { cursor: pointer; color: var(--accent); min-height: 44px; display: flex; align-items: center; }
/* the operator's Solutions page: a joined row of choices, the three parts of its bar, and the held solution's own marks */
.seg { display: inline-flex; flex-wrap: wrap; max-width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.seg a { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: 0 .8rem; color: var(--dim); text-decoration: none; font-weight: 600; font-size: .9rem;
  white-space: nowrap; box-shadow: inset -1px 0 var(--line); }
.seg a:hover { color: var(--ink); }
.seg a.on { background: var(--accent-soft); color: var(--accent); }
.seg .count { font-weight: 500; font-variant-numeric: tabular-nums; }
.filters .seg { justify-self: start; }
.sv-shown { background: var(--ok); } .sv-held { background: var(--warn); } .sv-hidden { background: var(--b-none); }
.held-head { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .75rem; }
.held-head .uid { overflow-wrap: anywhere; }
.held-why { display: flex; align-items: center; gap: .5rem; margin: .6rem 0; }
.held-why .icon { width: 1.25rem; height: 1.25rem; flex: none; }
.ropts li.theirs { border-color: var(--warn); background: var(--warn-soft); }
.tag.hold { color: var(--warn); border-color: var(--warn); background: var(--warn-soft); }
.sol-text { overflow-x: auto; }
.decide { border-top: 1px solid var(--line); padding-top: .8rem; margin-bottom: 0; }
@media (min-width: 720px) { .seg a { min-height: 38px; } }
.insights { list-style: none; padding: 0; margin: 0 0 .5rem; }
.insights li { display: grid; gap: .1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.insights li:last-child { border-bottom: 0; }
.insights li span { color: var(--dim); font-size: .92rem; }

/* Progress: one small trend line per subject, and a strip of the tests */
.trend-row { display: grid !important; grid-template-columns: 14px minmax(6.6rem, 1fr) minmax(40px, 120px) 2.9rem 3.1rem; align-items: center; gap: .5rem; }
.trend-row .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trend-row.total .name { font-weight: 700; }
.trend-row .pct { text-align: right; font-weight: 700; }
.trend-row .delta { justify-content: flex-end; font-size: .82rem; }
.spark { display: block; overflow: visible; width: 100%; max-width: 120px; height: auto; }
.spark polyline { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.spark.strong polyline { stroke-width: 2.6; }
.spark .mk { fill: currentColor; stroke: var(--panel); stroke-width: 1.5; }
.spark-cell:empty { display: none; }
.test-strip { display: flex; gap: .5rem; overflow-x: auto; padding: .1rem .1rem .4rem; margin: .25rem -.1rem .5rem; scrollbar-width: thin; }
.test-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; min-width: 64px; min-height: 48px; padding: .25rem .6rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); color: var(--ink); text-decoration: none; font-size: .8rem; line-height: 1.25; }
.test-chip span:last-child { color: var(--dim); font-weight: 600; }
.test-chip:hover { border-color: var(--accent); }
.test-chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.test-chip.on span:last-child { color: var(--accent); }
.picked-head { margin: 0 0 .25rem; }
.rows.bars li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) 3rem; gap: .6rem; }
.rows.bars .num { text-align: right; }
.rows.bars + .btn { margin-top: .75rem; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1rem; padding: 0; margin: .5rem 0 0; font-size: .875rem; color: var(--dim); }

/* Appearance: the person's look (the themes themselves are in /look.css, made from shell/web/themes/) */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .6rem; }
.swatch { position: relative; display: grid; gap: .3rem; padding: .7rem .8rem; min-height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-card); background: var(--panel); cursor: pointer; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.swatch:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.swatch-name { font-weight: 700; }
.chips-row { display: flex; gap: 4px; }
.chips-row i { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line); display: block; }
.options { display: grid; gap: .3rem; }
.options.inline { grid-auto-flow: column; justify-content: start; gap: .5rem 1rem; }
.option-row { display: flex; align-items: center; gap: .6rem; min-height: 44px; cursor: pointer; }
.option-row input { width: 1.2rem; height: 1.2rem; accent-color: var(--accent); flex: none; }
.sticky-save { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); background: var(--bg); padding: .5rem 0; }
/* The 76 px keep the bar above the bottom tabs. From 1024 px the tabs are a rail at the side, and the bar hung 76 px above the window's edge,
   across the Motion choices (browser test 1, Gemini F-11). The page is short there, so the bar takes its place under the cards. */
@media (min-width: 1024px) { .sticky-save { position: static; } }
.iconbtn.on { border-color: var(--accent); color: var(--accent); }

/* spacing: compact makes the type, and every rem with it, a step smaller; tap targets keep their 44 px */
:root[data-density="compact"] { font-size: 93.75%; }
:root[data-density="compact"] .card, :root[data-density="compact"] .panel { padding: .8rem .9rem; }
:root[data-density="compact"] .wrap > * + *, :root[data-density="compact"] .col > * + *, :root[data-density="compact"] .tabpanel > * + * { margin-top: .75rem; }

/* motion: bars grow and scores count up (site.js), unless the person or their device asks for less */
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-motion="reduced"]) .bar .fill, :root:not([data-motion="reduced"]) .stack span { transform-origin: left; animation: grow-x .7s cubic-bezier(.2, .7, .2, 1) both; }
  :root:not([data-motion="reduced"]) .recent-bar .fill { transform-origin: bottom; animation: grow-y .6s cubic-bezier(.2, .7, .2, 1) both; }
  :root:not([data-motion="reduced"]) .tabpanel:not([hidden]), :root:not([data-motion="reduced"]) .wrap > .card { animation: rise .25s ease-out both; }
}
:root[data-motion="full"] .bar .fill, :root[data-motion="full"] .stack span { transform-origin: left; animation: grow-x .7s cubic-bezier(.2, .7, .2, 1) both; }
:root[data-motion="full"] .recent-bar .fill { transform-origin: bottom; animation: grow-y .6s cubic-bezier(.2, .7, .2, 1) both; }
:root[data-motion="full"] .tabpanel:not([hidden]), :root[data-motion="full"] .wrap > .card { animation: rise .25s ease-out both; }

/* the palette symbols, shared with the instructions page (the exam room has its own copy in exam.css) */
.legend-sym { list-style: none; padding: 0; margin: .5rem 0; display: grid; gap: .45rem; }
.legend-sym li { display: flex; align-items: center; gap: .6rem; }
.sym { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; flex: none; font-size: .85rem; font-weight: 700; color: #fff; position: relative; }
.sym.nv { background: var(--nv); color: #222; border: 1px solid var(--nv-edge); border-radius: 5px; }
.sym.na { background: var(--na); clip-path: polygon(0 0, 100% 0, 100% 68%, 50% 100%, 0 68%); }
.sym.an { background: var(--an); clip-path: polygon(50% 0, 100% 32%, 100% 100%, 0 100%, 0 32%); }
.sym.mk { background: var(--mk); border-radius: 50%; }
.sym.am { background: var(--mk); border-radius: 50%; }
.sym.am::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: .8rem; height: .8rem; border-radius: 50%; background: var(--an); border: 2px solid var(--panel); }
.declaration { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }

@media (min-width: 720px) {
  h1 { font-size: 1.7rem; }
  .hero h1 { font-size: 2.3rem; }
  .wrap { padding: 1.5rem 1.5rem 3rem; }
  .top { flex-wrap: nowrap; padding: .45rem 1.5rem; gap: .9rem; }
  .switcher { order: 0; flex-basis: auto; max-width: 22rem; }
  .sheet { right: auto; width: 21rem; }
  .cards3 { grid-template-columns: repeat(3, 1fr); }
  .two, .people { grid-template-columns: 1fr 1fr; }
  .row2 { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); align-items: end; }
  .startrow { grid-template-columns: 1fr auto; align-items: center; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot { flex-direction: row; justify-content: center; gap: 1rem; }
  .card, .panel { padding: 1.15rem 1.3rem; }
  .list-card { padding: .35rem 1.3rem; }
}
@media (min-width: 960px) {
  .grid2 { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .grid2.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (min-width: 1024px) {
  .top { height: 62px; }
  body.has-nav { padding-bottom: 0; padding-left: 92px; }
  body.has-nav .top { margin-left: -92px; padding-left: calc(92px + 1.5rem); }
  .appnav { top: 62px; right: auto; bottom: 0; width: 92px; grid-auto-flow: row; grid-auto-rows: max-content; align-content: start; gap: .35rem; padding: .75rem .5rem;
    border-top: 0; border-right: 1px solid var(--line); }
  .appnav a { min-height: 64px; border-radius: 10px; }
  .appnav a.on { background: var(--accent-soft); }
  .appnav a.on .icon { background: none; padding: 0; width: 1.4rem; height: 1.4rem; }
}

/* the operator's Papers screen: statistics by exam, and how many papers each student may sit */
.tiles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 1rem; }
@media (min-width: 760px) { .tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
table.papers-table th.r, table.papers-table td.r { text-align: right; }
table.papers-table td { vertical-align: middle; }  /* the exam's name is a 44 px link (a.lone): the figures of its row stand level with it */
table.papers-table td .bar { margin-top: .25rem; min-width: 6rem; }
.bar.accent { color: var(--accent); }
.detail-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.detail-grid h3 { font-size: .95rem; margin: 0 0 .5rem; }
.daybars { display: flex; align-items: flex-end; gap: 2px; height: 5.5rem; padding: 0 0 1px; border-bottom: 1px solid var(--line-strong); }
.daybars span { flex: 1 1 0; min-width: 2px; max-width: 1.25rem; height: max(2px, var(--h, 0%)); background: var(--accent); border-radius: 2px 2px 0 0; }
.daybars.spread span { background: var(--dim); max-width: none; }
.allow-all, .paper-filters, .change form { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.allow-all { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .75rem; }
.allow-all input[type=number], .change input[type=number] { width: 5rem; }
.allow-all input[type=text], .change input[type=text] { flex: 1 1 12rem; min-width: 0; }
.paper-filters { margin: 1rem 0 .25rem; }
.paper-filters input[type=search] { flex: 1 1 12rem; min-width: 0; }
.paper-rows li { justify-content: flex-start; }
.paper-rows .who { flex: 1 1 16rem; min-width: 0; display: grid; }
.paper-rows .who span { overflow-wrap: anywhere; }
.paper-rows .school { flex: 0 1 12rem; }
.paper-rows .allowed { flex: 0 0 auto; }
.paper-rows .counts { flex: 0 0 auto; }
.paper-rows li.off b { color: var(--dim); }
/* A choice of two or three, as one control: radio buttons drawn as the segments (the papers-allowed forms; static/papers.js). */
.choice { position: relative; display: inline-flex; flex-wrap: wrap; max-width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.choice input[type=radio] { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.allow-all .choice label, .change .choice label, .choice label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem; color: var(--dim); font-weight: 600; font-size: .9rem; cursor: pointer; border-left: 1px solid var(--line-strong); gap: 0; }
.choice label:first-of-type { border-left: 0; }
.choice label:hover { color: var(--ink); }
.choice input[type=radio]:checked + label { background: var(--accent-soft); color: var(--accent); }
.choice input[type=radio]:focus-visible + label { outline: 2px solid var(--accent); outline-offset: -2px; }
.allow-all input[type=number]:disabled, .change input[type=number]:disabled { background: var(--panel-2); border-color: var(--line); color: var(--faint); cursor: not-allowed; }
.paper-rows .chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; flex: 1 1 14rem; min-width: 0; }
.paper-rows .exam-chip { font-weight: 500; white-space: normal; }
details.change form.allow-panel { display: grid; gap: 0; }
.allow-line { display: grid; grid-template-columns: minmax(0, 1fr) auto 5rem; align-items: center; gap: .5rem .75rem; padding: .55rem 0; border-top: 1px solid var(--line); }
.allow-line:first-of-type { border-top: 0; padding-top: 0; }
.allow-line .what { display: grid; min-width: 0; }
.allow-save { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; padding-top: .6rem; border-top: 1px solid var(--line); }
details.drop-all { margin: 0 0 1rem; }
details.drop-all form { display: grid; gap: .6rem; }
details.drop-all form p { margin: 0; }
@media (max-width: 640px) {
  .allow-line { grid-template-columns: minmax(0, 1fr); }
  .paper-rows .chips { justify-content: flex-start; }
  /* On a phone the choice stays one row across the line: the short segments keep their words whole, and the last one, which names a number
     ("Everyone's (no limit)"), takes the rest and wraps inside itself. */
  .choice { display: flex; flex-wrap: nowrap; width: 100%; }
  .choice label, .allow-all .choice label, .change .choice label { flex: 0 0 auto; padding: .3rem .6rem; font-size: .85rem; justify-content: center; text-align: center; line-height: 1.2; white-space: nowrap; }
  .choice label:last-of-type, .allow-all .choice label:last-of-type, .change .choice label:last-of-type { flex: 1 1 0; min-width: 0; white-space: normal; }
}
@media (min-width: 720px) { .choice label, .allow-all .choice label, .change .choice label { min-height: 38px; } }
details.change { display: block; margin-left: auto; }
details.change > summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; padding: 0 .7rem; border: 1px solid var(--line-strong); border-radius: var(--radius); font-weight: 600; font-size: .9rem; list-style: none; }
details.change > summary::-webkit-details-marker { display: none; }
details.change[open] { flex: 1 1 100%; margin-left: 0; }
details.change[open] > summary { margin-bottom: .5rem; }
details.change form { background: var(--sel, var(--panel-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .75rem; }
.pager { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin: .5rem 0 0; }
.allow-all input[type=number], .allow-all input[type=text], .paper-filters input[type=search], .paper-filters select, .change input[type=number],
.change input[type=text], .change select { min-height: 44px; padding: .45rem .6rem; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--panel); color: var(--ink); font: inherit; }
.allow-all label, .change label, .paper-filters label.check { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.paper-filters label.check { min-height: 44px; }  /* "At their limit" was 27 px high, found when the phone audit first ran on this page (Gemini F-17) */
.allow-all input[type=checkbox], .paper-filters input[type=checkbox] { width: 1.3rem; height: 1.3rem; flex: none; accent-color: var(--accent); }

/* Paper mix (the operator's): a share slider a subject, with what a section would hold beside it */
.mix-row { display: grid; grid-template-columns: 9rem minmax(0, 1fr) 3.4rem; gap: .25rem .75rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.mix-row:last-child { border-bottom: 0; }
.mix-row label { font-weight: 600; }
.mix-row input[type=range] { width: 100%; min-height: 32px; accent-color: var(--accent); }
.mix-row output { text-align: right; font-weight: 700; }
.mix-row .mix-bar, .mix-row .holds { grid-column: 2 / 4; }
.mix-bar { display: block; height: 10px; border-radius: 4px; background: var(--line-strong); overflow: hidden; }
.mix-bar .bank { display: block; height: 100%; width: var(--w, 0%); background: var(--accent); }
.legend .sw { display: inline-block; width: .7rem; height: .7rem; border-radius: 2px; margin: 0 .3rem 0 .8rem; vertical-align: -1px; }
.legend .sw.own { background: var(--line-strong); }
.legend .sw.bank { background: var(--accent); }
.supply { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; border: 0; padding: 0; margin: 0 0 .75rem; }
.supply legend { float: left; margin-right: 1rem; padding: 0; font-weight: 600; }
.supply label { display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; }
.supply input[type=checkbox] { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); }
.mix-form select, .mix-form input[type=number], .mix-form input[type=text] { min-height: 36px; padding: .35rem .5rem; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--panel); color: var(--ink); font: inherit; }
.mix-form input[type=number] { width: 4.5rem; text-align: right; }
.mix-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.mix-actions input[type=text] { flex: 1 1 16rem; }
.mix-undo { display: flex; flex-wrap: wrap; gap: .5rem; }
.mix-undo form { margin: 0; }
.signal { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem .75rem; align-items: start; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.signal:last-child { border-bottom: 0; }
.signal p { margin: .15rem 0 0; }
.readout { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .75rem; }
.readout > div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: .55rem .75rem; }
.readout .pair { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 2.8rem; gap: .4rem; align-items: center; margin-top: .3rem; }
.readout .pair .bar.bank { color: var(--accent); }
.readout .pair .bar.own { color: var(--dim); }
@media (max-width: 560px) {
  .mix-row { grid-template-columns: minmax(0, 1fr) 3.4rem; }
  .mix-row label, .mix-row .mix-bar, .mix-row .holds { grid-column: 1 / 3; }
  .signal { grid-template-columns: minmax(0, 1fr); }
}
