@font-face {
  font-family: 'Oswald';
  src: url('fonts/oswald-var.woff2') format('woff2');
  font-weight: 500 700;
  font-display: swap;
}

:root {
  --bg: #f6f7f2;
  --surface: #ffffff;
  --ink: #16211b;
  --muted: #4b5850;
  --line: #cdd5ca;
  --rule: #e3e8df;
  --board: #133a29;
  --board-2: #1b4b36;
  --board-ink: #f3f0e2;
  --board-dim: #b5cbbd;
  --ball: #b1232b;
  --ball-ink: #ffffff;
  --accent: #1d5a3f;
  --accent-ink: #ffffff;
  --chip: #eef2ea;
  --warn-bg: #fff4d6;
  --warn-ink: #5a3c00;
  --focus: #d08a00;
  --r: 6px;
  --display: 'Oswald', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1a14;
    --surface: #16241c;
    --ink: #e8eee8;
    --muted: #a9b8ad;
    --line: #34473b;
    --rule: #22342a;
    --board: #08200f;
    --board-2: #123322;
    --board-ink: #f3f0e2;
    --board-dim: #9fbcaa;
    --ball: #e0545b;
    --ball-ink: #1a0607;
    --accent: #6fcf9a;
    --accent-ink: #0b1f14;
    --chip: #1f3127;
    --warn-bg: #3b2f10;
    --warn-ink: #ffe3a3;
    --focus: #ffc24d;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--body);
}
a { color: var(--accent); text-underline-offset: 2px; }
@media (prefers-color-scheme: light) { a { color: #17603f; } }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- top bar */
.topbar { border-bottom: 1px solid var(--line); background: var(--surface); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font: 600 21px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.logo { width: 30px; height: 30px; color: var(--ink); }
.topbar nav { display: flex; gap: 4px; }
.topbar nav a { color: var(--ink); text-decoration: none; padding: 10px 10px; border-radius: var(--r); font-weight: 600; }
.topbar nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--ball); border-radius: 0; }
.crumbs { margin: 14px 0 0; font-size: 15px; color: var(--muted); }

/* ---------- hero */
.hero { padding: 20px 0 6px; border-left: 4px solid var(--ball); padding-left: 14px; margin: 12px 0 14px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; letter-spacing: .005em; }
h1 { font-size: clamp(30px, 6vw, 44px); margin: 0 0 8px; }
.lede { margin: 0; max-width: 62ch; color: var(--muted); font-size: 17px; }

/* ---------- tool */
.tool { margin: 0 0 32px; }
.note { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--r); background: var(--chip); }
.note.warn { background: var(--warn-bg); color: var(--warn-ink); }
.banner { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 0 0 12px; padding: 12px; border-radius: var(--r); background: var(--warn-bg); color: var(--warn-ink); }
.banner p { margin: 0; flex: 1 1 260px; }

.board {
  background: var(--board);
  color: var(--board-ink);
  border-radius: var(--r);
  padding: 14px 16px 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  background-image: repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,.035) 39px 40px);
}
.board .team { font: 500 15px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--board-dim); grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; }
.board .score { font: 700 64px/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.board .overs { text-align: right; align-self: end; font: 600 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.board .overs small { display: block; font: 500 13px/1.3 var(--body); color: var(--board-dim); letter-spacing: 0; }
.board .detail { grid-column: 1 / -1; color: var(--board-dim); font-size: 15px; }
.board .detail b { color: var(--board-ink); font-weight: 600; }
.board .other { grid-column: 1 / -1; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.14); font-size: 15px; color: var(--board-ink); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.board .other .need { color: #ffd98a; font-weight: 600; }

.batters { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 10px 0 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.batters .pairname { grid-column: 1 / -1; padding: 6px 12px; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; }
.bat { padding: 8px 12px; min-width: 0; }
.bat + .bat { border-left: 1px solid var(--line); }
.bat .nm { font-weight: 600; overflow-wrap: anywhere; }
.bat .fig { font: 500 22px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.bat .fig small { font: 400 14px var(--body); color: var(--muted); }
.bat.on { background: linear-gradient(var(--chip), var(--chip)); box-shadow: inset 0 3px 0 var(--ball); }
.bat .strike { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ball); margin-left: 6px; }

.bowl-row { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; flex-wrap: wrap; }
.bowl-row label { font-weight: 600; }
.bowl-row select { flex: 1 1 140px; min-width: 0; }
.bowl-fig { font: 500 18px var(--display); font-variant-numeric: tabular-nums; color: var(--muted); }
#bowl-warn { margin: 8px 0 0; }

.this-over { display: flex; flex-wrap: wrap; gap: 6px; min-height: 40px; align-items: center; margin: 10px 0 0; }
.this-over .lbl { font-size: 14px; color: var(--muted); margin-right: 4px; }
.chip {
  min-width: 36px; height: 36px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink);
  font: 600 16px/1 var(--display); font-variant-numeric: tabular-nums;
}
.chip.empty { border-style: dashed; color: transparent; }
.chip.w { background: var(--ball); color: var(--ball-ink); border-color: var(--ball); }
.chip.wd::before { content: '('; }
.chip.wd::after { content: ')'; }
.chip.nb { border: 2px solid var(--ink); }
.chip.b, .chip.lb { font-size: 13px; }
button.chip { cursor: pointer; }
.chip.sel { outline: 3px solid var(--focus); }

.status { min-height: 1.5em; margin: 8px 0 6px; font-size: 15px; color: var(--muted); }
.editing { margin: 0 0 8px; padding: 10px 12px; border-radius: var(--r); background: var(--warn-bg); color: var(--warn-ink); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.editing p { margin: 0; flex: 1 1 200px; }

.pad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pad button, .sub button {
  min-height: 62px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 600 28px/1 var(--display); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  touch-action: manipulation;
}
.pad button small { font: 400 12px var(--body); color: var(--muted); }
.pad button.bnd { background: var(--board-2); color: var(--board-ink); border-color: var(--board-2); }
.pad button.ext { font-size: 19px; background: var(--chip); }
.pad button.out { background: var(--ball); color: var(--ball-ink); border-color: var(--ball); font-size: 22px; }
.pad button.undo { font-size: 19px; background: transparent; }
.pad button:active, .sub button:active { transform: translateY(1px); }
.pad button:disabled { opacity: .45; cursor: default; }
.pad button.on { outline: 3px solid var(--focus); }
.sub { margin: 10px 0 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.sub p { margin: 0 0 8px; font-weight: 600; }
.sub .row { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.sub button { min-height: 52px; font-size: 20px; }
.sub button.txt { font: 600 16px var(--body); padding: 4px 6px; }
.sub .row:has(.txt) { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.sub .row + p { margin-top: 12px; }
.sub button.picked { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.live-more { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; margin: 12px 0 0; }
.linkish { background: none; border: 0; padding: 10px 0; color: var(--accent); font: 600 16px var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }
@media (prefers-color-scheme: light) { .linkish { color: #17603f; } }
.check { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; font-size: 16px; }
.check input { width: 20px; height: 20px; }
.over-sum { margin: 8px 0 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.over-sum p { margin: 0 0 8px; }
.over-sum .row { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.over-sum .field { width: 110px; }

.next { margin: 14px 0 0; padding: 16px; border-radius: var(--r); background: var(--surface); border: 2px solid var(--accent); }
.next h2 { margin: 0 0 6px; font-size: 26px; }
.next p { margin: 0 0 12px; }
.result-line { font: 600 28px/1.2 var(--display); margin: 0 0 6px; }

/* ---------- forms */
.setup-wrap { margin: 18px 0 0; border-top: 1px solid var(--line); }
.setup-wrap > summary { cursor: pointer; padding: 14px 0; font: 600 22px var(--display); list-style-position: inside; }
.setup-wrap[open] > summary { padding-bottom: 6px; }
.tool.fresh .setup-wrap { border-top: 0; margin-top: 0; }
.tool.fresh .setup-wrap > summary { display: none; }
.setup { padding: 0 0 8px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label { font-weight: 600; font-size: 15px; }
.field.wide { max-width: 520px; }
input, select { font: inherit; font-size: 17px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 10px; min-height: 46px; width: 100%; min-width: 0; }
input[type=checkbox] { width: auto; min-height: 0; accent-color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 12px 0 0; align-items: end; }
.fmt-note { margin: 8px 0 0; font-size: 15px; color: var(--muted); max-width: 70ch; }
.more { margin: 14px 0 0; }
.more > summary { cursor: pointer; font-weight: 600; padding: 8px 0; min-height: 44px; display: flex; align-items: center; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: '+'; display: inline-block; width: 1.2em; font-weight: 700; color: var(--ball); }
.more[open] > summary::before { content: '\2212'; }
.hint { font-size: 15px; color: var(--muted); margin: 6px 0; }
.names { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.names h3 { margin: 4px 0 6px; font-size: 18px; }
.names ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; counter-reset: n; }
.names li { display: grid; grid-template-columns: 2.2em 1fr; align-items: center; counter-increment: n; }
.names li::before { content: counter(n); color: var(--muted); font: 500 16px var(--display); text-align: right; padding-right: 8px; }
.names li.pairstart { margin-top: 6px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.btn { min-height: 48px; padding: 10px 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 17px var(--body); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.danger { background: var(--ball); color: var(--ball-ink); border-color: var(--ball); }

.confirm { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(440px, calc(100% - 32px)); z-index: 20; padding: 16px; border-radius: var(--r); background: var(--surface); border: 2px solid var(--ink); box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.confirm p { margin: 0; font-weight: 600; }
.confirm .actions { margin-top: 12px; }
.toast { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); z-index: 19; padding: 10px 12px 10px 16px; border-radius: var(--r); background: var(--ink); color: var(--bg); display: flex; gap: 12px; align-items: center; }
.toast button { background: none; border: 1px solid currentColor; color: inherit; border-radius: var(--r); padding: 6px 12px; min-height: 40px; font: 600 15px var(--body); cursor: pointer; }

/* ---------- scorecard */
.card { margin: 22px 0 0; }
.card h2 { font-size: 26px; margin: 0 0 8px; }
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--line); margin: 0 0 12px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 10px 14px; min-height: 46px; font: 600 17px var(--body); color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--ball); }
.sumline { margin: 0 0 12px; font-size: 16px; }
.sumline b { font: 600 20px var(--display); }
.table-wrap { overflow-x: auto; margin: 8px 0 16px; position: relative; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { font-size: 14px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); }
td.n, th.n { text-align: right; }
caption { text-align: left; font-weight: 600; padding: 0 0 6px; }
.card h3 { font-size: 20px; margin: 18px 0 4px; }
.overs-list { list-style: none; margin: 0; padding: 0; }
.overs-list li { display: grid; grid-template-columns: 4.6em 1fr auto; gap: 4px 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.overs-list .on { font: 600 17px var(--display); }
.overs-list .on small { display: block; font: 400 13px var(--body); color: var(--muted); }
.overs-list .bw { grid-column: 2 / 3; font-size: 14px; color: var(--muted); }
.overs-list .bls { display: flex; flex-wrap: wrap; gap: 4px; grid-column: 2 / 3; }
.overs-list .bls .chip { min-width: 32px; height: 32px; font-size: 15px; }
.overs-list .tot { grid-row: 1 / span 2; grid-column: 3; text-align: right; font: 600 20px var(--display); font-variant-numeric: tabular-nums; }
.overs-list .tot small { display: block; font: 400 13px var(--body); color: var(--muted); }
.formula { font-size: 16px; padding: 10px 12px; background: var(--chip); border-radius: var(--r); }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }

/* ---------- content */
.prose { max-width: 75ch; margin: 30px 0; }
.prose h2 { font-size: 28px; margin: 34px 0 10px; }
.prose p { margin: 0 0 14px; }
.prose .table-wrap { max-width: none; }
table.fmt { font-size: 15px; }
@media (max-width: 700px) {
  table.fmt, table.fmt tbody, table.fmt tr, table.fmt th, table.fmt td { display: block; }
  table.fmt thead { display: none; }
  table.fmt caption { display: block; }
  table.fmt tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.fmt th[scope=row] { border: 0; padding: 0 0 4px; font-size: 16px; }
  table.fmt td { border: 0; padding: 1px 0; display: grid; grid-template-columns: 9.5em 1fr; gap: 8px; }
  table.fmt td::before { content: attr(data-l); color: var(--muted); }
}
table.fmt th[scope=row] { font-weight: 600; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 600; min-height: 44px; }
.faq p { margin: 0 0 14px; }

footer { margin-top: 40px; border-top: 1px solid var(--line); padding: 20px 0 30px; font-size: 15px; color: var(--muted); }
footer a { color: inherit; }

@media (min-width: 760px) {
  .live-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .pad button { min-height: 68px; }
  .board .score { font-size: 78px; }
}
@media (min-width: 900px) {
  #live { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; align-items: start; }
  #live .status { margin-top: 0; }
  #live > .next { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
  .pad { gap: 6px; }
  .pad button { min-height: 58px; font-size: 25px; }
  .pad button.ext, .pad button.undo { font-size: 16px; }
  .board .score { font-size: 54px; }
  .names { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- print: only the score sheet */
.print-root { display: none; }
@media print {
  @page { margin: 11mm 10mm; }
  body { background: #fff; color: #000; font-size: 10pt; }
  body > *:not(.print-root) { display: none !important; }
  .print-root { display: block !important; }
}
.sheet { color: #000; background: #fff; font: 9.5pt/1.3 Arial, Helvetica, sans-serif; margin-right: 1.2mm; }
.sheet + .sheet { break-before: page; }
.sheet .sh-head { display: grid; grid-template-columns: 1fr auto; gap: 2mm 6mm; border-bottom: 1.4pt solid #000; padding-bottom: 2mm; margin-bottom: 2.5mm; }
.sheet h2 { font: 700 15pt/1.1 'Oswald', 'Arial Narrow', Arial, sans-serif; margin: 0; text-transform: uppercase; letter-spacing: .02em; }
.sheet .fmt-line { font-size: 8.5pt; grid-column: 1 / -1; }
.sheet .line { display: inline-block; min-width: 38mm; border-bottom: .6pt solid #000; height: 1.1em; vertical-align: bottom; }
.sheet .line.short { min-width: 22mm; }
.sheet .meta { display: flex; flex-wrap: wrap; gap: 1.5mm 4.5mm; font-size: 9pt; grid-column: 1 / -1; }
.sheet .meta b { font-weight: 700; }
.sheet .final-box { border: 1.4pt solid #000; padding: 1.2mm 3mm; text-align: center; min-width: 34mm; align-self: start; grid-row: 1; grid-column: 2; }
.sheet .final-box span { display: block; font-size: 7.5pt; text-transform: uppercase; letter-spacing: .05em; }
.sheet .final-box b { display: block; font: 700 17pt/1.1 'Oswald', 'Arial Narrow', Arial, sans-serif; min-height: 1.1em; }
.sheet .bands { display: grid; gap: 1.8mm; }
.sheet .bands.cols-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sheet .band { border: 1pt solid #000; break-inside: avoid; }
.sheet .band-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5mm 3mm; padding: .8mm 2mm; border-bottom: .6pt solid #000; background: #eef0ec; font-size: 9pt; }
.sheet .band-h .ovn { font-size: 8pt; }
.sheet .band-h .pt { font-size: 8.5pt; white-space: nowrap; }
.sheet .band-h .bx { display: inline-block; min-width: 9mm; border-bottom: .5pt solid #000; text-align: center; font-weight: 700; margin-right: 1.5mm; background: #fff; }
.sheet .band-h b { font-weight: 700; }
.sheet .band-h .bn { flex: 1; }
.sheet .band-h .bn .line { min-width: 30mm; }
.sheet .overs { display: grid; }
.sheet .ov { border-right: .6pt solid #000; min-width: 0; }
.sheet .ov:last-child { border-right: 0; }
.sheet .ov-h { display: flex; justify-content: space-between; font-size: 8pt; padding: .5mm 1.5mm; border-bottom: .4pt solid #777; gap: 2mm; }
.sheet .ov-h .bw { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border-bottom: .4pt dotted #555; min-height: 1.1em; }
.sheet .cells { display: grid; grid-auto-flow: row; grid-auto-rows: 5.1mm; }
.sheet .cell { border-right: .4pt solid #999; border-bottom: .4pt solid #999; display: flex; align-items: center; justify-content: center; font: 600 10.5pt/1 Arial, sans-serif; }
.sheet .cell.spare { background: #f3f3f3; }
.sheet .cell .m { display: inline-flex; align-items: center; justify-content: center; min-width: 4.6mm; height: 4.6mm; }
.sheet .cell .m.nb { border: .8pt solid #000; border-radius: 50%; font-size: 8.5pt; }
.sheet .cell .m.wd::before { content: '('; }
.sheet .cell .m.wd::after { content: ')'; }
.sheet .cell .m.b, .sheet .cell .m.lb { font-size: 8pt; }
.sheet .ov-f { display: grid; grid-template-columns: 1fr 1fr 1.3fr; font-size: 7.5pt; }
.sheet .ov-f > div { padding: .4mm 1.2mm; border-right: .4pt solid #999; display: flex; justify-content: space-between; gap: 1mm; align-items: baseline; }
.sheet .ov-f > div:last-child { border-right: 0; }
.sheet .ov-f b { font-size: 10pt; }
.sheet .pair-f { display: flex; justify-content: flex-end; gap: 6mm; padding: .6mm 2mm; border-top: .6pt solid #000; font-size: 8.5pt; }
.sheet .pair-f .bx { display: inline-block; min-width: 10mm; border-bottom: .5pt solid #000; text-align: center; font-weight: 700; }
.sheet .lower { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.5mm 4mm; margin-top: 2.5mm; break-inside: avoid; }
.sheet table { width: 100%; border-collapse: collapse; font-size: 8.5pt; }
.sheet th, .sheet td { border: .5pt solid #000; padding: .3mm 1.4mm; height: 4.4mm; color: #000; }
.sheet th { background: #eef0ec; font-weight: 700; text-align: left; }
.sheet td.n, .sheet th.n { text-align: right; width: 11mm; }
.sheet .sum td:first-child { width: auto; }
.sheet .bowl td.n, .sheet .bowl th.n { width: 8mm; padding: .4mm 1mm; }
.sheet .bowl td:first-child { font-size: 8pt; line-height: 1.15; }
.sheet .bowl td:nth-child(2), .sheet .bowl th:nth-child(2) { width: 17mm; font-size: 8pt; }
.sheet .bowl th { font-size: 8pt; white-space: nowrap; }
.sheet .sum tr.tot td { font-weight: 700; font-size: 10pt; }
.sheet .key { font-size: 7.5pt; margin-top: 2mm; color: #222; }
.sheet .result { margin-top: 2.5mm; border: 1.2pt solid #000; padding: 1.5mm 2.5mm; font-size: 9pt; break-inside: avoid; }
.sheet .result b { font-size: 10pt; }
.sheet .src { color: #333; }
.sheet .cols-2 .band-h .bn .line { min-width: 22mm; }
.sheet .cols-2 .band-h { font-size: 8.5pt; }
.sheet .cols-2 .band-h { display: block; }
.sheet .cols-2 .band-h .bn, .sheet .cols-2 .band-h .pt { display: block; }
.sheet .low-h { grid-column: 1 / -1; margin: 0; font-size: 8.5pt; font-weight: 700; }
