/* One player header and one navigation for every signed-in route. */
body.app-shell-page{--app-head-h:76px}
body.app-shell-page .app-shell-head{height:var(--app-head-h);min-height:var(--app-head-h);gap:14px;box-shadow:none}
body.app-shell-page .app-shell-brand{flex:0 0 40px;width:40px;height:40px}
/* Der Spot-Knopf ragt bewusst ueber die Leiste — diese Regel darf ihn beim
   Antippen nicht zurueckspringen lassen. */
body.app-shell-page :is(.app-shell-account,.app-tab:not(.app-tab-spot)):is(:hover,:active){transform:none;box-shadow:none}
body.app-shell-page .app-shell-route :is(button,.deck-btn):is(:hover,:active){translate:none}

/* Garage actions stay in its panel; the shared header owns player identity. */
body.app-shell-page[data-app-route="/app/garage"] .deck-xp-help{margin:0 0 16px}
body.app-shell-page[data-app-route="/app/garage"] .deck-xp-help .deck-xp-toggle{min-height:36px;margin:0;padding:6px 0;background:none;box-shadow:none;text-align:left}
body.app-shell-page[data-app-route="/app/garage"] .deck-daily-link{display:flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:10px 12px;font-size:12px;text-decoration:none;grid-column:1/-1}
body.app-shell-page[data-app-route="/app/garage"] .deck-hero-copy{margin-bottom:12px}
body.app-shell-page[data-app-route="/app/garage"] .deck-hero-copy .deck-eyebrow{display:none}
body.app-shell-page[data-app-route="/app/garage"] .deck-dashboard{justify-content:flex-start}

/* Today: short introduction, a playable primary action, then optional tasks. */
body.app-shell-page[data-app-route="/app/race"] .app-shell-route #heuteScreen .heute-section-intro{margin:0 0 10px;padding:0}
body.app-shell-page[data-app-route="/app/race"] .app-shell-route #heuteScreen #dailyChallenge>.section-head h2{font-size:28px!important;line-height:1.1!important;text-transform:none!important}
body.app-shell-page[data-app-route="/app/race"] .app-shell-route #heuteScreen #dailyChallenge>.section-head>.eyebrow{display:none}
body.app-shell-page[data-app-route="/app/race"] .app-shell-route #heuteScreen #dailyChallenge:has(.is-closed){padding:20px!important}
body.app-shell-page[data-app-route="/app/race"] .app-shell-route #heuteScreen #dailyChallenge:has(.is-closed)>.section-head{margin:0 0 10px!important}
body.app-shell-page[data-app-route="/app/race"] .app-shell-route #heuteScreen #dailyChallenge:has(.is-closed) #dailyIntro{display:none!important}
body.app-shell-page[data-app-route="/app/race"] .app-shell-route #heuteScreen #dailyChallenge .daily-shell.is-closed{display:block!important;min-height:0!important;margin:0;padding:0}
body.app-shell-page[data-app-route="/app/race"] .app-shell-route #heuteScreen #dailyChallenge .daily-shell.is-closed p{margin:0;color:var(--cc-muted);font-size:14px;line-height:1.5}

@media(max-width:899px){
  body.app-shell-page{--app-head-h:64px}
  body.app-shell-page .app-shell-head{gap:10px}
  body.app-shell-page .app-shell-brand{flex-basis:32px;width:32px;height:36px}
  body.app-shell-page .app-shell-brand img{width:22px;height:22px}
  .app-shell-identity{gap:3px}
  body.app-shell-page[data-app-route="/app/garage"] .deck-xp-help{margin:0}
  body.app-shell-page[data-app-route="/app/garage"] .deck-primary-actions{gap:7px}
  body.app-shell-page[data-app-route="/app/garage"] .deck-daily-link{min-height:36px;font-size:11px}
  body.app-shell-page[data-app-route="/app/race"] .app-shell-route #heuteScreen #dailyChallenge>.section-head h2{font-size:24px!important}
}
