/* GoRaceCrew refreshed presentation, scoped to the /test app. */
:root{--canvas:#000;--surface-card:#1c1c1e;--surface-raised:#2c2c2e;--text-primary:#f3f3f5;--text-secondary:#b3b3bb;--action-link:#a9b7ff;--accent:#a9b7ff;--on-accent:#17171a;--focus-ring:#a9b7ff;--radius-card:20px}
:root[data-appearance=light]{--canvas:#f2f2f7;--surface-card:#fff;--surface-raised:#e5e5ea;--text-primary:#151516;--text-secondary:#59595f;--action-link:#2446f5;--accent:#2446f5;--on-accent:#fff;--focus-ring:#2446f5}
#app{--radius-card:20px;--card-padding:16px;--card-gap:12px;--desktop-selection:var(--surface-raised)}
#app .primary,#dialog-root .primary{background:var(--text-primary);color:var(--canvas);border:0;border-radius:26px;font-weight:600}
#app .secondary,#dialog-root .secondary{background:var(--surface-raised);color:var(--text-primary);border:0;border-radius:24px}
#app .card,#app .event-card,#app .add-tile,#app .import-card{border-radius:20px;box-shadow:none;border:0}
#app .card h2,#app .big-stat,#app .race-bib-number,#app .step-time{font-family:Barlow,Inter,sans-serif}
#app .nav button.add-nav{background:var(--surface-raised);color:var(--text-primary)}
#app .nav{box-shadow:0 8px 26px #0004}#app .nav button[aria-current=page]{background:var(--surface-raised)}
#app .sample-label{font-size:10px;padding:4px 18px;color:var(--text-secondary);background:var(--surface-card)}
#app .day-strip button{border-radius:16px;border:0;background:var(--surface-card)}
#app .day-strip button[aria-pressed=true],#app .day-strip button.race-day[aria-pressed=true]{background:var(--surface-raised);box-shadow:inset 0 -3px var(--accent);color:var(--text-primary)}
#app .day-strip button[aria-pressed=true] :is(b,.day-top,small){color:var(--text-primary)!important}
.review-plan-tools{display:flex;align-items:center;gap:8px;margin:12px 0 18px;flex:none}
.review-plan-tools button{display:flex;align-items:center;justify-content:center;gap:7px;background:var(--surface-card);padding:10px 12px;min-height:44px;border-radius:24px;font-size:12px;flex:1}
.review-plan-tools img{width:25px;height:25px}
#app .event-plus{background:transparent}#app .event-top>.icon{width:32px;height:32px}
#app .explore-search-wrap{gap:8px}#app .search{border:0;border-radius:24px;background:var(--surface-card)}
#app .search input{outline:none;background:none}#app .search:focus-within{box-shadow:inset 0 -2px var(--text-secondary)}
#dialog-root .sheet{border-radius:24px 24px 0 0}#dialog-root .card{border-radius:18px}
#app .mile{color:#b8f03a;background:var(--surface-raised)}html[data-appearance=light] #app .mile{color:#477600}
#app .race-quick-actions button{border-radius:18px}#app .row-group{overflow:hidden}
#app .desktop-brand-badge{background:none;border-radius:0}#app .desktop-brand-logo{padding:0}
@media(min-width:99999px){
 #app.app-shell{--page-gutter:24px;--desktop-content-width:1800px;--card-padding:20px}
 #app .appbar{height:68px;min-height:68px;padding-block:9px}
 #app .nav{top:8px;background:var(--surface-card);padding:4px;border-radius:30px;gap:4px;max-width:none}
 #app .nav button,#app .nav button.add-nav{height:44px;min-height:44px;padding:6px 14px;border-radius:23px;font-size:12px}
 #app .nav button[aria-current=page]::after{display:none}#app .nav button.add-nav{background:none}
 #app .nav .icon,#app .nav .state-art{width:25px;height:25px}
 #app .sample-label{padding:3px 24px;font-size:9px}
 #app .desktop-race-ribbon{padding:8px 0 9px;gap:10px}
 #app .desktop-race-ribbon .home-race-summary{padding:0;margin:0}
 #app .desktop-race-ribbon .race-countdown-line{font-family:Inter,Arial,sans-serif;font-size:15px;gap:5px}
 #app .desktop-race-ribbon .race-countdown-value{font-size:24px;color:var(--action-link)}
 #app .desktop-race-ribbon .mini-course{height:32px;width:23px}
 #app .desktop-datebar{margin:0 0 4px;gap:12px}
 #app .desktop-datebar .day-strip button{height:64px;min-height:64px;border-radius:16px;padding:10px 12px}
 #app .desktop-datebar .day-strip b{font-size:29px}
 #app .desktop-datebar .day-strip small{font-size:12px}
 #app.home-page .desktop-datebar .day-strip button[aria-pressed=true]{background:var(--surface-raised);color:var(--text-primary)}
 #app .review-plan-tools{margin:6px 0 12px;gap:8px;justify-content:flex-end}
 #app .review-plan-tools button{flex:none;font-size:11px;padding:7px 13px;min-height:36px}
 #app .review-plan-tools img{width:22px;height:22px}
 #app .desktop-workspace{gap:20px;grid-template-columns:minmax(340px,32%) minmax(0,1fr);background:none}
 #app .desktop-itinerary,#app .desktop-event-list{background:none;padding:0 8px 16px 0}
 #app .desktop-section-head{padding:3px 0 14px;align-items:center}#app .desktop-section-head h1{font-size:26px}
 #app .desktop-context{border-radius:20px;background:var(--surface-card)}
 #app .desktop-context-head{padding:10px 16px;min-height:55px;background:var(--surface-card)}
 #app .desktop-map-card{flex:1;min-height:240px;height:auto;border-radius:0}
 #app .desktop-context>.crew-link{background:var(--surface-card);height:48px;min-height:48px}
 #app .desktop-timeline{background:var(--surface-card);border-radius:20px;overflow:hidden}
 #app .desktop-stop{padding:14px 12px;border-radius:0;background:none;margin:0}
 #app .desktop-stop+.desktop-stop{border-top:1px solid var(--semantic-divider)}
 #app .desktop-stop-select{grid-template-columns:76px 44px minmax(0,1fr);gap:11px}
 #app .desktop-stop-art>.desktop-brand-badge{width:44px;height:38px}
 #app .desktop-stop-copy strong{font-size:14px}#app .desktop-stop-time{font-size:23px}
 #app .desktop-stop:has([aria-pressed=true]){background:var(--surface-raised);box-shadow:none}
 #app .desktop-stop-expanded:not(:empty){padding:8px 0 0}
 #app .desktop-nearby{padding:0;margin-top:24px}#app .desktop-nearby-head h2{font-size:17px}
 #app .desktop-suggestion{border-radius:16px;background:var(--surface-card);padding:12px}
 #app .desktop-nearby article{border-radius:16px;background:var(--surface-card);margin-top:8px}
 #app .desktop-explore-heading{margin:12px 0 16px}#app .desktop-explore-heading h1{font-size:30px}
 #app .desktop-discovery-controls{gap:10px;margin-bottom:10px}
 #app .desktop-filter-select{border-radius:20px;background:var(--surface-card);padding:8px 14px}
 #app .desktop-search-submit{border-radius:18px;background:var(--surface-raised);padding:8px 12px}
 #app .desktop-category-bar{gap:6px;padding-bottom:14px;margin-bottom:0}
 #app .desktop-category-bar button{border-radius:22px;background:var(--surface-card);padding:7px 10px;min-height:38px;font-size:11px}
 #app .desktop-category-bar button[aria-pressed=true]{background:var(--surface-raised)}
 #app .desktop-event-list .event-card{background:var(--surface-card);border-radius:20px;padding:16px;margin-bottom:10px}
 #app .desktop-event-list .event-top{grid-template-columns:76px minmax(0,1fr) 32px;gap:10px}
 #app .desktop-event-list .desktop-brand-badge{width:70px;height:46px}
 #app .desktop-event-list .event-detail h3{font-size:15px}#app .desktop-event-list .event-detail p{font-size:12px}
 #app .desktop-plan-modes{border-radius:24px;background:var(--surface-card)}#app .desktop-plan-modes button{border-radius:22px}
 #app .desktop-plan-modes button[aria-pressed=true]{background:var(--surface-raised);color:var(--text-primary)}
 #app .desktop-watch-workspace{gap:20px}#app .desktop-watch-panel{background:none;padding:0 8px 18px 0}
 #app .desktop-watch-workspace .desktop-context{border-radius:20px}
 #app .title-row{margin:16px 0 24px}#app .title-row h1{font-size:30px}
 #app .add-grid{max-width:920px}#app .add-tile{padding:22px;border-radius:20px}
 #dialog-root .sheet{border-radius:24px;max-width:620px}#app .desktop-map-pin{border-radius:50%}
}
@media(max-width:99999px){
 #app .appbar{min-height:72px;padding-top:14px;padding-bottom:12px}
 #app .sample-label{font-size:9px;padding:3px 18px}
 #app .review-plan-tools{gap:7px;margin-top:9px;margin-bottom:20px}
 #app .review-plan-tools button{font-size:10px;gap:5px;padding:8px;min-height:44px}
 #app .review-plan-tools img{width:23px;height:23px}
 #app .home-race-summary{min-height:110px}#app .home-race-summary .race-countdown-line{font-size:20px}
 #app .calendar-nav{margin-top:16px}#app .day-strip button{height:94px;flex-basis:74px}
 #app .event-card{padding:16px}#app .event-card .event-bottom{margin-left:42px}
 #app .explore-filter-panel{max-height:calc(100dvh - 240px);overflow:auto;z-index:30}
 #app .nav{border-radius:30px;padding:5px;gap:1px;bottom:12px;left:10px;right:10px}
 #app .nav button{height:58px;border-radius:25px}#app .nav button.add-nav{height:54px;flex:0 0 48px}
 #app .app-content{padding-bottom:106px}
}
@media(min-width:99999px){#app .desktop-race-ribbon .review-plan-tools{margin:0;flex:none}#app .desktop-race-ribbon .review-plan-tools button{padding:6px 10px;font-size:10px;gap:5px}#app .desktop-explore-heading{margin:8px 0 12px}#app .desktop-discovery-controls{margin-bottom:8px}#app .desktop-category-bar{padding-bottom:10px}#app .desktop-discovery-controls .search{border-radius:25px}}
@media(min-width:99999px){.review-race-grid{display:grid;grid-template-columns:minmax(330px,.85fr) minmax(0,1.15fr);gap:24px;align-items:start}.review-race-grid .race-quick-actions{margin:16px 0 24px}.review-race-grid .section-heading{margin-top:0}.review-race-grid .route-step{min-height:82px}.review-race-grid .race-bib-card{margin-bottom:16px}#app .desktop-stop-expanded .primary{background:var(--text-primary);color:var(--canvas);border-radius:24px}}
#dialog-root .sheet .primary,#app .desktop-selected-actions .primary{background:var(--text-primary);color:var(--canvas);border-radius:25px}
html[data-appearance=light] #app .secondary,html[data-appearance=light] #dialog-root .sheet .secondary{background:var(--surface-raised);color:var(--text-primary)}
/* Walkthrough refinement: stable places for navigation, tasks and details. */
#app .race-bib-stripe{display:none!important}
.review-nav-copy{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left}.review-nav-copy strong{font-size:13px;font-weight:600}.review-nav-copy small{font-size:10px;color:var(--text-secondary);font-weight:400}
.review-plan-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;padding:12px 0}.review-plan-heading h1{font:700 28px/1.2 Inter;letter-spacing:-.8px}.review-plan-heading p{font-size:12px;margin-top:4px;color:var(--text-secondary)}.review-plan-heading .primary{display:flex;align-items:center;gap:8px;min-height:42px;padding:9px 15px;font-size:12px;margin:0;width:auto}.review-plan-heading img{width:24px;height:24px}
.review-save-receipt{display:flex;align-items:center;gap:10px;flex:none;background:var(--surface-raised);padding:10px 14px;border-radius:16px;margin:0 0 12px}.review-save-receipt>img{width:27px;height:27px}.review-save-receipt span{min-width:0;flex:1}.review-save-receipt strong{font-size:12px;display:block}.review-save-receipt small{display:block;font-size:11px;color:var(--text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.review-save-receipt button{background:var(--text-primary);color:var(--canvas);border-radius:24px;padding:9px 12px;min-height:40px;font-size:11px;flex:none}
.review-watch-steps{display:flex;gap:8px;margin:0 0 20px}.review-watch-steps button{display:flex;align-items:center;gap:9px;flex:1;min-width:0;background:var(--surface-card);border-radius:16px;text-align:left;padding:12px 10px;min-height:68px}.review-watch-steps img{width:28px;height:28px;flex:none}.review-watch-steps small{display:block;color:var(--text-secondary);font-size:9px;letter-spacing:.6px}.review-watch-steps strong{font-size:12px;font-weight:600;display:block;margin-top:3px}

@media(max-width:99999px){.review-nav-copy{align-items:center;gap:0}.review-nav-copy small{display:none}.review-nav-copy strong{font-size:10px;font-weight:400}.review-save-receipt{padding:10px;gap:7px}.review-save-receipt small{max-width:160px}.review-watch-steps button{padding:10px 8px;flex-direction:column;align-items:flex-start;gap:5px}.review-watch-steps strong{font-size:10px}.review-watch-steps img{width:24px;height:24px}}
@media(max-width:99999px){
 .review-mobile-host{display:flex;align-items:center;gap:9px;margin-top:9px;min-height:26px;color:var(--text-secondary);font-size:10px;line-height:1.4}
 .review-mobile-host .desktop-brand-badge{display:inline-flex;align-items:center;justify-content:flex-start;width:54px;height:27px;flex:none;background:none;border-radius:0;overflow:visible}
 .review-mobile-host .desktop-brand-logo{width:100%;height:100%;padding:0;object-fit:contain}
 .review-mobile-host .desktop-brand-monochrome .desktop-brand-logo{filter:invert(1);mix-blend-mode:screen}
 .review-mobile-host .desktop-brand-monochrome .desktop-brand-invert{filter:none}
 html[data-appearance=light] .review-mobile-host .desktop-brand-monochrome .desktop-brand-logo{filter:none;mix-blend-mode:multiply}
 html[data-appearance=light] .review-mobile-host .desktop-brand-monochrome .desktop-brand-invert{filter:brightness(0)}
 .review-mobile-host>span:last-child{min-width:0;overflow-wrap:anywhere}
 #app .event-detail .tiny:has(.review-mobile-host){margin-top:0}
 #app .next-card .review-mobile-host{margin-top:11px}
 .review-mobile-host .desktop-brand-native .desktop-brand-logo{border-radius:3px}
}
.review-detail-brands{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-bottom:18px}.review-detail-brands:empty{display:none}.review-detail-brands .desktop-brand-badge{display:inline-flex;width:72px;height:38px;align-items:center;justify-content:center}.review-detail-brands img{width:100%;height:100%;object-fit:contain}.review-detail-brands .desktop-brand-monochrome img{filter:invert(1);mix-blend-mode:screen}.review-detail-brands .desktop-brand-monochrome .desktop-brand-invert{filter:none}html[data-appearance=light] .review-detail-brands .desktop-brand-monochrome img{filter:none;mix-blend-mode:multiply}html[data-appearance=light] .review-detail-brands .desktop-brand-monochrome .desktop-brand-invert{filter:brightness(0)}
@media(max-width:99999px){.review-mobile-host{font-size:11px;min-height:32px;gap:10px}.review-mobile-host .desktop-brand-badge{width:64px;height:32px}.review-mobile-host .desktop-brand-rabbit{height:38px}.review-mobile-host .desktop-brand-rabbit img{transform:scale(1.1)}}
/* Current desktop composition: the same tab and date-card vocabulary as mobile. */
.review-edit-btn{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 14px;border-radius:20px;background:var(--surface-raised);color:var(--text-primary);font:600 12px Inter;white-space:nowrap}
#app .add-nav,#app .add-nav .state-art,#app .day-add-btn,#app .event-plus,#app .desktop-add,#app .review-plan-heading .primary{box-shadow:none!important;filter:none!important}
#app .add-nav{background:transparent!important}#app .add-nav .state-art{background:none;border:0}
@media(min-width:99999px){
 #app .nav{left:50%;top:8px;bottom:auto;right:auto;transform:translateX(-50%);display:flex;flex-direction:row;align-items:center;width:max-content;max-width:590px;gap:4px;padding:4px;background:var(--surface-card);border-radius:30px;box-shadow:none}
 #app .nav button,#app .nav button.add-nav{width:auto;min-width:0;height:46px;min-height:46px;flex:0 0 auto;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;padding:7px 15px;border-radius:24px;font-size:12px}
 #app .nav button[aria-current=page]{background:var(--surface-raised)}#app .nav button[aria-current=page]::after{display:none}
 #app .app-content,#app.app-shell:not(.map-page) .app-content{padding-left:24px;padding-right:24px;max-width:none;margin:0}
 #app .sample-label{padding-left:24px}#app.map-page .app-content{padding-left:0;padding-right:0}
 #app .desktop-workspace{grid-template-columns:minmax(340px,34%) minmax(0,1fr);gap:20px}
 #app .desktop-race-ribbon{gap:14px;padding:6px 0 12px;flex-wrap:wrap}
 #app .desktop-race-ribbon .home-race-summary{min-width:280px}
 #app .desktop-race-ribbon .calendar-nav{margin:0;display:flex;flex:none}
 #app .desktop-race-ribbon .calendar-controls button{background:var(--surface-card)}
 #app.home-page .desktop-datebar{margin:0 0 14px;display:block}
 #app.home-page .desktop-datebar .day-strip{display:flex;gap:8px;padding:0;overflow:auto}
 #app.home-page .desktop-datebar .day-strip button{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;flex:1 0 100px;min-width:0;height:94px;min-height:94px;padding:12px 14px;border-radius:16px;background:var(--surface-card)}
 #app.home-page .desktop-datebar .day-strip .day-top{display:flex;justify-content:space-between;align-items:center;width:100%;font-size:13px;color:var(--text-secondary)}
 #app.home-page .desktop-datebar .day-strip b{font:600 32px/1 Barlow;align-self:flex-start;grid-column:auto;grid-row:auto;color:var(--text-primary)}
 #app.home-page .desktop-datebar .day-strip small{font-size:12px;line-height:1.2;color:var(--text-secondary)}
 #app.home-page .desktop-datebar .day-strip .day-top .icon{width:24px;height:24px;display:block}
 #app.home-page .desktop-datebar .day-strip button[aria-pressed=true]{background:var(--surface-raised);box-shadow:inset 0 -3px var(--accent)}
 #app .desktop-context{position:relative}
 #app .desktop-context #desktop-map-selection:empty{display:none}
 #app .desktop-context #desktop-map-selection:not(:empty){display:block;flex:none;max-height:44%;min-height:140px;overflow:auto;background:var(--surface-card);position:relative;padding:12px 16px;scrollbar-width:thin}
 #app .desktop-context .desktop-selected{padding:0;background:none;border-radius:0}
 #app .desktop-context .desktop-selected h3{font-size:16px;max-width:calc(100% - 64px)}
 #app .desktop-context .desktop-selected-description{display:none}
 #app .desktop-context .desktop-selected-time{font-size:25px}
 #app .desktop-context .desktop-event-context{padding:8px 0;background:none}
 #app .desktop-context .desktop-selected-actions{margin-top:10px}
 #app .review-detail-close{position:absolute;right:10px;top:8px;display:flex;align-items:center;gap:5px;padding:5px 8px;min-height:32px;border-radius:18px;background:var(--surface-raised);font-size:10px;z-index:2}
 #app .review-detail-close img{width:17px;height:17px}
 #app .desktop-context .desktop-map-card{min-height:180px}
 #app .desktop-itinerary .desktop-stop-expanded,#app .desktop-event-expanded{display:none}
 #app .desktop-stop-select .desktop-stop-copy{min-width:0}
}
