/* drive-home.css · WB-YSA-R R5 (#6083): the round-1 Drive home. Store app, and since
 * R17a (#6111) the web drive page too (<html data-wb-web-nav>), grown per window class.
 * One file for both homes, so they cannot drift: the signed-in one on /drive
 * (web/src/drive-home.ts builds it) and the signed-out one on /welcome?tab=drive
 * (frame 1d, the demo card; welcome.html builds it). Colours are R0's tokens
 * (/wb-tokens.css, loaded first). Moved here from web/src/style.css unchanged. */

/* ---------- WB-YSA-R R5 (#6083): the round-1 Drive home, app only ---------- */
/* Frames 1a (iOS light), 1b (iOS dark), 1c (Android light). Colours are R0's tokens. */
#wb-home { display: none; }
html:is(.yojowa-app, [data-wb-web-nav]) body:not([data-trip="active"]) #wb-home {
  display: block; position: fixed; inset: 0; left: var(--wb-nav-start, 0px); top: var(--wb-nav-top, 0px); z-index: 20; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--wb-bg); color: var(--wb-ink); font-family: var(--wb-font);
  padding: calc(env(safe-area-inset-top, 0px) + 12px) var(--wb-margin-list) calc(var(--wb-tabbar-clear, 96px) + 24px);
  box-sizing: border-box;
}
/* issue #6667 (WB-FLEX FX-drive-short): while a limit banner shows, the home's last rows scroll clear of it.
   --wb-limit-banner-h is the banner's measured height (anon-banner.ts). On the grown layouts (840 and up) #wb-home is
   the grid, so this shortens it and its panes end above the banner instead of under it. 0 until measured: no banner. */
:root { --wb-limit-banner-h: 0px; }
html:is(.yojowa-app, [data-wb-web-nav]) body:not([data-trip="active"]):has(.limit-banner:not([hidden])) #wb-home {
  padding-bottom: calc(var(--wb-tabbar-clear, 96px) + var(--wb-limit-banner-h, 0px) + 24px);
}
/* WB-HOME DM2 (#10369): in limited mode the banner (limited-mode.js) is fixed at the top of the app and publishes its
   height as --wbl-h; the home starts under it instead of behind it. */
html[data-saving="off"]:is(.yojowa-app, [data-wb-web-nav]) body:not([data-trip="active"]) #wb-home {
  top: calc(var(--wb-nav-top, 0px) + var(--wbl-h, 0px));
}
/* #12211: when the door already wrote #wbl-banner[data-wbl-ssr="1"] into <body>, stack the banner and #wb-home in a
   viewport-height flex column from first paint so #wb-home never jumps when limited-mode.js measures --wbl-h. */
html[data-saving="off"]:is(.yojowa-app, [data-wb-web-nav]) body:not([data-trip="active"]):has(> #wbl-banner[data-wbl-ssr="1"]) {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  padding-top: var(--wb-nav-top, 0px);
  margin-top: 0 !important;
  box-sizing: border-box;
  overflow: hidden;
}
html[data-saving="off"]:is(.yojowa-app, [data-wb-web-nav]) body:not([data-trip="active"]):has(> #wbl-banner[data-wbl-ssr="1"]) > #wbl-banner[data-wbl-ssr="1"] {
  flex: none;
  width: 100%;
}
html[data-saving="off"]:is(.yojowa-app, [data-wb-web-nav]) body:not([data-trip="active"]):has(> #wbl-banner[data-wbl-ssr="1"]) #wb-home {
  position: relative;
  inset: auto;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}
html[data-saving="off"]:is(.yojowa-app, [data-wb-web-nav]) body:not([data-trip="active"]):has(> #wbl-banner[data-wbl-ssr="1"]):has(> #wbl-pin:not([hidden])) #wb-home {
  margin-top: var(--wbl-h, 0px);
}
/* R17a: the home starts after the nav (rail / iPad sidebar); what shows beside it is the
   home's ground, not the drive page's dark one. */
html:is(.yojowa-app, [data-wb-web-nav]) body:not([data-trip="active"]):has(#wb-home) { background: var(--wb-bg); }
/* The idle web drive UI the home replaces (its Start ride is #wbh-start now). */
html:is(.yojowa-app, [data-wb-web-nav]) body:not([data-trip="active"]) :is(#hud, #tiles, #drawer, #dest-strip, #admin-state-row, #captions,
  #you-bubble, #mic-mute-bubble, #btn-follow, #btn-view, #btn-hush, #btn-mic-mute, #btn-alerts, #btn-density) {
  display: none !important;
}
/* #6740 (WB-FLEX FR6 T1): the page title and the section heads sit on the h1 / h2 ladder (28/34, 32/38, 36/44 at 700;
   22/28, 24/30, 26/32 at 600). They were the app's 34 / 22 at 700 on every width. */
#wb-home .wbh-title { font-size: var(--wb-text-h1, 28px); font-weight: 700; line-height: var(--wb-text-h1-lh, 34px); margin: 8px 0 4px; padding: 0 4px; }
/* #6868: the web's wordmark home link (#6731) rides in the side panel above the title (drive-home.ts placeWebHomeLink);
   menu.js's 20px inset would set it off the title's 4px line. */
#wb-home .wb-web-home { padding: 0 4px; }
#wb-home .wbh-loc {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px;
  color: var(--wb-ink-2); font-size: var(--wb-type-support); text-decoration: none;
}
#wb-home .wbh-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--wb-open); flex: none; }
#wb-home .wbh-chev { color: var(--wb-ink-2); font-size: 22px; line-height: 1; margin-left: 4px; }
#wb-home .wbh-card { margin-top: 8px; background: var(--wb-surface); border-radius: var(--wb-radius-card); overflow: hidden; }
#wb-home .wbh-map-slot { position: relative; height: 258px; }
#wb-home .wbh-map-slot #map { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; pointer-events: none; }
#wb-home .wbh-card-body { padding: 16px 16px 18px; }
#wb-home .wbh-where { font-size: var(--wb-type-body); font-weight: 600; margin-bottom: 14px; }
/* U-6 (#6847, r3 U6f): signed out, the free minutes are named before Sign in to drive. */
#wb-home .wbh-free { margin: 0 0 10px; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--wb-ink-2, #9AA3B5); }
#wb-home .wbh-free[hidden] { display: none; }
#wb-home .wbh-start {
  width: 100%; min-height: 56px; border: 0; border-radius: var(--wb-radius-button);
  background: var(--wb-orange); color: var(--wb-on-orange);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 var(--wb-type-body)/1 var(--wb-font); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
html.android #wb-home .wbh-start { border-radius: 28px; min-height: 64px; }
/* WB-2.3 C0 (#9525): the E-1 card replacing Start driving at out-of-coverage locations. */
#wb-home .wbh-out-coverage[hidden] { display: none; }
#wb-home .wbh-coverage-card {
  display: flex; flex-direction: column; gap: 12px; padding: 16px;
  background: var(--wb-surface-2); border-radius: var(--wb-radius-card);
  border: 1px solid var(--wb-separator); color: var(--wb-ink);
}
#wb-home .wbh-coverage-line {
  margin: 0; font-size: var(--wb-type-body); line-height: 1.4; font-weight: 600; color: var(--wb-ink);
}
#wb-home .wbh-coverage-next {
  margin: 0; font-size: var(--wb-type-support); line-height: 1.4; color: var(--wb-ink-2);
}
#wb-home .wbh-coverage-actions {
  display: flex; flex-direction: column; gap: 10px; margin-top: 4px;
}
#wb-home .wbh-coverage-demo {
  text-decoration: none;
}
#wb-home .wbh-coverage-ride {
  font-size: var(--wb-type-support); font-weight: 600; color: var(--wb-orange-text);
  text-decoration: none; text-align: center; padding: 8px 0;
}
#wb-home .wbh-coverage-link {
  font-size: var(--wb-type-support); color: var(--wb-ink-2);
  text-decoration: none; text-align: center; padding: 4px 0;
}
#wb-home .wbh-notes p { margin: 12px 0 0; font-size: var(--wb-type-support); color: var(--wb-ink-2); text-align: center; }
#wb-home .wbh-notes a { color: var(--wb-orange-text); white-space: nowrap; }
/* WB-1.8b L-1 (#8515, board B1) & L-1b (#8555): passengers join the drive by this code or its QR. The QR keeps a white tile in both
   schemes because a camera reads dark-on-light. */
:is(#wb-home, #wb-drive) .wbh-listen { margin-top: 12px; padding: 16px; background: var(--wb-surface); border-radius: var(--wb-radius-card); }
:is(#wb-home, #wb-drive) .wbh-listen-title { margin: 0 0 12px; font-size: var(--wb-type-body); font-weight: 600; }
:is(#wb-home, #wb-drive) .wbh-listen-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
:is(#wb-home, #wb-drive) .wbh-listen-code { font: 700 44px/1 var(--wb-font); letter-spacing: .18em; color: var(--wb-ink); }
:is(#wb-home, #wb-drive) .wbh-listen-qr { flex: none; width: 112px; height: 112px; border-radius: 10px; overflow: hidden; background: #fff; }
:is(#wb-home, #wb-drive) .wbh-listen-qr svg { display: block; width: 100%; height: 100%; }
:is(#wb-home, #wb-drive) .wbh-listen-foot { margin: 10px 0 0; font-size: var(--wb-type-support); color: var(--wb-ink-2); }
/* L-4 (#8525, board B5): a Free driver's card in the plan-limit shape: title, the plans row's line, one door to Plus
   (label over its numbers, the Start button's orange), then what stays open. */
:is(#wb-home, #wb-drive) .wbh-listen[data-kind="plan"] .wbh-listen-title { margin-bottom: 4px; }
:is(#wb-home, #wb-drive) .wbh-listen-what { margin: 0 0 14px; color: var(--wb-ink-2); }
:is(#wb-home, #wb-drive) .wbh-listen-door {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 56px; padding: 8px 16px; border-radius: var(--wb-radius-button);
  background: var(--wb-orange); color: var(--wb-on-orange); text-decoration: none; text-align: center;
  -webkit-tap-highlight-color: transparent;
}
:is(#wb-home, #wb-drive) .wbh-listen-door-label { font: 600 var(--wb-type-body)/1.2 var(--wb-font); }
:is(#wb-home, #wb-drive) .wbh-listen-door-sub { font-size: var(--wb-type-support); }
/* WB-1.8b P-2 (#8520, board A1): "Plan a drive", the row above Start that opens the plan sheet (web/src/plan-sheet.ts). */
#wb-home .wbh-plan {
  display: flex; align-items: center; gap: 14px; width: 100%; margin: 0 0 12px; padding: 14px 12px 14px 14px;
  border: 1px solid var(--wb-separator); border-radius: var(--wb-radius-card); background: var(--wb-surface-2);
  color: var(--wb-ink); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
#wb-home .wbh-plan-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--wb-bg); color: var(--wb-orange); }
#wb-home .wbh-plan-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#wb-home .wbh-plan-title { font-size: var(--wb-type-body); font-weight: 600; }
#wb-home .wbh-plan-sub { font-size: var(--wb-type-support); color: var(--wb-ink-2); }
#wb-home .wbh-plan-chev { flex: none; color: var(--wb-ink-2); font-size: 24px; line-height: 1; }
#wb-home .wbh-now { margin-top: 28px; }
/* #9313: the place Right now and the allowance card hold while they load (drive-home.ts), their usual height. */
#wb-home .wbh-now[data-pending] { min-height: 240px; }
#wb-home .wbh-allowance[data-pending] { min-height: 177px; box-sizing: border-box; }
#wb-home .wbh-h h2 { font-size: var(--wb-text-h2, 22px); line-height: var(--wb-text-h2-lh, 28px); font-weight: 600; margin: 0 4px 10px; }
#wb-home .wbh-list { background: var(--wb-surface); border-radius: var(--wb-radius-card); overflow: hidden; }
#wb-home .wbh-row {
  display: flex; align-items: center; gap: 14px; min-height: var(--wb-target-row); padding: 12px 16px;
  color: inherit; text-decoration: none; position: relative;
}
#wb-home .wbh-row + .wbh-row::before { content: ""; position: absolute; top: 0; right: 0; left: 66px; border-top: 0.5px solid var(--wb-separator); }
#wb-home .wbh-ic { width: 36px; height: 36px; border-radius: 9px; flex: none; display: flex; align-items: center; justify-content: center; }
html.android #wb-home .wbh-ic { border-radius: 18px; }
#wb-home .wbh-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#wb-home .wbh-t { font-size: var(--wb-type-body); }
#wb-home .wbh-s { font-size: var(--wb-type-support); color: var(--wb-ink-2); }
#wb-home .wbh-trail { font-size: var(--wb-type-body); color: var(--wb-ink-2); }
#wb-home .wbh-chip {
  flex: none; min-height: 44px; padding: 0 18px; border: 0; border-radius: 22px;
  background: var(--wb-orange-tint); color: var(--wb-on-orange-tint);
  font: 600 var(--wb-type-support)/1 var(--wb-font); cursor: pointer;
}

/* ---------- Frame 1d: signed out, the demo drive (zz1 ruled A on #6083) ---------- */
#wb-home .wbh-sub { margin: 0 4px 4px; font-size: var(--wb-type-support); line-height: 1.4; color: var(--wb-ink-2); }
#wb-home a.wbh-start { text-decoration: none; box-sizing: border-box; }
#wb-home .wbh-art { display: block; width: 100%; height: 100%; }
#wb-home .wbh-signin {
  display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 6px;
  color: var(--wb-orange-text); font: 600 var(--wb-type-body)/1 var(--wb-font); text-decoration: none;
  white-space: nowrap;
}
#wb-home .wbh-used { margin: 12px 0 0; font-size: var(--wb-type-support); color: var(--wb-ink-2); text-align: center; }
/* /welcome's body centres its pitch; the home is left-aligned like /drive's. */
html.wb-drive-tab #wb-home { text-align: left; }
/* On /welcome the home IS the page: hide the pitch underneath it. R8's first-run
   welcome (#6086) is spared: it hides #wb-home itself, so hiding it too left a new
   user's first launch blank, with no tab bar to leave by (#6135). */
html.yojowa-app.wb-drive-tab body > :not(#wb-home):not(#wb-welcome-first-run):not(script):not([data-yojowa-tabbar]):not(yback-pill) { display: none !important; }

/* ---------- WB-YSA-R R17a (#6111): the Drive home grows with the window (DW3) ---------- */
/* Explore tiles (frames 800 x 1280, 1920 x 1080): one across on a phone, two from 600. */
#wb-home .wbh-explore { margin-top: 28px; }
#wb-home .wbh-tiles { display: grid; grid-template-columns: 1fr; gap: 8px; }
#wb-home .wbh-tile {
  display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: var(--wb-radius-card);
  background: var(--wb-surface); color: inherit; text-decoration: none;
}
#wb-home .wbh-tile svg { color: var(--wb-orange-text); margin-bottom: 8px; }
#wb-home .wbh-tile .wbh-t { font-size: var(--wb-type-body); }
#wb-home .wbh-tile .wbh-s { font-size: var(--wb-type-support); color: var(--wb-ink-2); }
/* Web only, below the app content (RF1); never in the store app. */
#wb-home .wbh-webonly { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 32px 4px 0; font-size: var(--wb-type-support); color: var(--wb-ink-2); }
#wb-home .wbh-webonly a { color: inherit; }
html.yojowa-app #wb-home .wbh-webonly { display: none; }
#wb-home .wbh-map-pane, #wb-home .wbh-col3 { display: none; }

/* medium, 600-839: a wider column, a taller map card (45% of the column), tiles two across. */
html:not([data-wsc="compact"]) #wb-home.wbh-grow .wbh-map-slot { height: auto; aspect-ratio: 100 / 45; }
html:not([data-wsc="compact"]) #wb-home.wbh-grow .wbh-tiles { grid-template-columns: 1fr 1fr; }
html[data-wsc="medium"] #wb-home.wbh-grow { padding-left: 24px; padding-right: 24px; }
/* WB-FLEX FR4 A4 (#6738): from 600 the single pane is its own scroll container and the map never scrolls */
html[data-wsc="medium"] body:not([data-trip="active"]) #wb-home.wbh-grow {
  overflow: hidden; padding: 0;
}
html[data-wsc="medium"] #wb-home.wbh-grow .wbh-side {
  overflow-y: auto; -webkit-overflow-scrolling: touch; min-height: 0; height: 100%; box-sizing: border-box;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 24px calc(var(--wb-tabbar-clear, 0px) + 24px) 24px;
}

/* expanded 840 and up: map + panel. The panel (380-460) keeps the phone column's order and
   scrolls on its own; the card keeps where-you-are and Start driving, its map is the pane. */
html:is([data-wsc="expanded"], [data-wsc="large"], [data-wsc="xl"]) body:not([data-trip="active"]) #wb-home.wbh-grow {
  display: grid; grid-template-columns: clamp(380px, 32vw, 460px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr);
  overflow: hidden; padding: 0;
}
html:is([data-wsc="expanded"], [data-wsc="large"], [data-wsc="xl"]) #wb-home.wbh-grow .wbh-side {
  overflow-y: auto; -webkit-overflow-scrolling: touch; min-height: 0; height: 100%; box-sizing: border-box;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px calc(var(--wb-tabbar-clear, 0px) + 24px) 24px;
}
html:is([data-wsc="expanded"], [data-wsc="large"], [data-wsc="xl"]) #wb-home.wbh-grow .wbh-map-slot { display: none; }
html:is([data-wsc="expanded"], [data-wsc="large"], [data-wsc="xl"]) #wb-home.wbh-grow .wbh-map-pane {
  display: block; position: relative; margin: 16px 16px calc(var(--wb-tabbar-clear, 0px) + 16px) 8px; border-radius: var(--wb-radius-card); overflow: hidden;
}

/* WB-FLEX FR4 A5 (#6738): When the panel is shorter than 560, its primary action
   (Turn on location or Start driving) pins to the panel's bottom edge (44 tall below 480 high)
   and the content scrolls above it. */
#wb-home .wbh-dock { display: none; }
html[data-wsc="compact"] #wb-home.wbh-grow .wbh-dock:not([hidden]) {
  position: sticky; bottom: var(--wb-tabbar-clear, 0px); left: 0; right: 0; z-index: 10;
  background: var(--wb-bg);
  box-shadow: 0 -1px 0 var(--wb-separator, rgba(0,0,0,.1)), 0 -8px 16px rgba(0,0,0,.08);
  padding: 10px 16px 12px; box-sizing: border-box;
  display: flex; flex-direction: column; margin-top: 16px; flex: none;
}
html:not([data-wsc="compact"]) #wb-home.wbh-grow .wbh-dock:not([hidden]) {
  position: sticky; bottom: 0; left: 0; right: 0; z-index: 10;
  background: var(--wb-bg);
  box-shadow: 0 -1px 0 var(--wb-separator, rgba(0,0,0,.1)), 0 -8px 16px rgba(0,0,0,.08);
  padding: 10px 16px 12px; box-sizing: border-box;
  display: flex; flex-direction: column; margin-top: 16px; flex: none;
}
@media (max-height: 559px) {
  html:not([data-wsc="compact"]) #wb-home.wbh-grow .wbh-dock:not([hidden]) {
    position: sticky; bottom: 0; left: 0; right: 0; z-index: 10;
    background: var(--wb-bg);
    box-shadow: 0 -1px 0 var(--wb-separator, rgba(0,0,0,.1)), 0 -8px 16px rgba(0,0,0,.08);
    padding: 10px 16px 12px; box-sizing: border-box;
    display: flex; flex-direction: column; margin-top: 16px; flex: none;
  }
}
html:not([data-wsc="compact"]) #wb-home.wbh-grow .wbh-dock[data-below480="true"] { padding: 8px 16px 8px; }
html:not([data-wsc="compact"]) #wb-home.wbh-grow .wbh-dock[data-below480="true"] .wbh-start { min-height: 44px; height: 44px; }
html.android:not([data-wsc="compact"]) #wb-home.wbh-grow .wbh-dock[data-below480="true"] .wbh-start { border-radius: 22px; min-height: 44px; height: 44px; }
@media (max-height: 479px) {
  html:not([data-wsc="compact"]) #wb-home.wbh-grow .wbh-dock:not([hidden]) { padding: 8px 16px 8px; }
  html:not([data-wsc="compact"]) #wb-home.wbh-grow .wbh-dock .wbh-start { min-height: 44px; height: 44px; }
  html.android:not([data-wsc="compact"]) #wb-home.wbh-grow .wbh-dock .wbh-start { border-radius: 22px; min-height: 44px; height: 44px; }
}
/* (--wb-tabbar-clear is 0 while the nav is a rail; an iPad keeps the iOS bar until its
   sidebar lands, so the panes clear it.) */
/* WB-YSA-R2 T1 (#6267), frame 12a: on the iPad (iOS skin, top tab bar) the left column is 440 pt and
   holds the phone layout; the map takes the rest. The bar sits above both, so the panes start under it. */
html.ios[data-wb-nav="topbar"]:is([data-wsc="expanded"], [data-wsc="large"], [data-wsc="xl"]) body:not([data-trip="active"]) #wb-home.wbh-grow {
  grid-template-columns: 440px minmax(0, 1fr);
}
html.ios[data-wb-nav="topbar"] #wb-home.wbh-grow .wbh-side { padding-top: 8px; }
html.ios[data-wb-nav="topbar"] #wb-home.wbh-grow .wbh-map-pane { margin-top: 8px; }
#wb-home .wbh-map-pane #map { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; }

/* extra-large 1600 and up: Explore moves from the bottom of the panel into a third column.
   Above 2560 the panes keep their widths and the extra becomes equal margins. */
/* #6290 (13d): "Drive 420 + map" at large, "Drive 420 + map + Explore 400" at extra-large. */
html[data-wsc="large"] body:not([data-trip="active"]) #wb-home.wbh-grow { grid-template-columns: 420px minmax(0, 1fr); }
html[data-wsc="xl"] body:not([data-trip="active"]) #wb-home.wbh-grow {
  grid-template-columns: 420px minmax(0, 1fr) 400px;
  padding-left: max(0px, calc((100vw - var(--wb-nav-start, 0px) - 2560px) / 2));
  padding-right: max(0px, calc((100vw - var(--wb-nav-start, 0px) - 2560px) / 2));
}
html[data-wsc="xl"] #wb-home.wbh-grow .wbh-col3 {
  display: block; overflow-y: auto; min-height: 0; padding: calc(env(safe-area-inset-top, 0px) + 12px) 24px calc(var(--wb-tabbar-clear, 0px) + 24px) 8px;
}
html[data-wsc="xl"] #wb-home.wbh-grow .wbh-col3 .wbh-explore { margin-top: 8px; }
html[data-wsc="xl"] #wb-home.wbh-grow .wbh-col3 .wbh-tiles { grid-template-columns: 1fr; }

/* WB-YSA-R2 L3 (#6261): Needs your location rows in Right now */
#wb-home .wbh-row.wbh-loc-off .wbh-ic {
  background: #E3E4E9 !important;
  color: var(--wb-ink-3, #8A909B) !important;
}
@media (prefers-color-scheme: dark) {
  html:not([data-wb-scheme="light"]) #wb-home .wbh-row.wbh-loc-off .wbh-ic {
    background: #2B3550 !important;
    color: #8E95A6 !important;
  }
}
html[data-wb-scheme="dark"] #wb-home .wbh-row.wbh-loc-off .wbh-ic {
  background: #2B3550 !important;
  color: #8E95A6 !important;
}
html.android #wb-home .wbh-row.wbh-loc-off .wbh-ic {
  background: #E3E4E9 !important;
  color: var(--wb-ink-3, #8A909B) !important;
}
@media (prefers-color-scheme: dark) {
  html.android:not([data-wb-scheme="light"]) #wb-home .wbh-row.wbh-loc-off .wbh-ic {
    background: #2B3550 !important;
    color: #8E95A6 !important;
  }
}
html.android[data-wb-scheme="dark"] #wb-home .wbh-row.wbh-loc-off .wbh-ic {
  background: #2B3550 !important;
  color: #8E95A6 !important;
}

#wb-home .wbh-needs-loc {
  color: var(--wb-orange-text) !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
#wb-home .wbh-loc-off-ic {
  flex: none;
  stroke: currentColor;
}

/* ---------- WB-YSA-R2 L2 (#6258): Drive home without location, frames 8b / 8c / 8d ----------
   Start is disabled with the reason under it; the primary becomes Turn on location (Off) or
   Open settings (Blocked); the map is grey with no dot and says so. Finding you puts the
   spinner on Start. [hidden] restated because .wbh-start and .wbh-noloc set display. */
#wb-home .wbh-start[hidden], #wb-home .wbh-noloc[hidden], #wb-home .wbh-locwhy[hidden] { display: none; }
/* #10527 item 6, Profile's rule (#7738) on Drive: while the primary carries the pill's own action (Turn on location,
   Open settings), the pill under the title says the state only. Two "Turn on" on one screen read as two switches.
   The pill still taps the same way. A ride primary (web, blocked) is a different action, so the pill keeps Settings. */
#wb-home:has(.wbh-locact:not([hidden]):is([data-kind="turn-on"], [data-kind="settings"])) .wbh-title + .wbl-pill .wbl-a { display: none; }
/* #11059 (YCT2): the action word was not enough. With location off a first-time rider read "Location off" (pill),
   "We don't know where you are" (map), the line under Start and the Turn on button: one fact four times, which reads
   as an error before she has done anything. While the primary carries the pill's action the pill goes entirely, and
   while the line under Start says why, the map says nothing; the line and its button are the screen's one message. */
#wb-home:has(.wbh-locact:not([hidden]):is([data-kind="turn-on"], [data-kind="settings"])) .wbh-title + .wbl-pill { display: none; }
#wb-home:has(.wbh-locwhy:not([hidden])) .wbh-noloc { display: none; }
#wb-home .wbh-start:disabled {
  /* #6740 (T6): ink-3 is never text; it read 1.4:1 here. ink-2 on the 9% fill, and the reason line under it says why.
     opacity 1 undoes style.css's global button:disabled 0.4, which took this pair to 1.7:1 in the browser. */
  background: color-mix(in srgb, var(--wb-ink) 9%, transparent); color: var(--wb-ink-2); cursor: default; opacity: 1;
}
/* DR-20 (y zz3/2026-12-01/wb-drive/design.md A2, A5): solid orange is Drive only. The web's blocked state offers the
   ride-along ("Not driving? Ride along SR 520 · 12 min"), a film to play, so it is tonal: the orange tint, the text
   made for it, a thin orange edge. Nothing on the drive screen outranks Start. One class more than the Material fills
   further down (html.android ... .wbh-start:not(:disabled)), so it holds in every skin wherever it sits. */
#wb-home .wbh-card-body .wbh-start.wbh-locact[data-kind="ride"]:not([hidden]) {
  background: var(--wb-orange-tint); color: var(--wb-on-orange-tint);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wb-orange) 50%, transparent);
}
/* The allowance card (.wba) lives in wb-allowance.css, shared with Profile and /plans. */
#wb-home .wbh-start.wbh-start-blocked { background: color-mix(in srgb, var(--wb-ink) 9%, transparent); color: var(--wb-ink-2); cursor: default; }
#wb-home .wbh-locwhy { margin: 12px 8px 14px; font-size: var(--wb-type-support); line-height: 1.4; color: var(--wb-ink-2); text-align: center; }
/* #6786: top is the chip's centre. In landscape with the limit banner up the pane is 73-95 px tall,
   and 42% put the chip on the attribution row (pane top +8..+32, #6742 C5). 54 px keeps the
   ~36 px chip below that row and inside a 73 px pane; a tall pane still gets 42%. */
#wb-home .wbh-noloc {
  position: absolute; z-index: 2; left: 50%; top: max(42%, 54px); transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 8px; max-width: calc(100% - 32px); padding: 9px 16px;
  border-radius: 999px; background: var(--wb-surface); color: var(--wb-ink);
  font: 600 var(--wb-type-support)/1.2 var(--wb-font); white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
#wb-home .wbh-noloc svg { flex: none; color: var(--wb-orange-text); }
#wb-home .wbh-noloc span { overflow: hidden; text-overflow: ellipsis; }
html.android #wb-home .wbh-noloc { border-radius: 12px; }
/* #6742 C5: the map itself greys, not #map, so the attribution's scrim and text inside it keep their contrast. */
#wb-home:is([data-loc="off"], [data-loc="blocked"]) #map .maplibregl-canvas-container { filter: grayscale(1) opacity(.75); }
#wb-home:is([data-loc="off"], [data-loc="blocked"]) #map .maplibregl-user-location-dot { display: none; }
#wb-home .wbh-spin { animation: wbh-spin 1s linear infinite; }
@keyframes wbh-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #wb-home .wbh-spin { animation: none; } }
#wb-home:is([data-loc="off"], [data-loc="blocked"], [data-loc="finding"]) .wbh-where { display: none; }
/* WB-YSA-R2 L4 (#6262): Blue dot on map when location is on */
.wb-blue-dot-marker {
  width: 32px;
  height: 32px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.wb-blue-dot-halo {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(47, 124, 246, 0.28);
  animation: wb-pulse-halo 2.4s ease-in-out infinite;
}
.wb-blue-dot-core {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2F7CF6;
  border: 2.5px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}
@keyframes wb-pulse-halo {
  0% { transform: scale(0.85); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 0.25; }
  100% { transform: scale(0.85); opacity: 0.6; }
}
@media (prefers-reduced-motion: reduce) {
  .wb-blue-dot-halo { animation: none; }
}

/* WB-YSA-R2 L4 (#6262): One-time 'Location on' banner (frame 8e) */
#wb-home .wbh-banner-loc-on {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1C2436;
  color: #FFFFFF;
  border-radius: 20px;
  padding: 10px 14px;
  margin: 4px auto 14px auto;
  max-width: 375px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  box-sizing: border-box;
  animation: wbh-slide-down 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
#wb-home .wbh-banner-loc-on.wbh-banner-fade-out {
  opacity: 0;
  transform: translateY(-8px);
}
#wb-home .wbh-banner-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2F7CF6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
#wb-home .wbh-banner-icon svg {
  display: block;
}
#wb-home .wbh-banner-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
#wb-home .wbh-banner-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: #FFFFFF;
}
#wb-home .wbh-banner-sub {
  font-size: 13px;
  line-height: 1.3;
  color: #B0B8C8;
}
@keyframes wbh-slide-down {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

#wb-home .wbh-where {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
#wb-home .wbh-where .wbh-where-road {
  font-size: 15px;
  font-weight: 500;
  color: var(--wb-ink-2, #5F6775);
}

/* ---------- WB-YSA-R2 S1 (#6263): SE 375, Pro Max 440, Android 412 Drive home ---------- */
/* iPhone SE 375x667 (10a): Home button model: 20 pt status bar, map is 118 pt so two rows of
   Right now fit above the fold without scrolling. Redundant where-row in the card is hidden
   since the pill right above it already displays the place. */
@media (max-height: 700px) and (max-width: 400px) {
  #wb-home .wbh-map-slot { height: 118px; }
  #wb-home {
    padding-top: calc(env(safe-area-inset-top, 0px) + 8px);
    padding-bottom: calc(72px + 12px);
  }
  #wb-home .wbh-title { margin: 6px 0 2px; }
  #wb-home .wbh-now { margin-top: 14px; }
  #wb-home .wbh-card-body { padding: 12px 14px 14px; }
  #wb-home .wbh-start { min-height: 52px; }
  #wb-home .wbh-where { display: none; }
}

/* iPhone Pro Max 440x956 (10c): map is 200 pt, card radius 30 pt. All three Right now rows
   and the shortcuts fit cleanly. */
@media (min-height: 900px) and (min-width: 420px) {
  #wb-home .wbh-map-slot { height: 200px; }
  #wb-home .wbh-card { border-radius: 30px; }
}

/* Android 412x915 dark (10f): map slot 180 pt, grouped card styling for Right now rows. */
html.android[data-wb-scheme="dark"] #wb-home .wbh-map-slot { height: 180px; }
@media (prefers-color-scheme: dark) {
  html.android:not([data-wb-scheme="light"]) #wb-home .wbh-map-slot { height: 180px; }
}
html.android #wb-home .wbh-list {
  background: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
html.android #wb-home .wbh-row {
  background: var(--wb-surface);
  border-radius: 4px;
}
html.android #wb-home .wbh-row:first-child {
  border-radius: 24px 24px 4px 4px;
}
html.android #wb-home .wbh-row:last-child {
  border-radius: 4px 4px 24px 24px;
}
html.android #wb-home .wbh-row + .wbh-row::before {
  display: none;
}



/* WB-YSA-R2 T2 (#6268), frame 12d: on the Android tablet (M3 rail, 840+) the card leads with a heading
   and a line, and the line under Start goes. Elsewhere the heading stays hidden (8b / 8c). */
#wb-home .wbh-lochead { display: none; }
html.android:is([data-wsc="expanded"], [data-wsc="large"], [data-wsc="xl"]) #wb-home .wbh-lochead:not([hidden]) { display: block; margin: 0 0 16px; }
html.android:is([data-wsc="expanded"], [data-wsc="large"], [data-wsc="xl"]) #wb-home .wbh-lochead h2 { margin: 0 0 8px; font: 600 var(--wb-text-h2, 22px)/var(--wb-text-h2-lh, 28px) var(--wb-font); color: var(--wb-ink); }
html.android:is([data-wsc="expanded"], [data-wsc="large"], [data-wsc="xl"]) #wb-home .wbh-lochead p { margin: 0; font-size: var(--wb-type-support); line-height: 1.45; color: var(--wb-ink-2); }
html.android:is([data-wsc="expanded"], [data-wsc="large"], [data-wsc="xl"]) #wb-home .wbh-lochead:not([hidden]) ~ .wbh-locwhy { display: none; }

/* WB-YSA-R2 #6292 (frames 12d, 13b): in LIGHT Material the primary is the dark rust #A8431A with white
   text; the dark theme keeps the bright orange (8c). iOS is unchanged. */
html.android #wb-home .wbh-start:not(:disabled) { background: #A8431A; color: #FFFFFF; }
@media (prefers-color-scheme: dark) {
  html.android:not([data-wb-scheme="light"]) #wb-home .wbh-start:not(:disabled) { background: var(--wb-orange); color: var(--wb-on-orange); }
}
html.android[data-wb-scheme="dark"] #wb-home .wbh-start:not(:disabled) { background: var(--wb-orange); color: var(--wb-on-orange); }
/* #6292 (13b, 12d): on Material the two shortcuts are filled chips, icon beside the label;
   iOS keeps the cards (12a). */
html.android #wb-home .wbh-tile {
  flex-direction: row; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px;
  background: color-mix(in srgb, var(--wb-ink) 6%, var(--wb-bg)); box-shadow: none;
}
html.android #wb-home .wbh-tile .wbh-t { font-weight: 500; }
html.android #wb-home .wbh-tile svg { margin-bottom: 0; }

/* WB 1.7 S10 (#6220, frame 2h): Right now's pass row takes its tile and words' colour from the pass's state
   (explore.css's tones, the pass page's), never the fixed green it had.
   WB-FLEX FR10 (#6744, T5): the ink and tint are the status roles (wb-tokens.css --wb-ok/-warn/-bad, light and dark),
   the same mapping as explore.css: open ok, caution and chains warn, closed bad, no reading ink-2 on surface-2. */
#wb-home .wbh-tone-open { --tone-ink: var(--wb-ok-ink); --tone-tint: var(--wb-ok-tint); }
#wb-home .wbh-tone-caution { --tone-ink: var(--wb-warn-ink); --tone-tint: var(--wb-warn-tint); }
#wb-home .wbh-tone-chains { --tone-ink: var(--wb-warn-ink); --tone-tint: var(--wb-warn-tint); }
#wb-home .wbh-tone-closed { --tone-ink: var(--wb-bad-ink); --tone-tint: var(--wb-bad-tint); }
#wb-home .wbh-tone-neutral { --tone-ink: var(--wb-ink-2); --tone-tint: var(--wb-surface-2); }
#wb-home .wbh-pass-ic { border-radius: 18px; color: var(--tone-ink); background: var(--tone-tint); --pv-on-ico: #fff; }
#wb-home .wbh-s:is(.wbh-tone-open, .wbh-tone-caution, .wbh-tone-chains, .wbh-tone-closed, .wbh-tone-neutral) { color: var(--tone-ink); font-weight: 600; }
html[data-wb-scheme="dark"] #wb-home .wbh-pass-ic { --pv-on-ico: #10141c; }
@media (prefers-color-scheme: dark) {
  html:not([data-wb-scheme="light"]) #wb-home .wbh-pass-ic { --pv-on-ico: #10141c; }
}

/* WB-SIGNIN S1 (#6807): signed out, the line under the taste. The Sign in text button reuses 1d's .wbh-signin above. */
#wb-home .wbh-tasteline { margin: 8px 0 0; font-size: var(--wb-type-support); line-height: 1.4; color: var(--wb-ink-2); }

/* WB-2.5 R-5 (#8215): Saved for this drive banner */
#wb-home .wbh-saved {
  border-radius: 14px;
  border: 1px solid rgba(255, 122, 77, 0.5);
  background: rgba(255, 122, 77, 0.09);
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  color: var(--wb-ink, #EAF1FB);
}
#wb-home .wbh-saved[hidden] {
  display: none;
}
#wb-home .wbh-saved-icon {
  flex: none;
  margin-top: 2px;
  color: var(--wb-orange, #FF7A4D);
}
#wb-home .wbh-saved-text {
  font-size: 14px;
  line-height: 1.5;
  text-wrap: pretty;
}
#wb-home .wbh-saved-lead {
  font-weight: 700;
  color: var(--wb-ink, #EAF1FB);
}
#wb-home .wbh-saved-change {
  color: #4D90FF;
  font-weight: 600;
  text-decoration: none;
}
#wb-home .wbh-saved-change:hover {
  text-decoration: underline;
}

#wb-home .wbh-saved-sub {
  font-size: 12px;
  color: var(--wb-ink-2, #6F80A6);
  text-align: center;
  margin: 10px 0 0;
}
#wb-home .wbh-saved-sub[hidden] {
  display: none;
}

/* WB-2.5 R-5 (#8215): On your phone? section on desktop */
#wb-home .wbh-on-phone {
  border-top: 1px solid var(--wb-separator, #273456);
  padding-top: 16px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#wb-home .wbh-on-phone[hidden] {
  display: none;
}
#wb-home .wbh-on-phone-title {
  font-family: var(--wb-font-heading, 'Jost', sans-serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--wb-ink, #EAF1FB);
}
#wb-home .wbh-on-phone-sub {
  font-size: 14px;
  line-height: 1.5;
  color: var(--wb-ink-2, #9FB2D0);
}
#wb-home .wbh-on-phone-badges {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
#wb-home .wbh-on-phone-soon {
  font-size: 12px;
  font-weight: 600;
  color: var(--wb-ink-2, #9FB2D0);
  border: 1px solid var(--wb-separator, #273456);
  border-radius: 999px;
  padding: 4px 10px;
}
#wb-home .wbh-on-phone-siri {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--wb-ink, #EAF1FB);
}
#wb-home .wbh-on-phone-siri-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #1A2A4D;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wb-orange, #FF7A4D);
  flex: none;
}

/* S-2 (#8639, design round 1 DD7): a page's door draws its road's covered stretch in route blue, named, over the map.
   It is beside the canvas container, so the grey filter above does not reach it, and it shows only while the map is
   the drive home's (corridor-door.ts mountCorridorRoad). */
.wbh-road { display: none; }
#wb-home #map .wbh-road { display: block; position: absolute; inset: 0; pointer-events: none; }
#wb-home #map .wbh-road svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#wb-home #map .wbh-road path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
#wb-home #map .wbh-road-casing { stroke: #0A0F1C; stroke-width: 8px; }
#wb-home #map .wbh-road-line { stroke: var(--wb-route, #5B9BFF); stroke-width: 4.5px; }
#wb-home #map .wbh-road-label {
  position: absolute; left: 10px; bottom: 10px; padding: 4px 8px; border-radius: 8px;
  background: rgba(10, 15, 28, 0.86); color: #F2F4F8; font-size: 12px; line-height: 16px; font-weight: 600;
}
