:root {
  --navy: #0f2e4d;
  --navy-deep: #08223b;
  --navy-soft: #173f66;
  --yellow: #f8d347;
  --yellow-dark: #e0be30;
  --gold: var(--yellow);
  --silver: #d3dbe1;
  --bronze: #d99a63;
  --aqua: #aeffd8;
  --blue: #235af3;
  --red: #d3413f;
  --ink: #18313b;
  --muted: #617175;
  --line: #dfe7ea;
  --mist: #f3f7f8;
  --white: #fff;
  --shadow: 0 14px 40px rgba(15, 46, 77, .10);
  --radius: 18px;
  --page: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--yellow); color: var(--navy); font-weight: 700; }
.skip-link:focus { top: 12px; }

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 16px max(24px, calc((100vw - 1180px) / 2));
  color: var(--white);
  background: var(--navy);
}
.brand { display: inline-flex; align-items: center; gap: 13px; flex: none; }
.brand-mark { width: 52px; height: 36px; position: relative; display: block; overflow: hidden; }
.brand-mark i { position: absolute; width: 48px; height: 16px; border: 4px solid var(--yellow); border-left: 0; border-bottom: 0; border-radius: 50%; transform: rotate(-9deg); left: 1px; }
.brand-mark i:nth-child(1) { top: 1px; }
.brand-mark i:nth-child(2) { top: 10px; left: 6px; }
.brand-mark i:nth-child(3) { top: 19px; left: 11px; }
.brand-copy { display: grid; line-height: 1; letter-spacing: .07em; }
.brand-copy strong { font-size: 15px; font-weight: 800; }
.brand-copy small { color: var(--yellow); font-size: 11px; font-weight: 700; margin-top: 5px; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.account-controls { display: flex; align-items: center; gap: 10px; color: #d8e4eb; font-size: 12px; }
.account-controls strong { color: var(--white); }
.account-controls button { padding: 3px 0; border: 0; border-bottom: 2px solid var(--yellow); color: var(--white); background: transparent; font-size: 12px; font-weight: 700; }
.donate-button { min-height: 32px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 7px; color: var(--navy); background: var(--yellow); text-decoration: none; font-size: 12px; font-weight: 800; }
.donate-button:hover { background: var(--yellow-dark); }
.donate-button:focus-visible { outline: 3px solid rgba(248,211,71,.35); outline-offset: 2px; }
.donate-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.event-picker { display: flex; align-items: center; gap: 12px; }
.event-picker-controls { display: flex; gap: 8px; }
.event-picker input, .event-picker select { min-height: 44px; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; padding: 0 12px; color: var(--white); background: var(--navy-soft); }
.event-picker input { width: 112px; background: rgba(255,255,255,.08); }
.event-picker select { width: min(330px, 30vw); text-overflow: ellipsis; }
.event-picker select option, .event-picker select optgroup { color: var(--navy); background: var(--white); }
.event-picker select:disabled { color: #b8c8d2; cursor: wait; }
.event-picker input:focus, .event-picker select:focus { outline: 3px solid rgba(248,211,71,.3); border-color: var(--yellow); }
.event-picker-or { color: #aebfca; font-size: 12px; font-weight: 600; text-transform: uppercase; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 8px; padding: 10px 18px; text-decoration: none; font-weight: 700; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-yellow { background: var(--yellow); color: var(--navy); }
.button-yellow:hover { background: var(--yellow-dark); }
.button-navy { background: var(--navy); color: var(--white); }
.button-outline { border: 1px solid rgba(255,255,255,.55); color: var(--white); background: transparent; }
.button-outline:hover { background: rgba(255,255,255,.09); }
.button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.primary-nav { position: sticky; top: 0; z-index: 20; display: flex; gap: 30px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 5px 15px rgba(15,46,77,.04); overflow-x: auto; }
.primary-nav a { position: relative; flex: none; padding: 17px 0 15px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 700; }
.primary-nav a::after { content: ""; position: absolute; height: 3px; left: 0; right: 100%; bottom: -1px; background: var(--yellow); transition: right .2s ease; }
.primary-nav a:hover, .primary-nav a.active { color: var(--navy); }
.primary-nav a.active::after { right: 0; }
.primary-nav .nav-notifications { display: inline-flex; flex: none; align-items: center; gap: 6px; padding: 0; border: 0; color: var(--navy); background: transparent; font-size: 14px; font-weight: 800; }
.primary-nav .nav-notifications:hover { color: var(--blue); }
.primary-nav .nav-notifications:disabled { cursor: wait; opacity: .55; }
.primary-nav .nav-notifications svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-count { display: inline-grid; place-items: center; min-width: 21px; height: 21px; margin-left: 4px; padding: 0 5px; color: var(--white); background: var(--red); border-radius: 20px; font-size: 11px; }

.loading-bar { position: fixed; z-index: 60; top: 0; left: 0; height: 4px; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--yellow); opacity: 0; transition: opacity .2s; }
.loading-bar.loading { opacity: 1; animation: loading 1.2s ease-in-out infinite; }
@keyframes loading { 0% { transform: scaleX(.05); } 50% { transform: scaleX(.65); } 100% { transform: scaleX(1); transform-origin: right; } }
.error-banner { width: var(--page); margin: 20px auto 0; padding: 14px 18px; display: flex; align-items: center; gap: 10px; border-left: 4px solid var(--red); background: #fff1f1; border-radius: 8px; }
.error-banner .text-button { margin-left: auto; }
.text-button { padding: 2px; color: var(--navy); border: 0; border-bottom: 2px solid var(--yellow); background: transparent; font-weight: 700; }

.event-hero { position: relative; overflow: hidden; color: var(--white); background: linear-gradient(116deg, var(--navy) 0%, var(--navy-soft) 100%); }
.event-hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -300px; border: 80px solid rgba(248,211,71,.08); border-radius: 50%; }
.hero-inner { width: var(--page); min-height: 265px; margin: auto; padding: 56px 0 62px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; position: relative; z-index: 1; }
.hero-actions { display: flex; flex: none; align-items: center; gap: 10px; }
.eyebrow { margin: 0 0 11px; display: flex; align-items: center; gap: 9px; color: var(--yellow); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 800; }
.eyebrow.navy { color: var(--navy); }
.eyebrow.yellow { color: var(--yellow); }
.live-pulse { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(211,65,63,.5); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(211,65,63,0); } 100% { box-shadow: 0 0 0 0 rgba(211,65,63,0); } }
@keyframes refresh-pulse { 50% { opacity: .35; transform: scale(.75); } }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 850px; margin-bottom: 16px; font-size: clamp(34px, 5vw, 62px); line-height: 1.03; letter-spacing: -.035em; }
h2 { margin-bottom: 8px; color: var(--navy); font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; letter-spacing: -.025em; }
h3 { color: var(--navy); }
.event-meta { margin: 0; color: #d7e5ec; font-size: 17px; }
.wave-line { position: absolute; left: 0; right: 0; bottom: 0; height: 20px; display: flex; }
.wave-line span { flex: 1; border-radius: 50% 50% 0 0; border-top: 4px solid rgba(248,211,71,.65); transform: translateY(10px); }

.page-section { width: var(--page); margin: 0 auto; padding: 78px 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.section-heading.compact { align-items: center; margin-bottom: 22px; }
.section-heading p:not(.eyebrow) { max-width: 650px; margin: 0; color: var(--muted); }
.updated-time { text-align: right; font-size: 13px; }
.updated-time::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(29,160,123,.12); vertical-align: 1px; }
.updated-time.refreshing::before { animation: refresh-pulse 1s ease-in-out infinite; }
.updated-time.delayed { color: #9a4f23; }
.updated-time.delayed::before { background: #d57933; box-shadow: 0 0 0 4px rgba(213,121,51,.13); }
.section-link { color: var(--navy); font-weight: 700; text-underline-offset: 5px; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }

.status-overview { padding-bottom: 48px; }
.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.status-card { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto auto; column-gap: 16px; min-height: 150px; padding: 24px; text-align: left; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 6px 22px rgba(15,46,77,.06); transition: transform .2s ease, border-color .2s ease; }
.status-card:hover { transform: translateY(-3px); border-color: #b9c8ce; }
.status-icon { grid-row: 1 / 4; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--mist); color: var(--navy); font-size: 23px; font-weight: 800; }
.status-card.in-progress .status-icon { background: #fff0ef; }
.status-card.yet-to-start .status-icon { background: #fff8d9; }
.status-card.complete .status-icon { background: #e7faef; color: #217747; }
.status-card strong { color: var(--navy); font-size: 34px; line-height: 1; }
.status-card > span:not(.status-icon) { font-weight: 700; }
.status-card small { color: var(--muted); }

.live-section { padding-top: 42px; }
.activity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-items: start; }
.activity-column { min-width: 0; display: grid; gap: 18px; align-content: start; }
.activity-panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 8px 28px rgba(15,46,77,.07); }
.activity-panel > header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: var(--mist); }
.activity-panel > header h3 { margin: 2px 0 0; font-size: 23px; }
.activity-panel > header > strong { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--red); font-size: 18px; }
.activity-kicker { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.activity-kicker.live { display: flex; align-items: center; gap: 6px; color: #a52625; }
.activity-kicker.inferred { color: #7a5a00; }
.activity-kicker .live-pulse { width: 7px; height: 7px; }
.activity-panel.marshalling-activity > header > strong { color: var(--navy); background: var(--yellow); }
.activity-panel.marshalled-activity > header > strong { color: var(--navy); background: var(--aqua); }
.live-grid { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 14px; }
.activity-panel .division-card { min-height: 170px; padding: 20px; box-shadow: none; }
.activity-panel .division-card h3 { font-size: 20px; }
.activity-list { display: grid; }
.activity-row { position: relative; width: 100%; min-height: 102px; display: grid; grid-template-columns: 1fr 18px; gap: 2px 12px; padding: 16px 18px; text-align: left; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: var(--white); }
.activity-row:last-child { border-bottom: 0; }
.activity-row:hover, .activity-row:focus-visible { outline: none; background: var(--mist); }
.activity-row strong, .activity-row small, .activity-row .activity-time { grid-column: 1; }
.activity-row strong { color: var(--navy); font-size: 16px; }
.activity-row small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.activity-podium { display: grid; gap: 4px; white-space: normal !important; }
.activity-placing { display: grid; grid-template-columns: 30px 24px 1fr; gap: 6px; align-items: center; min-width: 0; }
.activity-placing b { color: var(--navy); font-size: 11px; }
.activity-placing > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-row .row-arrow { grid-column: 2; grid-row: 1 / 4; align-self: center; color: var(--navy); font-size: 24px; }
.activity-time { color: #217747; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.activity-time.marshalled { color: #125b50; }
.activity-time.scheduled { color: #7a6210; }
.activity-empty { min-height: 230px; display: grid; align-content: center; padding: 30px 22px; text-align: center; }
.activity-empty h4 { margin: 0 0 7px; color: var(--navy); font-size: 18px; }
.activity-empty p { margin: 0 0 13px; color: var(--muted); font-size: 14px; }
.activity-empty a { color: var(--navy); font-size: 14px; font-weight: 700; text-underline-offset: 4px; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.division-card { position: relative; display: grid; gap: 12px; min-height: 190px; padding: 25px; text-align: left; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
button.division-card { width: 100%; }
.division-card:hover { transform: translateY(-3px); box-shadow: 0 18px 45px rgba(15,46,77,.15); }
.division-card.live-card { border-top: 5px solid var(--red); }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.state-badge { display: inline-flex; align-items: center; gap: 7px; width: fit-content; padding: 5px 9px; border-radius: 20px; background: var(--mist); color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.state-badge.in_progress { color: #a52625; background: #ffefee; }
.state-badge.complete { color: #217747; background: #e7faef; }
.state-badge.yet_to_start { color: #6b5711; background: #fff8d9; }
.division-card h3 { margin: 0; font-size: 23px; line-height: 1.2; }
.card-stats { display: flex; gap: 20px; color: var(--muted); font-size: 14px; }
.card-cta { margin-top: auto; color: var(--navy); font-weight: 700; }

.empty-state { padding: 50px 20px; text-align: center; border: 1px dashed #bfccd0; border-radius: var(--radius); background: var(--mist); }
.empty-state h3 { margin-bottom: 8px; font-size: 24px; }
.empty-state p { color: var(--muted); }
.empty-icon { font-size: 36px; color: var(--yellow-dark); }

.athlete-section { background: linear-gradient(180deg, #f5fafb 0%, #eaf4f5 100%); border-top: 1px solid var(--line); }
.athlete-heading-row { align-items: flex-start; }
.athlete-picker { position: relative; width: min(430px, 100%); flex: none; }
.athlete-picker > label { display: block; margin-bottom: 7px; color: var(--navy); font-size: 13px; font-weight: 700; }
.athlete-picker > small { display: block; margin-top: 7px; color: var(--muted); }
.athlete-combobox { position: relative; }
.athlete-combobox > svg { position: absolute; z-index: 1; left: 15px; top: 14px; width: 20px; fill: none; stroke: var(--muted); stroke-width: 2; }
.athlete-combobox > input { width: 100%; min-height: 50px; padding: 0 16px 0 45px; border: 1px solid #b9c9ce; border-radius: 10px; color: var(--navy); background: var(--white); box-shadow: 0 5px 16px rgba(15,46,77,.06); }
.athlete-combobox > input:focus { outline: 3px solid rgba(35,90,243,.15); border-color: var(--blue); }
.athlete-combobox > input:disabled { cursor: wait; color: var(--muted); background: #edf2f3; }
.athlete-matches { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: 360px; overflow: auto; padding: 6px; border: 1px solid var(--line); border-radius: 11px; background: var(--white); box-shadow: 0 18px 45px rgba(15,46,77,.2); }
.athlete-matches button { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 11px; padding: 11px 12px; text-align: left; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 12px; }
.athlete-matches button:hover, .athlete-matches button:focus { outline: none; background: var(--mist); }
.athlete-match-name { display: grid; }
.athlete-matches strong { color: var(--navy); font-size: 15px; }
.athlete-matches small { color: var(--muted); }
.athlete-no-match { margin: 0; padding: 20px; color: var(--muted); text-align: center; }
.athlete-welcome { min-height: 155px; display: flex; align-items: center; justify-content: center; gap: 22px; padding: 30px; border: 1px dashed #afc3c8; border-radius: var(--radius); background: rgba(255,255,255,.55); }
.athlete-welcome h3, .athlete-welcome p { margin-bottom: 4px; }
.athlete-welcome p { color: var(--muted); }
.athlete-silhouette { width: 66px; height: 66px; display: grid; place-items: center; flex: none; border-radius: 50%; color: var(--navy); background: var(--yellow); font-size: 36px; font-weight: 800; }
.athlete-loading { min-height: 260px; display: grid; place-items: center; color: var(--muted); }
.athlete-insight { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.athlete-profile { display: flex; align-items: center; gap: 18px; padding: 26px 28px; border-bottom: 1px solid var(--line); }
.athlete-profile h3 { margin: 0 0 3px; font-size: 28px; }
.athlete-profile p { margin-bottom: 0; color: var(--muted); }
.athlete-profile .eyebrow { margin-bottom: 5px; }
.athlete-avatar { width: 68px; height: 68px; display: grid; place-items: center; flex: none; }
.athlete-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.athlete-stat-grid article { padding: 22px 28px; border-right: 1px solid var(--line); }
.athlete-stat-grid article:last-child { border-right: 0; }
.athlete-stat-grid strong, .athlete-stat-grid span { display: block; }
.athlete-stat-grid strong { color: var(--navy); font-size: 30px; line-height: 1.1; }
.athlete-stat-grid span { margin-top: 4px; color: var(--muted); font-size: 13px; }
.athlete-breakdown { display: flex; flex-wrap: wrap; gap: 8px; padding: 17px 28px; border-bottom: 1px solid var(--line); background: var(--mist); }
.athlete-breakdown span { padding: 5px 10px; border-radius: 20px; color: var(--navy); background: var(--white); font-size: 12px; font-weight: 700; }
.athlete-results-heading { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px 12px; }
.athlete-results-heading h3 { margin: 0; font-size: 21px; }
.athlete-results-heading span { color: var(--muted); font-size: 13px; }
.athlete-results { display: grid; padding: 0 20px 25px; }
.athlete-result-row { display: grid; grid-template-columns: 58px 42px 1fr auto 24px; gap: 12px; align-items: center; min-height: 78px; padding: 10px 8px; text-align: left; border: 0; border-top: 1px solid var(--line); background: transparent; }
.athlete-result-row:hover { background: #f8fbfc; }
.athlete-place { width: 48px; height: 38px; display: grid; place-items: center; border-radius: 8px; color: var(--navy); background: var(--mist); font-weight: 800; }
.athlete-place.medal-gold { background: var(--gold); }
.athlete-place.medal-silver { background: var(--silver); }
.athlete-place.medal-bronze { background: var(--bronze); }
.athlete-result-main { display: grid; }
.athlete-result-main strong { color: var(--navy); }
.athlete-result-main small { color: var(--muted); }
.team-members { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.result-type { padding: 5px 9px; border-radius: 20px; color: var(--muted); background: var(--mist); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.result-type.team { color: #125b50; background: #e2f8f1; }
.athlete-history { border-top: 1px solid var(--line); background: #f8fbfc; }
.athlete-history > summary { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 28px; cursor: pointer; list-style: none; color: var(--navy); }
.athlete-history > summary::-webkit-details-marker { display: none; }
.athlete-history > summary > span:first-child { display: grid; gap: 3px; }
.athlete-history > summary strong { font-size: 21px; }
.athlete-history > summary small { color: var(--muted); font-size: 13px; }
.athlete-history-action { color: var(--blue); font-size: 13px; font-weight: 800; }
.athlete-history[open] .athlete-history-action::before { content: "Close "; }
.athlete-history[open] .athlete-history-action { font-size: 0; }
.athlete-history[open] .athlete-history-action::before { font-size: 13px; }
.athlete-history-content { padding: 0 28px 28px; }
.athlete-history-status { margin: 0; padding: 35px 20px; text-align: center; color: var(--muted); }
.athlete-history-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.athlete-history-stats article { display: grid; gap: 2px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.athlete-history-stats strong { color: var(--navy); font-size: 24px; }
.athlete-history-stats span, .athlete-history-note { color: var(--muted); font-size: 12px; }
.athlete-history-note { margin: 13px 0; }
.athlete-history-events { display: grid; gap: 10px; }
.athlete-history-event { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.athlete-history-event > summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px; cursor: pointer; list-style: none; }
.athlete-history-event > summary::-webkit-details-marker { display: none; }
.athlete-history-event > summary > span:first-child { display: grid; }
.athlete-history-event > summary small { color: var(--muted); }
.athlete-history-event > summary > span:last-child { color: var(--muted); font-size: 12px; font-weight: 700; }
.athlete-history-event-body { padding: 0 16px 16px; border-top: 1px solid var(--line); }
.athlete-history-event-stats { display: flex; flex-wrap: wrap; gap: 7px; padding: 13px 0; }
.athlete-history-event-stats span { padding: 4px 8px; border-radius: 20px; background: var(--mist); color: var(--navy); font-size: 11px; font-weight: 700; }
.athlete-history-results { display: grid; }
.athlete-history-result { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 10px; min-height: 62px; border-top: 1px solid var(--line); }
.athlete-history-result > span:last-child { display: grid; }
.athlete-history-result small { color: var(--muted); }
.athlete-history-search { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 16px; color: var(--muted); font-size: 12px; }

@media (max-width: 650px) {
  .athlete-history > summary, .athlete-history-content { padding-left: 18px; padding-right: 18px; }
  .athlete-history-stats { grid-template-columns: repeat(2, 1fr); }
  .athlete-history-search { align-items: stretch; flex-direction: column; }
  .athlete-history-search button { width: 100%; }
}

.points-section { color: var(--white); background: var(--navy); }
.points-section h2 { color: var(--white); }
.points-heading-row p:not(.eyebrow) { color: #c7d7df; }
.points-locked { max-width: 820px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 12px; padding: 30px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); color: var(--navy); background: var(--white); }
.points-locked-mark { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; color: var(--navy); background: var(--yellow); font-size: 24px; font-weight: 800; }
.points-locked h3 { margin: 4px 0 6px; color: var(--navy); font-size: 27px; }
.points-locked p { margin: 0; color: var(--muted); }
.points-locked .eyebrow { color: var(--navy); }
.points-empty { max-width: 820px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 12px; padding: 30px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); color: var(--navy); background: var(--white); }
.points-empty-mark { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; color: var(--navy); background: var(--yellow); font-size: 28px; font-weight: 800; }
.points-empty h3 { margin: 4px 0 6px; color: var(--navy); font-size: 27px; }
.points-empty p { margin: 0; color: var(--muted); }
.points-empty .eyebrow { color: var(--navy); }
.points-release { margin-top: 15px !important; padding-top: 14px; border-top: 1px solid var(--line); color: var(--navy) !important; font-weight: 700; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 10px 0 22px; }
.podium-card { min-width: 0; min-height: 164px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto; column-gap: 16px; padding: 22px; border-radius: 14px; color: inherit; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); text-align: left; }
.podium-card:first-child { background: var(--yellow); color: var(--navy); }
.podium-card:hover, .podium-card:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.podium-place { grid-column: 1 / -1; display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; opacity: .75; }
.podium-club { grid-column: 1 / -1; min-width: 0; margin: 12px 0 16px; align-self: start; }
.podium-club strong { min-width: 0; font-size: 21px; line-height: 1.15; overflow-wrap: anywhere; }
.podium-points { align-self: end; font-size: 30px; font-weight: 800; line-height: 1; white-space: nowrap; }
.podium-points small { font-size: .55em; }
.podium-open { align-self: end; justify-self: end; font-size: 12px; font-weight: 700; white-space: nowrap; }
.table-card { border-radius: 14px; overflow: hidden; background: var(--white); }
.table-scroll { max-height: 640px; overflow: auto; }
.points-table { width: 100%; border-collapse: collapse; color: var(--ink); font-size: 14px; white-space: nowrap; }
.points-table th { position: sticky; top: 0; z-index: 1; padding: 13px 12px; color: var(--navy); background: #edf3f5; text-align: right; font-size: 12px; }
.points-table th:nth-child(2), .points-table td:nth-child(2) { text-align: left; }
.points-table td { padding: 13px 12px; border-top: 1px solid var(--line); text-align: right; }
.points-table tbody tr:hover { background: #f8fbfc; }
.rank-cell { color: var(--muted); font-weight: 700; }
.club-cell { color: var(--navy); font-weight: 700; }
.club-identity { display: inline-flex; align-items: center; gap: 9px; }
.club-link { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0; border: 0; color: var(--navy); background: transparent; text-align: left; font-weight: 700; }
.club-link:hover, .club-link:focus-visible { color: var(--blue); outline: none; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.points-cell { color: var(--navy); font-size: 16px; font-weight: 800; }

.club-cap { width: 38px; height: 38px; display: inline-grid; place-items: center; flex: none; overflow: hidden; border: 1px solid #d5dfe2; border-radius: 50%; color: var(--navy); background: var(--white); vertical-align: middle; }
.club-cap img, .club-cap-fallback { grid-area: 1 / 1; width: 100%; height: 100%; }
.club-cap img { display: block; padding: 2px; object-fit: contain; }
.club-cap-fallback { display: grid; place-items: center; background: var(--mist); font-size: 11px; font-weight: 800; }
.club-cap img + .club-cap-fallback { display: none; }
.club-cap.image-failed img { display: none; }
.club-cap.image-failed .club-cap-fallback { display: grid; }
.club-cap.tiny { width: 23px; height: 23px; }
.club-cap.tiny .club-cap-fallback { font-size: 8px; }
.club-cap.small { width: 32px; height: 32px; }
.club-cap.medium { width: 44px; height: 44px; }
.club-cap.large { width: 68px; height: 68px; border-width: 2px; }
.club-cap.result { width: 38px; height: 38px; }

body.club-view .primary-nav, body.club-view .event-dashboard-section { display: none; }
.club-insight-section { min-height: 75vh; }
.club-back { margin-bottom: 24px; padding: 5px 0; border: 0; border-bottom: 3px solid var(--yellow); color: var(--navy); background: transparent; font-weight: 800; }
.club-insight-loading { min-height: 420px; display: grid; place-items: center; gap: 8px; align-content: center; color: var(--muted); }
.club-insight-loading strong, .club-insight-loading span { display: block; text-align: center; }
.club-insight-hero { display: grid; grid-template-columns: 82px 1fr auto; align-items: center; gap: 22px; padding: 30px; overflow: hidden; border-radius: var(--radius); color: var(--white); background: linear-gradient(118deg, var(--navy), var(--navy-soft)); box-shadow: var(--shadow); }
.club-insight-hero h1 { margin: 0 0 6px; font-size: clamp(34px, 5vw, 58px); }
.club-insight-hero p:not(.eyebrow) { margin: 0; color: #d7e5ec; }
.club-insight-hero .eyebrow { color: var(--yellow); }
.club-insight-cap { width: 82px; height: 82px; display: grid; place-items: center; border-radius: 50%; background: var(--white); }
.club-total { min-width: 155px; padding-left: 24px; border-left: 1px solid rgba(255,255,255,.25); text-align: right; }
.club-total strong, .club-total span { display: block; }
.club-total strong { color: var(--yellow); font-size: 48px; line-height: 1; }
.club-total span { margin-top: 6px; color: #d7e5ec; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.club-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 18px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: var(--shadow); }
.club-stat-grid article { padding: 22px 24px; border-right: 1px solid var(--line); }
.club-stat-grid article:last-child { border-right: 0; }
.club-stat-grid strong, .club-stat-grid span { display: block; }
.club-stat-grid strong { color: var(--navy); font-size: 30px; line-height: 1.1; }
.club-stat-grid span { margin-top: 5px; color: var(--muted); font-size: 13px; }
.club-panel { margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 8px 28px rgba(15,46,77,.07); }
.club-panel-heading { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--mist); }
.club-panel-heading .eyebrow { margin-bottom: 3px; font-size: 10px; }
.club-panel-heading h2 { margin: 0; font-size: 25px; }
.club-panel-heading > span, .club-panel-heading > strong { color: var(--muted); font-size: 13px; }
.contribution-panel { padding-bottom: 20px; }
.contribution-bar { height: 16px; margin: 24px 22px 14px; overflow: hidden; border-radius: 20px; background: #38a885; }
.contribution-bar span { display: block; height: 100%; background: var(--blue); }
.contribution-legend { display: flex; justify-content: space-between; gap: 18px; padding: 0 22px; color: var(--muted); font-size: 13px; }
.contribution-legend span { display: flex; align-items: center; gap: 6px; }
.contribution-legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.contribution-legend i.relay { background: #38a885; }
.contribution-legend strong { color: var(--navy); }
.club-division-list, .club-feed, .club-contributor-list { display: grid; }
.club-division-row { width: 100%; min-height: 84px; display: grid; grid-template-columns: 82px minmax(220px, 1fr) auto 76px 20px; align-items: center; gap: 14px; padding: 13px 20px; text-align: left; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: var(--white); }
.club-division-row:last-child { border-bottom: 0; }
.club-division-row:hover, .club-division-row:focus-visible { outline: none; background: var(--mist); }
.club-division-row > span:nth-child(2) { display: grid; }
.club-division-row > span:nth-child(2) > strong { color: var(--navy); }
.club-division-row small, .club-event-number { color: var(--muted); font-size: 12px; }
.club-event-number { font-weight: 700; }
.division-point-split { display: grid; text-align: right; }
.club-division-row > b { color: var(--navy); text-align: right; font-size: 18px; }
.club-insight-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; }
.placing-count-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; padding: 20px; }
.placing-count-grid span { min-height: 66px; display: grid; place-items: center; align-content: center; border-radius: 9px; background: var(--mist); }
.placing-count-grid span.medal-gold { background: var(--gold); }
.placing-count-grid span.medal-silver { background: var(--silver); }
.placing-count-grid span.medal-bronze { background: var(--bronze); }
.placing-count-grid strong, .placing-count-grid small { display: block; }
.placing-count-grid strong { color: var(--navy); font-size: 21px; }
.placing-count-grid small { color: var(--muted); font-size: 11px; }
.club-contributor-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding: 22px; }
.club-contributor-columns h3 { margin: 0 0 10px; font-size: 18px; }
.club-contributor-list { gap: 8px; }
.club-contributor-card { width: 100%; min-height: 68px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 11px; padding: 10px 12px; text-align: left; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--white); }
button.club-contributor-card:hover, button.club-contributor-card:focus-visible { outline: none; border-color: #adbdc2; background: var(--mist); }
.club-contributor-card > span:nth-child(2) { display: grid; min-width: 0; }
.club-contributor-card > span:nth-child(2) strong { overflow: hidden; color: var(--navy); text-overflow: ellipsis; white-space: nowrap; }
.club-contributor-card small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.club-contributor-card > b { color: var(--navy); font-size: 13px; white-space: nowrap; }
.contributor-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--navy); background: var(--yellow); font-size: 11px; font-weight: 800; }
.contributor-mark.relay { color: #125b50; background: #e2f8f1; }
.club-empty-copy { margin: 0; padding: 18px; color: var(--muted); border: 1px dashed var(--line); border-radius: 9px; }
.club-feed-row { width: 100%; min-height: 84px; display: grid; grid-template-columns: 58px minmax(180px, 1fr) auto 76px 18px; gap: 12px; align-items: center; padding: 12px 18px; text-align: left; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: var(--white); }
.club-feed-row:last-child { border-bottom: 0; }
.club-feed-row:hover, .club-feed-row:focus-visible { outline: none; background: var(--mist); }
.club-feed-row.medal-gold { border-left: 4px solid var(--gold); }
.club-feed-row.medal-silver { border-left: 4px solid var(--silver); }
.club-feed-row.medal-bronze { border-left: 4px solid var(--bronze); }
.club-feed-main { display: grid; min-width: 0; }
.club-feed-main strong { color: var(--navy); }
.club-feed-main small, .club-feed-main time { color: var(--muted); font-size: 12px; }
.club-feed-main time { margin-top: 3px; }
.club-feed-points { color: var(--navy); text-align: right; white-space: nowrap; }
.club-feed.compact .club-feed-row:nth-child(n+7) { display: none; }

.division-toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) auto auto; gap: 16px; align-items: center; margin-bottom: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--mist); }
.search-field { position: relative; display: block; }
.search-field svg { position: absolute; left: 14px; top: 50%; width: 19px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; }
.search-field input, .sort-field select { width: 100%; min-height: 45px; border: 1px solid #cbd7da; border-radius: 8px; background: var(--white); }
.search-field input { padding: 0 14px 0 43px; }
.search-field input:focus, .sort-field select:focus { outline: 3px solid rgba(35,90,243,.15); border-color: var(--blue); }
.filter-pills { display: flex; gap: 5px; }
.filter-pills button { min-height: 40px; padding: 7px 11px; border: 1px solid transparent; border-radius: 20px; color: var(--muted); background: transparent; font-size: 13px; font-weight: 700; }
.filter-pills button.active { color: var(--navy); border-color: #c8d4d8; background: var(--white); }
.filter-pills span { opacity: .7; }
.sort-field { display: grid; grid-template-columns: auto 110px; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.sort-field select { padding: 0 9px; color: var(--navy); font-weight: 600; }
.result-count { color: var(--muted); font-size: 14px; }
.division-list { display: grid; gap: 10px; }
.division-row { width: 100%; display: grid; grid-template-columns: 1fr auto auto 24px; gap: 25px; align-items: center; min-height: 86px; padding: 16px 20px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: var(--white); transition: border .18s, transform .18s; }
.division-row:hover { border-color: #afc0c6; transform: translateX(2px); }
.division-row h3 { margin: 0 0 3px; font-size: 18px; }
.division-row p { margin: 0; color: var(--muted); font-size: 13px; }
.row-stat { color: var(--muted); font-size: 13px; }
.row-arrow { color: var(--navy); font-size: 24px; }

footer { min-height: 160px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 35px max(24px, calc((100vw - 1180px) / 2)); color: #c7d7df; background: var(--navy-deep); }
footer p { margin: 0; font-size: 13px; }

.division-dialog { width: min(980px, calc(100% - 28px)); max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); padding: 0; border: 0; border-radius: 18px; color: var(--ink); box-shadow: 0 30px 90px rgba(3,20,35,.35); }
.division-dialog::backdrop { background: rgba(5,25,43,.72); backdrop-filter: blur(4px); }
.notification-dialog { width: min(680px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0; border: 0; border-radius: 18px; color: var(--ink); box-shadow: 0 30px 90px rgba(3,20,35,.35); }
.notification-dialog::backdrop { background: rgba(5,25,43,.72); backdrop-filter: blur(4px); }
.notification-shell { margin: 0; background: var(--white); }
.notification-header { position: sticky; top: 0; z-index: 2; background: var(--mist); }
.notification-content { max-height: calc(100dvh - 120px); padding: 24px; overflow-y: auto; }
.notification-intro { color: var(--muted); }
.notification-content fieldset { margin: 22px 0 0; padding: 0; border: 0; }
.notification-content legend { margin-bottom: 10px; color: var(--navy); font-size: 18px; font-weight: 800; }
.notification-content label { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.notification-content label:last-child { border-bottom: 0; }
.notification-content input { width: 20px; height: 20px; flex: none; margin: 2px 0 0; accent-color: var(--navy); }
.notification-content label span { display: grid; gap: 2px; }
.notification-content label strong { color: var(--navy); }
.notification-content label small { color: var(--muted); }
.notification-division-list { max-height: 230px; margin: 8px 0 0 32px; padding: 0 14px; overflow-y: auto; border-left: 3px solid var(--yellow); background: var(--mist); }
.notification-division-list label { padding: 9px 0; }
.notification-guidance { padding: 18px; border-left: 4px solid var(--yellow); border-radius: 8px; background: #fff9df; }
.notification-guidance h3 { margin: 0 0 7px; }
.notification-guidance p { margin: 0 0 8px; }
.notification-guidance ol { margin: 8px 0 0; padding-left: 22px; }
.notification-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.form-message { min-height: 24px; margin: 14px 0 0; color: var(--muted); }
.form-message.error { color: #a52625; }
.dialog-shell { min-height: min(760px, calc(100vh - 28px)); min-height: min(760px, calc(100dvh - 28px)); max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); display: flex; flex-direction: column; }
.dialog-header { position: relative; z-index: 1; flex: none; display: flex; justify-content: space-between; gap: 20px; padding: max(27px, env(safe-area-inset-top)) max(30px, env(safe-area-inset-right)) 20px max(30px, env(safe-area-inset-left)); border-bottom: 1px solid var(--line); }
.dialog-header > div { min-width: 0; }
.dialog-header h2 { margin: 0; font-size: 31px; overflow-wrap: anywhere; }
.icon-button { width: 42px; height: 42px; flex: 0 0 42px; border: 0; border-radius: 50%; color: var(--navy); background: var(--mist); font-size: 28px; line-height: 1; }
.dialog-tabs { display: flex; gap: 24px; padding: 0 max(30px, env(safe-area-inset-right)) 0 max(30px, env(safe-area-inset-left)); border-bottom: 1px solid var(--line); }
.dialog-tabs button { position: relative; padding: 15px 0 13px; border: 0; color: var(--muted); background: transparent; font-weight: 700; }
.dialog-tabs button.active { color: var(--navy); }
.dialog-tabs button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--yellow); }
.dialog-content { min-height: 0; flex: 1; padding: 26px max(30px, env(safe-area-inset-right)) max(40px, env(safe-area-inset-bottom)) max(30px, env(safe-area-inset-left)); overflow: auto; }
.round-block + .round-block { margin-top: 28px; }
.round-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.round-title h3 { margin: 0; font-size: 21px; }
.round-title span { color: var(--muted); font-size: 13px; }
.heat-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.heat-card + .heat-card { margin-top: 10px; }
.heat-heading { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; background: var(--mist); }
.heat-heading strong { color: var(--navy); }
.heat-heading span { color: var(--muted); font-size: 12px; }
.result-list { margin: 0; padding: 0; list-style: none; }
.result-row { display: grid; grid-template-columns: 36px 42px 1fr auto; gap: 10px; padding: 12px 15px; align-items: center; border-top: 1px solid var(--line); }
.place-medal { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--navy); background: #edf3f5; font-size: 13px; font-weight: 800; }
.place-medal.medal-gold { background: var(--gold); }
.place-medal.medal-silver { background: var(--silver); }
.place-medal.medal-bronze { background: var(--bronze); }
.competitor-name { display: block; color: var(--navy); font-weight: 700; }
.club-name { display: block; color: var(--muted); font-size: 12px; }
.competitor-detail { min-width: 0; }
.result-total { font-weight: 700; }
.dialog-loading { min-height: 330px; display: grid; place-items: center; color: var(--muted); }

@media (max-width: 900px) {
  .site-header { align-items: flex-start; }
  .header-actions { align-items: flex-end; display: grid; }
  .account-controls { justify-content: flex-end; }
  .event-picker { align-items: flex-start; }
  .status-grid { grid-template-columns: 1fr; }
  .activity-grid { width: 100%; display: flex; flex-direction: column; }
  .activity-column { width: 100%; min-width: 100%; display: contents; }
  .activity-panel { width: 100%; max-width: 100%; align-self: stretch; }
  .live-activity { order: 1; }
  .marshalling-activity { order: 2; }
  .marshalled-activity { order: 3; }
  .results-activity { order: 4; }
  .scheduled-activity { order: 5; }
  .division-toolbar { grid-template-columns: 1fr; }
  .athlete-heading-row { grid-template-columns: 1fr; }
  .athlete-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .athlete-stat-grid article:nth-child(2) { border-right: 0; }
  .athlete-stat-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .club-insight-grid, .club-contributor-columns { grid-template-columns: 1fr; }
  .club-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .club-stat-grid article:nth-child(2) { border-right: 0; }
  .club-stat-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .club-division-row { grid-template-columns: 68px minmax(180px, 1fr) 70px 18px; }
  .division-point-split { display: none; }
  .filter-pills { overflow-x: auto; }
  .sort-field { grid-template-columns: auto 1fr; }
}

@media (max-width: 640px) {
  :root { --page: min(100% - 28px, 1180px); }
  .site-header { min-height: auto; padding: 14px; display: grid; gap: 14px; }
  .header-actions { width: 100%; gap: 10px; }
  .brand-mark { width: 43px; }
  .event-picker { width: 100%; flex-wrap: wrap; }
  .event-picker select, .event-picker-controls { width: 100%; }
  .event-picker-or { display: none; }
  .event-picker input { flex: 1; width: auto; }
  .primary-nav { padding: 0 14px; gap: 23px; }
  .hero-inner { min-height: 260px; padding: 45px 0 50px; display: block; }
  .hero-actions { margin-top: 28px; flex-wrap: wrap; }
  .page-section { padding: 58px 0; }
  .section-heading { align-items: flex-start; display: grid; }
  .status-card { min-height: 130px; }
  .points-locked, .points-empty { grid-template-columns: 1fr; gap: 18px; padding: 24px 20px; }
  .points-locked-mark, .points-empty-mark { width: 62px; height: 62px; font-size: 20px; }
  .points-locked h3, .points-empty h3 { font-size: 24px; }
  .podium { grid-template-columns: 1fr; }
  .podium-card { min-height: auto; }
  .club-insight-section { padding-top: 30px; }
  .club-insight-hero { grid-template-columns: 65px 1fr; padding: 22px 18px; }
  .club-insight-cap { width: 65px; height: 65px; }
  .club-total { grid-column: 1 / 3; display: flex; align-items: baseline; justify-content: space-between; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.25); border-left: 0; text-align: left; }
  .club-total strong { font-size: 38px; }
  .club-panel-heading { align-items: flex-start; display: grid; }
  .contribution-legend { display: grid; }
  .placing-count-grid { grid-template-columns: repeat(4, 1fr); }
  .club-division-row { grid-template-columns: 1fr 70px 18px; }
  .club-event-number { grid-column: 1 / 4; }
  .club-feed-row { grid-template-columns: 50px 1fr 18px; }
  .club-feed-row .result-type { grid-column: 2; width: fit-content; }
  .club-feed-points { grid-column: 2; text-align: left; }
  .club-feed-row .row-arrow { grid-column: 3; grid-row: 1 / 4; }
  .club-contributor-card { grid-template-columns: 38px minmax(0, 1fr); }
  .club-contributor-card > b { grid-column: 2; }
  .division-row { grid-template-columns: 1fr 22px; gap: 10px; }
  .athlete-welcome { align-items: flex-start; }
  .athlete-profile { align-items: flex-start; padding: 22px 18px; }
  .athlete-stat-grid article { padding: 18px; }
  .athlete-results { padding: 0 10px 20px; }
  .athlete-result-row { grid-template-columns: 50px 38px 1fr 20px; }
  .athlete-result-row .result-type { grid-column: 3; width: fit-content; }
  .athlete-result-row .row-arrow { grid-column: 4; grid-row: 1 / 3; }
  .division-row .state-badge, .division-row .row-stat { grid-column: 1; }
  .division-row .row-arrow { grid-column: 2; grid-row: 1 / 3; }
  footer { align-items: flex-start; display: grid; }
  .division-dialog { width: 100%; max-width: none; max-height: 100vh; max-height: 100dvh; height: 100vh; height: 100dvh; margin: 0; border-radius: 0; }
  .notification-dialog { width: 100%; max-width: none; max-height: 100vh; max-height: 100dvh; height: 100vh; height: 100dvh; margin: 0; border-radius: 0; }
  .notification-shell { min-height: 100%; padding-bottom: env(safe-area-inset-bottom); }
  .notification-content { max-height: none; }
  .notification-actions .button { flex: 1 1 auto; }
  .dialog-shell { min-height: 100vh; min-height: 100dvh; max-height: 100vh; max-height: 100dvh; }
  .dialog-header { padding-top: max(20px, env(safe-area-inset-top)); padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
  .dialog-content { padding-right: max(18px, env(safe-area-inset-right)); padding-bottom: max(40px, env(safe-area-inset-bottom)); padding-left: max(18px, env(safe-area-inset-left)); }
  .dialog-tabs { padding-right: max(18px, env(safe-area-inset-right)); padding-left: max(18px, env(safe-area-inset-left)); }
  .result-row { grid-template-columns: 34px 38px 1fr; }
  .result-total { grid-column: 3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; color: var(--ink); background: var(--navy-deep); }
.login-shell { width: min(960px, 100%); min-height: 620px; display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; border-radius: 24px; background: var(--white); box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.login-panel { padding: clamp(38px, 7vw, 72px); }
.login-brand { margin-bottom: 72px; }
.login-brand .brand-copy strong { color: var(--navy); }
.login-panel h1 { max-width: 500px; margin-bottom: 15px; color: var(--navy); font-size: clamp(36px, 5vw, 54px); }
.login-intro { margin-bottom: 34px; color: var(--muted); }
.login-panel form { display: grid; gap: 9px; }
.login-panel form label { margin-top: 8px; color: var(--navy); font-size: 13px; font-weight: 700; }
.login-panel form input { min-height: 50px; padding: 0 14px; border: 1px solid #bdcbd0; border-radius: 9px; color: var(--navy); background: var(--white); }
.login-panel form input:focus { outline: 3px solid rgba(35,90,243,.15); border-color: var(--blue); }
.login-submit { width: 100%; margin-top: 18px; }
.login-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 16px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.login-divider::before, .login-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.guest-form { display: grid; gap: 10px; }
.login-guest-submit { width: 100%; border: 1px solid var(--navy); color: var(--navy); background: var(--white); }
.login-guest-submit:hover { color: var(--white); background: var(--navy); }
.guest-note { margin: 0; color: var(--muted); text-align: center; font-size: 12px; }
.login-error { margin: 8px 0 0; padding: 10px 12px; border-left: 3px solid var(--red); color: #8d2524; background: #fff0ef; }
.login-aside { position: relative; display: flex; align-items: flex-end; overflow: hidden; padding: 56px; color: var(--white); background: linear-gradient(145deg, var(--navy) 0%, var(--navy-soft) 100%); }
.login-aside::before { content: ""; position: absolute; width: 420px; height: 420px; left: -130px; top: -130px; border: 70px solid rgba(248,211,71,.12); border-radius: 50%; }
.login-aside p { position: relative; z-index: 1; margin: 0; font-size: clamp(32px, 4vw, 48px); font-weight: 800; line-height: 1.08; }
.login-wave { position: absolute; inset: auto -50px 210px 20px; height: 80px; transform: rotate(-8deg); }
.login-wave i { display: block; height: 28px; border-top: 6px solid var(--yellow); border-radius: 50%; }

@media (max-width: 700px) {
  .login-page { padding: 0; background: var(--white); }
  .login-shell { min-height: 100vh; grid-template-columns: 1fr; border-radius: 0; box-shadow: none; }
  .login-panel { padding: 34px 24px 48px; }
  .login-brand { margin-bottom: 58px; }
  .login-aside { display: none; }
}
