:root {
  /* the logo's night blue and its two lights; the mint is the aqua let down with white */
  --navy: #061836;
  --deep: #040F25;
  --navy-2: #0B2348;
  --navy-3: #133262;
  --aqua: #2FD6B5;
  --aqua-ink: #04211C;
  --blue: #2A7BEA;
  --sky: #8BE8D6;
  --mint: #C6F2E7;
  --ink: #0A1A36;
  --night: #061836;
  --night-2: #0B2348;
  --paper: #F2F5F9;
  --mist: #E7ECF3;
  --line: #D5DCE7;
  --surface: #FFFFFF;
  --muted: #45526A;
  --muted-2: #5A667E;
  --border: #77839A;
  --on-dark: #F1F5FB;
  --on-dark-muted: #A9B8D3;
  --hair: rgba(255,255,255,.14);
  /* on light pages the accent is the deep end of the aqua, so white text on it stays readable */
  --accent: #0A7C6A;
  --accent-ink: #086354;
  --accent-soft: #DDF5EF;
  --on-accent: #FFFFFF;
  --coral: var(--aqua);
  --display: 'Bodoni Moda', 'Didot', serif;
  --mono: 'Geist Mono', monospace;
  --ease: cubic-bezier(.2,.7,.1,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Geist, system-ui, sans-serif; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
::selection { background: var(--aqua); color: var(--aqua-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: var(--accent-ink); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* shared pieces */
.wrap { max-width: 1240px; margin: 0 auto; }
.dark { background: var(--night); color: var(--on-dark); }
.display { font-family: var(--display); font-weight: 500; line-height: .98; letter-spacing: -.02em; }
.stack { display: flex; flex-direction: column; }
.head { gap: 20px; max-width: 820px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 4px; background: var(--accent); color: var(--on-accent, #fff); text-decoration: none; font-weight: 600; white-space: nowrap; cursor: pointer; transition: transform .4s var(--ease), filter .4s var(--ease); }
.btn:hover { color: var(--on-accent, #fff); filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.logo { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
.logo img { display: block; width: auto; height: var(--logo-h, 48px); }
.row { display: flex; justify-content: space-between; gap: 12px; }
.field { min-height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); color: var(--ink); font-weight: 400; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.field:focus-visible { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); }
.field::placeholder { color: var(--muted-2); }
.tag { padding: 3px 9px; border-radius: 3px; font-size: 12px; font-weight: 650; white-space: nowrap; background: var(--accent-soft); color: var(--accent-ink); }
.tag.ok { background: #DCF2E5; color: #0B6B3A; }
.toggle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 6px; background: var(--mist); }
.toggle button { white-space: nowrap; padding: 0 8px; min-height: 44px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 15px; font-weight: 600; cursor: pointer; transition: background .4s var(--ease), color .4s var(--ease); }
.toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.net { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 6px; }
.net strong { font-size: clamp(44px, 5vw, 68px); color: var(--accent); font-variant-numeric: tabular-nums; }

/* landing (index.html): one night-blue sheet, parts set apart by space and tone, never by rules */
.site { background: var(--deep); color: var(--on-dark); --accent: var(--aqua); --on-accent: var(--aqua-ink); --accent-ink: var(--sky); }
.site a { color: var(--sky); }
.site a:hover { color: #fff; }
.site a.btn, .site a.btn:hover { color: var(--on-accent); }
.plate { max-width: 1480px; margin: 0 auto; background: var(--navy); }
.micro { font-family: var(--mono); font-size: 11px; font-weight: 500; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; }
.light { background: var(--paper); color: var(--ink); --accent: #0A7C6A; --on-accent: #fff; --accent-ink: #086354; }
.site .light a { color: var(--accent-ink); }
.btn.go { justify-content: space-between; min-width: 250px; min-height: 60px; padding: 0 10px 0 22px; }
.arrow { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: color-mix(in srgb, currentColor 16%, transparent); transition: transform .5s var(--ease); }
.arrow svg { width: 15px; height: 15px; }
.btn.go:hover .arrow { transform: translateX(4px); }
.site .btn.ink, .site .btn.ink:hover { background: var(--ink); color: #fff; }

.sitebar { position: sticky; top: 0; z-index: 30; display: flex; align-items: stretch; min-height: 68px; background: rgba(6,24,54,.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.sitebar > * { display: flex; align-items: center; padding: 0 28px; }
.sitebar .logo { --logo-h: 30px; }
.sitebar-tag { flex-direction: column; align-items: flex-start; justify-content: center; color: var(--on-dark-muted); }
.sitebar-nav { gap: 32px; margin-left: auto; }
.site .sitebar-nav a { padding: 6px 0; color: var(--on-dark); text-decoration: none; font-size: 15px; transition: color .4s var(--ease); }
.site .sitebar-nav a:hover { color: var(--aqua); }
.sitebar-cta { gap: 22px; }
.site .sitebar-cta > a:not(.btn) { color: var(--on-dark); text-decoration: none; font-size: 15px; }
.sitebar .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }
.site .sitebar .btn, .site .sitebar .btn:hover { color: var(--aqua-ink); }
.nav-toggle { display: none; position: relative; flex: none; width: 44px; height: 44px; margin: 0 16px 0 0; padding: 0; align-self: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.09); cursor: pointer; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; top: 21px; height: 2px; background: var(--on-dark); transition: transform .5s var(--ease); }
.nav-toggle span:first-child { transform: translateY(-4px); }
.nav-toggle span:last-child { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
.menu { display: none; }

/* first screen: one object, the field of athletes, with the title over it and its controls under it */
.first { display: grid; grid-template-rows: 1fr auto; min-height: calc(100dvh - 69px); }
.spec { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; min-height: 620px; padding: 26px 44px 24px; overflow: hidden; background: radial-gradient(60% 55% at 50% 62%, #0D2C5C, var(--navy) 72%); }
.spec canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.spec > :not(canvas):not(.sr-only) { position: relative; }
.spec-top { display: flex; justify-content: space-between; gap: 20px; }
.spec-top small { display: block; margin-top: 4px; font-size: 13px; color: var(--on-dark-muted); }
.spec-head { align-self: start; display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 8px; text-align: center; }
.spec-head h1 { font-size: clamp(38px, 5vw, 80px); line-height: .94; letter-spacing: -.045em; }
.spec-head h1 span { display: block; color: var(--aqua); }
.spec-head p { max-width: 50ch; font-size: 18px; color: var(--on-dark-muted); }
.spec-live { display: flex; align-items: center; gap: 9px; height: max-content; }
.spec-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--aqua); }
.spec-foot { grid-row: 4; align-self: end; }
.spec-foot h2 { font-family: var(--display); font-weight: 500; font-size: 30px; line-height: 1.05; letter-spacing: -.02em; }
.spec-foot h2 + .micro { margin-top: 8px; color: var(--on-dark-muted); }
.spec-ctl { display: flex; align-items: center; gap: 14px; padding-top: 18px; font-size: 14px; }
.spec-ctl label { margin-left: 14px; }
.spec-ctl .btn { margin-left: auto; }
.site .spec-ctl .btn, .site .spec-ctl .btn:hover { background: rgba(255,255,255,.1); color: var(--on-dark); }
.spec-ctl label { color: var(--on-dark-muted); }
.spec-ctl output { min-width: 5ch; font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.spec-ctl input[type="range"] { flex: 0 1 260px; height: 28px; margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.spec-ctl input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--aqua) var(--fill, 40%), rgba(255,255,255,.3) var(--fill, 40%)); }
.spec-ctl input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255,255,255,.3); }
.spec-ctl input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--aqua); }
.spec-ctl input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--on-dark); box-shadow: 0 0 0 4px rgba(47,214,181,.25); }
.spec-ctl input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--on-dark); box-shadow: 0 0 0 4px rgba(47,214,181,.25); }
.spec-ctl input[type="range"]:focus-visible { outline: 2px solid var(--aqua); outline-offset: 4px; }
.spec-btns { display: flex; gap: 10px; margin-left: auto; }
.rnd { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: var(--on-dark); cursor: pointer; transition: background .4s var(--ease); }
.rnd:hover { background: rgba(255,255,255,.18); }
.rnd.start { width: auto; padding: 0 20px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--aqua); color: var(--aqua-ink); box-shadow: none; }
.rnd.start:hover { background: var(--sky); }
.rnd svg { width: 14px; height: 14px; }
.spec-meta { display: flex; justify-content: space-between; gap: 20px; margin-top: 14px; color: var(--on-dark-muted); }
.moments { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2.3333fr)); gap: 8px; padding: 10px; }
.moments > * { display: flex; align-items: center; gap: 16px; min-height: 92px; padding: 16px 20px; border: 0; border-radius: 8px; background: none; color: inherit; text-align: left; }
.moments > :first-child { padding-left: 34px; }
.moments p { font-size: 14px; line-height: 1.45; color: var(--muted); }
.moments p b { display: block; font-size: 15px; color: var(--ink); }
.moment { cursor: pointer; transition: background .4s var(--ease); }
.moment:hover { background: var(--mist); }
.moment .micro { align-self: flex-start; padding-top: 3px; color: var(--muted-2); }
.moment span:nth-child(2) { display: flex; flex-direction: column; font-size: 13px; line-height: 1.4; color: var(--muted); }
.moment b { font-size: 16px; color: var(--ink); }
.moment i { flex: none; width: 9px; height: 9px; margin-left: auto; border-radius: 50%; background: var(--line); transition: background .4s var(--ease); }
.moment[aria-pressed="true"] i { background: var(--ink); }
.moment[aria-pressed="true"] { background: var(--surface); }

/* every section: a label and a title on the left, the matter on the right; tone and space set them apart */
.sec { padding-top: 24px; }
#pannello { background: var(--navy-2); }
.sec-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.sec-head > * { padding: 56px 44px; }
.sec-head > :last-child { display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; }
.sec-head .micro { display: block; margin-bottom: 20px; color: var(--sky); }
.sec h2.display { font-size: clamp(36px, 4vw, 60px); text-wrap: balance; }
.lead { max-width: 52ch; font-size: 19px; color: var(--on-dark-muted); }

/* services: one wall of names, coloured like the dots of the first screen (white before the race, aqua on the day, blue before and after) */
.svc-wrap { padding: 8px 44px 88px; }
.svc-keys { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.svc-key { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 4px; background: rgba(255,255,255,.07); color: var(--on-dark); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .4s var(--ease); }
.svc-key:hover { background: rgba(255,255,255,.12); }
.svc-key[aria-pressed="true"] { background: rgba(255,255,255,.18); }
.svc-key i { width: 9px; height: 9px; border-radius: 50%; background: var(--ph); }
[data-phase="1"] { --ph: var(--on-dark); }
[data-phase="2"] { --ph: var(--aqua); }
[data-phase="3"] { --ph: color-mix(in srgb, var(--blue) 78%, #fff); }
.svc-wall { display: flex; flex-wrap: wrap; align-items: baseline; gap: .14em 0; font-family: var(--display); font-weight: 500; font-size: clamp(26px, 3.25vw, 50px); line-height: 1.12; letter-spacing: -.02em; }
.svc-wall ul { display: contents; }
.svc-wall li { display: inline-flex; align-items: center; color: var(--ph); transition: opacity .5s var(--ease); }
.svc-wall li::after { content: ''; flex: none; width: .17em; height: .17em; margin: 0 .42em; border-radius: 50%; background: currentColor; opacity: .45; }
.svc-wall ul:last-child li:last-child::after { display: none; }
.svc-wrap:has(.svc-key[data-phase="1"][aria-pressed="true"]) .svc-wall ul:not([data-phase="1"]) li,
.svc-wrap:has(.svc-key[data-phase="2"][aria-pressed="true"]) .svc-wall ul:not([data-phase="2"]) li,
.svc-wrap:has(.svc-key[data-phase="3"][aria-pressed="true"]) .svc-wall ul:not([data-phase="3"]) li { opacity: .16; }
@media (hover: hover) {
  .svc-wrap:has(.svc-key[data-phase="1"]:hover) .svc-wall ul:not([data-phase="1"]) li,
  .svc-wrap:has(.svc-key[data-phase="2"]:hover) .svc-wall ul:not([data-phase="2"]) li,
  .svc-wrap:has(.svc-key[data-phase="3"]:hover) .svc-wall ul:not([data-phase="3"]) li { opacity: .16; }
}

.board { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.board-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 56px 44px; }
.board-copy .micro { display: block; margin-bottom: 20px; color: var(--sky); }
.board-copy .lead { margin-top: 20px; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 10px; padding: 40px 44px 48px 0; }
.kpis-head { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; padding: 4px 4px 6px; color: var(--on-dark-muted); }
.kpis-head b { font-weight: 500; color: var(--on-dark); }
.kpi-cell { display: flex; flex-direction: column; gap: 8px; padding: 26px 28px 30px; border-radius: 10px; background: var(--navy); }
.kpi-cell span { font-size: 14px; color: var(--on-dark-muted); }
.kpi-cell strong { font-family: var(--display); font-feature-settings: "tnum", "lnum"; font-weight: 500; font-size: clamp(40px, 4.4vw, 64px); line-height: .92; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi-cell span:last-child { color: var(--sky); }

.price { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.calc { gap: 22px; padding: 44px; }
.calc .row { align-items: center; gap: 16px; }
.calc label, .calc legend, .net span { font-weight: 600; }
.num { width: 130px; padding: 0 14px; font-family: var(--display); font-weight: 700; font-size: 20px; text-align: right; letter-spacing: -0.03em; }
.calc fieldset { margin: 0; padding: 0; border: 0; }
.calc legend { padding: 0; margin-bottom: 10px; }
.sums { gap: 10px; font-variant-numeric: tabular-nums; }
.sums span { color: var(--muted); }
.plan { gap: 20px; padding: 44px; }
.plan .micro { color: var(--sky); }
.plan .display { font-size: clamp(40px, 4.2vw, 60px); line-height: 1; }
.plan p:not(.display) { color: var(--on-dark-muted); }
.plan ul { display: flex; flex-direction: column; margin: 8px 0 0; padding: 0; list-style: none; }
.plan li { display: flex; align-items: baseline; gap: 16px; padding: 7px 0; font-weight: 600; }
.plan li .micro { color: var(--on-dark-muted); }
.plan .note { font-size: 13px; }

.faq-search { display: flex; flex-direction: column; gap: 8px; max-width: 360px; font-size: 14px; font-weight: 600; }
.site .faq-search .field { min-height: 52px; padding: 0 16px; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.06); color: var(--on-dark); font-size: 15px; }
.site .faq-search .field::placeholder { color: var(--on-dark-muted); }
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 72px; padding: 8px 44px 64px; }
.faq-list div { display: flex; flex-direction: column; gap: 8px; padding: 18px 0 22px; }
.faq-list b { font-size: 19px; font-weight: 650; line-height: 1.3; }
.faq-list span { max-width: 58ch; color: var(--on-dark-muted); }
.faq-empty { padding: 8px 44px 64px; color: var(--on-dark-muted); }

.closing { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: var(--mint); color: var(--ink); }
.closing > div { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: 64px 44px; }
.closing h2 { font-size: clamp(52px, 7.4vw, 124px); line-height: .9; letter-spacing: -.05em; }
.closing h2 span { display: block; }
.closing p { max-width: 30ch; font-size: 18px; color: #1B3550; }
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; padding: 26px 44px 32px; color: var(--on-dark-muted); font-size: 14px; }
.footer .logo { --logo-h: 24px; }
.site .footer a { color: inherit; }

/* the parts come into place as they enter the screen; without scripts or with reduced motion they are simply there */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .arrow, .moment, .moment i, .svc-key, .svc-wall li { transition: none; }
}

@media (max-width: 1020px) {
  .sitebar-tag, .sitebar-nav { display: none; }
  .sitebar-cta { margin-left: auto; border-left: 0; }
  .sitebar-cta > a:not(.btn) { display: none; }
  .nav-toggle { display: block; }
  .sitebar > * { padding: 0 20px; }
  .sitebar .logo { --logo-h: 26px; }
  .sitebar-cta { padding: 0 12px 0 0; }
  /* phone menu: a night-blue sheet under the bar, the links rise one after the other */
  .menu { position: fixed; inset: 69px 0 0; z-index: 29; display: flex; flex-direction: column; padding: 12px 20px 40px; background: var(--navy); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; }
  .menu.open { opacity: 1; visibility: visible; }
  .site .menu a { padding: 14px 0; font-family: var(--display); font-weight: 500; font-size: 34px; line-height: 1.1; letter-spacing: -.02em; color: var(--on-dark); text-decoration: none; opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 60ms + 60ms); }
  .site .menu.open a { opacity: 1; transform: none; }
  .first { min-height: 0; }
  .sec-head, .board, .price, .closing { grid-template-columns: minmax(0, 1fr); }
  .spec { min-height: 660px; padding: 22px 20px; }
  .spec-ctl { flex-wrap: wrap; }
  .spec-ctl label { margin-left: 0; }
  .spec-ctl .btn { flex: 1 1 100%; margin-left: 0; }
  .moments { grid-template-columns: minmax(0, 1fr); }
  .moments > * { min-height: 68px; padding: 14px 16px; }
  .moments > :first-child { padding-left: 16px; }
  .sec-head > *, .board-copy { padding: 40px 20px; }
  .sec-head > :last-child { padding-top: 0; }
  .svc-wrap { padding: 0 20px 56px; }
  .kpis { padding: 0 20px 44px; }
  .kpi-cell { padding-left: 20px; padding-right: 20px; }
  .calc, .plan { padding: 32px 20px; }
  .faq-list { padding: 0 20px 48px; }
  .faq-empty { padding: 0 20px 48px; }
  .closing > div { padding: 44px 20px; gap: 32px; }
  .closing > div:last-child { padding-top: 0; }
  .footer { padding: 24px 20px 30px; }
}
@media (max-width: 620px) {
  .faq-list { grid-template-columns: minmax(0, 1fr); }
  .spec-ctl { flex-wrap: wrap; row-gap: 10px; }
  .spec-ctl input[type="range"] { flex: 1 1 140px; }
  .spec-foot h2 { font-size: 24px; }
  .btn.go { min-width: 0; width: 100%; }
  .kpi-cell { padding: 20px 16px 24px; }
  .kpi-cell strong { font-size: 32px; }
}
@media (max-width: 1020px) and (prefers-reduced-motion: reduce) {
  .menu, .site .menu a { transition: none; }
}

/* race page (gara.html) */
.gara { max-width: 480px; margin: 0 auto; font-size: 15px; line-height: 1.5; background: var(--paper); }
.gara-hero { position: relative; overflow: hidden; gap: 12px; padding: 28px 20px 26px; }
.gara-hero::before { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, var(--glow, rgba(42,123,234,.5)), transparent 70%); }
.gara-hero > * { position: relative; }
.gara-hero .where { font-size: 13px; font-weight: 600; color: var(--head-soft, #9DB0FF); }
.gara-hero h1 { font-size: 52px; }
.gara-hero .when { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; font-weight: 600; color: var(--head-soft, #C5CCDA); }
.gara-body { gap: 16px; padding: 20px; }
.gara-body .title { font-size: 14px; font-weight: 600; }
.quotes { gap: 8px; margin-top: 4px; }
.quote { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; border: 0; border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--ink); text-align: left; cursor: pointer; }
.quote[aria-pressed="true"] { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent); }
.quote b { font-weight: 650; }
.quote small { font-size: 13px; color: var(--muted-2); }
.quote .display { font-size: 26px; line-height: 1; }
.quote .places { font-weight: 600; color: var(--accent-ink); }
.quote.full .places { color: var(--muted); }
.quote:disabled { opacity: .55; cursor: not-allowed; }
.box { gap: 10px; padding: 16px; border-radius: 10px; background: var(--surface); }
.box label, .box .lbl { font-size: 13px; font-weight: 600; color: var(--muted); }
.upload { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1.5px dashed var(--border); border-radius: 6px; background: var(--paper); font-weight: 600; color: var(--muted); cursor: pointer; }
.upload:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.sizes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.sizes button { min-height: 44px; border: 0; border-radius: 6px; background: var(--mist); color: var(--muted); font-weight: 650; cursor: pointer; }
.sizes button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.bill { gap: 8px; font-variant-numeric: tabular-nums; }
.bill span { color: var(--muted); }
.bill .row:last-child { padding-top: 8px; border-top: 1px solid var(--line); }
.bill .row:last-child b:last-child { font-size: 18px; }
.gara .btn { min-height: 52px; }
.btn.black { background: var(--ink); color: #fff; }
.gara .fine { font-size: 13px; color: var(--muted-2); text-align: center; }
.gara-body .title { color: var(--accent-ink); }
.gara-intro { margin: 20px 20px 0; padding: 16px 18px; border-radius: 10px; background: var(--accent-soft); color: var(--ink); white-space: pre-line; }
.terms summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.terms-text { margin-top: 6px; max-height: 240px; overflow: auto; padding: 10px 12px; border-radius: 6px; background: var(--paper); font-size: 13px; white-space: pre-line; }

/* public pages (race, athlete's area, parent's consent): the race's colors and cover photo around the column */
body.pub { min-height: 100dvh; background: radial-gradient(circle at 85% 0, var(--glow, rgba(42,123,234,.5)), transparent 55%),
  linear-gradient(color-mix(in srgb, var(--night) 62%, transparent), color-mix(in srgb, var(--night) 62%, transparent)), var(--cover, none) center / cover fixed, var(--night); }
.gara-hero.cover { min-height: 280px; justify-content: flex-end; background: linear-gradient(180deg, rgba(0,0,0,.08) 0, color-mix(in srgb, var(--night) 72%, transparent) 62%, var(--night) 100%), var(--cover) center / cover; }
.gara-hero.cover::before { display: none; }
@media (min-width: 720px) {
  body.pub { padding: 48px 16px; }
  .pub .gara { max-width: 540px; border-radius: 10px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0,0,0,.65); }
  .pub .gara-hero { padding: 36px 28px 30px; }
  .pub .gara-hero h1 { font-size: 60px; }
  .pub .gara-hero.cover { min-height: 340px; }
}

/* organizer panel (pannello-*.html) */
.panel { display: flex; min-height: 100dvh; font-size: 15px; line-height: 1.5; }
.side { flex: 0 0 232px; position: sticky; top: 0; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 18px; padding: 18px 12px; background: var(--navy); color: var(--on-dark); --logo-h: 20px; }
.side > * { flex-shrink: 0; } /* short or zoomed windows: the sidebar scrolls instead of squeezing the menu */
.side > .side-fill { flex-shrink: 1; }
.side-fill { flex: 1 1 auto; min-height: 0; display: flex; align-items: flex-end; justify-content: center; container-type: size; }
.decor { display: block; width: 100%; max-width: 200px; height: auto; }
@container (max-height: 130px) { .decor { display: none; } } /* no room: no drawing rather than a cut one */
.side .logo { padding: 8px 6px; }
.side-top { display: flex; align-items: center; gap: 2px; padding-left: 6px; }
.side-top .logo { flex: none; padding-left: 6px; --logo-h: 44px; }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--aqua); color: var(--aqua-ink); font: 700 14px/1 Geist, system-ui, sans-serif; cursor: pointer; transition: box-shadow .4s var(--ease); }
.avatar:hover, .avatar[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(47,214,181,.35); }
.profile-menu { position: fixed; z-index: 50; color: var(--ink); width: 270px; max-width: calc(100vw - 16px); display: flex; flex-direction: column; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(14,19,34,.16); }
.profile-menu[hidden] { display: none; }
.pm-head { display: flex; flex-direction: column; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; line-height: 1.35; }
.pm-head span, .pm-acc span { font-size: 13px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; }
.pm-list:not(:empty) { display: flex; flex-direction: column; padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.pm-label { padding: 4px 10px; font-size: 12px; font-weight: 600; color: var(--muted-2); text-transform: uppercase; letter-spacing: .04em; }
.pm-item { display: flex; align-items: center; min-height: 40px; padding: 6px 10px; border: 0; border-radius: 4px; background: none; color: var(--ink); font: inherit; font-size: 15px; text-align: left; text-decoration: none; cursor: pointer; }
.pm-item:hover, .pm-item:focus-visible { background: var(--mist); }
.pm-acc { flex-direction: column; align-items: flex-start; line-height: 1.3; }
.pm-acc b { font-weight: 600; }
.event-box { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--hair); }
.event-box span { font-size: 12px; color: var(--on-dark-muted); }
.event-box b { font-weight: 650; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 6px; color: var(--on-dark-muted); font-weight: 500; text-decoration: none; white-space: nowrap; transition: background .4s var(--ease), color .4s var(--ease); }
.side-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.side-nav a[aria-current="page"] { background: rgba(47,214,181,.16); color: var(--aqua); font-weight: 650; }
.side-nav a.locked { color: var(--on-dark-muted); cursor: not-allowed; opacity: .6; }
.side-nav a.locked:hover { background: transparent; color: var(--on-dark-muted); }
.locked-note { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; max-width: min(92vw, 420px); padding: 12px 18px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: 0 12px 32px -10px rgba(14,19,34,.5); }
.locked-note[hidden] { display: none; }
.side-nav small { padding: 1px 8px; border-radius: 6px; background: var(--aqua); color: var(--aqua-ink); font-size: 12px; font-weight: 700; }

.pmain { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 16px 28px; background: var(--surface); color: var(--muted-2); }
.topbar b { color: var(--ink); }
.topbar > .small { font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pbody { display: flex; flex-direction: column; gap: 18px; padding: 28px; }
.pbody.split { flex-direction: row; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.pbody.split > :first-child { flex: 999 1 600px; min-width: 0; }
.pbody.split > :last-child { flex: 1 1 340px; min-width: 0; }
.ptitle h1 { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: .95; letter-spacing: -0.03em; }
.ptitle p { margin-top: 6px; max-width: 64ch; color: var(--muted); }
.cols { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.cols > * { flex: 1 1 340px; min-width: 0; }
.cols > .wide { flex: 2 1 520px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 16px; }
.pcard { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.pcard.focus { box-shadow: 0 0 0 2px var(--accent); }
.pcard.tight { gap: 4px; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.head-row > b, .pcard > b { font-weight: 650; }
.small { font-size: 13px; color: var(--muted-2); }
.head-row > .small { font-size: 14px; }
.desc { font-size: 14px; color: var(--muted); }
.big { font-family: var(--display); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.list-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-row > span:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.list-row b { font-weight: 600; }
.tnum { font-variant-numeric: tabular-nums; }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.tag.warn { background: #FFF0D6; color: #8A5300; }
.tag.bad { background: #FDE7E5; color: #B42318; }
.tag.off { background: var(--mist); color: var(--muted-2); }

.pbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 14px; border: 0; border-radius: 6px; background: var(--mist); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .4s var(--ease), filter .4s var(--ease); }
.pbtn:hover { color: var(--ink); filter: brightness(.96); }
.pbtn:active { transform: scale(.98); }
.pbtn.primary { background: var(--ink); color: #fff; }
.pbtn.green { background: #0B6B3A; color: #fff; }
.pbtn.primary:hover, .pbtn.green:hover { color: #fff; filter: brightness(1.1); }
.pbtn.white { background: var(--surface); }
.pbtn.line { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.pbtn.dashed { background: transparent; border: 1.5px dashed var(--border); }
.pbtn.danger { color: #B42318; }
.pbtn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.pbtn.lg { min-height: 44px; padding: 0 18px; font-size: 15px; }
.pbtn.block { width: 100%; min-height: 44px; font-size: 15px; white-space: normal; }
.pbtn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.linkbtn { padding: 0; border: 0; background: none; font-weight: 600; color: var(--accent-ink); text-decoration: underline; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 36px; padding: 0 14px; border: 0; border-radius: 6px; background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.chip span { opacity: .7; font-weight: 500; }
.opt { min-height: 36px; padding: 0 12px; border: 0; border-radius: 6px; background: var(--mist); color: var(--muted); font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; }
.opt[aria-checked="true"], .opt[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-ink); }
.opt.round { min-height: 32px; padding: 0 10px; border-radius: 6px; }
.opt.q { min-height: 28px; padding: 0 10px; border-radius: 6px; font-size: 12px; font-weight: 650; }
.opt.q[aria-pressed="false"] { color: var(--muted-2); text-decoration: line-through; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 6px; background: var(--mist); }
.seg button { min-height: 34px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--muted-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.seg [aria-pressed="true"], .seg [aria-selected="true"] { background: var(--surface); color: var(--ink); }
.seg .strong[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg button:disabled { opacity: .4; cursor: not-allowed; }
.switch { position: relative; flex: none; width: 44px; height: 26px; padding: 0; border: 0; border-radius: 999px; background: var(--border); cursor: pointer; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .4s var(--ease); }
.switch[aria-checked="true"], [aria-checked="true"] > .switch { background: var(--accent); }
.switch[aria-checked="true"]::after, [aria-checked="true"] > .switch::after { transform: translateX(18px); }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; text-align: left; cursor: pointer; }
.switch-row > span:first-child { display: flex; flex-direction: column; }
.switch-row b { font-weight: 600; }
.switch-row.sub { padding-left: 16px; }

.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; align-items: end; }
.fcol { display: flex; flex-direction: column; gap: 6px; }
.fcol > label, .flabel { font-size: 14px; font-weight: 600; }
.lab { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.mono { font-family: var(--mono); }
.field.mono { font-family: var(--mono); font-size: 15px; }
textarea.field { padding: 10px 12px; line-height: 1.5; resize: vertical; }
.field:disabled { background: var(--mist); }
.msg { font-size: 13px; font-weight: 600; color: #B42318; }
.msg.ok { color: #0B6B3A; }
.msg.info { color: var(--muted); }
.msg:empty { display: none; }
.banner { padding: 12px 14px; border-radius: 6px; background: #DCF2E5; color: #0B6B3A; font-weight: 600; }
.confirm { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 10px; background: #FFF0D6; }
.confirm.blue { background: var(--accent-soft); }

.ptable { position: relative; overflow-x: auto; border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.ptable table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.ptable th { padding: 12px 10px; text-align: left; font-size: 13px; font-weight: 600; color: var(--muted-2); }
.ptable td { padding: 10px; vertical-align: top; }
.ptable :is(th, td):first-child { padding-left: 16px; }
.ptable :is(th, td):last-child { padding-right: 16px; }
.ptable tbody tr { border-top: 1px solid var(--line); }
.ptable tr > :first-child { padding-left: 14px; }
.ptable tr > :last-child { padding-right: 14px; }
.ptable .r { text-align: right; white-space: nowrap; }
.leave-dialog { border: 0; border-radius: 10px; padding: 26px; max-width: min(440px, calc(100vw - 32px)); box-shadow: 0 24px 70px rgba(14,19,34,.3); color: var(--ink); }
.leave-dialog[open] { display: flex; flex-direction: column; gap: 10px; }
.leave-dialog::backdrop { background: rgba(10,14,26,.5); }
.leave-dialog h2 { margin: 0; font-size: 22px; line-height: 1.2; }
.leave-dialog p { margin: 0; color: var(--muted); }
.leave-dialog .actions { margin-top: 8px; }
.qr-dialog { border: 0; border-radius: 10px; padding: 20px; max-width: min(360px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(14,19,34,.25); }
.qr-dialog[open] { display: flex; flex-direction: column; gap: 12px; }
.qr-dialog::backdrop { background: rgba(10,14,26,.45); }
.qr-dialog img { width: 100%; height: auto; image-rendering: pixelated; border: 1px solid var(--line); border-radius: 6px; }
.qr-dialog .mono { word-break: break-all; }
.cookie-bar { --accent: #0A7C6A; --accent-ink: #086354; --on-accent: #fff; position: fixed; z-index: 40; left: 12px; right: 12px; bottom: 12px; max-width: 560px; max-height: calc(100dvh - 24px); overflow-y: auto; margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; border-radius: 10px; background: var(--surface); color: var(--ink); box-shadow: 0 12px 40px rgba(14,19,34,.28); font-size: 14px; line-height: 1.45; }
.cookie-bar p { margin: 0; }
.site .cookie-bar a { color: #086354; }
.cookie-bar p:first-of-type { padding-right: 24px; }
.cookie-x { position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
.cookie-x:hover { background: var(--mist); }
.src-url { display: block; overflow-wrap: anywhere; color: var(--muted-2); }
.ptable.roomy td { padding-top: 12px; padding-bottom: 12px; }
.ptable tr.sel { background: var(--accent-soft); }
.meter { display: block; height: 6px; border-radius: 2px; background: var(--mist); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--accent); }

/* panoramica */
.toggles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.tcard { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px; border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.tcard.open { box-shadow: 0 0 0 2px var(--accent); }
.tcard-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.tcard-row > span { display: flex; flex-direction: column; min-width: 0; }
.tcard-row b { font-weight: 650; }
.kgroup { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .06em; color: var(--muted); }
.kgroup span { width: 18px; height: 4px; border-radius: 2px; }
.kgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.kpi { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.kpi > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi > div > span:first-child { font-size: 13px; color: var(--muted); }
.kpi > div > span:last-child { font-size: 13px; font-weight: 600; }
.kpi strong { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kpi svg { flex: 0 1 112px; min-width: 64px; height: auto; overflow: visible; }
/* impeccable-disable-next-line repeating-stripes-gradient -- the chart's horizontal gridlines, data not decoration */
.wchart { position: relative; display: flex; gap: 8px; align-items: flex-end; height: 240px; padding: 26px 0 0 36px; border-bottom: 1px solid var(--border); background: repeating-linear-gradient(to top, var(--line) 0 1px, transparent 1px 42.8px); }
.wchart-y { position: absolute; left: 0; top: 18px; bottom: 0; display: flex; flex-direction: column; justify-content: space-between; font-size: 12px; color: var(--muted-2); }
.wchart > div:not(.wchart-y) { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; font-size: 12px; font-weight: 650; }
.wchart .bar { width: 70%; max-width: 26px; border-radius: 4px 4px 0 0; }
.wchart-x { display: flex; gap: 8px; padding-left: 36px; font-size: 12px; color: var(--muted-2); }
.wchart-x span { flex: 1; text-align: center; }
.tip { background: var(--accent-soft); box-shadow: none; gap: 10px; }
.tip > b { color: var(--accent-ink); }
.todo { display: flex; gap: 8px; align-items: flex-start; border-bottom: 1px solid var(--line); }
.todo label { flex: 1; display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.todo input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.todo.done label { color: var(--muted-2); text-decoration: line-through; }
.x { flex: none; width: 32px; height: 32px; margin-top: 4px; border: 0; border-radius: 4px; background: none; color: var(--muted-2); font-size: 18px; line-height: 1; cursor: pointer; }
.x:hover { background: var(--mist); }

/* iscritti */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.search { flex: 1 1 220px; max-width: 320px; min-height: 40px; padding: 0 16px; border-radius: 6px; font-size: 14px; }
.bib { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; min-height: 30px; padding: 0 8px; border: 0; border-radius: 6px; background: var(--ink); color: #fff; font-family: var(--mono); font-weight: 600; font-size: 14px; cursor: pointer; }
.bib.done { background: #0B6B3A; }
.picked { font-size: 12px; font-weight: 650; color: #0B6B3A; }
.pop { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 6px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.athlete { display: flex; flex-direction: column; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.athlete b { font-weight: 600; white-space: nowrap; }
.athlete span { font-size: 12px; color: var(--muted-2); }
.sheet { display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -36px rgba(14,19,34,.5); }
.sheet.focus { gap: 12px; box-shadow: 0 0 0 2px var(--accent), 0 30px 60px -36px rgba(14,19,34,.5); }
.sheet h2 { font-family: var(--display); font-weight: 700; font-size: 32px; line-height: .95; letter-spacing: -0.03em; }
.sheet.focus h2 { font-size: 28px; }
.sheet label { font-size: 13px; font-weight: 600; }
.close { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 0; border-radius: 6px; background: var(--mist); cursor: pointer; }
.bib-tag { white-space: nowrap; padding: 4px 10px; border-radius: 6px; background: var(--ink); color: #fff; font-family: var(--mono); font-weight: 600; }
.facts { margin: 0; display: flex; flex-direction: column; font-size: 14px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted-2); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
.done-pill { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 6px; background: #DCF2E5; color: #0B6B3A; font-weight: 600; text-align: center; }
.doc { margin: 0; display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 6px; background: #FAFBF8; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; }
.doc figcaption, .doc > span { font-size: 12px; color: var(--muted-2); }
.doc > div { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 4px; background: var(--surface); box-shadow: 0 1px 3px rgba(14,19,34,.15); }

/* modulo, quote */
.fold.pcard { display: block; }
.fold > summary { display: flex; align-items: center; gap: 12px; list-style: none; cursor: pointer; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary > b { font-weight: 650; }
.fold > summary > .small { margin-left: auto; font-size: 14px; }
/* impeccable-disable-next-line side-tab -- two borders of a square rotated 45deg: the disclosure chevron, not a card edge */
.fold > summary::after { content: ''; flex: none; width: 9px; height: 9px; margin: 0 4px 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.fold[open] > summary::after { margin-bottom: -4px; transform: rotate(-135deg); }
.fold > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.fold > div { margin-top: 12px; }
.frow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.frow b { font-weight: 600; }
.phone { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 26px; background: var(--surface); box-shadow: 0 0 0 8px var(--mist), 0 0 0 9px var(--line); }
.pf-label { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pf-label span { font-weight: 500; color: var(--muted-2); }
.pf-box { height: 34px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line); }
.qrow { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 18px 20px; border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.qrow > div:first-child { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.qrow > div:first-child b { font-size: 17px; font-weight: 650; }
.qcount { display: flex; flex-direction: column; align-items: flex-end; }
.qcount strong { font-size: 32px; }
.places-in { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.places-in .field { width: 120px; min-height: 32px; padding: 4px 8px; text-align: right; font-size: 13px; }
.tiers { flex: 3 1 420px; min-width: 0; display: flex; gap: 6px; }
.tier { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border: 0; border-radius: 6px; background: var(--mist); color: var(--muted-2); font-size: 12px; text-align: left; cursor: pointer; }
.tier b { font-size: 18px; font-variant-numeric: tabular-nums; }
.tier.past b { text-decoration: line-through; }
.tier.now { background: var(--accent); color: #fff; }
.tier.editing { box-shadow: 0 0 0 3px var(--coral); }
.tier u { font-size: 11px; opacity: .8; }

/* comunicazioni, incassi, statistiche */
.reach { display: flex; align-items: baseline; gap: 10px; padding: 14px 16px; border-radius: 10px; background: var(--accent-soft); }
.reach strong { font-size: 34px; color: var(--accent-ink); }
.token { min-height: 30px; padding: 0 10px; border: 0; border-radius: 6px; background: var(--mist); font-family: var(--mono); font-size: 12px; color: var(--muted); cursor: pointer; }
.mail-head { display: flex; flex-direction: column; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted-2); }
.mail-head b { font-size: 16px; color: var(--ink); }
.mail-body { white-space: pre-line; }
mark { background: var(--accent-soft); padding: 0 2px; }
.ledger > div:not(.net) { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ledger > .fee { padding-left: 16px; color: var(--muted-2); }
.ledger b { white-space: nowrap; }
.net.ink { margin-top: -1px; padding-top: 20px; border-top: 2px solid var(--ink); }
.net.ink strong { font-size: 56px; color: var(--ink); }
.iban { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 6px; background: var(--mist); }
.iban span:last-child { font-family: var(--mono); }
.dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; height: 190px; }
.dow > div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; font-size: 12px; }
.dow i { display: block; width: 100%; max-width: 38px; border-radius: 8px 8px 3px 3px; }
.dow span { color: var(--muted-2); }
.hbar { display: grid; grid-template-columns: 120px minmax(0, 1fr) 56px; gap: 10px; align-items: center; font-size: 14px; }
.hbar i { display: block; height: 12px; border-radius: 2px; background: var(--accent); }
.hbar span:last-child { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.ages { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; align-items: end; height: 170px; }
.ages > div { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; height: 100%; }
.ages > div > div { display: flex; gap: 2px; align-items: flex-end; height: 140px; }
.ages i { flex: 1; border-radius: 4px 4px 2px 2px; }
.ages span { font-size: 11px; color: var(--muted-2); text-align: center; }
.initials { display: grid; font-style: normal; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 6px; background: var(--mist); font-size: 12px; font-weight: 700; color: var(--muted); }

@media (max-width: 860px) {
  .panel { flex-direction: column; }
  .side { position: static; height: auto; flex: none; gap: 12px; }
  .side-nav { flex-direction: row; overflow-x: auto; }
  .side-fill { display: none; }
  .topbar, .pbody { padding-left: 16px; padding-right: 16px; }
  .pbody { padding-top: 20px; }
  .hbar { grid-template-columns: 96px minmax(0, 1fr) 52px; }
}

/* panel, live data */
.event-box label { font-size: 12px; color: var(--on-dark-muted); }
.event-pick { width: 100%; padding: 0; border: 0; background: transparent; color: var(--on-dark); font-weight: 650; cursor: pointer; }
.event-pick option { color: var(--ink); }
.event-box .demo-note { margin-top: 6px; color: #F4C56A; line-height: 1.4; }
.empty { padding: 18px; border-radius: 10px; background: var(--mist); color: var(--muted); }
.row-actions { display: inline-flex; justify-content: flex-end; flex-wrap: nowrap; gap: 6px; }
.copy { font-family: var(--mono); font-size: 12px; word-break: break-all; color: var(--muted); }
.doc iframe { width: 100%; height: 360px; border: 0; border-radius: 4px; background: var(--surface); }
.errors { margin: 0; padding-left: 18px; max-height: 220px; overflow: auto; font-size: 13px; color: #B42318; }
input[type="file"].field { padding: 9px 12px; }

/* account pages and public pages built on the API */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 40px 16px; color: var(--on-dark); background: radial-gradient(900px 600px at 90% -10%, rgba(42,123,234,.3), transparent 62%), radial-gradient(700px 520px at 0% 100%, rgba(47,214,181,.14), transparent 60%), var(--navy); }
.auth-card { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: 10px; background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 40px 80px -44px rgba(0,0,0,.8); --logo-h: 30px; }
.auth-card .logo { align-self: flex-start; --logo-h: 60px; }
.auth-card h1 { font-family: var(--display); font-weight: 500; font-size: 32px; line-height: 1; letter-spacing: -.02em; }
.auth-card label, .auth-card .lbl-like { font-size: 14px; font-weight: 600; }
.page { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; display: flex; flex-direction: column; gap: 16px; }
.page h1 { font-family: var(--display); font-weight: 500; font-size: clamp(36px, 6vw, 52px); line-height: .98; letter-spacing: -.02em; }

/* race logo on public pages: on a white badge so dark and light logos both show */
.logo-badge { align-self: flex-start; display: grid; place-items: center; min-width: 88px; min-height: 88px; padding: 12px 16px; border-radius: 10px; background: var(--surface); box-shadow: 0 10px 30px -12px rgba(0,0,0,.45); }
.logo-badge img { display: block; max-width: 220px; max-height: 96px; object-fit: contain; }
.upl { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 14px; border-radius: 10px; background: var(--mist); }
.upl .small { flex: 1; }
.upl .pbtn { background: var(--surface); }
.colors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.colors label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.colors input { width: 100%; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; cursor: pointer; }
.cat-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 64px 64px 32px; gap: 6px; align-items: end; }
.cat-row .field { min-height: 38px; padding: 0 8px; font-size: 14px; }
.cat-row.years { grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr) 72px 72px 32px; }

/* tutti gli eventi: one card per race, in the race's own colors */
.evgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.evcard { display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 24px 48px -36px rgba(14,19,34,.45); transition: transform .15s ease, box-shadow .15s ease; }
.evcard:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line), 0 30px 56px -34px rgba(14,19,34,.55); }
.evhead { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 168px; padding: 16px 18px 18px; background: radial-gradient(circle at 100% 0, var(--glow, rgba(42,123,234,.5)), transparent 60%), var(--night); color: var(--on-dark); }
.evhead.cover { background: linear-gradient(180deg, rgba(0,0,0,.1), color-mix(in srgb, var(--night) 82%, transparent) 75%), var(--cover) center / cover, var(--night); }
.evhead .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: auto; }
.evhead .logo-badge { min-width: 48px; min-height: 48px; padding: 6px 8px; border-radius: 6px; }
.evhead .logo-badge img { max-width: 110px; max-height: 40px; }
.evhead h3 { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1; letter-spacing: -0.03em; }
.evhead .sub { font-size: 13px; font-weight: 600; color: var(--head-soft, #C5CCDA); }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 11px; border-radius: 6px; background: rgba(255,255,255,.16); color: inherit; font-size: 12px; font-weight: 700; white-space: nowrap; backdrop-filter: blur(6px); }
.pill.now { background: var(--aqua); color: var(--aqua-ink); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: #3DDC84; }
.pill.shut i { background: #9AA3B5; }
.evbody { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px 18px; flex: 1; }
.evbig { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.evbig strong { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: .9; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.evstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.evstats div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 6px; background: var(--mist); min-width: 0; }
.evstats dt { font-size: 12px; color: var(--muted-2); }
.evstats dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.evbar { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.evbar > span { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); }
.evfoot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.evfoot .pbtn.primary { background: var(--accent); color: var(--on-accent, #fff); }
.evcard.past .evhead { filter: saturate(.55); }

/* privacy notice, and the link to it at the bottom of every page */
.privacy-foot { margin: 0; padding: 18px 20px; font-size: 13px; text-align: center; color: var(--muted-2); }
.privacy-foot a { color: inherit; }
.auth-card .privacy-foot { padding: 0; }
.legal { max-width: 800px; margin: 0 auto; padding: 32px 20px 72px; font-size: 16px; line-height: 1.6; }
.legal > .logo { margin-bottom: 4px; --logo-h: 56px; }
.legal h1 { margin: 28px 0 4px; font-family: var(--display); font-weight: 500; font-size: clamp(34px, 7vw, 48px); line-height: 1.05; letter-spacing: -.02em; }
.legal h2 { margin: 44px 0 10px; font-family: var(--display); font-weight: 500; font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; scroll-margin-top: 16px; }
.legal h3 { margin: 22px 0 4px; font-size: 16px; font-weight: 650; }
.legal p { margin: 10px 0; }
.legal ul { margin: 10px 0; padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal mark { padding: 1px 5px; border-radius: 5px; background: #FFF0D6; color: #8A5300; font-weight: 600; }
.legal code { font-family: var(--mono); font-size: 13px; }
.legal-table { overflow-x: auto; margin: 14px 0; border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.legal-table table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.legal-table th { padding: 10px 12px; text-align: left; font-size: 13px; font-weight: 600; color: var(--muted-2); }
.legal-table td { padding: 10px 12px; vertical-align: top; border-top: 1px solid var(--line); }
.legal-table :is(th, td):first-child { padding-left: 16px; }
.legal-table :is(th, td):last-child { padding-right: 16px; }
label.terms-box { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; font-weight: 400; line-height: 1.4; }
.terms-box input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; }

/* the line an organizer can write under a form field: closed until clicked */
.helpbox > summary { display: inline-block; list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.helpbox > summary::-webkit-details-marker { display: none; }
.helpbox > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.helpbox[open] > summary { margin-bottom: 6px; }
.helpbox > .field { display: block; width: 100%; }

/* the organizer's own diploma: every element is placed on the sheet in percentages, sizes in cqw (a share of the sheet's width) */
.dd { position: absolute; box-sizing: border-box; transform-origin: center; overflow-wrap: anywhere; white-space: pre-wrap; }
.dd-empty { display: grid; place-items: center; border: 1px dashed #98a2b3; background: rgba(152, 162, 179, .12); color: #667085; font-size: 3cqw; text-align: center; }

.verify-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 20px; background: #FFF0D6; color: #8A5300; font-size: 14px; font-weight: 600; }
.verify-bar.ok { background: #DCF2E5; color: #0B6B3A; }

/* email graphics editor (emaildesign.js) */
.md-wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.md-left { flex: 1 1 360px; max-width: 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.md-right { flex: 1 1 340px; min-width: 0; }
@media (min-width: 1100px) { .md-right { position: sticky; top: 12px; } }
.md-prev { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 10px; background: var(--mist); }
.md-prev-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.md-frame { width: 100%; height: min(72vh, 760px); border: 0; border-radius: 6px; background: var(--surface); }
.md-frame[hidden] { display: none; }
.md-empty { margin: 0; padding: 40px 12px; text-align: center; color: var(--muted); }
.md-empty[hidden] { display: none; }
.md-blocks { display: flex; flex-direction: column; gap: 8px; }
.md-block { border-radius: 10px; box-shadow: 0 0 0 1px var(--line); background: var(--surface); }
.md-block.on { box-shadow: 0 0 0 2px var(--accent); }
.md-bhead { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; }
.md-btitle { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; min-height: 40px; padding: 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; color: var(--ink); }
.md-btitle .mut { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-bbtn { display: flex; gap: 4px; }
.md-fields { padding: 4px 14px 16px; }
.md-fields .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.md-fields label.lab, .md-fields .lab { gap: 4px; font-size: 13px; min-width: 0; }
.md-fields .field { width: 100%; min-width: 0; }
.md-color { display: flex; align-items: center; gap: 8px; }
.md-color input[type="color"] { flex: 1; min-width: 44px; min-height: 38px; padding: 2px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); }
.md-thumb { max-width: 100%; max-height: 140px; align-self: flex-start; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
.mdlg { border: 0; border-radius: 10px; padding: 0; width: min(1120px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); box-shadow: 0 24px 80px rgba(14,19,34,.35); }
.mdlg::backdrop { background: rgba(10,14,26,.5); }
.mdlg-in { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.mdlg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mdlg-head h2 { margin: 0; font-size: 22px; }
.mdlg-body { overflow: auto; max-height: calc(100dvh - 150px); }

/* shared with the Grafica page */
.tpls { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.tpl { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 0; border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-weight: 600; font-size: 13px; text-align: center; cursor: pointer; }
.tpl:hover { box-shadow: 0 0 0 2px var(--accent); }
.props { display: flex; flex-direction: column; gap: 10px; }
.props .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.props .row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 10px; }
.props label.lab, .props .lab { gap: 4px; font-size: 13px; min-width: 0; }
.props .field { width: 100%; min-width: 0; }
.props .row2 > *, .props .row3 > * { min-width: 0; }
.props input[type="color"] { width: 100%; min-height: 38px; padding: 2px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); }
.props input[type="range"] { width: 100%; }
.addbar { display: flex; flex-wrap: wrap; gap: 8px; }
.savebar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mut { color: var(--muted); font-size: 14px; }

@media (max-width: 560px) {
  .mdlg { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 10px; }
  .mdlg-in { padding: 14px; gap: 10px; }
  .mdlg-head h2 { font-size: 18px; }
  .mdlg .pcard { padding: 14px; }
  .md-color input[type="color"] { min-height: 34px; }
  .md-frame { height: 420px; }
  .md-fields .row2, .mdlg .props .row2 { grid-template-columns: 1fr; }
}

@media (hover: hover) and (pointer: fine) { .phone-only { display: none !important; } }

/* ===== organizer panel in the shadcn/ui style =====
   shadcn's dashboard language (Geist, 8 to 12px radii, 36px controls, quiet secondary buttons, a dark primary) in the home's colours:
   cool greys tinted toward the night blue, a night-blue sidebar and primary, the aqua as the one light.
   Surfaces part by tone and soft shadow, never by 1px lines (user requirement). Only fields keep a border, so you can see where to type.
   Everything is scoped to the panel (and its menus and dialogs): public pages keep their own look. */
.panel, .profile-menu, .leave-dialog, .qr-dialog, .mdlg, .locked-note {
  --sc-card: #FFFFFF;
  --sc-ground: #F2F5F9;
  --sc-soft: #F8FAFC;
  --sc-hover: #E6EBF2;
  --sc-primary: #0A1A36;
  --sc-primary-hover: #17294C;
  --sc-input: #CBD3DF;
  --sc-night: #061836;
  --sc-night-2: #0B2348;
  --sc-night-3: #133262;
  --sc-on-night: #F1F5FB;
  --sc-on-night-muted: #A9B8D3;
  --sc-ring: rgba(10, 124, 106, .22);
  --sc-danger: #DC2626;
  /* every raised surface carries a 1px neutral outline on top of its soft shadow */
  --sc-edge: 0 0 0 1px rgba(0, 0, 0, .13);
  --sc-shadow-xs: var(--sc-edge), 0 1px 2px rgba(0, 0, 0, .06);
  --sc-shadow-sm: var(--sc-edge), 0 1px 3px rgba(0, 0, 0, .07), 0 1px 2px -1px rgba(0, 0, 0, .07);
  --sc-shadow-md: var(--sc-edge), 0 2px 6px -1px rgba(0, 0, 0, .09), 0 1px 3px rgba(0, 0, 0, .07);
  --sc-shadow-lg: var(--sc-edge), 0 16px 40px -8px rgba(0, 0, 0, .2), 0 4px 10px -4px rgba(0, 0, 0, .1);
  /* the panel's existing tokens on the same cool scale: every older rule inherits them */
  --ink: #0A1A36;
  --muted: #45526A;
  --muted-2: #5A667E;
  --mist: #EEF2F7;
  --paper: #F2F5F9;
  --line: #DDE3EC;
  --border: #8B97AB;
  --display: Geist, system-ui, sans-serif;
}
body:has(> .panel) { background: var(--sc-ground, #F2F5F9); }
.panel { background: var(--sc-ground); color: var(--ink); font-size: 14px; line-height: 1.5; }
.panel ::selection { background: var(--aqua); color: var(--aqua-ink); }

/* sidebar: night blue like the home, the open section lit in aqua */
.panel .side { gap: 16px; padding: 16px 12px; background: var(--sc-night); color: var(--sc-on-night); }
.panel .side-top { gap: 6px; padding-left: 2px; }
.panel .side-top .logo { --logo-h: 40px; padding: 4px 6px; }
.panel .avatar { width: 32px; height: 32px; background: var(--aqua); color: var(--aqua-ink); font: 600 12px/1 Geist, system-ui, sans-serif; }
.panel .avatar:hover, .panel .avatar[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(47, 214, 181, .35); }
.panel .event-box { gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--sc-night-2); box-shadow: none; }
.panel .event-box span, .panel .event-box label { color: var(--sc-on-night-muted); }
.panel .event-box b, .panel .event-pick { color: var(--sc-on-night); font-weight: 600; }
.panel .event-box .demo-note { color: #F4C56A; }
.panel .side-nav { gap: 1px; }
.panel .side-nav a { min-height: 36px; padding: 0 10px; border-radius: 8px; color: var(--sc-on-night-muted); font-weight: 500; transition: background .15s, color .15s; }
.panel .side-nav a:hover { background: rgba(255, 255, 255, .07); color: #FFFFFF; }
.panel .side-nav a[aria-current="page"] { background: rgba(47, 214, 181, .16); color: var(--aqua); font-weight: 600; box-shadow: none; }
.panel .side-nav a.locked, .panel .side-nav a.locked:hover { background: transparent; color: var(--sc-on-night-muted); }
.panel .side-nav small { padding: 0 7px; border-radius: 999px; background: var(--aqua); color: var(--aqua-ink); font-size: 11px; font-weight: 600; line-height: 20px; }

/* header: a breadcrumb on the page tone, no bar under it */
.panel .topbar { padding: 14px 28px 0; background: transparent; color: var(--muted-2); font-size: 14px; }
.panel .topbar b { font-weight: 500; }
.panel .pbody { gap: 16px; padding: 18px 28px 32px; }
.panel .ptitle h1 { font-family: Geist, system-ui, sans-serif; font-weight: 600; font-size: 30px; line-height: 1.2; letter-spacing: -0.025em; }
.panel .ptitle p { margin-top: 4px; color: var(--muted); }

/* cards */
.panel :is(.pcard, .tcard, .kpi, .qrow, .ptable, .evcard, .cs-row) { border-radius: 12px; background: var(--sc-card); box-shadow: var(--sc-shadow-sm); }
.panel .pcard { gap: 12px; padding: 22px 24px; }
.panel :is(.pcard, .tcard).focus, .panel .tcard.open { box-shadow: 0 0 0 2px var(--accent), var(--sc-shadow-sm); }
.panel .pcard.tip { background: var(--accent-soft); box-shadow: 0 0 0 1px rgba(8, 99, 84, .28); }
.panel :is(.head-row > b, .pcard > b, .tcard-row b, .qrow > div:first-child b) { font-weight: 600; letter-spacing: -0.01em; }
.panel .kgroup { font-family: Geist, system-ui, sans-serif; font-weight: 500; font-size: 13px; letter-spacing: 0; color: var(--muted); }
.panel .kpi { padding: 18px 20px; }
.panel .kpi strong, .panel .big, .panel .qcount strong, .panel .reach strong, .panel .evbig strong { font-family: Geist, system-ui, sans-serif; font-weight: 600; letter-spacing: -0.03em; }
.panel .kpi strong { font-size: 32px; }
.panel .sheet { border-radius: 12px; background: var(--sc-card); box-shadow: var(--sc-shadow-lg); }
.panel .sheet.focus { box-shadow: 0 0 0 2px var(--accent), var(--sc-shadow-lg); }
.panel .sheet h2 { font-family: Geist, system-ui, sans-serif; font-weight: 600; font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; }
.panel .sheet.focus h2 { font-size: 22px; }
.panel .evcard:hover { box-shadow: var(--sc-shadow-lg); }
.panel .evhead h3 { font-family: Geist, system-ui, sans-serif; font-weight: 600; font-size: 24px; letter-spacing: -0.02em; line-height: 1.1; }
.panel .evfoot .pbtn.primary { background: var(--sc-primary); color: #FAFAFA; }

/* buttons: secondary by default, near-black primary, white "outline" lifted by a shadow instead of a stroke */
.panel .pbtn { gap: 8px; min-height: 36px; padding: 0 16px; border-radius: 8px; background: var(--sc-card); box-shadow: var(--sc-shadow-md); color: var(--ink); font-size: 14px; font-weight: 500; transition: background .15s, box-shadow .15s, transform .15s; }
.panel .pbtn:hover { background: var(--sc-soft); color: var(--ink); filter: none; }
/* inside a white surface the default button is shadcn's secondary: a grey fill with its outline */
.panel :is(.pcard, .sheet, .tcard, .kpi, .qrow, .ptable, .evcard, .cs-row, .pop, .empty, .md-block) .pbtn:not(.primary, .green, .white, .line, .dashed) { background: var(--mist); box-shadow: var(--sc-edge); }
.panel :is(.pcard, .sheet, .tcard, .kpi, .qrow, .ptable, .evcard, .cs-row, .pop, .empty, .md-block) .pbtn:not(.primary, .green, .white, .line, .dashed):hover { background: var(--sc-hover); }
.panel .pcard.tip .pbtn:not(.primary) { background: var(--sc-card); }
.panel .pbtn.primary { background: var(--sc-primary); color: #FAFAFA; box-shadow: var(--sc-shadow-xs); }
.panel .pbtn.primary:hover { background: var(--sc-primary-hover); color: #FAFAFA; filter: none; }
.panel .pbtn.green { background: #15803D; color: #FFFFFF; }
.panel .pbtn.green:hover { background: #166534; color: #FFFFFF; filter: none; }
.panel .pbtn:is(.white, .line) { background: var(--sc-card); box-shadow: var(--sc-shadow-md); }
.panel .pbtn:is(.white, .line):hover { background: var(--sc-soft); }
.panel .pbtn.danger { color: var(--sc-danger); }
.panel .pbtn.danger:hover { background: #FEF2F2; color: #B91C1C; }
.panel .pbtn.dashed { border: 1.5px dashed var(--sc-input); background: transparent; box-shadow: none; }
.panel .pbtn.dashed:hover { background: var(--sc-card); }
.panel .pbtn.sm { min-height: 32px; padding: 0 12px; font-size: 13px; border-radius: 7px; }
.panel .pbtn.lg { min-height: 40px; padding: 0 22px; font-size: 14px; }
.panel .pbtn.block { min-height: 40px; font-size: 14px; }
.panel .pbtn:disabled { opacity: .5; }
.panel .linkbtn { font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: var(--sc-input); text-underline-offset: 4px; }
.panel .linkbtn:hover { text-decoration-color: currentColor; }
.panel .pmain a:not([class]) { color: var(--ink); text-decoration-color: var(--sc-input); text-underline-offset: 4px; }
.panel .pmain a:not([class]):hover { text-decoration-color: currentColor; }

/* chips, toggles, tabs, switches */
.panel .chip { min-height: 32px; padding: 0 12px; border-radius: 8px; background: var(--sc-card); color: var(--muted); box-shadow: var(--sc-shadow-xs); font-size: 13px; font-weight: 500; }
.panel .chip:hover { color: var(--ink); }
.panel .chip[aria-pressed="true"] { background: var(--sc-primary); color: #FAFAFA; box-shadow: 0 0 0 1px var(--sc-primary); }
.panel .opt { border-radius: 8px; font-weight: 500; }
.panel .opt.round, .panel .opt.q { border-radius: 7px; }
.panel .seg { gap: 2px; padding: 3px; border-radius: 10px; background: #E4E4E7; box-shadow: var(--sc-edge); }
.panel .seg button { min-height: 30px; padding: 0 12px; border-radius: 7px; color: var(--muted); font-weight: 500; transition: background .15s, color .15s; }
.panel .seg button:hover { color: var(--ink); }
.panel .seg [aria-pressed="true"], .panel .seg [aria-selected="true"] { background: var(--sc-card); color: var(--ink); box-shadow: var(--sc-shadow-xs); }
.panel .seg .strong[aria-pressed="true"] { background: var(--sc-primary); color: #FAFAFA; }
.panel .switch { width: 36px; height: 20px; background: var(--sc-input); box-shadow: var(--sc-edge); transition: background .15s; }
.panel .switch::after { top: 2px; left: 2px; width: 16px; height: 16px; box-shadow: 0 1px 2px rgba(9, 9, 11, .2); transition: transform .2s var(--ease); }
.panel .switch[aria-checked="true"], .panel [aria-checked="true"] > .switch { background: var(--accent); }
.panel .switch[aria-checked="true"]::after, .panel [aria-checked="true"] > .switch::after { transform: translateX(16px); }
.panel .tag { padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 500; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 24%, transparent); }

/* fields: the one place a border stays */
.panel .field { min-height: 36px; padding: 0 12px; border: 1px solid var(--sc-input); border-radius: 8px; background: var(--sc-card); box-shadow: var(--sc-shadow-xs); font-size: 14px; }
.panel .field:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--sc-ring); }
.panel textarea.field { padding: 8px 12px; }
.panel .field:disabled { background: var(--sc-soft); color: var(--muted-2); }
.panel .search { min-height: 36px; padding: 0 12px; border-radius: 8px; }
.panel .fcol > label, .panel .flabel { font-size: 14px; font-weight: 500; }
.panel .lab, .panel .sheet label, .panel .colors label { font-weight: 500; }
.panel .colors input, .panel .md-color input[type="color"], .panel .props input[type="color"] { border: 1px solid var(--sc-input); border-radius: 8px; }

/* tables: a soft header tone and alternating rows instead of rules */
.panel .ptable table { font-size: 14px; }
.panel .ptable th { height: 40px; padding: 8px 12px; background: var(--sc-soft); font-size: 13px; font-weight: 500; color: var(--muted); }
.panel .ptable td { padding: 10px 12px; }
.panel .ptable tbody tr { border-top: 0; transition: background .12s; }
.panel .ptable tbody tr:nth-child(even) { background: var(--sc-soft); }
.panel .ptable tbody tr:hover { background: var(--mist); }
.panel .ptable tr > :first-child { padding-left: 16px; }
.panel .ptable tr > :last-child { padding-right: 16px; }
.panel .ptable tr.sel { background: var(--accent-soft); }
.panel .bib, .panel .bib-tag { border-radius: 7px; background: var(--sc-primary); }
.panel .bib.done { background: #15803D; }

/* lists inside cards: rows set apart by space and a hover tone, not by rules */
.panel :is(.list-row, .todo, .switch-row, .facts div, .ledger > div:not(.net), .mail-head, .listrow) { border-bottom: 0; }
.panel .frow { padding: 10px 12px; border-bottom: 0; border-radius: 8px; }
.panel .frow:nth-child(even) { background: var(--sc-soft); }
.panel .switch-row { padding: 10px 0; }
.panel .facts { gap: 2px; }
.panel .facts div { padding: 7px 0; }
.panel .net.ink { margin-top: 8px; padding: 18px 20px; border-top: 0; border-radius: 10px; background: var(--mist); }
.panel .net.ink strong { font-family: Geist, system-ui, sans-serif; font-weight: 600; font-size: 44px; letter-spacing: -0.03em; }
.panel .mail-head { margin-bottom: 4px; }
.panel .pop { border-radius: 10px; background: var(--sc-card); box-shadow: var(--sc-shadow-lg); }
.panel .doc { border-radius: 10px; background: var(--sc-soft); box-shadow: var(--sc-edge); }
.panel .doc > div { border-radius: 8px; box-shadow: var(--sc-shadow-sm); }
.panel .close, .panel .x { border-radius: 8px; }
.panel .phone { box-shadow: 0 0 0 8px #E4E4E7, var(--sc-shadow-lg); }
.panel .tier { border-radius: 8px; }
.panel .tier.editing { box-shadow: 0 0 0 2px var(--accent); }
.panel .iban, .panel .upl, .panel .md-prev { border-radius: 10px; }
.panel .empty { border-radius: 12px; background: var(--sc-card); box-shadow: var(--sc-shadow-xs); }
.panel .banner, .panel .confirm, .panel .reach { border-radius: 10px; }
.panel .wchart { border-bottom-color: var(--sc-input); }
.panel .md-block, .panel .tpl { border-radius: 12px; box-shadow: var(--sc-shadow-sm); }
.panel .md-block.on { box-shadow: 0 0 0 2px var(--accent), var(--sc-shadow-sm); }
.panel .tpl:hover { box-shadow: 0 0 0 2px var(--accent), var(--sc-shadow-sm); }
.panel .md-thumb { box-shadow: var(--sc-shadow-sm); }

/* menus and dialogs */
.profile-menu { padding: 4px; border: 0; border-radius: 10px; box-shadow: var(--sc-shadow-lg); }
.profile-menu .pm-head { margin-bottom: 4px; padding: 8px 8px 10px; border-bottom: 0; }
.profile-menu .pm-list:not(:empty) { margin-bottom: 4px; padding: 4px 0; border-bottom: 0; border-radius: 8px; background: var(--sc-soft); }
.profile-menu .pm-label { font-weight: 500; letter-spacing: 0; text-transform: none; }
.profile-menu .pm-item { min-height: 34px; padding: 6px 8px; border-radius: 6px; font-size: 14px; }
.profile-menu .pm-item:hover, .profile-menu .pm-item:focus-visible { background: var(--mist); }
.leave-dialog, .qr-dialog, .mdlg { border-radius: 12px; box-shadow: var(--sc-shadow-lg); }
.leave-dialog { padding: 24px; }
.leave-dialog h2, .mdlg-head h2 { font-family: Geist, system-ui, sans-serif; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.leave-dialog::backdrop, .qr-dialog::backdrop, .mdlg::backdrop { background: rgba(9, 9, 11, .5); }
.qr-dialog img { border: 0; border-radius: 8px; box-shadow: var(--sc-shadow-sm); }
.locked-note { border-radius: 10px; background: var(--sc-primary); box-shadow: var(--sc-shadow-lg); }

@media (max-width: 860px) {
  .panel .side { padding: 12px; gap: 12px; }
  .panel .side-nav { scrollbar-width: none; }
  .panel .side-nav::-webkit-scrollbar { display: none; }
  .panel .topbar { padding: 12px 16px 0; }
  .panel .pbody { padding: 14px 16px 24px; }
  .panel .ptitle h1 { font-size: 26px; }
  .panel .pbtn { min-height: 40px; }
  .panel .pbtn.sm { min-height: 36px; }
  .panel .field, .panel .search { min-height: 44px; font-size: 16px; } /* 16px stops iOS from zooming into the field */
}

/* Modulo: each form field on its own night-blue tile, the per-quota choices folded inside it */
.panel .frow.mrow, .panel .frow.mrow:nth-child(even) { align-items: flex-start; padding: 18px 20px; border-radius: 12px; background: var(--sc-night-2); color: var(--sc-on-night); box-shadow: inset 0 0 0 1px rgba(169, 184, 211, .32); }
/* the field's name is the headline of its tile: bigger, heavier, white, with an aqua tick before it */
.panel .mrow > .stack > b { display: flex; align-items: center; gap: 10px; font-size: 19px; line-height: 1.25; font-weight: 700; letter-spacing: -0.015em; color: #FFFFFF; }
.panel .mrow > .stack > b::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--aqua); }
.panel .mrow .small, .panel .mrow label.small { color: var(--sc-on-night-muted); }
/* the three-way switch: outlined well, outlined segments, the chosen one always readable, hover or not */
.panel .mrow .seg { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(169, 184, 211, .38); }
.panel .mrow .seg button { color: var(--sc-on-night-muted); box-shadow: inset 0 0 0 1px transparent; transition: background .15s, color .15s, box-shadow .15s; }
.panel .mrow .seg button:hover:not(:disabled):not([aria-pressed="true"]) { background: rgba(255, 255, 255, .12); color: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.panel .mrow .seg button:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; }
.panel .mrow .seg [aria-pressed="true"], .panel .mrow .seg [aria-pressed="true"]:hover { background: var(--sc-on-night); color: var(--ink); box-shadow: inset 0 0 0 1px #FFFFFF; }
.panel .mrow .seg .strong[aria-pressed="true"], .panel .mrow .seg .strong[aria-pressed="true"]:hover { background: var(--aqua); color: var(--aqua-ink); box-shadow: inset 0 0 0 1px #8BE8D6; }
.panel .mrow .helpbox > summary { color: var(--aqua); font-weight: 500; }
.panel .mrow .helpbox > summary:focus-visible, .panel .mrow .qsplit > summary:focus-visible { outline-color: var(--aqua); }
.panel .mrow input[type="checkbox"] { accent-color: var(--aqua); }
.panel .mrow .pbtn.line.danger { background: rgba(255, 255, 255, .08); box-shadow: none; color: #FCA5A5; }
.panel .mrow .pbtn.line.danger:hover { background: rgba(252, 165, 165, .16); color: #FECACA; }
.qsplit > summary { display: inline-flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--sc-on-night, #F1F5FB); }
.qsplit > summary::-webkit-details-marker { display: none; }
.qsplit > summary span { padding: 1px 9px; border-radius: 999px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(169, 184, 211, .38); color: var(--sc-on-night-muted, #A9B8D3); font-size: 12px; }
/* impeccable-disable-next-line side-tab -- two borders of a square rotated 45deg: the disclosure chevron, not a card edge */
.qsplit > summary::after { content: ''; width: 7px; height: 7px; margin: 0 2px 3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.qsplit[open] > summary::after { margin-bottom: -3px; transform: rotate(-135deg); }
.qlist { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.qline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 8px 8px 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(169, 184, 211, .26); font-size: 14px; }
.qline .seg button { min-height: 28px; padding: 0 10px; font-size: 12px; }

/* the same outline on the remaining panel pieces: tiles inside cards, rows of lists, the menu and the sidebar's event box */
.panel :is(.evstats div, .iban, .upl, .md-prev, .reach, .banner, .confirm, .tier, .opt, .close) { box-shadow: var(--sc-edge); }
.panel .tier.now { box-shadow: 0 0 0 1px var(--accent); }
.panel .opt[aria-checked="true"], .panel .opt[aria-pressed="true"] { box-shadow: 0 0 0 1px var(--accent); }
.panel .event-box { box-shadow: inset 0 0 0 1px rgba(169, 184, 211, .3); }
.panel .side-nav a[aria-current="page"] { box-shadow: inset 0 0 0 1px rgba(47, 214, 181, .4); }
.panel .pbtn.dashed { border-color: var(--border); }
.panel .ptable th { box-shadow: none; }

/* Incassi: a thin rule between the lines of the summary and of the refunds list (asked for by the user) */
.panel:has(.side[data-page="incassi"]) .ledger > div:not(.net) { border-bottom: 1px solid var(--line); }
.panel:has(.side[data-page="incassi"]) .ledger > div:not(.net):last-of-type { border-bottom: 0; }
.panel:has(.side[data-page="incassi"]) .ledger > .net.ink { margin-top: 14px; }
.panel:has(.side[data-page="incassi"]) #refunds .list-row { border-bottom: 1px solid var(--line); padding: 12px 0; }
.panel:has(.side[data-page="incassi"]) #refunds .list-row:last-child { border-bottom: 0; }
.panel:has(.side[data-page="incassi"]) .pcard.tight > .head-row { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.panel:has(.side[data-page="incassi"]) .pcard > b:nth-of-type(2) { padding-top: 12px; border-top: 1px solid var(--line); }

/* Round shapes, as on the home page. Last in the file, so they win over the panel's own radius.
   Buttons get round ends; boxes and cards rounder corners. The places where people write (fields, search, upload) keep theirs. */
.btn, .pbtn, .panel .pbtn, .panel .pbtn.sm, .chip, .panel .chip, .opt, .opt.round, .opt.q, .panel .opt, .panel .opt.round, .panel .opt.q,
.seg, .panel .seg, .seg button, .panel .seg button, .toggle, .toggle button, .sizes button, .token, .iconbtn, .done-pill,
.close, .x, .panel .close, .panel .x, .bib, .bib-tag, .panel .bib, .panel .bib-tag, .tag, .panel .tag, .side-nav small { border-radius: 999px; }
.pbtn.block { padding-left: 20px; padding-right: 20px; }
.box, .pcard, .sheet, .tcard, .kpi, .qrow, .ptable, .empty, .confirm, .kpi-cell, .gara-intro,
.panel :is(.pcard, .tcard, .kpi, .qrow, .ptable, .evcard, .cs-row, .sheet, .empty), .panel .md-block, .panel .tpl, .tpl { border-radius: 20px; }
.quote, .tier, .panel .tier, .iban, .reach, .banner, .doc, .pop, .event-box, .frow, .panel .iban, .panel .upl, .panel .md-prev, .panel .banner, .panel .confirm, .panel .reach,
.panel .doc, .panel .pop, .panel .event-box, .panel .frow, .panel .net.ink, .panel .frow.mrow, .panel .frow.mrow:nth-child(even), .locked-note, .profile-menu { border-radius: 16px; }
.panel .side-nav a, .pm-item, .profile-menu .pm-item { border-radius: 12px; }
.leave-dialog, .qr-dialog, .mdlg, .auth-card { border-radius: 24px; }
@media (min-width: 720px) { .pub .gara { border-radius: 24px; } }

/* the certificate in the registration sheet: its state on the right of the title, the actions side by side */
.cert-box { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.cert-box .head-row { align-items: center; }
.cert-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cert-acts .pbtn { min-height: 40px; white-space: nowrap; }
.cert-acts .pbtn:first-child:nth-last-child(3), .cert-acts .pbtn:only-child { grid-column: 1 / -1; } /* three actions: the document on its own row, approve and refuse under it */

/* the staff in Impostazioni: initials, name with the role as a tag, what they can do under it, the remove button on the right */
.staff-row { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; }
.staff-row .initials { margin-top: 2px; }
.staff-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.staff-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.staff-name b { font-weight: 600; }
.staff-who > .small { color: var(--muted); }
.staff-row .x { margin-top: 0; flex: none; }

/* Codici sconto, new code: three steps side by side (one under the other on narrow screens), each in its own soft panel */
.code-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.code-step { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 16px; background: var(--sc-soft, var(--paper)); }
.code-step > b { padding-left: 34px; min-height: 24px; display: flex; align-items: center; }
.code-n { position: absolute; left: 18px; top: 18px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sc-primary, var(--ink)); color: #fff; font-size: 12px; font-weight: 600; }
.code-step .toggle { align-self: stretch; }
@media (max-width: 1100px) { .code-form { grid-template-columns: minmax(0, 1fr); } }

/* the race page: another ticket of the same purchase, in a panel of its own */
.ticket { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; background: var(--paper); }
.ticket .head-row { align-items: center; }
