.portal-body{background:#f7fafb}.portal-wrap{padding-top:48px;padding-bottom:72px}.portal-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:32px}.portal-heading h1{font-size:clamp(42px,6vw,72px);line-height:1.05;letter-spacing:-.06em;margin:8px 0 14px}.portal-heading>div>p:last-child{font-size:18px;color:#53667d}.portal-card{background:white;border:1px solid #dce7ec;border-radius:22px;padding:30px;margin:24px 0;box-shadow:0 5px 18px #13294303}.portal-card.tone-blue{background:linear-gradient(135deg,#f7fcfe,#edf7fa);border-color:#d5e8ee}.portal-card.tone-yellow{background:linear-gradient(135deg,#fffdf5,#fff8df);border-color:#eee5c2}.portal-card h2{font-size:28px;letter-spacing:-.035em;margin:8px 0 18px}.portal-card p{line-height:1.7}.portal-message{padding:16px 20px;border-radius:12px;background:#edf5f8;color:#345468}.portal-message:empty{display:none}.portal-filters{display:flex;gap:20px;align-items:end;margin:26px 0}.portal-filters .field{flex:1;margin:0;max-width:380px}.pass-card{background:linear-gradient(120deg,#edf7fa 0%,#f4faf6 100%);border:1px solid #cde1e4;border-radius:24px;padding:30px}.pass-card h2{font-size:30px;margin:8px 0 12px;letter-spacing:-.04em}.pass-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:26px 0}.pass-metrics>div{background:#ffffffab;border:1px solid #dce9e8;border-radius:15px;padding:18px 22px}.pass-metrics strong{display:block;font-size:44px;letter-spacing:-.06em;line-height:1.15}.pass-metrics span{color:#526b71;font-size:14px}.pass-metrics .remaining{background:#e2f2e6;border-color:#c0dcca}.pass-foot{display:flex;justify-content:space-between;align-items:center;gap:24px}.pass-foot p{margin:0;color:#48616a;font-size:14px;max-width:570px}.pass-foot .primary{white-space:nowrap;text-decoration:none}#pass-detail{margin-top:22px;font-size:14px}#pass-detail summary{cursor:pointer;font-weight:650}#pass-history>div{display:flex;justify-content:space-between;gap:16px;margin:12px 0;padding:12px 0;border-bottom:1px solid #dce9e8}.swim-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:24px 0}.stat-card{border:1px solid #dde7eb;border-radius:18px;background:#fff;padding:22px 18px}.stat-card>span{display:block;font-size:13px;color:#4d6475;line-height:1.5;min-height:38px}.stat-card strong{display:block;font-size:30px;line-height:1.2;letter-spacing:-.045em;margin:8px 0}.stat-card small{font-size:11px;line-height:1.5;color:#637988}.section-header{display:flex;justify-content:space-between;align-items:center;gap:24px}.section-header>span{font-size:13px;color:#637988}.table-scroll{overflow-x:auto}.results-table{width:100%;border-collapse:collapse;font-size:14px}.results-table th{font-size:11px;font-weight:650;letter-spacing:.05em;color:#627584;text-align:left;padding:14px 12px;border-bottom:1px solid #cfdde4;white-space:nowrap}.results-table td{padding:17px 12px;border-bottom:1px solid #e6eef2;white-space:nowrap}.results-table td:first-child{font-weight:600;min-width:180px}.results-table tbody tr:last-child td{border-bottom:0}.portal-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px}.portal-columns .portal-card{margin-top:0}.metric-row{display:flex;justify-content:space-between;gap:16px;padding:13px 0;border-bottom:1px solid #dce7ec;font-size:14px}.metric-row small{display:block;color:#5c7181;margin-top:4px}.metric-row strong{text-align:right;white-space:nowrap}.pace-chart{margin:20px 0}.pace-chart svg{width:100%;height:auto;display:block}.pace-chart text{font:11px Arial,sans-serif;fill:#627584}.team-actions,.cap-save-actions{display:flex;gap:12px;flex-wrap:wrap}.team-portal h3{font-size:24px;letter-spacing:-.025em}.team-portal #team-public-cap{text-align:center;padding:24px 0;border-top:1px solid #e2ebef;margin-top:24px}.team-portal #team-cap-image{width:220px;max-width:100%;height:200px;object-fit:contain}.cap-design-grid{display:grid;grid-template-columns:1fr 1.1fr;gap:32px;align-items:start}.cap-preview-panel{padding:28px;background:#f3f7f8;border:1px solid #dde7ec;border-radius:18px;position:sticky;top:24px}.cap-preview-panel svg{display:block;width:100%;height:auto;max-height:340px}.cap-preview-panel p{text-align:center;margin-top:20px}.shape-actions{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.shape-actions button{background:#edf5f8;border:1px solid #cbdee6;color:var(--navy);border-radius:20px;padding:8px 12px;font-size:12px}.cap-shape{background:#f7fafb;border:1px solid #dbe7ec;border-radius:12px;padding:16px;margin:12px 0}.cap-shape-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.cap-shape-fields{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.cap-shape-fields label{font-size:12px;color:#526979}.cap-shape-fields input{display:block;max-width:100%;margin-top:4px}.cap-shape input[type=number]{height:38px}.cap-shape input[type=color],#cap-colour{height:44px;width:80px;padding:4px}.cap-shape-head button{background:none;border:none;color:#7b4b50;font-size:12px}.cap-save-actions{margin-top:20px}.cap-save-actions button{font-size:13px}#cap-designer{border-top:1px solid #dce7ec;margin-top:28px;padding-top:28px}#cap-lock-state{background:#e9f2ed;color:#39604e;padding:7px 12px;border-radius:20px;font-size:12px}textarea{width:100%;border:1px solid #cbdbe4;border-radius:9px;padding:12px;background:#fff;font:inherit;color:var(--navy)}.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}@media(max-width:900px){.swim-stat-grid{grid-template-columns:repeat(2,1fr)}.cap-design-grid{grid-template-columns:1fr}.cap-preview-panel{position:static}.portal-columns{grid-template-columns:1fr;gap:0}}@media(max-width:560px){.portal-wrap{padding-top:30px}.portal-card,.pass-card{padding:22px 17px;border-radius:18px}.portal-heading{align-items:flex-start}.portal-heading>div>p:last-child{font-size:16px}.portal-filters{flex-direction:column;align-items:stretch;gap:14px}.portal-filters .field{max-width:none}.pass-metrics{gap:8px}.pass-metrics>div{padding:14px 11px}.pass-metrics strong{font-size:34px}.pass-metrics span{font-size:12px}.pass-foot{flex-direction:column;align-items:stretch;gap:18px}.pass-foot .primary{text-align:center}.swim-stat-grid{gap:10px}.stat-card{padding:17px 13px}.stat-card strong{font-size:25px}.section-header{align-items:flex-start;flex-direction:column;gap:0}.results-table td,.results-table th{padding-left:8px;padding-right:8px}.cap-preview-panel{padding:18px}}

.upcoming-entry{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px 0;border-top:1px solid #d8e7eb}.upcoming-entry small{display:block;color:#57707c;margin-top:5px}.race-change-form{margin-top:18px;padding:24px;border:1px solid #c9dfe5;border-radius:16px;background:#fff}.race-change-form h3{margin-top:0}.race-change-form #change-quote{padding:12px 16px;background:#f2f8f7;border-radius:10px}.race-change-form .check{margin:20px 0}@media(max-width:560px){.upcoming-entry{align-items:flex-start;flex-direction:column;gap:10px}.race-change-form{padding:18px 14px}.race-change-form .team-actions{flex-direction:column;align-items:stretch}}


/* Placings retain the series podium colours as well as readable rank numbers. */
.result-place{display:inline-flex;min-width:2rem;min-height:2rem;align-items:center;justify-content:center;border-radius:.55rem;font-weight:800;font-variant-numeric:tabular-nums;padding:.2rem .5rem;color:#061b3c}
.result-place.podium-1{background:#ffe600}.result-place.podium-2{background:#ffc5e8}.result-place.podium-3{background:#afe4f9}
.result-category{display:block;font-size:.72rem;color:#536579;margin-top:.2rem;white-space:nowrap}

.dashboard-hero{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:end;min-height:clamp(170px,24vw,295px);border-radius:24px;color:#fff;background:#10263e;margin-bottom:20px}
.dashboard-hero img,.dashboard-hero::after{position:absolute;inset:0;width:100%;height:100%;z-index:-1}
.dashboard-hero img{object-fit:cover;object-position:center 53%}
.dashboard-hero::after{content:'';background:linear-gradient(90deg,#071a2ddd 0%,#071a2d55 65%,#071a2d20 100%)}
.dashboard-hero h1{margin:0;padding:clamp(20px,4vw,48px);font-size:clamp(2.35rem,6vw,4.3rem);line-height:1.05;color:inherit}
.athlete-details{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:10px;margin-bottom:16px}
.athlete-details[hidden]{display:none}
.athlete-details h2{margin:0}.athlete-details p{margin:4px 0 0;color:#53667d}
.athlete-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.athlete-actions a{text-decoration:none}
#upcoming-races{scroll-margin-top:20px}
@media(max-width:640px){.athlete-details{align-items:flex-start;flex-direction:column}.dashboard-hero{border-radius:18px}}
.dashboard-hero #account-logout{color:#fff;background:#10263e;padding:8px 12px;border-radius:8px}

.race-result-list { display: grid; gap: .75rem; }
.race-result-card {
  min-width: 0;
  padding: clamp(.9rem, 2vw, 1.25rem);
  border: 1px solid #ccdee6;
  border-radius: .85rem;
  color: #142f48;
  font-variant-numeric: tabular-nums;
}
.race-result-heading, .race-result-meta, .race-result-stats, .race-result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}
.race-result-heading { justify-content: space-between; gap: .5rem 1.5rem; }
.race-result-heading h3 { margin: 0; font-size: 1.15rem; overflow-wrap: break-word; }
.race-result-meta { gap: .15rem .85rem; margin-top: .25rem; color: #475d70; font-size: .875rem; }
.race-result-status { text-transform: capitalize; }
.race-result-card dl, .race-result-card dd { margin: 0; font-size: 1rem; text-align: left; }
.race-result-card dt { color: #475d70; font-size: .875rem; }
.race-result-card .race-result-time dd { font-size: 1.35rem; font-weight: 750; }
.race-result-card .race-result-stats {
  align-items: baseline;
  gap: .65rem 1.5rem;
  padding-top: .75rem;
  margin-top: .75rem;
  border-top: 1px solid #e0e9ed;
}
.race-result-stats > div { display: block; margin: 0; }
.race-result-stats dd { margin-top: .2rem; font-weight: 650; }
.race-result-stats .result-place { min-width: 1.7rem; min-height: 1.55rem; padding: .1rem .35rem; }
.race-result-stats .result-category { white-space: normal; font-size: .85rem; font-weight: 400; }
.race-result-team { flex: 1 1 13rem; min-width: 0; overflow-wrap: break-word; }
.race-result-actions { align-items: center; gap: .45rem .75rem; margin-top: .85rem; }
.race-result-actions .race-media-button { margin: 0; min-height: 2.5rem; font-size: .9rem; }
.race-result-actions details { min-width: 0; max-width: 100%; }
.race-result-actions details[open] { flex-basis: 100%; }
.race-result-actions details summary { font-size: .9rem; }
.race-result-actions form { display: flex; align-items: end; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
@media (max-width: 600px) {
  .race-result-heading { align-items: flex-start; }
  .race-result-card .race-result-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .race-result-team { grid-column: 1 / -1; }
}

.profile-panel details,.race-results{background:white;border-radius:1rem;margin:1rem 0;padding:1.25rem;border:1px solid #d4e3e9}
.profile-panel:empty{display:none}
.profile-panel summary,.race-results summary{font-size:1.15rem;font-weight:750;cursor:pointer}
.profile-panel fieldset{border:0;padding:0;margin:1.5rem 0}
.profile-panel legend{font-weight:750;margin-bottom:.75rem}
.race-results summary span{font-size:1rem;font-weight:500;margin-left:.5rem}
.topup-choice{display:flex;align-items:end;gap:.75rem;flex-wrap:wrap}
.topup-choice .field{margin:0;min-width:9rem}
.topup-choice[hidden],#upcoming-races[hidden],#athlete-change-race[hidden]{display:none}

.dashboard-hero-actions {
  position: absolute;
  inset: 12px 12px auto;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}
.dashboard-hero-actions .result-report {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 12px;
  background: #ffe644;
  color: #10263e;
  border-radius: 8px;
  font-weight: 750;
  text-decoration: none;
}
.dashboard-hero-actions .result-report:focus-visible {
  outline: 3px solid white;
  outline-offset: 2px;
}
@media (max-width: 480px) {
  .dashboard-hero { padding-top: 92px; }
}

.swim-gamification {display:grid; gap:1rem; margin-block:1rem;}
.swim-game > summary {cursor:pointer; font-size:1.15rem; font-weight:800;}
.swim-game [role="status"]:empty {display:none;}
.swim-game-actions {display:flex; flex-wrap:wrap; gap:.65rem; align-items:center; margin-block:.7rem;}
.swim-game-form {display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr)); align-items:end; gap:.75rem; margin-block:1rem;}
.swim-game-form p {grid-column:1/-1; margin:0;}
.swim-game-form button {justify-self:start;}
.swim-game-item {border:1px solid #d8e1ee; border-radius:12px; padding:.85rem; margin-block:.5rem; background:#fff;}
.swim-game-item h3,.swim-game-item h4,.swim-game-item p {margin:0 0 .4rem;}
.swim-game-badges {display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr)); gap:.65rem; margin-block:.85rem;}
.swim-game-badges .swim-game-item {margin:0;}
.swim-game-earned {border-color:#987000; background:#fff5c6;}

.race-media-button{display:block;margin:.45rem 0 0;padding:.45rem .65rem;color:#075978;background:white;border:1px solid #90bec8;border-radius:.45rem;max-width:100%;white-space:normal}
.race-media{padding:1rem 0;scroll-margin:1rem}.race-media h3,.race-media h4{margin:.8rem 0}
.race-media h4{font-size:1.2rem}.race-media section{margin:1rem 0;padding:1rem;border:1px solid #c5dce1;border-radius:.85rem;background:white}
.race-media button{margin:.35rem .45rem .35rem 0;min-height:42px}.race-media iframe,.watch-track{display:block;border:0;width:100%;height:clamp(290px,52vh,440px);margin:.6rem 0}
.race-media .field{display:grid;gap:.3rem;margin:.6rem 0}.race-media input{max-width:100%;box-sizing:border-box}
.watch-metrics,.swim-photo-grid{display:grid;gap:.75rem;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr))}
.watch-metrics dd{margin:0;font-weight:700}.swim-photo-grid img{display:block;width:100%;height:150px;object-fit:cover;border-radius:.5rem}.race-media .check{display:flex;gap:.45rem;align-items:flex-start}

.swim-photo-grid{grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr))}
.swim-photo-grid textarea{box-sizing:border-box;resize:vertical;line-height:1.45}
.race-story{margin:0;background:#f3f8fa;color:#10293c;font:1rem/1.55 system-ui,sans-serif}
.race-story main{max-width:44rem;margin:auto;padding:clamp(1rem,5vw,3rem)}
.race-story main>p{color:#075978;font-weight:700}.race-story h1{line-height:1.1}
.race-story figure{margin:0}.race-story img{width:100%;height:auto;display:block;border-radius:.75rem}
.race-story figcaption{margin:1rem 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:1.125rem}

#trophy-cabinet > summary {color:#0c3552}
.trophy-controls {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr));gap:.75rem;margin:1rem 0}
.trophy-controls input,.trophy-controls select {width:100%;min-width:0;box-sizing:border-box}
#trophy-cabinet .swim-game-badges {grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr));gap:.75rem}
#trophy-cabinet article {display:grid;grid-template-columns:3.6rem minmax(0,1fr);gap:.8rem;align-content:start;padding:.95rem}
#trophy-cabinet .trophy-seal {width:3.5rem;align-self:start;text-align:center;color:#12344e;background:#edf3f7;border:2px solid #9cb3c1;border-radius:1.7rem 1.7rem 1rem 1rem;padding:.35rem 0 .15rem;box-sizing:border-box}
.trophy-seal span {display:block;font:1.6rem/1.2 "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.trophy-seal small {display:block;font:bold .65rem/1.2 ui-monospace,monospace;letter-spacing:.08em}
#trophy-cabinet .swim-game-earned .trophy-seal {background:#ffe260;border-color:#b17b00}
.trophy-copy {min-width:0}.trophy-copy h3 {font-size:1.1rem;line-height:1.2}.trophy-copy>small {color:#425c70;font-weight:650}
.trophy-copy>strong {font-size:.83rem;color:#174461}.trophy-copy progress {display:block;width:100%;height:.5rem;accent-color:#0080aa}

.trophy-idea-form {display:grid;gap:.8rem;max-width:38rem}
.trophy-idea-form button {justify-self:start}
.trophy-idea-form textarea {width:100%;font:inherit;padding:.65rem;box-sizing:border-box}
.swim-gamification,.trophy-board {min-width:0}
.reward-deck {max-width:34rem;margin:.8rem auto 1.15rem;color:#12334c}
.reward-filters,.reward-nav {display:flex;align-items:center;gap:.6rem}
.reward-filters>* {flex:1;min-width:0;width:45%;font:inherit;background:#fff;color:#12334c;border:1px solid #a7bbc9;border-radius:.55rem;padding:.6rem}
.reward-filters select {flex:1.35}
.reward-stage {position:relative;isolation:isolate;touch-action:pan-y;user-select:none;cursor:grab;margin:1rem .6rem 1.35rem;outline-offset:6px}
.reward-stage.is-stack::before,.reward-stage.is-stack::after {content:'';position:absolute;z-index:-1;inset:0 5px -6px;background:#d2eaf3;border:1px solid #8facbe;border-radius:18px;transform:rotate(1deg)}
.reward-stage.is-stack::before {inset:0 11px -10px;background:#f3d469;transform:rotate(-1.2deg)}
.reward-face {box-sizing:border-box;position:relative;overflow:hidden;display:grid;align-content:center;justify-items:center;text-align:center;min-height:16.8rem;padding:1.2rem clamp(1rem,4vw,2rem);border:1px solid #537b8c;border-radius:18px;background:#e8f5fa;color:#102f47;box-shadow:0 3px 10px #122f4214;transition:transform .14s ease-out}
.reward-face[data-kind=prize] {background:#fff4c9;border-color:#b79a42}
.reward-face[data-kind=century] {background:#e2f5ef;border-color:#629e94}
.reward-face[data-kind=partner] {background:#edeaff;border-color:#8984b8}
.reward-face::before {content:'';position:absolute;pointer-events:none;inset:0;background:repeating-radial-gradient(ellipse at 108% -30%,transparent 0 19px,#10395112 20px 21px,transparent 22px 34px);mask-image:linear-gradient(220deg,#000,transparent 66%)}
.reward-face>* {position:relative;max-width:100%;overflow-wrap:anywhere}
.reward-symbol {display:grid;place-items:center;min-width:4.25rem;height:4.25rem;border-radius:50%;background:#ffffffa8;border:1px solid #143d5024;font-size:2.35rem;line-height:1;margin-bottom:.7rem}
.reward-face small {font-size:.72rem;font-weight:750;letter-spacing:.08em;text-transform:uppercase}
.reward-face h4 {font-size:clamp(1.4rem,4vw,1.95rem);letter-spacing:-.035em;line-height:1.12;margin:.35rem 0}
.reward-face p {margin:.2rem 0 0;line-height:1.45;max-width:42ch}
.reward-stage.is-dragging {cursor:grabbing}.is-dragging .reward-face {transition:none}
.reward-nav {justify-content:space-between}.reward-nav button {padding:.6rem .85rem;min-height:44px;border:1px solid #a7bbc9;border-radius:2rem;background:#fff;color:#12334c;font:inherit;font-weight:650;cursor:pointer}
.reward-nav button:disabled {opacity:.5;cursor:default}.reward-nav output {font-variant-numeric:tabular-nums;font-size:.88rem;font-weight:700}
.reward-hint {font-size:.85rem;text-align:center;color:#486071;margin:.6rem 0}.reward-deck>button {display:block;margin:.7rem auto}.reward-deck [hidden] {display:none}
@media(prefers-reduced-motion:reduce){.reward-face {transition:none}}
.century-shelf {margin-top:1rem;border-top:2px solid #e7bb38;padding-top:.8rem}

.swim-tabs{display:flex;gap:.5rem;flex-wrap:wrap;margin:1.5rem 0}.swim-tabs a{background:white;border:1px solid #a6bfcd;color:#143e57;font-weight:700;border-radius:2rem;padding:.65rem 1rem;text-decoration:none}.swim-tabs [aria-current]{background:#092e4d;color:white}#reward-total{font-size:1.5rem;font-weight:700}#swim-rewards li{margin:.6rem 0}.race-story video,.swim-photo-grid video{max-width:100%;width:100%;max-height:65vh;border-radius:.6rem;background:#102535}.swim-photo-grid .media-upload{width:100%}

.recap-card summary {font-size:1.15rem;font-weight:750;cursor:pointer}
.recap-card details>label {margin:1rem 0}.recap-frame {margin:.7rem 0;overflow:hidden;border:1px solid #a3b6ac;border-radius:12px}.recap-frame canvas {width:100%;display:block;touch-action:none}
.recap-card input[type=range] {width:100%;accent-color:#116272}.recap-card output {display:block;margin:.4rem 0 .8rem;color:#25454c;font-weight:650}
.recap-choices,.recap-controls {display:flex;gap:.6rem;flex-wrap:wrap;align-items:end;margin:.75rem 0}.recap-choices label {flex:1;min-width:min(10rem,100%)}.recap-choices select {width:100%;max-width:100%}
.recap-card form {display:grid;gap:.65rem;max-width:40em;margin:1rem 0}.recap-card form button {justify-self:start}.recap-card img {border-radius:50%;object-fit:cover}.recap-card form img[hidden] {display:none}
.recap-public{margin:0;background:#f7f5ec;color:#112f38;font-family:system-ui,sans-serif}.recap-public main{max-width:100%;margin:0 auto;padding:clamp(.5rem,2vw,1.2rem)}.recap-public h1{font-size:clamp(1.35rem,3vw,2.1rem);margin:0}.recap-public p{margin:.5rem 0}.race-media-button.buoy-replay{background:#ffdf58;color:#193b43;border-color:#bf9a24;font-weight:750}

.recap-zoom{display:flex;align-items:center;flex-wrap:wrap;gap:.45rem .65rem;margin:.6rem 0;color:#193c45}
.recap-zoom .field{display:grid;gap:.1rem;font-size:.8rem;flex:1 1 105px;max-width:230px}
.recap-zoom input[type=range]{width:100%;margin:0;accent-color:#187789}
.recap-zoom output{font-variant-numeric:tabular-nums;min-width:3.8em;font-weight:700}
.recap-frame canvas:focus-visible{outline:3px solid #127d88;outline-offset:-3px}

.sss-record-panel{background:#fff;border:1px solid #dce5ed;border-top:5px solid #60c9f2;color:#071e36;border-radius:16px;padding:clamp(14px,2.2vw,24px);margin:16px 0;font-family:Arial,Helvetica,sans-serif}
.sss-record-panel h3{font-size:clamp(20px,2.2vw,28px);line-height:1.13;margin:0 0 14px;color:#071e36;font-weight:800}
.sss-record-panel p{margin:.6rem 0;color:#52677a;font-size:.91rem}.sss-record-panel a,.recap-card a{color:#075981;text-decoration:underline;text-underline-offset:3px}
.sss-record-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,138px),1fr));gap:8px;margin:10px 0 14px}
.sss-record-grid>div{padding:10px 12px;background:#e8f8fe;border-radius:8px}.sss-record-grid>div:nth-child(3n+2){background:#fff6c7}.sss-record-grid>div:nth-child(3n){background:#fff0f6}
.sss-record-grid dt{color:#34506c;font-size:.77rem;font-weight:650}.sss-record-grid dd{margin:5px 0 0;color:#071e36;font-size:1.16rem;font-weight:800;font-variant-numeric:tabular-nums}
.sss-record-charts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px}.sss-record-charts figure{margin:0;background:#f6faff;padding:8px;border-radius:8px}.sss-record-charts figcaption{font-size:.8rem}.sss-record-charts canvas{width:100%;height:auto}
.recap-frame{border:1px solid #071e36;border-radius:14px;overflow:hidden;background:#071e36}.recap-card .recap-controls button,.recap-card .recap-zoom button{border:1px solid #a9c3d4;color:#071e36;background:#fff;border-radius:999px;font-weight:700}.recap-card .recap-controls button:nth-child(3){background:#ffe044;border-color:#071e36}
.recap-card input[type=range]{accent-color:#0b739a}.recap-public{background:#edf7fb;color:#071e36}.recap-public .recap-card{max-width:1160px;margin:auto}

.sss-series-links{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin:4px 0 12px}.sss-series-links a{color:#075479;font-weight:700;font-size:.88rem}.sss-series-links a:last-child{margin-left:auto}

.sss-briefing{padding:12px 16px;border-left:5px solid #ffe044;background:#fff9dc;border-radius:8px;margin:10px 0 16px}.sss-briefing h4{font-size:1.02rem;margin:0}.sss-briefing p{color:#17354d;margin:.4rem 0}.sss-briefing small{color:#52677a}

.replay-guide{max-width:960px;margin:auto;padding:clamp(16px,4vw,40px);line-height:1.5}.replay-guide video{display:block;width:100%;height:auto;aspect-ratio:16/9;border-radius:12px;background:#071e36}.replay-guide li{margin:.6rem 0}.replay-guide summary{cursor:pointer;font-weight:700}.replay-guide a{color:#075479}

/* Swimmer dashboard */
.portal-body {background:#f3f7fa;color:var(--navy)}
.portal-wrap {padding-top:24px}
.dashboard-hero {min-height:145px;border-radius:20px;margin-bottom:22px}
.dashboard-hero h1 {font-size:clamp(2.1rem,4.5vw,3.6rem);letter-spacing:-.055em;padding:25px 32px}
.dashboard-shell {display:grid;grid-template-columns:minmax(185px,222px) minmax(0,1fr);gap:clamp(18px,3.4vw,46px);align-items:start}
.dashboard-rail {position:sticky;top:20px;padding:12px;border-radius:19px;background:white;border:1px solid #dbe4eb}
.swim-tabs {display:grid;gap:7px;margin:0}
.swim-tabs a {--tab:#77d2f1;display:flex;align-items:center;gap:11px;position:relative;min-height:49px;padding:6px 12px;border:1px solid transparent;border-radius:11px;background:#fff;color:#163454;font-size:.97rem;font-weight:730}
.swim-tabs [data-view=wallet] {--tab:#ffe34e}
.swim-tabs [data-view=personal] {--tab:#ff9dcc}
.swim-tabs [data-view=transfers] {--tab:#80dfca}
.swim-tabs .nav-glyph {width:31px;height:31px;flex:0 0 31px;display:grid;place-items:center;background:var(--tab);border-radius:8px;font-size:21px;font-weight:750;color:#0b2947;line-height:1}
.swim-tabs a[aria-current],.swim-tabs a:hover {background:color-mix(in srgb,var(--tab) 32%,white);border-color:color-mix(in srgb,var(--tab) 72%,#c4d4d9);color:#0a2845}
.dashboard-rail .portal-filters {display:grid;gap:10px;padding:15px 4px 2px;border-top:1px solid #e1e8ed;margin:14px 0 0}
.dashboard-rail .field select {width:100%;min-width:0;padding:8px 10px;font-size:14px;border-radius:7px}
.dashboard-rail .field label {font-size:12px;margin:0 0 4px}
.dashboard-panels,.view-panel {min-width:0}
.view-panel .view-title {font-size:clamp(1.8rem,3vw,2.55rem);line-height:1.05;letter-spacing:-.055em;margin:0 0 17px}
.view-panel>section:first-of-type,.view-panel .athlete-details {margin-top:0}
#dashboard-content .swim-stat-grid {margin-top:0}
.wallet-face {position:relative;isolation:isolate;overflow:hidden;padding:clamp(19px,3vw,31px);border:1px solid #e2c746;border-radius:19px;color:#102742;background:linear-gradient(114deg,#fff076 0%,#ffe253 52%,#ffcc3a 100%)}
.wallet-face::after {content:"";position:absolute;z-index:-1;inset:-8% -5% -38% 51%;transform:rotate(-13deg);background:repeating-radial-gradient(ellipse at 100% 100%,transparent 0 13px,#e99f29 14px 17px,transparent 18px 25px);opacity:.48;pointer-events:none}
.wallet-face-top {display:flex;justify-content:space-between;align-items:center;font-weight:760}
.wallet-face-top span:first-child {font-size:1.1rem}
.wallet-face-top span:last-child {font-size:.75rem;letter-spacing:.13em}
.wallet-face #reward-total {font-size:clamp(3.5rem,6.7vw,5.7rem);letter-spacing:-.075em;line-height:1;margin:12px 0 9px;font-weight:800;font-variant-numeric:tabular-nums}
#wallet-owner {font-size:.92rem;font-weight:600;margin:0}
.wallet-expiry {margin:10px 0 0;padding:11px 14px;background:#e2eff5;border-radius:9px;color:#25465e;font-size:.92rem}
.wallet-feedback,.wallet-retail {font-size:.85rem;color:#465b70;margin:10px 2px 17px}
.wallet-feedback a {font-weight:720;color:#125366;text-underline-offset:2px}
.wallet-sheet {padding:19px clamp(15px,2.7vw,28px);margin:15px 0;background:white;border:1px solid #dae4eb;border-radius:16px}
.wallet-sheet h3,.wallet-sheet summary {margin:0;font-size:1.22rem;font-weight:730;letter-spacing:-.035em}
.wallet-sheet summary {cursor:pointer}
.wallet-sheet summary + div {margin-top:14px;font-size:.9rem}
#reward-activity {list-style:none;margin:7px 0 0;padding:0}
#swim-rewards #reward-activity li {display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:15px;border-top:1px solid #e4ecf1;padding:11px 0;margin:0}
#reward-activity li:first-child {border-top:0}
#reward-activity strong {font-size:.96rem}
#reward-activity time {color:#566d80;font-size:.84rem}
#reward-activity span {font-variant-numeric:tabular-nums;color:#006e59;font-weight:760}
#reward-meter {display:block;width:100%;margin:12px 0;height:9px;accent-color:#158b78}
#reward-milestones {padding-left:20px}
#reward-progress {margin:7px 0}
@media(max-width:760px) {
 .portal-body .wrap {width:calc(100% - 26px)}
 .portal-wrap {padding-top:12px}
 .dashboard-hero {min-height:108px;margin-bottom:13px}
 .dashboard-shell {grid-template-columns:minmax(0,1fr);gap:16px}
 .dashboard-rail {position:static;padding:8px}
 .swim-tabs {grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}
 .swim-tabs a {display:flex;flex-direction:column;justify-content:center;gap:4px;padding:5px 0;font-size:clamp(.68rem,2.9vw,.85rem);line-height:1.2;white-space:nowrap}
 .swim-tabs .nav-glyph {width:25px;height:25px;flex-basis:25px;font-size:17px}
 .dashboard-rail .portal-filters {grid-template-columns:1.15fr 1fr;gap:10px;margin-top:8px;padding:8px 3px 0}
 .dashboard-rail .field select {padding:5px 6px}
 .dashboard-hero h1 {font-size:2.05rem;padding:14px 16px}
 .view-panel .view-title {margin-bottom:12px}
 #swim-rewards #reward-activity li {grid-template-columns:minmax(0,1fr) auto;row-gap:1px}
 #reward-activity li time {grid-row:2;grid-column:1}
 #reward-activity li span {grid-row:1 / 3;grid-column:2}
}

#trophy-cabinet .trophy-filter-box {margin:.65rem 0}
.trophy-filter-box > summary {cursor:pointer;font-weight:650}
.trophy-swipe-hint {font-size:.9rem;color:#40596a;margin:.4rem 0}
@media (max-width:700px){
 #trophy-cabinet .trophy-controls {grid-template-columns:1fr 1fr;gap:.5rem}
 #trophy-cabinet .trophy-controls label:last-child {grid-column:1/-1}
 #trophy-cabinet .trophy-swipe {display:flex;position:relative;max-width:100%;min-width:0;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;gap:.65rem;scrollbar-width:none;margin:.55rem 0}
 #trophy-cabinet .trophy-swipe::-webkit-scrollbar {display:none}
 #trophy-cabinet .trophy-swipe article {flex:0 0 100%;box-sizing:border-box;scroll-snap-align:start;scroll-snap-stop:always;min-width:0;align-content:center;padding:1rem;min-height:9rem;margin:0}
 .trophy-swipe:focus-visible {outline:2px solid #087f9e;outline-offset:2px}
 .trophy-swipe-nav {display:flex;align-items:center;justify-content:center;gap:1rem;margin:.25rem 0}
 .trophy-swipe-nav button {min-width:44px;min-height:44px;font-size:1.45rem;line-height:1}
 .trophy-swipe-nav output {min-width:5rem;text-align:center;font-variant-numeric:tabular-nums}
}

.crew-race-media-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:12px}
.crew-race-media-gallery figure{margin:0;overflow:hidden;border:1px solid #d2e2e8;border-radius:10px}
.crew-race-media-gallery :is(img,video){display:block;width:100%;max-height:320px;object-fit:contain;background:#eaf4f9}
.crew-race-media-gallery figcaption{padding:8px 10px;font-size:.88rem}
#crew-race-media-status:empty{display:none}

.swim-offers-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.swim-offers-grid .swim-offer{position:relative;display:flex;flex-direction:column;overflow:hidden;border:1px solid #c3d8df;border-radius:10px;background:#fff;color:#082c40;text-decoration:none;line-height:1.4}
.swim-offer img{display:block;width:100%;height:115px;object-fit:cover}
.swim-offer div{padding:14px;flex:1;display:flex;flex-direction:column;align-items:flex-start}
.swim-offer h3{margin:4px 0;color:inherit;font-size:1.16rem}
.swim-offer p{margin:0 0 12px;color:inherit;font-size:.94rem}
.swim-offer small{color:inherit;font-weight:600}.swim-offer strong{margin-top:auto;text-decoration:underline}
.swim-offers-grid .ocean{background:#e4f4f7;border-top:4px solid #12627a}.swim-offers-grid .glyde{background:#132e3b;color:#fff;border-top:4px solid #e9d92d}
.swim-offer:focus-visible{outline:3px solid #b04600;outline-offset:2px}
@media(max-width:640px){.swim-offers-grid{grid-template-columns:1fr}.swim-offers-grid .holiday{display:grid;grid-template-columns:32% 1fr}.swim-offer img{height:100%;min-height:115px}.swim-offer div{padding:12px}}

.recap-full-link{display:inline-block;margin:.6rem 0;font-weight:700;text-decoration:underline}.recap-card input[type=file]{max-width:100%}.recap-card [role=status] a{font-weight:700;text-decoration:underline}

/* Replay controls share one layout in My Swims, the race desk and public results. */
.race-player {container-type:inline-size; color:#102d42; font:500 15px/1.45 system-ui,sans-serif}
.race-player *, .race-selection * {box-sizing:border-box}
.race-player .recap-frame {margin:0;border:0;border-radius:16px 16px 0 0}
.race-player .replay-console {padding:14px clamp(12px,3%,24px) 10px;background:#09243b;color:white;border-radius:0 0 16px 16px}
.race-player .replay-timeline input {display:block;width:100%;height:25px;margin:0;accent-color:#ffdf54}
.race-player .replay-timeline output {margin:2px 0 9px;color:#deedf4;font-size:13px;font-variant-numeric:tabular-nums}
.race-player button, .replay-upload input::file-selector-button {cursor:pointer;font:650 14px/1.25 system-ui,sans-serif}
.race-player .recap-controls {margin:0;display:flex;align-items:center;gap:6px}
.race-player .recap-controls button, .race-player .recap-controls button:nth-child(3), .race-player .replay-chapters button {min-height:44px;padding:8px 12px;background:#16374f;color:white;border:1px solid #416076;border-radius:8px}
.race-player .recap-controls .recap-play {min-width:88px;background:#ffe044;color:#08273e;border-color:#ffe044}
.race-player .recap-controls .recap-play::before {content:'▶';display:inline-block;margin-right:6px;font-size:.75em}
.race-player .recap-controls .recap-play[data-playing=true]::before {content:'Ⅱ'}
.race-player .recap-controls button:last-child {margin-left:auto}
.race-player .recap-controls button:disabled {opacity:.6}
.race-player .replay-chapters {display:flex;gap:4px;align-items:center;flex-wrap:wrap;margin-top:10px;border-top:1px solid #365267;padding-top:5px}
.race-player .replay-chapters span {color:#b9d3e2;margin-right:8px;font-size:13px}
.race-player .replay-chapters button {background:transparent;border-color:transparent;padding:6px 10px;min-height:40px;text-decoration:underline;text-underline-offset:4px}
.race-player .replay-toolbar, .race-selection {display:flex;flex-wrap:wrap;gap:12px 20px;align-items:end;margin:16px 0}
.race-player label.field, .race-selection .field {display:grid;gap:5px;min-width:0;margin:0;font:650 13px/1.3 system-ui,sans-serif;color:#38586b}
.race-player .replay-toolbar>.field, .race-selection .field {flex:1 1 15rem}
.race-player select, .race-selection select, .race-player .name-picker input {min-width:0;width:100%;min-height:44px;padding:8px 12px;background:white;color:#102d42;font:500 15px/1.25 system-ui,sans-serif;border:1px solid #99b1bf;border-radius:8px}
.race-player .map-labels {flex:1 1 12rem;min-width:0;display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.race-player .add-map-name,.race-player .name-chips button {min-height:44px;border:1px solid #82a9b9;border-radius:8px;background:#eff8fa;color:#124761;padding:8px 12px}
.race-player .add-map-name::before {content:'+';margin-right:5px}
.race-player .name-chips {display:flex;gap:4px;flex-wrap:wrap}
.race-player .name-picker {flex-basis:100%;padding:8px;background:#f5fafb;border:1px solid #c7dbe2;border-radius:10px}
.race-player .name-matches {max-height:180px;overflow-y:auto;display:grid;margin-top:4px}
.race-player .name-matches button {text-align:left;min-height:44px;border:0;border-bottom:1px solid #d3e2e7;border-radius:0;background:transparent;padding:8px;color:#123e53}
.race-player .replay-export {display:flex;align-items:center;flex-wrap:wrap;gap:8px 20px;background:#edf7f8;border:1px solid #c4dedf;border-radius:12px;padding:16px;margin:16px 0}
.race-player .replay-export>div:first-child {flex:1 1 13rem}
.race-player .replay-export h3 {font-size:18px;letter-spacing:-.025em;margin:0}
.race-player .replay-export p {margin:4px 0 0;color:#3f615f;font-size:13px;line-height:1.45}
.race-player .replay-export .recap-choices {flex:1 1 18rem;display:flex;align-items:end;gap:8px;margin:0}
.race-player .replay-export .field {flex:1 1 7rem;min-width:0}
.race-player .replay-export button {background:#0d4b59;border:0;border-radius:8px;color:#fff;min-height:44px;padding:10px 14px}
.race-player .replay-export [role=status] {flex-basis:100%}.race-player [role=status]:empty {display:none}
.race-player .replay-information, .recap-card .replay-upload, .recap-card .replay-guide {border:1px solid #d1dfe4;border-radius:10px;padding:10px 14px;background:#f8fbfc;margin:12px 0}
.race-player .replay-information summary, .recap-card .replay-upload summary, .recap-card .replay-guide summary {cursor:pointer;min-height:28px;font:650 15px/28px system-ui,sans-serif}
.race-player .recap-zoom, .race-player .recap-choices {gap:8px 12px;align-items:end}
.race-player .recap-zoom button,.race-player .recap-choices .back {padding:8px 12px;min-height:44px;border:1px solid #9ab3bf;border-radius:8px;color:#173d52;background:white}
.race-player fieldset {padding:12px 0;border:0;border-top:1px solid #ccdde3;margin-top:15px}
.race-player fieldset legend {padding:0 8px 0 0;font-weight:700}
.race-player fieldset .check {display:inline-flex;align-items:center;min-height:44px;margin-right:15px}
.race-player :focus-visible,.replay-upload :focus-visible {outline:3px solid #099ab3;outline-offset:2px}
.race-player [hidden],.recap-card .recap-full-link[hidden],.recap-card .replay-upload[hidden] {display:none}
@container(max-width:480px) {
 .race-player .recap-controls button {padding:8px}.race-player .recap-controls .recap-play {min-width:66px}
 .race-player .recap-controls button:last-child {margin-left:0}
 .race-player .replay-chapters {gap:0}.race-player .replay-chapters button {padding:6px}
 .race-player .replay-toolbar>.field,.race-player .map-labels {flex-basis:100%}
 .race-player .replay-export .recap-choices {flex-basis:100%}
}
.race-player .replay-sound-check {display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:13px;color:#c1d9e4}
.race-player .replay-sound-check button {min-height:44px;padding:6px 0;background:transparent;border:0;text-decoration:underline;text-underline-offset:3px;color:white}
