@font-face {
  font-family: 'Rajdhani';
  src: url('fonts/rajdhani-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
:root {
  --bg: #f7f3ec;
  --surface: #fffdf9;
  --ink: #1b1813;
  --muted: #4d463d;
  --line: #d6ccbc;
  --a: #1d4f91;
  --a-soft: #e2ebf7;
  --b: #a33118;
  --b-soft: #f7e3dc;
  --on-team: #ffffff;
  --primary: #1b1813;
  --on-primary: #ffffff;
  --board: #17212c;
  --board-ink: #ffffff;
  --board-muted: #c9d2dc;
  --dod: #9a4a00;
  --ok: #1f6b3a;
  --err: #a1201d;
  --r: 10px;
  --head: 'Rajdhani', 'Arial Narrow', system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121417;
    --surface: #1b1f25;
    --ink: #eef0f3;
    --muted: #b9bec6;
    --line: #3a414b;
    --a: #8db8ff;
    --a-soft: #1c2b42;
    --b: #ff9f86;
    --b-soft: #3b211a;
    --on-team: #111316;
    --primary: #eef0f3;
    --on-primary: #121417;
    --board: #0b0e12;
    --board-ink: #ffffff;
    --board-muted: #c3cbd5;
    --dod: #ffb066;
    --ok: #7fd49b;
    --err: #ff8f86;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
a { color: var(--a); text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.1; letter-spacing: 0.01em; }
h1 { font-size: 2.6rem; margin: 22px 0 6px; }
h2 { font-size: 1.75rem; margin: 0 0 10px; }
h3 { font-size: 1.3rem; margin: 0 0 8px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--primary); color: var(--on-primary); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--a); outline-offset: 2px; }
.hero .lede { max-width: 62ch; margin: 0 0 6px; font-size: 1.06rem; }
.rulesline { margin: 0 0 18px; color: var(--muted); }
.linkish { background: none; border: 0; padding: 4px 0; font: inherit; color: var(--a); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; min-height: 44px; }

/* buttons */
.btn {
  font: 600 1rem/1.2 system-ui, sans-serif; min-height: 48px; padding: 10px 16px; border-radius: var(--r);
  border: 2px solid var(--ink); background: var(--surface); color: var(--ink); cursor: pointer;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn.ghost { border-color: var(--line); }
.btn.ghost.on { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.btn.big { font-size: 1.15rem; min-height: 56px; width: 100%; }
.btn.small { min-height: 44px; padding: 6px 12px; font-size: 1rem; }
.btn.t0 { border-color: var(--a); color: var(--a); }
.btn.t1 { border-color: var(--b); color: var(--b); }

.note { background: var(--b-soft); border: 1px solid var(--b); padding: 10px 14px; border-radius: var(--r); margin: 0 0 12px; }
.banner { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r); padding: 12px 14px; margin: 0 0 14px; }
.banner p { margin: 0 0 8px; }
.banner input { width: 100%; font: inherit; padding: 10px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 8px; background: var(--bg); color: var(--ink); }
.bb { display: flex; flex-wrap: wrap; gap: 8px; }

/* setup */
.setup { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 16px; }
.setup > summary { cursor: pointer; padding: 14px 16px; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-height: 52px; }
.setup > summary::-webkit-details-marker { display: none; }
.setup > summary::before { content: '+'; font: 700 1.3rem var(--head); width: 1em; }
.setup[open] > summary::before { content: '\2212'; }
.sum-h { font: 700 1.35rem var(--head); }
.sum-sub { color: var(--muted); }
#setup { padding: 0 16px 16px; }
label { display: block; font-weight: 600; }
input, select { font: 400 17px/1.3 system-ui, sans-serif; color: var(--ink); background: var(--bg); border: 1px solid var(--muted); border-radius: 6px; padding: 9px 10px; min-height: 46px; width: 100%; margin-top: 4px; }
input[type=checkbox] { width: 26px; height: 26px; min-height: 0; margin: 0; accent-color: var(--ink); }
input:disabled, select:disabled { opacity: 0.6; }
.teams-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.teams-row .t0 { color: var(--a); }
.teams-row .t1 { color: var(--b); }
.teams-row input { color: var(--ink); }
.squad-tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 8px; }
.sq-tab { flex: 1; min-height: 48px; font: 700 1.05rem var(--head); background: none; border: 0; border-bottom: 4px solid transparent; color: var(--muted); cursor: pointer; padding: 6px 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sq-tab.t0.on { color: var(--a); border-color: var(--a); }
.sq-tab.t1.on { color: var(--b); border-color: var(--b); }
table.squad { width: 100%; border-collapse: collapse; }
.squad th { text-align: left; font-size: 1rem; color: var(--muted); padding: 2px 4px; }
.squad td { padding: 3px 4px; }
.squad td.c, .squad th:first-child { text-align: center; width: 64px; }
.squad .no { width: 4.2em; text-align: center; }
.squad input { margin: 0; }
.row-btns { display: flex; gap: 8px; margin: 8px 0 14px; flex-wrap: wrap; }
.copysq { display: block; margin: 0 0 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 12px; }
.more { margin: 4px 0 12px; }
.more > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--a); }
.problems { margin: 0 0 12px; padding-left: 1.2em; color: var(--err); }
.problems:empty { display: none; }

/* live */
.board {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
  background: var(--board); color: var(--board-ink); border-radius: var(--r); padding: 12px 14px; margin-bottom: 12px;
}
.board:focus { outline: 3px solid var(--a); }
.board .side { display: flex; flex-direction: column; min-width: 0; border-top: 5px solid; padding-top: 6px; }
.board .side.t0 { border-color: #6fa3ff; }
.board .side.t1 { border-color: #ff8a6b; text-align: right; }
.board .tn { font: 700 1.1rem/1.15 var(--head); overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--board-muted); }
.board .pts { font: 700 3.6rem/1 var(--head); font-variant-numeric: tabular-nums; }
.board .mid { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.board .ph { color: var(--board-muted); font-size: 1rem; }
.board .clock { font: 700 2rem/1 var(--head); font-variant-numeric: tabular-nums; }
.board .clock.up { color: #ffb066; }
.board .btn { background: transparent; color: var(--board-ink); border-color: var(--board-muted); }

.mats { display: grid; gap: 10px; margin-bottom: 14px; }
.mat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
.mat h3 { font-size: 1.15rem; display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.mat .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.mat.t0 .dot { background: var(--a); }
.mat.t1 .dot { background: var(--b); }
.mat .cnt { font: 400 1rem system-ui, sans-serif; color: var(--muted); margin-left: auto; }
.onmat { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.pc { font: 700 1.1rem var(--head); padding: 2px 10px; border-radius: 6px; }
.t0 .pc { background: var(--a-soft); color: var(--a); }
.t1 .pc { background: var(--b-soft); color: var(--b); }
.outq, .reds { margin: 0 0 4px; }
.outq .q { font: 700 1.05rem var(--head); }
.lab { color: var(--muted); }
.arr { color: var(--muted); font-size: 1rem; }
.susp { list-style: none; margin: 4px 0; padding: 0; }
.susp li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 2px 0; }
.susp li.due { font-weight: 700; color: var(--dod); }
.dodnote { margin: 4px 0 0; font-weight: 700; color: var(--dod); }
.emptynote { margin: 4px 0 0; color: var(--muted); }
.none { color: var(--muted); }

.raid, .tbset, .tossq, .result { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r); padding: 12px 14px 14px; margin-bottom: 12px; }
.raid.t0 { border-color: var(--a); }
.raid.t1 { border-color: var(--b); }
.raid h3, .tbset h3, .tossq h3 { font-size: 1.45rem; }
.raid h3 { display: flex; gap: 0 8px; align-items: baseline; min-width: 0; }
.raid h3 .tname { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.raid.t0 .tname { color: var(--a); }
.raid.t1 .tname { color: var(--b); }
.badge { display: inline-block; font: 700 1rem system-ui, sans-serif; padding: 2px 8px; border-radius: 5px; vertical-align: middle; }
.badge.dod { background: var(--dod); color: var(--surface); }
fieldset { border: 0; padding: 0; margin: 0 0 10px; min-width: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: 6px; }
/* equal-width player buttons in a grid, so rows do not reflow as players go out and come back */
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.chips > .none { grid-column: 1 / -1; }
.pchip.staff, .selfq .pchip { grid-column: span 2; }
.pchip {
  position: relative; display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center;
  min-height: 52px; padding: 4px 10px; border-radius: var(--r); border: 2px solid; background: var(--surface);
  color: var(--ink); cursor: pointer; font: inherit; text-align: left; min-width: 0;
}
.pchip.t0 { border-color: var(--a); }
.pchip.t1 { border-color: var(--b); }
.pchip.staff { border-color: var(--muted); }
.pchip .no { font: 700 1.3rem/1 var(--head); }
.pchip .nm { font-size: 1rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.pchip .nm:empty { display: none; }
.pchip.on { color: var(--on-team); }
.pchip.t0.on { background: var(--a); }
.pchip.t1.on { background: var(--b); }
.pchip.staff.on { background: var(--ink); color: var(--bg); }
.pchip .ord { position: absolute; top: -9px; right: -9px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 700 1rem/26px system-ui; text-align: center; }
.outcome .toggle { min-height: 52px; min-width: 120px; padding: 8px 18px; border-radius: var(--r); border: 2px solid var(--ink); background: var(--surface); color: var(--ink); font: 700 1.2rem var(--head); cursor: pointer; }
.outcome .toggle.on { background: var(--ink); color: var(--bg); }
.outcome .toggle:disabled { opacity: 0.45; }
.outcome .hint { color: var(--muted); margin-left: 8px; }
.sublab { margin: 10px 0 6px; font-weight: 600; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 12px 0 6px; border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.segb { min-height: 50px; font: 600 1rem system-ui, sans-serif; background: var(--surface); color: var(--ink); border: 0; cursor: pointer; padding: 6px; }
.segb + .segb { border-left: 2px solid var(--ink); }
.segb.on { background: var(--ink); color: var(--bg); }
.segb.t0.on { background: var(--a); color: var(--on-team); }
.segb.t1.on { background: var(--b); color: var(--on-team); }
.techd { margin-top: 8px; }
.techd > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--muted); font-weight: 600; }
.steppers { display: grid; gap: 8px; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stepper b { font: 700 1.4rem var(--head); min-width: 1.6em; text-align: center; }
.stepper.big { margin-top: 12px; font-weight: 600; }
.pvwrap { min-height: calc(2.6 * 1.1rem + 12px); }
.pv { margin: 4px 0 8px; font-size: 1.1rem; line-height: 1.3; }
.pv b { font: 700 1.35rem var(--head); }
.pv .pvl { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.pv .pvn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pv.err { color: var(--err); font-weight: 600; }
.pv.dim { color: var(--muted); }
.pvx { display: block; font-weight: 700; color: var(--dod); }
.warnline { color: var(--dod); font-weight: 600; }
.nextup { font: 700 1.3rem var(--head); }
.undo-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.strip { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr); align-items: center; gap: 10px; min-height: 48px; padding: 4px 16px; background: var(--board); color: var(--board-ink); font: 700 1rem var(--head); }
.strip b { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.strip .sn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--board-muted); }
.strip .sn.t1 { text-align: right; }
.strip .smid { color: var(--board-muted); text-align: center; white-space: nowrap; }
.strip #strip-clock { color: var(--board-ink); font-variant-numeric: tabular-nums; }
.timeup { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: -4px 0 12px; padding: 10px 14px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--surface); }
.timeup p { margin: 0; font-weight: 700; flex: 1 1 14em; }
.selfq .sublab { font-weight: 400; }
.stepper.big span { white-space: normal; }
.last { color: var(--muted); flex: 1 1 12em; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.more-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.panel { background: var(--surface); border: 1px solid var(--ink); border-radius: var(--r); padding: 12px 14px; margin-bottom: 14px; }
.panel .close { margin-top: 12px; }
.panel .why { margin: 10px 0; }
.two-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.cards3 { display: grid; gap: 8px; margin-top: 12px; }
.card-g { border-color: #2e7d32; }
.card-y { border-color: #b8860b; }
.card-r { border-color: #c62828; }
.chk { display: flex; align-items: center; gap: 10px; font-weight: 600; min-height: 44px; }
.result h3 { font-size: 1.7rem; }
.result p { margin: 0; }
.tbset fieldset { margin-top: 10px; }

/* running score on screen */
.sheetview { margin: 18px 0; }
.sv { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.sv > * { min-width: 0; }
.svt h3 { font-size: 1.2rem; }
.svt.t0 h3 { color: var(--a); }
.svt.t1 h3 { color: var(--b); }
.grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.grid .n { position: relative; text-align: center; font: 600 1rem/2.2 system-ui, sans-serif; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-variant-numeric: tabular-nums; }
.grid .n[class*=k-] { color: var(--ink); font-weight: 700; }
.grid .n svg, .nat .n svg { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); fill: none; stroke: currentColor; stroke-width: 1.6; vector-effect: non-scaling-stroke; overflow: visible; }
.grid .n.ht { border-right: 3px solid var(--ink); }
.svt.t0 .grid .n[class*=k-] svg { stroke: var(--a); }
.svt.t1 .grid .n[class*=k-] svg { stroke: var(--b); }
.svt .grid .n.lead svg rect { stroke: var(--ink); }
.tablewrap { overflow-x: auto; margin-top: 8px; }
table.part { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.part th, .part td { border: 1px solid var(--line); padding: 4px 6px; text-align: center; }
.part th[scope=row] { text-align: left; white-space: nowrap; }
.logwrap { margin-top: 14px; }
.logwrap > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font: 700 1.2rem var(--head); }
.log { margin: 0; padding: 0; list-style: none; }
.log li { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.log .sc { font: 700 1.1rem var(--head); min-width: 3.4em; font-variant-numeric: tabular-nums; }
.log li.o { color: var(--muted); }

.finish { margin: 18px 0 28px; }
.print-opts { display: flex; flex-wrap: wrap; gap: 0 18px; }
.finish-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 16px; }
.earlier h3 { font-size: 1.2rem; }
.earlier ul { list-style: none; padding: 0; margin: 0; }
.earlier li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.earlier small { color: var(--muted); font-size: 1rem; }

/* content */
.content { padding-bottom: 32px; }
.content section { margin: 30px 0; max-width: 75ch; }
.content p, .content li { max-width: 70ch; }
table.rules { border-collapse: collapse; width: 100%; margin: 8px 0 12px; }
.rules th, .rules td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
.rules td:last-child { color: var(--muted); }
@media (min-width: 600px) { .rules td:last-child { white-space: nowrap; } }
.keys-demo { max-width: 300px; margin-bottom: 8px; }
.keys-demo .grid .n { line-height: 2.6; font-size: 1.05rem; }
.steps { padding-left: 1.3em; }
.steps li { margin-bottom: 6px; }
.faq h3 { font-size: 1.2rem; margin-top: 18px; }
.source { color: var(--muted); max-width: 75ch; }

/* dialogs and toasts */
.confirm { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); display: grid; place-items: center; padding: 16px; z-index: 40; }
.confirm[hidden] { display: none; }
.confirm-box { background: var(--surface); color: var(--ink); border-radius: var(--r); padding: 18px; max-width: 30em; width: 100%; border: 2px solid var(--ink); }
.confirm-btns { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(92vw, 34em); background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: var(--r); z-index: 45; pointer-events: none; }
.toast[hidden] { display: none; }
.toast.top { top: 56px; bottom: auto; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 18px 0 28px; color: var(--muted); }
.sb-footer p { margin: 6px 0; }
.sb-more { line-height: 1.9; }
.sb-footer a { color: var(--a); }

@media (min-width: 760px) {
  h1 { font-size: 3.1rem; }
  .mats { grid-template-columns: 1fr 1fr; }
  .sv { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .board .pts { font-size: 4.6rem; }
  .btn.big { width: auto; min-width: 16em; }
  .grid2 { grid-template-columns: repeat(3, 1fr); }
  .cards3 { grid-template-columns: repeat(3, 1fr); }
  .steppers { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .live { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 18px; align-items: start; }
  .live > .vh { grid-column: 1 / -1; }
  .live .board { grid-column: 1 / -1; }
  .live .mats { grid-column: 2; grid-row: 2 / span 6; grid-template-columns: 1fr; }
  .live #play, .live .undo-row, .live .timeup, .live .more-actions, .live .panel, .live .wake { grid-column: 1; }
}
@media (max-width: 380px) {
  .teams-row, .grid2 { grid-template-columns: 1fr; }
  .board { padding: 10px; gap: 4px; }
  .board .pts { font-size: 3rem; }
  .board .clock { font-size: 1.6rem; }
  .pchip { padding: 2px 8px; min-height: 48px; }
  .segb { min-height: 46px; }
  .raid h3 { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* ------------------------------------------------------------ print */
.print-root { display: none; }
@media print {
  @page { margin: 9mm; }
  html, body { background: #fff !important; color: #000 !important; font-size: 9pt; }
  body > *:not(.print-root) { display: none !important; }
  .print-root { display: block; }
  .sheet { break-after: page; page-break-after: always; color: #000; font: 8.4pt/1.25 Arial, Helvetica, sans-serif; width: 100%; }
  .sheet:last-child { break-after: auto; page-break-after: auto; }
  .sheet * { color: #000 !important; }
  .sh-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 4mm; margin-bottom: 2mm; }
  .sh-head .org { grid-column: 1; margin: 0; font: 700 11pt Arial, sans-serif; }
  .sh-title { grid-column: 2; margin: 0; font: 700 12.5pt Arial, sans-serif; border: 1.2pt solid #000; border-radius: 2mm; padding: 1mm 5mm; text-align: center; white-space: nowrap; }
  .sh-src { grid-column: 3; margin: 0; font-size: 6.5pt; text-align: right; }
  .sh-head .vd { grid-column: 1 / -1; display: grid; grid-template-columns: 2fr 1fr; gap: 6mm; margin-top: 2mm; }
  .f { display: flex; gap: 1.5mm; align-items: baseline; min-width: 0; }
  .fl { white-space: nowrap; font-weight: 700; }
  .fv { flex: 1; border-bottom: 0.75pt solid #000; min-height: 3.6mm; min-width: 0; overflow-wrap: anywhere; padding: 0 1mm; }
  .f.hint .fv { font-weight: 400; }
  .f.line { margin: 1.5mm 0; }
  .meta { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 1.2mm 6mm; margin-bottom: 2mm; }
  .vs { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; border: 0.8pt solid #000; border-bottom: 0; padding: 1mm 2mm; font-size: 9pt; }
  .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3mm; align-items: start; }
  table { border-collapse: collapse; width: 100%; table-layout: fixed; }
  td, th { border: 0.75pt solid #000; padding: 0 1mm; height: 4.2mm; font-weight: 400; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: clip; }
  th { font-weight: 700; }
  .box { margin-bottom: 1mm; }
  .box col.lab { width: 27mm; }
  .box td { text-align: center; font-size: 7.5pt; padding: 0; }
  .box td.big { text-align: left; font: 700 9.5pt Arial, sans-serif; padding: 0 1.5mm; }
  .box td.c { font-size: 7pt; }
  .box tr.to td { font-size: 6.4pt; }
  .box .io { font-size: 6.5pt; font-weight: 700; }
  .box th.subl span { display: block; font-weight: 400; font-size: 6.5pt; }
  .box tr.warn td { text-align: left; font-size: 6.5pt; white-space: normal; line-height: 1.1; padding: 0 1mm; }
  .box tr.warn { height: 6.6mm; }
  .players col.sr { width: 9mm; }
  .players col.ch { width: 15mm; }
  .players td { height: 4.1mm; font-size: 8pt; }
  .players td.c { text-align: center; }
  .players th.staff { font-weight: 700; }
  .players th.staff span { font-weight: 400; }
  .keys { margin: 2mm 0 1mm; text-align: center; font-size: 8pt; }
  .keys b { font-size: 9pt; }
  .runs .grid { --cols: 20 !important; border-top: 0.75pt solid #000; border-left: 0.75pt solid #000; }
  .grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
  .grid .n { position: relative; text-align: center; font: 7.4pt/5.2mm Arial, sans-serif; height: 5.2mm; border-right: 0.4pt solid #888; border-bottom: 0.4pt solid #888; color: #000; }
  .grid .n.ht { border-right: 1.6pt solid #000; }
  .grid .n svg, .nat .n svg { position: absolute; inset: 0.25mm; width: calc(100% - 0.5mm); height: calc(100% - 0.5mm); fill: none; stroke: #000; stroke-width: 1.1; vector-effect: non-scaling-stroke; overflow: visible; }
  .part { margin-top: 1.5mm; }
  .sheet th, .sheet td { border-color: #000; }
  .logt tr.blank td { height: 6.8mm; }
  .part th, .part td { text-align: center; font-size: 7.4pt; height: 4mm; }
  .part th[scope=row] { text-align: left; }
  .part thead th:first-child { width: 17mm; }
  .res { display: grid; grid-template-columns: 2.3fr 1.3fr 0.8fr; gap: 5mm; margin-top: 3mm; }
  .times { margin: 1.5mm 0 0; font-size: 7.5pt; }
  .signs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5mm; margin-top: 11mm; }
  .signs span { border-top: 0.75pt solid #000; padding-top: 1mm; text-align: center; font-size: 8pt; }
  .signs.two-signs { grid-template-columns: 1fr 1fr; gap: 40mm; }
  .tbsheet .tbl, .raidlog .tbl { margin: 2mm 0; }
  .tbl col.sr { width: 15mm; }
  .tbl col.ch { width: 16mm; }
  .tbl th, .tbl td { height: 6.5mm; font-size: 8.5pt; }
  .tbl td.c, .tbl th { text-align: center; }
  .tbl thead th { white-space: normal; overflow-wrap: anywhere; height: 6.5mm; line-height: 1.2; padding: 0.8mm 1mm; }
  .tbsheet .names .tbl thead th { height: 9.5mm; }
  .tbl.pts td { height: 8mm; }
  .tbsheet .gr { font: 700 11pt Arial, sans-serif; text-align: center; text-decoration: underline; margin: 6mm 0 2mm; }
  .tbsheet .vs { margin-bottom: 3mm; border-bottom: 0.8pt solid #000; }
  .tbres { font: 700 10pt Arial, sans-serif; margin-top: 4mm; }
  .asst .vs { border-bottom: 0.8pt solid #000; margin-bottom: 1mm; }
  .asst-top { margin: 2mm 0; }
  .asst-top th { width: 24mm; }
  .asst-top td { font-size: 6.6pt; text-align: center; padding: 0; }
  .asst-top td.spacer { border: 0; }
  .nat-grid th { width: 27mm; font-size: 7.5pt; }
  .nat-grid td { text-align: center; font-size: 7.5pt; height: 4.5mm; padding: 0; }
  .nat-grid tr.nh th { font-style: italic; }
  .nat .n { position: relative; display: inline-block; width: 6mm; line-height: 4mm; font-weight: 700; }
  .asst .part { margin-top: 3mm; }
  .logt col.rn { width: 12mm; }
  .logt col.hf { width: 14mm; }
  .logt col.dd { width: 18mm; }
  .logt col.sc { width: 17mm; }
  .logt td { white-space: normal; height: auto; min-height: 4mm; padding: 0.25mm 1mm; font-size: 7.6pt; line-height: 1.15; }
  .logt thead { display: table-header-group; }
  .logt tr.cap th { text-align: left; border: 0; border-bottom: 0.75pt solid #000; font-size: 8pt; }
  .logt tr { break-inside: avoid; }
  .logt tr.hb td { border-bottom: 1.4pt solid #000; font-weight: 700; }
  .grid, .box, .players, .part { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
a.btn { display: inline-flex; align-items: center; text-decoration: none; }
.techd > summary, .logwrap > summary, .more > summary { list-style: none; gap: 8px; }
.techd > summary::-webkit-details-marker, .logwrap > summary::-webkit-details-marker, .more > summary::-webkit-details-marker { display: none; }
.techd > summary::before, .logwrap > summary::before, .more > summary::before { content: '+'; font: 700 1.2rem var(--head); width: 1em; }
.techd[open] > summary::before, .logwrap[open] > summary::before, .more[open] > summary::before { content: '\2212'; }
