/* teamsport11 – one stylesheet, no framework. */
:root {
  --bg: #f4f6f3; --surface: #fff; --ink: #18211c; --muted: #5b6660; --line: #d9ded8;
  --brand: #1f6f43; --brand-ink: #fff; --brand-soft: #e3f1e8;
  --danger: #b42318; --danger-soft: #fdecea; --warn: #9a5b00; --warn-soft: #fff4dc; --ok: #1f6f43; --ok-soft: #e3f1e8;
  --series-1: #1f6f43; --series-2: #2a78d6; --series-3: #eda100;
  --st-good: #0ca30c; --st-warning: #fab219; --st-critical: #d03b3b; --st-none: #cfd5d0;
  --radius: 10px; --shadow: 0 1px 2px rgba(16, 24, 20, .06), 0 2px 8px rgba(16, 24, 20, .05);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111613; --surface: #1a211d; --ink: #e7ece8; --muted: #9aa69f; --line: #2c3631;
    --brand: #3ba86a; --brand-soft: #1d3326; --danger: #f97066; --danger-soft: #3a1d1b; --warn: #f3b44b; --warn-soft: #3a2c12;
    --ok: #4fc283; --ok-soft: #1d3326; --shadow: none;
    --series-1: #3ba86a; --series-2: #3987e5; --series-3: #c98500; --st-none: #3a443e; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 var(--font); color: var(--ink); background: var(--bg); }
a { color: var(--brand); }
a:hover { text-decoration-thickness: 2px; }
h1 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 .25rem; }
h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
h3 { font-size: 1rem; margin: 1rem 0 .5rem; }
p { margin: .5rem 0; }
code { font-size: .85em; word-break: break-all; }
img { max-width: 100%; }
.wrap { max-width: 1880px; margin: 0 auto; padding: 0 clamp(16px, 2.2vw, 40px); }
.topbar .wrap, .footer .wrap { max-width: 96vw; }
/* Administration and big grids (28.11.2026 12:59: «per le cose amministrative usare meglio lo spazio disponibile»): the
   whole width of the screen, a narrow margin. */
main.wrap.wide { max-width: none; padding: 0 clamp(10px, 1.2vw, 24px); }
main.wrap { padding-top: 24px; padding-bottom: 48px; min-height: 70vh; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 8px; z-index: 50; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.hint { display: block; color: var(--muted); font-size: .85rem; margin-top: .25rem; }

/* Top bar (Carlo, 11.11.2026): ☰ and the logo on the left, then overview, team, the communication (invitations, board,
   messages, meetups), guide, account, log out, language. The header stays on top while scrolling; --header-h (app.js)
   keeps anchors and «scroll into view» below it. Below 900px the communication is one bell with the total that opens
   a box; on phones only icons in one row (no sideways scrolling), the small logo, guide and account in the menu. */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 46; } /* above the side panel (45): the bell box opens over an open board (12.11.2026) */
html { scroll-padding-top: calc(var(--header-h, 61px) + 8px); }
.topbar-inner { display: flex; align-items: center; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; margin-right: auto; }
.brand-mark { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 18%, var(--brand) 19%); border: 2px solid var(--brand); }
.i-nav { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-menu { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 12px 4px 8px; margin-left: -8px; border: 1px solid transparent; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-weight: 700; }
.nav-menu .i-menu { width: 30px; height: 30px; stroke-width: 2.2; }
.nav-menu:hover, .nav-menu[aria-expanded="true"] { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.topnav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.topnav a { text-decoration: none; color: var(--ink); }
.topnav a[aria-current] { color: var(--brand); font-weight: 600; }
.nav-icon { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.topnav .btn.link.nav-icon { color: var(--ink); text-decoration: none; padding: 0; }
.nav-icon:hover, .topnav .btn.link.nav-icon:hover { color: var(--brand); }
/* The team of the account: only where there is room (app.js hides it when the row would wrap). */
.topnav .nav-team { display: none; padding: 2px 10px; border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--line)); border-radius: 999px; font-weight: 600; color: var(--brand); white-space: nowrap; max-width: 16em; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 900px) { .topnav .nav-team { display: inline-block; } .topnav .nav-team[hidden] { display: none; } }
/* The calendar of the team beside «Overview» (20.11.2026), only where the header has room. */
.topnav .nav-cal { display: none; }
.topnav .nav-cal[aria-current] { color: var(--brand); }
@media (min-width: 1100px) { .topnav .nav-cal { display: inline-flex; } }
/* Communication: side by side on wide screens … */
.hub-inline { display: inline-flex; align-items: center; gap: 4px; padding: 2px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.hub-inline .hub-link { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.hub-inline .hub-link:hover { background: var(--surface); color: var(--brand); }
.hub-inline .hub-link[aria-current], .hub-inline .hub-link[aria-expanded="true"] { background: var(--surface); color: var(--brand); box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 35%, var(--line)); }
/* … one bell with the total below 900px, the box opens under the header. */
.hub { display: none; position: relative; }
.hub > summary { list-style: none; cursor: pointer; position: relative; justify-content: center; width: 44px; height: 44px; border-radius: 10px; }
.hub > summary::-webkit-details-marker { display: none; }
.hub > summary .i-bell { width: 26px; height: 26px; }
.hub > summary:hover, .hub[open] > summary { color: var(--brand); background: var(--brand-soft); }
.hub > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.hub > summary .nav-badge { position: absolute; top: 3px; right: 1px; margin: 0; min-width: 1.35em; padding: 0 .3em; box-shadow: 0 0 0 2px var(--surface); }
.hub-box { position: absolute; right: 0; top: calc(100% + 8px); z-index: 45; min-width: 260px; padding: 6px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0, 0, 0, .18); display: grid; gap: 2px; }
.hub-item { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 12px; border-radius: 10px; font-weight: 600; }
.hub-item > span:not(.nav-badge) { flex: 1; }
.hub-item .nav-badge { flex: none; margin-left: 0; }
.hub-item:hover, .hub-item:focus-visible, .hub-item[aria-current] { background: var(--brand-soft); color: var(--brand); outline: none; }
@media (max-width: 899px) { .hub-inline { display: none; } .hub { display: block; } }
/* Language: globe and code; the native list opens over it. */
.lang-chip { position: relative; display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px;
  font-size: .85rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.lang-chip .i-globe { width: 18px; height: 18px; }
.lang-chip select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.lang-chip:hover, .lang-chip:focus-within { border-color: var(--brand); color: var(--brand); }
.lang-chip:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (max-width: 600px) {
  .topbar-inner { flex-wrap: nowrap; gap: 4px; min-height: 56px; }
  .nav-menu { padding: 4px; margin-left: -6px; width: 48px; justify-content: center; }
  .nav-menu .i-menu { width: 32px; height: 32px; }
  .nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .brand { flex: none; }
  .brand .logo-compact img { height: 36px; width: 36px; }
  .topnav { flex: 0 1 auto; min-width: 0; flex-wrap: nowrap; gap: 2px; }
  .topnav .nav-wide { display: none; }
  .topnav .nav-icon { justify-content: center; width: 44px; height: 44px; border-radius: 10px; }
  .topnav .nav-icon .i-nav { width: 25px; height: 25px; }
  .topnav .nav-home[aria-current] { background: var(--brand-soft); }
  .lang-chip { min-height: 40px; padding: 0 6px; margin-left: 2px; }
  .lang-chip .i-globe { display: none; }
  .hub-box { position: fixed; left: 12px; right: 12px; top: calc(var(--header-h, 57px) + 6px); min-width: 0; }
}
@media (max-width: 360px) { .topnav .nav-icon, .hub > summary { width: 40px; } }
/* Guests on a phone (28.11.2026): the text links a little apart; on a narrow phone the guide only in the footer. */
@media (max-width: 600px) { .topnav .nav-guest { padding: 0 5px; } }
@media (max-width: 480px) { .topnav .nav-guest-guide { display: none; } }
.footer { border-top: 1px solid var(--line); padding: 16px 0; color: var(--muted); font-size: .9rem; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: .85rem; }
.footer-langs a[aria-current] { color: var(--ink); font-weight: 600; text-decoration: none; }

/* Layout */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.center { justify-content: center; }
.stack { display: grid; gap: 16px; align-content: start; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.grid.two-one { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
@media (max-width: 860px) { .grid.two-one { grid-template-columns: 1fr; } }
form .grid { gap: 0 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.card.attention { border-color: var(--warn); background: linear-gradient(var(--warn-soft), var(--surface) 70%); }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.narrow { max-width: 460px; margin: 24px auto; }
.narrow-wide { max-width: 820px; }
.big-icon { font-size: 2.5rem; color: var(--brand); font-weight: 700; }
.prose { max-width: 780px; }

/* Forms */
fieldset { border: 0; padding: 0; margin: 0 0 12px; }
legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.field.check label, label.radio { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
label.radio { margin: 4px 0; }
input, select, textarea, button { font: inherit; color: inherit; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); min-height: 40px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 1px; }
input[disabled] { background: var(--bg); color: var(--muted); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--brand); margin-top: 3px; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.error { color: var(--danger); font-size: .85rem; display: block; margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.row input, .row select { width: auto; flex: 1 1 160px; }
.search { margin-bottom: 16px; max-width: 520px; }
.copy { display: flex; gap: 8px; }
.copy input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; }
.field-row { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr 70px auto; gap: 6px; align-items: center; margin-bottom: 4px; }
@media (max-width: 700px) { .field-row { grid-template-columns: 1fr 1fr; } }
.narrow-input { max-width: 80px; }
details.add { margin-top: 16px; }
details.add > summary { list-style: none; display: inline-flex; }
details.add > summary::-webkit-details-marker { display: none; }
details.add[open] > summary { margin-bottom: 12px; }
details.menu { position: relative; margin-top: 4px; }
details.menu summary { cursor: pointer; }
details.menu ul { position: absolute; z-index: 5; list-style: none; margin: 4px 0 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); min-width: 200px; }
details.menu li a { display: block; padding: 4px 8px; text-decoration: none; }
details.menu li a[aria-current] { font-weight: 700; }
details.menu li.menu-new { border-bottom: 1px solid var(--line); margin-bottom: 4px; padding-bottom: 4px; }
details.menu li.menu-new a { font-weight: 600; white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer; font-weight: 600; white-space: nowrap; }
.btn:hover { border-color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 50%, var(--line)); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); }
.btn.small { min-height: 32px; padding: 4px 10px; font-size: .85rem; }
.btn.link { border: 0; background: none; padding: 0; min-height: 0; color: var(--brand); font-weight: 400; text-decoration: underline; }
.btn.block { width: 100%; }
form.inline { display: inline; }

/* Lists, tables, badges */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.steps li { margin-bottom: 6px; }
.table-wrap { overflow-x: auto; }
.card.table-wrap { padding: 0; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); white-space: nowrap; }
.table tr.group th { background: var(--bg); font-size: .8rem; color: var(--muted); }
.table .num { text-align: right; white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; }
.table .flag { text-align: center; white-space: nowrap; width: 1%; }
.table tr.inactive td { opacity: .55; }
.table tr.mine td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.table.attendance td { vertical-align: middle; }
.table.attendance select, .table.attendance input:not([type=checkbox]) { min-height: 34px; padding: 4px 6px; width: auto; }
.table.attendance th, .table.attendance td { padding: 6px 4px; }
.table.attendance input.num-input { width: 58px; }
.table.attendance input[name$="[note]"] { width: 120px; }

.table.attendance tr.not-invited td { background: var(--bg); }
.contact div { white-space: nowrap; }
@media (max-width: 600px) { .hide-sm { display: none; } }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.type { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 1px 6px; border-radius: 4px; background: var(--bg); color: var(--muted); margin-right: 4px; vertical-align: middle; }
.type-match { background: #d9480f; color: #fff; }
.type-training { background: var(--brand-soft); color: var(--brand); }
.type-test { background: var(--warn-soft); color: var(--warn); }
.cancelled a, .cancelled strong { text-decoration: line-through; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .9rem; }
.chip.accepted { background: var(--ok-soft); border-color: transparent; }
.chip.declined { background: var(--danger-soft); border-color: transparent; text-decoration: line-through; }
.flash { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.flash.error { background: var(--danger-soft); color: var(--danger); }
.flash.warn { background: var(--warn-soft); color: var(--warn); }
.meet-calc { display: block; font-weight: 600; margin-top: 2px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 12px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.answer { padding: 8px 0; border-bottom: 1px solid var(--line); }
.answer:last-child { border-bottom: 0; }
.rsvp { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.rsvp input { flex: 1 1 160px; }

/* Calendar list */
.month { margin: 20px 0 8px; font-size: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.month:first-child { margin-top: 0; }
.event-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.event-row .date span { display: block; color: var(--muted); font-size: .9rem; }
.event-row .counts { white-space: nowrap; font-size: .9rem; }
@media (max-width: 600px) { .event-row { grid-template-columns: 1fr; gap: 2px; } }

/* Emblem, home, public page */
.emblem { width: 96px; height: 96px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.emblem.small { width: 56px; height: 56px; }
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; padding: 24px 0 40px; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.hero-pitch { aspect-ratio: 3 / 2; border-radius: 16px; position: relative; overflow: hidden;
  background: repeating-linear-gradient(90deg, #2f8a55 0 10%, #2a7d4c 10% 20%); border: 4px solid #fff; box-shadow: var(--shadow); }
.hero-pitch span { position: absolute; border: 3px solid rgba(255, 255, 255, .85); }
.hero-pitch span:nth-child(1) { inset: 0 50% 0 0; border-width: 0 3px 0 0; }
.hero-pitch span:nth-child(2) { width: 28%; aspect-ratio: 1; border-radius: 50%; left: 36%; top: 29%; }
.hero-pitch span:nth-child(3) { width: 14%; height: 44%; left: -3px; top: 28%; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } .hero-pitch { display: none; } }
.features .card h2 { color: var(--brand); }
body.public main.wrap { min-height: 0; }
.public-head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
/* Event type colours (badges, calendar) */
.type-match { --tc: #d9480f; } .type-training { --tc: var(--brand); } .type-test { --tc: var(--warn); }
/* Matches by side in the club calendar (21.11.2026): home in the colour of the matches, away darker and striped. */
.type-match_home { --tc: #d9480f; background: #d9480f; color: #fff; }
.type-match_away { --tc: #8f2f07; background: repeating-linear-gradient(135deg, #a8380a 0 6px, #8f2f07 6px 12px); color: #fff; }
.type-meeting { --tc: #3867b5; background: #e6edf9; color: #2a4f8c; } .type-event { --tc: #8a4fb0; background: #f2e9f8; color: #6c3a8c; }
/* Training camp and holidays / break (17.11.2026). */
.type-camp { --tc: #0f766e; background: #e2f4f1; color: #0b5c55; } .type-break { --tc: #64748b; background: #eef1f5; color: #475569; }
@media (prefers-color-scheme: dark) {
  .type-meeting { --tc: #7ea6ec; background: #1d2a40; color: #a9c3f2; } .type-event { --tc: #c595e3; background: #2e2138; color: #d8b6ee; }
  .type-camp { --tc: #4fd1c5; background: #12302d; color: #9fe6dd; } .type-break { --tc: #94a3b8; background: #232a33; color: #c3cdd9; }
  .type-training { --tc: #4fc283; } .type-match { --tc: #ff8a4c; } .type-match_home { --tc: #ff8a4c; } .type-match_away { --tc: #c96a3a; }
}

/* Interactive calendar */
.calendar-card { padding: 16px; }
.has-calendar .cal-fallback { display: none; }
.calendar { outline: none; }
.calendar.loading { opacity: .6; }
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.cal-nav, .cal-views { display: flex; gap: 4px; }
/* Jump to a date (21.11.2026). */
.cal-nav { align-items: center; flex-wrap: wrap; }
.cal-jump { width: auto; min-width: 0; padding: 3px 6px; font-size: .85rem; height: auto; }
.cal-views .btn.active { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.cal-title { margin: 0; font-size: 1.1rem; flex: 1 1 auto; text-align: center; }
.cal-legend { display: flex; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 10px; font-size: .85rem; }
.cal-type { display: inline-flex; gap: 6px; align-items: center; background: none; color: var(--ink); cursor: pointer; }
.cal-type input { margin: 0; accent-color: var(--tc); }

.cal-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal-dow { font-size: .75rem; text-transform: uppercase; color: var(--muted); padding: 4px 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.cal-day { min-height: 104px; padding: 3px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-day.other { background: color-mix(in srgb, var(--bg) 60%, var(--surface)); }
.cal-day.other .cal-daynum { color: var(--muted); }
.cal-day.off { background: repeating-linear-gradient(135deg, var(--bg) 0 6px, var(--surface) 6px 12px); }
.cal-day.today .cal-daynum { background: var(--brand); color: var(--brand-ink); border-radius: 999px; }
.cal-day.drop, .tg-col.drop { box-shadow: inset 0 0 0 2px var(--brand); background: var(--brand-soft); }
.cal-daynum { font-size: .8rem; font-weight: 600; align-self: flex-end; min-width: 22px; text-align: center; padding: 0 4px; }
.cal-ev { display: flex; gap: 4px; align-items: center; font-size: .78rem; line-height: 1.3; padding: 2px 5px; border-radius: 4px; text-decoration: none;
  color: var(--ink); background: color-mix(in srgb, var(--tc, var(--muted)) 16%, var(--surface)); border-left: 3px solid var(--tc, var(--muted)); overflow: hidden; white-space: nowrap; min-width: 0; }
.cal-ev:hover { background: color-mix(in srgb, var(--tc, var(--muted)) 26%, var(--surface)); }
.cal-ev.draggable { cursor: grab; user-select: none; -webkit-user-select: none; }
.cal-ev.dragging { opacity: .45; }
.cal-ev.cancelled .cal-name { text-decoration: line-through; }
.cal-ev.cancelled { opacity: .7; }
.cal-time { font-variant-numeric: tabular-nums; color: var(--muted); flex: none; }
.cal-name { overflow: hidden; text-overflow: ellipsis; flex: 1 1 auto; font-weight: 600; }
.cal-count { flex: none; font-size: .7rem; color: var(--muted); }
.cal-mine { flex: none; width: 15px; height: 15px; border-radius: 50%; font-size: .62rem; font-weight: 700; display: inline-grid; place-items: center; background: var(--warn-soft); color: var(--warn); }
.cal-mine.accepted { background: var(--ok); color: #fff; } .cal-mine.declined { background: var(--danger); color: #fff; }
.cal-more { border: 0; background: none; color: var(--brand); font-size: .75rem; text-align: left; padding: 0 4px; cursor: pointer; }
.cal-ghost { position: fixed; z-index: 50; pointer-events: none; opacity: .9; box-shadow: var(--shadow); white-space: nowrap; }

.cal-tg { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.tg-head, .tg-body { display: grid; grid-template-columns: 52px repeat(var(--cols, 7), minmax(0, 1fr)); }
.cal-tg.cols-1 .tg-head, .cal-tg.cols-1 .tg-body { --cols: 1; }
.tg-head { background: var(--bg); border-bottom: 1px solid var(--line); }
.tg-dayhead { font-size: .8rem; font-weight: 600; padding: 6px; border-left: 1px solid var(--line); text-align: center; }
.tg-dayhead.today { color: var(--brand); }
.tg-body { max-height: 70vh; overflow-y: auto; }
.tg-hour { font-size: .7rem; color: var(--muted); text-align: right; padding-right: 6px; transform: translateY(-.5em); }
.tg-hour:first-child { transform: none; }
.tg-col { position: relative; border-left: 1px solid var(--line); }
.tg-col.today { background: color-mix(in srgb, var(--brand-soft) 40%, var(--surface)); }
.tg-col.off { background: repeating-linear-gradient(135deg, var(--bg) 0 6px, var(--surface) 6px 12px); }
.tg-line { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.tg-ev { position: absolute; flex-direction: column; align-items: stretch; gap: 0; white-space: normal; padding: 2px 4px; border: 1px solid var(--surface); border-left: 3px solid var(--tc); z-index: 1; }
.tg-ev .cal-count, .tg-ev .cal-mine { display: none; }
.tg-resize { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; cursor: ns-resize; }
.tg-resize::after { content: ""; position: absolute; left: 40%; right: 40%; bottom: 2px; border-top: 2px solid color-mix(in srgb, var(--tc) 70%, transparent); }

.cal-list-day { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cal-list-day.today .cal-list-date { color: var(--brand); }
.cal-list-date { font-weight: 700; font-size: .9rem; }
.cal-list-items { display: grid; gap: 4px; min-width: 0; }
.cal-list-ev { font-size: .9rem; padding: 6px 8px; white-space: normal; flex-wrap: wrap; }
.cal-list-ev .cal-count, .cal-list-ev .cal-mine { display: inline-grid; }
.cal-loc { color: var(--muted); font-size: .8rem; width: 100%; }
@media (max-width: 700px) {
  .cal-title { order: -1; flex-basis: 100%; text-align: left; }
  .cal-day { min-height: 64px; }
  .cal-month .cal-ev .cal-time, .cal-month .cal-count { display: none; }
  .cal-list-day { grid-template-columns: 1fr; gap: 4px; }
}
.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 60;
  background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: .9rem; transition: .2s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--danger); color: #fff; }
/* Forms sent in the background (package P): the page stays, the form shows that it is on its way */
form.sending { cursor: progress; }
form.sending button[type="submit"], form.sending button:not([type]), button.sending { opacity: .65; }
/* Wide pages: the content uses the screen; prose and forms keep a readable measure */
.hero, .features { max-width: 1240px; margin-left: auto; margin-right: auto; }
.features.grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.season-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.season-side { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
@media (min-width: 1360px) { .season-layout { grid-template-columns: minmax(0, 1fr) 340px; } .season-side { grid-template-columns: 1fr; } }
/* Coaches: the roster grid gets the full width; the side cards move below it unless the screen is very wide. */
@media (min-width: 1360px) and (max-width: 2399px) {
  main.wrap.fit .season-layout { grid-template-columns: minmax(0, 1fr); }
  main.wrap.fit .season-side { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
}

/* Collapsible sections with memory (package O: on every screen; app.js remembers them) */
details.section > summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; min-height: 32px; }
details.section > summary::-webkit-details-marker { display: none; }
details.section > summary h2 { margin: 0; flex: 1 1 auto; }
details.section[open] > summary { margin-bottom: 12px; }
details.section > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; margin: 0 4px 4px; flex: none; }
details.section[open] > summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
details.section:not([open]) { padding-top: 14px; padding-bottom: 14px; align-self: start; }
details.section > summary:hover::after, .collapse-head:hover > .collapse-btn::after { border-color: var(--ink); }
.collapse-head { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.collapse-btn { margin-left: auto; flex: none; width: 28px; height: 28px; border: 0; background: none; border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.collapse-btn::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-135deg); margin-top: 4px; transition: transform .15s; }
.collapse-btn[aria-expanded=false]::after { transform: rotate(45deg); margin-top: -4px; }
.collapse-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.card.collapsed { padding-top: 14px; padding-bottom: 14px; align-self: start; }
.card.collapsed > :not(h2) { display: none !important; }
.card.collapsed > h2 { margin: 0; }

/* Sortable tables (package O) */
.th-sort { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font: inherit; color: inherit; }
.th-sort:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 3px; }
.th-sort::after { content: "↕"; font-size: .75em; color: var(--muted); opacity: .6; }
th[aria-sort=ascending] .th-sort::after { content: "▲"; opacity: 1; color: var(--brand); }
th[aria-sort=descending] .th-sort::after { content: "▼"; opacity: 1; color: var(--brand); }
th.num .th-sort { justify-content: flex-end; }

/* Uniform tables (26.11.2026, Carlo: «una struttura che si assomigli su tutto il sito … ben leggibili»; app.js dataTable).
   Every .table: a light line under each row, the row under the pointer marked; a row and its detail (tr.row-detail,
   tr.row-edit) read as one block — no line between them; an open detail is a framed panel with the colour of the site
   on the left, its row tinted, a thicker line where it ends. */
.table tbody tr:not(.row-detail):not(.row-edit):hover > td { background-color: color-mix(in srgb, var(--brand-soft) 40%, transparent); }
.table.attendance tbody tr:hover > td, .xgrid tbody tr:hover > td { background-color: transparent; }
.table tr:has(+ tr.row-detail) > td, .table tr:has(+ tr.row-edit:not([hidden])) > td { border-bottom-color: transparent; }
.table tr.row-detail > td { padding-top: 0; padding-bottom: 8px; }
.table tr.row-detail > td > details > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none;
  font-size: .85rem; color: var(--brand); font-weight: 600; padding: 2px 10px; border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line));
  border-radius: 999px; background: var(--surface); }
.table tr.row-detail > td > details > summary::-webkit-details-marker { display: none; }
.table tr.row-detail > td > details > summary::before { content: "▸"; font-size: .8em; transition: transform .15s; }
.table tr.row-detail > td > details[open] > summary::before { transform: rotate(90deg); }
.table tr.row-detail:has(> td > details[open]) > td, .table tr.row-edit:not([hidden]) > td {
  background: color-mix(in srgb, var(--brand-soft) 45%, var(--bg)); box-shadow: inset 4px 0 0 var(--brand); border-bottom: 2px solid var(--brand); padding: 10px 14px 12px; }
.table tr:has(+ tr.row-detail > td > details[open]) > td, .table tr.row-open > td { background: color-mix(in srgb, var(--brand-soft) 70%, var(--surface)); }
.table tr:has(+ tr.row-detail > td > details[open]) > td:first-child, .table tr.row-open > td:first-child { box-shadow: inset 4px 0 0 var(--brand); }
.table tr.row-detail > td > details[open] > summary { margin-bottom: 10px; background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.detail-close { display: block; margin: 10px 0 0 auto; }
a.row-link { color: var(--brand); text-decoration: none; }
a.row-link:hover, a.row-link:focus-visible { text-decoration: underline; }
/* The bar above a long table: filter, «n of m», «Show all / Shorter». */
.tbl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 8px; }
.tbl-filter { flex: 0 1 260px; min-width: 160px; min-height: 34px; padding: 4px 10px; }
.tbl-count { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.tbl-more { margin-left: auto; }
.table tr.tbl-out { display: none !important; }
/* A long table: fixed height with its own scrollbar, the heading stays on top. */
.table-wrap.tbl-scroll { max-height: min(68vh, 620px); overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: var(--radius, 10px); }
.card > .table-wrap.tbl-scroll { margin-left: -2px; margin-right: -2px; }
.table-wrap.tbl-scroll thead th { position: sticky; top: 0; z-index: 2; background: var(--surface); box-shadow: inset 0 -1px 0 var(--line); }
.table-wrap.tbl-scroll::after { content: ""; position: sticky; display: block; bottom: 0; height: 18px; margin-top: -18px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--surface) 90%, transparent)); }

/* Navigation menu with search (package O) */
html.menu-open { overflow: hidden; }
.menu-drawer { position: fixed; inset: 0; z-index: 60; background: rgba(10, 16, 12, .45); display: flex; justify-content: flex-start; }
.menu-drawer[hidden] { display: none; }
.menu-drawer-inner { background: var(--surface); width: min(420px, 100%); height: 100%; overflow-y: auto; padding: 14px 16px 24px; box-shadow: 0 0 24px rgba(0, 0, 0, .25); }
.menu-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.menu-close { font-size: 1.6rem; line-height: 1; padding: 0 6px; }
.menu-search { display: flex; gap: 8px; margin-bottom: 12px; position: sticky; top: -14px; background: var(--surface); padding: 6px 0; z-index: 1; }
.menu-search input { flex: 1 1 auto; min-height: 40px; font-size: 1rem; }
.menu-group ul { list-style: none; margin: 0; padding: 0; }
.menu-group li a { display: block; padding: 7px 8px; border-radius: 6px; text-decoration: none; color: var(--ink); }
.menu-group li a:hover, .menu-group li a:focus-visible { background: var(--brand-soft); color: var(--brand); outline: none; }
.menu-group li[hidden], .menu-group[hidden] { display: none; }
.menu-page .menu-groups { columns: 3 260px; column-gap: 24px; }
.menu-page .menu-group { break-inside: avoid; }

/* Club entries in the calendars (package O) */
.type-club { --tc: #b7791f; }
.type-club_meeting { --tc: #3867b5; background: #e6edf9; color: #2a4f8c; }
.type-club_assembly { --tc: #b42318; background: #fdecea; color: #8c1d14; }
.type-club_team_event { --tc: #8a4fb0; background: #f2e9f8; color: #6c3a8c; }
.type-club_camp { --tc: #1f6f43; background: #e3f1e8; color: #17553a; }
.type-club_other { --tc: #5b6660; background: #eceeec; color: #3d4641; }
.cal-ev.type-club { border-left-style: double; border-left-width: 4px; }
@media (prefers-color-scheme: dark) {
  .type-club { --tc: #e8b04f; }
  .type-club_meeting { --tc: #7ea6ec; background: #1d2a40; color: #a9c3f2; }
  .type-club_assembly { --tc: #f97066; background: #3a1d1b; color: #f9a59e; }
  .type-club_team_event { --tc: #c595e3; background: #2e2138; color: #d8b6ee; }
  .type-club_camp { --tc: #4fc283; background: #1d3326; color: #8fdcb0; }
  .type-club_other { --tc: #9aa69f; background: #262d29; color: #c3ccc6; }
}
@media (min-width: 900px) {
  .compact-only { display: none; }
  /* The page grows with the roster grid: at least the normal width, at most 96% of the screen. */
  main.wrap.fit { width: fit-content; min-width: min(100%, 1180px); max-width: 96vw; }
  main.wrap.fit .xgrid-box .hint, main.wrap.fit .roster-card details.add { width: 0; min-width: 100%; }
}
@media (max-width: 899px) { .desk-only { display: none; } }

/* Roster grid (Excel-like) */
.xgrid-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
#xgrid-filter { width: 260px; flex: 0 0 auto; min-height: 34px; padding: 4px 10px; }
.xgrid-cols .menu-panel { position: absolute; z-index: 20; margin-top: 4px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); min-width: 240px; max-height: 60vh; overflow: auto; }
.xgrid-cols .menu-panel label { margin: 2px 0; white-space: nowrap; }
.xgrid-cols .menu-panel .btn { margin-top: 8px; }
.xgrid-scroll { overflow: auto; max-height: calc(100vh - 220px); min-height: 240px; border: 1px solid var(--line); border-radius: 6px; }
.xgrid { border-collapse: separate; border-spacing: 0; font-size: .88rem; min-width: 100%; outline: none; }
.xgrid th, .xgrid td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0 8px; height: 32px; white-space: nowrap;
  max-width: 260px; overflow: hidden; text-overflow: ellipsis; background: var(--surface); text-align: left; }
.xgrid thead th { position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 0; font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.xgrid .sort { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 8px; cursor: pointer; white-space: nowrap; }
.xgrid .sort:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.xgrid th[aria-sort="ascending"] .sort::after { content: " ▲"; }
.xgrid th[aria-sort="descending"] .sort::after { content: " ▼"; }
/* Sorting on several columns (12.11.2026): the further criteria with their arrow and the number of the criterion. */
.xgrid th[data-sort-more="ascending"] .sort::after { content: " ▲"; opacity: .6; }
.xgrid th[data-sort-more="descending"] .sort::after { content: " ▼"; opacity: .6; }
.xgrid .sort[data-prio]::before { content: attr(data-prio); display: inline-block; min-width: 1.3em; margin-right: 4px; padding: 0 3px; border-radius: 6px;
  background: var(--brand); color: #fff; font-size: .7rem; line-height: 1.3em; text-align: center; vertical-align: 1px; }
.xgrid .sticky { position: sticky; z-index: 1; }
.xgrid thead th.sticky { z-index: 3; }
.xgrid .sticky-last { box-shadow: 3px 0 4px -2px rgba(0, 0, 0, .15); }
.xgrid .num { text-align: right; font-variant-numeric: tabular-nums; }
.xgrid .g-link { width: 52px; padding: 0; text-align: center; }
.xgrid .g-link a { display: inline-block; width: 24px; text-decoration: none; padding: 6px 0; color: var(--muted); }
.i-chart { width: 15px; height: 15px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.xgrid .g-link a:hover { color: var(--brand); }
.xgrid .gh, .xgrid tr.gf { display: none; }
.xgrid tbody tr:hover td { background: color-mix(in srgb, var(--brand-soft) 35%, var(--surface)); }
.xgrid tr.inactive td:not(.g-link) { color: var(--muted); }
.xgrid tr.mine td.g-link { box-shadow: inset 3px 0 0 var(--brand); }
.xgrid td.sel { outline: 2px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: -2px; }
.xgrid.focused td.sel { outline-color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 60%, var(--surface)); }
.xgrid td.editing { padding: 0; overflow: visible; outline: 2px solid var(--brand); outline-offset: -2px; }
.xgrid .xgrid-editor { width: 100%; min-width: 120px; height: 31px; min-height: 0; border: 0; border-radius: 0; padding: 0 7px; font-size: .88rem; background: var(--surface); }
.xgrid .xgrid-editor:focus-visible { outline: none; }
.xgrid td.saving { color: var(--muted); }
.xgrid td.saved { background: var(--ok-soft); transition: background .8s; }
.xgrid td.error { background: var(--danger-soft); color: var(--danger); }
.roster-card { padding-bottom: 12px; }

/* Lineup board */
.lineup-tools { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 12px; }
.lineup-tools .tool { display: grid; gap: 2px; font-size: .75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.lineup-tools select { min-height: 32px; padding: 3px 8px; width: auto; font-size: .9rem; text-transform: none; letter-spacing: 0; color: var(--ink); }
.lineup-tools .btn[disabled] { opacity: .45; cursor: default; }
.lineup-status { font-size: .85rem; color: var(--muted); margin-left: auto; }
.lineup-status.bad { color: var(--danger); font-weight: 600; }
.lineup-main { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) 260px; align-items: start; }
.lineup-main.readonly { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
@media (max-width: 760px) { .lineup-main { grid-template-columns: 1fr; } }
.pitch { position: relative; border-radius: 10px; overflow: hidden; user-select: none; -webkit-user-select: none; aspect-ratio: 1110 / 740; margin: 0 auto; width: min(100%, calc(80vh * 1.5)); }
.pitch.vertical { aspect-ratio: 740 / 1110; width: min(100%, 520px, calc(85vh * .6667)); }
.pitch svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pitch-layer { position: absolute; left: 2.7027%; right: 2.7027%; top: 4.0541%; bottom: 4.0541%; }
.pitch.vertical .pitch-layer { left: 4.0541%; right: 4.0541%; top: 2.7027%; bottom: 2.7027%; }
.spot { position: absolute; width: calc(var(--tok) * .7); height: calc(var(--tok) * .7); margin: calc(var(--tok) * -.35) 0 0 calc(var(--tok) * -.35); border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .32); display: grid; place-items: center; font: 600 clamp(8px, calc(var(--tok) * .24), 10px) / 1 var(--font);
  color: rgba(255, 255, 255, .6); pointer-events: none; transition: transform .1s, background .1s; }
.spot.tpl { border: 2px dashed rgba(255, 255, 255, .75); color: rgba(255, 255, 255, .9); width: var(--tok); height: var(--tok); margin: calc(var(--tok) / -2) 0 0 calc(var(--tok) / -2); }
.spot.near { background: rgba(255, 216, 77, .45); border: 2px solid #ffd84d; color: #fff; transform: scale(1.2); }
.tok { position: absolute; width: var(--tok, 36px); height: var(--tok, 36px); margin: calc(var(--tok, 36px) / -2) 0 0 calc(var(--tok, 36px) / -2); padding: 0; border: 2px solid #fff; border-radius: 50%;
  display: grid; place-items: center; font: 700 calc(var(--tok, 36px) * .4) / 1 var(--font); background: #f8fafc; color: #14231a; box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
  cursor: grab; touch-action: none; z-index: 2; transition: left .18s, top .18s; }
.tok.dragging { cursor: grabbing; transition: none; z-index: 5; transform: scale(1.12); box-shadow: 0 6px 16px rgba(0, 0, 0, .45); }
.tok:focus-visible { outline: 3px solid #ffd84d; outline-offset: 2px; }
.tok.line-gk { background: #f5b400; } .tok.line-def { background: #2563eb; color: #fff; } .tok.line-att { background: #dc2626; color: #fff; }
.tok.st-invited { border-style: dashed; border-color: #ffe08a; }
.tok.st-declined { opacity: .7; border-color: #ff8a80; }
.tok.swap-target { outline: 3px solid #ffd84d; outline-offset: 3px; }
.tok-name, .tok-pos { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; pointer-events: none; color: #fff; font-weight: 600; }
.tok-name { top: calc(100% + 3px); font-size: clamp(10px, calc(var(--tok, 36px) * .32), 13px); background: rgba(10, 30, 18, .72); padding: 1px 6px; border-radius: 4px; }
.tok-pos { bottom: calc(100% + 1px); font-size: 9px; letter-spacing: .04em; opacity: .9; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.tok-ghost { position: fixed; margin: 0; transform: translate(-50%, -50%) scale(1.1); pointer-events: none; z-index: 70; }
.tok-ghost .tok-pos { display: none; }
.readonly .tok { cursor: default; }
.bench { border: 2px dashed var(--line); border-radius: 10px; padding: 10px; min-height: 120px; transition: border-color .15s, background .15s; }
.bench-section { border-radius: 8px; padding: 2px 4px 6px; margin: 0 -4px; transition: background .12s, box-shadow .12s; }
.bench-section.drop { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); }
.bench-section.bench-absent.drop { background: var(--danger-soft); box-shadow: inset 0 0 0 2px var(--danger); }
.bench-empty { font-size: .8rem; color: var(--muted); border: 1px dashed var(--line); border-radius: 999px; padding: 5px 10px; text-align: center; }
.absence-select { flex: 0 1 116px; width: 116px !important; min-width: 70px; max-width: 48%; min-height: 30px !important; padding: 2px 4px !important; font-size: .78rem; color: var(--danger); }
.bench h3 { margin: 0 0 6px; font-size: .95rem; }
.bench-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 8px 0 4px; font-weight: 700; }
.bench-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.bench-chip { display: flex; align-items: center; gap: 8px; width: 100%; padding: 4px 8px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font: inherit; font-size: .88rem; text-align: left; cursor: grab; touch-action: none; color: var(--ink); }
.bench-chip:hover { border-color: var(--brand); }
.bench-chip .tok-num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); font-weight: 700; font-size: .78rem; flex: none; }
.bench-chip.st-accepted .tok-num { background: var(--ok-soft); color: var(--ok); }
.bench-chip.g-absent { opacity: .65; }
.bench-chip.g-absent .chip-name { text-decoration: line-through; }
.bench-chip.g-absent .chip-pos { color: var(--danger); }
.bench-chip.g-none { border-style: dashed; background: var(--bg); }
.bench-chip.g-none .chip-name { color: var(--muted); }
.bench-label.bench-absent { color: var(--danger); }
.bench-chip .chip-name { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bench-chip .chip-pos { font-size: .72rem; color: var(--muted); flex: none; }
.bench-chip.dragging { opacity: .4; }
@media (min-width: 761px) and (max-width: 1100px) { .lineup-main { grid-template-columns: minmax(0, 1fr) 210px; } }
.bench-row { display: flex; gap: 4px; align-items: center; min-width: 0; }
/* Enlarged lineup (15.11.2026, to show it on an iPad): the whole screen, bench, absent and not convoked at the side. */
html.ts11-staged, html.ts11-staged body { overflow: hidden; }
.lineup.is-max { position: fixed; inset: 0; z-index: 58; margin: 0; background: var(--bg); padding: 10px 16px 16px; overflow: auto; overscroll-behavior: contain; }
.lineup-maxbar { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 8px; }
.lineup-maxbar h2 { margin: 0; font-size: 1.1rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lineup-maxbar .btn { flex: none; }
.lineup.is-max .lineup-tools { margin-bottom: 8px; }
.lineup.is-max .lineup-main { grid-template-columns: minmax(0, 1fr) 300px; max-width: none; }
.lineup.is-max .lineup-main.readonly { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1099px) { .lineup.is-max .lineup-main { grid-template-columns: minmax(0, 1fr) 240px; } }
@media (max-width: 699px) { .lineup.is-max .lineup-main { grid-template-columns: 1fr; } }
.lineup.is-max .pitch { margin: 0 auto; }
.lineup.is-max .bench { max-height: calc(100vh - 130px); max-height: calc(100dvh - 130px); overflow: auto; }
@media (max-width: 699px) { .lineup.is-max .bench { max-height: none; } }
.lineup.is-max .hint-tip, .lineup.is-max .hint-collapsible { display: none; }
.lineup-ro-tools { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.lineup-ask { position: fixed; inset: 0; z-index: 59; display: grid; place-items: center; padding: 16px; background: rgba(10, 16, 12, .5); }
.lineup-ask-card { width: min(460px, 100%); padding: 18px 20px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.lineup-ask-card h3 { margin: 0 0 6px; }
.lineup-ask-card .row { gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.bench-row .bench-chip { flex: 1 1 auto; min-width: 0; }
.chip-remove { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1; }
.chip-remove:hover { color: var(--danger); border-color: var(--danger); }
.bench-chip.is-guest { border-style: dashed; }
.bench-chip.is-guest .tok-num { background: #fff3c4; color: #7a5a00; }
.tok.is-guest { box-shadow: 0 0 0 3px rgba(255, 216, 77, .85), 0 2px 6px rgba(0, 0, 0, .35); }
.guest-add { margin-top: 10px; }
.guest-add > summary { list-style: none; display: inline-flex; }
.guest-add > summary::-webkit-details-marker { display: none; }
.guest-form { display: grid; gap: 6px; margin-top: 8px; }
.guest-form input { min-height: 34px; padding: 4px 8px; }
.guest-form .hint { margin: 0; }
@media print {
  .topbar, .footer, .btn, details.add, form[data-confirm], .danger-zone, .toast, .hint, .xgrid-tools { display: none !important; }
  details.section > summary::after, .collapse-btn, .menu-drawer { display: none !important; }
  .card.collapsed > :not(h2) { display: revert !important; }
  body.print-lineup main > :not(.lineup-section), body.print-lineup .lineup-tools, body.print-lineup .bench-absent, body.print-lineup .bench-absent + .bench-list, body.print-lineup .bench-none, body.print-lineup .bench-none + .bench-list, body.print-lineup .guest-add { display: none !important; }
  body.print-lineup .lineup-main { grid-template-columns: 1fr 220px; }
  .pitch { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  body { background: #fff; } .card { box-shadow: none; border: 0; padding: 0; }
}

/* Logo (header and answer page) */
.logo { display: inline-flex; line-height: 0; }
.logo img { height: 40px; width: auto; }
/* Header logo a bit bigger with the new logo (Carlo 20.11.2026: «è molto piccolo e non si vede bene», «solo qualche
   millimetro»): 52px instead of 42px; on phones the square «T11» mark at 36 × 36 (was squeezed to 36 × 34). */
.brand .logo img { height: 52px; }
@media (max-width: 600px) { .brand .logo img { height: 36px; } }

/* Attendance table: staff on a different background, coach-players at the top of the players */
.table.attendance tr.staff-row td { background: color-mix(in srgb, var(--brand-soft) 55%, var(--surface)); }
.table.attendance tr.staff-row.not-invited td { background: color-mix(in srgb, var(--brand-soft) 30%, var(--bg)); }
.table.attendance tr.first-player td { border-top: 3px solid var(--brand); }
.table.attendance tr.coach-player td:first-child { box-shadow: inset 4px 0 0 var(--brand); }
.presence-cell { white-space: nowrap; }
.presence-cell select { min-width: 120px; }
select.presence-auto { font-style: italic; color: var(--muted); border-style: dashed; }
select.presence-coach { font-weight: 700; border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
select.presence-player { border-color: var(--warn); }
.src-mark { display: inline-block; margin-left: 4px; font-size: .85rem; color: var(--brand); cursor: help; }
.src-mark.player { color: var(--warn); }
.presence-counts { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin: 0 0 10px; } /* players and staff on their own line (12.11.2026) */
.notify-log { margin: 6px 0 0; padding-left: 18px; }
.notify-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.notify-kind { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 12px; margin: 0; min-width: 0; }
.notify-kind legend { font-weight: 700; padding: 0 4px; }
.notify-kind .check-line, .notify-kind .radio-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.notify-kind input.num-input[type=number] { width: 76px; flex: none; }
.notify-kind input.time-input[type=time] { width: 120px; flex: none; }
.notify-label { font-weight: 600; font-size: .9rem; margin-top: 6px; }
.notify-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; font-size: .9rem; }
.notify-input { display: flex; align-items: center; gap: 6px; flex: none; }
.rsvp select[name=reason] { max-width: 220px; }
ol.steps { padding-left: 20px; }
ol.steps li { margin-bottom: 6px; }

/* Answer page (/r/...) */
.rsvp-head { display: flex; justify-content: center; padding-top: 16px; }
.rsvp-head .logo img { height: 52px; }
.rsvp-main { max-width: 560px; }
.rsvp-card h1 { font-size: 1.35rem; margin: 4px 0 6px; }
.rsvp-team { margin: 0; }
.rsvp-who { margin: 0 0 10px; font-weight: 600; }
.btn.big { width: 100%; min-height: 54px; font-size: 1.1rem; justify-content: center; }
.btn.focus-ring { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 35%, transparent); }
.rsvp-yes { margin: 16px 0 10px; }
.rsvp-no { padding: 0; border: 0; background: none; box-shadow: none; }
.rsvp-no > summary { list-style: none; cursor: pointer; }
.rsvp-no > summary::-webkit-details-marker { display: none; }
.rsvp-no[open] { padding: 16px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; }
.rsvp-no[open] > summary { margin-bottom: 12px; }
.reason-grid { border: 0; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.reason-grid legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.reason-pill { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; background: var(--surface); }
.reason-pill:has(input:checked) { border-color: var(--danger); background: var(--danger-soft); }
.reason-pill input { margin: 0; flex: none; }

/* Package B: club calendar, officials, match details */
[hidden] { display: none !important; }
.type-club { background: var(--warn-soft); color: var(--warn); }
.club-events .month-head { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 10px 0 2px; border: 0; }
.official-form { margin: 10px 0; }
.official-perms { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 8px 0 10px; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.official-functions { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 8px 0 10px; }
.official-functions.has-error { border-color: var(--danger); }
.official-function-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px 12px; margin-bottom: 4px; }
.official-function-list .check { display: flex; gap: 6px; align-items: center; font-weight: 400; }
.perm { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; font-weight: 600; }
.match-only { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 8px 0 12px; }
.match-only .label { display: block; font-weight: 600; margin-bottom: 4px; }

/* Package C: player page, charts, assessment, roster tools */
.hide-inactive .table.roster tr.inactive { display: none; }
.inactive-toggle { font-size: .9rem; color: var(--muted); }
.edit-link { color: var(--muted); text-decoration: none; margin-left: 4px; }
.edit-link:hover { color: var(--brand); }
.xgrid-cols .menu-panel { min-width: 280px; }
/* Column order (package O) */
.xgrid-colrow { display: flex; align-items: center; gap: 2px; }
.xgrid-colrow > label { flex: 1 1 auto; }
.xgrid-cols .menu-panel .xgrid-move { margin-top: 0; padding: 0 6px; min-height: 24px; font-size: .95rem; }
.xgrid-move:disabled { opacity: .3; cursor: default; }
.xgrid.col-moving, .xgrid.col-moving * { user-select: none; -webkit-user-select: none; cursor: grabbing !important; }
.xgrid thead th.col-dragging { opacity: .55; }
.xgrid thead th.col-drop-before { box-shadow: inset 3px 0 0 var(--brand); }
.xgrid thead th.col-drop-after { box-shadow: inset -3px 0 0 var(--brand); }
.xgrid-newcol { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 8px; display: grid; gap: 2px; }
.xgrid-newcol .field { margin: 0 0 6px; }
.xgrid-newcol .field label { white-space: normal; }
.xgrid-newcol .row { align-items: center; gap: 12px; }
.player-facts { margin: 4px 0 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.tile { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tile-label { font-size: .8rem; color: var(--muted); }
.tile-value { font-size: 1.6rem; font-weight: 650; line-height: 1.15; color: var(--ink); }
.tile-value small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.tile-sub { font-size: .78rem; color: var(--muted); }
.tile-avg { display: block; }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.chart-box { margin: 0; min-width: 0; }
.chart-box figcaption { font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.chart-scroll { overflow-x: auto; }
svg.chart { display: block; min-width: 420px; height: auto; font-family: var(--font); }
/* A chart of its own size (.chart-natural, 23.11.2026) keeps the width of its attribute: no CSS width for it. */
svg.chart:not(.chart-natural) { width: 100%; }
svg.chart-radar { min-width: 0; max-width: 480px; margin: 0 auto; }
.chart-grid { stroke: var(--line); stroke-width: 1; fill: none; }
.chart-axis { stroke: var(--muted); stroke-width: 1; }
.chart-tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart-label { fill: var(--ink); font-size: 12px; font-weight: 600; }
.chart-hit { fill: transparent; }
.chart-mark:hover .chart-hit { fill: color-mix(in srgb, var(--ink) 5%, transparent); }
.chart-bar { fill: var(--series-1); }
.chart-line { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-dot { fill: var(--series-1); stroke: var(--surface); stroke-width: 2; }
.chart-dot.s2 { fill: var(--series-2); } .chart-dot.s3 { fill: var(--series-3); }
.chart-area { fill: none; stroke-width: 2; stroke-linejoin: round; }
.chart-area.s1 { stroke: var(--series-1); } .chart-area.s2 { stroke: var(--series-2); } .chart-area.s3 { stroke: var(--series-3); }
.chart-area.first { fill: color-mix(in srgb, var(--series-1) 12%, transparent); }
.chart-seg.seg-present { fill: var(--st-good); } .chart-seg.seg-excused { fill: var(--st-warning); }
.chart-seg.seg-unexcused { fill: var(--st-critical); } .chart-seg.seg-none { fill: var(--st-none); }
.chart-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 0; padding: 0; font-size: .85rem; color: var(--muted); }
.chart-legend li { display: flex; align-items: center; gap: 6px; }
.chart-legend .key { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.chart-legend .key.line { height: 3px; border-radius: 2px; width: 16px; }
.key.seg-present { background: var(--st-good); } .key.seg-excused { background: var(--st-warning); }
.key.seg-unexcused { background: var(--st-critical); } .key.seg-none { background: var(--st-none); }
.key.s1 { background: var(--series-1); } .key.s2 { background: var(--series-2); } .key.s3 { background: var(--series-3); }
/* The points as a guest of another team (27.11.2026): orange, a ring, outside the line. */
.chart-dot.sg { fill: var(--series-3); stroke: var(--ink); stroke-width: 1.5; }
.chart-legend .key.dot.sg { width: 10px; height: 10px; border-radius: 50%; background: var(--series-3); box-shadow: 0 0 0 1.5px var(--ink); }
.st-guest-badge { margin-left: 4px; }
.rating-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; align-items: start; }
.radar-box .chart-legend { justify-content: center; }
.rating-axes { gap: 0 12px; }
.rating-table { min-width: 980px; }
.rating-table .note-cell { min-width: 200px; max-width: 280px; white-space: normal; font-size: .88rem; }
.rating-table .actions { white-space: nowrap; text-align: right; }
.rating-table .actions .inline { display: inline-block; margin-left: 6px; }
/* Edit form opened as a full-width row under the row it edits (rating history). */
.table tr.row-edit > td { background: var(--bg); padding: 12px 14px 14px; white-space: normal; }
.row-edit-form { position: sticky; left: 14px; max-width: 100%; }
.row-edit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 12px; }
.row-edit-form .field { margin-bottom: 8px; }
.row-edit-form .actions-row { display: flex; gap: 8px; align-items: center; }
.table tr.row-open > td { border-bottom-color: transparent; }

/* Package F: consent */
.consent-form { display: grid; gap: 12px; }
.consent-item { margin: 0; }
.consent-item legend { font-weight: 700; font-size: 1.05rem; padding: 0 4px; }
.consent-text { font-size: .92rem; line-height: 1.5; color: var(--ink); margin: 4px 0 10px; }
.consent-text p, .consent-more .consent-text { margin: 0 0 8px; }
.consent-choice { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.consent-choice .reason-pill { flex: 1 1 180px; }
.reason-pill.yes:has(input:checked) { border-color: var(--ok); background: var(--ok-soft); }
.consent-table th[scope="row"] { font-weight: 600; min-width: 180px; }
.consent-table .consent-choice label { margin: 0; white-space: nowrap; }
.consent-more summary { cursor: pointer; color: var(--brand); font-weight: 400; margin-top: 2px; }
.consent-more .consent-text { font-weight: 400; max-width: 620px; }
.consent-account { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.consent-account h3 { margin: 0 0 2px; }
.consent-summary { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 4px 0 8px; font-size: .9rem; color: var(--muted); }
.consent-actions { margin: 10px 0; }
.consent-requests { list-style: none; padding: 0; margin: 4px 0 10px; }
.consent-history summary { cursor: pointer; color: var(--muted); margin-top: 10px; }
.consent-history ul { margin: 6px 0 0; padding-left: 18px; }
.xgrid tr.locked td:not(.g-link) { background: color-mix(in srgb, var(--danger-soft) 45%, var(--surface)); }
.age-input { width: 5.5em; }
.admin-texts textarea { min-height: 320px; font-size: .88rem; }
a.badge { text-decoration: none; }

/* Team photo in the team settings (0011) */
.team-photo { display: block; width: 100%; max-height: 360px; object-fit: contain; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.notice { padding: 10px 14px; border-radius: 8px; margin: 8px 0; }
.notice.warn { background: var(--warn-soft); }
.notice.danger { background: var(--danger-soft); }
.notice.warn > p:first-child { color: var(--warn); font-weight: 600; margin-top: 0; }
.photo-upload { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0; }
.photo-upload input[type=file] { max-width: 100%; font-size: .9rem; }
.route-link { display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: .82rem; font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Package G: categories, social links, diplomas, media, cookies */
.field-pair > [data-show-for] .field { margin-top: -4px; }
details.social-fields { margin: 4px 0 14px; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; }
details.social-fields > summary { cursor: pointer; font-weight: 600; }
details.social-fields[open] > summary { margin-bottom: 6px; }
.social-links { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 6px 0 0; padding: 0; }
.social-link { display: inline-block; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; font-weight: 600; text-decoration: none; background: var(--surface); }
.social-link:hover { border-color: var(--brand); }
.diploma-table { min-width: 0; }
.diploma-table .actions { white-space: nowrap; text-align: right; vertical-align: top; }
.diploma-table .actions .inline { display: block; margin-top: 4px; }
.table td.nowrap { white-space: nowrap; }
.diploma-table td:first-child { min-width: 160px; }
.row-edit-grid.wide { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.row-edit-grid.wide .field:first-child { grid-column: 1 / -1; }
.media-fields { border-top: 1px solid var(--line); padding-top: 12px; }
.event-media { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.event-media h3 { margin-top: 0; }
.media-item { margin-bottom: 12px; }
.media-item > .btn { margin-bottom: 8px; }
.btn.live { border-color: var(--danger); color: var(--danger); }
.embed { position: relative; width: 100%; max-width: 720px; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--bg); border: 1px dashed var(--line); }
.embed.loaded { border: 0; background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; text-align: center; font-size: .9rem; }
.embed-consent p { max-width: 46ch; margin: 0; color: var(--muted); }
/* Previews of YouTube and Vimeo links in posts, comments and messages (16.11.2026). */
.media-preview { max-width: 480px; margin: 8px 0; }
.msg .media-preview { min-width: 240px; }
.board-gif { position: absolute; left: 6px; bottom: 6px; padding: 1px 6px; border-radius: 4px; background: rgba(0,0,0,.6); color: #fff; font: 700 .7rem/1.4 var(--font); letter-spacing: .04em; }
.media-preview .embed-consent { font-size: .82rem; gap: 6px; padding: 10px; }
.cookie-notice { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 640px; margin: 0 auto; display: flex; flex-wrap: wrap;
  align-items: center; gap: 8px 16px; padding: 12px 16px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18); font-size: .9rem; }
.cookie-notice[hidden] { display: none; }
.cookie-notice p { margin: 0; flex: 1 1 280px; }
.cookie-notice-actions { display: flex; gap: 8px; }
.cookie-table { min-width: 640px; font-size: .9rem; }
.cookie-table td { vertical-align: top; }
.cookie-prefs { display: grid; gap: 4px; justify-items: start; margin-bottom: 12px; }
@media print { .cookie-notice { display: none !important; } }
.social-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 0 12px; }
/* Diplomas in a narrow column or on the phone: one block per diploma, buttons on the right. */
#diplomas { container-type: inline-size; }
@container (max-width: 560px) {
  .diploma-table, .diploma-table tbody { display: block; }
  .diploma-table thead { display: none; }
  .diploma-table tbody tr:not(.row-edit) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .diploma-table tbody tr:not(.row-edit) > td { border: 0; padding: 2px 0; }
  .diploma-table td:first-child { grid-column: 1; min-width: 0; }
  .diploma-table td.nowrap { grid-column: 1; white-space: normal; }
  .diploma-table td.actions { grid-column: 2; grid-row: 1 / span 2; }
  .diploma-table tr.row-edit:not([hidden]), .diploma-table tr.row-edit:not([hidden]) > td { display: block; }
}

/* Package H: private appointments, tasks, ratings */
.type-private { --tc: #5b6660; background: #eceeec; color: #3d4641; }
.type-task { --tc: #0f7b8a; background: #e1f3f5; color: #0b5f6b; }
/* 0095: own workouts of the players (private, warm orange) */
/* Own workouts: pink, apart from the club (amber) and the duties (Carlo, 19.11.2026: «allineare i colori»). */
.type-workout { --tc: #be185d; background: #fce7f3; color: #9d174d; }
.guest-list { list-style: none; margin: 0 0 12px; padding: 0; }
.guest-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.guest-list li:last-child { border-bottom: 0; }
.guests-head { margin-top: 18px; }
.rsvp button[aria-pressed=true] { box-shadow: inset 0 0 0 2px currentColor; }
@media (prefers-color-scheme: dark) {
  .type-private { --tc: #9aa69f; background: #262d29; color: #c3ccc6; }
  .type-task { --tc: #4cc3d3; background: #15343a; color: #8fdbe5; }
  .type-workout { --tc: #f472b6; background: #3b1729; color: #f9a8d4; }
}
/* Courses for a diploma, «Ausbildung» (doc 58, 19:49): violet, like a school day. */
.type-education { --tc: #6d28d9; background: #ede9fe; color: #5b21b6; }
@media (prefers-color-scheme: dark) { .type-education { --tc: #a78bfa; background: #2a2145; color: #c4b5fd; } }
.cal-ev.type-private, .cal-ev.type-workout, .cal-ev.type-education { border-style: dashed; }
.workout-table td.num, .workout-table th.num { text-align: right; white-space: nowrap; }
.workout-sum { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 10px; }
.workout-sum strong { font-size: 1.25em; }
/* «La mia forma» (0098): tips by tone, the load of the last four weeks as bars. */
.health-tips { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.health-tips li { padding: 8px 10px; border-radius: 8px; border-left: 4px solid var(--brand); background: var(--brand-soft); }
.health-tips li.tip-warn { border-color: var(--warn); background: var(--warn-soft); }
.health-tips li.tip-good { border-color: var(--ok); background: var(--ok-soft); }
/* Charts over time (20.11.2026): one SVG for the shapes (stretched, strokes that do not scale), texts in HTML. */
.tchart { --tc: #db2777; --tc-soft: rgba(219, 39, 119, .16); --tc-h: 150px; margin: 8px 0 2px; }
.tchart.tc-normal { --tc-h: 110px; }
.tchart.tc-small { --tc-h: 64px; margin: 4px 0 0; }
.tc-load { --tc: #db2777; --tc-soft: rgba(219, 39, 119, .16); }
.tc-sleep { --tc: #6366f1; --tc-soft: rgba(99, 102, 241, .16); }
.tc-steps { --tc: #0d9488; --tc-soft: rgba(13, 148, 136, .16); }
.tc-km { --tc: #2563eb; --tc-soft: rgba(37, 99, 235, .16); }
.tc-rhr { --tc: #dc2626; --tc-soft: rgba(220, 38, 38, .14); }
.tc-hrv { --tc: #7c3aed; --tc-soft: rgba(124, 58, 237, .14); }
.tc-vo2 { --tc: #ea580c; --tc-soft: rgba(234, 88, 12, .14); }
@media (prefers-color-scheme: dark) {
  .tc-load { --tc: #f472b6; } .tc-sleep { --tc: #a5b4fc; } .tc-steps { --tc: #2dd4bf; } .tc-km { --tc: #60a5fa; }
  .tc-rhr { --tc: #f87171; } .tc-hrv { --tc: #c4b5fd; } .tc-vo2 { --tc: #fb923c; }
}
.tc-body { display: flex; align-items: stretch; gap: 6px; }
.tc-y { flex: none; width: 34px; height: var(--tc-h); display: flex; flex-direction: column; justify-content: space-between; text-align: right; }
.tc-y span { font-size: 11px; line-height: 0; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tc-area { position: relative; flex: 1 1 auto; min-width: 0; height: var(--tc-h); }
.tc-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; display: block; }
.tc-gridline { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.tc-gridline.base { stroke-dasharray: none; }
.tc-bar { fill: var(--tc); opacity: .85; }
.tc-bar.now { opacity: 1; stroke: var(--ink); stroke-width: 1.5; }
.tc-line { fill: none; stroke: var(--tc); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.tc-fill { fill: var(--tc-soft); stroke: none; }
.tc-avg { fill: none; stroke: var(--brand); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.tc-dot { fill: none; stroke: var(--tc); stroke-width: 6; stroke-linecap: round; }
.tc-dot.now { stroke-width: 9; }
.tc-cols { position: absolute; inset: 0; display: flex; }
.tc-col { position: relative; flex: 1 1 0; min-width: 0; outline: none; border-radius: 4px; }
.tc-col:hover, .tc-col:focus-visible { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.tc-col:hover::after, .tc-col:focus::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 3;
  padding: 5px 8px; border-radius: 6px; background: var(--ink); color: var(--surface); font-size: 12px; line-height: 1.3; white-space: nowrap; pointer-events: none; box-shadow: var(--shadow);
}
.tc-col.start::after { left: 0; transform: none; }
.tc-col.end::after { left: auto; right: 0; transform: none; }
.tc-x { display: flex; justify-content: space-between; margin: 5px 0 0 40px; }
.tc-x span { width: 4.2em; text-align: center; font-size: 11px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tc-x span:first-child { text-align: left; }
.tc-x span:last-child { text-align: right; }
.tc-x.all { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.tc-x.all span, .tc-x.all span:first-child, .tc-x.all span:last-child { width: auto; text-align: center; overflow: hidden; text-overflow: clip; }
@media (max-width: 520px) { .tc-x.all span:nth-child(even) { visibility: hidden; } }
.month-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.month-head h2 { margin: 0; }
.month-metric .trend-value { margin: 0 0 2px; }
.tc-key .key { display: inline-block; width: 14px; height: 8px; border-radius: 2px; margin: 0 4px 0 8px; vertical-align: middle; background: var(--tc); }
.tc-key .key:first-child { margin-left: 0; }
.tc-key .key.line { height: 3px; background: var(--brand); }
.trends-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 4px; }
.trends-head h2 { margin: 0; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.seg a { padding: 4px 12px; border-radius: 999px; font-size: 13px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.seg a[aria-current] { background: var(--surface); color: var(--brand); font-weight: 600; box-shadow: var(--shadow); }
.trend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 20px; margin: 10px 0 6px; }
.trend { min-width: 0; padding-top: 10px; border-top: 1px solid var(--line); }
.trend.wide { grid-column: 1 / -1; }
.trend header h3 { margin: 0; font-size: 15px; display: flex; align-items: baseline; gap: 6px; }
.trend header h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tc); flex: none; align-self: center; }
.trend-value { margin: 2px 0 0; }
.trend-value strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.health-teaser-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; text-decoration: none; color: inherit; }
.health-teaser-head h2 { margin: 0 0 8px; }
.health-teaser .acwr-ok strong { color: var(--ok); }
.health-teaser .acwr-warn strong { color: var(--warn); }
.health-teaser-tip { margin: 6px 0 0; padding: 6px 10px; border-radius: 8px; border-left: 4px solid var(--brand); background: var(--brand-soft); font-size: .95em; }
.health-teaser-tip.tip-warn { border-color: var(--warn); background: var(--warn-soft); }
/* 26.11.2026: the words around «La mia forma» (Services\FitnessInsights) — the form against the age group, one sentence
   under every chart, the report of a workout, more on the overview. */
.trend-note { margin: 6px 0 0; padding: 5px 9px; font-size: .86rem; border-radius: 6px; border-left: 3px solid var(--line); background: var(--bg); color: var(--ink); }
.trend-note.tn-good { border-left-color: var(--ok); background: var(--ok-soft); }
.trend-note.tn-warn { border-left-color: var(--warn); background: var(--warn-soft); }
.trend-note.tn-info { border-left-color: var(--brand); }
.fit-form-sum { margin: 4px 0 10px; }
.fit-form-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.fit-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface); }
.fit-item p { margin: 6px 0 0; }
.fit-item-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.fit-item-label { color: var(--muted); font-size: .85rem; width: 100%; }
.fit-item-head strong { font-size: 1.25rem; }
.fit-badge.lv-low { background: var(--danger-soft); color: var(--danger); }
.fit-badge.lv-fair { background: var(--warn-soft); color: color-mix(in srgb, var(--warn) 70%, var(--ink)); }
.fit-badge.lv-good, .fit-badge.lv-great, .fit-badge.lv-top { background: var(--ok-soft); color: var(--ok); }
.fit-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; margin-top: 8px; }
.fit-scale span { height: 6px; border-radius: 3px; background: var(--line); }
.fit-item.lv-low .fit-scale span.on { background: var(--danger); }
.fit-item.lv-fair .fit-scale span.on { background: var(--warn); }
.fit-item.lv-good .fit-scale span.on, .fit-item.lv-great .fit-scale span.on, .fit-item.lv-top .fit-scale span.on { background: var(--ok); }
.workout-report h3 { font-size: 1rem; margin: 14px 0 6px; }
.wr-metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin: 0 0 10px; }
.wr-metric { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 1px; background: var(--surface); }
.wr-metric strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.wr-label { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
.wr-sub { color: var(--muted); font-size: .8rem; }
.wr-zone strong { color: var(--brand); }
.wr-summary { margin: 0 0 6px; line-height: 1.5; }
.wr-d-good { color: var(--ok); font-weight: 600; }
.wr-d-warn { color: color-mix(in srgb, var(--warn) 75%, var(--ink)); font-weight: 600; }
.ask-assistant { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 10px 0 0; }
.teaser-more { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.teaser-more li.tn-warn { color: color-mix(in srgb, var(--warn) 75%, var(--ink)); }
.teaser-more li.tn-good { color: var(--ok); }
.pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 12px; margin: 0 0 12px; }
.row.spread { justify-content: space-between; align-items: center; }
.form-foot { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.task-list .task-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.task-state { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.task-text { white-space: normal; line-height: 1.55; }
.task-photo { display: block; max-width: 100%; max-height: 320px; border-radius: var(--radius); margin: 8px 0; }
.task-thumb { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.task-table .note-cell { min-width: 160px; max-width: 320px; white-space: normal; font-size: .9rem; }
.pick-quick { flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.pick-group { border-top: 1px solid var(--line); padding-top: 8px; margin: 8px 0 0; }
.pick-group legend { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.pick { display: inline-flex; align-items: center; gap: 6px; margin: 3px 14px 3px 0; white-space: nowrap; }
.card.has-error { border-color: var(--danger); }
/* NPS scale: 0–6 red, 7–8 yellow, 9–10 green */
.event-feedback { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.event-feedback h3 { margin-top: 0; }
.nps-scale legend { font-weight: 600; margin-bottom: 8px; }
.nps-options { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; max-width: 560px; }
.nps-opt { position: relative; cursor: pointer; }
.nps-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.nps-opt span { display: flex; align-items: center; justify-content: center; height: 38px; border-radius: 8px; font-weight: 700; border: 2px solid transparent; }
.nps-opt.nps-detractor span, .nps-chip.nps-detractor { background: #fdecea; color: #a1281c; }
.nps-opt.nps-passive span, .nps-chip.nps-passive { background: #fff4d6; color: #855700; }
.nps-opt.nps-promoter span, .nps-chip.nps-promoter { background: #e1f4e6; color: #17663a; }
.nps-opt input:checked + span { border-color: currentColor; box-shadow: 0 0 0 2px var(--surface) inset; }
.nps-opt input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.nps-ends { display: flex; justify-content: space-between; max-width: 560px; font-size: .8rem; color: var(--muted); margin: 4px 0 8px; }
.nps-badge { display: inline-block; padding: 1px 10px; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.nps-badge.nps-promoter { background: #e1f4e6; color: #17663a; } .nps-badge.nps-passive { background: #fff4d6; color: #855700; }
.nps-badge.nps-detractor { background: #fdecea; color: #a1281c; } .nps-badge.nps-none { background: var(--bg); color: var(--muted); }
.nps-results { display: grid; gap: 14px; margin-top: 10px; }
.nps-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.nps-bars { display: grid; grid-template-columns: repeat(11, 1fr); gap: 3px; height: 74px; max-width: 420px; align-items: end; }
.nps-bar { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; text-align: center; }
.nps-fill { display: block; border-radius: 3px 3px 0 0; min-height: 0; }
.nps-detractor .nps-fill { background: var(--st-critical); } .nps-passive .nps-fill { background: var(--st-warning); } .nps-promoter .nps-fill { background: var(--st-good); }
.nps-x { font-size: .7rem; color: var(--muted); line-height: 16px; }
.nps-fill.h0 { height: 0; } .nps-fill.h10 { height: 6px; } .nps-fill.h20 { height: 12px; } .nps-fill.h30 { height: 17px; } .nps-fill.h40 { height: 23px; }
.nps-fill.h50 { height: 29px; } .nps-fill.h60 { height: 35px; } .nps-fill.h70 { height: 41px; } .nps-fill.h80 { height: 46px; } .nps-fill.h90 { height: 52px; } .nps-fill.h100 { height: 58px; }
.nps-comments { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.nps-chip { display: inline-block; min-width: 24px; text-align: center; border-radius: 6px; font-weight: 700; font-size: .8rem; padding: 0 4px; }
@media (prefers-color-scheme: dark) {
  .nps-opt.nps-detractor span, .nps-chip.nps-detractor, .nps-badge.nps-detractor { background: #3a1d1b; color: #f99b92; }
  .nps-opt.nps-passive span, .nps-chip.nps-passive, .nps-badge.nps-passive { background: #3a2c12; color: #f3c46b; }
  .nps-opt.nps-promoter span, .nps-chip.nps-promoter, .nps-badge.nps-promoter { background: #1d3326; color: #79d39e; }
}
@media (max-width: 480px) { .nps-options { gap: 2px; } .nps-opt span { height: 34px; font-size: .85rem; border-radius: 6px; } }
.feedback-ask { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.tiles .tile .nps-badge { font-size: 1rem; }
/* One rhythm on every page (Carlo, 12.11.2026): cards, grids and stacks placed directly in the page are 16px apart, like
   the cards inside a grid or a stack (before, a card after a grid touched it, e.g. «Convoked and attendance» on an
   appointment). Low specificity: classes with their own margin (.narrow, .guide-toc …) keep it. */
main > :where(.card, .grid, .stack, .notice, .table-wrap, .tiles, .kpis, .board, .charts) + :where(.card, .grid, .stack, .table-wrap, .tiles, .kpis, .board, .charts) { margin-top: 16px; }
.cal-mine.maybe { background: var(--warn); color: #fff; }

/* Monthly player card (package I) */
.type-card { --tc: #b7791f; background: #fbf0dc; color: #7a4f0c; }
.month-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.month-tabs a { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .9rem; }
.month-tabs a[aria-current=page] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }
.card-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 10px 12px; margin: 0 0 8px;
  border-radius: var(--radius); background: var(--warn-soft); color: var(--warn); font-weight: 600; }
.card-flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.card-list .list-row { gap: 10px; }
.card-view { display: grid; grid-template-columns: minmax(0, 560px); justify-content: center; gap: 12px; margin-bottom: 16px; }
.card-picture canvas { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.card-actions { justify-content: center; margin-top: 12px; }
.card-picture canvas.adjusting { cursor: grab; touch-action: none; outline: 3px dashed var(--brand); outline-offset: 4px; }
.card-picture canvas.adjusting:active { cursor: grabbing; }
.card-frame-tools.adjusting { position: sticky; bottom: 8px; z-index: 5; }
.card-frame-panel { margin-top: 12px; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.frame-zoom { display: flex; align-items: center; gap: 10px; margin: 8px 0 12px; font-weight: 600; }
.frame-zoom input { flex: 1; }
.card-headline { font-size: 1.15rem; font-weight: 700; }
.card-tiles { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 12px; }
.card-tiles li { padding: 6px 12px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.card-tiles.small li { padding: 4px 10px; font-size: .9rem; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.photo-slot { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.photo-slot img, .photo-empty { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--bg); border: 1px dashed var(--line); }
.photo-slot.portrait img, .photo-slot.portrait .photo-empty { aspect-ratio: 1; border-radius: 50%; width: 120px; align-self: center; }
.photo-empty { display: grid; place-items: center; color: var(--muted); font-size: .85rem; text-align: center; }
.photo-slot figcaption { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .85rem; color: var(--muted); }
.photo-upload { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.photo-upload.busy { opacity: .6; pointer-events: none; }
.upload-error { color: var(--danger); font-size: .85rem; font-weight: 600; }
.photo-choice { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; border: 0; padding: 0; margin: 12px 0; }
.photo-choice legend { font-weight: 600; margin-bottom: 6px; }
.photo-pick img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; vertical-align: middle; }
.improve-fields { border: 0; padding: 0; margin: 0 0 12px; }
.improve-fields legend { font-weight: 600; margin-bottom: 6px; }
.improve-fields .field { margin-bottom: 8px; }
@media (prefers-color-scheme: dark) {
  .type-card { --tc: #e8b04f; background: #3a2c12; color: #f3c46b; }
}

/* Messenger and connections (package J) */
.nav-badge { display: inline-block; min-width: 1.4em; padding: 0 .4em; margin-left: .35em; border-radius: 999px; background: var(--danger); color: #fff;
  font-size: .75rem; font-weight: 700; line-height: 1.5; text-align: center; vertical-align: 1px; }
.nav-badge[hidden] { display: none; }
.type-team { --tc: #1d4ed8; background: #e3ebff; color: #1e3a8a; }
.chat-overview .list-row { align-items: center; gap: 12px; }
.chat-overview .unread .chat-title { font-weight: 700; }
.chat-link { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; text-decoration: none; color: inherit; }
.chat-title { color: var(--ink); }
.chat-preview { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; }
.chat-meta { white-space: nowrap; }
.chat { padding-bottom: 0; }
.chat-older { text-align: center; margin: 0 0 8px; }
.chat-list { list-style: none; margin: 0; padding: 0 0 8px; display: flex; flex-direction: column; gap: 8px; }
.msg { align-self: flex-start; max-width: min(78%, 640px); padding: 8px 12px; border-radius: 16px 16px 16px 4px; background: var(--bg); border: 1px solid var(--line); }
.msg.own { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: var(--brand-soft); border-color: transparent; }
.msg.deleted { opacity: .7; }
.msg-head { display: flex; gap: 8px; align-items: baseline; font-size: .8rem; color: var(--muted); }
.msg-head strong { color: var(--ink); }
.msg-head form { margin-left: auto; }
/* Read receipts (0072): ✓ sent, ✓✓ read by some, blue ✓✓ read by everybody, as on WhatsApp. */
.msg-receipt { font-size: .75rem; letter-spacing: -.18em; color: var(--muted); }
.msg-receipt.read { color: #2f80ed; }
.msg-del { padding: 0 4px; line-height: 1; color: var(--muted); }
.msg-body { margin: 2px 0 0; white-space: normal; overflow-wrap: anywhere; }
.msg-body a { word-break: break-all; }
.chat-form { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; padding: 12px 0;
  background: var(--surface); border-top: 1px solid var(--line); margin: 0 -1px; }
.chat-form textarea { resize: vertical; min-height: 44px; max-height: 40vh; }
.chat-hint, .chat-error { grid-column: 1 / -1; margin: 0; }
.chat-error { color: var(--danger); font-weight: 600; }
@media (pointer: coarse) { .chat-hint { display: none; } }
@media (prefers-color-scheme: dark) {
  .type-team { --tc: #93c5fd; background: #1e293b; color: #bfdbfe; }
}


/* Package L: profile photos, team board */
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; object-fit: cover; font-weight: 700; color: #fff;
  background: var(--muted); line-height: 1; user-select: none; }
.avatar-sm { width: 28px; height: 28px; font-size: .72rem; }
.avatar-md { width: 40px; height: 40px; font-size: .9rem; }
.avatar-lg { width: 96px; height: 96px; font-size: 2rem; }
.avatar-c0 { background: #1f6f43; } .avatar-c1 { background: #2563eb; } .avatar-c2 { background: #c2410c; } .avatar-c3 { background: #7c3aed; }
.avatar-c4 { background: #b91c1c; } .avatar-c5 { background: #0f766e; } .avatar-c6 { background: #be185d; } .avatar-c7 { background: #0369a1; }
.avatar-c8 { background: #4d7c0f; } .avatar-c9 { background: #92400e; }
.avatar-edit { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.avatar-edit .photo-upload { display: inline-block; }
.chat-contact { display: inline-flex; align-items: center; gap: 8px; }
.board { display: grid; gap: 12px; max-width: 860px; }
/* Which board, and the switch to the others (14.11.2026). */
.board-switch { margin: 2px 0 4px; }
.board-switch summary { list-style: none; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.board-switch summary::-webkit-details-marker { display: none; }
.board-switch ul { max-height: 60vh; overflow: auto; max-width: min(360px, calc(100vw - 48px)); }
.board-switch li a { display: flex; justify-content: space-between; gap: 8px; }
.board-new textarea { width: 100%; }
.board-new label { font-weight: 600; display: block; margin-bottom: 4px; }
.board-post { padding: 14px 16px; }
.board-post.is-staff { border-left: 4px solid var(--brand); background: color-mix(in srgb, var(--brand-soft) 45%, var(--surface)); }
.board-post.is-pinned { box-shadow: inset 0 3px 0 #f5c242, var(--shadow); }
.board-post.is-new { outline: 2px solid color-mix(in srgb, var(--brand) 40%, transparent); }
.board-head { display: flex; gap: 10px; align-items: center; }
.board-who { flex: 1 1 auto; min-width: 0; }
.board-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.board-report { position: relative; display: inline-block; } /* «Segnala» (0066): reason and note in a small box */
.board-report > summary { list-style: none; cursor: pointer; }
.board-report > summary::-webkit-details-marker { display: none; }
.board-report > form { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; width: min(320px, 80vw); padding: 10px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 24px rgb(0 0 0 / .15); text-align: left; font-weight: normal; }
.board-comment-head .board-report > form { left: 0; right: auto; }
.board-reported { margin: 6px 0; }
.board-body { margin: 10px 0 4px; overflow-wrap: anywhere; }
.badge.staff { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.board-comments { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
/* Who has read a post (28.11.2026): for the author and the staff. */
.board-reads { margin-top: 8px; }
.board-reads summary { cursor: pointer; width: fit-content; }
.board-reads-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 6px 16px; margin-top: 6px; }
.board-reads ul { margin: 4px 0 0; padding-left: 18px; }
.board-reads p { margin: 4px 0 0; }
.board-comment { display: flex; gap: 8px; align-items: flex-start; }
.board-comment-main { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; padding: 6px 10px; border-radius: 10px; background: var(--bg); }
.board-comment.is-staff .board-comment-main { background: var(--brand-soft); }
.board-comment.is-new .board-comment-main { outline: 1px solid var(--brand); }
.board-comment-head { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.board-comment-head form { margin-left: auto; }
.board-comment-form { display: flex; gap: 8px; align-items: flex-start; }
.board-comment-form textarea { flex: 1 1 auto; min-height: 36px; }
.board-pages { justify-content: space-between; }

/* Meetups (package M) */
.meetup-list { margin-top: 8px; }
.meetup-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.meetup-row:last-child { border-bottom: 0; }
.meetup-row.cancelled .meetup-title strong { text-decoration: line-through; }
.meetup-main { min-width: 0; flex: 1 1 auto; }
.meetup-main > div { margin-top: 2px; }
.meetup-where { margin: 0 0 8px; font-weight: 600; }
.radius-tabs { gap: 6px; margin-bottom: 6px; align-items: center; }
.radius-tabs .chip { text-decoration: none; color: var(--ink); }
.radius-tabs .chip.active { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.meetup-person { display: flex; gap: 10px; align-items: center; padding: 4px 0; }
.meetup-people { margin: 0; }
.meetup-text { margin: 12px 0; }
.geo-here { gap: 8px; align-items: center; margin: -4px 0 12px; }
.geo-msg { color: var(--danger); }
ul.rules { margin: 0; padding-left: 18px; }
ul.rules li { margin: 4px 0; }
.type-meetup { --tc: #0e7490; background: #e0f2f7; color: #0b5566; }
@media (prefers-color-scheme: dark) { .type-meetup { --tc: #5cc8de; background: #133038; color: #9fe0ec; } }

/* Map (map.js): tiles of swisstopo or OpenStreetMap after the viewer chose to load them */
.map-card { padding: 0; overflow: hidden; }
.map-box { position: relative; height: 360px; background: var(--bg); overflow: hidden; outline: none; }
.map-box:focus-visible { box-shadow: inset 0 0 0 2px var(--brand); }
.map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; text-align: center; }
.map-consent p { margin: 0; max-width: 32em; color: var(--muted); }
.map-live { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.map-live.dragging { cursor: grabbing; }
.map-tiles, .map-marks { position: absolute; inset: 0; }
.map-tile { position: absolute; width: 256px; height: 256px; max-width: none; pointer-events: none; }
.map-pin { position: absolute; transform: translate(-50%, -100%); min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px 13px 13px 0; border: 2px solid #fff; background: var(--brand); color: #fff;
  font-weight: 700; font-size: .8rem; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.map-pin.mine { background: #d9480f; }
.map-pin:focus-visible { outline: 3px solid #ffd84d; }
.map-me { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #2563eb; border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(37, 99, 235, .35); }
.map-radius { position: absolute; border-radius: 50%; border: 2px solid rgba(37, 99, 235, .55); background: rgba(37, 99, 235, .07); pointer-events: none; }
.map-zoom { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 4px; }
.map-zbtn { width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1.1rem; cursor: pointer; }
.map-attr { position: absolute; right: 0; bottom: 0; background: rgba(255, 255, 255, .85); padding: 1px 6px; font-size: .7rem; }
.map-attr a { color: #333; }
.map-pop { position: absolute; width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; box-shadow: var(--shadow); z-index: 2; }
.map-pop a { display: inline-block; margin-top: 4px; }
@media (max-width: 899px) { .map-box { height: 300px; } }
@media print { .map-card { display: none; } }

/* Package S: captcha, two-step sign-in, security page, administration */
.captcha { margin: 10px 0 14px; }
.captcha-status { margin: 4px 0; }
.captcha-image { display: grid; gap: 6px; justify-items: start; }
.captcha-image img { border: 1px solid var(--line); border-radius: 8px; background: #f6f8f5; max-width: 100%; height: auto; }
.captcha-image input { max-width: 180px; text-transform: uppercase; letter-spacing: .2em; font-family: ui-monospace, Menlo, Consolas, monospace; }
.captcha.has-error .captcha-image input { border-color: var(--danger); }
.qr-box { display: flex; justify-content: center; margin: 12px 0; }
.qr-box svg.qr { width: 220px; height: 220px; max-width: 70vw; max-height: 70vw; border-radius: 8px; }
.backup-codes { columns: 2; column-gap: 24px; padding-left: 24px; font-size: 1.05rem; }
.backup-codes li { margin: 4px 0; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 12px 0; }
.choice { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; }
.choice:hover, .choice:focus-visible { border-color: var(--brand); background: var(--ok-soft); }
.card.subtle { box-shadow: none; border: 1px solid var(--line); }
.center-row { justify-content: center; }
tr.row-warn td { background: var(--warn-soft); }
.notice-card { border-left: 4px solid var(--warn); }
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.admin-nav a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: inherit; font-size: .92rem; }
.admin-nav a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: var(--surface); color: inherit; text-decoration: none; }
a.kpi b { color: var(--brand); }
a.kpi:hover, a.kpi:focus-visible { border-color: var(--brand); }
.admin-chart { max-width: 760px; }
.kpi b { display: block; font-size: 1.6rem; line-height: 1.1; }
.kpi span { color: var(--muted); font-size: .85rem; }
.kpi.warn b { color: var(--warn); }
.kpi.bad b { color: var(--danger); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-bottom: 10px; }
.filters .field { margin: 0; }
.pager { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.dot-online { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 4px; vertical-align: middle; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; word-break: break-all; }
/* Registrations (anti-spam package, 11.11.2026) */
.reg-table { max-width: 760px; }
.reg-table tbody th { font-weight: 400; }
.reg-table tr.reg-part th { padding-left: 28px; color: var(--muted); }
.reg-table tr.reg-spam th, .reg-table tr.reg-spam td { font-weight: 700; }
.reg-name { overflow-wrap: anywhere; max-width: 280px; }
@media (max-width: 560px) {
  .reg-table th, .reg-table td { padding: 6px 4px; }
  .reg-table thead th { white-space: normal; font-size: .7rem; letter-spacing: 0; }
  .reg-table tr.reg-part th { padding-left: 12px; }
}
@media print { .captcha, .admin-nav { display: none !important; } }

/* Home screen (11.11.2026) */
.install-app { margin-top: 14px; }
.install-app .btn { display: inline-flex; align-items: center; gap: 6px; }
.install-help { margin-top: 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--ok-soft); text-align: left; }
.install-help p { margin: 4px 0; }
.icon-inline { width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex: none; }
.narrow .install-app { text-align: center; }

/* Navigation and notices (11.11.2026) */
/* Menu: «Teams» of club administrators, closed by default; a heading per team. */
.menu-count { display: inline-block; min-width: 1.6em; padding: 0 .4em; border-radius: 999px; background: var(--bg); color: var(--muted); font-size: .75rem; text-align: center; letter-spacing: 0; }
.menu-sub { font-size: .85rem; margin: 10px 0 2px 8px; color: var(--ink); }
.menu-sub[hidden] { display: none; }
.menu-group li a .nav-badge { margin-left: .5em; }

/* Overview: clubs before the teams, the teams of past seasons in a box closed by default. */
.dash-clubs { margin-bottom: 12px; }
.dash-clubs ul { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 0; padding: 0; }
.past-teams { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.past-teams > summary { cursor: pointer; color: var(--muted); font-weight: 600; padding: 4px 0; }
.past-teams > summary:hover { color: var(--brand); }
.past-teams .list-row { opacity: .85; }

/* Club page: active / switched off, staff of the teams. */
.table tr.team-off > td { color: var(--muted); }
.table tr.team-off > td a { color: var(--muted); }
.staff-edit { display: grid; gap: 10px; }
.staff-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.staff-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.staff-list li > span:first-child { min-width: 12em; font-weight: 600; }
.staff-list select { width: auto; }
.staff-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.staff-add .field { margin: 0; }
.staff-add .field:first-of-type { flex: 1 1 24em; max-width: 34em; }
.staff-add input[list] { width: 100%; }

/* Board and messages as a panel over the page (panel.js). */
.side-panel { position: fixed; z-index: 45; top: calc(var(--header-h, 61px) + 8px); right: 12px; bottom: 12px; width: min(480px, calc(100vw - 24px));
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 36px rgba(10, 16, 12, .28); }
.side-panel[hidden] { display: none; }
.side-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0; background: color-mix(in srgb, var(--brand-soft) 60%, var(--surface)); }
.side-panel[data-kind="board"] .side-panel-head { background: #234d36; color: #f2f7f3; }
.side-panel[data-kind="board"] .side-panel-head .btn { background: transparent; color: #f2f7f3; border-color: rgba(242, 247, 243, .45); }
.side-panel-head strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-panel-close { font-size: 1.5rem; line-height: 1; padding: 0 6px; color: inherit; }
.side-panel-body { flex: 1 1 auto; overflow-y: auto; padding: 12px; overscroll-behavior: contain; }
.side-panel[aria-busy="true"] .side-panel-body { opacity: .6; }
.side-panel .page-head.panel-head { margin-bottom: 10px; gap: 8px; }
.side-panel .card { padding: 12px; box-shadow: none; }
.side-panel .board { max-width: none; gap: 10px; }
.side-panel .board-post { padding: 10px 12px; }
.side-panel .chat-panel { border: 0; padding: 0; background: transparent; }
.side-panel .chat-form { background: var(--surface); }
.side-panel .stack { gap: 10px; }
@media (max-width: 600px) {
  .side-panel { top: var(--header-h, 53px); left: 0; right: 0; bottom: 0; width: auto; border-radius: 0; border-width: 1px 0 0; }
  .side-panel-head { border-radius: 0; }
}
@media print { .side-panel { display: none !important; } }

/* Tasks: the parents of minors only when asked. */
.guardian-box[hidden] { display: none; }

/* Menu: clearly marked sections (11.11.2026): heading as a tinted band with a coloured accent per kind (general,
   own team, «Teams», club, administration, guide), the links indented under it. */
.menu-group { --mg: var(--brand); margin: 0 0 14px; }
.menu-group[data-kind="team"], .menu-group[data-kind="teams"] { --mg: var(--series-2); }
.menu-group[data-kind="club"] { --mg: var(--series-3); }
.menu-group[data-kind="admin"] { --mg: var(--danger); }
.menu-group[data-kind="guide"], .menu-group[data-kind="people"] { --mg: var(--muted); }
/* Every group opens and closes (11.11.2026): the heading band is the switch, ▸ turns when open; closed groups take one
   line, so the menu stays short. */
.menu-group { margin: 0 0 8px; }
.menu-group > summary { list-style: none; cursor: pointer; display: block; border-radius: 10px; }
.menu-group > summary::-webkit-details-marker { display: none; }
.menu-group > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.menu-group > summary h2 {
  display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px 10px 14px; position: relative; min-height: 44px; box-sizing: border-box;
  font-size: .95rem; font-weight: 700; letter-spacing: .005em; text-transform: none; color: var(--ink);
  border-radius: 10px; background: color-mix(in srgb, var(--mg) 9%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mg) 14%, transparent); }
.menu-group > summary h2::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--mg); }
.menu-group > summary h2::after { content: "▸"; margin-left: auto; color: var(--mg); font-size: .9rem; transition: transform .15s; }
.menu-group[open] > summary h2::after { transform: rotate(90deg); }
.menu-group > summary:hover h2 { background: color-mix(in srgb, var(--mg) 15%, var(--surface)); }
.menu-group[open] > summary { margin-bottom: 4px; }
.menu-group ul { margin: 0 0 6px 12px; padding: 0 0 0 8px; border-left: 1px solid color-mix(in srgb, var(--mg) 22%, var(--line)); }
.menu-group li a { padding: 6px 8px; }
.menu-group .menu-count { background: color-mix(in srgb, var(--mg) 16%, var(--surface)); color: var(--ink); }
.menu-group-badge { margin-left: 0; }
.menu-sub { margin: 10px 0 2px 14px; font-size: .82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
@media (prefers-reduced-motion: reduce) { .menu-group > summary h2::after { transition: none; } }

/* Calendar switches (Carlo, 11.11.2026): team events in the club calendar, replaced matches in a team calendar. */
.cal-extra { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; font-weight: 600; position: relative; margin-right: 6px; }
.cal-extra input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.cal-switch { flex: none; width: 34px; height: 20px; border-radius: 999px; background: var(--line); position: relative; transition: background .15s; }
.cal-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface);
  box-shadow: 0 1px 2px rgb(0 0 0 / .3); transition: transform .15s; }
.cal-extra input:checked + .cal-switch { background: var(--brand); }
.cal-extra input:checked + .cal-switch::after { transform: translateX(14px); }
.cal-extra input:focus-visible + .cal-switch { outline: 2px solid var(--brand); outline-offset: 2px; }
.cal-ev.replaced { opacity: .6; border-left-style: dashed; }
.cal-ev.replaced .cal-name { text-decoration: line-through; }
.cal-ev.from-team { background: color-mix(in srgb, var(--tc, var(--muted)) 9%, var(--surface)); }
.cal-ev.from-team .cal-name { font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .cal-switch, .cal-switch::after { transition: none; } }

/* The way back, the same on every page (Carlo, 11.11.2026): «← club › team › …» above the title, no «Back» buttons. */
.crumbs { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: .88rem; min-width: 0; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; list-style: none; margin: 0; padding: 0; min-width: 0; }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: '›'; color: var(--muted); margin: 0 7px; font-size: 1.05em; }
.crumbs a, .crumbs span { color: var(--muted); text-decoration: none; font-weight: 500; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.crumbs .crumb-near a, .crumbs .crumb-near span { color: var(--ink); font-weight: 600; }
.crumb-back { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); text-decoration: none; font-size: 1rem; line-height: 1; box-shadow: 0 1px 2px rgb(0 0 0 / .06); }
.crumb-back:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.side-panel .crumbs { margin-bottom: 2px; }
@media (max-width: 640px) {
  .crumbs li:not(.crumb-near) { display: none; }
  .crumbs li + li::before { content: none; }
  .crumbs .crumb-near a, .crumbs .crumb-near span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 72vw; }
}
@media print { .crumbs { display: none; } }

/* Profile page (Carlo, 11.11.2026): photo, teams, social links with the apps' pictures, figures, what others see. */
.profile-hero { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; position: relative; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 10%, var(--surface)) 0%, var(--surface) 62%); }
.profile-hero h1 { margin: 0 0 6px; font-size: 1.7rem; letter-spacing: -.01em; }
.profile-main { flex: 1 1 260px; min-width: 0; }
.avatar-xl { width: 112px; height: 112px; font-size: 2.4rem; box-shadow: 0 0 0 4px var(--surface), 0 4px 14px rgb(0 0 0 / .14); }
.profile-teams { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 4px; }
.profile-teams li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.shirt { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 7px; background: var(--ink); color: var(--surface);
  font-weight: 700; font-size: .82rem; font-variant-numeric: tabular-nums; }
.profile-facts { margin: 6px 0; color: var(--muted); white-space: pre-wrap; }
.profile-contact { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0; }
.contact-link { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; text-decoration: none; overflow-wrap: anywhere; }
.grow { flex: 1 1 auto; min-width: 0; }
.social-link { display: inline-flex; align-items: center; gap: 7px; }
.social-icon { width: 22px; height: 22px; flex: none; border-radius: 6px; object-fit: contain; }
.social-mono { display: inline-grid; place-items: center; background: color-mix(in srgb, var(--ink) 12%, var(--surface)); color: var(--ink); font-size: .75rem; font-weight: 700; }
.field label.social-label { display: flex; align-items: center; gap: 6px; }
.social-label .social-icon { width: 18px; height: 18px; }
/* Logos of video and live providers (YouTube, Twitch, …) in the buttons «▶ Video · YouTube» (18.11.2026) */
.provider-icon { width: 1.15em; height: 1.15em; vertical-align: -0.2em; margin-right: 4px; object-fit: contain; }
/* The Threads logo is a black glyph: white in dark mode */
@media (prefers-color-scheme: dark) { .si-threads { filter: invert(1); } }
.social-hero { gap: 8px; margin-top: 10px; }
.social-hero .social-link { padding: 5px 12px 5px 6px; font-size: .9rem; box-shadow: 0 1px 2px rgb(0 0 0 / .06); }
.social-hero .social-icon { width: 26px; height: 26px; }
.result { display: inline-block; min-width: 3.2em; text-align: center; padding: 1px 8px; border-radius: 6px; font-weight: 700; font-variant-numeric: tabular-nums; font-size: .85rem; }
.result-win { background: var(--ok-soft); color: var(--ok); }
.result-draw { background: color-mix(in srgb, var(--muted) 16%, var(--surface)); color: var(--ink); }
.result-loss { background: var(--danger-soft); color: var(--danger); }
.profile-line { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.share-table td, .share-table th { padding: 6px 8px; }
.share-table input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--brand); }
@media (max-width: 640px) { .profile-hero { justify-content: center; text-align: center; } .profile-teams li, .social-hero { justify-content: center; } }

/* Statistics of team and club (Carlo, 11.11.2026). Results: win/loss as status colours with a neutral grey for the
   draw (labels and tables always next to them); trends in the series order s1, s2. */
:root { --res-draw: #a3aca6; }
@media (prefers-color-scheme: dark) { :root { --res-draw: #6b7570; } }
.chart-line.s2 { stroke: var(--series-2); } .chart-line.s3 { stroke: var(--series-3); }
.chart-seg.seg-w { fill: var(--st-good); } .chart-seg.seg-d { fill: var(--res-draw); } .chart-seg.seg-l { fill: var(--st-critical); }
.chart-seg.seg-goals { fill: var(--series-1); } .chart-seg.seg-assists { fill: var(--series-2); }
.key.seg-goals { background: var(--series-1); } .key.seg-assists { background: var(--series-2); }
.key.seg-w { background: var(--st-good); } .key.seg-d { background: var(--res-draw); } .key.seg-l { background: var(--st-critical); }
.stats-kpis { margin-bottom: 14px; }
.stats-kpis .kpi b { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stats-form { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.stats-form a { text-decoration: none; }
.result.est { outline: 1px dashed currentColor; outline-offset: -1px; }
.table td.up { color: var(--ok); font-weight: 600; } .table td.down { color: var(--danger); font-weight: 600; }
.table tr.current td { background: var(--brand-soft); }
.leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 12px 18px; }
.leader h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 4px; }
.leader ol { margin: 0; padding-left: 1.2em; }
.leader li { display: flex; gap: 8px; } .leader li b { font-variant-numeric: tabular-nums; }
.talents { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.talents > li { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.talent-head { display: flex; align-items: center; gap: 10px; }
.talent-score { flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-weight: 700; font-variant-numeric: tabular-nums;
  background: var(--brand-soft); color: var(--brand); border: 2px solid var(--brand); }
.stat-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 6px 0 0; padding: 0; font-size: .8rem; color: var(--muted); }
.stat-chips li { border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.stat-chips b { color: var(--ink); font-variant-numeric: tabular-nums; }
.score-form { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; }
.score-form input { width: 3.6em; text-align: center; padding: 4px; }
.year-switch .btn.active { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.activity-top td:first-child { box-shadow: inset 3px 0 0 var(--ok); }
.activity-low td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.ai-trend { font-weight: 700; } .ai-trend.trend-up { color: var(--ok); } .ai-trend.trend-down { color: var(--danger); }
.table-wrap + .charts, .table-wrap + .chart-box { margin-top: 16px; }

/* Appointment (Carlo, 11.11.2026): previous / next without the calendar. */
.event-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: -6px 0 16px; }
.event-nav-link { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  color: var(--ink); text-decoration: none; min-width: 0; transition: border-color .15s, box-shadow .15s; }
a.event-nav-link:hover, a.event-nav-link:focus-visible { border-color: var(--brand); box-shadow: 0 2px 10px rgb(0 0 0 / .07); }
.event-nav-link.next { justify-content: flex-end; text-align: right; }
.event-nav-link.next .event-nav-arrow { order: 2; }
.event-nav-link.none { border: 0; background: none; }
.event-nav-arrow { flex: none; font-size: 1.7rem; line-height: 1; color: var(--brand); }
.event-nav-text { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.event-nav-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.event-nav-what { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.event-nav-link.next .event-nav-what { justify-content: flex-end; }
.event-nav-when { flex: none; color: var(--muted); font-size: .85rem; }
.event-nav-title { overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.event-nav-link.cancelled .event-nav-title { text-decoration: line-through; color: var(--muted); }
@media (max-width: 640px) { .event-nav .type, .event-nav-when { display: none; } .event-nav-link { padding: 6px 8px; gap: 6px; } }
/* «Save attendance» between previous and next (11.11.2026): sends the table below. */
.event-nav.with-save { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; }
.event-save { align-self: center; white-space: nowrap; min-height: 44px; }
@media (max-width: 640px) { .event-nav.with-save { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; } .event-save { grid-column: 1 / -1; grid-row: 2; width: 100%; } }
/* The same row under the attendance list (23.11.2026 23:41): some room above; on the phone «Save» first, right under the list. */
.event-nav.at-end { margin: 14px 0 0; }
@media (max-width: 640px) { .event-nav.at-end .event-save { grid-row: 1; } }

/* Attendance (11.11.2026): staff apart, then comes / no answer / does not come / not convoked, each with its own
   colour wash across the row and an accent for the state; what does not apply is greyed out. */
.answer-split { display: flex; flex-direction: column; gap: 2px; }
.presence-counts .count-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 6px; }
.count-group { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); min-width: 6.5em; }
.chip-group { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 8px 0 4px; }
.table.attendance { --st: var(--line); }
.table.attendance tr[data-kind] td { background: transparent; }
.table.attendance tr[data-kind] { --wash: var(--muted); background: linear-gradient(90deg, color-mix(in srgb, var(--wash) 17%, var(--surface)) 0%,
  color-mix(in srgb, var(--wash) 6%, var(--surface)) 55%, var(--surface) 100%); }
.table.attendance tr.st-yes { --wash: var(--ok); --st: var(--ok); }
.table.attendance tr.st-pending { --wash: var(--warn); --st: var(--warn); }
.table.attendance tr.st-no { --wash: var(--danger); --st: var(--danger); }
.table.attendance tr.st-out { --st: var(--muted); background: linear-gradient(90deg, color-mix(in srgb, var(--muted) 12%, var(--bg)), var(--bg)); }
.table.attendance tr.st-out td:nth-child(2) { color: var(--muted); }
.table.attendance tr.staff-row { --wash: var(--series-2); }
.table.attendance tr.staff-row.st-out { background: linear-gradient(90deg, color-mix(in srgb, var(--series-2) 9%, var(--bg)), var(--bg)); }
.table.attendance tr[data-kind] td:first-child { box-shadow: inset 4px 0 0 var(--st); }
.table.attendance tr.sec-head th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; padding: 10px 8px 6px;
  color: var(--ink); background: var(--surface); border-bottom: 2px solid var(--sec, var(--line)); }
.table.attendance tr.sec-staff { --sec: var(--series-2); } .table.attendance tr.sec-yes { --sec: var(--ok); }
/* Guests of a match (13.11.2026) */
.table.attendance tr.sec-guests { --sec: var(--brand); }
.table.attendance tr.guest-row td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.guest-add-form { margin-top: 14px; }
.guest-add-form .row { align-items: flex-end; }
.guest-add-form .grow { min-width: min(100%, 240px); }
.guest-num { width: 6.5em; }
/* Values of a test (13.11.2026) */
.table.test-values select { min-width: 4.2em; }
.table.test-values .num-input.wide { width: 5.5em; }
.table.test-values tfoot th, .table.test-values tfoot td { font-weight: 600; border-top: 2px solid var(--line); }
.table.test-values select.is-invalid, .table.test-values [aria-invalid="true"] { border-color: var(--danger); }
.table.attendance tr.guest-row .badge { white-space: nowrap; }
.table.attendance tr.sec-pending { --sec: var(--warn); } .table.attendance tr.sec-no { --sec: var(--danger); } .table.attendance tr.sec-out { --sec: var(--muted); }
.table.attendance select:disabled, .table.attendance input:disabled { opacity: .3; cursor: not-allowed; }

/* Invitations, availability, holidays (Carlo, 11.11.2026). The answer goes under the appointment when the list is too
   narrow for both side by side. It goes by the width of the list, not of the screen (16.11.2026): in the side panel on
   the PC (480 px) the old grid kept the form in its own column and squeezed the appointment to 0 px, one word per line. */
.invite-list { container-type: inline-size; }
.invite-list .invite-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.invite-list .invite-row:last-child { border-bottom: 0; }
.invite-what { flex: 1 1 260px; min-width: 0; }
.invite-what .badge { margin-left: 4px; }
.invite-answer { flex: 0 1 auto; min-width: 0; margin: 0; justify-content: flex-end; }
.invite-answer select { max-width: 200px; }
.invite-answer input[name=note] { flex: 0 1 180px; }
@container (max-width: 760px) {
  .invite-answer { flex-basis: 100%; justify-content: flex-start; }
  .invite-answer select[name=reason], .invite-answer input[name=note] { flex: 1 1 170px; max-width: none; min-width: 0; }
}
.availability-yes .invite-what strong { color: var(--ok); }
.availability-no .invite-what strong { color: var(--danger); }

/* Statistics on the overview (partials/my-stats.php, Carlo 17.11.2026): one panel over the whole width after the
   messages, one panel per person and then per team, one under the other («non uno accanto all'altro ma uno sopra
   l'altro», «fai un pannello a persona/squadra»). In a panel name and presence, the figures at most two under each other and then beside («al massimo due
   bubbles sotto l'altro, poi accanto»), the last matches: each part as wide as it needs («usa lo spazio che gli
   serve»), at most two figures high («la lunghezza del pannello … al massimo due bubbles»), what does not fit goes
   below («se non c'è spazio va a capo», iPad); the teams side by side. A narrow panel (phone) stays as before: one under the other, figures two
   per row. Sizes only through SVG attributes (the CSP allows no inline styles). */
.my-stats { display: grid; gap: 16px; container-type: inline-size; }
.st-block { min-width: 0; }
/* The teams side by side, each as wide as it needs; the last results and links under the presence, left of won /
   drawn / lost / goals, so a team stays narrow and two figures high. */
.st-teams { display: flex; flex-wrap: wrap; gap: 16px; }
.st-team { flex: 0 1 auto; }
.st-team .st-main { display: grid; grid-template-columns: 240px auto; grid-template-areas: "intro grid" "side grid"; gap: 10px 28px; align-items: start; }
.st-team .st-intro { grid-area: intro; }
.st-team .st-grid, .st-team .st-none { grid-area: grid; }
.st-team .st-side { grid-area: side; min-width: 0; }
.st-block > h2 { margin-bottom: 10px; }
.st-main { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 28px; }
.st-intro { flex: 0 0 240px; min-width: 0; }
.st-who { display: flex; align-items: center; gap: 10px; min-width: 0; margin-bottom: 12px; }
.st-mark { margin-left: auto; flex: none; padding: 2px 10px; border-radius: 999px; background: var(--warn-soft); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-coach .radar-box { margin: 6px 0 0; max-width: 420px; }
.st-season { margin: 0 0 10px; }
.st-shirt { flex: none; }
.st-shirt path { fill: var(--brand); }
.st-shirt text { fill: var(--brand-ink); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.st-att { display: flex; align-items: center; gap: 12px; }
.st-att > div { display: flex; flex-direction: column; min-width: 0; }
.st-grid { flex: 0 0 auto; display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: 122px; gap: 8px; }
.st-team .st-grid { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(2, 112px); }
.st-side { flex: 0 1 320px; min-width: 220px; }
.st-none { margin: 0; flex: 0 1 220px; align-self: center; max-width: 220px; }
.st-ring { flex: none; }
.st-ring-bg { fill: none; stroke: color-mix(in srgb, var(--brand) 16%, transparent); stroke-width: 8; }
.st-ring-fg { fill: none; stroke: var(--brand); stroke-width: 8; stroke-linecap: round; }
.st-ring-avg { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; opacity: .7; }
.st-ring-text { fill: var(--ink); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.st-label { font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
.st-att .st-label { margin: 0 0 2px; }
.st-big { font-size: 1.5rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.st-tile { padding: 8px 10px; margin: 0; }
.st-tile .tile-value { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.st-trend { font-size: .7rem; vertical-align: middle; }
.st-good { color: var(--ok); } .st-bad { color: var(--danger); }
.st-bars { display: block; width: 100%; height: 12px; margin: 3px 0 1px; }
.st-bar-mine { fill: var(--brand); } .st-bar-avg { fill: color-mix(in srgb, var(--muted) 45%, transparent); }
.st-form { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; padding: 0; }
.st-form a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: inherit; text-decoration: none; }
.st-res { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid transparent; line-height: 1.05; }
.st-res b { font-size: .8rem; font-weight: 800; }
.st-res small { font-size: .62rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.st-rec { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 58px; padding: 4px; margin: 0;
  border-radius: 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--muted) 8%, var(--surface)); }
.st-rec b { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.st-rec span { font-size: .72rem; color: var(--muted); text-align: center; hyphens: auto; }
.st-res-win, .st-rec.st-rec-win { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.st-res-draw, .st-rec.st-rec-draw { background: color-mix(in srgb, var(--muted) 16%, var(--surface)); color: var(--ink); border-color: color-mix(in srgb, var(--muted) 35%, transparent); }
.st-res-loss, .st-rec.st-rec-loss { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.st-res-none { background: var(--surface); color: var(--muted); border-color: var(--line); }
.st-mine { font-size: .72rem; color: var(--muted); white-space: nowrap; min-height: 1.1em; }
.st-links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; }
.st-side .hint { margin: 0 0 8px; }
/* Between phone and laptop (iPad, Carlo: «su ipad … lo spazio deve essere managed better»): name and presence in a row
   on top, figures and last matches beside each other under it; the teams in columns, each laid out as on the phone. */
@container (min-width: 561px) and (max-width: 1040px) {
  .st-person .st-intro { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; }
  .st-person .st-who { margin: 0; }
  .st-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
  .st-team .st-main { display: block; }
  .st-team .st-att { margin-bottom: 12px; }
  .st-team .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 12px; }
  .st-team .st-none { max-width: none; margin-bottom: 12px; }
}
/* Narrow row (phone, Carlo: «sul telefonino come adesso va bene»): one under the other, figures two per row. */
@container (max-width: 560px) {
  .st-main, .st-team .st-main { display: block; }
  .st-team { flex: 1 1 100%; }
  .st-att { margin-bottom: 12px; }
  .st-grid, .st-team .st-grid { grid-template-rows: none; grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 12px; }
  .st-rec { min-height: 52px; }
  .st-none { margin-bottom: 12px; }
}
.badge.holiday { --hol: #0e7490; background: color-mix(in srgb, var(--hol) 14%, var(--surface)); color: var(--hol); border-color: transparent; margin-left: 4px; }
.type-holiday { --tc: #0e7490; background: #e0f2f7; color: #0b5566; }
.cal-ev.type-holiday { border-style: dotted; }
.cal-ev.all-day .cal-name::before { content: "☀ "; }
/* Over several days (17.11.2026): a band on every day, stronger, joined from one day to the next. */
.cal-ev.multi { font-weight: 600; background: color-mix(in srgb, var(--tc, var(--muted)) 26%, var(--surface)); }
.cal-ev.multi.goes-on { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.cal-ev.multi.cont { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left-color: transparent; }
.cal-ev.multi.cont .cal-name::before { content: "↳ "; }
.cal-ev.multi.cont .cal-count, .cal-ev.multi.cont .cal-mine { display: none; }
.trainings-pick { margin-top: 4px; }
.tg-dayhead .cal-ev { display: block; margin-top: 4px; font-weight: 600; }
.count-line.count-out { opacity: .9; }
.count-line.count-out .count-group { color: var(--muted); }
.holiday-row.current { box-shadow: inset 4px 0 0 #0e7490; padding-left: 10px; }
/* For what a long absence counts (0060): teams, club calendar, types as rows of boxes. */
.holiday-scope { border-left: 3px solid var(--line); padding-left: 12px; margin: 4px 0 8px; }
.holiday-scope .checks { margin-bottom: 8px; }
.holiday-scope .checks label.radio { display: inline-flex; margin: 2px 16px 2px 0; }
.table.attendance tr.not-invited select:disabled { opacity: .3; }
@media (prefers-color-scheme: dark) {
  .type-holiday { --tc: #5cc8de; background: #133038; color: #9fe0ec; }
  .badge.holiday { --hol: #5cc8de; }
}
/* Match report and the members' view of the attendance (11.11.2026). */
.report-line { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.badge.absent-total { background: var(--surface); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.chip-state { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 6px 0 10px; }
.chip-state-label { min-width: 8.5em; font-size: .85rem; font-weight: 700; color: var(--muted); }
.chip-state-yes .chip-state-label { color: var(--ok); }
.chip-state-no .chip-state-label { color: var(--danger); }
.chip.p-present { background: var(--ok-soft); border-color: transparent; text-decoration: none; }
.chip.p-absent { background: var(--danger-soft); border-color: transparent; }

/* Packages and payments (11.11.2026) */
.billing-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.billing-plan { font-size: 1.35rem; }
.billing-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; margin: 10px 0; }
.billing-facts dt { color: var(--muted); }
.billing-facts dd { margin: 0; overflow-wrap: anywhere; }
.billing-actions { margin-top: 8px; gap: 8px; }
.billing-due form { margin: 6px 0; }
.feature-list { margin: 6px 0 10px; padding-left: 1.2em; }
.feature-list li { margin: 2px 0; }
.feature-list.plain { list-style: none; padding-left: 0; }
.plan-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.plan-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.plan-card h3 { margin: 0; }
.plan-card.current { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.plan-card form { margin-top: auto; }
.plan-price { margin: 0; font-size: 1.05rem; }
/* Promotions (13.11.2026) */
.plan-card.has-promo { border-color: var(--brand); box-shadow: inset 0 3px 0 var(--brand); }
.promo { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px; background: var(--brand-soft); }
.check-inline { display: inline-flex; gap: 6px; align-items: center; margin-right: 12px; }
.promo-badge { align-self: flex-start; padding: 2px 9px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-size: .8rem; font-weight: 700; }
.stack.tight { gap: 8px; }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
input.short { width: 6.5em; max-width: 100%; }
.check-row { display: flex; gap: 8px; align-items: baseline; margin: 4px 0; }
.billing-features td, .billing-features th { vertical-align: top; }
.billing-features tr.group th { background: var(--bg); text-align: left; }
.billing-banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 14px; border-radius: 8px; margin: 0 0 12px; border: 1px solid var(--line); background: var(--surface); }
.billing-banner.warn { background: var(--warn-soft); border-color: transparent; }
.billing-banner.danger { background: var(--danger-soft); border-color: transparent; }
.billing-banner.news { background: var(--brand-soft); border-color: transparent; }
.billing-banner > span { flex: 1 1 260px; }
.invoice-sheet { max-width: 760px; }
.invoice-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.invoice-to { min-width: 200px; }
.invoice-lines td.num, .invoice-lines th.num { text-align: right; white-space: nowrap; }
.invoice-lines tfoot tr.total td { border-top: 2px solid var(--ink); }
@media print { .billing-banner, .no-print { display: none !important; } .invoice-sheet { border: 0; box-shadow: none; max-width: none; } }
.billing-actions .btn, .plan-card .btn { white-space: normal; text-align: center; }

/* 12.11.2026: answer box compact once answered; attendance table as wide as its content; marks of several raters. */
.my-answer .answer-line { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.my-answer .answer.answered { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.my-answer .answer.answered .answer-line { flex: 1 1 auto; }
.answer-change { flex: 1 1 100%; }
.answer-change > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 1px solid var(--line);
  border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--brand); background: var(--surface); }
.answer-change > summary::-webkit-details-marker { display: none; }
.answer-change > summary::before { content: "✎"; font-weight: 400; }
.answer-change[open] > summary { background: var(--brand-soft); }
.my-answer .answer.answered .answer-change:not([open]) { flex: 0 0 auto; }
.table-wrap > .table.attendance { width: auto; min-width: 0; }
.table.attendance th, .table.attendance td { padding: 6px 10px; }
.mark-cell { white-space: nowrap; }
.mark-avg { display: inline-block; margin-left: 6px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: help; }
.mark-avg small { font-weight: 400; color: var(--muted); }
.marks-table { width: auto; }
.marks-table select { min-width: 70px; }
/* Trend of the assessment: one line per axis (12.11.2026). */
:root { --series-4: #a23ea8; --series-5: #0f8a8a; --series-6: #c2502b; }
@media (prefers-color-scheme: dark) { :root { --series-4: #c46bd0; --series-5: #2bb3b3; --series-6: #e0744d; } }
.chart-line.a1 { stroke: var(--series-1); } .chart-line.a2 { stroke: var(--series-2); } .chart-line.a3 { stroke: var(--series-3); }
.chart-line.a4 { stroke: var(--series-4); } .chart-line.a5 { stroke: var(--series-5); } .chart-line.a6 { stroke: var(--series-6); }
.chart-dot.a1 { fill: var(--series-1); } .chart-dot.a2 { fill: var(--series-2); } .chart-dot.a3 { fill: var(--series-3); }
.chart-dot.a4 { fill: var(--series-4); } .chart-dot.a5 { fill: var(--series-5); } .chart-dot.a6 { fill: var(--series-6); }
.key.a1 { background: var(--series-1); } .key.a2 { background: var(--series-2); } .key.a3 { background: var(--series-3); }
.key.a4 { background: var(--series-4); } .key.a5 { background: var(--series-5); } .key.a6 { background: var(--series-6); }
.rating-avg-table { width: auto; margin: 8px auto 0; font-size: .85rem; }
.rating-avg-table th { font-weight: 600; color: var(--muted); padding: 2px 12px 2px 0; border: 0; }
.rating-avg-table td { padding: 2px 0; border: 0; font-weight: 700; }

/* Support, survey on the app, AI of the administration (12.11.2026). */
.support-layout .plain-list li + li { margin-top: 8px; }
.support-outside { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.support-mine li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.support-mine li:last-child { border-bottom: 0; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.survey-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); background: linear-gradient(120deg, var(--brand-soft), var(--surface) 65%); }
.survey-card h2 { margin: 0 0 4px; }
.survey-card p { margin: 0; }
.survey-card-actions { align-items: center; }
.survey-form legend { font-weight: 700; padding: 0 2px; }
.survey-nps legend { font-size: 1.05rem; margin-bottom: 10px; }
.survey-scale { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; margin: 4px 0; }
.nps-pick, .csat-pick { position: relative; cursor: pointer; }
.nps-pick input, .csat-pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.nps-pick span { display: flex; align-items: center; justify-content: center; height: 44px; border: 1px solid var(--line); border-radius: 10px; font-weight: 700;
  background: var(--surface); font-variant-numeric: tabular-nums; transition: background .12s, border-color .12s; }
.nps-pick.nps-low input:checked + span { background: var(--danger); color: #fff; border-color: var(--danger); }
.nps-pick.nps-mid input:checked + span { background: var(--warn); color: #fff; border-color: var(--warn); }
.nps-pick.nps-high input:checked + span { background: var(--ok); color: #fff; border-color: var(--ok); }
.nps-pick input:focus-visible + span, .csat-pick input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.survey-ends { display: flex; justify-content: space-between; margin-bottom: 12px; }
.csat-row { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 12px 0 8px; }
.csat-row:first-of-type { border-top: 0; }
.csat-scale { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.csat-pick span:first-of-type { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 44px; padding: 0 10px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 1.4rem; background: var(--surface); }
.csat-na span:first-of-type { font-size: .85rem; color: var(--muted); }
.csat-pick input:checked + span { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.csat-comment summary { cursor: pointer; font-size: .85rem; color: var(--brand); }
.csat-comment textarea { width: 100%; margin-top: 6px; }
.survey-skip { justify-content: flex-end; margin-top: 8px; }
@media (max-width: 520px) { .survey-scale { grid-template-columns: repeat(6, minmax(0, 1fr)); } .nps-pick span { height: 40px; } }
.nps-big { font-size: 2.6rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.nps-good { color: var(--ok); } .nps-mid-c { color: var(--warn); } .nps-bad { color: var(--danger); }
.nps-split { display: block; width: 100%; height: 12px; border-radius: 6px; overflow: hidden; background: var(--line); margin: 8px 0 4px; }
.nps-split .b-det { fill: var(--danger); } .nps-split .b-pas { fill: var(--st-warning, #fab219); } .nps-split .b-pro { fill: var(--ok); }
.feedback-comments li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.feedback-comments li:last-child { border-bottom: 0; }
.feedback-comments blockquote { margin: 4px 0 0; padding-left: 10px; border-left: 3px solid var(--line); }

.admin-ai-launch, .assistant-launch { position: fixed; right: 18px; bottom: 18px; z-index: 44; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink); font-weight: 700; box-shadow: 0 6px 18px rgba(16, 24, 20, .25); text-decoration: none; }
.admin-ai-launch:hover, .assistant-launch:hover { filter: brightness(1.08); color: var(--brand-ink); }
.admin-ai-launch[aria-expanded="true"], .assistant-launch[aria-expanded="true"] { display: none; }
.admin-ai-drawer, .assistant-drawer { position: fixed; z-index: 45; top: calc(var(--header-h, 61px) + 8px); right: 12px; bottom: 12px; width: min(520px, calc(100vw - 24px));
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(16, 24, 20, .22); }
.admin-ai-drawer[hidden], .assistant-drawer[hidden] { display: none; }
.admin-ai-head, .assistant-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #234d36, #2a78d6); color: #f4f8f5; border-radius: 14px 14px 0 0; }
.admin-ai-head .btn, .assistant-head .btn { background: transparent; color: #f4f8f5; border-color: rgba(244, 248, 245, .5); }
.admin-ai-body, .assistant-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 10px 12px 12px; overflow: hidden; }
.admin-ai-drawer[aria-busy="true"] .admin-ai-body, .assistant-drawer[aria-busy="true"] .assistant-body { opacity: .6; }
@media (max-width: 760px) { .admin-ai-drawer, .assistant-drawer { top: var(--header-h, 53px); left: 0; right: 0; bottom: 0; width: auto; border-radius: 0; } .admin-ai-head, .assistant-head { border-radius: 0; } }
.ai-chat { display: flex; flex-direction: column; gap: 8px; min-height: 0; height: 100%; }
main .ai-chat { height: auto; }
.ai-chat-head { display: flex; flex-direction: column; gap: 2px; }
.ai-agent-pick select { font-weight: 700; max-width: 100%; }
.ai-agent-role { margin: 0; }
.ai-threads { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 10px; }
.ai-thread-list summary { cursor: pointer; color: var(--brand); padding: 4px 0; }
.ai-thread-list ul { max-height: 180px; overflow-y: auto; margin-top: 4px; }
.ai-thread-list li { padding: 3px 0; }
.ai-thread-list li.current a { font-weight: 700; }
.ai-log { flex: 1 1 auto; min-height: 120px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 6px 2px; overscroll-behavior: contain; }
main .ai-log { max-height: 65vh; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--bg); }
.ai-msg { display: flex; flex-direction: column; max-width: 100%; }
.ai-msg-user { align-items: flex-end; }
.ai-msg-user .ai-bubble { background: var(--brand); color: var(--brand-ink); border-radius: 14px 14px 4px 14px; max-width: 88%; }
.ai-msg-user .ai-bubble p { margin: 0; }
.ai-msg-bot .ai-bubble { background: var(--bg); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; max-width: 100%; }
.ai-bubble { padding: 8px 12px; overflow-wrap: anywhere; }
.ai-md > :first-child { margin-top: 0; } .ai-md > :last-child { margin-bottom: 0; }
.ai-md h3, .ai-md h4, .ai-md h5 { margin: 10px 0 4px; font-size: 1rem; }
.ai-md ul, .ai-md ol { margin: 4px 0; padding-left: 20px; }
.ai-md code { font-size: .85em; background: var(--surface); padding: 0 4px; border-radius: 4px; }
.ai-md .table-wrap { margin: 6px 0; }
.ai-md-table { font-size: .85rem; }
.ai-md-table th, .ai-md-table td { padding: 4px 8px; }
.ai-error { border-color: var(--danger) !important; color: var(--danger); }
.aic-actions { margin: 6px 0 0; }
.ai-used { margin: 4px 0 0 4px; }
.ai-typing { display: inline-flex; gap: 4px; align-items: center; }
.ai-typing > span:not(.sr-only) { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: ai-dot 1.2s infinite ease-in-out; }
.ai-typing > span:nth-child(2) { animation-delay: .15s; } .ai-typing > span:nth-child(3) { animation-delay: .3s; }
@keyframes ai-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .ai-typing > span { animation: none; } }
.ai-empty p { margin: 4px 0 8px; }
.ai-suggest { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ai-suggest .btn { text-align: left; white-space: normal; height: auto; width: 100%; }
.ai-ask { display: flex; gap: 8px; align-items: flex-end; }
.ai-ask textarea { flex: 1 1 auto; resize: vertical; min-height: 44px; }
.aic-privacy { margin: 0; }
.ai-delete { align-self: flex-end; }
/* The assistant of a person (20.11.2026): the launcher leaves room for the cookie notice; the guide's answer, the source. */
.assistant-launch { padding: 10px 14px; }
.assistant-launch .assistant-launch-label { display: inline; }
@media (max-width: 760px) { .assistant-launch { right: 12px; bottom: 12px; padding: 10px 13px; } .assistant-launch .assistant-launch-label { display: none; } }
body.assistant-open .cookie-notice { right: auto; }
.assistant-guide h3 { margin-top: 2px; }
.assistant-source { display: flex; flex-direction: column; gap: 2px; flex: 0 0 100%; }
.ai-ask:has(.assistant-source) { flex-wrap: wrap; }
.assistant-consent { display: flex; flex-direction: column; gap: 6px; }
.assistant-consent p { margin: 0; }
.ai-agent-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.ai-agent-list li:last-child { border-bottom: 0; }
.btn.subtle { border-color: transparent; background: transparent; color: var(--muted); }
.btn.subtle:hover { color: var(--brand); border-color: var(--line); }
/* «Load material» next to a material field (package Q part 2). */
.fill-tools { gap: 6px; margin-top: 4px; }
.fill-tools .btn[hidden] { display: none; }

/* Administration → System: crontab line and the output of the last cron run (13.11.2026). */
.system-cmd { margin: 4px 0 12px; padding: 8px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; font-size: .82rem; white-space: pre-wrap; word-break: break-all; max-height: 16em; overflow: auto; user-select: all; }

/* R «Tactics» (13.11.2026): boards of a match */
.tactics-opponent { margin: 0 0 14px; }
.tactics-opponent summary { cursor: pointer; font-weight: 600; }
.tactics-opponent form { margin-top: 10px; }
.tactics-boards { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.tactics-board { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tactics-board.is-hidden { border-style: dashed; }
.tactics-board-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tactics-comment { margin: 0; padding: 6px 10px; border-left: 3px solid var(--brand); background: var(--brand-soft); border-radius: 0 6px 6px 0; font-weight: 500; }
.tactics-tools { margin-top: auto; }

/* N «Friendlies» (13.11.2026): requests for friendly matches */
.friendly-list { margin-top: 8px; }
.friendly-row { display: flex; gap: 10px; }
.friendly-row.status-found .friendly-title, .friendly-row.status-closed .friendly-title { color: var(--muted); }
.friendly-main { min-width: 0; flex: 1 1 auto; }
.friendly-title { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.friendly-title:hover strong { text-decoration: underline; }
.friendly-when { white-space: nowrap; }
.friendly-notes { margin: 4px 0 0; color: var(--ink); overflow-wrap: anywhere; }
.friendly-detail .friendly-notes { padding: 8px 12px; border-left: 3px solid var(--brand); background: var(--brand-soft); border-radius: 0 6px 6px 0; }
.friendly-contacts > li { display: block; }
.friendly-message { margin: 6px 0; padding: 6px 10px; background: var(--surface-2, var(--brand-soft)); border-radius: 6px; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .filters .field, .filters .btn { flex: 1 1 140px; }
}

/* Players named in the text of a sketch (13.11.2026): chips in the colours of the pieces (Diagram::TEAM). */
.pl { display: inline-block; min-width: 1.7em; padding: 0 .35em; border-radius: 999px; font-size: .82em; font-weight: 700; line-height: 1.5; text-align: center; vertical-align: .05em; color: #fff; background: #2563eb; }
.pl-b { background: #dc2626; } .pl-c { background: #f8fafc; color: #111827; box-shadow: inset 0 0 0 1px #111827; } .pl-d { background: #7c3aed; }
.pl-n { background: #facc15; color: #111827; } .pl-gk { background: #111827; } .pl-e { background: #16a34a; }
/* Who does what on a tactical board (13.11.2026). */
.tactics-roles { list-style: none; margin: 6px 0 8px; padding: 0; display: grid; gap: 3px; font-size: .9rem; }
.tactics-roles li { display: flex; gap: 8px; align-items: baseline; }
.tactics-roles li > .pl:first-child { flex: none; }
/* A board in the reader's language (15.11.2026): who translated it, the texts as written a tap away. */
.tactics-original { font-size: .85rem; color: var(--muted); }
.tactics-original summary { cursor: pointer; }
.tactics-original summary .link { text-decoration: underline; }
.tactics-original-text { margin-top: 6px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 8px; color: var(--ink); }
.tactics-original-text p { margin: 0 0 6px; }
.tactics-original-steps { margin: 4px 0 0; padding-left: 1.4em; display: grid; gap: 2px; }
/* 👍 / 👎 of the staff for the AI assistant (16.11.2026). */
.vote { display: inline-flex; gap: 4px; align-items: center; }
.vote-form { margin: 0; }
.vote-btn.is-on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.vote-btn.is-down.is-on { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.vote-n { font-variant-numeric: tabular-nums; }
.library-areas { margin-top: 4px; }
.tactics-translate { margin: 0; }
.tactics-translate .btn { padding: 0; font-size: .85rem; color: var(--muted); }
/* Boards sent to the team (15.11.2026): with a post of the team board or with a task. */
.shared-boards { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); }
.shared-board { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.shared-board .tactics-board-head a { margin-left: auto; }
.shared-boards-title { margin-top: 14px; }
.shared-boards-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.board-tactics { margin-top: 8px; }
.share-boards { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 2px; }
.share-boards .badge { margin-left: 4px; }
.share-ways { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.share-ways .share-way { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--surface); }
.share-way:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-soft); }
.share-ways .share-way input { margin: 3px 0 0; flex: none; }
.share-ways .share-way span { display: grid; gap: 2px; font-weight: 400; }
.share-part { margin: 0; }
.share-members { min-width: 0; }

/* Weather forecast of an appointment (14.11.2026): symbols drawn by the server (Support\WeatherIcon). */
.weather { margin: 10px 0 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.weather.pending { border-style: dashed; padding: 6px 12px; }
.wx-main { display: flex; gap: 10px; align-items: center; }
.wx-main strong { margin-right: 6px; }
.wx-facts { color: var(--muted); }
.wx-hint { margin-left: 6px; }
.wx-steps { list-style: none; margin: 8px 0 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; }
.wx-steps li { flex: 0 0 auto; min-width: 54px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 6px; border-radius: 8px; background: var(--bg); font-size: .82rem; }
.wx-time { color: var(--muted); white-space: nowrap; }
.wx-t { font-weight: 600; }
.wx-mm { color: #2563eb; min-height: 1.2em; }
.wx-source { margin: 6px 0 0; }
.wx-inline { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.wx-icon { flex: none; vertical-align: middle; }
.wx-sun { fill: #f59e0b; }
.wx-ray { stroke: #f59e0b; stroke-width: 3; stroke-linecap: round; }
.wx-moon { fill: #fbbf24; }
.wx-cloud { fill: #cbd5e1; }
.wx-cloud-dark { fill: #94a3b8; }
.wx-rain { stroke: #2563eb; stroke-width: 3; stroke-linecap: round; }
.wx-snow { fill: #60a5fa; }
.wx-fog { stroke: #94a3b8; stroke-width: 3.5; stroke-linecap: round; }
.wx-bolt { fill: #facc15; stroke: #a16207; stroke-width: 1.2; stroke-linejoin: round; }
@media (prefers-color-scheme: dark) {
  .wx-cloud { fill: #64748b; } .wx-cloud-dark { fill: #475569; } .wx-mm { color: #60a5fa; }
}

/* Facilities and planning of the pitches (14.11.2026) */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 6px 12px; border-radius: 8px 8px 0 0; text-decoration: none; color: var(--ink); border: 1px solid transparent; border-bottom: none; margin-bottom: -1px; }
.tabs a[aria-current] { background: var(--surface); border-color: var(--line); color: var(--brand); font-weight: 600; }
.planning-nav { align-items: center; }
.planning-range { text-align: center; flex: 1 1 auto; }
.planning-day.is-empty h2 { color: var(--muted); }
.planning-timeline { overflow-x: auto; margin: 4px 0 8px; }
.planning-timeline svg { min-width: 640px; display: block; font: 12px var(--font); }
.pl-row { fill: var(--bg); stroke: var(--line); stroke-width: .5; }
.pl-name { fill: var(--ink); font-weight: 600; }
.pl-hour { stroke: var(--line); stroke-width: .6; }
.pl-hlabel { fill: var(--muted); font-size: 10px; }
.pl-b rect { fill: #2a78d6; opacity: .9; }
.pl-b text { fill: #fff; font-size: 11px; font-weight: 600; }
.pl-training rect, .pl-test rect { fill: #1f6f43; }
.pl-match rect { fill: #7c3aed; }
.pl-meeting rect, .pl-event rect, .pl-club rect { fill: #9a5b00; }
.pl-block rect { fill: #5b6660; }
.pl-clash rect { fill: #b42318; stroke: #fff; stroke-width: 1.5; }
.pl-hatch-bg { fill: #fdecea; }
.pl-hatch-line { stroke: #e0a39b; stroke-width: 4; }
.pl-closed { stroke: #b42318; stroke-width: .8; }
.pl-closed-label { fill: #8a1c12; font-size: 11px; font-weight: 700; }
.planning-list .clash { background: var(--danger-soft); }
/* Assistant of the allocation and the planning page (14.11.2026, simple since the evening). */
.pl-proposal rect { fill: #e7f4ec; stroke: #1f6f43; stroke-width: 1.5; stroke-dasharray: 5 3; opacity: 1; }
.pl-proposal text { fill: #14532d; }
.alloc-bar { padding: 12px 16px; }
.alloc-bar-main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.alloc-bar-main form.inline { display: inline; }
.alloc-bar-title { font-size: 1.05rem; }
.alloc-draft-text { font-weight: 600; }
.alloc-bar-hint { margin: 6px 0 0; }
.alloc-teams { margin-top: 8px; }
.alloc-teams > summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.alloc-team-pick { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 8px 0 10px; }
.alloc-team-pick label { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px 3px 8px; background: var(--surface); }
.alloc-team-pick label.is-done { border-color: #86c79c; background: #f1f9f4; }
.ap-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.ap-head h2 { margin: 0; }
.ap-filter { display: flex; gap: 4px; flex-wrap: wrap; }
.ap-filter a { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .92rem; }
.ap-filter a[aria-current] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.ap-filter a[aria-current] .badge { background: rgba(255, 255, 255, .25); color: inherit; border-color: transparent; }
.ap-list { list-style: none; margin: 10px 0 0; padding: 0; }
.ap-row { border-top: 1px solid var(--line); }
.ap-row.is-open { box-shadow: inset 3px 0 0 var(--warn); }
.ap-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 6px 8px 10px; }
.ap-edit > summary { cursor: pointer; list-style: none; }
.ap-edit > summary::-webkit-details-marker { display: none; }
.ap-edit > summary:hover { background: var(--bg); }
.ap-edit[open] > summary { background: var(--bg); }
.ap-when { min-width: 9.5em; white-space: nowrap; }
.ap-who { min-width: 10em; }
.ap-chips { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 260px; align-items: center; }
.ap-btn { margin-left: auto; }
.ap-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 6px; font-size: .86rem; background: var(--bg); border: 1px solid var(--line); white-space: nowrap; }
.ap-chip.is-pitch { background: #eef7f1; border-color: #bfe0cb; }
.ap-chip.is-room { background: #f2f4f8; border-color: #d4dae5; }
.ap-chip.is-assistant { border-style: solid; }
.ap-chip.is-proposal { background: #fff; border: 1px dashed #1f6f43; color: #14532d; }
.ap-chip .pitch-zones { width: 22px; height: auto; }
.ap-body { padding: 4px 10px 14px; }
.ap-proposal-hint { margin: 4px 0 10px; padding: 8px 12px; border: 1px dashed var(--brand); border-radius: 8px; background: var(--brand-soft); color: var(--ink); font-size: .9rem; }
.ap-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 12px; }
.ap-fields .field { margin: 0; }
.ap-more { margin: 8px 0; }
.ap-more > summary { cursor: pointer; font-size: .9rem; color: var(--muted); }
.ap-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.ap-scope { display: inline-flex; gap: 10px; }
.ap-chip-del { display: inline-flex; align-items: center; gap: 2px; margin: 0 6px 6px 0; }
.ap-chip-del form.inline { display: inline; }
.type-block { background: #5b6660; color: #fff; }
.planning-week { margin: 16px 0; }
.planning-week > .ap-head { margin-bottom: 8px; }
.planning-day { padding: 8px 14px; margin-bottom: 8px; }
.planning-day > summary { cursor: pointer; padding: 4px 0; }
.planning-day.is-empty > summary { color: var(--muted); }
.slot-list { list-style: none; margin: 0 0 10px; padding: 0; }
.slot-list > li { border-top: 1px solid var(--line); }
.slot-row > summary { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; padding: 8px 4px; cursor: pointer; list-style: none; }
.slot-row > summary::-webkit-details-marker { display: none; }
.slot-row > summary:hover, .slot-row[open] > summary { background: var(--bg); }
.slot-edit { margin-left: auto; }
.slot-row form.inline { display: block; margin: 0 0 10px 4px; }
.slot-form { padding: 6px 4px 10px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 12px; }
.slot-grid .field { margin: 0; }
.slot-new { margin-top: 8px; }
.slot-new > summary { display: inline-block; cursor: pointer; }
.chip-boxes { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.chip-box { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px 2px 7px; font-size: .9rem; white-space: nowrap; background: var(--surface); }
.chip-box:has(input:checked) { border-color: var(--brand); background: #eef7f1; }
.chip-box.is-blocked { opacity: .45; }
.alloc-pitch { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin: 0; }
.alloc-pitch legend { font-weight: 700; padding: 0 4px; }
.alloc-table th[scope="row"] { white-space: nowrap; }
.alloc-table td, .alloc-table th { vertical-align: middle; }
.alloc-table .chip-boxes { min-width: 220px; }
@media (prefers-color-scheme: dark) {
  .pl-proposal rect { fill: #12301f; stroke: #4ade80; }
  .pl-proposal text { fill: #bbf7d0; }
  .alloc-team-pick label.is-done, .chip-box:has(input:checked), .ap-chip.is-pitch { background: #12301f; border-color: #2f6f47; }
  .ap-chip.is-room { background: #1e2633; border-color: #36425a; }
  .ap-chip.is-proposal { background: transparent; color: #86efac; border-color: #86efac; }
}
.planning-item { display: flex; gap: 10px; align-items: center; min-width: 0; }
.planning-appointments > li { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); }
.planning-appointments > li.unbooked { border-left: 3px solid var(--warn); padding-left: 8px; }
.planning-appointments .chips { margin: 4px 0; }
.planning-appointments .chip form.inline { display: inline; }
.planning-book { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 6px; }
.planning-book .field { margin: 0; min-width: 180px; flex: 1 1 200px; }
.planning-frame iframe { width: 100%; border: 0; display: block; }
.pitch-zones { flex: none; vertical-align: middle; }
.pz-field { fill: #4caf50; }
.pz-on { fill: #facc15; opacity: .85; }
.pz-clash { fill: #dc2626; }
.pz-line, .pz-border { fill: none; stroke: #fff; stroke-width: 1; opacity: .9; }
.pz-side { fill: #fff; font: 700 9px var(--font); opacity: .85; }
.facility-head { display: flex; gap: 10px; align-items: center; }
.facility-room-icon { font-size: 1.4rem; width: 46px; text-align: center; }
.facility-list > li { display: block; }
.facility-form { margin: 10px 0; }
.facility-months { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin: 8px 0; }
.month-grid { display: grid; grid-template-columns: repeat(6, minmax(60px, 1fr)); gap: 4px 10px; margin: 6px 0; }
@media (max-width: 560px) { .month-grid { grid-template-columns: repeat(4, 1fr); } }
.zone-table .zone-cell { display: flex; gap: 8px; align-items: center; }
.zone-table input[type=text], .zone-table input:not([type]) { width: 100%; }
.facility-add { margin-top: 10px; }
.event-spaces { display: grid; gap: 4px; }
.event-spaces .space { display: flex; gap: 8px; align-items: center; }
.space-pick { border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; margin: 8px 0; }
.space-pick .space-group { margin: 6px 0; }
.space-pick .space-group strong { display: block; margin-bottom: 2px; }
.space-pick label { display: inline-flex; gap: 4px; align-items: center; margin: 2px 12px 2px 0; }

/* Duty rotas (14.11.2026) */
.type-duty { --tc: #a16207; background: #fef3c7; color: #854d0e; }
.cal-ev.type-duty { border-style: dotted; }
@media (prefers-color-scheme: dark) { .type-duty { --tc: #facc15; background: #3a2c12; color: #fde68a; } }
.duty-tasks { margin: 4px 0 8px; padding-left: 1.2em; }
.duty-weeks { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.duty-week { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.duty-week.is-now { border-color: var(--brand); background: var(--brand-soft); }
.duty-week.is-mine { border-left: 4px solid var(--warn); }
.duty-week.is-past { opacity: .65; }
.duty-week-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.duty-members { margin-top: 6px; }
.duty-members .chip form.inline { display: inline; }
.duty-plan.is-off h2 { color: var(--muted); }
.duty-box { margin: 10px 0 4px; padding: 8px 12px; border: 1px dashed var(--warn); border-radius: 10px; background: var(--warn-soft); }
.duty-box.is-mine { border-style: solid; }
/* Closed by default (22.11.2026): the title with the chevron, the names under it; open: the tasks, one per line, wrapping. */
.duty-box > summary { list-style: none; cursor: pointer; display: grid; gap: 2px; }
.duty-box > summary::-webkit-details-marker { display: none; }
.duty-box .duty-head { display: flex; align-items: baseline; gap: 8px; }
.duty-box .duty-head::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; flex: none; align-self: center; }
.duty-box[open] .duty-head::after { transform: rotate(-135deg); }
.duty-box .duty-names { overflow-wrap: anywhere; }
.duty-box[open] > summary { margin-bottom: 4px; }
.duty-tasks li { white-space: normal; overflow-wrap: anywhere; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 2px 12px; margin: 6px 0; }
.pick-grid label { display: flex; gap: 6px; align-items: center; }

/* Rules and fines (14.11.2026) */
.fine-row { align-items: flex-start; }
.fine-row.status-paid strong, .fine-row.status-waived strong { color: var(--muted); }
.fine-row.status-proposed { border-left: 3px solid var(--warn); padding-left: 8px; }
.fine-actions { flex: none; gap: 4px; }
.fine-actions form.inline { display: inline; }
.fine-rules > li { display: block; }
tr.is-me td { font-weight: 600; background: var(--brand-soft); }

/* Lineup board (14.11.2026): shirt numbers of the match, the form of a player for the staff. */
.tok, .bench-chip { -webkit-touch-callout: none; }
.lineup-tools .btn.is-on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.lineup-numbers { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface); }
.lineup-numbers h3 { margin: 0 0 2px; font-size: .95rem; }
.lineup-numbers .hint { margin: 0; }
.num-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 16px; margin-top: 8px; }
.num-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lineup-numbers .num-row input.lineup-num-input[type=number] { width: 64px; min-height: 34px; padding: 3px 6px; text-align: center; font-weight: 700; flex: none; }
.lineup-numbers .num-row input.lineup-num-input.is-dup[type=number] { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); }
.num-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.num-meta { flex: none; font-size: .72rem; color: var(--muted); font-weight: 600; }
.num-reset { flex: none; border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 2px 8px; font: inherit; font-size: .75rem; cursor: pointer; color: var(--muted); }
.num-reset:hover { border-color: var(--brand); color: var(--brand); }
.form-pop { position: fixed; z-index: 80; width: min(330px, calc(100vw - 16px)); max-height: calc(100vh - 16px); overflow: hidden; padding: 10px 12px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: 0 10px 28px rgba(0, 0, 0, .24);
  font-size: .8rem; line-height: 1.35; pointer-events: none; }
.fp-head strong { display: block; font-size: .92rem; }
.fp-meta { display: block; color: var(--muted); font-size: .75rem; }
.fp-label { margin: 8px 0 3px; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.fp-bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; height: 14px; }
.fp-seg { border-radius: 3px; background: #c9cfca; }
.fp-seg.k-p { background: #2e9d5b; }
.fp-seg.k-y { background: #9fd6b0; }
.fp-seg.k-e, .fp-seg.k-d, .fp-seg.k-a { background: #f0a233; }
.fp-seg.k-u { background: #d64534; }
.fp-seg.k-o { background: #c9cfca; }
.fp-seg.k-n { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.fp-dates { display: flex; justify-content: space-between; margin-top: 1px; font-size: .66rem; color: var(--muted); }
.fp-line { margin: 3px 0 0; }
.fp-muted { color: var(--muted); }
.fp-warn { color: var(--danger); font-weight: 600; }
.fp-games { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.fp-games li { display: flex; gap: 6px; align-items: center; min-width: 0; }
.fp-date { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.fp-opp { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-mk { flex: none; font-size: .68rem; font-weight: 600; padding: 0 6px; border-radius: 999px; background: #c9cfca; color: #1f2a24; }
/* The colours of the bar of the trainings (14.11.2026): green from the start, light green came on / in the squad,
   orange absent, red unexcused, grey no answer, outlined not convoked. */
.fp-mk.k-start { background: #2e9d5b; color: #fff; }
.fp-mk.k-sub, .fp-mk.k-bench, .fp-mk.k-in { background: #9fd6b0; color: #14361f; }
.fp-mk.k-abs { background: #f0a233; color: #3b2600; }
.fp-mk.k-unx { background: #d64534; color: #fff; }
.fp-mk.k-n { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.fp-stat { flex: none; font-variant-numeric: tabular-nums; }
.fp-card { flex: none; display: inline-block; width: 8px; height: 11px; border-radius: 2px; }
.fp-card.y { background: #f5c400; }
.fp-card.r { background: #d42a1f; }
.fp-rt { flex: none; font-weight: 700; }
.fp-note { margin: 6px 0 0; padding: 4px 6px; border-radius: 6px; background: var(--bg); }
@media print { .lineup-numbers, .form-pop { display: none !important; } }
/* Boards of the AI: choose which ones to use (14.11.2026). */
.ai-boards-pick { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 10px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.ai-boards-pick fieldset { flex: 1 1 100%; margin: 0; padding: 0; border: 0; display: grid; gap: 4px; }
.ai-boards-pick legend { padding: 0; margin-bottom: 4px; font-weight: 600; }
.ai-boards-pick .check { display: flex; gap: 8px; align-items: flex-start; }
/* Week of the pitch planning: before · dates · after on one row. */
.event-nav.planning-nav { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; }
.planning-nav .planning-range { padding: 0 6px; text-align: center; white-space: nowrap; }
@media (max-width: 480px) { .planning-nav .event-nav-text { font-size: .85rem; } .planning-nav .planning-range { font-size: .85rem; } }

/* Convoked and attendance on phones (14.11.2026, Carlo): no sideways scrolling; per person the tick and the name, then
   presence and (absent or not convoked) the reason, otherwise the mark; the answer is left out; note and match data
   behind ✎ (attendance.js). Big enough to tap. On wider screens the table as before, without ✎. */
.table.attendance td.c-edit { display: none; }
.att-edit { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font: inherit; font-size: 1.1rem; line-height: 1; cursor: pointer; position: relative; }
.att-edit.has-note { color: var(--brand); border-color: var(--brand); }
.att-edit.has-note::after { content: ""; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.att-dialog { width: min(420px, calc(100vw - 24px)); max-height: calc(100vh - 32px); border: 1px solid var(--line); border-radius: 14px; padding: 16px;
  background: var(--surface); color: var(--ink); box-shadow: 0 18px 48px rgba(0, 0, 0, .3); }
.att-dialog::backdrop { background: rgba(10, 20, 14, .45); }
.att-dialog h3 { margin: 0 0 10px; font-size: 1rem; }
.att-dialog-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px 12px; margin-bottom: 14px; }
.att-field { display: grid; gap: 3px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.att-field.wide { grid-column: 1 / -1; }
.att-field.check { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink); }
.att-field input:not([type=checkbox]), .att-field select { width: 100%; min-height: 42px; font-size: 1rem; color: var(--ink); }
.att-field input[type=checkbox] { width: 24px; height: 24px; margin: 0; }
.att-dialog .row { justify-content: flex-end; }
@media (max-width: 640px) {
  .table-wrap > .table.attendance { width: 100%; }
  .table.attendance, .table.attendance tbody, .table.attendance thead { display: block; }
  .table.attendance thead tr { display: flex; align-items: center; gap: 10px; padding: 4px 0 6px 8px; }
  .table.attendance thead th { display: none; padding: 0; border: 0; }
  .table.attendance thead th:nth-child(-n+2) { display: block; }
  .table.attendance tr.sec-head, .table.attendance tr.sec-head th { display: block; }
  .table.attendance tr[data-kind], .table.attendance tr.guest-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) minmax(0, 1fr) 40px;
    grid-template-areas: "chk name name edit" "chk pres extra edit"; align-items: center; gap: 6px 6px; padding: 8px 6px 8px 8px;
    border-bottom: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--st, var(--line)); }
  .table.attendance tr.guest-row { box-shadow: inset 3px 0 0 var(--brand); }
  .table.attendance tr[data-kind] > td, .table.attendance tr.guest-row > td { display: none; padding: 0; border: 0; box-shadow: none; background: none; }
  .table.attendance tr[data-kind] > td.c-chk:first-child, .table.attendance tr.guest-row > td.c-chk:first-child { box-shadow: none; }
  .table.attendance tr.staff-row[data-kind] > td, .table.attendance tr.staff-row.not-invited[data-kind] > td, .table.attendance tr.not-invited[data-kind] > td { background: none; }
  .table.attendance tr > td.c-chk { display: flex; grid-area: chk; align-self: stretch; align-items: center; justify-content: center; }
  .table.attendance td.c-chk input[type=checkbox], .table.attendance thead input[type=checkbox] { width: 24px; height: 24px; margin: 0; }
  .table.attendance tr > td.c-name { display: block; grid-area: name; min-width: 0; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
  .table.attendance tr > td.c-name .badge { font-weight: 600; }
  .table.attendance tr > td.c-edit { display: flex; grid-area: edit; align-self: stretch; align-items: center; justify-content: center; }
  .table.attendance tr > td.c-pres { display: flex; grid-area: pres; align-items: center; gap: 2px; min-width: 0; }
  .table.attendance tr > td.c-mark { display: flex; grid-area: extra; align-items: center; gap: 4px; min-width: 0; }
  .table.attendance tr.st-no > td.c-mark, .table.attendance tr.st-out > td.c-mark { display: none; }
  .table.attendance tr.st-no > td.c-reason, .table.attendance tr.st-out > td.c-reason,
  .table.attendance:not(.has-mark) tr[data-kind] > td.c-reason { display: flex; grid-area: extra; min-width: 0; }
  .table.attendance tr.guest-row > td.c-pres { display: none; }
  .table.attendance tr.guest-row > td.c-pos { display: flex; grid-area: pres; min-width: 0; }
  .table.attendance tr > td select { width: 100%; min-width: 0; min-height: 42px; font-size: .9rem; padding: 4px 2px 4px 6px; }
  .table.attendance tr > td.c-mark select { flex: 1 1 auto; }
  .table.attendance .mark-avg { margin-left: 2px; white-space: nowrap; font-size: .85rem; }
  .table.attendance .src-mark { flex: none; }
}

/* Long instructions on phones behind «?» (14.11.2026): app.js marks p.hint outside of form fields, a tap shows them. */
.hint-tip { display: none; }
@media (max-width: 640px) {
  .hint-tip { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin: 6px 8px 6px 0; padding: 0; border-radius: 50%;
    border: 2px solid var(--brand); background: var(--surface); color: var(--brand); font: inherit; font-weight: 800; font-size: .95rem; line-height: 1; cursor: pointer; }
  .hint-tip[aria-expanded="true"] { background: var(--brand); color: var(--brand-ink); }
  .hint-collapsible:not(.is-open) { display: none; }
  .hint-collapsible.is-open { margin-top: 2px; }
}
/* The team's read-only board with the form of the players (from the kick-off). */
.lineup.has-form .readonly .tok { cursor: pointer; }
/* Convocation prepared before sending (14.11.2026): the push and the e-mail as they arrive. */
.callup-form textarea { min-height: 76px; }
.callup-preview h2 { font-size: 1.05rem; }
.push-preview { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 14px; padding: 10px 12px; border-radius: 14px;
  background: color-mix(in srgb, var(--bg) 70%, var(--surface)); border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(0, 0, 0, .08); font-size: .85rem; line-height: 1.35; }
.push-preview strong { display: block; }
.push-app { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: .8rem; }
.push-body { color: var(--ink); }
.mail-preview { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--surface); font-size: .92rem; }
.mail-subject { margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-weight: 600; }
.mail-p { margin: 0 0 10px; white-space: pre-line; overflow-wrap: anywhere; }
.mail-note { padding: 8px 10px; border-left: 3px solid var(--brand); background: var(--brand-soft); border-radius: 6px; }
.mail-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; }
.mail-buttons span.btn { cursor: default; }
.mail-head { margin: 0 0 4px; font-size: .85rem; overflow-wrap: anywhere; }
.mail-head + .small { margin-top: 0; }
/* Photos of the board (14.11.2026): thumbnails that open large, a download button on each. */
.board-photo-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; }
.board-photo-pick .error { color: var(--danger); font-weight: 600; }
.board-photo-preview { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.board-photo-preview:empty { display: none; }
.board-photo-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.board-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; margin: 8px 0 4px; }
.board-photos.one { grid-template-columns: minmax(0, 420px); }
.board-photo { position: relative; margin: 0; border-radius: 8px; overflow: hidden; background: var(--bg); aspect-ratio: 1; }
.board-photos.one .board-photo { aspect-ratio: auto; }
.board-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.board-photo video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.board-photo.video { aspect-ratio: 16 / 9; }
.board-photos.one .board-photo img { height: auto; }
.board-photo-dl { position: absolute; right: 6px; bottom: 6px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0, 0, 0, .55); color: #fff; text-decoration: none; font-size: 1rem; }
.board-photo-dl:hover, .board-photo-dl:focus-visible { background: rgba(0, 0, 0, .8); color: #fff; }
.board-photo-meta { margin-bottom: 6px; }

/* Plan and colours of a ground, pitch displays, closed pitches (14.11.2026) */
.vm-layout { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(240px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .vm-layout { grid-template-columns: minmax(0, 1fr); } }
.vm-canvas { position: sticky; top: 76px; }
@media (max-width: 860px) { .vm-canvas { position: static; } }
.vm-canvas svg { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: #e9eef0; touch-action: none; user-select: none; }
.vm-canvas svg.is-drawing { cursor: crosshair; }
.vm-bg { fill: #eef2ef; }
.vm-grid { stroke: #d6ddd8; stroke-width: 1; }
.vm-poly { fill-opacity: .5; stroke-width: 4; stroke-linejoin: round; cursor: move; }
.vm-shape.is-selected .vm-poly { fill-opacity: .7; stroke-width: 6; }
.vm-label { font: 800 26px var(--font); text-anchor: middle; dominant-baseline: middle; fill: #fff; paint-order: stroke; stroke: rgba(0, 0, 0, .75); stroke-width: 6px; stroke-linejoin: round; pointer-events: none; }
.vm-handle { fill: #fff; stroke: #111827; stroke-width: 3; cursor: grab; }
.vm-drawing { fill: none; stroke-width: 4; stroke-dasharray: 10 6; }
.vm-point { fill: #fff; stroke: #111827; stroke-width: 3; }
.vm-point.is-first { fill: #facc15; }
.vm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.vm-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.vm-item.is-active { border-color: var(--brand); background: var(--brand-soft); }
#venue-map .vm-item input[type=color] { width: 44px; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); cursor: pointer; }
#venue-map .vm-item input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
#venue-map .vm-item input[type=color]::-webkit-color-swatch { border: 0; border-radius: 4px; }
#venue-map .vm-item input[type=color]::-moz-color-swatch { border: 0; border-radius: 4px; }
.vm-name { display: flex; flex-direction: column; min-width: 0; }
.vm-actions { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.vm-side h3 { margin: 4px 0 8px; font-size: 1rem; }
.vm-side .vm-list + h3 { margin-top: 16px; }
#venue-map .vm-bname { padding: 4px 8px; font-weight: 600; }
.vm-delete { grid-column: 1 / -1; color: var(--danger); }
.vm-rooms { display: grid; gap: 4px 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-bottom: 8px; }
.vm-rooms .field { margin: 0; }
.display-preview { aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #0d1116; }
.display-preview iframe { width: 100%; height: 100%; border: 0; display: block; }
.display-card h2 { margin: 0; }
.closure-list .list-row { align-items: center; }
.closure-dates { font-variant-numeric: tabular-nums; }
.planning-occupant { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; flex: 1 1 100%; }
.planning-occupant .field { margin: 0; min-width: 160px; flex: 1 1 180px; }
.chip .guest, .event-spaces .guest { color: #9a5b00; font-weight: 600; }

/* Upload of the plan of a ground: what is happening, a bar, or the problem (15.11.2026) */
.upload-status { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: .92rem; }
.upload-status progress { width: min(260px, 50%); height: 10px; accent-color: var(--brand); }
.upload-status.is-error { color: var(--danger); font-weight: 600; }

/* Drawing tools of the plan editor (15.11.2026): automatic, rectangle, corners */
.vm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 8px; padding: 6px 0; position: sticky; top: var(--header-h, 60px); z-index: 3; background: var(--surface); }
.vm-modes { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.vm-modes label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: .9rem; cursor: pointer; border-right: 1px solid var(--line); }
.vm-modes label:last-child { border-right: 0; }
.vm-modes label:has(input:checked) { background: var(--brand-soft); color: var(--brand); font-weight: 650; }
.vm-modes input { margin: 0; }
.vm-tool-hint { font-size: .88rem; color: var(--muted); }
.vm-tool-hint.is-error { color: var(--danger); font-weight: 600; }
#vm-svg.is-auto { cursor: crosshair; }

/* Rules of the teams (15.11.2026): one block per team, pitches and changing rooms as chips – / ✓ preferred / 🔒 reserved */
.alloc-team-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.alloc-team { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.alloc-team > summary { cursor: pointer; padding: 10px 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.alloc-team[open] > summary { border-bottom: 1px solid var(--line); }
.alloc-team-body { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.alloc-team-sel { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.alloc-team-sel .field { margin: 0; min-width: 150px; }
.alloc-team-line { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 6px 12px; align-items: start; }
.alloc-team-label { font-size: .88rem; font-weight: 600; color: var(--muted); padding-top: 6px; }
@media (max-width: 640px) { .alloc-team-line { grid-template-columns: minmax(0, 1fr); } .alloc-team-label { padding-top: 0; } }
.tri-wrap { display: inline-flex; }
.tri { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: .88rem; cursor: pointer; line-height: 1.3; }
.tri:hover { border-color: var(--brand); }
.tri.is-0 .tri-mark { display: none; }
.tri.is-1 { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 650; }
.tri.is-1 .tri-mark::before { content: "✓"; }
.tri.is-2 { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 650; }
.tri.is-2 .tri-mark::before { content: "🔒"; font-size: .8em; }
/* Always this changing room, open to the others when the team does not use it (23.11.2026). */
.tri.is-3 { background: var(--brand-soft); border-color: var(--brand); border-width: 2px; color: var(--brand); font-weight: 700; }
.tri.is-3 .tri-mark::before { content: "📌"; font-size: .8em; }
.tri.is-taken { color: var(--muted); border-style: dashed; background: repeating-linear-gradient(135deg, transparent 0 6px, var(--line) 6px 7px); }
.tri-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.tri-legend .tri { cursor: default; }
/* Own notes on a player from the match mode (15.11.2026): at the side of the card and of the assessment. */
.pn-side { display: grid; gap: 6px; }
.pn-side h3 { margin: 0; font-size: 1rem; }
.pn-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.pn-side .hint { margin: 0; }
.pn-matches { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; max-height: 26rem; overflow: auto; }
.pn-match { font-weight: 600; font-size: .92rem; }
.pn-items, .pn-list { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 4px; }
.pn-items li { display: grid; grid-template-columns: 3.2em minmax(0, 1fr) auto; gap: 6px; align-items: start; font-size: .92rem; }
.pn-list > li { margin-top: 6px; }
.pn-list .pn-items li { grid-template-columns: 3.6em minmax(0, 1fr); }
.pn-when { font-variant-numeric: tabular-nums; text-align: right; }
.pn-text { white-space: pre-line; overflow-wrap: anywhere; }
.pn-copy { min-width: 36px; justify-content: center; padding: 2px 8px; }
.rating-layout .pn-side { margin-top: 12px; }
/* The captain (15.11.2026 evening): «C» armband on the token, the bench chip, the report and the player page. */
.tok-cap { position: absolute; top: -5px; right: -7px; min-width: 17px; height: 17px; padding: 0 3px; border-radius: 4px; background: #ffd84d; color: #3a2a00;
  border: 1.5px solid #fff; font-size: 11px; font-weight: 800; line-height: 14px; text-align: center; pointer-events: none; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.tok-cap.is-proposed { background: #fff3c4; border-style: dashed; border-color: #a07800; }
.bench-chip .tok-cap { position: static; margin-left: 2px; }
.cap-badge { display: inline-block; min-width: 1.35em; padding: 0 .25em; border-radius: 4px; background: #ffd84d; color: #3a2a00; font-weight: 800; font-size: .8em; line-height: 1.35em; text-align: center; vertical-align: .1em; }
.lineup-tools .tool-captain select { max-width: 13em; }
.lineup-tools .tool-captain.is-proposed select { border-style: dashed; }
.lineup-cap-hint { flex-basis: 100%; }

/* Kick-It (18.11.2026): avatars on their colour, leaderboards, the own summary. */
.ki-avatar { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; flex: none; }
.ki-avatar img { width: 72%; height: 72%; }
.ki-avatar.big { width: 4.5rem; height: 4.5rem; }
.ki-c0 { background: #1f6f43; } .ki-c1 { background: #2563eb; } .ki-c2 { background: #dc2626; } .ki-c3 { background: #d97706; }
.ki-c4 { background: #7c3aed; } .ki-c5 { background: #0e7490; } .ki-c6 { background: #db2777; } .ki-c7 { background: #334155; }
.ki-row { display: inline-flex; align-items: center; gap: .6rem; }
.ki-table td { vertical-align: middle; }
.ki-table tr.ki-me td { background: var(--brand-soft); }
.ki-summary { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.ki-summary > div { flex: 1 1 14rem; min-width: 0; }
.ki-summary .tiles { margin-top: .25rem; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
.ki-row strong { white-space: nowrap; }
.ki-table td.num.small { white-space: nowrap; }
@media (max-width: 600px) { .ki-table .ki-hide-sm { display: none; } }
.ki-nick { margin: 0; font-weight: 700; font-size: 1.15rem; }
.ki-pager { justify-content: space-between; align-items: center; margin-top: .5rem; }
/* The quiz of Kick-It (19.11.2026): a question as the phone shows it, in Administration → Quiz. */
.qz-phone { max-width: 22rem; border: 1px solid var(--line); border-radius: 1.5rem; padding: 1rem; background: var(--brand-soft); }
.qz-phone .qz-q { font-weight: 700; font-size: 1.1rem; margin: 0 0 .75rem; }
.qz-phone .qz-a { display: block; width: 100%; text-align: left; padding: .7rem .9rem; margin: .35rem 0; border-radius: .8rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.qz-phone .qz-a.qz-right { border-color: var(--ok); font-weight: 600; }
.qz-phone .qz-x { margin: .6rem 0 0; font-size: .9rem; }
.qz-langs { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }

/* The colour of a team (0086, App\\Support\\TeamColors): the shirt (team_shirt()) and the number badge (.shirt). */
.tc-red { --tc: #d32f2f; --tc-ink: #ffffff; }
.tc-bordeaux { --tc: #7b1e2b; --tc-ink: #ffffff; }
.tc-orange { --tc: #ef6c00; --tc-ink: #111111; }
.tc-yellow { --tc: #fbc02d; --tc-ink: #111111; }
.tc-lime { --tc: #7cb342; --tc-ink: #111111; }
.tc-green { --tc: #2e7d32; --tc-ink: #ffffff; }
.tc-darkgreen { --tc: #1b5e20; --tc-ink: #ffffff; }
.tc-sky { --tc: #4fc3f7; --tc-ink: #111111; }
.tc-blue { --tc: #1565c0; --tc-ink: #ffffff; }
.tc-navy { --tc: #0d1b4c; --tc-ink: #ffffff; }
.tc-purple { --tc: #6a1b9a; --tc-ink: #ffffff; }
.tc-pink { --tc: #d81b60; --tc-ink: #ffffff; }
.tc-black { --tc: #111111; --tc-ink: #ffffff; }
.tc-grey { --tc: #757575; --tc-ink: #ffffff; }
.tc-silver { --tc: #cfd8dc; --tc-ink: #111111; }
.tc-white { --tc: #ffffff; --tc-ink: #111111; }
.team-shirt { width: 1.4em; height: 1.4em; vertical-align: -.3em; flex: none; }
.team-shirt path { fill: var(--tc, var(--muted)); stroke: var(--line); stroke-width: .8; stroke-linejoin: round; }
.team-shirt.tc-light path { stroke: var(--muted); }
.team-shirt.tc-none path { fill: none; stroke: var(--muted); stroke-width: 1.2; }
.team-shirt text { fill: var(--tc-ink, var(--surface)); font-size: 7.5px; font-weight: 800; font-family: inherit; }
.team-shirt-lg { width: 2.2em; height: 2.2em; }
.shirt.tc { background: var(--tc); color: var(--tc-ink); box-shadow: inset 0 0 0 1px var(--line); }
.team-colors { border: 0; padding: 0; margin: 0 0 1rem; }
.team-colors legend { font-weight: 600; margin-bottom: .35rem; }
.team-color-choices { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.team-color-choice { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .35rem; border-radius: 10px; border: 2px solid transparent; cursor: pointer; }
.team-color-choice input { position: absolute; opacity: 0; pointer-events: none; }
.team-color-choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft, transparent); }
.team-color-choice:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.team-color-none { font-size: .9rem; color: var(--muted); padding: 0 .3rem; }
.team-title { display: inline-flex; align-items: center; gap: .45rem; }
.st-shirt.tc path { fill: var(--tc); stroke: var(--line); stroke-width: 1.2; }
.st-shirt.tc text { fill: var(--tc-ink); }
/* 18.11.2026: the chronicle, the season month by month and the block of the staff in the statistics. */
.st-chronicle { margin-top: 8px; }
.st-trend { margin: 4px 0 10px; }
.st-trend summary { cursor: pointer; }
.st-trend .chart { max-width: 420px; }
.st-coach { margin: 8px 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--warn-soft); }
.st-skills { border-collapse: collapse; width: 100%; max-width: 360px; }
.st-skills caption { text-align: left; padding-bottom: 4px; }
.st-skills th { text-align: left; font-weight: 500; font-size: .85rem; padding: 2px 8px 2px 0; white-space: nowrap; }
.st-skills td { padding: 2px 0; }
.st-skills td.num { width: 2.5em; text-align: right; font-variant-numeric: tabular-nums; font-size: .85rem; }
.st-skill { width: 100%; height: 8px; display: block; }

/* 18.11.2026 17:39–17:41: the player over time with a choice of metric (app.js chooser), season by season with the
   dashed trend, the earlier seasons each in a box of its own. */
.st-chooser .st-picks { margin: 6px 0 8px; }
.st-chooser .chip { cursor: pointer; font: inherit; font-size: .85rem; color: var(--ink); }
.st-chooser .chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.st-metric { margin: 0 0 12px; }
.st-metric figcaption { font-size: .85rem; }
/* 23.11.2026 20:09: the seasons as wide as they need in the box («nel web ci sarebbe anche più spazio»): a size of their
   own (about 100 units a season, text at about 13 px), smaller boxes shrink them; wider drawings keep their text size
   on narrow screens (they scroll in .chart-scroll). */
svg.chart.chart-natural { max-width: 100%; }
svg.chart.chart-wide { min-width: 640px; }
.chart-line.chart-trend { stroke-dasharray: 6 5; stroke-width: 1.5; opacity: .75; }
.chart-legend .key.line.trend { background: none; border-top: 2px dashed var(--series-1); height: 0; border-radius: 0; }
.chart-seg.seg-yellow, .key.seg-yellow { fill: #e3b505; background: #e3b505; }
.chart-seg.seg-red, .key.seg-red { fill: #d23b2f; background: #d23b2f; }
details.st-past > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
details.st-past > summary::-webkit-details-marker { display: none; }
details.st-past > summary h2 { margin: 0; flex: 1 1 auto; }
details.st-past > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; margin: 0 4px 4px; flex: none; }
details.st-past[open] > summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
details.st-past[open] > summary { margin-bottom: 8px; }
details.st-season { border-top: 1px solid var(--line); padding: 10px 0; }
details.st-season > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
details.st-season > summary::-webkit-details-marker { display: none; }
details.st-season > summary::before { content: "▸"; color: var(--muted); }
details.st-season[open] > summary::before { content: "▾"; }
.st-season-sum { margin-left: auto; }
.st-embedded { margin-top: 10px; }

/* New season (21.11.2026): who stays, a tick each. */
.season-keep { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 12px 0; }
.season-keep legend { font-weight: 700; padding: 0 4px; }
.season-keep h3 { font-size: .95rem; margin: 12px 0 6px; }
.season-keep .check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.keep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 16px; }

/* No longer active in the club (21.11.2026, 0108). */
tr.person-inactive td { color: var(--muted, #6b7280); }
.club-status .field.check { align-self: end; }
.team-roles .badge { margin: 1px 2px 1px 0; white-space: nowrap; }
.badge.referee { background: #fde68a33; border-color: #d97706; color: inherit; }
.mimport-table td { vertical-align: top; }
.mimport-table select { min-width: 12em; }
.mimport-changes { font-size: .85rem; }
.mimport-changes del { color: var(--danger); }
.mimport-changes ins { text-decoration: none; color: var(--ok); }
.mimport-missing > summary { margin-bottom: 8px; }

/* Busy (21.11.2026 19:44): a moving bar at the top, the waiting mouse, after 0.7 s «One moment…» at the bottom (app.js). */
.busy-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 10000; pointer-events: none; opacity: 0; transition: opacity .15s;
  background: linear-gradient(90deg, transparent, var(--brand), transparent) no-repeat; background-size: 40% 100%; }
html.ts11-busy .busy-bar { opacity: 1; animation: busy-bar 1.1s linear infinite; }
@keyframes busy-bar { from { background-position: -60% 0; } to { background-position: 160% 0; } }
html.ts11-busy, html.ts11-busy * { cursor: progress !important; }
.busy-spin { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 10000; display: none; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 999px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-weight: 600; pointer-events: none; }
html.ts11-busy-long .busy-spin { display: flex; }
.busy-spin::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: busy-spin .8s linear infinite; }
@keyframes busy-spin { to { transform: rotate(360deg); } }
/* The button of a form being sent: a small wheel on it. */
form.sending button[type="submit"], form.sending button:not([type]), button.sending { position: relative; }
form.sending button[type="submit"]::after, form.sending button:not([type])::after, button.sending::after { content: ""; display: inline-block; width: .9em; height: .9em; margin-left: .5em;
  vertical-align: -.1em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: busy-spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  html.ts11-busy .busy-bar { animation: none; background: var(--brand); opacity: .6; }
  .busy-spin::before, form.sending button[type="submit"]::after, form.sending button:not([type])::after, button.sending::after { animation-duration: 2.4s; }
}

/* The teams of the club calendar (21.11.2026 21:57): a menu with a box each. */
.cal-teams { position: relative; display: inline-block; }
.cal-teams > summary { list-style: none; cursor: pointer; }
.cal-teams > summary::-webkit-details-marker { display: none; }
.cal-teams-list { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; min-width: 220px; max-height: 60vh; overflow: auto; padding: 8px 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.cal-teams-tools { display: flex; gap: 6px; margin-bottom: 4px; }
.cal-team { display: flex; gap: 6px; align-items: center; white-space: nowrap; }

/* The switch to the other teams of the club (21.11.2026 22:06): the name of the team opens the list. */
.team-switch { display: inline-block; }
.team-switch > summary { list-style: none; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px; border-radius: 6px; }
.team-switch > summary::-webkit-details-marker { display: none; }
.team-switch > summary h1 { margin: 0; }
.team-switch > summary:hover .team-title, .team-switch[open] > summary .team-title { color: var(--brand); }
.team-switch-caret { font-size: .7em; color: var(--muted); }
.team-switch ul { max-height: 60vh; overflow: auto; max-width: min(360px, calc(100vw - 48px)); z-index: 20; }
.team-switch li a { display: flex; align-items: center; gap: 6px; }

/* The priority of a pitch next to its chip (21.11.2026 22:27). */
.tri-wrap { align-items: center; gap: 3px; }
.tri-prio { min-height: 30px; padding: 2px 4px; font-size: .85rem; width: auto; border-radius: 8px; }
.tri-prio[hidden] { display: none; }

/* A series up to a day (21.11.2026 22:36): the radio with its day on one line. */
.scope-until { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.scope-until input[type=date] { width: auto; min-height: 36px; }
.scope-until .error { flex-basis: 100%; }

/* The days of a reservation next to its chip (21.11.2026 22:49): none ticked = every day. */
.tri-wrap { flex-wrap: wrap; }
.tri-days { display: inline-flex; gap: 2px; }
.tri-days[hidden] { display: none; }
.day-box { display: inline-flex; cursor: pointer; }
.day-box input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.day-box span { display: inline-block; min-width: 26px; padding: 3px 4px; border: 1px solid var(--line); border-radius: 6px; font-size: .78rem; text-align: center; background: var(--surface); }
.day-box input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 650; }
.day-box input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 1px; }

/* Slots per pitch and gym (21.11.2026 22:59): the days of the week with their slots as chips, reserved ones filled. */
.slot-facs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); margin-bottom: 12px; }
.slot-fac { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.slot-fac h3 { margin: 0 0 6px; font-size: 1rem; }
.slot-days { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.slot-days > li { display: flex; gap: 8px; align-items: flex-start; }
.slot-day { flex: 0 0 2.2em; font-weight: 650; padding-top: 3px; }
.slot-chips { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.slot-chip > summary { list-style: none; cursor: pointer; padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; background: var(--surface); }
.slot-chip > summary::-webkit-details-marker { display: none; }
.slot-chip.is-reserved > summary { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 600; }
.slot-chip[open] { flex-basis: 100%; }
.slot-chip[open] > summary { border-color: var(--brand); }
.slot-chip[open] .slot-form { margin-top: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.slot-resv-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
.slot-resv-row select, .slot-resv-row input[type=date] { width: auto; }

/* The space by priority per team (21.11.2026 23:12). */
.alloc-space { align-items: center; }
.space-prio { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; }
.space-prio.is-on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.space-prio select { min-height: 28px; padding: 1px 4px; width: auto; border-radius: 8px; }

/* A reserved slot whose team has no training in it on some coming dates (21.11.2026 23:41). */
.slot-chip.is-warn > summary { border-color: var(--warn, #c77700); }
/* «+» next to a day, «×» on a slot (22.11.2026 12:06). */
.slot-chip-wrap { position: relative; display: inline-flex; }
.slot-chip-wrap:has(> .slot-chip[open]) { flex-basis: 100%; }
.slot-chip-wrap > .slot-chip { flex: 1 1 auto; }
.slot-chip-wrap > .slot-chip > summary { padding-right: 24px; }
.slot-chip-wrap > form { position: absolute; top: 1px; right: 4px; }
.slot-x { border: 0; background: none; color: var(--danger); font-weight: 700; font-size: .95rem; line-height: 1; padding: 3px 4px; cursor: pointer; border-radius: 999px; }
.slot-x:hover { background: color-mix(in srgb, var(--danger) 15%, transparent); }
.slot-add { border: 1px dashed var(--line); background: none; color: var(--brand); font-weight: 700; border-radius: 999px; padding: 2px 9px; cursor: pointer; line-height: 1.2; }
.slot-add:hover { border-color: var(--brand); background: var(--brand-soft); }
.slot-add[disabled] { opacity: .4; cursor: default; }
.slot-days > li:has(> .slot-new) { flex-wrap: wrap; }
.slot-days > li > .slot-new { flex-basis: 100%; }

/* Taking away the reservations at once (22.11.2026 00:35). */
.slot-clear { margin: 0 0 10px; align-items: center; }
.slot-fac-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.slot-fac-head h3 { margin: 0; }

/* The grid of the gyms (22.11.2026 00:39, like the «Hallenplan» of the club): per day the gyms of that day, quarters
   of an hour; grey not available, green free, the teams where reserved. */
.gym-grid-wrap { overflow-x: auto; }
.gym-grid { border-collapse: collapse; font-size: .78rem; min-width: 100%; }
.gym-grid th, .gym-grid td { border: 1px solid var(--line); padding: 1px 4px; text-align: center; vertical-align: middle; line-height: 1.15; min-width: 64px; height: 22px; }
.gym-grid thead th { background: var(--surface-2, var(--surface)); font-weight: 650; vertical-align: top; }
.gym-grid .gg-day { font-size: .9rem; border-left: 3px solid var(--ink); }
.gym-grid .gg-first { border-left: 3px solid var(--ink); }
.gym-grid .gg-time { white-space: nowrap; font-weight: 600; background: var(--surface); min-width: 82px; }
.gym-grid td.gg-na { background: repeating-linear-gradient(135deg, var(--line) 0 4px, transparent 4px 8px); }
.gym-grid td.gg-free, .gg-swatch.gg-free { background: #9bd36b; }
.gym-grid td.gg-taken, .gg-swatch.gg-taken { background: var(--surface); }
.gym-grid td.gg-taken { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.gym-grid .gg-range { display: block; font-size: .7rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gym-grid tr.gg-hour > .gg-time { border-top: 2px solid var(--muted); }
.gym-grid tr.gg-hour > td.gg-free, .gym-grid tr.gg-hour > td.gg-na { border-top: 2px solid var(--muted); }
.gym-grid td.gg-new, .gg-swatch.gg-new { background: color-mix(in srgb, var(--brand) 18%, var(--surface)); }
.gym-grid .gg-teams { font-weight: 600; display: block; overflow-wrap: anywhere; }
.gym-grid .gg-gym { white-space: normal; overflow-wrap: anywhere; }
.gym-grid .gg-note { display: block; color: var(--danger); font-size: .68rem; }
.gg-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 6px; }
.gg-swatch { display: inline-block; width: 22px; height: 12px; border: 1px solid var(--line); vertical-align: middle; }
.gg-swatch.gg-na { background: repeating-linear-gradient(135deg, var(--line) 0 4px, transparent 4px 8px); }
.gp-slot { border-top: 1px solid var(--line); padding: 8px 0; }
.gp-slot-head { margin-bottom: 4px; }
.gp-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 3px 0; }
.gp-row select, .gp-row input[type=time] { width: auto; }
.gp-extra { opacity: .8; }
@media print {
  .gym-grid { font-size: 7pt; }
  .gym-grid td.gg-free { background: #9bd36b !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .gym-grid td.gg-na { background: #d9d9d9 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* What a screen shows (22.11.2026 00:47): its pitches, gyms and rooms, the teams shown anyway. */
.display-content { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; }
.display-content legend { font-weight: 650; padding: 0 6px; }
.display-facs { display: flex; flex-wrap: wrap; gap: 4px 4px; align-items: baseline; margin: 6px 0; }
.display-facs > strong { margin-right: 10px; }
.display-teams summary { cursor: pointer; font-weight: 600; margin-top: 8px; }

/* The grid of the pitches (22.11.2026 04:15): per day the pitches with their colour (--pc, set by app.js), rows of five
   minutes (the hour and the quarter marked), a booking once over its time, the proposal dashed, closed and outside the
   slots hatched; a click on a time gives it to a team. */
.pitch-grid-wrap { overflow-x: auto; }
.pitch-grid { border-collapse: collapse; font-size: .78rem; min-width: 100%; table-layout: fixed; }
.pitch-grid th, .pitch-grid td { border-left: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0 3px; text-align: center; vertical-align: middle; line-height: 1.1; min-width: 88px; }
.pitch-grid.is-week { font-size: .7rem; }
.pitch-grid.is-week th, .pitch-grid.is-week td { min-width: 52px; }
.pitch-grid tbody tr { height: 9px; }
.pitch-grid tbody tr.pg-quarter > * { border-top: 1px solid var(--line); }
.pitch-grid tbody tr.pg-hour > * { border-top: 1px solid var(--muted); }
.pitch-grid thead th { background: var(--surface-2, var(--surface)); font-weight: 650; padding: 3px; vertical-align: top; }
.pitch-grid .pg-day { font-size: .9rem; border-left: 3px solid var(--ink); }
.pitch-grid .pg-pitch { border-top: 4px solid var(--pc, var(--line)); white-space: normal; overflow-wrap: anywhere; }
.pitch-grid .pg-first { border-left: 3px solid var(--ink); }
.pitch-grid .pg-time { width: 44px; min-width: 44px; font-size: .7rem; font-weight: 600; color: var(--muted); background: var(--surface); white-space: nowrap; vertical-align: top; }
.pitch-grid td { cursor: pointer; }
.pitch-grid td.pg-free { background: color-mix(in srgb, var(--pc, #9bd36b) 7%, var(--surface)); }
.pitch-grid td.pg-free:hover, .pitch-grid td.pg-na:hover { outline: 2px solid var(--brand); outline-offset: -2px; }
.pitch-grid td.pg-taken { background: color-mix(in srgb, var(--pc, var(--brand)) 45%, var(--surface)); color: var(--ink); font-weight: 650; border-top: 2px solid var(--surface); }
.pitch-grid td.pg-taken.pg-proposal { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--pc, var(--brand)) 22%, var(--surface)) 0 6px, var(--surface) 6px 10px);
  outline: 2px dashed var(--pc, var(--brand)); outline-offset: -3px; }
.pitch-grid td.pg-na, .pg-swatch.pg-na { background: repeating-linear-gradient(135deg, var(--line) 0 4px, transparent 4px 8px); }
.pitch-grid td.pg-closed, .pg-swatch.pg-closed { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--danger) 30%, transparent) 0 4px, transparent 4px 8px); color: var(--danger); font-weight: 650; }
.pitch-grid .pg-text { display: block; white-space: normal; overflow-wrap: anywhere; }
/* Where a word has no room (28.11.2026 12:59: «gesperrt» as «gesperr / t», «E g el b»), the cell writes upwards: a
   closed pitch always in the week, the teams of a cell side by side as narrow strips (app.js marks the cells, pg-vert). */
.pitch-grid .pg-cell { display: block; }
.pitch-grid.is-week td.pg-closed .pg-text, .pitch-grid td.pg-vert .pg-text { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; margin: 0 auto; letter-spacing: .04em; }
.pitch-grid td.pg-vert .pg-cell { display: flex; flex-direction: row; justify-content: center; align-items: stretch; gap: 2px; padding: 2px 0; }
.pitch-grid td.pg-vert .pg-times { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; margin: 0; text-align: left; }
.pitch-grid td.pg-vert .pg-tile { flex-direction: column-reverse; justify-content: flex-start; gap: 3px; margin: 0; padding: 3px 1px; min-width: 0; }
.pitch-grid td.pg-vert .pg-tile svg { width: 16px; }
.pitch-grid td.pg-vert .pg-tile-text { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; flex: none; }
/* One line for the time, then a tile per team (22.11.2026 09:49): its zone drawn, a click for another pitch, «×». */
.pitch-grid .pg-times { display: block; font-weight: 600; font-size: .7rem; opacity: .9; margin: 2px 0 1px; }
.pitch-grid .pg-tile { display: flex; align-items: center; gap: 4px; margin: 2px 0; padding: 1px 3px 1px 2px; border-radius: 6px; text-align: left; font-weight: 650;
  background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid color-mix(in srgb, var(--pc, var(--brand)) 60%, var(--line)); cursor: pointer; }
.pitch-grid .pg-tile:hover, .pitch-grid .pg-tile:focus-visible { outline: 2px solid var(--brand); outline-offset: 0; }
.pitch-grid .pg-tile.is-proposal { border-style: dashed; border-width: 2px; }
.pitch-grid .pg-tile svg { flex: none; width: 22px; height: auto; }
.pitch-grid .pg-tile-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; line-height: 1.15; }
.pitch-grid .pg-x { flex: none; border: 0; background: none; color: var(--danger); font-weight: 700; font-size: .95rem; line-height: 1; padding: 0 2px; cursor: pointer; }
.pitch-grid .pg-x:hover { background: color-mix(in srgb, var(--danger) 15%, transparent); border-radius: 4px; }
/* Accept a team's proposal (22.11.2026 10:19); the plates of the times to change them (10:29). */
.pitch-grid .pg-std { color: var(--brand); font-size: .75rem; }
.pitch-grid .pg-std.is-lost { color: var(--warn); }
.pg-standard { gap: 8px; align-items: center; margin: 4px 0 8px; }
.pitch-grid .pg-ok { flex: none; border: 0; background: none; color: var(--ok, #2e7d32); font-weight: 800; font-size: .95rem; line-height: 1; padding: 0 2px; cursor: pointer; }
.pitch-grid .pg-ok:hover { background: color-mix(in srgb, var(--ok, #2e7d32) 15%, transparent); border-radius: 4px; }
.pitch-grid .pg-time-chip[role="button"] { cursor: pointer; padding: 0 3px; border-radius: 4px; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
.pitch-grid .pg-time-chip[role="button"]:hover, .pitch-grid .pg-time-chip[role="button"]:focus-visible { outline: 2px solid var(--brand); outline-offset: 0; }
.pitch-grid .pg-sides { display: block; font-weight: 400; font-size: .66rem; color: var(--muted); }
.pitch-grid .pg-gym { font-style: italic; }
.pg-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 6px; }
.pg-swatch { display: inline-block; width: 22px; height: 12px; border: 1px solid var(--line); vertical-align: middle; }
.pg-swatch.pg-free { background: color-mix(in srgb, #9bd36b 25%, var(--surface)); }
.pg-swatch.pg-proposal { background: var(--surface); outline: 2px dashed var(--brand); outline-offset: -2px; }
.pg-days { flex-wrap: wrap; }
.pg-dialog { max-width: 560px; width: calc(100% - 24px); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.pg-dialog::backdrop { background: rgba(0, 0, 0, .35); }
.pg-items { margin: 0 0 8px; }
@media print {
  .pitch-grid td.pg-taken { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Restaurants and buvettes with today's hours on the public team page and the club page (22.11.2026 19:55):
   open highlighted, closed greyed with when it opens next. */
.restos { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.resto { display: flex; align-items: flex-start; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.resto-body { min-width: 0; flex: 1 1 auto; }
.resto-state { flex: none; white-space: nowrap; font-size: .82rem; font-weight: 650; padding: 2px 10px; border-radius: 999px; }
.resto.r-open { border-color: var(--ok); background: var(--ok-soft); }
.resto.r-open .resto-state { background: var(--ok); color: #fff; }
.resto.r-closed { opacity: .62; }
.resto.r-closed .resto-state { color: var(--muted); border: 1px solid var(--line); }
@media (max-width: 420px) { .resto { flex-wrap: wrap; } .resto-state { white-space: normal; } }

/* Tabs of a settings area (23.11.2026): account, team, club. They wrap on small screens (never scroll sideways). */
.settings-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.settings-tabs a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; line-height: 1.2; }
.settings-tabs a:hover { border-color: var(--brand); }
.settings-tabs a.active, .settings-tabs a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink, #fff); }

/* «+ Nuovo» of the calendar (23.11.2026): one drop-down; headings between the groups. */
.new-menu { display: inline-block; margin-top: 0; }
.new-menu > summary { list-style: none; }
.new-menu > summary::-webkit-details-marker { display: none; }
.new-menu ul { right: 0; min-width: 230px; max-height: 70vh; overflow: auto; z-index: 20; }
.new-menu li.menu-head { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 8px 2px; }
.new-menu li.menu-head:first-child { padding-top: 2px; }
/* The filters of the calendar under «Filtri» (23.11.2026). */
.cal-filters { margin-top: 8px; }
.cal-filters > summary { list-style: none; display: inline-block; cursor: pointer; }
.cal-filters > summary::-webkit-details-marker { display: none; }
.cal-filters .cal-legend { margin-top: 8px; }
.tools-menu { display: inline-block; margin-top: 0; }
.tools-menu > summary { list-style: none; }
.tools-menu > summary::-webkit-details-marker { display: none; }
.tools-menu ul { right: 0; z-index: 20; }


/* The duplicate check of the people (27.11.2026). */
.dup-pair .dup-reason { margin: 0 0 8px; }
.dup-sides { gap: 12px; }
.dup-side { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg); }
.dup-side h3 { margin: 0 0 6px; font-size: 1.05rem; }
.dup-facts { display: grid; grid-template-columns: max-content 1fr; gap: 2px 10px; margin: 0 0 6px; font-size: .88rem; }
.dup-facts dt { color: var(--muted); }
.dup-facts dd { margin: 0; overflow-wrap: anywhere; }
.dup-teams { margin: 4px 0 0; padding-left: 18px; }
.dup-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-start; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.dup-merge fieldset { border: 0; padding: 0; margin: 0 0 6px; gap: 6px 16px; }
.dup-merge fieldset legend { padding: 0; margin-bottom: 4px; }
.dup-other { gap: 8px; }
.btn.warn { border-color: color-mix(in srgb, var(--warn, #b7791f) 60%, var(--line)); }
