body:not(.is-signed-out){background:#f5f8fb;color:#162330}body:not(.is-signed-out)>header{display:none}body:not(.is-signed-out) .wrap{max-width:640px;padding:24px 22px calc(100px + env(safe-area-inset-bottom));margin:auto}body:not(.is-signed-out) .wrap>.eyebrow,body:not(.is-signed-out) .wrap>h1,body:not(.is-signed-out) .wrap>p,.meta,#ask,#askPanel,#eventsAccess,#upcomingEvent{display:none!important}
.member-top{display:flex;align-items:center;gap:12px;margin-bottom:24px;font-size:14px;font-weight:750;letter-spacing:.04em}.member-top img{width:36px;height:36px}.member-view h1{font-size:36px;line-height:1.1;letter-spacing:-.04em;margin:12px 0 24px}.member-view h2{font-size:23px}.member-label{color:#637484;font-size:12px;text-transform:uppercase;letter-spacing:.1em}.member-blue{background:#e7f0fa;border:0;border-left:4px solid #ba2430;border-radius:20px;padding:24px;margin-bottom:24px}.member-blue h2{margin:8px 0 12px}.member-blue p{line-height:1.55;margin:8px 0}.member-identity{font-size:14px;color:#526476;margin-bottom:20px}.member-action{display:block;width:100%;min-height:58px;border:0;border-radius:15px;background:#b9232c;color:white;font:inherit;font-weight:750;text-align:center;padding:18px;text-decoration:none;box-sizing:border-box}.member-secondary{background:none;border:0;color:#254c75;font:inherit;min-height:48px;padding:12px;text-decoration:underline}.member-status{font-size:14px;line-height:1.5;color:#637484}.member-view select{min-height:52px;width:100%;font:inherit}.member-view [hidden]{display:none!important}
#mobileNav{position:fixed;z-index:50;bottom:0;left:0;right:0;margin:0;padding:8px 12px max(8px,env(safe-area-inset-bottom));background:white;border-top:1px solid #dce4ec;gap:4px}#mobileNav button{border:0;min-height:52px;font-size:12px;background:transparent;color:#526476}#mobileNav button[aria-current=true]{background:#e7f0fa;color:#162330;border-top:3px solid #b9232c;border-radius:10px}
body:not(.is-signed-out) #postPanel,body:not(.is-signed-out) #historyPanel{padding:0;border:0;background:transparent;box-shadow:none}#postPanel .tip{font-size:12px}#postPanel .preview img{max-height:170px;object-fit:contain;width:100%}#postPanel .file,#postPanel .tiny,#postPanel .preview>.step{display:none}#postPanel .divider{display:none}#postPanel #upload{border:0;background:transparent;font-size:14px;min-height:48px}#postPanel:has(.preview:not(.hidden))>#photo,#postPanel:has(.preview:not(.hidden))>#upload,#postPanel:has(.preview:not(.hidden))>.tip,#postPanel:has(.preview:not(.hidden))>.step{display:none}#postPanel #change{background:transparent;border:0;font-size:14px}#postPanel #submit{position:sticky;bottom:78px;z-index:20}#rideReview{border:0;padding:20px;background:#e7f0fa;border-left:4px solid #b9232c;margin-bottom:20px}body[data-member-view=review] #rideReview:not(.hidden)~*{display:none}body[data-member-view=review]:has(#rideReview:not(.hidden)) #historyPanel{display:none}.member-content{white-space:pre-wrap;overflow-wrap:anywhere}.certificate-link{display:block;min-height:48px;padding:14px 0;color:#254c75}.member-signout{font:inherit;border:0;background:transparent;min-height:44px;color:#637484;padding:0 12px;margin-left:auto}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #b9232c;outline-offset:3px}
@media(min-width:800px){body:not(.is-signed-out) .wrap{padding-top:40px}#mobileNav{left:50%;transform:translateX(-50%);max-width:640px;border-radius:18px 18px 0 0;width:calc(100% - 24px)}}@media(max-height:700px){.member-top{margin-bottom:16px}.member-view h1{font-size:30px;margin-bottom:16px}.member-blue{padding:18px;margin-bottom:16px}}

.feedback-next{position:sticky;bottom:78px;margin-top:20px}body[data-member-view=post] .member-top{margin-bottom:12px}#postPanel .preview img{max-height:100px}#postPanel input,#postPanel select{margin-bottom:10px;min-height:44px;padding:10px}#postPanel .preview{padding:14px;border:0;background:#e7f0fa}#postPanel #submit{margin-top:8px!important}
.feedback-next,#postPanel #submit{position:fixed;bottom:calc(82px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:calc(100% - 44px);max-width:596px;z-index:40;margin:0!important}#rideReview,#postPanel .preview{padding-bottom:84px}

#programDiagnostic input,#programDiagnostic select{min-height:48px;margin:6px 0 14px;font:inherit}#programDiagnostic .member-blue{padding:18px}#programDiagnostic h2{font-size:23px;margin:8px 0 16px}#programDiagnostic label{font-size:14px}#programDetail .member-blue{padding:20px}#programDetail p{font-size:14px}#programDetail .member-action{position:sticky;bottom:82px}
#programCoach{position:fixed;bottom:calc(82px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:calc(100% - 44px);max-width:596px;z-index:40}#programDetail{padding-bottom:80px}

.member-path-progress{margin:14px 0 16px;padding-top:12px;border-top:1px solid #b6c9dc}.member-cycle-row{display:flex;justify-content:space-between;gap:12px;align-items:baseline;font-size:13px;color:#254c75}.member-cycle-row span:first-child{font-weight:750}.member-blue .member-cycle-meta{font-size:12px;margin:6px 0 10px;color:#526476;overflow-wrap:anywhere}.member-path-progress progress{display:block;width:100%;height:6px;border:0;border-radius:10px;overflow:hidden;appearance:none;background:#b8cadc}.member-path-progress progress::-webkit-progress-bar{background:#b8cadc;border-radius:10px}.member-path-progress progress::-webkit-progress-value{background:#ba2430;border-radius:10px}.member-path-progress progress::-moz-progress-bar{background:#ba2430;border-radius:10px}

.member-event-bell{border:0;background:transparent;color:#254c75;min-width:44px;min-height:44px;position:relative;font-size:21px;cursor:pointer;margin-left:auto}.member-event-bell+ .member-signout{margin-left:0}.member-event-bell span{font-size:10px;background:#b9232c;color:white;border-radius:12px;padding:3px;position:absolute;right:0;top:0;min-width:16px}.member-event-toast{position:fixed;top:calc(70px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:60;width:calc(100% - 44px);max-width:596px;background:#fff;border-left:4px solid #b9232c;border-radius:12px;padding:18px 44px 8px 18px;box-shadow:0 8px 28px #16233026;box-sizing:border-box}.member-event-toast h2{font-size:18px;line-height:1.3;margin:7px 0}.member-event-toast p{font-size:12px;margin:5px 0;color:#526476}.member-event-dismiss{position:absolute;right:0;top:0;min-height:44px;min-width:44px;border:0;background:none;font-size:24px;color:#526476;cursor:pointer}.member-event-toast[hidden],.member-event-bell[hidden]{display:none!important}.member-event-bell span[hidden]{display:none!important}

/* Profile: deliberate navigation cards with clear touch targets. */
#profilePanel .member-profile-tools{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0 26px}
#profilePanel .member-profile-tools .member-secondary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:16px;min-height:64px;border:1px solid #d8e2ed;border-radius:12px;background:#fff;color:#173751;text-align:left;text-decoration:none;font-size:14px;font-weight:700;line-height:1.4;box-sizing:border-box}
#profilePanel .member-profile-tools .member-secondary::after{content:'›';font-size:24px;color:#708398;font-weight:400}
#profilePanel .member-profile-tools .member-secondary:hover{border-color:#93acc5;background:#edf4fb}
#profilePanel #memberCertificates{margin-top:16px;display:grid;gap:10px}
#profilePanel .certificate-link{display:flex;align-items:center;justify-content:space-between;gap:12px;background:white;border:1px solid #d8e2ed;border-radius:12px;padding:17px 18px;color:#173751;text-decoration:none;font-size:14px;font-weight:700;line-height:1.5}
#profilePanel .certificate-link::after{content:'↗';flex:none;color:#708398;font-size:20px}
#profilePanel #showCertificates,#profilePanel #phone-install-manual{display:block;width:100%;box-sizing:border-box;border:1px solid #d8e2ed;border-radius:12px;background:white;color:#173751;text-align:center;text-decoration:none;font-weight:700;margin-top:16px;padding:16px;min-height:52px}
#profilePanel #phone-install-manual{margin-top:20px}
@media(max-width:360px){#profilePanel .member-profile-tools{grid-template-columns:1fr}}

.training-source-tools{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.training-source-tools .member-secondary{display:inline-flex;align-items:center;justify-content:center;background:#fff;border:1px solid #ccdae8;border-radius:10px;text-decoration:none;font-size:13px;font-weight:700;padding:12px 14px;min-height:44px}
/* Event notices stay in the page flow, below the member header. */
#memberEventToast.member-event-toast{position:relative;top:auto;left:auto;transform:none;width:100%;max-width:none;margin:0 0 24px;padding:18px 48px 18px 20px;z-index:auto}
#memberEventToast .member-secondary{display:inline-flex;align-items:center;min-height:44px;padding:10px 16px;border:1px solid #cbd9e8;border-radius:9px;background:#eef4fb;text-decoration:none;font-size:14px;font-weight:700}
#homePanel .member-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 16px;margin:8px 8px 8px 0;border:1px solid #cbd9e8;border-radius:10px;background:#fff;text-decoration:none;font-size:14px;font-weight:650;line-height:1.4}
@media(max-width:420px){#homePanel .member-secondary{width:100%;margin-right:0;box-sizing:border-box}}

/* Events is a first-class member view, not a retired alert panel. */
body:not(.is-signed-out)[data-member-view="events"] #eventsPanel:not(.hidden){display:block!important}
#eventsStatus:empty{display:none}#eventsRetry{min-height:44px;margin:12px 0}

/* Match the desktop navigation's deep blue treatment on the member tab bar. */
#mobileNav{background:linear-gradient(180deg,#121b26 0%,#172331 100%);border-top:1px solid #34475d;box-shadow:0 -4px 18px #132a4814}
#mobileNav>button,#mobileNav>a,#mobileNav #member-eq-snapshot-nav,#mobileNav .collective-live-link{color:#f4f7fb!important;background:transparent;border-top:3px solid transparent;text-decoration:none}
#mobileNav>button[aria-current=true],#mobileNav>a[aria-current=true],#mobileNav>a[aria-expanded=true]{color:#fff!important;background:#24446c;border-top:3px solid #c62632;border-radius:10px}
#mobileNav>button:hover,#mobileNav>a:hover{color:#fff!important;background:#24446c;box-shadow:inset 0 -3px #c62632}
#mobileNav>button:focus-visible,#mobileNav>a:focus-visible{outline:2px solid #fff;outline-offset:-3px}

/* CIS mobile focus: keep five essential actions with Post My Ride™ dominant. */
@media(max-width:1024px){
 #mobileNav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;padding-left:6px;padding-right:6px}
 #mobileNav.hidden{display:none!important}
 #mobileNav>button,#mobileNav>a{display:flex;align-items:center;justify-content:center;min-width:0;min-height:56px;padding:6px 3px;line-height:1.18;font-size:clamp(9px,2.5vw,12px);text-align:center;overflow-wrap:break-word;white-space:normal}
 #mobileNav .mobile-post-action{color:#fff!important;background:#bd252e!important;border-top:3px solid #e7858b;border-radius:10px;font-weight:800}
 #mobileNav .mobile-post-action[aria-current=true]{background:#97202b!important}
 #mobileNav .collective-live-link{flex-wrap:wrap}
 .lifecycle-entry{display:none!important}
}
