/* OfHorse Sport — restrained premium editorial direction, without third-party marks. */
:root{--cw-night:#111c23;--cw-ink:#192831;--cw-gold:#c5b37c;--cw-paper:#f3f1e9;--cw-muted:#aeb7b6}
html body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif}
#welcome{background:linear-gradient(155deg,#101d26f5 0%,#1d2b31f6 65%,#141e25f7 100%)!important; color:var(--cw-paper)!important;
  border:1px solid rgba(229,221,197,.17)!important;box-shadow:0 30px 80px #0007!important;max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;
  scrollbar-width:thin}
#welcome .eyebrow,#cwGuestExample .cw-overline,#welcome .home-info-title{font-size:10px!important;font-weight:500!important;letter-spacing:.19em!important;color:var(--cw-gold)!important}
#welcome h1{font-family:"Helvetica Neue",Helvetica,sans-serif!important;font-weight:400!important;font-size:clamp(30px,6vw,48px)!important;line-height:1.04!important;letter-spacing:-.035em!important;margin:10px 0 7px!important}
#welcome #cwWelcomeTagline{font-size:15px;letter-spacing:.08em;color:#dfd4b5;margin:0 0 15px;font-weight:400}
#welcome .welcome-intro{font-size:13px!important;line-height:1.56!important;color:#ccd5d3!important;max-width:42ch}
#welcome .welcome-choices{gap:9px!important}
#welcome .welcome-choices button{border-radius:6px!important;min-height:58px!important;box-shadow:none!important;transition:background .15s,border-color .15s!important}
#welcome .start-choice.primary{background:#c5b37c!important;color:#121b1f!important}
#welcome .start-choice.secondary{background:rgba(234,238,232,.08)!important;color:#f6f2e9!important;border:1px solid rgba(241,234,215,.25)!important}
#welcome .start-choice.secondary:disabled{opacity:.47}
#welcome .choice-mark{color:inherit}
#welcome #cwGuestExample{border-top:1px solid rgba(236,226,196,.18);margin:16px 0 8px;padding-top:17px}
#welcome .cw-course-heading{font-size:20px;line-height:1.25;font-weight:400;color:#f5f2e9;margin:5px 0}
#welcome .cw-course-sub{font-size:12px;color:#c9d2d0;margin:0 0 10px}
#welcome #cwGuestExample img{width:100%;max-height:156px;object-fit:contain;border-radius:4px;background:#f9f9f7;padding:5px}
#welcome .cw-source-link{display:inline-flex;align-items:center;color:#e8d8a5!important;text-decoration:underline!important;text-underline-offset:4px;font-size:12px;margin-top:10px}
#welcome .cw-course-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:9px}
#welcome .cw-course-facts span{font-size:9px;color:#b4c1bf;display:block;text-transform:uppercase;letter-spacing:.065em}
#welcome .cw-course-facts strong{font-size:12px;color:#f5f2e9;font-weight:500;display:block;margin-top:3px}
#welcome .cw-actions{display:flex;gap:8px;margin-top:10px}
#welcome .cw-actions button{background:#243741;border:1px solid #536367;padding:9px 10px;border-radius:6px;min-height:40px;font-size:12px;color:#f5f2e9;flex:1}
#welcome .home-info{padding-top:12px!important;margin-top:14px!important;border-top:1px solid rgba(236,226,196,.18)!important}
#welcome .welcome-foot{font-size:10px!important;color:#b9c3c1!important;line-height:1.55!important}
#sportQuotaLabel,.cw-quota-pill{font-size:11px;color:#c7be9e;background:rgba(231,217,170,.08);border:1px solid #c5b37c55;border-radius:5px;padding:9px 11px;margin:10px 0}
#cwHelpGuide{font-size:13px;line-height:1.5}
#cwHelpGuide h3{font-size:18px;font-weight:400;margin:12px 0}
#cwHelpGuide .cw-help-steps{display:grid;gap:10px;padding:8px 0}
#cwHelpGuide .cw-help-step{display:grid;grid-template-columns:25px 1fr;gap:10px;align-items:start;border-bottom:1px solid #ffffff22;padding:8px 0}
#cwHelpGuide .cw-help-step b{color:#d0c18d}
#cwHelpGuide .cw-help-step strong{font-weight:500}
#cwHelpGuide .cw-help-step small{display:block;opacity:.77}
#cwHelpGuide .cw-help-footer{margin:12px 0;font-size:11px;opacity:.8}
#sheet .cw-import-lede{font-size:15px;line-height:1.35;color:#f3f0e5;margin:3px 0 12px}
#sheet .cw-import-foot{font-size:11px;line-height:1.5;color:#b6c1bd;margin:12px 0}
#sheet .cw-quota-limit{font-size:12px;color:#f0d7a1}
#sheet #sportQuotaLabel{margin:10px 0 13px}
#sheet .cw-status-tag{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#c5b37c}
.course-profile .course-library h4{font-weight:500}
button:focus-visible,a:focus-visible{outline:2px solid #c5b37c!important;outline-offset:2px}
@media(max-width:520px){
 #welcome{max-width:calc(100vw - 18px)!important;max-height:calc(100dvh - 16px)!important;padding:21px 18px!important}
 #welcome .cw-course-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
 #welcome #cwGuestExample img{max-height:128px}
 #welcome h1{font-size:34px!important}
 #welcome .cw-actions{flex-wrap:wrap}
 #welcome .cw-actions button{min-width:43%}
}

#cwHelpGuide details{border-top:1px solid rgba(230,220,192,.22);padding:12px 0;color:#c5d0ce}
#cwHelpGuide details:last-of-type{border-bottom:1px solid rgba(230,220,192,.22)}
#cwHelpGuide details summary{color:#f4f0e8;font-size:13px;letter-spacing:.02em;cursor:pointer;list-style-position:outside}
#cwHelpGuide details p{font-size:12px;line-height:1.65;padding:4px 4px 0 0;color:#ccd4d0}
#cwHelpGuide a.wide{border:1px solid #c5b37c88;border-radius:5px;padding:12px 8px}

/* One clear surface at a time: welcome, map or sheet. */
html.course-refined-chrome #app.compact-app:has(#welcome:not(.hide)) :is(.cw-top-tools,.cw-top-left,.floating-reset,#dock){visibility:hidden;pointer-events:none}
html.course-refined-chrome #app.compact-app .cw-top-left{display:none!important}
html.course-refined-chrome #app.compact-app .cw-top-tools{gap:5px;top:calc(env(safe-area-inset-top) + 8px)}
html.course-refined-chrome #app.compact-app .cw-top-tools button{width:44px!important;height:44px!important;min-height:44px!important;min-width:44px!important;background:rgba(35,38,34,.7)!important;border:1px solid #ffffff29!important;backdrop-filter:blur(12px)}
html.course-refined-chrome #app.compact-app .map-layer{top:var(--map-top)!important}
#welcome [hidden],#sheet [hidden]{display:none!important}
#welcome{z-index:40!important;isolation:isolate}
#app:has(#sheet.show) #welcome{visibility:hidden!important;pointer-events:none!important}
#welcome .cw-course-facts{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#welcome #cwGuestExample img{max-height:200px;padding:0}
#welcome .cw-actions{margin-top:14px}
#welcome .cw-actions button{min-height:44px}
#welcome .cw-source-link{min-height:44px;margin-top:3px}
#sheet #sportRetryImport{min-height:44px;border:1px solid #c5b37c88;color:#eee1bd;margin-bottom:14px}
#sheet #sportQuotaLabel[data-state=unavailable]{border-color:#e4b48b;color:#f0cead}
html.course-refined-chrome #app.compact-app .cw-route-metrics{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(110px,.8fr);gap:7px;height:auto!important;min-height:48px!important}
html.course-refined-chrome #app.compact-app .cw-route-control{height:48px!important;min-height:48px!important;grid-template-columns:44px minmax(0,1fr) 44px!important}
html.course-refined-chrome #app.compact-app .cw-route-control.cw-single-route{grid-template-columns:minmax(0,1fr)!important}
html.course-refined-chrome #app.compact-app .cw-route-arrow{height:46px!important;width:44px!important;min-height:46px!important;min-width:44px!important}
html.course-refined-chrome #app.compact-app .cw-route-value{height:46px!important;min-height:46px!important;flex-direction:column!important;gap:0!important}
html.course-refined-chrome #app.compact-app .cw-model-summary{display:flex!important;height:48px!important;min-height:48px!important}
html.course-refined-chrome #app.compact-app .cw-model-summary small{font-size:9px;line-height:11px}
html.course-refined-chrome #app.compact-app .cw-model-summary b{font-size:14px!important;line-height:17px!important}
html.course-refined-chrome #app.compact-app .cw-model-summary .cw-speed-line{font-size:10px;line-height:12px}
html.course-refined-chrome #app.compact-app .compact-summary #compactStats{gap:6px!important}
html.course-refined-chrome #app.compact-app #compactStats .cw-time-label{font-size:10px!important}
html.course-refined-chrome #app.compact-app #compactStats .cw-time-value{font-size:14px!important}
.clean-course-menu .course-menu-group{margin:0 0 14px;border-bottom:1px solid #ffffff18;padding-bottom:7px}
.clean-course-menu .course-menu-item{width:100%;text-align:left;min-height:48px!important;padding:12px 4px!important}
@media(max-width:370px){#welcome .cw-course-facts{grid-template-columns:repeat(2,minmax(0,1fr))}html.course-refined-chrome #app.compact-app .cw-route-metrics{grid-template-columns:minmax(0,1fr) 110px}html.course-refined-chrome #app.compact-app .cw-route-control{grid-template-columns:44px minmax(0,1fr) 44px!important}html.course-refined-chrome #app.compact-app .cw-route-value b{font-size:10px!important}}


/* Walking view: quiet source control, direct rotation and compact grouped menu. */
html.course-mvp.course-refined-chrome #app.compact-app .cw-top-tools #rotate{display:grid!important;position:static!important;inset:auto!important;border-radius:50%!important;transform:none!important}
html.course-refined-chrome #app.compact-app .cw-top-tools button{background:rgba(35,38,34,.38)!important;border-color:#ffffff20!important}
.clean-course-menu .course-menu-icon{display:grid!important;place-items:center;width:26px;flex:0 0 26px;color:#c8bb8d}
.clean-course-menu .course-menu-item{display:flex!important;align-items:center!important;gap:12px!important;min-height:46px!important;padding:11px 9px!important;border-radius:9px}
.clean-course-menu .course-menu-item:hover{background:#ffffff07}.clean-course-menu .course-menu-item b{font:500 14px/1.35 Arial,sans-serif!important}
.clean-course-menu .course-menu-group{padding-bottom:8px!important;margin-bottom:10px!important}.clean-course-menu .menu-save-status a{display:none!important}
.clean-course-menu .menu-save-status{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:10px 7px;border-top:1px solid #ffffff18;font-size:11px}
.clean-course-menu .menu-save-status button{min-height:44px;background:#ffffff08;border:1px solid #ffffff25;border-radius:9px;color:#eee4be;padding:9px 12px}
.mvp-ai-diagnostics{margin:9px 0;color:#c2c8bb;font:12px/1.45 Arial,sans-serif}.mvp-ai-diagnostics summary{min-height:28px;cursor:pointer}.mvp-ai-diagnostics button{background:#333b32;color:#eee4bd;border:1px solid #8e8c68;border-radius:9px;padding:10px 14px;min-height:44px;font:600 13px Arial}.mvp-ai-diagnostics code,.mvp-ai-diagnostics small{display:none}
.mvp-review .review-pin.uncertain{border-style:dashed!important;background:#594735!important;color:#ffe5b0!important}
.course-preview-mode .cw-top-tools,.course-preview-mode .cw-top-left{display:none!important}

/* The source loader can reveal welcome again after the iframe has settled. */
html.course-preview-mode #app #welcome,html.course-preview-mode #app #dock,html.course-preview-mode #app .top,html.course-preview-mode #app .sheet,html.course-preview-mode #app .shade{display:none!important;visibility:hidden!important}

/* Plan strides on the fixed course line; there is no route selector. */
html.course-refined-chrome #app.compact-app .cw-route-metrics{grid-template-columns:minmax(0,1fr)!important}
.cw-round-switch{position:absolute;top:8px;left:50%;transform:translateX(-50%);z-index:18;display:flex;gap:2px;padding:3px;background:#1c211edb;border:1px solid #ffffff24;border-radius:24px;backdrop-filter:blur(10px)}
.cw-round-switch[hidden]{display:none!important}.cw-round-switch button{min-height:40px;padding:8px 15px;border:0;border-radius:21px;background:transparent;color:#d2d2c6;font:500 12px Arial,sans-serif;white-space:nowrap}.cw-round-switch button[aria-pressed=true]{background:#cfc78f;color:#20231e}
#app:has(#welcome:not(.hide)) .cw-round-switch,#app:has(#sheet.show) .cw-round-switch{visibility:hidden;pointer-events:none}
@media(max-width:700px){.cw-round-switch{top:calc(env(safe-area-inset-top) + 58px)}.cw-round-switch button{min-height:44px;padding:8px 13px}}

/* A source-map shortcut replaces the landing-page image preview. */
html.course-essentials #welcome #cwGuestExample{position:relative}html.course-essentials #welcome #cwGuestExample>.cw-source-link{position:absolute;top:14px;right:14px;display:grid;place-items:center;width:40px;height:40px;min-height:40px;margin:0;border:1px solid #ffffff30;border-radius:50%;text-decoration:none!important}#cwGuestExample>.cw-source-link svg{width:20px;height:20px}#cwGuestExample .cw-course-heading{padding-right:35px}
