/* Layout: survey-sheet game board. Measuring-jug target on the left (sticky), specimen tray on the right; on phones the jug pins to the top above the tray. */
:root {
  --paper: #edf1f2; --sheet: #f8fafa; --ink: #14202a; --muted: #5a6872; --rule: #c7d0d5;
  --land: #2b3842; --water: #3f95bd; --water-soft: #d5e9f2; --target-fill: #dbe3e7;
  --over: #cf4126; --ice: #7cc3dc; --ice-soft: #e3f4fa; --good: #2f7d50;
  --f-display: "Sofia Sans Extra Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "Sofia Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #0e151a; --sheet: #141d24; --ink: #e2e9ed; --muted: #8b9aa5; --rule: #27343d;
  --land: #c3ced6; --water: #5fb6da; --water-soft: #16384a; --target-fill: #24323c;
  --over: #ff6b4f; --ice: #9fdcf0; --ice-soft: #17323c; --good: #5cc487; color-scheme: dark; } }
:root[data-theme="dark"] {
  --paper: #0e151a; --sheet: #141d24; --ink: #e2e9ed; --muted: #8b9aa5; --rule: #27343d;
  --land: #c3ced6; --water: #5fb6da; --water-soft: #16384a; --target-fill: #24323c;
  --over: #ff6b4f; --ice: #9fdcf0; --ice-soft: #17323c; --good: #5cc487; color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
body { background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.5;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 20px 48px; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
.wrap { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }

header.top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand h1 { font-family: var(--f-display); font-weight: 800; font-size: 44px; line-height: .9; letter-spacing: .02em; text-transform: uppercase; margin: 0; }
.brand .tag { font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.days button { font-family: var(--f-mono); font-size: 13px; padding: 5px 10px; border-radius: 3px; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); cursor: pointer; }
.days button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.days .done { color: var(--good); }
.days button[aria-pressed="true"] .done { color: var(--water); }
.brief { margin: 0; max-width: 72ch; color: var(--muted); }
.brief b { color: var(--ink); font-weight: 600; }

.board { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: start; }
.panel { background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; }
.jug { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 12px); padding: 16px; display: flex; flex-direction: column; gap: 12px; z-index: 4; }
.label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.jug-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.target-name { font-family: var(--f-display); font-weight: 800; font-size: 34px; line-height: 1; text-transform: uppercase; letter-spacing: .02em; margin: 2px 0 0; text-wrap: balance; }
.clock { text-align: right; flex: none; }
.clock .t { font-family: var(--f-mono); font-weight: 500; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.clock.low .t { color: var(--over); }
.timebar { height: 4px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.timebar i { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; }
.clock.low + .timebar i, .timebar.low i { background: var(--over); }
.status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 2px; border: 1px solid var(--rule); color: var(--muted); align-self: flex-start; }
.status.over { color: var(--over); border-color: var(--over); }
.status.ice { color: var(--ink); border-color: var(--ice); background: var(--ice-soft); }

.target-svg { width: 100%; height: clamp(220px, 40vh, 360px); display: block; }
.target-svg .ground { fill: var(--paper); }
.target-svg .frost { fill: url(#frost); opacity: 0; transition: opacity .25s; }
.target-svg .liquid { fill: var(--land); }
.target-svg .surface { stroke: var(--water); stroke-width: 2; vector-effect: non-scaling-stroke; }
.target-svg .outline { fill: none; stroke: var(--ink); stroke-width: 1.4; vector-effect: non-scaling-stroke; transition: stroke .2s; }
.target-svg .tick { stroke: var(--muted); stroke-width: 1; vector-effect: non-scaling-stroke; }
.target-svg .tick-label { fill: var(--muted); font-family: var(--f-mono); }
.target-svg.over .liquid { fill: var(--over); }
.target-svg.over .surface { stroke: var(--over); }
.target-svg.over .outline { stroke: var(--over); stroke-width: 2.4; }
.target-svg.ice .ground { fill: var(--ice-soft); }
.target-svg.ice .frost { opacity: 1; }
.target-svg.ice .outline { stroke: var(--ice); stroke-width: 2.4; }
#frost line { stroke: var(--ice); stroke-width: 1.2; vector-effect: non-scaling-stroke; }

.picks { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; align-items: center; }
.picks .empty { color: var(--muted); font-size: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; padding: 3px 4px 3px 10px; border-radius: 3px; background: var(--paper); border: 1px solid var(--rule); color: var(--ink); white-space: nowrap; }
.chip.wet { border-color: var(--water); background: var(--water-soft); }
.chip button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 2px 6px; border-radius: 2px; }
.chip button:hover { color: var(--over); }
.actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px dashed var(--rule); padding-top: 12px; }
.swaps { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.btn { font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; background: var(--ink); color: var(--paper); border: 0; border-radius: 3px; padding: 9px 20px; cursor: pointer; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.soft { background: transparent; color: var(--muted); border: 1.5px solid var(--rule); }
.btn.soft:hover { color: var(--ink); border-color: var(--muted); }
.btn.big { font-size: 26px; padding: 13px 34px; }

.tray { padding: 16px; display: flex; flex-direction: column; gap: 12px; min-height: 320px; }
.tray-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.stamp { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--over); border: 1.5px solid var(--over); padding: 1px 6px; border-radius: 2px; transform: rotate(-2deg); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.piece { display: flex; flex-direction: column; align-items: stretch; gap: 5px; padding: 10px 8px 8px; text-align: left; background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px; color: var(--ink); cursor: pointer; font: inherit; transition: border-color .15s, transform .15s; }
.piece:hover:not(:disabled) { border-color: var(--ink); transform: translateY(-1px); }
.piece svg { width: 100%; height: 74px; display: block; }
.piece svg path { fill: var(--land); fill-rule: evenodd; }
.piece .nm { font-weight: 600; font-size: 14px; line-height: 1.15; overflow-wrap: anywhere; }
.piece .kd { font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.piece .minus { color: var(--water); font-weight: 700; }
.piece.wet { background: var(--water-soft); border-color: var(--water); }
.piece[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--paper); }
.piece[aria-pressed="true"] .nm::before { content: "✓ "; }
.piece:disabled { cursor: default; }
.cover { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px 8px; border: 1px dashed var(--rule); border-radius: 3px; }
.cover p { margin: 0; color: var(--muted); max-width: 40ch; }
.cover .rules { display: grid; gap: 4px; text-align: left; font-size: 14px; color: var(--muted); margin: 0; padding-left: 18px; }

button:focus-visible { outline: 2px solid var(--water); outline-offset: 2px; }

/* Reveal */
.reveal { padding: 20px 16px; display: flex; flex-direction: column; gap: 16px; }
.verdict { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: flex-end; justify-content: space-between; }
.verdict .big { font-family: var(--f-display); font-weight: 800; font-size: 56px; line-height: .9; text-transform: uppercase; }
.score { text-align: right; }
.score .v { font-family: var(--f-mono); font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; }
.formula { font-family: var(--f-mono); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.facts { display: flex; gap: 24px; flex-wrap: wrap; }
.fact .v { font-family: var(--f-mono); font-size: 22px; font-variant-numeric: tabular-nums; }
.note { margin: 0; color: var(--muted); max-width: 72ch; }
.note b { color: var(--ink); font-weight: 600; }
.answers { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.answers li { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.answers .pct { font-family: var(--f-mono); font-variant-numeric: tabular-nums; min-width: 5.5em; }
.answers .w { color: var(--water); }
.lineup-wrap { overflow-x: auto; border-top: 1px dashed var(--rule); padding-top: 14px; }
.lineup { display: flex; align-items: flex-end; gap: 14px 18px; flex-wrap: wrap; }
.lu { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.lu .n, .lu .p { max-width: 120px; }
.lu svg { display: block; overflow: visible; }
.lu path { fill: var(--rule); fill-rule: evenodd; }
.lu.picked path { fill: var(--land); }
.lu.picked.wet path { fill: var(--water) !important; }
.lu.wet:not(.picked) svg { opacity: .55; }
.stars { margin-top: 8px; }
/* Rating squares, matching the share text: full = land (⬛), half = water blue (🟦), empty = outline (⬜). */
.sqs { display: inline-flex; gap: 3px; vertical-align: middle; }
.sqs i { width: 14px; height: 14px; border: 1.5px solid var(--land); border-radius: 2px; background: transparent; }
.sqs i.f { background: var(--land); }
.sqs i.h { background: var(--water); border-color: var(--water); }
.stars .sqs i { width: 20px; height: 20px; }
.lu.target path { fill: var(--target-fill); stroke: var(--ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.lu .n { font-size: 12px; font-weight: 600; text-align: center; line-height: 1.1; }
.lu .p { font-family: var(--f-mono); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.star { color: var(--good); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.legend i + i { margin-left: -2px; }
.legend i.tgt { background: var(--target-fill); box-shadow: inset 0 0 0 1px var(--ink); }
.legend i.hatch { background: repeating-linear-gradient(45deg, var(--water) 0 2px, var(--water-soft) 2px 4px); }
.legend i.hatch.faded { opacity: .55; }
.share { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.share pre { margin: 0; flex: 1 1 260px; min-width: 0; font-family: var(--f-mono); font-size: 13px; line-height: 1.5; background: var(--paper); border: 1px solid var(--rule); border-radius: 3px; padding: 10px 12px; white-space: pre-wrap; }
.share .col { display: flex; flex-direction: column; gap: 8px; min-width: 128px; }
.share .col .copy { flex: 1; }
.copy { font-family: var(--f-mono); font-size: 13px; border: 1px solid var(--ink); background: var(--sheet); color: var(--ink); padding: 8px 14px; border-radius: 3px; cursor: pointer; }
footer { font-size: 12px; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 10px; text-align: center; text-wrap: balance; }
footer button { font: inherit; color: var(--ink); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* v3: daily header, tools, progress */
.headline { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.tools { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tool { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; padding: 5px 10px; border-radius: 3px; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); cursor: pointer; }
.tool:hover { border-color: var(--ink); }
.tool:disabled { opacity: .4; cursor: not-allowed; }
.dayline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.dayline .when { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.dayline .when b { color: var(--ink); font-weight: 500; }
.practice { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--water); border: 1px solid var(--water); padding: 1px 6px; border-radius: 2px; margin-left: 6px; }
.days button { min-width: 44px; }
.days button:disabled { opacity: .4; cursor: not-allowed; }
.info-btn { font: 600 12px/1 var(--f-mono); width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--muted); background: none; color: var(--muted); cursor: pointer; padding: 0; vertical-align: 1px; margin-left: 6px; }
.info-btn:hover { color: var(--ink); border-color: var(--ink); }
.next-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Day summary */
.summary { padding: 20px 16px; display: flex; flex-direction: column; gap: 18px; }
.sum-rows { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.sum-rows li { display: grid; grid-template-columns: 2.2em minmax(0, 1fr) auto auto; gap: 4px 14px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.sum-rows .no { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.sum-rows .tn { font-weight: 600; min-width: 0; }
.sum-rows .tn small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.sum-rows .sq { font-size: 15px; letter-spacing: 1px; white-space: nowrap; }
.sum-rows .pts { font-family: var(--f-mono); font-variant-numeric: tabular-nums; text-align: right; min-width: 4.5em; }
.countdown { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.countdown b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.closed { padding: 28px 16px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* Sheets (dialogs) */
dialog.sheet { border: 1px solid var(--rule); border-radius: 4px; background: var(--sheet); color: var(--ink); padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); box-shadow: 0 18px 50px -20px rgba(0,0,0,.5); overflow: hidden; }
dialog.sheet[open] { display: flex; flex-direction: column; }
dialog.sheet::backdrop { background: rgba(10, 18, 24, .55); }
.sheet-in { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.sheet-head { flex: none; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px 10px; border-bottom: 2px solid var(--ink); }
.sheet-head h2 { font-family: var(--f-display); font-weight: 800; font-size: 28px; line-height: 1; text-transform: uppercase; letter-spacing: .02em; margin: 0; text-wrap: balance; }
.x { border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 3px; }
.x:hover { color: var(--ink); }
.sheet-body { padding: 14px 16px 18px; overflow-y: auto; overflow-x: hidden; min-height: 0; flex: 0 1 auto; box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; }
.sheet-body > * { flex-shrink: 0; }
.sheet-body h3 { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 6px 0 -6px; }
.sheet-body p, .sheet-body ul { margin: 0; max-width: 62ch; }
.sheet-body ul { padding-left: 18px; display: grid; gap: 4px; }
.sheet-body .muted { color: var(--muted); }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0; margin: 0; font-variant-numeric: tabular-nums; }
.calc dd { padding-left: 16px !important; }
.calc dt, .calc dd { padding: 7px 0; border-bottom: 1px dashed var(--rule); margin: 0; }
.calc dt small { display: block; color: var(--muted); font-size: 13px; }
.calc dt .mine { font-family: var(--f-mono); font-weight: 500; font-size: 15px; margin-left: 8px; padding: 0 6px; border-radius: 2px; background: var(--paper); border: 1px solid var(--rule); }
.calc dd { font-family: var(--f-mono); text-align: right; }
.calc .tot { border-bottom: 0; border-top: 2px solid var(--ink); font-weight: 600; }
.tiers { width: 100%; border-collapse: collapse; font-size: 14px; }
.tiers td { padding: 4px 6px 4px 0; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.tiers td:last-child { white-space: normal; font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); }
.table-wrap { overflow-x: auto; }

/* Stats */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kpi { border: 1px solid var(--rule); border-radius: 3px; padding: 8px 10px; background: var(--paper); }
.kpi .v { font-family: var(--f-mono); font-size: 24px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .label { font-size: 10px; }
.dist { display: grid; gap: 3px; }
.dist .row { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 2.5em; gap: 8px; align-items: center; font-size: 13px; }
.dist .n { font-family: var(--f-mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.dist .row span:first-child { white-space: nowrap; color: var(--muted); }
.dist .bar { height: 16px; background: var(--rule); border-radius: 2px; position: relative; min-width: 0; }
.dist .bar i { position: absolute; inset: 0 auto 0 0; background: var(--land); border-radius: 2px; }
.archive { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.archive button { font-family: var(--f-mono); font-size: 12px; line-height: 1.25; padding: 6px 4px; border: 1px solid var(--rule); border-radius: 3px; background: var(--paper); color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.archive button:hover:not(:disabled) { border-color: var(--ink); }
.archive button:disabled { opacity: .45; cursor: default; }
.archive button small { display: block; color: var(--muted); font-size: 10.5px; }
.archive button.done small { color: var(--good); }

/* Walkthrough */
.walk { display: flex; flex-direction: column; gap: 14px; min-height: 100%; }
.walk .walk-nav { margin-top: auto; }
.walk-fig { display: flex; justify-content: center; align-items: center; padding: 8px 0 2px; height: 216px; }
.walk-fig svg { width: min(260px, 100%); max-height: 100%; height: auto; }
.walk-fig .w-land { fill: var(--land); }
.walk-fig .w-out { fill: none; stroke: var(--ink); stroke-width: 2; }
.walk-fig .w-tick { stroke: var(--muted); stroke-width: 1.2; }
.walk-fig .w-lbl { fill: var(--muted); font: 10px var(--f-mono); }
.walk-fig .w-surf { stroke: var(--water); stroke-width: 2; }
.walk-fig .w-over { fill: var(--over); }
.walk-fig .w-card { fill: var(--sheet); stroke: var(--rule); }
.walk-fig .w-wet { fill: var(--water-soft); stroke: var(--water); }
.walk-fig .w-txt { fill: var(--ink); font: 600 11px var(--f-body); }
.walk-fig .w-sub { fill: var(--water); font: 700 10px var(--f-mono); }
.dots { display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--rule); }
.dots i.on { background: var(--ink); }
.walk-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 4px; border-top: 1px dashed var(--rule); }
.walk-nav .r { display: flex; gap: 8px; margin-left: auto; }
#wNext { min-width: 9.2em; }
.linkish { font: inherit; font-size: 14px; color: var(--muted); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 820px) {
  .btn.big { width: 100%; }
  .walk-nav .btn { font-size: 18px; padding: 8px 14px; }
  #wNext { min-width: 7.6em; }
  .sheet-head h2 { font-size: 22px; white-space: nowrap; }
  .board { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .jug { top: env(safe-area-inset-top, 0px); padding: 10px 12px; gap: 8px; border-radius: 0 0 4px 4px; box-shadow: 0 6px 12px -10px rgba(0,0,0,.4); }
  .target-svg { height: 150px; }
  .target-name { font-size: 26px; }
  .clock .t { font-size: 24px; }
  .picks { flex-wrap: nowrap; overflow-x: auto; min-height: 28px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .piece svg { height: 64px; }
  .headline { align-items: flex-start; width: 100%; }
  .tools { justify-content: flex-start; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sum-rows li { grid-template-columns: 1.8em minmax(0, 1fr) auto; }
  .sum-rows .sq { grid-column: 2; grid-row: 2; }
  .sum-rows .pts { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
