* { box-sizing: border-box }
body { margin: 0; background: radial-gradient(75% 28rem at 75% 10%, #e2ecff, transparent), #f6f8fc; color: #0f172a; font: 16px/1.5 Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif }
main, header > div { max-width: 1200px; margin: auto; padding: 20px }
header { background: #ffffffc9; border-bottom: 1px solid #e2e8f0 }
header > div, .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap }
header a { display: inline-flex; align-items: center; gap: 12px }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #1d5ce8; color: white }
header strong { font-size: 1.4rem; letter-spacing: -.04em }
a { color: #1d5ce8 }
h1 { font-size: clamp(2rem, 6vw, 4.5rem); line-height: 1.04; letter-spacing: -.06em; margin: 12px 0 }
h2, h3 { margin: 0 0 8px; line-height: 1.25 }
button, select, input, .button { font: inherit; border-radius: 14px; padding: 11px 16px; border: 1px solid #dce5f0; background: white; color: #0f172a }
input, select { width: 100%; min-width: 0; background: #f5f7fa }
button, .button { cursor: pointer; display: inline-block; text-decoration: none; font-weight: 700; transition: background .18s, transform .18s }
button:active, .button:active { transform: scale(.98) }
button:disabled { cursor: wait; opacity: .6 }
.primary { background: #1d5ce8; border-color: #1d5ce8; color: white }
.primary:hover { background: #174bc2 }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #1d5ce8; outline-offset: 3px }
.hero, article, .entry { background: white; border-radius: 24px; padding: 24px; margin: 16px 0; border: 1px solid #e2e8f0; box-shadow: 0 20px 50px -28px #0f172a24 }
.hero { background: #eff5ff; padding: clamp(28px,6vw,72px) }
.landing-hero { display: grid; grid-template-columns: 1.06fr 1fr; overflow: hidden; padding: 0; border: 0; border-radius: 30px; background: radial-gradient(85% 125% at 100% 40%, #254699 0%, #14284e 54%, #101c36 100%); color: white; box-shadow: 0 28px 64px -34px #173979 }
.landing-copy { padding: clamp(28px,5vw,56px); align-self: center }
.landing-copy p { color: #cbd8f3; max-width: 35ch }
.landing-copy .primary { background: white; border-color: white; color: #0f172a }
.landing-visual { position: relative; min-height: 280px }
.landing-visual img { width: 100%; height: 100%; object-fit: cover; position: absolute }
.landing-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #182d57, transparent 34%) }
.grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); gap: 14px }
.grid article { margin: 0 }
.tag { display: inline-block; background: #eaf1ff; color: #174bc2; border-radius: 99px; padding: 4px 12px }
.muted { color: #52647e }
label { display: grid; gap: 6px; margin: 12px 0; font-weight: 600 }
form .primary { margin-top: 8px }
#notice { color: #a32121; margin: 0 }
#notice:empty { display: none }
.entry { text-align: center; padding: 36px 20px }
.small { display: block; font-size: .9rem; margin-top: 12px }
.map { position:relative; isolation:isolate; overflow:hidden; width:100%; min-width:0; height: 365px; border-radius: 20px; margin-top: 12px; background: #eaf1ff }
.narrow { max-width: 540px; margin: auto }
.narrow article, .profile-sheet { border-radius: 28px; padding: clamp(20px,4vw,32px) }
.narrow .primary { display: block; text-align: center; width: 100% }
.narrow details { margin-top: 20px }
.stack > * + * { margin-top: 12px }
.avatar { width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; background: #eaf1ff; color: #1d5ce8; margin-bottom: 12px; overflow: hidden; font-size: 1.5rem; font-weight: 800 }
.avatar img { width: 100%; height: 100%; object-fit: cover }
.athlete-avatar-fallback { display:block; width:100%; height:100% }
.athlete-avatar-fallback img { display:block }
.avatar img[hidden] { display: none }
@media (max-width: 760px) {
  .landing-hero { grid-template-columns: 1fr }
  .landing-visual { min-height: 220px }
  .landing-visual::after { background: linear-gradient(180deg, #182d57, transparent 35%) }
}
@media (prefers-reduced-motion: reduce) {
  button, .button { transition: none }
  button:active, .button:active { transform: none }
}
.dashboard-head { display:flex; align-items:center; gap:20px; padding:24px; margin:16px 0 24px; border:1px solid #e2e8f0; border-radius:28px; background:white }
.dashboard-head .avatar { flex:none; margin:0; width:64px; height:64px; background:#1d5ce8; color:white }
.dashboard-head h1 { margin:0; font-size:clamp(1.5rem,4vw,2.4rem); letter-spacing:-.04em }
.dashboard-head p { margin:4px 0 0 }
.dashboard-content { display:grid; gap:20px; align-items:start; grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr)) }
.dashboard-content .profile-sheet { margin:0; grid-row:1 }
.dashboard-content section .row h2 { margin:0 }
@media (max-width:760px) {
  .dashboard-head { gap:14px; padding:18px }
  .dashboard-head .avatar { width:48px; height:48px }
}
#nav { display:flex; align-items:center; gap:10px; flex-wrap:wrap }
#nav .button { font-size:.9rem; padding:8px 13px }
.public-hero { position:relative; isolation:isolate; display:grid; grid-template-columns:1.04fr 1fr; min-height:470px; border-radius:30px; overflow:hidden; background:#0f1d39; color:white; box-shadow:0 24px 60px -38px #1c3e80 }
.public-copy { z-index:1; padding:clamp(28px,5.2vw,64px); align-self:center }
.public-city { display:flex; align-items:center; gap:8px; margin:0 0 20px; color:#d5e5ff; font-size:.9rem; font-weight:700 }
.public-city span { width:7px; height:7px; border-radius:50%; background:#93b7ff }
.public-copy h1 { margin:0; font-size:clamp(2.4rem,5.4vw,4.4rem); line-height:1 }
.public-copy h1 + p { color:#d1ddf5; max-width:32ch; margin:20px 0 24px }
.public-copy .button { background:white; border-color:white; color:#152b58 }
.public-copy .button span { margin-left:.45rem }
.public-photo { position:relative; min-height:260px }
.public-photo img { position:absolute; width:100%; height:100%; object-fit:cover; object-position:56% center }
.public-photo::after { content:''; position:absolute; inset:0; background:linear-gradient(90deg,#0f1d39,transparent 37%) }
.public-section { margin:48px 0; scroll-margin-top:20px }
.public-section-head { margin:0 0 17px }
.public-section-head h2 { font-size:clamp(1.7rem,3vw,2.4rem); letter-spacing:-.04em }
.public-section-head p,.public-steps p { color:#52647e; margin:6px 0 0 }
.trainer-grid { gap:18px }
.trainer-grid .trainer-card { padding:0; overflow:hidden }
.trainer-card img { display:block; width:100%; aspect-ratio:1.65; object-fit:cover; object-position:center 31%; background:#eaf1ff }
.trainer-card-body { padding:20px }
.trainer-card h3 { margin-top:12px; font-size:1.25rem }
.trainer-card p { margin:0 }
.public-steps article { padding:22px; background:#fdfdff }
.public-footer { display:flex; flex-wrap:wrap; justify-content:space-between; gap:14px; padding:20px 0; border-top:1px solid #dfe7f3; color:#334155 }
@media(max-width:760px){
  .public-hero { grid-template-columns:1fr; min-height:0 }
  .public-photo { min-height:218px }
  .public-photo::after { background:linear-gradient(180deg,#0f1d39,transparent 28%) }
  .desktop-break { display:none }
  .trainer-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,205px),1fr)) }
}
.trainer-card { position:relative; transition:transform .18s ease, box-shadow .18s ease }
.trainer-card:hover { transform:translateY(-3px); box-shadow:0 20px 44px -24px #204a8b55 }
.trainer-card-link { color:inherit; text-decoration:none }
.trainer-card-link:hover { color:#1d5ce8 }
.trainer-card-link::after { content:''; position:absolute; inset:0 }
.trainer-card:focus-within { outline:2px solid #1d5ce8; outline-offset:3px }
.trainer-profile { display:grid; grid-template-columns: minmax(0,320px) minmax(0,1fr); align-items:start; gap:clamp(20px,5vw,52px); padding:clamp(20px,4vw,36px) }
.trainer-profile h1 { font-size:clamp(2rem,4vw,3.8rem) }
.trainer-portrait { display:block; width:100%; aspect-ratio:4/5; object-fit:cover; object-position:center 30%; border-radius:20px; background:#eaf1ff }
.trainer-profile dt { font-weight:750; margin-top:12px }
.trainer-profile dd { color:#52647e; margin:4px 0 0 }
textarea { width:100%; padding:11px 16px; border-radius:14px; border:1px solid #dce5f0; background:#f5f7fa; color:#0f172a; font:inherit; resize:vertical }
textarea:focus-visible { outline:2px solid #1d5ce8; outline-offset:3px }
@media(max-width:680px) { .trainer-profile { grid-template-columns:1fr } .trainer-portrait { aspect-ratio:4/3 } }
@media(prefers-reduced-motion:reduce) { .trainer-card { transition:none } .trainer-card:hover { transform:none } }
.brand-mark { display:flex; align-items:center; justify-content:center; gap:3px; background:linear-gradient(145deg,#3679ff,#1847cc); box-shadow:0 6px 12px -6px #1d5ce899 }
.brand-mark i { width:4px; height:12px; border-radius:4px; background:#fff; transform:skewX(-20deg) }
.brand-mark i:nth-child(2) { height:20px }
.brand-mark i:nth-child(3) { height:15px; opacity:.72 }
.trainer-window { overflow:hidden; padding:6px; margin:-6px }
#trainer-track { position:relative; display:grid; grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:calc((100% - 18px) / 2); align-items:stretch }
#trainer-track .trainer-card:hover { transform:none }
#trainer-track .trainer-card { min-width:0; overflow-wrap:anywhere }
#trainer-track .trainer-card:not(:has(img))::before { content:""; display:block; aspect-ratio:1.75; background:#eaf1ff }
.trainer-grid .trainer-card img { aspect-ratio:1.75 }
.trainer-card-body { padding:clamp(20px,3vw,30px) }
.trainer-card h3 { font-size:clamp(1.3rem,2.4vw,1.65rem) }
.trainer-card .trainer-summary { color:#334155; margin-top:12px; line-height:1.55; min-height:3.1em; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden }
@media(max-width:520px) {
  #trainer-track { grid-auto-columns:100% }
  #trainer-track .trainer-card img,#trainer-track .trainer-card:not(:has(img))::before { aspect-ratio:1.42 }
}
.catalog-cta { margin-top:24px; text-align:center }
.catalog-filters { grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)) }
.catalog-filters label { margin:0 }
.catalog-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,255px),1fr)); gap:18px }
.catalog-grid .trainer-card { padding:0; overflow:hidden }
.catalog-toggle { display:flex; gap:4px; padding:4px; border:1px solid #dfe7f3; border-radius:16px; background:white }
.catalog-toggle button { padding:7px 14px; border-color:transparent }
.catalog-toggle button[aria-pressed="true"] { color:#174bc2; background:#eaf1ff }
#catalog-map { height:clamp(340px,60vh,570px) }
#catalog-results[hidden], #catalog-map[hidden] { display:none }
.dashboard-head { flex-wrap:wrap }
.dashboard-head .role-shortcut { margin-left:auto }
.location-tools,.radius-presets { display:flex; flex-wrap:wrap; gap:8px; align-items:center }
.location-tools { margin-top:14px; gap:14px }
.radius-presets button { padding:7px 12px }
.radius-presets button[aria-pressed="true"] { color:#174bc2; background:#eaf1ff; border-color:#cddfff }
#location-status:empty { display:none }
.search-panel .location-tools { align-items:end }
.search-panel .location-tools label { margin:0; flex:1 1 200px; max-width:380px }
.search-radius { margin-top:22px; padding-top:20px; border-top:1px solid #e2e8f0 }
.search-radius .grid { max-width:540px }
.search-sports { margin:20px 0 12px; padding:16px; border:1px solid #dfe7f3; border-radius:20px; background:#fff }
.search-sports h2 { font-size:1.2rem; scroll-margin-top:16px }
.search-sports h2:focus { outline:none }
#search-count { margin:12px 0 0 }
#results .search-empty { grid-column:1/-1; margin:0; padding:18px }
.search-empty h3 { font-size:1.05rem }
.search-empty p { margin:6px 0 12px }

.button.page-back { display:inline-flex; align-items:center; gap:8px; min-height:44px; margin-bottom:14px }
.button:is(.page-back,.document-link,.map-profile-link):hover { background:#eaf1ff }
.button.document-link { margin:8px 0 }
.button.map-profile-link { margin:3px 0 }
.public-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px 18px }
.public-actions > .button:not(.primary) { background:#ffffff19; border-color:#ffffff75; color:#fff }
[data-clear-area][hidden] { display:none }
.search-radius { background:#f7faff; border:1px solid #dfe9fa; border-radius:20px; padding:clamp(16px,3vw,24px) }
.radius-heading { display:flex; align-items:center; justify-content:space-between; gap:12px }
.radius-heading label { margin:0; font-size:1.15rem; font-weight:800 }
.radius-heading output { padding:5px 12px; border-radius:10px; background:#e5eeff; color:#174bc2; font-weight:800; white-space:nowrap }
.search-radius input[type="range"] { display:block; margin:10px 0 2px; padding:0; min-height:32px; border:0; accent-color:#1d5ce8; background:transparent; cursor:pointer }
.radius-scale { display:flex; justify-content:space-between; color:#52647e; font-size:.85rem }
.travel-options { min-width:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr)); gap:8px; border:0; padding:0; margin:18px 0 0 }
.travel-options legend { padding:0; margin-bottom:8px; font-weight:750 }
.travel-options label { display:flex; align-items:center; gap:9px; margin:0; padding:10px 12px; border:1px solid #dce5f0; border-radius:12px; background:white; cursor:pointer }
.travel-options label:has(input:checked) { border-color:#a9c5ff; background:#edf4ff; color:#174bc2 }
.travel-options input[type="radio"] { width:16px; height:16px; margin:0; flex:none; accent-color:#1d5ce8 }
.travel-options label { min-height:72px; padding:12px 14px; align-items:center }
.travel-options strong,.travel-options small { display:block }
.travel-options small { color:#52647e; font-size:.84rem; font-weight:500; line-height:1.35; margin-top:3px }
.travel-options label:focus-within { outline:2px solid #1d5ce8; outline-offset:2px }
@media(max-width:600px) { .travel-options { grid-template-columns:1fr } }
.request-form { max-width:750px }
.request-form h1,.request-grid h2 { margin-top:12px }
.request-form h1 { font-size:clamp(2rem,4vw,3rem) }
.request-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr)) }
.request-description { overflow-wrap:anywhere; white-space:pre-wrap }
.request-editor { padding:12px 0; border-top:1px solid #e2e8f0 }
.request-editor summary { cursor:pointer; font-weight:750; color:#174bc2 }
.offer-photo { width:52px; height:52px; border-radius:50%; object-fit:cover }
.request-grid article h3 { margin-top:12px }
.request-heading h1 { font-size:clamp(2rem,4vw,3rem) }
.request-tabs { display:flex; flex-wrap:wrap; gap:6px; padding:5px; background:white; border:1px solid #dfe7f3; border-radius:16px; width:fit-content; margin:18px 0 }
.request-tabs a { display:inline-flex; align-items:center; gap:6px; padding:8px 13px; border-radius:11px; text-decoration:none; color:#334155; font-weight:750 }
.request-tabs a:hover,.request-tabs a[aria-current="page"] { color:#174bc2; background:#eaf1ff }
.request-tabs .tag { padding:1px 7px; font-size:.8rem }
.app-brand { text-decoration:none }
.coach-intro { display:grid; grid-template-columns:1.25fr 1fr; gap:30px; align-items:center; padding:clamp(24px,5vw,62px); margin-top:18px; border-radius:28px; background:#e9f1ff }
.coach-intro h1 { font-size:clamp(2.4rem,5vw,4.4rem) }
.coach-preview article { margin:0 0 14px }
.coach-preview article p { margin-bottom:0; color:#52647e }
@media(max-width:680px) { .coach-intro { grid-template-columns:1fr } .app-brand .tag { display:none } }
.coach-onboarding { max-width:790px }
.coach-onboarding h1 { font-size:clamp(2rem,4vw,3rem) }
.coach-onboarding .grid { align-items:start }
.coach-progress { display:grid; gap:7px; color:#52647e; font-weight:700; font-size:.9rem; margin:18px 0 24px }
.coach-progress progress { display:block; width:100%; height:9px; accent-color:#1d5ce8 }
.coach-step h2 { margin:0 0 16px }
.coach-step-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px }
.coach-step-actions button { margin:0 }
.coach-step-actions [hidden],.coach-step[hidden] { display:none }
.coach-photo-card { display:grid; justify-items:center; gap:14px; padding:24px 16px; text-align:center; border:1px solid #dfe7f3; border-radius:20px; background:#f7faff }
.coach-camera-button.avatar { width:104px; height:104px; margin:0; padding:0; border:1px solid #c9dcff; background:#e8f0ff }
.coach-camera-button.avatar:is(:hover,:focus-visible) { background:#dbe9ff }
.portrait-smile { display:block; position:relative; width:46px; height:50px; border:2px solid currentColor; border-radius:46% }
.portrait-smile::before { content:""; position:absolute; top:15px; left:11px; width:5px; height:6px; border-radius:50%; background:currentColor; box-shadow:15px 0 currentColor }
.portrait-smile::after { content:""; position:absolute; left:12px; top:26px; width:18px; height:8px; border-bottom:2px solid currentColor; border-radius:50% }
.coach-photo-card p { margin:0 0 8px }
.coach-photo-card .muted,.coach-field-hint,[data-certificate-status] { margin:8px 0 0; font-size:.875rem }
body[data-coach-onboarding] > header { display:none }
.coach-camera-dialog { width:min(440px,calc(100% - 24px)); max-height:calc(100dvh - 24px); padding:20px; border:1px solid #dfe7f3; border-radius:22px; color:#0f172a }
.coach-camera-dialog::backdrop { background:#0f172a99 }
.camera-view { position:relative; isolation:isolate; overflow:hidden; aspect-ratio:1; border-radius:16px; background:#111827 }
.camera-view video { display:block; width:100%; height:100%; object-fit:cover; transform:scaleX(-1) }
.camera-guide { position:absolute; pointer-events:none; inset:9%; border:2px solid #fff; border-radius:50%; box-shadow:0 0 0 900px #0f172a65 }

/* Keep the coach interface within the on-screen Android WebView width. */
body[data-app="coach"] { min-height:100dvh; overflow-wrap:anywhere }
body[data-app="coach"] :is(main,#view,.coach-onboarding,form,.coach-step,.grid > *,#nav) { min-width:0 }
body[data-app="coach"] :is(input,textarea,select,button,img,video) { max-width:100% }
body[data-app="coach"] .camera-view video { position:absolute; inset:0 }
@media (max-width:680px) {
  body[data-app="coach"] { background:#fff; font-size:16px; }
  body[data-app="coach"] header > div {
    padding:10px max(16px,env(safe-area-inset-right)) 8px max(16px,env(safe-area-inset-left));
    gap:6px 12px;
  }
  body[data-app="coach"] .app-brand { gap:8px; min-height:40px }
  body[data-app="coach"] .brand-mark { width:32px; height:32px; flex:none }
  body[data-app="coach"] header strong { font-size:1.13rem }
  body[data-app="coach"] #nav { flex:1 1 100%; gap:4px 12px }
  body[data-app="coach"] #nav a,
  body[data-app="coach"] #nav button { padding:7px 0; min-height:38px; font-size:.85rem; text-decoration:none }
  body[data-app="coach"] #nav button { color:#52647e; margin-inline-start:auto; border:0 }
  body[data-app="coach"] main {
    width:100%; padding:16px max(16px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));
  }
  body[data-app="coach"] .coach-onboarding {
    width:100%; max-width:none; margin:0; padding:4px 0 0; border:0; border-radius:0; box-shadow:none;
  }
  body[data-app="coach"] .coach-onboarding h1 { font-size:clamp(1.55rem,6.6vw,2rem); line-height:1.12; margin:0 0 8px }
  body[data-app="coach"] .coach-onboarding > p { font-size:.9rem; margin:0 }
  body[data-app="coach"] .coach-onboarding .grid { grid-template-columns:minmax(0,1fr); gap:0 }
  body[data-app="coach"] .coach-progress { margin:18px 0 }
  body[data-app="coach"] .coach-step h2 { font-size:1.25rem }
  body[data-app="coach"] .coach-step-actions { display:flex; gap:8px; margin-top:16px }
  body[data-app="coach"] .coach-step-actions button:not([hidden]) { flex:1 1 auto; min-height:46px; padding:9px 12px }
  body[data-app="coach"] .coach-camera-dialog {
    box-sizing:border-box; inset:0; width:100%; height:100%; max-width:none; max-height:none; margin:0;
    border:0; border-radius:0; padding:16px; overflow:auto;
  }
  body[data-app="coach"] .camera-view { width:min(100%, max(170px,calc(100dvh - 215px))); margin-inline:auto }
  body[data-app="coach"] .dashboard-head { padding:14px; margin:0 0 16px }
  body[data-app="coach"] .dashboard-content,body[data-app="coach"] .request-grid { grid-template-columns:minmax(0,1fr) }
  body[data-app="coach"] .coach-intro { margin-top:0; padding:20px; border-radius:20px; gap:14px }
}

.coach-profile-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px }
.coach-profile-heading :is(h2,p) { margin:0 }
.coach-profile-heading p { margin-top:4px }
.dashboard-training { grid-template-columns:minmax(0,1fr) }
.coach-requests-heading { margin:8px 0 16px }
.coach-requests-heading h1 { margin:0; font-size:clamp(1.65rem,5vw,2.4rem); letter-spacing:-.04em }
.coach-requests-empty { border:1px solid #dfe7f3; border-radius:18px }
.coach-requests-empty h2 { margin:0; font-size:1.15rem }
.coach-requests-empty p { margin:6px 0 0 }

@media (prefers-reduced-motion:no-preference) {
  html:has(.public-hero) { scroll-behavior:smooth }
}

[data-pick-map-point][aria-pressed="true"] { color:#174bc2; background:#eaf1ff }

.search-point-tools { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:10px; align-items:start; margin-top:16px }
.search-point-tools :is(summary,button) { min-height:46px; width:100% }
#metro-picker { min-width:0; margin:0 }
#metro-picker summary { display:flex; align-items:center; justify-content:space-between; gap:10px; list-style:none }
#metro-picker summary::-webkit-details-marker { display:none }
.metro-picker-body { margin-top:8px; padding:10px; border:1px solid #dfe7f3; border-radius:16px }
.metro-picker-body label { margin:0 0 6px }
.metro-options { display:grid; gap:4px; max-height:min(260px,35dvh); overflow:auto; overscroll-behavior:contain; margin-top:8px }
.metro-options .metro-option { display:flex; align-items:center; text-align:left; gap:10px; padding:7px 10px; border-color:transparent; min-width:0 }
.metro-option:is(:hover,[aria-pressed="true"]) { background:#eaf1ff }
.metro-option small { display:block; font-size:.8rem; color:#52647e; font-weight:500 }
.metro-dot { background:var(--metro-color); width:10px; height:10px; border-radius:50%; flex:none }
#location-status:empty { display:none }
@media (max-width:560px) { .search-point-tools { grid-template-columns:minmax(0,1fr) } }

#metro-picker summary::after { content:''; flex:none; color:#52647e; width:8px; height:8px; border:solid currentColor; border-width:0 2px 2px 0; transform:translateY(-2px) rotate(45deg); margin-right:4px }
#metro-picker[open] summary::after { transform:translateY(2px) rotate(225deg) }
.search-wizard { max-width:760px }
.search-step-label { color:#52647e; font-weight:750; font-size:.875rem; margin:0 0 8px }
.search-next { margin-top:18px }
.menu-icon { width:16px; height:12px; border-block:2px solid currentColor; background:linear-gradient(currentColor,currentColor) center / 100% 2px no-repeat }

.chat-panel { width:100%; max-width:860px; margin:12px auto; padding:16px; border:1px solid #dfe7f3; border-radius:20px; background:white; display:grid; gap:12px }
.chat-header { display:flex; align-items:center; gap:12px; min-width:0 }
.chat-header h2 { margin:0; font-size:clamp(1.05rem,3vw,1.35rem); overflow-wrap:anywhere }
.chat-header .chat-back { display:grid; place-items:center; flex:0 0 44px; height:44px; padding:0; font-size:1.25rem }
.chat-panel [data-chat-presence] { margin:2px 0 0; font-size:.85rem }
.chat-panel [data-chat-status] { margin:0 }
.chat-panel :is([data-chat-presence],[data-chat-status]):empty { display:none }
.chat-messages { display:flex; flex-direction:column; gap:8px; max-height:min(520px,50dvh); overflow:auto; overscroll-behavior:contain; min-width:0; padding:10px; background:#f3f6fb; border-radius:14px }
.chat-empty { margin:16px auto; text-align:center }
.chat-message { align-self:flex-start; max-width:85%; min-width:0; background:#fff; border-radius:14px; padding:8px 12px }
.chat-message.own { align-self:flex-end; background:#e8f0ff }
.chat-message p { margin:0; white-space:pre-wrap; overflow-wrap:anywhere }
.chat-message small,.chat-preview small { color:#52647e; font-size:.8rem }
.chat-inbox { max-width:860px; margin:12px auto }
.chat-inbox h1 { font-size:clamp(1.7rem,4vw,2.4rem); margin:0 0 16px }
.chat-inbox [data-chat-status]:empty { display:none }
.chat-list { display:grid; padding:6px; border:1px solid #dfe7f3; border-radius:20px; background:white }
.chat-preview { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px; padding:11px 12px; border-radius:14px; color:inherit; text-decoration:none }
.chat-preview + .chat-preview { margin-top:3px }
.chat-preview.unread { background:#f0f5ff }
.chat-preview:hover,.chat-preview:focus-visible { background:#e8f0ff }
.chat-preview :is(strong,small) { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.chat-preview-meta { display:grid; justify-items:end; gap:4px; color:#52647e; font-size:.8rem }
.chat-unread { min-width:1.55em; padding:2px 6px; border-radius:20px; background:#1d5ce8; color:white; text-align:center; font-weight:750 }
.chat-line { display:flex; align-items:flex-end; gap:8px; min-width:0 }
.chat-line.own { justify-content:flex-end }
.chat-line .chat-message { align-self:auto; max-width:min(85%,calc(100% - 40px)) }
.chat-avatar { position:relative; flex:none; display:grid; place-items:center; width:46px; height:46px; overflow:hidden; border-radius:50%; background:#e5eeff }
.chat-line .chat-avatar { width:32px; height:32px }
.chat-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover }
.chat-avatar-shape { width:37%; aspect-ratio:1; background:#2460db; border-radius:23%; animation:chat-avatar-morph 5s ease-in-out 2 both }
@keyframes chat-avatar-morph {
  0%,100% { transform:rotate(45deg); border-radius:18%; background:#2460db }
  25% { transform:rotate(0); border-radius:15%; background:#465cd9 }
  50% { transform:scale(1.3,.68); border-radius:22%; background:#007794 }
  75% { transform:scale(1); border-radius:50%; background:#227d66 }
}
@media (prefers-reduced-motion:reduce) { .chat-avatar-shape { animation:none; border-radius:50% } }


.sport-picker { margin:12px 0; min-width:0 }
.sport-picker label { display:block; margin:0 0 6px }
.sport-picker input { min-height:46px }
.sport-selection { margin:10px 0 0; overflow-wrap:anywhere }
.sport-options { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr)); gap:6px; max-height:min(230px,36dvh); overflow:auto; overscroll-behavior:contain; padding:3px; margin:8px -3px 0 }
.sport-options button { min-width:0; min-height:44px; text-align:left; overflow-wrap:anywhere; padding:7px 10px }
.sport-options button[aria-pressed="true"] { color:#174bc2; background:#eaf1ff; border-color:#cddfff }
.sport-options p { grid-column:1/-1; margin:4px 0 }

[data-open-menu] { display:inline-flex; align-items:center; gap:8px; min-height:44px }
.athlete-drawer { position:fixed; inset:0 0 0 auto; margin:0; width:min(390px,100%); max-width:none; height:100dvh; max-height:none; border:0; border-radius:0; color:#0f172a; padding:max(16px,env(safe-area-inset-top)) 18px max(16px,env(safe-area-inset-bottom)); overflow:auto }
.athlete-drawer[open] { animation:drawer-in .28s cubic-bezier(.22,.7,.25,1) }
.athlete-drawer::backdrop { background:#0f172a66 }
.drawer-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px }
.drawer-links { display:grid; gap:7px }
.drawer-links :is(a,button) { justify-content:flex-start; text-align:left; min-height:44px }
@keyframes drawer-in { from { transform:translateX(100%) } }
@media (max-width:560px) { .athlete-drawer { width:100% } }
@media (prefers-reduced-motion:reduce) { .athlete-drawer[open] { animation:none } }
.workspace-tabs { display:flex; flex-wrap:wrap; gap:6px; align-items:center }
.workspace-tabs [aria-current="page"] { color:#174bc2; background:#eaf1ff }
[data-unread-badge]:not([hidden]) { display:inline-block; min-width:1.35em; padding:0 5px; background:#1d5ce8; color:white; border-radius:12px; text-align:center; font-size:.75rem; margin-inline-start:4px }
.review-status { background:#eaf1ff; border:1px solid #dfe7f3; border-radius:16px; padding:12px 16px; margin-bottom:16px }
.review-status p { margin:4px 0 0 }
.moderation-card { display:grid; grid-template-columns:minmax(0,160px) minmax(0,1fr); align-items:start; gap:16px }
.moderation-photo { width:100%; aspect-ratio:1; object-fit:cover; border-radius:14px }
.chat-compose { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:6px 8px }
.chat-compose textarea { margin:0; min-height:46px; max-height:8rem; resize:none; font-size:max(16px,1rem) }
.chat-compose button { min-width:46px; min-height:46px; display:flex; align-items:center; justify-content:center; gap:6px }
.chat-compose button span:first-child { font-size:1.25rem; line-height:1 }
.catalog-grid .trainer-card img { height:clamp(128px,19vw,210px); aspect-ratio:auto; object-position:center 35% }
.catalog-grid .trainer-card-body { padding:16px }
.trainer-profile { grid-template-columns:minmax(0,245px) minmax(0,1fr); gap:clamp(16px,3vw,34px) }
.trainer-profile h1 { font-size:clamp(1.65rem,3.8vw,3rem); overflow-wrap:anywhere; line-height:1.12 }
.trainer-portrait { aspect-ratio:1; object-position:center }
.trainer-facts { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:12px 0 }
.trainer-facts > * { background:#eaf1ff; padding:7px 10px; border-radius:10px }
.trainer-facts small { font-weight:500; color:#52647e }
.map-loading { padding:16px }
.map:has(.map-loading),#catalog-map:has(.map-loading) { height:auto; min-height:0 }
.map-loading p { margin:0 0 8px }
#metro-picker[open] { grid-column:1/-1 }
.metro-options { max-height:min(290px,40dvh) }
@media(max-width:680px) {
  .trainer-profile { grid-template-columns:minmax(0,1fr) }
  .trainer-portrait { width:min(58vw,220px) }
  .chat-panel { padding:10px; margin:4px auto; border-radius:16px }
  .chat-compose button { padding-inline:10px }
  .chat-send-label { display:none }
  body[data-workspace="account"] #nav { display:flex; flex-wrap:wrap; flex-basis:100% }
  .workspace-tabs .button { padding:6px 9px }
  .moderation-card { grid-template-columns:minmax(0,1fr) }
  .moderation-photo { width:min(100%,180px) }
}
.profile-sheet > .location-tools { margin-top:14px }

body[data-workspace-dock] { --workspace-width:min(calc(100% - 32px),900px) }
body[data-workspace-dock] main { width:var(--workspace-width); max-width:none; padding:16px 0 calc(100px + env(safe-area-inset-bottom)) }
body[data-workspace-dock] :is(.coach-overview,.coach-profile-page,.account-settings,.chat-inbox) { width:100%; max-width:none }
.workspace-dock[hidden] { display:none }
.workspace-dock { position:fixed; z-index:40; inset:auto 0 max(10px,env(safe-area-inset-bottom)); width:var(--workspace-width); margin-inline:auto; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; padding:5px; border:1px solid #dfe7f3; border-radius:17px; background:white; box-shadow:0 12px 35px #0f172a20 }
.workspace-dock a { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:48px; gap:4px; padding:4px; border-radius:12px; text-decoration:none; color:#52647e; font-weight:750; font-size:.78rem }
.workspace-dock a:hover { background:#eaf1ff }
.workspace-dock a[aria-current="page"] { color:white; background:#1d5ce8 }
.workspace-dock [data-unread-badge] { position:absolute; top:5px; left:calc(50% + 10px) }
.dock-icon { width:20px; height:20px; display:block }
body:has(.chat-panel) { display:grid; grid-template-rows:auto minmax(0,1fr); height:100dvh; overflow:hidden }
body:has(.chat-panel) main { width:100%; max-width:none; margin:0; display:grid; grid-template-rows:auto minmax(0,1fr); min-height:0; padding:0 0 env(safe-area-inset-bottom) }
body:has(.chat-panel) #notice:empty { display:block; margin:0; padding:0 }
body:has(.chat-panel) #view { min-height:0 }
.chat-panel[data-chat-peer] { height:100%; max-width:900px; margin:0 auto; padding:0; border:0; border-radius:0; box-shadow:0 10px 40px #17346414; grid-template-rows:auto minmax(0,1fr) auto; gap:0 }
.chat-panel:has([data-chat-status]:not(:empty)) { grid-template-rows:auto minmax(0,1fr) auto auto }
.chat-panel [data-chat-status]:not(:empty) { padding:8px 14px; color:#9e2438; background:#fff1f4 }
.chat-panel .chat-messages { max-height:none; border-radius:0; padding:12px clamp(10px,3vw,24px); background:#eef3fb }
.chat-panel .chat-empty { margin:auto; padding:12px }
.chat-day { align-self:center; font-size:.75rem; color:#495c7a; margin:5px 0 }
.chat-day span { display:block; padding:4px 10px; border-radius:99px; background:#dfe8f7 }
.chat-line .chat-message { border-radius:15px 15px 15px 4px; max-width:min(76%,540px) }
.chat-line .chat-message.own { border-radius:15px 15px 4px 15px; background:#dce9ff }
.chat-message-meta { display:block; margin-top:3px; text-align:right }
.chat-header { display:grid; grid-template-columns:44px minmax(0,1fr) }
.chat-header > div { display:block; min-width:0; margin:0; padding:0 }
.chat-panel .chat-header { padding:10px 14px; border-bottom:1px solid #dfe7f3; background:white }
.chat-panel .chat-header > .chat-peer-heading { display:flex; flex-wrap:nowrap; align-items:center; justify-content:flex-start; gap:9px; padding:0 }
.chat-peer-heading > div { min-width:0 }
.chat-peer-heading h2,.chat-peer-heading [data-chat-presence] { overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.chat-peer-heading [data-chat-avatar]:empty { display:none }
.chat-peer-heading [data-chat-avatar] { flex:none }
.chat-peer-heading .chat-avatar { width:38px; height:38px }
.chat-panel .chat-compose { padding:10px 14px; border-top:1px solid #dfe7f3; background:white }
@media(max-width:680px) {
  body:has(.chat-panel) { grid-template-rows:minmax(0,1fr) }
  body:has(.chat-panel) > header { display:none }
  .chat-panel :is(.chat-header,.chat-compose) { padding-inline:10px }
  .chat-panel .chat-header { gap:8px; padding-block:8px }
  .chat-peer-heading .chat-avatar { width:34px; height:34px }
  .chat-panel .chat-messages { gap:5px }
  .chat-line .chat-message { max-width:min(85%,calc(100% - 40px)) }
}
.chat-message-meta { font-size:.72rem; white-space:nowrap }
.chat-receipt { color:#174bc2; letter-spacing:-.12em; padding-inline:2px }
.support-avatar { background:#fff; border:1px solid #dfe7f3 }
.support-pinned { background:#eef4ff; margin-bottom:4px }
.support-notice-label { display:block; margin-bottom:4px; color:#174bc2; font-size:.82rem }
.support-pin { color:#52647e; font-size:.75rem; white-space:nowrap }
.support-attachment { grid-column:1/-1; margin:0; font-size:.875rem }
.support-attachment select { min-height:44px }
.support-attachment small,.support-shared-chat { display:block }
.reported-conversation { display:grid; gap:8px; max-height:380px; overflow:auto; padding:10px; background:#f3f6fb; border-radius:12px }
.reported-conversation .chat-message { max-width:100% }
.coach-overview,.coach-profile-page { max-width:920px; margin-inline:auto; display:grid; gap:16px }
.account-settings { max-width:720px; margin-inline:auto; display:grid; gap:12px; overflow-wrap:anywhere }
.account-settings h1 { margin:0; font-size:clamp(1.9rem,5vw,2.7rem) }
.account-settings [hidden] { display:none }
.account-settings > button { justify-self:start }
.account-settings [data-account-status]:empty { display:none }
.account-emails { padding-inline-start:20px }
.account-profile-card { display:grid; gap:16px; padding:clamp(12px,4vw,24px) }
.account-identity { display:flex; align-items:center; gap:12px }
.account-identity :is(h2,p) { margin:0 }
.account-identity p { color:#174bc2; font-weight:650 }
.account-initials { display:grid; place-items:center; flex:0 0 56px; height:56px; border-radius:50%; background:#1d5ce8; color:white; font-size:1.25rem; font-weight:800 }
.account-rows { margin:0; border:1px solid #dfe7f3; border-radius:16px; background:#f4f7fb }
.account-rows > div { display:grid; grid-template-columns:minmax(85px,1fr) minmax(0,2fr); align-items:center; gap:8px; padding:12px }
.account-rows > div + div { border-top:1px solid #e6ecf5 }
.account-rows dt { color:#52647e; font-size:.875rem }
.account-rows dd { margin:0; text-align:right; font-size:.9rem; font-weight:700 }
.account-email-row { display:flex; align-items:center; justify-content:flex-end; gap:8px }
.account-email-row small,.account-providers small { display:block; font-size:.72rem }
.account-verified { color:#087244 }
.account-add-email { flex:0 0 36px; width:36px; height:36px; padding:0; border:0; border-radius:50%; background:#d8e7ff; color:#1648af; font-size:1.2rem }
.account-methods { padding:clamp(12px,3vw,20px); border:1px solid #d7e4f9; border-radius:16px; background:linear-gradient(145deg,#eaf1ff,#f7f9fd) }
.account-methods :is(h2,p) { margin:0 0 8px }
.account-methods form { margin-top:12px; padding-top:12px; border-top:1px solid #d7e4f9 }
.account-providers { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,112px),1fr)); gap:8px }
.account-providers button { display:flex; align-items:center; gap:8px; min-height:44px; padding:8px; text-align:left }
.account-providers svg { flex:0 0 20px; width:20px; height:20px }
.account-logout { min-height:46px; background:#f4f7fb }
.coach-overview > h1 { margin:0; font-size:clamp(1.9rem,5vw,2.7rem) }
.coach-overview .location-tools { margin:0 }
.coach-stat-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:12px 0 }
.coach-stat-cards article { padding:clamp(9px,2vw,16px); font-size:.82rem; color:#52647e; overflow-wrap:anywhere }
.coach-stat-cards strong { display:block; color:#0f172a; font-size:clamp(1.35rem,4vw,2rem) }
.coach-chart { padding:clamp(12px,3vw,20px) }
.coach-chart ul { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); list-style:none; margin:10px 0; padding:0; gap:4px }
.coach-chart li { text-align:center; font-size:.72rem }
.coach-chart-bars { height:106px; display:flex; justify-content:center; gap:2px; border-bottom:1px solid #dfe7f3; margin-bottom:3px }
.coach-chart-bars > div { width:clamp(10px,4vw,24px); display:flex; flex-direction:column; justify-content:flex-end; padding-top:16px; }
.coach-chart-bars i { height:var(--height); min-height:2px; background:#1d5ce8; border-radius:4px 4px 0 0 }
.coach-chart-bars > div:nth-child(2) i { background:#00816a }
.coach-chart-key { display:flex; flex-wrap:wrap; gap:4px 12px; font-size:.8rem }
.coach-chart-key span::before { content:''; display:inline-block; width:8px; height:8px; background:#1d5ce8; border-radius:2px; margin-right:5px }
.coach-chart-key span:nth-child(2)::before { background:#00816a }
.coach-chart p { margin:8px 0 0; font-size:.8rem }
.coach-profile-page :is(.review-status,.coach-profile-heading) { margin:0; max-width:none }
.coach-profile-page .trainer-profile { min-width:0; }
.coach-profile-page .trainer-profile dd { white-space:pre-wrap; overflow-wrap:anywhere }
@media(max-width:680px) {
  .coach-profile-page .trainer-profile { gap:12px }
  .coach-profile-page .trainer-portrait { width:min(42vw,150px); border-radius:16px }
  .coach-profile-page .coach-profile-heading a { max-width:100%; min-height:44px }
}
.workspace-dock a { display:grid; grid-template-rows:20px auto; justify-items:center; align-content:center; gap:3px; line-height:1.2 }
.dock-icon { align-self:center }
@media(max-width:680px) {
  body[data-workspace-dock] { --workspace-width:100% }
  .workspace-dock { bottom:0; border-inline:0; border-bottom:0; border-radius:0; padding:5px max(5px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(5px,env(safe-area-inset-left)) }
  body[data-workspace-dock] :is(.coach-overview > h1,.coach-overview > .location-tools,.coach-overview > section > h2,.account-settings > h1,.chat-inbox > h1,.coach-profile-heading) {
    padding-inline:max(12px,env(safe-area-inset-left)) max(12px,env(safe-area-inset-right));
  }
  body[data-workspace="account"][data-app="coach"] > header > div { gap:8px }
  body[data-workspace="account"][data-app="coach"] #nav { flex:0 1 auto; margin-inline-start:auto }
  body[data-workspace="account"][data-app="coach"] .workspace-tabs .button { padding:7px 9px }
}

.chat-training-link { display:inline-flex; margin:6px 0; font-size:.8rem }
.support-attachment summary { color:#52647e; cursor:pointer }
body[data-workspace="account"] #nav [data-push-settings] { min-height:38px; padding:6px 10px; border:1px solid #dfe7f3; font-size:.82rem }
#nav [data-push-settings][hidden], [data-push-feedback]:empty { display:none }
.push-preferences { padding:12px 14px; border:1px solid #dfe7f3; border-radius:14px; background:#f6f8fc }
.push-preferences summary { cursor:pointer; font-weight:750 }
.push-preferences summary span { display:block; padding-left:1em; margin-top:3px; font-size:.8rem; color:#52647e; font-weight:500 }
.push-preferences p { margin:8px 0; font-size:.85rem; color:#52647e }
/* Shared phone layout for the public site and the account. */
@media (max-width: 680px) {
  body { --phone-gutter: 14px }
  body > main, body > header > div {
    padding-inline: max(var(--phone-gutter), env(safe-area-inset-left)) max(var(--phone-gutter), env(safe-area-inset-right));
  }
  body > header > div { gap: 8px; padding-block: 10px }
  header > div > a { min-height: 44px; gap: 8px }
  header strong { font-size: 1.15rem }
  #nav { gap: 6px }
  #nav :is(button,.button) { min-height: 44px; padding-inline: 9px }
  #view, #view :is(form,fieldset,article,section,.row > *, .grid > *) { min-width: 0 }
  #view :is(h1,h2,h3,p,dd,dt,.tag) { overflow-wrap: anywhere }
  #view > h1, #view > .row > h1 { font-size: clamp(1.75rem,7vw,2.4rem) }
  #view :is(.catalog-grid,.catalog-filters,.dashboard-content) { grid-template-columns: minmax(0,1fr) }
  #view :is(.profile-sheet,.search-panel,.search-wizard,.search-sports,.catalog-filters) {
    padding: 14px;
    border-radius: 18px;
  }
  #view :is(input:not([type="checkbox"],[type="radio"],[type="range"],[type="file"]),select,textarea) {
    font-size: 16px;
    min-height: 44px;
    max-width: 100%;
  }
  :is(.public-actions,.location-tools) > :is(.button,button) {
    min-height: 44px;
    flex: 1 1 9rem;
    text-align: center;
  }
  .public-actions { align-items: stretch }
  .location-tools { gap: 8px }
  .search-point-tools { grid-template-columns: minmax(0,1fr) }
  .metro-options .metro-option { min-height: 44px }
  #view :is(#map,#catalog-map) { height: clamp(210px,42dvh,350px) }
  body[data-workspace-dock] main { padding-inline: max(var(--phone-gutter), env(safe-area-inset-left)) max(var(--phone-gutter), env(safe-area-inset-right)) }
  body:has(.chat-panel) > main { padding: 0 }
}

/* Search steps share the account profile's centered reading column. */
#view:has(> :is(.search-wizard,.search-panel,.search-sports)) {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
}
#view > :is(.search-wizard,.search-panel,.search-sports) {
  width: 100%;
  max-width: none;
  border-radius: 24px;
}
#view:has(> :is(.search-wizard,.search-panel,.search-sports)) > h1 {
  font-size: clamp(1.75rem,4vw,2.25rem);
  margin-block: 12px 16px;
}
@media (max-width: 680px) {
  #view > :is(.search-wizard,.search-panel,.search-sports) {
    padding: 16px;
    border-radius: 18px;
  }
  #view:has(> :is(.search-wizard,.search-panel,.search-sports)) > .page-back {
    min-height: 44px;
    margin-bottom: 0;
  }
  .search-wizard .sport-options {
    grid-template-columns: repeat(2,minmax(0,1fr));
    max-height: min(250px,32dvh);
  }
  .search-panel .metro-options { max-height: min(220px,30dvh) }
  .search-panel .search-point-tools { gap: 8px }
  .search-point-tools > :is(button,details), #metro-picker summary { width: 100%; min-height: 44px }
  #view > :is(.search-wizard,.search-panel) .location-tools {
    position: sticky;
    bottom: max(8px,env(safe-area-inset-bottom));
    z-index: 2;
    padding-block: 8px;
    border-radius: 12px;
    background: white;
  }
  #view > :is(.search-wizard,.search-panel) .location-tools > .primary { width: 100% }
}
@media (max-width: 350px) {
  .search-wizard .sport-options { grid-template-columns: minmax(0,1fr) }
}

@media (max-width: 680px) {
  #view .search-panel #map { height: clamp(180px, 30dvh, 270px) }
}

.athlete-drawer {
  background: #f5f8ff;
  padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
}
.athlete-drawer[open] { display: flex; flex-direction: column }
body:has(.athlete-drawer[open]) { overflow: hidden }
.athlete-drawer .drawer-header {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f5f8ff;
  padding-block: 4px 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid #dce5f0;
}
.athlete-drawer .drawer-header strong { font-size: 1.4rem }
.athlete-drawer [data-close-menu] { width: 44px; height: 44px; padding: 0; border-radius: 50%; font-size: 1.2rem }
.athlete-drawer .drawer-links { gap: 4px; flex: 1 0 auto; align-content: start }
.athlete-drawer .drawer-links > :is(a,button) {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: #0f172a;
  font-size: 1rem;
}
.athlete-drawer .drawer-links > a:hover { background: #e6efff }
.athlete-drawer .drawer-links > a:nth-child(4) { margin-top: 10px }
.athlete-drawer .drawer-links > button[data-logout] {
  margin-top: 14px;
  border: 1px solid #dce5f0;
  background: white;
  color: #9c2631;
}
@media (max-width: 680px) { .athlete-drawer { width: 100%; max-width: 100% } }

.chat-header button.chat-peer-heading {
  display:flex;
  align-items:center;
  text-align:left;
  min-height:44px;
  min-width:0;
  border:0;
  background:transparent;
  padding:0 6px;
}
.chat-peer-copy { min-width:0; display:grid }
.chat-peer-copy strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:clamp(1rem,4vw,1.3rem) }
.chat-contact-dialog {
  width:min(calc(100% - 24px),460px);
  max-height:calc(100dvh - 24px);
  overflow:auto;
  border:1px solid #dfe7f3;
  border-radius:20px;
  padding:16px;
  color:#0f172a;
}
.chat-contact-dialog::backdrop { background:#0f172a77 }
.chat-contact-dialog form[method="dialog"] { display:flex; margin-bottom:16px }
.chat-contact-dialog :is(h2,p) { overflow-wrap:anywhere }
.chat-contact-dialog [data-contact-details] .chat-avatar { width:72px; height:72px; margin-bottom:10px }
.chat-contact-dialog [data-contact-report] { margin-top:10px }
.chat-contact-dialog [hidden] { display:none }
