/* Match Stats: SquadBase look. Dark by default, light for bright days. */
:root, html.theme-dark {
  --bg: #0E141B; --surface: #16202B; --surface-2: #1C2835; --line: #263545;
  --text: #E9EEF3; --dim: #9FB0C0; --accent: #1FE0A6; --gold: #F2C14E; --bad: #FF7A45;
  --on-accent: #0B1015; --grey: #71808F; --grey-text: #C3CDD7;
  --pitch: #12241C; --pitch-line: rgba(233, 238, 243, .32); --pitch-arc: rgba(242, 193, 78, .55);
  --card-border: 1px solid var(--line); --card-shadow: none;
  --accent-wash: rgba(31, 224, 166, .12); --gold-wash: rgba(242, 193, 78, .10); --bad-wash: rgba(255, 122, 69, .12);
  color-scheme: dark;
}
html.theme-light {
  --bg: #F3F5F7; --surface: #FFFFFF; --surface-2: #E9EEF3; --line: #D5DDE5;
  --text: #111A23; --dim: #4E5F71; --accent: #0A7F5E; --gold: #8A6200; --bad: #C9401A;
  --on-accent: #FFFFFF; --grey: #71808F; --grey-text: #4A5562;
  --pitch: #E3EFE8; --pitch-line: rgba(17, 26, 35, .35); --pitch-arc: rgba(138, 98, 0, .6);
  --card-border: 1px solid transparent; --card-shadow: 0 1px 2px rgba(17,26,35,.06), 0 4px 12px rgba(17,26,35,.06);
  --accent-wash: rgba(10, 127, 94, .10); --gold-wash: rgba(138, 98, 0, .08); --bad-wash: rgba(201, 64, 26, .08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px; line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 900px) { body { font-size: 17px; } }
button, input, select, textarea { font: inherit; color: inherit; }
.cond { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-weight: 700; }
.dim { color: var(--dim); }
.small { font-size: 14px; }
.label { font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--dim); font-weight: 600; }
.hidden { display: none !important; }
svg.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- top bar ---------- */
.topbar {
  height: 56px; background: var(--surface); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; padding: 0 12px;
}
.home-pill {
  height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--accent);
  background: transparent; color: var(--accent); display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; cursor: pointer;
}
.appname { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.appname .t { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 22px; line-height: 1.05; }
.appname .sub { font-size: 13px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appname .stack { display: flex; flex-direction: column; min-width: 0; }
.appname svg.icon { color: var(--accent); width: 22px; height: 22px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line); background: transparent;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text);
}
.menu {
  position: absolute; right: 12px; top: 52px; z-index: 50; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 8px; min-width: 240px; box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.menu .label { padding: 8px 8px 4px; }
.menu button.item {
  display: flex; width: 100%; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border: 0;
  background: transparent; border-radius: 8px; text-align: left; cursor: pointer;
}
.menu button.item:active, .menu button.item.on { background: var(--surface-2); }
.menu button.item.on { color: var(--accent); font-weight: 600; }

/* ---------- tabs ---------- */
.tabs {
  display: flex; gap: 4px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--bg);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  height: 44px; padding: 0 16px; border: 0; background: transparent; color: var(--dim); cursor: pointer;
  border-bottom: 3px solid transparent; font-weight: 600; white-space: nowrap;
}
.tab.on { color: var(--text); border-bottom-color: var(--accent); }

main { max-width: 1280px; margin: 0 auto; padding: 16px; }
@media (max-width: 599px) { main { padding: 12px; } }

/* ---------- parts ---------- */
.card {
  background: var(--surface); border: var(--card-border); box-shadow: var(--card-shadow);
  border-radius: 12px; padding: 16px;
}
@media (min-width: 900px) { .card { padding: 16px 24px; } }
.card h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 22px; margin: 0 0 12px; }
.card h3 { font-size: 15px; margin: 0 0 8px; font-weight: 600; }
h1.page { font-family: 'Barlow Condensed', sans-serif; font-size: 30px; margin: 8px 0 16px; }
.stack-16 > * + * { margin-top: 16px; }
.stack-12 > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }

.btn {
  min-height: 48px; padding: 0 18px; border-radius: 8px; font-weight: 700; font-size: 16px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid var(--line); background: transparent; color: var(--text);
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.danger { border-color: var(--bad); color: var(--bad); }
.btn.gold { border-color: var(--gold); color: var(--gold); }
.btn.block { width: 100%; }
.btn:active { filter: brightness(1.15); }
.btn:focus-visible, .tab:focus-visible, .icon-btn:focus-visible, .seg button:focus-visible, .pad-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg button {
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; cursor: pointer;
  font-weight: 600; color: var(--dim);
}
.seg button.on { background: var(--accent); color: var(--on-accent); }
.seg.full { display: flex; }
.seg.full button { flex: 1; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field input, .field select {
  height: 48px; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 8px; padding: 0 12px;
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 599px) { .grid-2 { grid-template-columns: 1fr; } }

.tip {
  border-left: 3px solid var(--gold); background: var(--gold-wash); padding: 10px 12px; border-radius: 0 8px 8px 0;
  font-size: 15px;
}
.tip a, .tip button.link { color: var(--gold); font-weight: 600; }
button.link { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }

.empty { text-align: center; padding: 32px 16px; }
.empty > svg.icon { width: 40px; height: 40px; color: var(--dim); }
.empty p { margin: 12px 0 16px; color: var(--dim); }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 599px) { .checks { grid-template-columns: 1fr; } }
.check {
  display: flex; gap: 12px; align-items: center; min-height: 52px; padding: 6px 12px; border-radius: 8px;
  background: var(--surface-2); cursor: pointer; border: 1.5px solid transparent;
}
.check.on { border-color: var(--accent); }
.check .box {
  width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--dim); flex: none;
  display: flex; align-items: center; justify-content: center;
}
.check.on .box { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.check .box svg.icon { width: 16px; height: 16px; stroke-width: 3; }
.check .w { font-weight: 600; }
.check .h { font-size: 13px; color: var(--dim); }

/* ---------- home ---------- */
.match-list { display: grid; gap: 12px; }
@media (min-width: 900px) { .match-list { grid-template-columns: 1fr 1fr; } }
.match-card { display: flex; align-items: center; gap: 12px; cursor: pointer; min-height: 72px; text-align: left; width: 100%; color: var(--text); }
.match-card .teams { font-weight: 700; font-size: 18px; }
.match-card .score { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 700; white-space: nowrap; }

/* ---------- tag page ---------- */
.clockbar {
  position: sticky; top: 0; z-index: 20; background: var(--bg); padding: 8px 0 12px; margin: -4px 0 4px;
}
.scoreline { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.scoreline .team { min-width: 0; }
.scoreline .team .n { font-size: 14px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scoreline .team .s { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 30px; line-height: 1; }
.scoreline .team .s .tot { font-size: 18px; color: var(--dim); }
.scoreline .team .bd { font-size: 12px; color: var(--dim); }
.scoreline .team.r { text-align: right; }
.scoreline .clock { text-align: center; }
.scoreline .clock .c { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.scoreline .clock .ph { font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--dim); }
.clock-actions { display: flex; gap: 8px; margin-top: 10px; }
.clock-actions .btn { flex: 1; min-height: 44px; padding: 0 8px; font-size: 15px; }
.adding-banner { margin-top: 8px; }

.pad { display: grid; gap: 12px; }
.pad-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pad-cols.single { grid-template-columns: 1fr; }
.pad-col h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--dim); }
.pad-col.us h3 { color: var(--accent); }
.pad-col .stack-8 > * + * { margin-top: 8px; }
.pad-btn {
  width: 100%; min-height: 72px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface);
  cursor: pointer; text-align: left; padding: 10px 14px; display: flex; flex-direction: column; justify-content: center;
  box-shadow: var(--card-shadow);
}
.pad-btn .w { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 24px; line-height: 1.1; }
.pad-btn .h { font-size: 13px; color: var(--dim); }
.pad-col.us .pad-btn { border-color: var(--accent); }
.pad-btn:active { background: var(--surface-2); }
.pad-shared { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
@media (max-width: 599px) { .pad-shared { grid-template-columns: repeat(3, 1fr); } }
.pad-shared .pad-btn { min-height: 60px; }
.pad-shared .pad-btn .w { font-size: 19px; }
.num-strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
@media (max-width: 599px) { .num-strip { grid-template-columns: repeat(5, 1fr); } }
.num-btn {
  min-height: 48px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--surface-2); cursor: pointer;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 22px;
}
.num-btn:active { background: var(--accent); color: var(--on-accent); }

.lastfive .item, .log .item {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 0; border-top: 1px solid var(--line);
}
.lastfive .item:first-of-type, .log .item:first-of-type { border-top: 0; }
.item .time { font-variant-numeric: tabular-nums; color: var(--dim); width: 44px; flex: none; font-size: 14px; }
.item .what { flex: 1; min-width: 0; }
.item .what .sub { font-size: 13px; color: var(--dim); }
.item .tm { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; flex: none; }
.item .tm.us { background: var(--accent-wash); color: var(--accent); }
.item .tm.opp { background: var(--surface-2); color: var(--dim); }
.item .btn { min-height: 40px; padding: 0 12px; font-size: 14px; }
.log .add-here { display: flex; justify-content: center; }
.log .add-here button { font-size: 13px; color: var(--dim); background: none; border: 0; min-height: 32px; cursor: pointer; }
.log h3 { margin: 16px 0 4px; }

/* ---------- tag sheet ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 100; background: rgba(5, 9, 13, .6); display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  background: var(--bg); width: 100%; max-width: 720px; max-height: 100%; overflow: auto; border-radius: 16px 16px 0 0;
  padding: 16px; border-top: 1px solid var(--line);
}
@media (min-width: 900px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 16px; border: 1px solid var(--line); } }
@media (max-width: 599px) { .sheet { min-height: 100%; border-radius: 0; } }
.sheet-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.sheet-head .t { flex: 1; }
.sheet-head .t .k { font-size: 13px; color: var(--dim); }
.sheet-head .t .q { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 26px; line-height: 1.1; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choices.three { grid-template-columns: repeat(3, 1fr); }
.choice {
  min-height: 72px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 24px; padding: 8px; line-height: 1.1;
}
.choice .h { display: block; font-family: 'Barlow', sans-serif; font-weight: 400; font-size: 13px; color: var(--dim); }
.choice.good { border-color: var(--accent); color: var(--accent); }
.choice.good .h { color: var(--dim); }
.choice.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.choice:active { background: var(--surface-2); }
.sheet .num-strip { grid-template-columns: repeat(5, 1fr); }
.sheet .num-btn { min-height: 56px; font-size: 24px; }
.num-btn .nm { display: block; font-family: 'Barlow', sans-serif; font-weight: 400; font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.pitch-tap { max-width: 360px; margin: 0 auto; }
.pitch-tap svg { width: 100%; height: auto; display: block; touch-action: manipulation; cursor: crosshair; border-radius: 8px; }
.sheet-foot { display: flex; gap: 8px; margin-top: 16px; }
.sheet-foot .btn { flex: 1; }
.from-row { margin-bottom: 12px; }

/* ---------- pitch ---------- */
svg.pitch .pitch-bg { fill: var(--pitch); }
svg.pitch .pl { fill: none; stroke: var(--pitch-line); stroke-width: .5; }
svg.pitch .pl-thin { stroke-width: .35; }
svg.pitch .pl-arc { stroke: var(--pitch-arc); stroke-width: .6; stroke-dasharray: 2 1.5; }
svg.pitch .pl-goal { stroke: var(--text); stroke-width: 1.4; }
svg.pitch .pitch-label { font-size: 4px; fill: var(--dim); font-family: 'Barlow', sans-serif; }
svg.pitch .dot-marker { fill: var(--gold); stroke: var(--bg); stroke-width: .8; }
svg.pitch .d-us { fill: var(--accent); }
svg.pitch .d-us-o { fill: none; stroke: var(--accent); stroke-width: .9; }
svg.pitch .d-opp { fill: var(--grey); }
svg.pitch .d-opp-o { fill: none; stroke: var(--grey); stroke-width: .9; }
svg.pitch .d-miss line { stroke: var(--grey); stroke-width: .9; }
svg.pitch .d-goal { fill: var(--gold); }

/* ---------- board ---------- */
.board { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } .board .wide { grid-column: 1 / -1; } }
@media (min-width: 1200px) { .board { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.board .card { padding: 16px; }
.board-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.chain { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.chain th { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--dim); font-weight: 600; text-align: right; padding: 4px 6px; vertical-align: bottom; }
.chain th:first-child, .chain td:first-child { text-align: left; }
.chain td { text-align: right; padding: 8px 6px; border-top: 1px solid var(--line); }
.chain td .big { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 24px; }
.chain td .pc { font-size: 13px; color: var(--dim); display: block; }
.chain tr.us td:first-child { color: var(--accent); font-weight: 700; }
.chain tr.opp td:first-child { color: var(--dim); font-weight: 700; }
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
.tbl th { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--dim); font-weight: 600; text-align: right; padding: 4px 4px; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl td { text-align: right; padding: 8px 4px; border-top: 1px solid var(--line); }
.tbl tr.total td { font-weight: 700; }
.nett-pos { color: var(--accent); font-weight: 700; }
.nett-neg { color: var(--bad); font-weight: 700; }
.ko-wrap { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: start; }
.ko-wrap svg.pitch { width: 120px; height: auto; border-radius: 6px; }
.ko-card { container-type: inline-size; }
@container (max-width: 480px) { .ko-wrap { grid-template-columns: minmax(0, 1fr); } .ko-wrap svg.pitch { width: 140px; margin: 0 auto; display: block; } }
.ko-wrap > div { min-width: 0; }
.kept { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.kept .big { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 36px; line-height: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--dim); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.legend i.us { background: var(--accent); } .legend i.us-o { border: 2px solid var(--accent); }
.legend i.opp { background: var(--grey); } .legend i.opp-o { border: 2px solid var(--grey); }
.legend i.goal { background: var(--gold); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile .k { overflow-wrap: anywhere; }
.tile { background: var(--surface-2); border-radius: 8px; padding: 8px 10px; }
.tile .v { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 24px; line-height: 1.1; }
.tile .k { font-size: 12px; color: var(--dim); line-height: 1.2; }
.team-label { font-size: 13px; font-weight: 700; margin: 12px 0 6px; }
.team-label.us { color: var(--accent); } .team-label.opp { color: var(--dim); }
.points-list { margin: 0; padding: 0; list-style: none; }
.points-list li { padding: 8px 0 8px 18px; position: relative; border-top: 1px solid var(--line); }
.points-list li:first-child { border-top: 0; }
.points-list li::before { content: ''; position: absolute; left: 0; top: 15px; width: 8px; height: 8px; border-radius: 50%; }
.points-list.fix li::before { background: var(--bad); }
.points-list.keep li::before { background: var(--accent); }
.bar3 { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; font-size: 14px; }
.hbar { height: 10px; border-radius: 5px; background: var(--surface-2); position: relative; overflow: hidden; }
.hbar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; }
.hbar.us span { background: var(--accent); } .hbar.opp span { background: var(--grey); }
.shot-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shot-wrap svg.pitch { width: 100%; height: auto; border-radius: 6px; }

/* skeleton */
.sk { background: var(--surface-2); border-radius: 8px; animation: skp 1.2s ease-in-out infinite; }
@keyframes skp { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 200; background: var(--surface);
  border: 1px solid var(--accent); color: var(--text); padding: 12px 18px; border-radius: 999px; font-weight: 600;
  box-shadow: 0 6px 20px rgba(0,0,0,.35); max-width: calc(100% - 32px); pointer-events: none;
}
.saved-chip { font-size: 13px; color: var(--accent); font-weight: 600; }
details.more > summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font-weight: 600; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: '+'; margin-left: auto; color: var(--dim); font-size: 22px; }
details.more[open] > summary::after { content: '\2212'; }
.sheet-grid { display: grid; grid-template-columns: 56px 1fr; gap: 6px 8px; align-items: center; }
.sheet-grid input { height: 44px; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 8px; padding: 0 10px; width: 100%; }
.sheet-grid .no { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 20px; text-align: center; }
.pts-grid { display: grid; grid-template-columns: 1fr 88px; gap: 6px 12px; align-items: center; font-size: 15px; }
.pts-grid input { height: 44px; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 8px; padding: 0 8px; width: 100%; text-align: center; }

@media (min-width: 700px) { .chain-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* online */
.sync-chip { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.sync-chip.ok { color: var(--accent); background: var(--accent-wash); }
.sync-chip.warn { color: var(--gold); background: var(--gold-wash); }
@media (max-width: 420px) { .sync-chip { font-size: 12px; padding: 3px 8px; } }
.code-input {
  height: 48px; width: 9ch; flex: 1; min-width: 0; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 8px;
  padding: 0 12px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 24px; letter-spacing: 3px; text-transform: uppercase;
}
.share-code { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 44px; letter-spacing: 6px; line-height: 1.1; }
.share-wrap { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.share-wrap .qr { width: 168px; height: 168px; background: #FFFFFF; border-radius: 8px; padding: 6px; flex: none; }
.share-wrap .qr svg { width: 100%; height: 100%; display: block; }

.sync-chip .short { display: none; }
@media (max-width: 520px) { .sync-chip .long { display: none; } .sync-chip .short { display: inline; } }
.appname .t { white-space: nowrap; }

/* board page 2 */
.board-tools .seg + .seg { margin-left: 0; }
.alerts { list-style: none; margin: 0; padding: 0; }
.alerts li { display: flex; gap: 12px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); }
.alerts li:first-child { border-top: 0; }
.alerts .tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.alerts .watch .tag { color: var(--bad); background: var(--bad-wash); }
.alerts .good .tag { color: var(--accent); background: var(--accent-wash); }
svg.worm { display: block; height: auto; }
svg.worm .grid { stroke: var(--line); stroke-width: 1; }
svg.worm .axis0 { stroke: var(--dim); stroke-width: 1.2; }
svg.worm .ht { stroke: var(--gold); stroke-width: 1.2; stroke-dasharray: 4 4; }
svg.worm .ax { fill: var(--dim); font-size: 12px; font-family: 'Barlow', sans-serif; }
svg.worm .lead-us { fill: var(--accent); font-weight: 600; }
svg.worm .lead-now { fill: var(--text); font-weight: 700; }
svg.worm .worm-line { fill: none; stroke: var(--text); stroke-width: 2.5; stroke-linejoin: round; }
svg.worm .worm-goal { fill: var(--gold); stroke: var(--surface); stroke-width: 2; }
svg.worm .run-us { fill: var(--accent-wash); }
svg.worm .run-opp { fill: rgba(113, 128, 143, .18); }
.poss-blocks { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; align-items: end; }
.poss-blocks .pb { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; align-items: end; text-align: center; }
.poss-blocks .bar { border-radius: 3px 3px 0 0; min-height: 2px; }
.poss-blocks .bar.us { background: var(--accent); } .poss-blocks .bar.opp { background: var(--grey); }
.poss-blocks .n { grid-column: 1 / -1; font-size: 11px; color: var(--text); font-variant-numeric: tabular-nums; }
.poss-blocks .m { grid-column: 1 / -1; font-size: 11px; color: var(--dim); }
@media (max-width: 520px) { .poss-blocks .n { display: none; } .poss-blocks .m { font-size: 10px; } }
.points-list.runs li.us::before { background: var(--accent); }
.points-list.runs li.opp::before { background: var(--grey); }
.points-list .still { color: var(--gold); font-weight: 600; }
.tbl-scroll { overflow-x: auto; }
.tbl.players td { vertical-align: top; }
.contrib { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.contrib .cb { height: 8px; border-radius: 4px; display: inline-block; }
.contrib .cb.pos { background: var(--accent); } .contrib .cb.neg { background: var(--bad); }
@media (max-width: 520px) { .hide-sm { display: none; } .contrib .cb { display: none; } }
