:root {
  --bg: #111611; --bg-elev: #20291f; --bg-card: #192119;
  --border: #354332; --border-strong: #65735d;
  --text: #f0f3e8; --text-muted: #b6c0ad; --text-dim: #a4b199;
  --crimson: #d7f75b; --crimson-soft: #2b391d; --water: #82aaff;
  --gold: #e9bd7a; --silver: #bccad3; --bronze: #ddab89;
  --ink: #111611; --on-ink: #f0f3e8; --ink-muted: #bbc5b2; --mint: #d7f75b;
  --radius: 20px; --radius-sm: 10px;
  --body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: var(--body);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-block: 32px 32px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.65 var(--body); }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
a { color: inherit; text-underline-offset: 6px; }
img, svg { max-width: 100%; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--crimson); outline-offset: 5px; }
::selection { color: #111611; background: #d7f75b; }
main, .footer { margin-left: 112px; }
.container { width: min(1190px, calc(100% - 112px)); margin-inline: auto; }
.mono { font-variant-numeric: tabular-nums; }
.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; top: -100px; left: 24px; z-index: 200; padding: 12px 20px; background: var(--mint); color: var(--ink); }
.skip-link:focus { top: 10px; }
.topbar { position: fixed; inset: 0 auto 0 0; width: 112px; z-index: 50; border-right: 1px solid var(--border); background: var(--bg); }
.topbar-inner { height: 100%; padding: 32px 10px; display: flex; flex-direction: column; align-items: center; gap: 48px; }
.brand { text-decoration: none; }
.brand-monogram { font-size: 2.6rem; line-height: 1; font-weight: 800; letter-spacing: -.09em; }
.brand-monogram span { color: var(--mint); }
.brand-name { display: none; }
.nav-links { display: flex; flex-direction: column; width: 100%; gap: 14px; margin-block: auto; }
.nav-links a { display: grid; place-items: center; min-height: 48px; color: var(--text-muted); font-size: .875rem; font-weight: 650; text-decoration: none; border-radius: 12px; transition: background .2s, color .2s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--mint); background: var(--bg-elev); }
.lang-btn { min-width: 48px; min-height: 48px; padding: 8px; border: 1px solid var(--border-strong); border-radius: 50%; color: var(--text); background: transparent; font-size: .875rem; font-weight: 700; }
.lang-btn:hover { background: var(--mint); color: var(--ink); }
.hero { position: relative; padding-top: 40px; padding-bottom: 36px; }
.hero-meta { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 26px; border-bottom: 1px solid var(--border); font-size: .8125rem; color: var(--text-muted); }
.hero-meta > span:first-child { text-transform: uppercase; letter-spacing: .12em; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; align-items: center; gap: 60px; padding-block: 64px; }
.hero-copy { min-width: 0; }
.hero-copy h1 { margin: 0; }
.hero-name { display: block; font-size: 1.5rem; font-weight: 500; letter-spacing: -.04em; margin-bottom: 28px; }
.hero-word { display: block; font-size: clamp(4rem, 7.5vw, 7.5rem); font-weight: 800; line-height: 1.04; letter-spacing: -.06em; word-spacing: .08em; }
.hero-word-accent { color: var(--mint); }
.hero-intro { max-width: 480px; color: var(--text-muted); margin: 30px 0 0; font-size: 1rem; line-height: 1.85; }
.hero-cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 24px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; border: 1px solid transparent; border-radius: 100px; padding: 13px 22px; font-size: .875rem; font-weight: 750; line-height: 1.5; text-decoration: none; transition: background .2s, color .2s; }
.btn-primary { background: var(--mint); color: var(--ink); }
.btn-primary:hover { background: #e6ff97; }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--bg-elev); }
.btn.small { min-height: 44px; padding: 10px 18px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; font-weight: 700; }
.text-link:hover { color: var(--crimson); }
.profile-ticket { position: relative; margin: 0 6px 0 0; padding: 18px; background: #d7f75b; color: #111611; border-radius: 24px; transform: rotate(3deg); }
.ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; font-size: .75rem; font-weight: 800; letter-spacing: .06em; }
.poland-flag { width: 24px; height: 16px; border: 1px solid #11161144; background: linear-gradient(#fff 50%, #c93435 50%); flex-shrink: 0; }
.portrait-frame { position: relative; aspect-ratio: 1; width: 100%; overflow: hidden; border-radius: 80px 80px 12px 12px; background: #344333; }
.portrait-frame img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.portrait-fallback { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; font-size: 6rem; font-weight: 800; color: var(--mint); background: var(--ink); }
.ticket-caption { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.ticket-caption strong { font-size: 1.6rem; font-weight: 800; line-height: 1.2; letter-spacing: -.055em; }
.ticket-caption > span { font-size: .8125rem; }
.portrait-credit { display: block; font-size: .75rem; margin-top: 16px; border-top: 1px solid #11161144; padding-top: 10px; }
.portrait-change-btn { position: absolute; bottom: 10px; left: 10px; right: 10px; border: 0; border-radius: 8px; min-height: 44px; padding: 10px; background: var(--ink); color: var(--mint); font-size: .875rem; }
.identity-strip { display: flex; align-items: center; gap: 32px; border-top: 1px solid var(--border); padding-top: 24px; font-size: .8125rem; color: var(--text-muted); }
.identity-strip strong { color: var(--text); margin-left: 8px; }
.identity-strip a { margin-left: auto; min-height: 44px; display: inline-flex; align-items: center; }
.section { padding-block: 100px; }
.section-head { margin-bottom: 38px; }
.section-kicker { display: block; color: var(--crimson); font-size: .8125rem; letter-spacing: .11em; text-transform: uppercase; font-weight: 750; margin-bottom: 18px; }
.section-title { margin: 0; font-size: clamp(2.2rem,4vw,3.8rem); line-height: 1.12; font-weight: 750; letter-spacing: -.05em; word-spacing: .05em; max-width: 780px; text-wrap: balance; }
.section-desc { color: var(--text-muted); font-size: 1rem; line-height: 1.85; max-width: 630px; margin: 22px 0 0; }
.recent-section, .journey-section { --bg: #eff1e9; --bg-elev: #e2e7d9; --bg-card: #fff; --text: #1b251b; --text-muted: #56624e; --text-dim: #56624e; --border: #cbd3c2; --border-strong: #939f87; --crimson: #46641b; --crimson-soft: #e0e9ce; background: var(--bg); color: var(--text); }
.recent-section { padding-block: 72px; }
.recent-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: end; }
.recent-heading .section-desc { margin: 0; }
.recent-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; }
.recent-week { --text-muted: #b6c0ad; background: #1b251b; color: #f0f3e8; padding: 28px; border-radius: 24px; }
.recent-week-heading { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; font-size: .8125rem; color: #c2ccb7; }
.recent-week-heading time { color: #d7f75b; }
.recent-totals { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; margin-top: 26px; }
.recent-totals strong { display: block; font-size: clamp(1.7rem,2.7vw,2.7rem); font-weight: 750; line-height: 1.2; letter-spacing: -.06em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.recent-totals span { display: block; color: #b6c0ad; font-size: .8125rem; margin-top: 6px; }
.recent-rhythm { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 12px; margin-top: 28px; }
.rhythm-day { text-align: center; color: #b6c0ad; font-size: .75rem; }
.rhythm-hours { display: block; margin-bottom: 8px; white-space: nowrap; }
.rhythm-track { height: 70px; display: flex; align-items: end; background: #2c3829; border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.rhythm-track > span { width: 100%; background: #d7f75b; border-radius: 5px 5px 0 0; }
.rhythm-track > span.no-record { background: #65735d; }
.recent-note { color: #b6c0ad; font-size: .75rem; margin: 20px 0 0; }
.recent-feed h3 { margin: 0 0 8px; font-size: .875rem; text-transform: uppercase; letter-spacing: .08em; }
.recent-feed ul { padding: 0; list-style: none; margin: 0 0 10px; }
.recent-feed li { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.recent-feed li > div { min-width: 0; }
.recent-feed li time { display: block; font-size: .8125rem; color: var(--text-muted); margin-bottom: 4px; }
.recent-feed li strong { display: block; font-size: 1rem; letter-spacing: -.025em; }
.recent-feed li > span { font-size: 1.35rem; letter-spacing: -.05em; font-weight: 700; text-align: right; white-space: nowrap; }
.recent-feed li small { display: block; color: var(--text-muted); font-size: .75rem; font-weight: 400; letter-spacing: 0; }
.work-heading { display: flex; justify-content: space-between; align-items: start; gap: 30px; }
.sync-pill { flex-shrink: 0; font-size: .75rem; border: 1px solid var(--border); border-radius: 100px; padding: 9px 14px; color: var(--text-muted); }
.work-story { display: grid; grid-template-columns: .85fr 1.5fr; gap: 48px; align-items: center; margin-top: 46px; }
.work-asof { color: var(--text-muted); font-size: .875rem; }
.work-asof time { display: block; color: var(--mint); }
.work-highlight .kpi-value { font-size: clamp(3rem,5.5vw,5.5rem); font-weight: 750; line-height: 1.1; letter-spacing: -.07em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi-eyebrow { font-size: .875rem; color: var(--text-muted); }
.kpi-sub { display: block; font-size: .8125rem; color: var(--text-muted); margin-top: 12px; max-width: 330px; }
.work-highlight .kpi-sub { border-left: 2px solid var(--mint); padding-left: 14px; margin-top: 26px; }
.work-chart { min-width: 0; }
#workChart { display: block; width: 100%; overflow: visible; }
#workChart line, #workChart path { vector-effect: non-scaling-stroke; }
.archive-summary { margin-top: 16px; color: var(--text-muted); font-size: .875rem; }
.archive-summary summary { min-height: 44px; padding-block: 10px; }
.archive-summary p { margin: 8px 0 0; line-height: 1.8; }
.work-gridline { stroke: #354332; stroke-dasharray: 3 6; }
.work-axis-label { font: 14px var(--body); fill: #b6c0ad; }
.work-line-full { fill: none; stroke: #65735d; stroke-width: 2; }
.work-line { fill: none; stroke: #d7f75b; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.work-point { fill: #b6c0ad; }
.work-point-active { fill: #d7f75b; stroke: #111611; stroke-width: 4; }
.work-guide { stroke: #d7f75b; stroke-dasharray: 3 5; opacity: .5; }
.work-range-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: .875rem; }
.work-range-caption output { color: var(--mint); font-weight: 700; }
#workMonth { display: block; width: 100%; height: 44px; margin: 4px 0; cursor: ew-resize; accent-color: var(--mint); }
.work-range-ends { display: flex; justify-content: space-between; color: var(--text-muted); font-size: .75rem; }
#workRangeHint { color: var(--text-muted); font-size: .75rem; margin: 14px 0 0; }
.kpi-banner { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 40px; border-top: 1px solid var(--border); margin-top: 40px; padding-top: 30px; }
.kpi-card .kpi-value { font-size: clamp(2rem,3.2vw,3rem); font-weight: 750; letter-spacing: -.065em; line-height: 1.2; margin-bottom: 8px; }
.data-period { font-size: .75rem; color: var(--text-muted); margin: 32px 0 0; }
.journey-heading { display: flex; justify-content: space-between; align-items: end; gap: 48px; }
.journey-heading .section-title { max-width: 660px; }
.journey-tally { flex-shrink: 0; }
.medal-totals { display: flex; gap: 18px; }
.medal-total { font-size: .8125rem; color: var(--text-muted); }
.medal-total strong { display: block; font-size: 2.7rem; font-weight: 750; line-height: 1.2; letter-spacing: -.06em; }
.medal-total.gold strong { color: #87601f; }
.medal-total.silver strong { color: #526170; }
.medal-total.bronze strong { color: #8e5030; }
.journey-tally p { font-size: .75rem; color: var(--text-muted); max-width: 180px; }
.journey-seasons { display: flex; gap: 8px; margin: 38px 0 22px; }
.season-btn { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 10px 24px; border: 1px solid var(--border-strong); border-radius: 100px; color: var(--text); background: transparent; transition: background .2s, color .2s; }
.season-btn > span { font-size: 1rem; font-weight: 750; }
.season-btn small { font-size: .8125rem; }
.season-btn:hover { background: var(--crimson-soft); }
.season-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.journey-timeline { min-width: 0; margin-bottom: 28px; }
.timeline-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid var(--border); padding: 16px 0 12px; }
.timeline-heading > span:first-child { font-size: .875rem; font-weight: 750; }
.timeline-heading > span:last-child { color: var(--text-muted); font-size: .8125rem; }
.journey-viewport { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.journey-stops { position: relative; display: flex; isolation: isolate; }
.journey-season { display: grid; grid-template-columns: repeat(var(--stop-count),minmax(0,1fr)); flex: 0 0 max(100%,calc(var(--stop-count) * 200px)); }
.journey-stop { position: relative; display: grid; grid-template-rows: 20px 28px 1fr; gap: 8px; justify-items: center; min-width: 0; padding: 12px 12px 16px; border: 0; text-align: center; color: var(--text); background: transparent; }
.journey-stop::before { content: ""; position: absolute; top: 53px; left: 0; right: 0; height: 2px; background: var(--border-strong); }
.stop-month { color: var(--text-muted); font-size: .8125rem; line-height: 20px; }
.stop-node { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--border-strong); border-radius: 50%; background: var(--bg); font-size: .8125rem; font-weight: 750; }
.stop-copy { display: flex; flex-direction: column; gap: 6px; width: min(100%,340px); padding: 12px; border: 1px solid transparent; border-radius: 12px; transition: background .2s; }
.stop-copy > strong { font-size: .875rem; line-height: 1.5; }
.stop-copy > span { color: var(--text-muted); font-size: .8125rem; }
.journey-stop:hover .stop-copy { background: var(--bg-elev); }
.journey-stop[aria-pressed="true"] .stop-copy { background: #fff; border-color: var(--border); }
.journey-stop[aria-pressed="true"] .stop-node { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.journey-stop[aria-pressed="true"] .stop-month { color: var(--ink); font-weight: 800; }
.journey-stop:focus-visible { outline-offset: -4px; }
.timeline-cursor { position: absolute; z-index: 2; top: 34px; left: 0; width: 40px; height: 40px; border: 2px solid var(--crimson); border-radius: 50%; pointer-events: none; transition: transform 450ms cubic-bezier(.2,.7,.2,1); }
.timeline-hint { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; color: var(--text-muted); font-size: .75rem; margin: 8px 0 0; }
.timeline-swipe { display: none; }
.journey-arena { background: #3049d4; color: #fff; overflow: hidden; border-radius: 24px; }
.journey-stage { --medal-color: #e4edff; display: grid; grid-template-columns: 240px minmax(0,1fr); align-items: center; gap: 44px; padding: 42px; min-height: 370px; }
.journey-stage.gold { --medal-color: #f6e3a8; }
.journey-stage.bronze { --medal-color: #ffceb3; }
.journey-emblem { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--medal-color); }
.emblem-year { font-size: .875rem; font-weight: 700; letter-spacing: .12em; }
.journey-emblem > strong { font-size: 11rem; line-height: 1.05; letter-spacing: -.09em; font-weight: 800; }
.emblem-place { font-size: .875rem; }
.emblem-type { margin-top: 14px; font-size: .875rem; font-weight: 700; text-align: center; }
.journey-story { min-width: 0; }
.journey-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; font-size: .8125rem; color: #e4e8ff; }
.journey-meta > span { color: var(--medal-color); font-weight: 750; }
.journey-story h3 { font-size: clamp(1.6rem,2.6vw,2.5rem); font-weight: 700; letter-spacing: -.055em; line-height: 1.22; margin: 20px 0 14px; }
.journey-boat { color: var(--medal-color); font-size: .875rem; margin: 0; }
.journey-detail { color: #e4e8ff; font-size: 1rem; line-height: 1.85; margin: 18px 0; }
.journey-story a:hover { color: #d7f75b; }
.journey-arena :focus-visible { outline-color: #d7f75b; }
.journey-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 32px; border-top: 1px solid #ffffff44; }
.journey-controls button { border: 1px solid #ffffff88; color: #fff; border-radius: 100px; padding: 10px 18px; min-height: 44px; font-size: .875rem; background: transparent; }
.journey-controls button:hover:enabled { color: #111611; background: #d7f75b; border-color: #d7f75b; }
.journey-controls > span { font-size: .8125rem; color: #e4e8ff; }
.journey-track { height: 4px; background: #ffffff33; }
.journey-track > span { display: block; width: 100%; height: 100%; background: #d7f75b; transform-origin: left; transition: transform 450ms cubic-bezier(.2,.7,.2,1); }
.results-archive { border-top: 1px solid var(--border); margin-top: 30px; }
.results-archive > summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; font-size: 1rem; font-weight: 700; list-style: none; }
.results-archive > summary::-webkit-details-marker { display: none; }
.results-archive > summary > span:last-child { font-size: 1.6rem; font-weight: 400; }
.results-archive[open] > summary > span:last-child { transform: rotate(45deg); }
.athlete-bio { font-size: 1rem; line-height: 1.85; color: var(--text-muted); max-width: 900px; }
.achievements-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.ach-card { display: grid; grid-template-columns: 50px minmax(0,1fr); gap: 20px; padding: 30px 0; border-top: 1px solid var(--border); }
.ach-rank { font-size: 2.5rem; font-weight: 750; letter-spacing: -.07em; line-height: 1.2; }
.ach-rank > span { display: block; font-size: .75rem; letter-spacing: 0; font-weight: 400; }
.ach-top { display: flex; flex-wrap: wrap; gap: 5px 16px; font-size: .75rem; }
.ach-badge { font-weight: 750; color: var(--crimson); }
.ach-month, .ach-boat, .ach-detail { color: var(--text-muted); }
.ach-event { font-size: 1.1rem; line-height: 1.45; margin: 12px 0; letter-spacing: -.03em; }
.ach-boat { font-size: .875rem; }
.ach-detail { font-size: 1rem; }
#obozy { border-top: 1px solid var(--border); padding-top: 64px; }
.map-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 24px; }
.map-overview { margin: 0; font-size: 1rem; font-weight: 700; }
.map-overview > span { display: block; color: var(--text-muted); font-size: .875rem; font-weight: 400; margin-top: 4px; }
.map-regions { display: flex; padding: 5px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 100px; }
.map-regions button { display: flex; gap: 9px; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px; border: 0; border-radius: 100px; background: none; color: var(--text); font-size: .875rem; font-weight: 700; }
.map-regions button[aria-pressed="true"] { background: #e8eee3; color: var(--ink); }
.map-regions button[aria-pressed="true"] .races { background: #3049d4; }
.map-regions button[aria-pressed="true"] .training { background: #506a07; }
.training-atlas { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(300px,1fr); align-items: start; background: var(--bg-card); border: 1px solid var(--border); border-radius: 26px; overflow: clip; }
.atlas-map-side { position: sticky; top: 24px; min-width: 0; }
.map-canvas { position: relative; isolation: isolate; aspect-ratio: 1; background: #101e1c; overflow: hidden; }
.map-background, .map-points { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-background { transform-origin: center; }
.map-points { pointer-events: none; }
.map-point { color: #d7f75b; }
.map-point.races { color: #82aaff; }
.map-point.mixed { color: #c1d9a9; }
.map-point path { stroke: currentColor; stroke-width: 1; fill: none; opacity: .7; vector-effect: non-scaling-stroke; }
.map-point .point-ring { fill: none; stroke: currentColor; stroke-width: 1; opacity: .4; }
.map-point .point-dot, .map-point .point-diamond { fill: currentColor; stroke: #101e1c; stroke-width: 2; opacity: 1; }
.map-point.mixed .point-dot { fill: url(#atlasMixed); }
.map-point .point-hit { fill: transparent; pointer-events: all; cursor: pointer; }
.map-label { position: absolute; left: var(--label-x); top: var(--label-y); transform: translate(-50%,-50%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 48px; padding: 8px 12px; border-radius: 10px; border: 1px solid #829549; background: #142319f5; color: #f0f3e8; font-size: .875rem; line-height: 1.2; white-space: nowrap; box-shadow: 0 4px 16px #0002; }
.map-label.races { border-color: #6684bc; background: #152330f5; }
.map-label.mixed { border-color: #9eb68f; border-top: 3px solid transparent; background: linear-gradient(#142319,#142319) padding-box, linear-gradient(90deg,#82aaff 50%,#d7f75b 50%) border-box; }
.map-label > span { font-weight: 750; }
.map-label:focus-visible { outline-offset: 3px; }
.map-label > small { font-size: .75rem; color: #c2cec0; }
.map-label:hover, .map-label[aria-pressed="true"] { box-shadow: 0 0 0 2px #e8eee340, 0 6px 26px #0004; }
.map-label[aria-pressed="true"] { border-bottom-color: #f0f3e8; }
.atlas-map-controls { position: absolute; left: 16px; top: 16px; z-index: 2; display: flex; gap: 6px; align-items: center; }
.atlas-map-controls button { min-height: 44px; padding: 8px 14px; border: 1px solid #607967; border-radius: 100px; background: #142319ef; color: var(--text); font-size: .875rem; font-weight: 700; }
.atlas-map-controls button:hover { background: #2b3d2c; }
.atlas-map-controls button:disabled { color: #bdc9b8; border-color: #3b4e40; cursor: default; }
.atlas-zoom { font-size: .75rem; color: #bdc9b8; padding: 6px; }
.map-north { position: absolute; top: 22px; right: 20px; color: #acc29d; font-size: .75rem; text-align: center; line-height: 1.2; }
.map-north > span { display: block; margin-top: 4px; }
.map-attribution { position: absolute; bottom: 0; left: 16px; display: flex; align-items: center; min-height: 36px; font-size: .75rem; color: #acbea4; }
.atlas-legend { display: flex; flex-wrap: wrap; gap: 12px 22px; padding: 22px 24px 0; font-size: .875rem; }
.atlas-legend > span, .atlas-tallies, .atlas-tallies > span { display: inline-flex; align-items: center; gap: 8px; }
.atlas-tallies { gap: 12px; font-variant-numeric: tabular-nums; }
.atlas-tallies > span { gap: 5px; }
.atlas-swatch { display: inline-block; flex: 0 0 auto; width: 9px; height: 9px; background: #82aaff; }
.atlas-swatch.races { transform: rotate(45deg); border-radius: 1px; }
.atlas-swatch.training { background: #d7f75b; border-radius: 50%; }
.atlas-swatch.mixed { background: linear-gradient(90deg,#82aaff 50%,#d7f75b 50%); border-radius: 50%; }
.atlas-race-count { color: #82aaff; }
.atlas-training-count { color: #d7f75b; }
.atlas-view-status { margin: 12px 24px 24px; color: var(--text-muted); font-size: .8125rem; }
.map-detail { min-width: 0; padding: clamp(24px,3vw,36px); display: flex; flex-direction: column; border-left: 1px solid var(--border); }
.map-detail > label { color: var(--text-muted); font-size: .875rem; margin-bottom: 8px; }
.map-detail .form-input { padding-right: 28px; width: 100%; min-width: 0; }
.map-location-country { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: #bdc9b8; margin: 30px 0 8px; }
.map-detail h3 { font-size: clamp(1.7rem,2.4vw,2.3rem); line-height: 1.15; letter-spacing: -.045em; margin: 0; overflow-wrap: anywhere; }
.atlas-intro { color: var(--text-muted); font-size: 1rem; line-height: 1.7; margin: 24px 0; }
.atlas-overview-totals { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 20px 36px; margin: 30px 0 0; }
.atlas-overview-totals > div { display: flex; flex-direction: column-reverse; gap: 8px; flex: 1; min-width: 100px; }
.atlas-overview-totals dd { font-size: 3.2rem; line-height: 1; font-weight: 700; letter-spacing: -.05em; margin: 0; }
.atlas-overview-totals dt { color: var(--text-muted); font-size: .8125rem; max-width: 150px; }
.atlas-place-list { display: grid; margin-top: 28px; }
.atlas-place-list button { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 52px; text-align: left; padding: 12px 0; border: 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--text); font-size: .875rem; }
.atlas-place-list button:hover > span:first-child { text-decoration: underline; text-underline-offset: 4px; }
.atlas-results, .atlas-training { margin-top: 28px; }
.atlas-results h4, .atlas-training h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 1rem; }
.atlas-results h4 > span { color: var(--text-muted); font-size: .875rem; font-weight: 400; margin-left: auto; }
.atlas-result { border-top: 1px solid var(--border); }
.atlas-result:last-child { border-bottom: 1px solid var(--border); }
.atlas-result summary { position: relative; padding: 20px 0 20px 22px; list-style: none; cursor: pointer; }
.atlas-result summary::-webkit-details-marker { display: none; }
.atlas-result summary::before { content: "+"; position: absolute; left: 0; top: 17px; font-size: 1.25rem; color: #82aaff; }
.atlas-result[open] summary::before { content: "−"; }
.atlas-result-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: .75rem; color: var(--text-muted); }
.atlas-medal { color: #b7cfff; }
.atlas-medal.gold { color: #ecd589; }
.atlas-medal.silver { color: #d4dfeb; }
.atlas-medal.bronze { color: #e4b395; }
.atlas-result summary > strong { display: block; font-size: 1rem; line-height: 1.45; margin: 10px 0 6px; letter-spacing: -.02em; }
.atlas-boat { display: block; font-size: .875rem; color: #b6c8b3; line-height: 1.5; }
.atlas-result-body { padding: 0 0 12px 22px; }
.atlas-result-body p { font-size: 1rem; color: var(--text-muted); line-height: 1.7; margin: 0; }
.atlas-result-body a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; color: #82aaff; font-size: .875rem; text-underline-offset: 4px; }
.atlas-results + .atlas-training { padding-top: 28px; }
.map-date-range { font-size: .8125rem; color: var(--text-muted); margin: 12px 0 24px; }
.map-hours strong { display: block; font-size: clamp(3rem,4.5vw,4.8rem); font-weight: 700; letter-spacing: -.06em; line-height: 1.05; color: var(--mint); }
.map-hours > span { display: block; margin-top: 8px; color: var(--text-muted); font-size: .875rem; }
.map-metrics { display: flex; flex-wrap: wrap; gap: 20px 28px; margin: 24px 0 30px; }
.map-metrics > div { display: flex; flex-direction: column-reverse; gap: 2px; }
.map-metrics dt { color: var(--text-muted); font-size: .75rem; }
.map-metrics dd { margin: 0; font-size: 1.35rem; font-weight: 700; }
.map-metrics dd > span { font-size: .875rem; font-weight: 400; }
.map-detail .btn { align-self: start; }
.map-note { max-width: 800px; color: var(--text-muted); font-size: .8125rem; margin: 18px 0 0; }

.gallery-head { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.gallery-actions { flex-shrink: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; gap: 48px 28px; }
.gallery-item { margin: 0; min-width: 0; }
.gallery-feature { grid-column: 1 / -1; }
.gallery-open { display: block; position: relative; border: 0; padding: 0; width: 100%; background: var(--bg-elev); overflow: hidden; border-radius: 16px; }
.gallery-item img { display: block; width: 100%; height: auto; aspect-ratio: 1.6; object-fit: contain; }
.gallery-feature .gallery-open { border-radius: 24px; }
.gallery-feature img { aspect-ratio: auto; }
.result-poster img { object-fit: contain; background: #3049d4; }
.gallery-expand { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; min-height: 38px; padding: 6px 14px; background: #111611dc; border: 1px solid #f0f3e84d; color: #f0f3e8; border-radius: 100px; font-size: .8125rem; transition: background .2s, color .2s; }
.gallery-open:hover .gallery-expand, .gallery-open:focus-visible .gallery-expand { background: var(--mint); color: var(--ink); }
.gallery-caption { padding-top: 20px; }
.gallery-feature .gallery-caption { display: grid; grid-template-columns: minmax(0,2fr) minmax(200px,1fr); gap: 40px; padding-top: 28px; }
.gc-title { font-size: 1.25rem; font-weight: 750; letter-spacing: -.035em; line-height: 1.3; }
.gallery-feature .gc-title { font-size: clamp(1.6rem,2.7vw,2.3rem); }
.gc-description { margin: 12px 0 0; font-size: 1rem; color: var(--text-muted); line-height: 1.65; }
.gc-meta { color: var(--text-muted); font-size: .8125rem; line-height: 1.8; margin-top: 8px; }
.gc-source-badge { display: block; width: fit-content; min-height: 44px; padding-top: 8px; color: var(--mint); font-size: .875rem; }
#media { border-top: 1px solid var(--border); }
.news-grid { display: grid; }
.news-card { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 32px; padding: 28px 0; border-top: 1px solid var(--border); text-decoration: none; }
.news-meta { font-size: .75rem; color: var(--text-muted); }
.news-title { font-size: 1.4rem; letter-spacing: -.04em; line-height: 1.3; margin: 12px 0; }
.news-summary { max-width: 780px; color: var(--text-muted); font-size: 1rem; margin: 0; }
.news-link-lbl { font-size: .875rem; color: var(--mint); font-weight: 700; text-decoration: underline; text-underline-offset: 6px; }
.news-card:hover .news-title { color: var(--mint); }
.footer { background: #d7f75b; color: #111611; padding-block: 64px 32px; }
.footer-top { padding-bottom: 44px; }
.footer-top .section-kicker { color: #344318; }
.footer-top p { max-width: 850px; margin: 24px 0 30px; font-size: clamp(3rem,6vw,6rem); font-weight: 750; letter-spacing: -.07em; line-height: 1.05; text-wrap: balance; }
.footer-name { font-size: 1rem; font-weight: 750; text-decoration: none; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; border-top: 1px solid #11161144; padding-top: 22px; font-size: .8125rem; }
.footer-inner > a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; }
.role-preview-btn { min-height: 44px; padding: 10px 16px; color: inherit; border: 1px solid #11161188; background: none; border-radius: 100px; font-size: .8125rem; }
@keyframes enter-section { from { opacity: .3; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.motion-enter .journey-arena, .motion-enter .recent-grid { animation: enter-section 600ms cubic-bezier(.2,.7,.2,1) both; }

.controls-bar { display: flex; flex-direction: column; gap: 16px; margin: 30px 0 20px; }
.period-pills, .metric-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pill-btn, .metric-btn, .month-select { color: var(--text-muted); background: transparent; border: 1px solid var(--border); border-radius: 10px; min-height: 44px; padding: 9px 14px; font-size: .875rem; line-height: 1.5; }
.pill-btn:hover, .metric-btn:hover { border-color: var(--text); color: var(--text); }
.pill-btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.metric-btn { border: 0; border-bottom: 2px solid transparent; border-radius: 0; }
.metric-btn.active { color: var(--crimson); border-bottom-color: var(--crimson); font-weight: 700; }
.month-select { appearance: none; padding-right: 36px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23b6c0ad' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center; }
.month-select option { background: var(--bg-card); color: var(--text); }
.active-filter-notice { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 18px; margin-bottom: 16px; background: var(--crimson-soft); border-left: 3px solid var(--crimson); font-size: .875rem; }
.clear-filter-btn { color: var(--crimson); border: 0; background: transparent; font-weight: 700; min-height: 44px; }
.period-summary-strip { display: grid; grid-template-columns: 1.4fr repeat(5,1fr); gap: 20px; padding: 22px 0; border-block: 1px solid var(--border); margin-bottom: 26px; }
.ps-label { display: block; font-size: .75rem; color: var(--text-muted); margin-bottom: 5px; }
.ps-val { font-size: 1rem; font-weight: 800; }
.analytics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; }
.panel { background: var(--bg-card); border: 1px solid var(--border); padding: 26px; min-width: 0; }
.panel-header { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 8px 20px; margin-bottom: 25px; }
.panel-header h3 { font-size: 1.125rem; line-height: 1.4; letter-spacing: -.025em; margin: 0; }
.panel-sub, .panel-hint { color: var(--text-muted); font-size: 1rem; line-height: 1.65; }
.panel-sub { margin: 10px 0 0; max-width: 700px; }
.panel-hint { font-size: .75rem; }
.donut-and-bars { display: grid; grid-template-columns: 140px 1fr; align-items: center; gap: 22px; }
.donut-wrap { position: relative; width: 140px; aspect-ratio: 1; }
.donut-svg { display: block; width: 100%; transform: rotate(-90deg); }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.donut-center-val { font-size: 1.05rem; font-weight: 800; }
.donut-center-sub { font-size: .75rem; color: var(--text-muted); }
.discipline-bars { min-width: 0; }
.disc-row { display: block; border: 0; width: 100%; padding: 7px 0; text-align: left; background: none; color: var(--text); }
.disc-row:hover, .disc-row.selected { background: var(--bg-elev); }
.disc-row.selected { box-shadow: -4px 0 var(--crimson); }
.disc-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; }
.disc-name { display: flex; align-items: center; gap: 6px; font-size: .875rem; }
.disc-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.disc-stats { color: var(--text-muted); font-size: .75rem; }
.disc-stats strong { color: var(--text); }
.disc-track { height: 3px; background: var(--bg-elev); margin-top: 6px; }
.disc-fill { height: 100%; }
.monthly-chart-wrap { display: flex; flex-direction: column; justify-content: center; min-height: 360px; }
.monthly-bars { height: 255px; display: flex; align-items: flex-end; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.m-col { display: flex; flex: 1; min-width: 0; flex-direction: column; align-items: center; justify-content: flex-end; gap: 7px; border: 0; padding: 0; background: transparent; color: var(--text); }
.m-val { font-size: .75rem; color: var(--text-muted); }
.m-stack { width: 100%; max-width: 30px; display: flex; flex-direction: column-reverse; overflow: hidden; transition: opacity .2s; }
.m-col:hover .m-stack { opacity: .7; }
.m-col.selected .m-lbl { color: var(--crimson); font-weight: 800; text-decoration: underline; text-underline-offset: 5px; }
.m-col.selected .m-stack { outline: 2px solid var(--text); outline-offset: 3px; }
.m-seg { flex-shrink: 0; }
.m-lbl { font-size: .75rem; color: var(--text-muted); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 22px; }
.legend-item { display: inline-flex; gap: 6px; align-items: center; color: var(--text-muted); font-size: .75rem; }
.heatmap-panel { background: var(--bg-card); border: 0; padding: 30px; }
.heatmap-scale { display: flex; gap: 5px; align-items: center; font-size: .75rem; color: var(--text-muted); }
.heatmap-scale > span:first-child { margin-right: 5px; }
.heatmap-scale > span:last-child { margin-left: 5px; }
.heatmap-scroll { overflow-x: auto; padding: 4px 2px 8px; }
.heatmap-months { display: grid; gap: 4px; font-size: .75rem; color: var(--text-muted); min-width: var(--heatmap-width, 897px); margin-bottom: 8px; }
.heatmap-grid { display: grid; grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; min-width: var(--heatmap-width, 897px); }
.hm-cell { display: block; width: 100%; aspect-ratio: 1; border: 0; border-radius: 2px; padding: 0; min-width: 0; }
.heatmap-scale .hm-cell { width: 12px; height: 12px; }
.hm-cell.lvl-0 { background: #354332; }
.hm-cell.lvl-1 { background: #566b34; }
.hm-cell.lvl-2 { background: #829d3a; }
.hm-cell.lvl-3 { background: #a9cc43; }
.hm-cell.lvl-4 { background: #d7f75b; }
.hm-cell.empty { background: transparent; }
.hm-tooltip { position: fixed; z-index: 100; background: var(--text); color: var(--bg); padding: 13px 17px; border-radius: 10px; font-size: .75rem; max-width: min(320px,calc(100vw - 24px)); box-shadow: 0 6px 24px #0003; pointer-events: none; }
.training-log { margin-top: 26px; border: 1px solid var(--border); }
.training-log > summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 26px; font-size: 1rem; font-weight: 700; list-style: none; cursor: pointer; background: var(--bg-card); }
.training-log > summary::-webkit-details-marker { display: none; }
.disclosure-mark { font-size: 1.6rem; color: var(--crimson); font-weight: 400; }
.training-log[open] .disclosure-mark { transform: rotate(45deg); }
.log-panel { border: 0; border-top: 1px solid var(--border); }
.session-table-wrap { overflow-x: auto; }
.session-table { width: 100%; min-width: 880px; border-collapse: collapse; font-size: .875rem; }
.session-table th { color: var(--text-muted); font-size: .75rem; font-weight: 600; text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); }
.session-table td { padding: 14px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.session-table th.num, .session-table td.num { text-align: right; white-space: nowrap; }
.cat-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 0; font-size: .75rem; white-space: nowrap; }
.log-footer { margin-top: 24px; }
.modal-backdrop { position: fixed; z-index: 110; inset: 0; padding: 24px; background: #10191cd9; display: grid; place-items: center; overflow-y: auto; }
.modal-card { width: min(760px, 100%); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 28px; background: var(--bg-card); border-radius: 24px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.modal-header h3 { margin: 0; font-size: 1.25rem; }
.modal-close, .lightbox-close { min-width: 44px; min-height: 44px; border: 1px solid var(--border); border-radius: 50%; background: transparent; color: var(--text); font-size: 1.5rem; line-height: 1; }
.modal-dropzone { position: relative; display: grid; place-items: center; padding: 24px; min-height: 160px; border: 1px dashed var(--border-strong); background: var(--bg-elev); cursor: pointer; }
.modal-dropzone.dragover { background: var(--crimson-soft); border-color: var(--crimson); }
.modal-drop-prompt { text-align: center; font-size: .875rem; }
.modal-drop-prompt span { display: block; color: var(--text-muted); margin-top: 7px; }
.modal-preview-img { max-height: 230px; object-fit: contain; }
.url-fetch-row { display: flex; gap: 12px; margin-top: 16px; }
.url-fetch-row input { flex: 1; min-width: 0; }
.exif-banner { background: #e5f0e9; padding: 14px; margin-block: 16px; color: #285c3d; font-size: .875rem; }
.exif-banner.neutral { background: var(--bg-elev); color: var(--text-muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-field.full { grid-column: 1/-1; }
.form-field label { font-size: .875rem; }
.form-input { width: 100%; min-height: 46px; border: 1px solid var(--border-strong); border-radius: 10px; padding: 10px 12px; background: var(--bg-card); color: var(--text); font-size: 1rem; }
.checkbox-row { flex-direction: row; align-items: start; gap: 10px; }
.checkbox-row input { margin-top: 5px; accent-color: var(--crimson); width: 18px; height: 18px; }
.form-error, .page-error { background: var(--crimson-soft); color: #ffc7b8; padding: 16px; margin-block: 20px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; }
.lightbox { position: fixed; inset: 0; z-index: 100; padding: 80px 32px 24px; background: #10191cf5; color: #fff; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 24px; overflow-y: auto; }
.lightbox > img { display: block; max-width: min(1100px, 100%); max-height: 58dvh; object-fit: contain; min-height: 0; }
.lightbox-close { position: absolute; top: 20px; right: 24px; color: #fff; border-color: #ffffff55; }
.lightbox-bar { display: flex; width: min(1100px, 100%); justify-content: space-between; gap: 20px; }
.lightbox-info { display: flex; flex-direction: column; gap: 8px; }
.lightbox-sub { font-size: .875rem; color: #c7d0d4; }
.lightbox-actions { display: flex; gap: 8px; flex-wrap: wrap; align-content: start; }
.lightbox .pill-btn { color: #fff; border-color: #ffffff55; text-decoration: none; }
.lightbox-navigation { display: flex; align-items: center; justify-content: center; gap: 24px; }
.lightbox-navigation > span { min-width: 44px; text-align: center; font-size: .875rem; font-variant-numeric: tabular-nums; }
.pill-btn.danger { color: #ffafb1; }

.panel { border-radius: 20px; }
.heatmap-panel { margin-top: 36px; }
.training-log { border-radius: 20px; overflow: hidden; }
.pill-btn.active { color: var(--bg); }

@media (max-width: 1150px) {
  .container { width: calc(100% - 72px); }
  .hero-grid { grid-template-columns: minmax(0,1fr) 260px; gap: 30px; }
  .hero-word { font-size: clamp(3.6rem,6.6vw,7rem); }
  .ticket-caption strong { font-size: 1.4rem; }
  .analytics-grid { grid-template-columns: 1fr; }
  .donut-and-bars { grid-template-columns: 180px 1fr; }
  .donut-wrap { width: 180px; }
  .monthly-chart-wrap { min-height: 310px; }
  .recent-grid { gap: 28px; }
  .recent-week { padding: 22px; }
  .recent-rhythm { gap: 8px; }
  .journey-heading { gap: 24px; }
  .journey-stage { grid-template-columns: 160px minmax(0,1fr); gap: 28px; padding: 32px; }
  .journey-emblem > strong { font-size: 8rem; }
  .work-story { gap: 26px; }
  .period-summary-strip { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  html { scroll-padding-block: 24px 96px; }
  main, .footer { margin-left: 0; }
  .topbar { position: relative; inset: auto; width: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .topbar-inner { height: auto; min-height: 92px; padding: 20px 32px; flex-direction: row; justify-content: space-between; gap: 20px; }
  .brand { display: flex; align-items: center; gap: 14px; }
  .brand-name { display: block; font-size: .875rem; line-height: 1.4; font-weight: 750; }
  .brand-name > span { display: block; font-size: .75rem; font-weight: 400; color: var(--text-muted); }
  .nav-links { position: fixed; z-index: 50; inset: auto 0 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 2px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); margin: 0; background: #111611f5; border-top: 1px solid var(--border); }
  .nav-links a { min-height: 48px; border-radius: 10px; }
  .container { width: calc(100% - 64px); }
  .hero { padding-top: 28px; }
  .hero-grid { grid-template-columns: minmax(0,1fr) 260px; padding-block: 44px; }
  .hero-word { font-size: clamp(3.6rem,7.6vw,5.4rem); }
  .hero-cta-row { gap: 12px; }
  .hero-intro { line-height: 1.75; }
  .profile-ticket { transform: rotate(2deg); }
  .section { padding-block: 76px; }
  .journey-tally { flex-shrink: 1; }
  .journey-heading .section-title { font-size: 2.6rem; }
  .recent-heading { grid-template-columns: 1fr; gap: 18px; }
  .work-heading { flex-direction: column; gap: 20px; }
  .work-story { grid-template-columns: 1fr; gap: 18px; }
  .work-highlight { position: relative; }
  .work-highlight .kpi-value { font-size: 4.5rem; }
  .work-highlight .kpi-sub { position: absolute; bottom: 0; right: 0; max-width: 220px; }
  .work-chart { max-width: 760px; width: 100%; }
  .kpi-banner { gap: 24px; }
  .footer { padding-bottom: calc(106px + env(safe-area-inset-bottom)); }
  .gallery-head { align-items: start; }
  .gallery-grid { gap: 26px; }
  .lightbox { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 650px) {
  .work-axis-label { font-size: 24px; }
  .container { width: calc(100% - 40px); }
  .topbar-inner { padding: 18px 20px; min-height: 84px; }
  .hero-meta { font-size: .75rem; gap: 12px; padding-bottom: 20px; }
  .hero-meta > span:first-child { max-width: 155px; }
  .hero-meta > span:last-child { text-align: right; }
  .hero-grid { grid-template-columns: minmax(0,1fr); gap: 34px; padding-block: 36px 28px; }
  .hero-name { font-size: 1.25rem; margin-bottom: 20px; }
  .hero-word { font-size: clamp(3.4rem,13.2vw,5.3rem); }
  .hero-intro { margin-top: 24px; }
  .hero-cta-row { gap: 12px 20px; margin-top: 24px; }
  .profile-ticket { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 14px; padding: 16px; border-radius: 20px; transform: none; margin: 0; }
  .ticket-top { grid-column: 1/-1; margin: 0; }
  .portrait-frame { border-radius: 42px 42px 10px 10px; }
  .ticket-caption { margin: 0; align-self: center; gap: 6px; }
  .ticket-caption strong { font-size: 1.25rem; }
  .ticket-caption > span { font-size: .75rem; }
  .portrait-credit { grid-column: 1/-1; margin: 0; padding-top: 10px; }
  .portrait-change-btn { inset: auto 4px 4px; padding: 6px; font-size: .75rem; }
  .identity-strip { flex-wrap: wrap; gap: 4px 22px; padding-top: 18px; }
  .identity-strip a { margin-left: 0; flex-basis: 100%; }
  .hero { padding-bottom: 24px; }
  .section { padding-block: 62px; }
  .section-title, .journey-heading .section-title { font-size: clamp(2.1rem,8.5vw,3rem); }
  .section-head { margin-bottom: 28px; }
  .section-desc { margin-top: 18px; }
  .recent-section { padding-block: 52px; }
  .recent-grid { grid-template-columns: 1fr; gap: 28px; }
  .recent-week { padding: 22px 18px; border-radius: 20px; }
  .recent-totals strong { font-size: clamp(1.7rem,6.5vw,2.4rem); }
  .recent-totals span { font-size: .75rem; }
  .recent-rhythm { gap: 7px; }
  .recent-feed li { padding-block: 18px; }
  .work-story { margin-top: 26px; }
  .work-highlight .kpi-value { font-size: clamp(3.4rem,13.5vw,4.7rem); }
  .work-highlight .kpi-sub { position: static; max-width: none; margin-top: 18px; }
  .kpi-banner { grid-template-columns: 1fr; gap: 22px; margin-top: 30px; }
  .kpi-card { display: grid; grid-template-columns: 100px minmax(0,1fr); align-items: center; gap: 4px 20px; }
  .kpi-card .kpi-value { grid-row: span 2; font-size: 2.2rem; margin: 0; }
  .kpi-card .kpi-sub { margin: 0; }
  .journey-heading { flex-direction: column; align-items: start; gap: 24px; }
  .journey-tally { display: flex; align-items: center; gap: 24px; }
  .journey-tally p { max-width: 120px; }
  .medal-totals { gap: 20px; }
  .medal-total strong { font-size: 2.2rem; }
  .journey-seasons { gap: 6px; margin-top: 30px; }
  .season-btn { flex: 1; padding-inline: 8px; gap: 6px; }
  .journey-season { flex-basis: max(100%,calc(var(--stop-count) * 190px)); }
  .journey-stop { padding-inline: 8px; }
  .stop-copy { padding: 10px; }
  .timeline-swipe { display: inline; }
  .journey-stage { grid-template-columns: minmax(0,1fr); gap: 26px; padding: 28px 24px; }
  .journey-emblem { display: grid; grid-template-columns: auto 1fr; column-gap: 22px; justify-items: start; }
  .emblem-year { grid-column: 2; grid-row: 1; align-self: end; }
  .journey-emblem > strong { grid-column: 1; grid-row: 1/4; font-size: 6rem; line-height: 1; }
  .emblem-place { grid-column: 2; }
  .emblem-type { grid-column: 2; margin: 0; text-align: left; }
  .journey-story h3 { font-size: 1.75rem; }
  .journey-controls { flex-wrap: wrap; padding: 16px; gap: 10px; }
  .journey-controls > span { order: -1; flex-basis: 100%; text-align: center; }
  .journey-controls button { flex: 1; padding-inline: 8px; }
  .achievements-grid { grid-template-columns: 1fr; }
  .ach-card { gap: 16px; }
  .panel { padding: 20px; border-radius: 18px; }
  .panel-header { margin-bottom: 20px; }
  .period-summary-strip { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
  .controls-bar { margin-top: 26px; }
  .pill-btn, .month-select, .metric-btn { padding-inline: 12px; }
  .month-select { padding-right: 32px; }
  .donut-and-bars { grid-template-columns: 1fr; gap: 20px; }
  .donut-wrap { width: 180px; margin: auto; }
  .disc-top { flex-direction: column; }
  .disc-row { padding-block: 10px; }
  .monthly-bars { gap: 5px; }
  .monthly-chart-wrap { min-height: 300px; }
  .heatmap-panel { margin-top: 26px; }
  .training-log > summary { padding: 18px 20px; }
  .gallery-head { flex-direction: column; align-items: start; gap: 20px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 36px; }
  .gallery-item img { aspect-ratio: auto; }
  .news-card { grid-template-columns: 1fr; gap: 18px; }
  .news-title { font-size: 1.25rem; }
  .footer-top p { font-size: clamp(2.6rem,10vw,4rem); }
  .modal-backdrop { padding: 12px; }
  .modal-card { padding: 20px; max-height: calc(100dvh - 24px); }
  .form-grid { grid-template-columns: 1fr; }
  .url-fetch-row, .lightbox-bar { flex-direction: column; }
  .modal-footer { flex-wrap: wrap; }
  .lightbox { padding-inline: 20px; }
}
@media (max-width: 1100px) {
  .training-atlas { grid-template-columns: minmax(0,1.6fr) minmax(260px,1fr); }
  .map-detail { padding: 24px; }
  .map-metrics { gap: 18px; }
}
@media (max-width: 900px) {
  .training-atlas { grid-template-columns: minmax(0,1fr); }
  .atlas-map-side { position: static; }
  .map-detail { border-left: 0; border-top: 1px solid var(--border); padding: 32px; }
  .map-detail h3 { font-size: 2rem; }
  .map-canvas { width: 100%; }
  .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gallery-item:last-child:nth-child(even) { grid-column: 1 / -1; }
  .gallery-item:last-child:nth-child(even) img { aspect-ratio: auto; }
  .gallery-feature .gallery-caption { grid-template-columns: minmax(0,1fr); gap: 8px; }
}
@media (max-width: 650px) {
  .map-toolbar { flex-direction: column; align-items: stretch; gap: 18px; }
  .map-regions { align-self: stretch; }
  .map-regions button { flex: 1; padding-inline: 10px; gap: 7px; }
  .training-atlas { border-radius: 18px; }
  .map-label { padding: 6px 9px; }
  .atlas-map-controls { top: 10px; left: 10px; }
  .atlas-map-controls button { padding-inline: 11px; }
  .atlas-legend { padding: 20px 18px 0; gap: 12px 16px; }
  .atlas-view-status { margin: 12px 18px 22px; }
  .map-detail { padding: 24px; }
  .map-metrics { gap: 32px; }
  .map-detail .btn { width: 100%; }

  .gallery-grid { grid-template-columns: minmax(0,1fr); gap: 38px; }
  .gallery-feature .gallery-open { border-radius: 16px; }
  .gallery-caption { padding-top: 18px; }
  .gallery-expand { right: 10px; bottom: 10px; padding: 4px 12px; }
  .lightbox { justify-content: start; gap: 18px; padding: 74px 16px 28px; }
  .lightbox > img { flex: 0 0 auto; max-height: 45dvh; }
  .lightbox-bar { gap: 12px; }
  .lightbox-info strong { font-size: .9375rem; line-height: 1.5; }
  .lightbox-navigation { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
