/* Customer and driver apps: full map, white sheet on top, yellow stats. Loaded after panel.css. */
body { background: #fff; }
.app { min-height: 100dvh; }
.app .bar { display: grid; grid-template-columns: 52px 1fr 52px; gap: 0; min-height: 58px; padding: 6px 12px; border: 0; box-shadow: 0 1px 0 var(--line); z-index: 12; }
.app .bar h1 { grid-column: 2; grid-row: 1; text-align: center; font-size: 1.1rem; font-weight: 700; } .app .bar > :first-child { justify-self: start; } .app .bar > :last-child { grid-column: 3; justify-self: end; }
.app .bar .bar-logo { display: none; grid-column: 2; grid-row: 1; width: 138px; justify-self: center; } .app .bar .skip ~ *, .app .bar h1.skip { grid-row: 1; } .app .bar:has(h1.skip) .bar-logo { display: block; }
.app .switch { min-height: 44px; } .app .switch i { width: 48px; height: 27px; background: #fff; border: 2px solid var(--ink); } .app .switch i::after { top: 1.5px; left: 2px; width: 20px; height: 20px; background: var(--ink); } .app .switch[aria-checked=true] i { background: var(--orange); border-color: var(--orange); } .app .switch[aria-checked=true] i::after { background: #fff; transform: translateX(20px); }

.mapbox { position: sticky; top: 58px; z-index: 0; height: 46svh; min-height: 270px; background: #f1f2ef; overflow: hidden; } .mapbox svg { position: absolute; inset: 0; }
.mapbox::after { content: 'Route map, not live location'; position: absolute; left: 12px; top: 12px; padding: 2px 9px; border-radius: 99px; background: rgba(255, 255, 255, .88); font-size: .76rem; color: var(--soft); }
.app .mapbox:not([data-map*=from])::after { content: none; }
.app .mapbox[data-map*=from] { height: 40svh; }
.m-pulse { animation: pulse 2.6s ease-out infinite; } @keyframes pulse { from { transform: scale(.35); opacity: .6; } to { transform: scale(1.25); opacity: 0; } }
.offline { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 11px 18px; background: var(--orange); color: #1b1208; line-height: 1.3; } .offline > span { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #ffd32a; outline: 2px dashed var(--ink); outline-offset: 3px; } .offline p { font-size: .95rem; } .offline b { font-size: 1.05rem; }

.app .page { width: min(620px, 100%); padding: 20px 18px 112px; gap: 16px; }
.mapped .page { position: relative; z-index: 2; margin-top: -30px; background: #fff; border-radius: 28px 28px 0 0; box-shadow: 0 -10px 34px rgba(34, 40, 28, .13); padding-top: 30px; min-height: calc(54svh + 30px); align-content: start; } .mapped .page::before { content: ''; position: absolute; top: 10px; left: 50%; width: 42px; height: 5px; margin-left: -21px; border-radius: 9px; background: #d5d9d1; }
.who-row { display: flex; align-items: center; gap: 13px; } .app .avatar { width: 48px; height: 48px; flex: none; font-size: 1.25rem; background: var(--ink); color: #ffd32a; } .job-amt { text-align: right; } .job-amt b { display: block; font-size: 1.2rem; line-height: 1.25; font-variant-numeric: tabular-nums; } .who-row h2, .who-row small { display: block; }
.sunbox { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 16px 8px 14px; border-radius: 18px; background: #ffd32a; text-align: center; } .sunbox .i { width: 1.7rem; height: 1.7rem; opacity: .75; } .sunbox dd { font-weight: 750; font-size: 1.2rem; line-height: 1.3; font-variant-numeric: tabular-nums; } .sunbox dt { font-size: .82rem; color: #4b3f05; line-height: 1.2; } .sunbox div { display: grid; justify-items: center; align-content: start; }
.chip.sun { background: #ffd32a; color: #2b2400; } .btn.sun { background: #ffd32a; border-color: #ffd32a; } .btn.sun:hover { background: #ffdc55; } .btn.quiet { border-color: transparent; background: none; color: var(--soft); }
.job { display: grid; gap: 12px; padding: 16px; border-radius: 20px; background: #fff; color: inherit; text-decoration: none; box-shadow: 0 1px 2px rgba(34, 40, 28, .1), 0 8px 26px rgba(34, 40, 28, .09); } .job.new { outline: 2.5px solid var(--orange); } .job-link { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; } .job-link small, .job-link b { display: block; } .tags { display: flex; flex-wrap: wrap; gap: 6px; } .job-act { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; }
.stops { position: relative; display: grid; gap: 10px; padding-left: 24px; } .stops::before { content: ''; position: absolute; left: 6px; top: 20px; bottom: 22px; border-left: 2px dashed #bfc5ba; } .stops > div { position: relative; } .stops > div::before { content: ''; position: absolute; left: -24px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: #ffd32a; border: 4px solid var(--ink); } .stops > div:last-child::before { background: #fff; border-color: var(--orange); } .stops dt { font-size: .8rem; color: var(--soft); line-height: 1.2; } .stops dd { font-weight: 650; overflow-wrap: anywhere; }
.app .card { border-radius: 20px; border-color: transparent; box-shadow: 0 1px 2px rgba(34, 40, 28, .1), 0 8px 26px rgba(34, 40, 28, .08); } .app .now { border: 0; border-radius: 22px; box-shadow: 0 12px 34px rgba(34, 40, 28, .16); } .app .now > header { padding: 16px 20px; } .app .now .driver .avatar { width: 54px; height: 54px; }
.app .facts { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); padding: 14px; border-radius: 16px; background: #ffd32a; } .app .facts dt { color: #4b3f05; font-size: .84rem; line-height: 1.2; } .app .facts dd { font-size: 1.15rem; }
.where { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 18px; border-radius: 18px; background: #f1f2ef; color: var(--soft); font-weight: 600; font-size: 1.05rem; text-decoration: none; } .where .i { color: var(--ink); } .where:hover { background: #e9ebe6; }
.quick { display: flex; gap: 8px; overflow-x: auto; margin-inline: -18px; padding: 2px 18px; scrollbar-width: none; } .quick a { flex: none; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 15px 6px 11px; border: 1.5px solid var(--line); border-radius: 99px; color: var(--ink); text-decoration: none; font-weight: 600; } .quick .i { color: var(--orange-deep); }
.app .dock { border: 0; box-shadow: 0 -4px 24px rgba(34, 40, 28, .1); } .app .dock a { border-radius: 16px; transition: background .2s; } .app .dock a[aria-current] { background: #fff3c2; color: var(--ink); }
.app .track li { border-radius: 2px; } .app .track .on { border-color: var(--orange); }
.app .kpis > * { border-radius: 18px; }

/* Intro slides */
.intro { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto auto auto; justify-items: center; gap: 12px; padding: 26px 0 calc(22px + env(safe-area-inset-bottom)); max-width: 480px; margin: 0 auto; } .slides { display: flex; width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; } .slides section { flex: 0 0 100%; scroll-snap-align: center; display: grid; align-content: center; justify-items: center; text-align: center; gap: 10px; padding: 8px 34px; } .slides h1 { font-size: 1.65rem; margin-top: 20px; } .slides p { color: var(--soft); max-width: 30ch; font-size: 1.05rem; } .art { width: min(270px, 70vw); overflow: visible; } .blob { fill: #f1f2ef; } .float { animation: bob 4.5s ease-in-out infinite alternate; } .float.late { animation-delay: -2s; } @keyframes bob { to { transform: translateY(-8px); } }
.dots { display: flex; gap: 8px; padding: 6px; } .dots i { width: 9px; height: 9px; border-radius: 9px; background: #d9ddd5; transition: background .25s, transform .25s; } .dots .on { background: #ffc400; transform: scale(1.25); } .intro .big-act { width: calc(100% - 48px); } .intro .link { color: var(--soft); text-decoration: none; min-height: 44px; }

/* Entry motion, only when a screen opens */
.fresh.mapped .page { animation: sheet-in .5s cubic-bezier(.2, .9, .25, 1) backwards; } @keyframes sheet-in { from { transform: translateY(90px); opacity: .4; } }
.fresh .page > * { animation: item-in .42s cubic-bezier(.2, .8, .3, 1) backwards; } .fresh .page > :nth-child(2) { animation-delay: .05s; } .fresh .page > :nth-child(3) { animation-delay: .1s; } .fresh .page > :nth-child(4) { animation-delay: .15s; } .fresh .page > :nth-child(n + 5) { animation-delay: .2s; } @keyframes item-in { from { transform: translateY(16px); opacity: 0; } }

/* Tablet and desktop: side rail, map, panel */
@media (min-width: 860px) {
  .app { display: grid; grid-template: auto auto 1fr / 104px minmax(0, 1fr); } .app .bar { grid-column: 1 / -1; grid-template-columns: 190px 1fr 190px; padding-inline: 24px; } .app .bar > :first-child { grid-column: 1; grid-row: 1; justify-self: end; } .app .bar .bar-logo, .app .bar:has(h1.skip) .bar-logo { display: block; grid-column: 1; justify-self: start; }
  .app .dock { grid-column: 1; grid-row: 2 / 4; position: sticky; top: 58px; inset-inline: auto; bottom: auto; height: calc(100dvh - 58px); flex-direction: column; justify-content: flex-start; gap: 8px; padding: 18px 10px; box-shadow: 1px 0 0 var(--line); } .app .dock a { flex: none; max-width: none; padding: 12px 4px 9px; }
  .offline { grid-column: 2; } .app .page { grid-column: 2; padding: 32px 24px 60px; width: min(760px, 100%); }
  .mapped { grid-template-columns: 104px minmax(0, 1fr) minmax(400px, 470px); } .mapped .offline { grid-column: 2 / 4; grid-row: 2; } .mapped .mapbox, .mapped .mapbox[data-map*=from] { grid-column: 2; grid-row: 3; height: calc(100dvh - 58px); } .mapped .page { grid-column: 3; grid-row: 3; width: 100%; margin: 0; border-radius: 0; min-height: calc(100dvh - 58px); padding: 28px 26px 60px; box-shadow: -12px 0 40px rgba(34, 40, 28, .1); } .mapped .page::before { content: none; }
  .fresh.mapped .page { animation-name: item-in; }
}
@media (min-width: 860px) and (max-width: 1100px) { .mapped { grid-template-columns: 88px minmax(0, 1fr) 400px; } }
