/* Padel: the frame around the sessions (bar, login, list). Navy and court blue, taken from the sketches.
   The session itself sits on a white sheet in both themes, like the printout (session.css). */
:root {
  --paper: #eef2f6; --surface: #ffffff; --surface-2: #e3eaf1;
  --ink: #1b2430; --ink-2: #44505e; --ink-3: #5b6573;
  --line: #d5dce4; --line-strong: #b8c3cf;
  --brand: #1b2430; --on-brand: #ffffff;
  --primary: #1f5f9e; --on-primary: #ffffff;
  --accent: #1f5f9e; --accent-soft: #e0eaf5;
  --danger: #b3261e;
  --shadow: 0 1px 2px rgba(27, 36, 48, .06), 0 10px 26px -18px rgba(27, 36, 48, .4);
  --head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --bar-h: 60px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d1217; --surface: #151c23; --surface-2: #1b232b;
    --ink: #e3e9ef; --ink-2: #b8c4cf; --ink-3: #98a5b2;
    --line: #2b353f; --line-strong: #3d4955;
    --brand: #0a0f14;
    --primary: #2f74b8; --accent: #75ace3; --accent-soft: #1a2a3a;
    --danger: #f08279;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 30px -20px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.5 var(--body); -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
h1, h2, h3 { font-family: var(--head); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1; font-weight: 700; text-transform: uppercase; }
h2 { font-size: clamp(1.45rem, 4.2vw, 1.9rem); line-height: 1.05; font-weight: 700; text-transform: uppercase; }
h3 { font-size: 1.3rem; line-height: 1.1; font-weight: 600; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.eyebrow {
  font-family: var(--head); font-size: .9rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600;
}
.muted { color: var(--ink-2); }
.pad { padding: 24px 0; }
.loading { color: var(--ink-3); padding: 40px 0; }

/* ── Top bar ── */
.bar {
  position: sticky; top: 0; z-index: 5;
  background: var(--brand); color: var(--on-brand);
  padding-top: env(safe-area-inset-top, 0px);
  box-shadow: 0 3px 0 var(--primary);
  margin-bottom: 3px;
}
.bar-in {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1000px; margin: 0 auto; min-height: var(--bar-h); padding: 8px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.brand img { flex: none; }
.brand .name { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand .name b { font-family: var(--head); font-size: 1.45rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.brand .name small { font-family: var(--head); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; white-space: nowrap; }
.bar-end { display: flex; align-items: center; gap: 14px; }
.bar-link { color: inherit; font: 700 1rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; opacity: .9; }
.bar-link:hover { opacity: 1; text-decoration: underline; }
.lang { display: flex; border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 999px; overflow: hidden; }
.lang button {
  min-width: 46px; min-height: 38px; padding: 0 12px; border: 0; background: transparent; color: inherit;
  font: 700 .95rem/1 var(--head); letter-spacing: .08em; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: #ffffff; color: var(--brand); }

main { max-width: 1000px; margin: 0 auto; padding: 24px 16px 96px; }
@media (min-width: 900px) { main { padding: 36px 32px 110px; } }

/* ── Buttons & fields ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px;
  border: 1.5px solid var(--primary); border-radius: 4px; background: var(--primary); color: var(--on-primary);
  font: 700 1.1rem/1 var(--head); letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn.small { min-height: 42px; padding: 0 16px; font-size: 1rem; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field span { font-family: var(--head); font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.field input {
  min-height: 54px; padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: 4px;
  background: var(--surface); color: var(--ink); font: 1.2rem var(--body);
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea, .field select, .search, .drills input[type="search"] {
  padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: 4px;
  background: var(--surface); color: var(--ink); font: 1.05rem/1.4 var(--body);
}
.field select { min-height: 54px; }
.field textarea { resize: vertical; min-height: 84px; }
.field textarea:focus, .field select:focus, .drills input[type="search"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hint { color: var(--ink-3); font-size: .9rem; }
.sub.note { margin-top: 8px; }
.error { color: var(--danger); min-height: 1.4em; font-weight: 600; }

/* ── Login ── */
.login {
  display: flex; flex-direction: column; gap: 12px; max-width: 480px; margin: 4vh auto 0;
  padding: 28px 24px 30px; background: var(--surface); border: 1px solid var(--line);
  border-top: 6px solid var(--primary); border-radius: 6px; box-shadow: var(--shadow);
}
.login .muted { font-size: 1.1rem; }
.login-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.login-box { display: flex; flex-direction: column; gap: 10px; }
.login-box > .seg { display: flex; }
.login-box > .seg button { flex: 1; }
.login-form .link-btn.neutral { align-self: center; }
.login-section .email-form, .login-section .password-form { margin-top: 4px; }
.account-email .tag { margin-left: 8px; }

/* ── List ── */
.block { margin-top: 34px; }
.block:first-child { margin-top: 4px; }
.sec-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.cards { display: grid; gap: 12px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card {
  display: grid; grid-template-columns: 68px 1fr; gap: 14px; padding: 14px;
  background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--primary); border-radius: 5px;
  box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform .12s;
}
.card:hover { transform: translateY(-1px); }
.cal {
  display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: start;
  min-height: 74px; border-radius: 4px; background: var(--brand); color: #ffffff; padding: 7px 0 8px;
  box-shadow: inset 0 -4px 0 var(--primary);
}
.cal span { font-family: var(--head); font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.cal b { font-family: var(--head); font-size: 2.1rem; line-height: .95; font-weight: 700; }
.card-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.card-body .eyebrow { color: var(--accent); }
.card-body h3 { font-size: 1.45rem; text-transform: uppercase; font-weight: 700; }
.sub { color: var(--ink-3); font-size: .95rem; }

.sec-head.split { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.sec-head.split > div { display: flex; flex-direction: column; gap: 6px; }
.card .where { color: var(--ink-2); }

/* ── One session ── */
.tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tool-buttons { display: flex; gap: 8px; }
.back { font-weight: 600; text-decoration: none; }
.sheet {
  background: #ffffff; color: #1b2430; border: 1px solid var(--line); border-radius: 6px;
  padding: 20px 16px 28px; box-shadow: var(--shadow); font-size: 16px;
}
@media (min-width: 700px) { .sheet { padding: 32px 36px 40px; } }
.sheet a { color: #1f5f9e; }

/* ── The session form and the drill bank ── */
.editor { display: flex; flex-direction: column; gap: 16px; max-width: 860px; }
.editor h2 { font-size: 1.4rem; margin-top: 10px; }
.editor h3 { font-family: var(--head); font-size: 1.2rem; text-transform: uppercase; margin-top: 14px; }
.grid2, .grid3 { display: grid; gap: 14px; }
@media (min-width: 640px) {
  .grid2 { grid-template-columns: 1fr 1fr; }
  .grid3 { grid-template-columns: 1.3fr 1fr 1fr; }
}
.participants { display: flex; flex-direction: column; gap: 10px; }
.checks { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.checks legend { padding: 0; margin-bottom: 6px; font-family: var(--head); font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.check {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--surface); cursor: pointer; font-weight: 600;
}
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.check:has(input:checked) { border-color: var(--primary); background: var(--accent-soft); }
.drills { display: flex; flex-direction: column; gap: 10px; }
.picked-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.picked-list li {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 5px;
}
.picked-list .n {
  display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 5px;
  background: var(--brand); color: #ffffff; font: 700 .95rem var(--head);
}
.picked-list .what { flex: 1; min-width: 0; font-weight: 600; }
.picked-list .min { width: 64px; min-height: 38px; padding: 0 8px; border: 1.5px solid var(--line-strong); border-radius: 4px; background: var(--surface); color: var(--ink); font: 1rem var(--body); }
.picked-list .unit { color: var(--ink-3); font-size: .9rem; }
.icon {
  width: 36px; height: 36px; flex: none; border: 1px solid var(--line-strong); border-radius: 4px;
  background: var(--surface); color: var(--ink); font-size: 1rem; cursor: pointer;
}
.icon:disabled { opacity: .35; cursor: default; }
.bank-list { display: flex; flex-direction: column; gap: 14px; }
.bank-group h4 { margin: 0 0 6px; font-family: var(--head); font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.drill {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 12px; margin-bottom: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 5px;
}
.drill .preview { color: var(--ink-2); font-size: .92rem; margin-top: 2px; }
.drill .btn:disabled { opacity: .55; cursor: default; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }

/* ── People and codes ── */
.admin { max-width: 760px; }
.person-form { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 640px) { .person-form { grid-template-columns: 1fr 180px auto; align-items: end; } }
.people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.person { padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; }
.person-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.code-list { list-style: none; margin: 10px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.code-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.link-btn { border: 0; background: none; color: var(--danger); font: 600 .95rem var(--body); cursor: pointer; padding: 4px 0; }
.fresh { margin-top: 12px; padding: 12px 14px; border-left: 4px solid var(--primary); background: var(--accent-soft); border-radius: 4px; display: flex; flex-direction: column; gap: 8px; }
.fresh .code { font-family: ui-monospace, Consolas, monospace; font-size: 1.1rem; }
.copy-row { display: flex; gap: 8px; }
.copy-row .link {
  flex: 1; min-width: 0; min-height: 42px; padding: 0 10px; border: 1.5px solid var(--line-strong); border-radius: 4px;
  background: var(--surface); color: var(--ink); font: .95rem ui-monospace, Consolas, monospace;
}

/* ── Videos in the session form ── */
.videos { display: flex; flex-direction: column; gap: 10px; }
.videos-edit { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.video-row {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: start; width: 100%;
  padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px;
}
.video-thumb { width: 96px; height: 54px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.video-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-fields { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.video-fields .field input, .video-fields .field select { min-height: 44px; font-size: 1rem; }
@media (max-width: 600px) {
  .video-row { grid-template-columns: 1fr auto; }
  .video-thumb { grid-column: 1 / -1; width: 128px; height: 72px; }
  .video-thumb:empty { display: none; }
}

/* ── Clubs and sharing ── */
.tag {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; vertical-align: middle;
  background: var(--accent-soft); color: var(--accent); font: 700 .75rem var(--head); letter-spacing: .08em; text-transform: uppercase;
}
.shared-banner { margin: 0 0 12px; padding: 10px 14px; border-left: 4px solid var(--primary); background: var(--accent-soft); border-radius: 4px; font-weight: 600; }
.inactive-banner { border-left-color: var(--ink-3); background: var(--surface-2); }
.card.inactive { border-left-color: var(--line-strong); opacity: .85; }
.tag.muted-tag { background: var(--surface-2); color: var(--ink-3); }
.archive > summary { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; cursor: pointer; list-style: none; }
.archive > summary::-webkit-details-marker { display: none; }
.archive > summary h2::after { content: " ▸"; color: var(--ink-3); }
.archive[open] > summary h2::after { content: " ▾"; }
.archive > .sub { margin-bottom: 12px; }
.sharing { display: flex; flex-direction: column; gap: 10px; }
.club-list { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.club {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 5px; color: var(--ink); font: 1rem var(--body);
}
.club small { color: var(--ink-3); }
.club[aria-current="true"] { border-color: var(--primary); box-shadow: inset 3px 0 0 var(--primary); cursor: default; }
.club-cards { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 28px; }
.club-card { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; }
.club-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.club-card .field input, .club-card .field textarea { min-height: 44px; font-size: 1rem; }
.club-new { max-width: none; }
.admins-edit { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.field-label { font-family: var(--head); font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.admins-edit select, .globals select { flex: 1 1 200px; min-height: 42px; padding: 0 10px; border: 1.5px solid var(--line-strong); border-radius: 4px; background: var(--surface); color: var(--ink); font: 1rem var(--body); }
.guest-chip .x:disabled { opacity: .3; cursor: default; }
.globals { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.person-links { display: flex; gap: 16px; flex-wrap: wrap; }
.person-form.existing { margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }

/* ── Players rate the drills ── */
.rate-panel { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: 5px; }
.rate-panel h2 { font-size: 1.3rem; }
.rate-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 6px 0; border-top: 1px solid var(--line); }
.rate-name { font-weight: 600; flex: 1 1 200px; }
.stars { display: flex; gap: 4px; }
.stars button {
  width: 42px; height: 42px; border: 1.5px solid var(--line-strong); border-radius: 4px; background: var(--surface);
  color: var(--ink-3); font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.stars button.on { color: #d9a400; border-color: #d9a400; background: var(--accent-soft); }
.rate-avg { font-weight: 700; color: var(--accent); }
.rate-by { flex-basis: 100%; color: var(--ink-3); }
@media print { .rate-panel { display: none !important; } }

/* ── Claude connectors on My account ── */
.mcp .fresh { width: 100%; }
.mcp-form { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; width: 100%; }
.mcp-form .field { flex: 1 1 220px; }
.mcp-form .field input { min-height: 44px; font-size: 1rem; }
.mcp .code-list { width: 100%; }

/* ── Modules (tabs under the bar) ── */
.modules { display: flex; gap: 4px; max-width: 1000px; margin: 0 auto; padding: 0 16px; overflow-x: auto; }
.modules a {
  padding: 8px 14px 9px; color: rgba(255, 255, 255, .78); text-decoration: none; white-space: nowrap;
  font: 700 .95rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; border-bottom: 3px solid transparent;
}
.modules a:hover { color: #ffffff; }
.modules a[aria-current="page"] { color: #ffffff; border-bottom-color: #ffffff; }
.modules[hidden] { display: none; }
@media (max-width: 420px) {
  .brand .name b { font-size: 1.2rem; }
  .brand img { width: 28px; height: 28px; }
}

/* ── Your account ── */
.me-link { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-weight: 600; }
.me-link .mk-chip { width: 34px; height: 34px; font-size: 1rem; }
.me-link:hover .me-name { text-decoration: underline; }
@media (max-width: 600px) {
  .me-name { display: none; }
  .bar-end { gap: 10px; }
}
.account { max-width: 640px; }
.account-more { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 640px; }
.link-btn.neutral { color: var(--accent); margin-top: 6px; }
.name-form { display: grid; gap: 10px; margin-top: 10px; }
@media (min-width: 640px) { .name-form { grid-template-columns: 1fr 1fr auto; align-items: end; } }
.name-form .field input { min-height: 44px; font-size: 1rem; }
.name-actions { display: flex; gap: 8px; }

/* ── Roles and taking part ── */
.role-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip {
  min-height: 34px; padding: 0 12px; border: 1.5px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--ink-2); font: 600 .9rem var(--body); cursor: pointer;
}
.chip[aria-pressed="true"] { border-color: var(--primary); background: var(--accent-soft); color: var(--accent); }
.chip:disabled { cursor: default; opacity: .75; }
.parts { display: flex; flex-direction: column; gap: 6px; }
.part {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 6px 6px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 5px;
}
.part-name { display: flex; flex-direction: column; font-weight: 600; min-width: 0; }
.part-name small { color: var(--ink-3); font-weight: 400; }
.part .seg button { min-width: 76px; min-height: 40px; }
@media (min-width: 640px) { .person-form { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .person-form { grid-template-columns: 1fr 1fr auto auto; } }
.mk-chip.big { width: 52px; height: 52px; font-size: 1.4rem; border-width: 2.5px; flex: none; }

/* ── Players ── */
.avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.avatar.big { width: 84px; height: 84px; }
.avatar.initials { display: grid; place-items: center; background: var(--primary); color: #ffffff; font: 700 1.05rem var(--head); letter-spacing: .04em; }
.avatar.big.initials { font-size: 1.9rem; }
.avatar-link { flex: none; display: flex; text-decoration: none; }
.person-head .who { flex: 1; min-width: 0; }
.name-link { font-weight: 700; color: var(--ink); }
.score {
  display: grid; place-items: center; min-width: 48px; height: 40px; padding: 0 8px; border-radius: 5px;
  background: var(--accent-soft); color: var(--accent); font: 700 1.3rem var(--head);
}
.player-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.photo-row { display: flex; align-items: center; gap: 16px; }
.photo-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1.5px solid var(--line-strong); border-radius: 4px; overflow: hidden; align-self: flex-start; }
.seg button {
  min-width: 84px; min-height: 46px; padding: 0 14px; border: 0; border-right: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font: 600 1rem var(--body); cursor: pointer;
}
.seg button:last-child { border-right: 0; }
.seg button[aria-checked="true"] { background: var(--primary); color: var(--on-primary); }
.scores { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.overall {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 110px; padding: 10px 14px;
  border-radius: 6px; background: var(--brand); color: #ffffff;
}
.overall span, .overall small { font-family: var(--head); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.overall b { font: 700 2.4rem/1 var(--head); }
.cat-scores { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.cat-scores li {
  display: flex; flex-direction: column; justify-content: center; min-width: 96px; padding: 8px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
}
.cat-scores span { font-size: .85rem; color: var(--ink-3); }
.cat-scores b { font: 700 1.4rem var(--head); }
.skills { display: flex; flex-direction: column; gap: 14px; }
.skill-cat { display: flex; flex-direction: column; gap: 8px; }
.skill-cat h3 { margin: 6px 0 0; }
.skill {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 5px;
}
.skill-name { display: flex; flex-direction: column; }
.skill-name small { color: var(--ink-3); }
.skill .value { font: 700 1.4rem var(--head); text-align: right; min-width: 28px; }
.rating { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.rating button {
  min-height: 38px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface);
  color: var(--ink-2); font: 700 .95rem var(--head); cursor: pointer;
}
.rating button.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.rating button[aria-checked="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
@media (min-width: 760px) {
  .skill { grid-template-columns: 170px 1fr 36px; }
  .rating { grid-column: auto; }
}
.weight { display: grid; grid-template-columns: 1fr 2fr 56px; align-items: center; gap: 12px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; }
.weight span { font-weight: 600; }
.weight input { width: 100%; accent-color: var(--primary); }
.weight output { font: 700 1.1rem var(--head); text-align: right; }
.ok { color: var(--accent); font-weight: 600; min-height: 1.2em; }

/* ── The sketch editor ── */
.sk .tools { position: sticky; top: calc(var(--bar-h) + env(safe-area-inset-top, 0px)); z-index: 3; background: var(--paper); padding: 6px 0; }
.save-status { font-weight: 600; color: var(--ink-3); font-size: .95rem; }
.save-status[data-state="savedOk"] { color: var(--accent); }
.save-status[data-state="saveError"], .save-status[data-state="sketchConflict"] { color: var(--danger); }
.sk-layout { display: grid; gap: 16px; }
@media (min-width: 900px) { .sk-layout { grid-template-columns: 230px minmax(0, 1fr); align-items: start; } }
.sk-rail { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
@media (min-width: 900px) { .sk-rail { flex-direction: column; overflow: visible; position: sticky; top: calc(var(--bar-h) + 56px); } }
.sk-ex {
  display: flex; align-items: center; gap: 10px; flex: none; min-width: 180px; padding: 8px 10px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: 5px; color: var(--ink); font: 600 .95rem var(--body); cursor: pointer;
}
.sk-ex[aria-current="true"] { border-color: var(--primary); box-shadow: inset 3px 0 0 var(--primary); }
.sk-ex-name { display: flex; flex-direction: column; min-width: 0; }
.sk-ex-name small { color: var(--ink-3); font-weight: 400; }
.sk-nobadge { width: 1.35em; flex: none; }
.sk-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sk-head { display: flex; flex-direction: column; gap: 6px; }
.sk-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.sk-tab {
  min-height: 38px; padding: 0 14px; border: 1.5px solid var(--line-strong); border-radius: 4px;
  background: var(--surface); color: var(--ink); font: 600 .95rem var(--body); cursor: pointer;
}
.sk-tab[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.sk-tab.sk-add { border-style: dashed; color: var(--accent); }
.sk-opts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; }
.sk-opts .seg { display: grid; grid-template-columns: repeat(3, 1fr); flex: 1 1 320px; }
.sk-opts .seg button { min-width: 0; min-height: 44px; padding: 0 8px; font-size: .9rem; line-height: 1.15; }
@media (max-width: 600px) {
  .tbtn { min-width: 44px; min-height: 48px; padding: 3px 4px; }
  .tbtn .lbl { font-size: .66rem; }
  .sk-toolbar { gap: 6px; }
}
.sk-main .grid2 .field input { min-height: 44px; font-size: 1rem; }
.sk-toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-group { display: flex; gap: 3px; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.tbtn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 52px; min-height: 52px;
  padding: 4px 6px; border: 0; border-radius: 4px; background: transparent; color: var(--ink); cursor: pointer;
}
.tbtn .ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tbtn .lbl { font-size: .72rem; font-weight: 600; white-space: nowrap; }
.tbtn[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.tbtn:disabled { opacity: .35; cursor: default; }
.mk-chip {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #ffffff;
  color: #ffffff; font: 700 .8rem var(--head); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15);
}
.mk-C { background: #1b2430; } .mk-M { background: #2a7b87; } .mk-T { background: #7a5da8; } .mk-P { background: #5b7aa6; }
.mk-ball { width: 14px; height: 14px; background: #ecd94a; border-color: #8a7a10; }
.tbtn.swatch { min-width: 40px; }
.tbtn.swatch span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-strong); }
.tbtn.swatch[aria-pressed="true"] { background: var(--accent-soft); }
.sk-host { display: flex; justify-content: center; }
.sk-stage { width: 100%; display: flex; justify-content: center; touch-action: none; user-select: none; -webkit-user-select: none; }
.sk-stage svg { display: block; border-radius: 4px; box-shadow: var(--shadow); }
.sk-stage[data-tool="move"] { cursor: grab; }
.sk-stage[data-tool="erase"] { cursor: not-allowed; }
.sk-stage:not([data-tool="move"]):not([data-tool="erase"]) { cursor: crosshair; }
.legend { max-width: 70ch; }

/* ── Competition ── */
.game-card { border-left-color: var(--line-strong); }
.game-card.is-running { border-left-color: var(--primary); }
.type-cards { display: grid; gap: 8px; }
@media (min-width: 640px) { .type-cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.type-card {
  display: flex; flex-direction: column; gap: 3px; padding: 10px 14px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 5px; color: var(--ink); font: 1rem var(--body);
}
.type-card b { font: 700 1.15rem var(--head); letter-spacing: .04em; text-transform: uppercase; }
.type-card small { color: var(--ink-3); font-size: .9rem; line-height: 1.35; }
.type-card[aria-checked="true"] { border-color: var(--primary); background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--primary); }
.game-section, .game-teams, .game-options { display: flex; flex-direction: column; gap: 10px; }
.game-options .seg button { min-width: 0; }
.guests { display: flex; flex-wrap: wrap; gap: 6px; }
.guests:empty { display: none; }
.guest-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 4px 0 12px;
  border: 1.5px solid var(--primary); border-radius: 999px; background: var(--accent-soft); font-weight: 600; font-size: .9rem;
}
.guest-chip small { color: var(--ink-3); font-weight: 400; }
.guest-chip .x { width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; }
.guest-add { display: flex; flex-wrap: wrap; gap: 8px; }
.guest-add input {
  flex: 1 1 200px; min-height: 42px; padding: 0 12px; border: 1.5px solid var(--line-strong); border-radius: 4px;
  background: var(--surface); color: var(--ink); font: 1rem var(--body);
}
.team-list .pair { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; min-width: 0; }
.team-list select {
  min-width: 0; min-height: 40px; padding: 0 8px; border: 1.5px solid var(--line-strong); border-radius: 4px;
  background: var(--surface); color: var(--ink); font: .95rem var(--body);
}
@media (max-width: 520px) { .team-list .pair { grid-template-columns: 1fr; } }
.tool-buttons.wrap { flex-wrap: wrap; }
.game-head .sub { color: var(--ink-2); }
.game-roster { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.game-roster li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; font-weight: 600; }
.game-roster small { color: var(--ink-3); font-weight: 400; }
.game-roster .n {
  display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 5px;
  background: var(--brand); color: #ffffff; font: 700 .95rem var(--head);
}
.game-actions { flex-wrap: wrap; margin-top: 24px; }
.champion { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.champion p {
  display: flex; flex-direction: column; padding: 10px 16px; border-radius: 6px;
  background: var(--brand); color: #ffffff; box-shadow: inset 0 -4px 0 var(--primary);
}
.champion span { font: 600 .85rem var(--head); letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.champion b { font: 700 1.5rem/1.1 var(--head); text-transform: uppercase; }
.game-progress { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; margin-bottom: 12px; }
.next-round { margin: 4px 0 16px; }
.game-tabs { display: flex; margin-bottom: 16px; }
.game-tabs button { flex: 1; min-width: 0; padding: 4px 6px; line-height: 1.1; white-space: normal; }
.game-tabs button[aria-selected="true"] { background: var(--primary); color: var(--on-primary); }
.round { margin-bottom: 20px; scroll-margin-top: calc(var(--bar-h) + 52px + env(safe-area-inset-top, 0px)); }
.round h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 8px; text-transform: uppercase; }
.round h3 small { font-size: .95rem; color: var(--ink-3); letter-spacing: .04em; }
.round.current h3 { color: var(--accent); }
.match-list { display: grid; gap: 8px; }
@media (min-width: 700px) { .match-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.match {
  display: flex; flex-direction: column; padding: 8px 12px 10px; background: var(--surface);
  border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: 5px;
}
.round.current .match:not(.done) { border-left-color: var(--primary); }
.match.editable { cursor: pointer; }
.match.editable:hover { border-color: var(--line-strong); }
.mh {
  display: flex; justify-content: space-between; gap: 8px; min-height: 1.2em; margin-bottom: 4px;
  font: 600 .8rem var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.mh .court { color: var(--accent); }
.ml { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; }
.ml + .ml { border-top: 1px solid var(--line); }
.ml .who { min-width: 0; overflow-wrap: anywhere; }
.ml.win .who { font-weight: 700; }
.ml.tbd .who { color: var(--ink-3); font-style: italic; }
.ml .sets { display: flex; gap: 4px; flex: none; }
.ml .sets b {
  display: grid; place-items: center; min-width: 30px; height: 28px; padding: 0 4px; border-radius: 4px;
  background: var(--surface-2); font: 700 1.05rem var(--head);
}
.ml.win .sets b { background: var(--accent-soft); color: var(--accent); }
.match.bye { opacity: .75; }
.match.bye .sets { color: var(--ink-3); font-size: .9rem; }
.score-edit { gap: 10px; padding: 12px; background: var(--surface); border: 1.5px solid var(--primary); border-radius: 5px; }
.match-list .score-edit { grid-column: 1 / -1; }
.score-grid { display: grid; grid-template-columns: max-content minmax(0, 1fr) minmax(0, 1fr); gap: 8px 10px; align-items: center; max-width: 420px; }
.score-grid .who { font-weight: 600; overflow-wrap: anywhere; text-align: center; font-size: .95rem; }
.score-grid input {
  width: 100%; min-height: 48px; padding: 0 6px; text-align: center; border: 1.5px solid var(--line-strong); border-radius: 4px;
  background: var(--surface); color: var(--ink); font: 700 1.3rem var(--head);
}
.score-grid input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.score-edit .form-actions { flex-wrap: wrap; margin-top: 0; }
.sitting { margin-top: 6px; }
.table-wrap { overflow-x: auto; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; }
.standings { width: 100%; border-collapse: collapse; font-size: .95rem; }
.standings th, .standings td { padding: 8px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.standings th { font: 600 .8rem var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.standings .name { width: 100%; text-align: left; white-space: normal; }
.standings td.name small { color: var(--ink-3); }
.standings .pts { font-weight: 700; }
.standings tr:last-child td { border-bottom: 0; }
.standings tr.through td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
.group-table h3 { margin-bottom: 8px; text-transform: uppercase; }
@media print { .game-actions, .game-tabs, .next-round, .score-edit, .subnav, .mine-toggle { display: none !important; } }

/* ── Competition: the parts, the order of play, my schedule, the standings ── */
.subnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.subnav a {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1.5px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--ink-2); font: 600 .95rem var(--body); text-decoration: none;
}
.subnav a[aria-current="page"] { border-color: var(--primary); background: var(--accent-soft); color: var(--accent); }
.round h3 .at { color: var(--accent); }
.mine-toggle { margin-bottom: 12px; }
.order-note { margin-bottom: 8px; }
.order { width: 100%; border-collapse: collapse; font-size: .92rem; }
.order th, .order td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.order thead th { font: 600 .8rem var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.order tbody th { white-space: nowrap; }
.order tbody th b { display: block; font: 700 .95rem var(--head); text-transform: uppercase; }
.order tbody th span { color: var(--accent); font-weight: 700; }
.order td { min-width: 150px; }
.order td small { display: block; font: 600 .75rem var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.order .o-side { display: block; }
.order .o-side.win { font-weight: 700; }
.order .o-score { display: block; margin: 1px 0; color: var(--ink-3); font: 700 .9rem var(--head); }
.order td.mine { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--primary); }
.order td.later { color: var(--ink-3); font-style: italic; }
.order td.sit { min-width: 100px; color: var(--ink-3); }
.order tr:last-child > * { border-bottom: 0; }
.order tr > :last-child { border-right: 0; }
.sched-list { display: grid; gap: 12px; }
.sched-item h3 a { color: inherit; text-decoration: none; }
.sched-game { border-left-color: var(--line-strong); }
.sched-game.is-running { border-left-color: var(--primary); }
.my-matches { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.my-matches li {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 2px 10px; align-items: baseline;
  padding: 6px 8px; border-radius: 4px; background: var(--surface-2); font-size: .95rem;
}
.my-matches .at { font: 700 1rem var(--head); color: var(--ink-2); }
.my-matches li.next { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--primary); }
.my-matches li.sit { color: var(--ink-3); }
.my-matches .res { font: 700 .95rem var(--head); white-space: nowrap; }
.my-matches .res.won { color: var(--accent); }
.my-matches .res.lost { color: var(--ink-3); }
.next-tag { font: 700 .8rem var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.record { font-weight: 600; color: var(--ink-2); }
@media (max-width: 480px) {
  .my-matches li { grid-template-columns: 44px minmax(0, 1fr); }
  .my-matches .res, .my-matches .next-tag { grid-column: 2; }
}
.filters { max-width: 560px; margin: 14px 0; }
.external { display: flex; flex-direction: column; gap: 12px; }
.external .field input { min-height: 48px; font-size: 1.05rem; }
.external-form { margin-top: 28px; }
.external-id { display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.ext-link:empty { display: none; }
.rankings-edit { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ranking-row { display: grid; grid-template-columns: minmax(0, 2fr) 96px 96px 150px auto; gap: 6px; width: 100%; }
.ranking-row input {
  min-width: 0; min-height: 44px; padding: 0 10px; border: 1.5px solid var(--line-strong); border-radius: 4px;
  background: var(--surface); color: var(--ink); font: 1rem var(--body);
}
@media (max-width: 600px) {
  .ranking-row { grid-template-columns: 1fr 1fr auto; }
  .ranking-row input:first-child { grid-column: 1 / -1; }
  .ranking-row input[type="date"] { grid-column: 1 / 3; }
}
.standings tr.me td { background: var(--accent-soft); }
@media (max-width: 520px) { .rankings-view .standings .opt { display: none; } }
.rank-lists { display: flex; margin: 8px 0 14px; }
.rank-lists button { flex: 1; min-width: 0; }
.rank-lists button[aria-selected="true"] { background: var(--primary); color: var(--on-primary); }
.rank-caption { caption-side: top; padding: 10px 8px 4px; text-align: left; font: 600 .85rem var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.rankings-view td.name small { display: block; color: var(--ink-3); }
.change { font-weight: 700; color: var(--ink-3); }
.change.up { color: var(--accent); }
.unranked li { justify-content: space-between; flex-wrap: wrap; }
.unranked .who { display: flex; flex-direction: column; }
.unranked .who small { color: var(--ink-3); font-weight: 400; }
.rankings-view > .sub:last-child { margin-top: 16px; }
@media (max-width: 520px) { .standings-view .standings .opt { display: none; } }
.tools.wrap { flex-wrap: wrap; }
.tools.wrap .tool-buttons { flex-wrap: wrap; }

/* ── Courts, the next matches, entering a result ── */
.part-title { margin: 6px 0 8px; text-transform: uppercase; }
.court-cards { display: grid; gap: 10px; margin-bottom: 16px; }
@media (min-width: 700px) { .court-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.court-card { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; }
.court-card.busy { border-color: var(--primary); }
.court-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.court-head b { font: 700 1.1rem var(--head); text-transform: uppercase; letter-spacing: .04em; }
.court-head span { color: var(--ink-3); font-size: .9rem; }
.court-card.busy .court-head span { color: var(--accent); font-weight: 600; }
.court-next { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; border-top: 1px dashed var(--line-strong); font-size: .92rem; }
.court-next span:first-child { font: 600 .8rem var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.match.live { border-left-color: var(--primary); }
.match .score-btn { align-self: flex-start; margin-top: 8px; }
.queue { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.queue-row {
  display: grid; grid-template-columns: 64px 80px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center;
  padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px;
}
.queue-row.tbd .q-who { color: var(--ink-3); font-style: italic; }
.q-at { font: 700 1rem var(--head); color: var(--accent); white-space: nowrap; }
.q-court { color: var(--ink-3); font-size: .9rem; white-space: nowrap; }
.q-who { min-width: 0; overflow-wrap: anywhere; }
.q-who small { display: block; color: var(--ink-3); font-style: normal; }
@media (max-width: 560px) {
  .queue-row { grid-template-columns: 64px minmax(0, 1fr); }
  .queue-row .q-court { grid-column: 2; grid-row: 1; }
  .queue-row .q-who { grid-column: 1 / -1; }
  .queue-row .btn { grid-column: 1 / -1; justify-self: start; }
}
.score-li { list-style: none; }
.score-title { font-weight: 700; }
.set-head { font: 600 .75rem var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.match-format { display: flex; flex-direction: column; gap: 10px; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 5px; }
.order.dyn tr.now th, .order.dyn tr.now td { background: var(--accent-soft); }
.order.dyn td small { display: block; color: var(--ink-3); }

/* ── The scoreboard (a screen at the club): no bar, big type ── */
body.board-mode .bar { display: none; }
body.board-mode main { max-width: none; padding: 20px 28px 40px; }
.board { display: flex; flex-direction: column; gap: 16px; font-size: clamp(16px, 1.3vw, 26px); }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.board-head h1 { font-size: clamp(2.2rem, 4vw, 4.4rem); }
.board-clock { margin-left: auto; font: 700 clamp(2rem, 3.5vw, 4rem)/1 var(--head); color: var(--accent); }
.board-close { color: var(--ink-3); font-weight: 600; text-decoration: none; }
.board-grid { display: grid; gap: 24px; }
@media (min-width: 1000px) { .board-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } }
.board-round { margin-bottom: 18px; }
.board-round h2 { display: flex; align-items: baseline; gap: 14px; margin-bottom: 10px; }
.board-round h2 .at { color: var(--accent); }
.board .match { padding: 12px 16px; }
.board .mh { font-size: .85em; }
.board .ml { min-height: 2.2em; font-size: 1.25em; }
.board .ml .sets b { min-width: 1.9em; height: 1.6em; font-size: 1.1em; }
.board-round + .board-round .match { opacity: .8; }
.board .standings { font-size: 1em; }
.board-done { font: 700 1.6rem var(--head); }

/* ── A new version was deployed ── */
.update-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 20;
  display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 18px; border-radius: 6px;
  background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow); font-weight: 600;
}
.update-bar button {
  min-height: 38px; padding: 0 14px; border: 0; border-radius: 4px; background: #ffffff; color: var(--brand);
  font: 700 .95rem/1 var(--head); letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}

/* ── Print: only the session ── */
@media print {
  .bar, .tools, .update-bar { display: none !important; }
  body { background: #ffffff; }
  main { max-width: none; padding: 0; }
  .sheet { border: 0; box-shadow: none; padding: 0; border-radius: 0; font-size: inherit; }
}
