/* Go In For — sideline styles. Sunlight first: white surfaces, near-black type, solid status fills. */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/Barlow-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/Barlow-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/Barlow-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/Barlow-700.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/BarlowCondensed-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/BarlowCondensed-700.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/BarlowCondensed-800.woff2') format('woff2'); }

:root {
  color-scheme: light;
  /* Pocket screen is always dark, in both themes. */
  --pocket-bg: #0B0B10; --pocket-ink: #F5F5F8; --pocket-on: #8FB8FF; --pocket-off: #FFB088; --pocket-line: #6B6B78;
  --bg: #F7F7FA; --surface: #FFFFFF; --surface-2: #EEEEF3;
  --ink: #242428; --muted: #4E4E5A; --line: #C9C9D2;
  --accent: #D64000; --accent-ink: #FFFFFF;
  --pitch: #0B5FE0; --pitch-ink: #FFFFFF; --pitch-soft: #DCE8FF; --pitch-text: #0A3E9C;
  --amber: #D64000; --amber-ink: #FFFFFF; --amber-soft: #FFE3D6; --amber-text: #8A2900;
  --red: #B3261E; --red-ink: #FFFFFF; --red-soft: #FADFDB; --red-text: #7E1D13;
  --focus: #0B5FE0; --shadow: 0 6px 14px -12px rgba(17, 17, 17, .25); --hair: rgba(36, 36, 40, .12); --glow: 0 10px 28px rgba(214, 64, 0, .32);
  --icon: 22px; --t-fast: 120ms; --t-base: 180ms;
  /* AP 1984 spacing scale (4px base), control heights (44 = tap floor) and elevation levels */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-7: 28px; --sp-8: 32px; --sp-9: 40px; --sp-10: 48px;
  --ctl-s: 36px; --ctl-m: 44px; --ctl-l: 48px; --card-pad: var(--sp-5);
  --el-1: 0 6px 14px -12px rgba(17, 17, 17, .25); --el-2: 0 14px 28px -22px rgba(17, 17, 17, .35); --el-3: 0 24px 48px -16px rgba(17, 17, 17, .30);
  --display: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #101014; --surface: #1B1B21; --surface-2: #26262E;
    --ink: #F5F5F8; --muted: #B8B8C4; --line: #3A3A44;
    --accent: #FF8A50; --accent-ink: #2A0F00;
    --pitch: #6FA3FF; --pitch-ink: #061B3D; --pitch-soft: #17294A; --pitch-text: #B9D2FF;
    --amber: #FF8A50; --amber-ink: #2A0F00; --amber-soft: #3D1F12; --amber-text: #FFC1A3;
    --red: #F48E80; --red-ink: #2E0B07; --red-soft: #3F1D19; --red-text: #F7B0A6;
    --focus: #8DBBFF; --shadow: 0 6px 14px -12px rgba(0, 0, 0, .6); --el-1: 0 6px 14px -12px rgba(0, 0, 0, .6); --el-2: 0 14px 28px -22px rgba(0, 0, 0, .7); --el-3: 0 24px 48px -16px rgba(0, 0, 0, .65); --hair: rgba(245, 245, 248, .14); --glow: 0 10px 28px rgba(255, 138, 80, .35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101014; --surface: #1B1B21; --surface-2: #26262E;
  --ink: #F5F5F8; --muted: #B8B8C4; --line: #3A3A44;
  --accent: #FF8A50; --accent-ink: #2A0F00;
  --pitch: #6FA3FF; --pitch-ink: #061B3D; --pitch-soft: #17294A; --pitch-text: #B9D2FF;
  --amber: #FF8A50; --amber-ink: #2A0F00; --amber-soft: #3D1F12; --amber-text: #FFC1A3;
  --red: #F48E80; --red-ink: #2E0B07; --red-soft: #3F1D19; --red-text: #F7B0A6;
  --focus: #8DBBFF; --shadow: 0 6px 14px -12px rgba(0, 0, 0, .6); --el-1: 0 6px 14px -12px rgba(0, 0, 0, .6); --el-2: 0 14px 28px -22px rgba(0, 0, 0, .7); --el-3: 0 24px 48px -16px rgba(0, 0, 0, .65); --hair: rgba(245, 245, 248, .14); --glow: 0 10px 28px rgba(255, 138, 80, .35);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.5;
  padding-inline: max(var(--sp-4), env(safe-area-inset-left)) max(var(--sp-4), env(safe-area-inset-right));
  padding-block: env(safe-area-inset-top) calc(104px + env(safe-area-inset-bottom));
  -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; touch-action: manipulation;
}
.app { max-width: 560px; margin: 0 auto; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.05; text-wrap: balance; }
h1 { font-size: 32px; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ic { width: var(--icon); height: var(--icon); flex: none; }
.btn .ic { margin-inline-end: 2px; }
.btn.big .ic { width: 26px; height: 26px; }
.btn.sm .ic { width: 18px; height: 18px; }
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field > label { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.empty { color: var(--muted); font-size: 15px; padding: var(--sp-3) 0; }
input[type="text"] { font: inherit; font-size: 17px; padding: var(--sp-3) var(--sp-4); min-height: var(--ctl-l); border: 1.5px solid var(--hair); border-radius: 10px; background: var(--surface); color: var(--ink); width: 100%; min-width: 0; }
.screen { display: flex; flex-direction: column; gap: var(--sp-6); padding-block: var(--sp-4); }
.screen.game { gap: var(--sp-4); padding-top: var(--sp-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: var(--ctl-l); padding: var(--sp-2) var(--sp-5); border-radius: 999px;
  font-weight: 600; font-size: 17px; background: var(--surface-2); color: var(--ink); border: 1.5px solid transparent; position: relative; overflow: hidden;
  transition: background-color var(--t-base), border-color var(--t-base), color var(--t-base), transform var(--t-fast), opacity var(--t-base); }
.btn:not([disabled]):active, .icon:not([disabled]):active { transform: scale(.97); }
.prow.selectable { transition: border-color var(--t-base), box-shadow var(--t-base), background-color var(--t-base); }
.prow.selectable:active { background: var(--surface-2); }
@media (prefers-reduced-motion: reduce) { .btn, .icon, .prow.selectable, .btn.hold.holding .fill, .pocket.holding .pbar i { transition: none; } }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.big { min-height: 56px; font-size: 18px; font-weight: 700; padding-inline: var(--sp-6); }
.btn.primary.big { box-shadow: var(--glow); }
.btn.quiet { background: var(--surface); border-color: var(--hair); border-width: 1.5px; }
.btn.iconOnly { min-width: var(--ctl-m); padding: var(--sp-1); gap: 0; }
.btn.iconOnly .ic { margin: 0; }
.btn.danger { background: var(--red-soft); color: var(--red-text); }
.btn.sm { min-height: var(--ctl-m); font-size: 15px; padding: var(--sp-1) var(--sp-4); }
.btn[disabled] { opacity: .45; cursor: default; }
.btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.btn.hold .fill { position: absolute; inset: 0; width: 0%; background: rgba(0, 0, 0, .22); pointer-events: none; }
.btn.hold.holding .fill { width: 100%; transition: width .6s linear; }
.btn.hold .lbl { position: relative; }
.row { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; }
.row > .btn { flex: 1 1 auto; }
.seg { display: flex; gap: var(--sp-1); flex-wrap: wrap; padding: var(--sp-1); border-radius: 999px; background: var(--surface-2); }
.seg .btn { flex: 1; min-height: 40px; font-size: 15px; padding: var(--sp-1) var(--sp-3); background: transparent; }
.seg .btn[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.toggle { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--sp-3); }
.toggle .btn { min-width: 84px; }
.toggle .btn[aria-pressed="true"] { background: var(--pitch); color: var(--pitch-ink); }

/* Cards and lists */
.card { background: var(--surface); border-radius: 18px; padding: var(--card-pad); box-shadow: var(--el-1); display: flex; flex-direction: column; gap: var(--sp-3); border: 1px solid var(--hair); }
@media (min-width: 480px) { :root { --card-pad: var(--sp-7); } }
.list { display: flex; flex-direction: column; gap: var(--sp-2); }
.prow { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 10px 12px 10px 4px; border-radius: 12px; background: var(--surface); border: 2px solid var(--line); }
.prow.selectable { cursor: pointer; }
.prow.selected { border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus); }
.prow.next-off { border-color: var(--amber); border-width: 3px; }
.prow.next-on { border-color: var(--pitch); border-width: 3px; }
.prow.gk { background: var(--pitch-soft); }
.pname { font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pmeta { font-size: 16px; color: var(--muted); margin-top: 4px; }
.chip { display: inline-block; font-family: var(--body); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; line-height: 1.2; }
.chip.on { background: var(--pitch); color: var(--pitch-ink); }
.chip.off { background: var(--amber); color: var(--amber-ink); }
.chip.gk { background: var(--pitch-soft); color: var(--pitch-text); border: 1px solid var(--pitch); }
.chip.away { background: var(--red); color: var(--red-ink); }
.chip.soft { background: var(--surface-2); color: var(--ink); }
.pacts { display: flex; gap: var(--sp-2); }
.icon { min-width: 56px; min-height: 52px; padding: 5px 8px; border-radius: 10px; background: var(--surface-2); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-weight: 700; font-size: 12px; letter-spacing: .03em; text-transform: uppercase; line-height: 1;
  transition: background-color var(--t-base), color var(--t-base), transform var(--t-fast); }
.icon .ic { width: 20px; height: 20px; }
.icon.active { background: var(--ink); color: var(--bg); }

/* Drag a kid between the lists */
.btn.grip { width: 44px; min-width: 44px; min-height: 52px; padding: 0; align-self: stretch; gap: 0; background: transparent; color: var(--muted); border-radius: 8px; cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.btn.grip .ic { width: 26px; height: 26px; margin: 0; }
.btn.grip:active { cursor: grabbing; background: var(--surface-2); transform: none; }
body.dragging { -webkit-user-select: none; user-select: none; cursor: grabbing; }
.prow.lifted { opacity: .35; }
.prow.ghost { position: fixed; z-index: 40; margin: 0; pointer-events: none; box-shadow: 0 14px 34px rgba(0, 0, 0, .35); border-color: var(--focus); background: var(--surface); }
.zone { border-radius: 14px; padding: 4px; margin: -4px; transition: box-shadow var(--t-base), background-color var(--t-base); }
.zone.drop-over { box-shadow: 0 0 0 3px var(--pitch); background: var(--pitch-soft); }
.prow.drop-target { border-color: var(--focus); box-shadow: 0 0 0 4px var(--focus); }

/* Plan card */
.plan { border: 3px solid var(--line); }
.plan.live { border-color: var(--pitch); }
.plan .eyebrow { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.plan.live .eyebrow { color: var(--pitch-text); }
.pairs { display: flex; flex-direction: column; gap: var(--sp-2); }
.pair { font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pair .for { font-family: var(--body); font-size: 15px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.pair .on { color: var(--pitch-text); }
.pair .off { color: var(--amber-text); }
.plan .note { font-size: 16px; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .plan.live { animation: pulse 1.6s ease-in-out infinite; } }
@keyframes pulse { 0%, 100% { box-shadow: var(--shadow); } 50% { box-shadow: 0 0 0 6px var(--pitch-soft); } }

/* Banners */
.banner { border-radius: 14px; padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); }
.banner.check { background: var(--amber-soft); color: var(--ink); border: 3px solid var(--amber); }
.banner.warn { background: var(--red-soft); color: var(--ink); border: 3px solid var(--red); }
.banner.info { background: var(--pitch-soft); color: var(--ink); border: 3px solid var(--pitch); }
.banner .title { font-family: var(--display); font-size: 21px; font-weight: 700; }

/* Header bar */
.bar { position: sticky; top: 0; z-index: 5; background: var(--bg); padding-block: var(--sp-2) var(--sp-3); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--sp-3); border-bottom: 1px solid var(--hair); }
.bar.stats { grid-template-columns: 1fr 1fr; align-items: end; }
.stat { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; }
.stat .lab { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .val { font-family: var(--display); font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.stat .val.due { color: var(--pitch-text); }
.clock { font-family: var(--display); font-size: 50px; font-weight: 800; line-height: 1; }
.clock small { display: block; font-family: var(--body); font-size: 15px; font-weight: 700; color: var(--muted); margin-top: 4px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }

/* Setup */
.setting { display: flex; flex-direction: column; gap: var(--sp-2); }
.setting .lab { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stepper { display: grid; grid-template-columns: var(--ctl-l) 1fr var(--ctl-l); gap: var(--sp-2); align-items: center; }
.stepper .btn { min-height: var(--ctl-l); padding: 0; font-size: 22px; font-weight: 600; background: var(--surface); border-color: var(--hair); }
.stepper .val { text-align: center; font-family: var(--display); font-size: 22px; font-weight: 700; }
.rule { display: grid; grid-template-columns: 1fr auto; gap: var(--sp-3); align-items: center; padding: var(--sp-3) 0; border-bottom: 1px solid var(--hair); }
.rule:last-child { border-bottom: 0; }
.rule .kind { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.rule .who { font-family: var(--display); font-size: 19px; font-weight: 700; line-height: 1.15; }
.pick { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.pick .btn { min-height: var(--ctl-m); font-family: var(--display); font-size: 17px; font-weight: 700; padding-inline: var(--sp-4); }
.attend { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.attend .btn.here { justify-content: flex-start; font-family: var(--display); font-size: 26px; min-height: 56px; border: 2px solid var(--line); background: var(--surface); }
.attend .btn.here::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--line); flex: none; }
.attend .btn.here[aria-pressed="true"] { background: var(--pitch-soft); border-color: var(--pitch); color: var(--ink); }
.attend .btn.here[aria-pressed="true"]::before { background: var(--pitch); }
.calc { font-size: 17px; }
.calc b { font-family: var(--display); font-size: 20px; }
.calc.warn { color: var(--amber-text); border-left: 3px solid var(--amber); padding-left: var(--sp-3); }
.rule .cost { font-size: 13px; font-weight: 700; color: var(--amber-text); margin-top: var(--sp-1); }
.help { display: flex; flex-direction: column; gap: var(--sp-3); font-size: 16px; line-height: 1.5; }
.card > .muted, .screen > div > .muted { line-height: 1.5; }
.card p + p, .help p + p { margin-top: var(--sp-2); }
.help ol, .help ul { margin: 0; padding-left: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-2); }
textarea.link { font: inherit; font-size: 14px; width: 100%; min-height: 72px; border: 1.5px solid var(--hair); border-radius: 10px; padding: var(--sp-3); background: var(--surface); color: var(--ink); }

/* Sticky footer */
.foot { position: fixed; bottom: 0; left: 0; right: 0; padding: var(--sp-2) max(var(--sp-4), env(safe-area-inset-right)) calc(var(--sp-2) + env(safe-area-inset-bottom)) max(var(--sp-4), env(safe-area-inset-left)); background: var(--bg); box-shadow: 0 -6px 18px rgba(11, 18, 13, .06); z-index: 6; }
.foot .inner { max-width: 560px; margin: 0 auto; display: flex; gap: 8px; }
.foot .btn { flex: 1; }
.foot .btn.big { font-size: 20px; padding-inline: 8px; white-space: nowrap; }
.foot .btn.menu { flex: 0 0 76px; flex-direction: column; gap: 2px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.foot .btn.menu .ic { width: 24px; height: 24px; margin: 0; }

/* Menu sheet and pocket screen */
.sheet { position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, .45); display: flex; align-items: flex-end; justify-content: center; }
.sheet .panel { width: 100%; max-width: 560px; background: var(--surface); border-radius: 20px 20px 0 0; padding: var(--sp-4) var(--sp-4) calc(var(--sp-4) + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: var(--sp-2); box-shadow: var(--el-3); }
.sheet .panel .btn { justify-content: flex-start; gap: var(--sp-3); border-radius: 14px; min-height: var(--ctl-l); }
.pocket { position: fixed; inset: 0; z-index: 30; background: var(--pocket-bg); color: var(--pocket-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 24px; text-align: center; touch-action: none; }
.pocket .pclock { font-family: var(--display); font-size: 84px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.pocket .pcall { font-family: var(--display); font-size: 32px; font-weight: 700; line-height: 1.15; }
.pocket .pcall .on { color: var(--pocket-on); }
.pocket .pcall .off { color: var(--pocket-off); }
.pocket .pcall .for { color: var(--pocket-line); }
.pocket .phint { font-size: 17px; opacity: .85; }
.pocket .pbar { width: 60%; height: 8px; border-radius: 999px; background: var(--pocket-line); overflow: hidden; }
.pocket .pbar i { display: block; height: 100%; width: 0%; background: var(--pocket-on); }
.pocket.holding .pbar i { width: 100%; transition: width 1s linear; }

/* Summary */
table { width: 100%; border-collapse: collapse; }
td, th { padding: var(--sp-2) var(--sp-2); text-align: left; border-bottom: 1px solid var(--hair); }
th { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
td.name { font-family: var(--display); font-size: 19px; font-weight: 700; }
.bar-track { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--pitch); }
.toast { position: fixed; left: var(--sp-4); right: var(--sp-4); bottom: calc(110px + env(safe-area-inset-bottom)); z-index: 25; background: var(--ink); color: var(--bg); padding: var(--sp-3) var(--sp-4); box-shadow: var(--el-3); border-radius: 12px; font-weight: 600; text-align: center; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.toast .btn { background: var(--bg); color: var(--ink); min-height: 36px; }
select { font: inherit; font-size: 17px; padding: var(--sp-3) var(--sp-4); min-height: var(--ctl-l); border: 1.5px solid var(--hair); border-radius: 10px; background: var(--surface); color: var(--ink); width: 100%; min-width: 0; }

/* Single-pane game screen: field and bench side by side, calls and controls pinned in the thumb zone. */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); align-items: start; }
.col { display: flex; flex-direction: column; gap: var(--sp-2); }
.colhead { display: flex; justify-content: space-between; align-items: center; min-height: var(--sp-8); gap: var(--sp-2); }
.colhead h2 { font-size: 13px; letter-spacing: .08em; }
.colhead h2 .num { color: var(--ink); }
.btn.sm.size { min-height: 32px; padding: 0 var(--sp-3); font-size: 13px; font-family: var(--display); font-weight: 700; letter-spacing: .02em; }
.tiles { display: flex; flex-direction: column; gap: var(--sp-2); }
.tile { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--sp-1); padding: var(--sp-2) var(--sp-3) var(--sp-2) 0; min-height: 56px; border-radius: 14px; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--el-1); cursor: pointer; overflow: hidden;
  transition: border-color var(--t-base), box-shadow var(--t-base), background-color var(--t-base); }
.tile .btn.grip { width: 34px; min-width: 34px; min-height: 44px; color: var(--line); }
.tile .body { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; }
.tile .pname { font-size: 20px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.tile .pmeta { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.next-off { box-shadow: var(--el-1), inset 4px 0 0 var(--amber); } .tile.next-off .pmeta { color: var(--amber-text); }
.tile.next-on { box-shadow: var(--el-1), inset 4px 0 0 var(--pitch); } .tile.next-on .pmeta { color: var(--pitch-text); }
.tile.gk { background: var(--pitch-soft); } .tile.gk .pmeta { color: var(--pitch-text); }
.tile.away { background: var(--red-soft); box-shadow: var(--el-1), inset 4px 0 0 var(--red); } .tile.away .pmeta { color: var(--red-text); }
.tile.absent { background: transparent; border: 1.5px dashed var(--line); box-shadow: none; color: var(--muted); }
.tile.absent .pname { display: flex; align-items: center; gap: 6px; }
.tile.selected { box-shadow: 0 0 0 3px var(--focus); }
.tile.open { box-shadow: 0 0 0 3px rgba(29, 79, 176, .28); grid-template-rows: auto auto; }
.tile .acts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); padding: var(--sp-1) var(--sp-2) var(--sp-1) var(--sp-2); }
.tile .acts .btn { min-height: var(--ctl-m); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 4px 6px; gap: 4px; }
.tile .acts .btn .ic { width: 16px; height: 16px; margin: 0; }
.tile .acts .btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.hint { font-size: 14px; }
.zone.drop-over { box-shadow: 0 0 0 3px var(--pitch); background: var(--pitch-soft); }
.prow.ghost.tile { width: auto; }
/* Tiles carry the legacy .prow class for drag and tests; keep their borders hairline whatever the state. */
.prow.tile, .prow.tile.next-off, .prow.tile.next-on, .prow.tile.gk, .prow.tile.selected { border-width: 1px; border-color: var(--hair); }
.prow.tile.gk { background: var(--pitch-soft); }

/* Bottom block: call card + control bar */
.foot .inner { flex-direction: column; gap: var(--sp-2); }
.foot .fbar { display: flex; gap: var(--sp-2); }
.foot .fbar .btn { flex: 1; }
.foot .plan { padding: var(--sp-3) var(--sp-4); gap: var(--sp-2); border: 1px solid var(--hair); box-shadow: var(--el-2); }
.foot .plan.live { border-color: transparent; box-shadow: var(--el-2), inset 4px 0 0 var(--pitch); }
.foot .plan .eyebrow { font-size: 12px; }
.foot .plan .pair { font-size: 24px; }
.foot .plan .pairs { gap: var(--sp-1); }
.foot .plan .note { font-size: 14px; }
.foot .plan .row { gap: var(--sp-2); }
.foot .plan .row > .btn { min-height: var(--ctl-m); font-size: 15px; padding: var(--sp-1) var(--sp-3); border-radius: 999px; }
@media (prefers-reduced-motion: no-preference) { .foot .plan.live { animation: none; } }

/* Setup: attendance pills and collapsible sections */
.pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
.pills .btn.here { justify-content: flex-start; font-family: var(--display); font-size: 18px; min-height: var(--ctl-l); padding: var(--sp-1) var(--sp-4); border: 1.5px solid var(--hair); background: var(--surface); gap: var(--sp-2); overflow: hidden; }
.pills .btn.here > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pills .btn.here::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--line); flex: none; }
.pills .btn.here[aria-pressed="true"] { background: var(--pitch-soft); border-color: var(--pitch); color: var(--ink); }
.pills .btn.here[aria-pressed="true"]::before { background: var(--pitch); }
.pills .btn.here.rm { border-color: var(--red); background: var(--red-soft); color: var(--red-text); }
.pills .btn.here.rm::before { display: none; }
details.sect > summary { list-style: none; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--sp-3); cursor: pointer; min-height: var(--sp-8); }
details.sect > summary::-webkit-details-marker { display: none; }
details.sect > summary .sum { font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
details.sect > summary .chev { width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform var(--t-base); }
details.sect[open] > summary .chev { transform: rotate(45deg); }
details.sect[open] > summary .sum { display: none; }
details.sect[open] > summary { margin-bottom: var(--sp-1); }

/* Pocket ring */
.pocket .ring { position: relative; width: 240px; height: 240px; display: flex; align-items: center; justify-content: center; }
.pocket .ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.pocket .ring .lbl { font-size: 13px; font-weight: 700; color: var(--pocket-line); letter-spacing: .1em; text-transform: uppercase; }
.pocket .ring .pclock { font-size: 60px; }
.pocket .ptop { font-size: 15px; font-weight: 700; color: var(--pocket-line); letter-spacing: .1em; text-transform: uppercase; }

/* Round controls under the call card */
.ctrl { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; justify-items: center; gap: var(--sp-2); padding-top: var(--sp-1); }
.rbtn { display: inline-flex; flex-direction: column; align-items: center; gap: var(--sp-1); padding: var(--sp-1) var(--sp-2); background: none; border: 0; color: var(--ink); min-width: 72px; }
.rbtn .circ { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--el-1); transition: transform var(--t-fast), box-shadow var(--t-base); }
.rbtn .circ .ic { width: 24px; height: 24px; }
.rbtn .rlbl { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.rbtn.main .circ { width: 76px; height: 76px; background: var(--accent); color: var(--accent-ink); border: 0; box-shadow: var(--glow); }
.rbtn.main .circ .ic { width: 34px; height: 34px; }
.rbtn.main .rlbl { color: var(--ink); }
.rbtn:not([disabled]):active .circ { transform: scale(.94); }
.rbtn[disabled] { opacity: .45; }
.rbtn:focus-visible { outline: none; } .rbtn:focus-visible .circ { outline: 3px solid var(--focus); outline-offset: 2px; }
.rbtn.side { padding-top: var(--sp-3); }
/* Rule kinds as a vertical list */
#ruleForm { margin-top: var(--sp-3); padding-top: var(--sp-4); border-top: 1px solid var(--hair); }
.kinds { display: flex; flex-direction: column; gap: var(--sp-2); }
.kinds .btn { justify-content: flex-start; text-align: left; min-height: var(--ctl-l); font-size: 16px; font-weight: 600; border: 1.5px solid var(--hair); background: var(--surface); border-radius: 14px; }
.kinds .btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ruleform-hint { font-size: 15px; }
