/* trallyn. The look follows the Uber Driver app (not the rider app), measured on 04/12/2026 from Uber's own images
   of it (uber.com/drive/driver-app and the App Store listing): the map first, round white buttons floating on it, the
   trip as a white card with a blue frame, a black chip for the vehicle, one very large figure, a dot-line-square route,
   a blue button (#276EF1) for the step that moves the trip, a black card on top with where to go and a white status
   bar under the map. Lists are text, with dashed rules. Inter stands in for Uber Move. */
:root{
  --paper:#fff;--tile:#f3f3f3;--press:#e8e8e8;--line:#e8e8e8;--line-2:#e2e2e2;
  --blue:#276ef1;--blue-press:#1e54b7;--blue-bg:#eff4fe;--pos:#0e8345;--mapbg:#e6e9f0;
  --ink:#000;--ink-2:#333;--muted:#5e5e5e;--faint:#afafaf;
  --neg:#de1135;--neg-bg:#ffeff0;
  --font:"Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Helvetica,Arial,sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --r:8px;--r-card:12px;
  --float:0 2px 10px rgba(0,0,0,.18); /* only for round buttons that float over the map */
  --ease:cubic-bezier(.2,.8,.2,1);
  --safe-b:env(safe-area-inset-bottom,0px);--safe-t:env(safe-area-inset-top,0px);--safe-l:env(safe-area-inset-left,0px);--safe-r:env(safe-area-inset-right,0px);
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
body{margin:0;font-family:var(--font);font-size:16px;line-height:1.4;color:var(--ink);background:var(--paper);font-feature-settings:"cv11","ss01"}
h1,h2,h3,p{margin:0}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none;padding:0}
a{color:inherit;text-decoration:none}
:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.tnum{font-variant-numeric:tabular-nums}
svg.i{flex:none;fill:currentColor;fill-rule:evenodd}
svg.i.s{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

body{padding:0 var(--safe-r) 0 var(--safe-l)}
#app{max-width:560px;margin:0 auto;min-height:100dvh;background:var(--paper);padding-bottom:calc(32px + var(--safe-b))}
#app.full{padding-bottom:calc(32px + var(--safe-b))}

/* page title: big, bold, on the left */
.top{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:8px 12px;padding:20px 16px 10px}
.top .bk{flex-basis:100%;margin:-10px 0 4px -10px}
.top .tt{min-width:0;flex:1}
.top h1{font-size:34px;line-height:40px;font-weight:700;letter-spacing:-.025em;overflow-wrap:anywhere}
.top p{margin-top:2px;font-size:15px;color:var(--muted)}
.top .r{display:flex;gap:8px;padding-bottom:3px}
.ib{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;color:var(--ink)}
.ib:active{background:var(--tile)}
.av{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--tile);color:var(--ink);font-size:14px;font-weight:500;flex:none}

/* pill button: every small action */
.pb{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:6px;height:36px;padding:0 14px;border-radius:999px;background:var(--tile);font-size:15px;font-weight:500;letter-spacing:0;white-space:nowrap;flex:none}
.pb:active{background:var(--press)}
.pb.dark,.chips [aria-current="page"]{background:var(--ink);color:#fff}
.pb input{position:absolute;inset:0;opacity:0;width:100%}
.chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:4px 16px 8px}
.chips::-webkit-scrollbar{display:none}
.chips .n{font-weight:400;opacity:.6}

/* chips: black for the vehicle, blue tint for what is happening, gray for facts (24 pt high, 4 pt corners in the Uber Driver card) */
.chip{display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 8px;border-radius:4px;background:var(--tile);font-size:14px;line-height:1;font-weight:500;letter-spacing:0;color:var(--muted);white-space:nowrap}
.chip.k{background:var(--ink);color:#fff}
.chip.b{background:var(--blue-bg);color:var(--blue)}
.chip.r{background:var(--neg-bg);color:var(--neg)}
.chiprow{display:flex;flex-wrap:wrap;gap:6px}

/* sections */
.sec{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 16px 8px}
.sec h2,.dayh{font-size:22px;line-height:28px;font-weight:700;letter-spacing:-.02em}
.dayh{padding:22px 16px 6px}
.band{height:8px;background:var(--tile);margin-top:12px}

/* the trip card over the map: blue frame, chips, one large figure, the route, a blue button */
.offer{display:block;padding:14px 14px 14px;border:2px solid var(--blue);border-radius:14px;background:var(--paper);box-shadow:0 4px 16px rgba(0,0,0,.14)}
.offer .big{margin:8px 0 8px;font-size:44px;line-height:48px;font-weight:700;letter-spacing:-.03em}
.offer .tline{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.offer .btn{margin-top:14px}
.offer{position:relative}
/* route: a dot, a line, a square */
.tline{list-style:none;margin:0;padding:0}
.tline li{position:relative;padding:0 0 12px 28px;min-width:0}
.tline li:last-child{padding-bottom:0}
.tline li::before{content:"";position:absolute;left:4px;top:8px;width:8px;height:8px;border-radius:50%;background:var(--ink)}
.tline li:last-child::before{border-radius:0}
.tline li::after{content:"";position:absolute;left:7px;top:14px;bottom:-8px;width:2px;background:var(--ink)}
.tline li:last-child::after{display:none}
.tline .mid::before{display:none}
.tline b{display:block;font-size:18px;line-height:24px;font-weight:600;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tline span{display:block;font-size:14px;line-height:20px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tline.sm li{padding-bottom:4px}
.tline.sm b{font-size:15px;line-height:22px;font-weight:500}
.tline.sm li::before{top:7px}
.tline.sm li::after{top:13px;bottom:-7px}
/* task rows: a quiet label over a bold line, a round arrow (the Uber Driver "remaining steps" list) */
.tasks{display:flex;flex-direction:column;gap:8px;padding:4px 16px 12px}
.task{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:76px;padding:14px 16px;background:var(--tile);text-align:left}
.task:active{background:var(--press)}
.task small{display:block;font-size:14px;line-height:20px;color:var(--ink-2)}
.task b{display:block;font-size:18px;line-height:24px;font-weight:600;letter-spacing:-.01em}
.task i{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--ink);color:#fff;flex:none}
.task i svg{stroke-width:3}
.task.b{background:var(--blue-bg)}
.task.b i{background:var(--blue-press)}
img.pic{display:block}

/* a trip in a list: the time, the chips, who, the route */
.trow{position:relative;display:block;padding:14px 16px 14px}
.trow:active{background:var(--tile)}
.trow+.trow::before{content:"";position:absolute;left:16px;right:16px;top:0;border-top:1px dashed var(--line-2)}
.thumb{display:block;width:56px;height:56px;border-radius:var(--r);background:var(--paper);border:1px solid var(--line);flex:none;overflow:hidden}
.thumb img{width:128%;height:128%;margin:-14%}
.trow .t{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.trow .t time{font-size:22px;line-height:26px;font-weight:700;letter-spacing:-.02em;white-space:nowrap}
.trow .chiprow{justify-content:flex-end;padding-top:1px}
.trow .m{margin:2px 0 8px;font-size:15px;line-height:20px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.blank{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;margin:6px 16px 12px;padding:20px 24px 28px;border:2px solid var(--line);border-radius:var(--r-card);color:var(--muted);font-size:15px}
.blank img{width:96px;height:96px}
.blank b{color:var(--ink);font-weight:700;font-size:20px;letter-spacing:-.015em}


/* schedule week strip */
.week{display:grid;grid-template-columns:repeat(7,1fr);padding:6px 8px 12px}
.week a{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:13px;color:var(--muted)}
.week .d{position:relative;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;font-size:16px;font-weight:500;color:var(--ink)}
.week .today .d{background:var(--tile)}
.week [aria-current="page"] .d{background:var(--ink);color:#fff}
.week .has .d::after{content:"";position:absolute;bottom:5px;width:4px;height:4px;border-radius:50%;background:currentColor}

/* the map, with what floats on it */
.map{position:relative;background:var(--mapbg);overflow:hidden}
.map iframe{display:block;width:100%;height:calc(100% - 16px);border:0;filter:saturate(.55) contrast(.96) brightness(1.03)}
.map.trip{height:min(400px,50dvh)}
.map.trip iframe{height:calc(100% + 44px);margin-top:-60px}
.map.home{height:calc(100dvh - 92px - var(--safe-b));min-height:320px}
.map.home{display:flex;flex-direction:column}
.mapwrap{flex:1;min-height:0;overflow:hidden}
.map.home iframe{height:calc(100% + 60px);margin-top:-60px;pointer-events:none}
.map.home .offer{margin:8px 12px 28px;flex:none}
.map.home .mapwrap:last-child{margin-bottom:16px}
.mapui{position:absolute;left:12px;right:12px;top:calc(12px + var(--safe-t));z-index:2;display:flex;flex-direction:column;gap:12px;pointer-events:none}
.mapui>*,.fbrow>*{pointer-events:auto}
.fbrow{display:flex;justify-content:space-between;pointer-events:none}
.fb{position:relative;display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:var(--paper);box-shadow:var(--float)}
.fb:active{background:var(--tile)}
.badge{position:absolute;top:-4px;right:-4px;display:grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:var(--neg);color:#fff;font-size:13px;font-weight:600;font-style:normal}
/* where to go, in black, as the turn card of the Uber Driver navigation */
.navh{display:flex;align-items:center;gap:16px;width:100%;min-height:88px;padding:14px 18px;border-radius:12px;background:var(--ink);color:#fff;text-align:left;box-shadow:var(--float)}
.navh:active{background:#1f1f1f}
.navh .n{flex:1;min-width:0}
.navh small{display:block;font-size:15px;line-height:20px;font-weight:600;color:#a6a6a6}
.navh b{display:block;font-size:26px;line-height:32px;font-weight:700;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.navh .n span{display:block;font-size:14px;line-height:18px;color:#a6a6a6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* the status bar under the map */
.tsheet{position:relative;margin-top:-16px;padding:8px 16px 4px;border-radius:16px 16px 0 0;background:var(--paper);box-shadow:0 -2px 8px rgba(0,0,0,.08)}
.grab{width:36px;height:4px;border-radius:2px;background:var(--line-2);margin:0 auto 8px}
.status{display:flex;align-items:center;gap:8px;min-height:60px}
.status .c{flex:1;min-width:0;text-align:center}
.status b{display:block;font-size:24px;line-height:30px;font-weight:700;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.status b b{display:inline}
.status .c>span{display:block;font-size:16px;line-height:22px;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pax{display:inline-grid;place-items:center;width:24px;height:24px;margin:0 4px 0 6px;border-radius:50%;background:var(--pos);color:#fff;vertical-align:3px}
.prog{display:flex;gap:4px;margin:12px 0 4px}
.prog span{flex:1;height:4px;border-radius:2px;background:var(--line-2)}
.prog .on{background:var(--blue)}
.lbl{font-size:14px;color:var(--muted)}
.cust{display:flex;align-items:center;gap:12px;padding:14px 0 14px}
.cust .av{width:48px;height:48px;font-size:16px}
.cust .n{flex:1;min-width:0}
.cust h2{font-size:18px;line-height:24px;font-weight:600;letter-spacing:-.01em}
.who{font-size:14px;color:var(--muted)}
.rb{display:flex;gap:8px;flex:none}
.round{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--tile);color:var(--ink)}
.round:active{background:var(--press)}

/* icon rows: a glyph, a quiet label, the value in black */
.irow{position:relative;display:flex;align-items:flex-start;gap:16px;padding:14px 16px}
.irow+.irow::before,.stops+.irow::before,.irow+.stops::before{content:"";position:absolute;left:56px;right:0;top:0;border-top:1px solid var(--line)}
.irow>svg{margin-top:9px}
.irow .n{flex:1;min-width:0}
.irow .k{font-size:14px;color:var(--muted)}
.irow .v{font-size:16px;line-height:22px;font-weight:500;overflow-wrap:anywhere}
.irow .v small,.irow .x{font-size:14px;font-weight:400;color:var(--muted)}
.irow .x{white-space:pre-wrap;color:var(--ink-2);font-size:16px;line-height:22px;margin-top:2px}
.irow .pb{align-self:center}
.irow>img.pic{width:84px;height:84px;margin:-10px -4px -10px 0;align-self:center;flex:none}
.irow.seat{align-items:center}
.irow.seat+.irow.seat::before{left:88px}

/* route: a dot, a line, a square */
.stops{position:relative;list-style:none;margin:0;padding:14px 16px 6px}
.stop{position:relative;padding:0 0 18px 40px}
.stop::before{content:"";position:absolute;left:11px;top:14px;bottom:-6px;width:2px;background:var(--ink)}
.stop:last-child::before{display:none}
.stop .dot{position:absolute;left:7px;top:6px;width:10px;height:10px;border-radius:50%;background:var(--ink)}
.stop:last-child .dot{border-radius:0}
.stop.here .dot{box-shadow:0 0 0 5px var(--line-2)}
.stop .a{font-size:16px;line-height:22px;font-weight:500;overflow-wrap:anywhere}
.stamps{margin-top:2px;font-size:14px;color:var(--muted)}
.stop .acts{display:flex;gap:8px;margin-top:8px}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:52px;padding:0 18px;border-radius:var(--r);font-size:16px;font-weight:500;background:var(--tile);color:var(--ink);white-space:nowrap}
.btn:active{background:var(--press)}
.btn.primary{background:var(--ink);color:#fff}
.btn.primary:active{background:var(--ink-2)}
/* the blue button: plain Uber Driver blue (Bruno tried film grain on 04/12/2026 and turned it down), with a press that
   sinks it and sends a ripple from the finger. .tap is set on pointerdown by app.js so a quick tap still plays it whole. */
.btn.blue{position:relative;overflow:hidden;background:var(--blue);color:#fff;font-weight:600;transition:transform .14s var(--ease),background .14s var(--ease)}
.btn.blue::after{content:"";position:absolute;left:var(--x,50%);top:var(--y,50%);width:28px;height:28px;margin:-14px;border-radius:50%;background:rgba(255,255,255,.5);opacity:0;transform:scale(0);pointer-events:none}
.btn.blue:active{transform:scale(.97) translateY(1px);background:var(--blue-press)}
.btn.blue.tap{animation:press .46s cubic-bezier(.2,.9,.3,1.3)}
.btn.blue.tap::after{animation:ripple .62s ease-out}
@keyframes press{0%{transform:scale(1)}28%{transform:scale(.955) translateY(1px)}100%{transform:scale(1)}}
@keyframes ripple{0%{opacity:.55;transform:scale(0)}100%{opacity:0;transform:scale(20)}}
.btn.block{width:100%}
.btn.ghost{background:none}
.btn.danger{color:var(--neg)}
.btn[disabled]{opacity:.55;pointer-events:none}
.btn.sq{flex:none;width:52px;padding:0}
.btn+.btn.block{margin-top:8px}
/* the bar is the button */
.bar{position:fixed;left:0;right:0;bottom:0;z-index:25;background:var(--paper);border-top:1px solid var(--line);padding:12px calc(16px + var(--safe-r)) calc(12px + var(--safe-b)) calc(16px + var(--safe-l))}
.bar-in{max-width:528px;margin:0 auto;display:flex;gap:8px;align-items:center}
.bar .btn{height:56px;font-size:18px}
.bar .btn.primary,.bar .btn.blue{flex:1}
.bar .btn.sq{width:56px}
#app.full.has-bar{padding-bottom:calc(104px + var(--safe-b))}
body[data-nav="0"] .has-bar~.toast{bottom:calc(96px + var(--safe-b))}
.done-note{flex:1;padding:14px 16px;border-radius:var(--r);background:var(--tile);font-size:15px;color:var(--ink-2)}
.lk{display:inline-flex;align-items:center;gap:6px;font-size:16px;font-weight:500;text-decoration:underline;text-underline-offset:4px}

/* sections of a detail page: no boxes, a gray band between them */
.cards{display:flex;flex-direction:column}
.card{border-top:8px solid var(--tile);padding-bottom:8px}
.cards>.card:first-child{border-top:0}
.card>h3,.removed>summary>h3{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 16px 8px;font-size:22px;line-height:28px;font-weight:700;letter-spacing:-.02em}
.card>h3 .chips{padding:0;overflow:visible}
.card>h3 button,.sub-h button{display:inline-flex;align-items:center;height:36px;padding:0 14px;border-radius:999px;background:var(--tile);font-size:15px;font-weight:500;letter-spacing:0}
.cs{padding:8px 16px 12px}
.sub-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.cs p{font-size:16px}
.kv{display:grid;grid-template-columns:auto 1fr;margin:0;font-size:16px}
.kv dt,.kv dd{padding:12px 0;border-bottom:1px dashed var(--line-2)}
.kv dt{padding-right:16px}
.kv dt:nth-last-of-type(1),.kv dd:last-child{border-bottom:0}
.kv dt{color:var(--muted)}
.kv dd{margin:0;text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;min-width:0}
.kv small{color:var(--muted)}

.log{list-style:none;margin:0;padding:0 16px 8px}
.log li{display:grid;grid-template-columns:104px 1fr;gap:10px;padding:12px 0;border-bottom:1px solid var(--line);font-size:16px}
.log li:last-child{border-bottom:0}
.log .t{color:var(--muted);white-space:nowrap;font-size:14px;line-height:22px}
.log small{display:block;color:var(--muted);font-size:14px;margin-top:2px}
.log a{text-decoration:underline;text-underline-offset:3px}

.person{display:flex;align-items:center;gap:12px;padding:12px 16px}
.person .n{flex:1;min-width:0}
.person .n b{display:block;font-weight:500}
.person .n small{color:var(--muted);font-size:14px}

/* totals like the Earnings screen: one large figure, then rows with dashed rules */
.earn{padding:6px 16px 0}
.earn small{display:block;font-size:15px;color:var(--muted)}
.earn .big{font-size:44px;line-height:52px;font-weight:700;letter-spacing:-.03em}

/* forms: filled fields, a black frame on focus */
.form{display:flex;flex-direction:column;gap:16px}
.field{display:flex;flex-direction:column;gap:6px}
.field>span{font-size:14px;font-weight:500}
.field input,.field select,.field textarea,.stop-in input{height:52px;padding:0 14px;border:2px solid transparent;border-radius:var(--r);background:var(--tile);font-size:16px;color:var(--ink);width:100%}
.field textarea{height:auto;min-height:92px;padding:12px 14px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus,.stop-in input:focus{outline:none;border-color:var(--ink);background:var(--paper)}
.field input::placeholder,.field textarea::placeholder,.stop-in input::placeholder{color:var(--muted)}
.row2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.row3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.stop-in{display:flex;gap:6px;align-items:center}
.hint{font-size:15px;color:var(--muted)}
/* the product form shows only the fields of the pricing picked */
#product-form[data-type="per_person"] .rate,#product-form:not([data-type="per_person"]) .pp,#product-form[data-type="per_hour"] .mi,#product-form[data-type="per_distance"] .hr{display:none}
.linkbox{font-family:var(--mono);font-size:12px;word-break:break-all;background:var(--tile);border-radius:var(--r);padding:10px 12px;color:var(--ink-2)}

/* bottom sheet and full-screen overlay */
.sheet{position:fixed;inset:auto 0 0 0;margin:0 auto;width:100%;max-width:560px;max-height:92dvh;border:0;padding:0;border-radius:16px 16px 0 0;background:var(--paper);color:var(--ink);overflow:auto}
.sheet::backdrop{background:rgba(0,0,0,.5)}
.sheet[open]{animation:up .26s var(--ease)}
.sheet.full{inset:0;max-height:none;height:100dvh;border-radius:0}
.sheet.full[open]{animation:fade .2s var(--ease)}
@keyframes up{from{transform:translateY(30px);opacity:.5}to{transform:none;opacity:1}}
@keyframes fade{from{opacity:0}to{opacity:1}}
.sh-in{padding:8px 0 calc(16px + var(--safe-b))}
.sh-in::before{content:"";display:block;width:36px;height:4px;border-radius:2px;background:var(--line-2);margin:0 auto 6px}
.sh-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px 10px}
.sh-title h2{font-size:22px;line-height:28px;font-weight:700;letter-spacing:-.02em}
.xb{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--tile);flex:none}
.full-hdr{position:sticky;top:0;z-index:2;display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:8px 16px 12px 6px;background:var(--paper)}
.full-hdr h2{padding-left:10px;font-size:34px;line-height:40px;font-weight:700;letter-spacing:-.025em}
.full-body{padding:8px 16px calc(24px + var(--safe-b))}
.sh-body{padding:4px 16px 4px}
.sh-body .sub{color:var(--muted);font-size:15px;margin-bottom:16px;overflow-wrap:anywhere}
.menu{list-style:none;margin:0;padding:4px 0}
.menu a,.menu button{display:flex;align-items:center;gap:16px;width:100%;padding:15px 16px;font-size:16px;font-weight:500;text-align:left;color:var(--ink)}
.menu a:active,.menu button:active{background:var(--tile)}
.menu .danger{color:var(--neg)}
.menu small{margin-left:auto;color:var(--muted);font-size:14px;font-weight:400}
.acct{display:flex;align-items:center;gap:14px;padding:8px 16px 14px}
.acct .av{width:56px;height:56px;font-size:18px}
.acct b{font-size:20px;font-weight:700;letter-spacing:-.015em}
.acct small{display:block;color:var(--muted);font-size:14px}
.mk{display:grid;place-items:center;width:32px;height:32px;border-radius:var(--r);background:var(--ink);color:#fff;font-size:13px;font-weight:500}
.mk.app{width:36px;height:36px;margin:-2px;border-radius:8px;background:none;overflow:hidden;box-shadow:0 0 0 .5px rgba(0,0,0,.14)}
.mk.app img{display:block;width:100%;height:100%}
.check{display:flex;align-items:center;gap:10px;padding:6px 16px 4px;font-size:15px;color:var(--muted)}
.check input{width:20px;height:20px;accent-color:var(--ink)}
.toggle.product{display:flex;gap:8px;margin:4px 16px 8px}
.toggle.product a{flex:1;height:36px;line-height:36px;text-align:center;border-radius:999px;background:var(--tile);font-size:15px;font-weight:500}
.toggle.product a[aria-current="page"]{background:var(--ink);color:#fff}

.toast{position:fixed;left:50%;bottom:calc(20px + var(--safe-b));transform:translate(-50%,12px);opacity:0;pointer-events:none;z-index:60;width:calc(100% - 32px);max-width:520px;text-align:left;background:var(--ink);color:#fff;padding:14px 16px;border-radius:var(--r);font-size:16px;transition:opacity .2s,transform .2s var(--ease)}
.toast.on{opacity:1;transform:translate(-50%,0)}
body[data-nav="0"] .toast{bottom:calc(20px + var(--safe-b))}

/* the door: black, like the splash */
.gate{min-height:100dvh;display:flex;flex-direction:column;justify-content:flex-end;padding:32px 24px calc(48px + var(--safe-b));gap:14px;background:var(--ink);color:#fff}
.gate .brand{margin-bottom:auto;font-size:28px}
.gate h1{font-size:36px;font-weight:700;letter-spacing:-.03em;line-height:1.1}
.gate p{color:var(--faint);font-size:17px}
.gate .btn.primary{margin-top:12px;background:#fff;color:var(--ink)}
.brand{display:inline-flex;align-items:baseline;font-size:24px;font-weight:500;line-height:1;letter-spacing:-.04em}
.spin{display:inline-block;width:18px;height:18px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:sp .7s linear infinite}
@keyframes sp{to{transform:rotate(360deg)}}
.skel{margin:12px 16px;height:88px;border-radius:var(--r-card);background:linear-gradient(90deg,var(--tile) 0,#fafafa 50%,var(--tile) 100%);background-size:200% 100%;animation:sk 1.2s linear infinite}
@keyframes sk{to{background-position:-200% 0}}
.removed summary{list-style:none;cursor:pointer}.removed summary::-webkit-details-marker{display:none}.removed .person{opacity:.55}

@media (min-width:600px){#app{border-left:1px solid var(--line);border-right:1px solid var(--line)}}
/* iPhone Duo open, and anything else this wide. Safari 27.1 gives the inner display 669 px in portrait and 951 in landscape
   (webkit.org/blog/18486); by width, never by device. The map keeps the left half and stays put, the trip reads and scrolls on
   the right, and the step button sits under the right half only. Halves, so the split falls on the hinge. */
@media (min-width:640px){
  #app{max-width:640px}
  #app:has(>.map){max-width:none;border:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
  #app:has(>.map)>.map{grid-column:1;grid-row:1/span 4;position:sticky;top:0;height:100dvh;min-height:0}
  #app:has(>.map)>:not(.map,.bar){grid-column:2;min-width:0}
  #app:has(>.map)>.tsheet{margin-top:0;padding-top:16px;border-radius:0;box-shadow:none;border-left:1px solid var(--line)}
  #app:has(>.map)>.cards{border-left:1px solid var(--line)}
  #app:has(>.map) .grab{display:none}
  #app:has(>.map) .bar{left:50%;border-left:1px solid var(--line)}
  #app:has(>.map)~.toast{left:75%;max-width:calc(50% - 32px)}
  .map.trip iframe,.map.home iframe{height:calc(100% + 140px);margin-top:-140px}
  .map.home .mapwrap:last-child{margin-bottom:0}
  .map.home .offer{margin-bottom:12px}
}
/* the Duo open in portrait: each half is 334 px, narrower than a phone, so the big figures step down */
@media (min-width:640px) and (max-width:780px){
  .status b{font-size:20px;line-height:26px}
  .offer .big{font-size:38px;line-height:44px}
  .navh b{font-size:22px;line-height:28px}
}
/* the Duo closed and lying down is 594 x 368: the black card and the map shrink so the round buttons still fit on the map */
@media (max-height:440px) and (max-width:639px){
  .map.trip{height:200px}
  .navh{min-height:60px;padding:8px 14px}
  .navh b{font-size:20px;line-height:24px}
}
/* Fold-aware, as a progressive extra: Viewport Segments is a developer preview behind a Safari flag on the Duo, so nothing depends on it. */
@media (horizontal-viewport-segments:2){
  #app:has(>.map){grid-template-columns:env(viewport-segment-width 0 0,1fr) env(viewport-segment-width 1 0,1fr);column-gap:calc(env(viewport-segment-left 1 0,0px) - env(viewport-segment-right 0 0,0px))}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}.btn.blue:active{transform:none}}
.tsheet+.cards>.card:first-child{border-top:8px solid var(--tile)}

/* ---------- Office layout: owner and manager on a tablet or a desktop ----------
   Follows Uber's web app after sign-in (the Ride, Activity and Your Trip pages, measured on 05/12/2026 from Mobbin at 1440):
   a 64 px white bar with the wordmark, tabs with a black underline, gray pills and the account on the right; under it a
   bordered panel on the left (310 of 1440), the content in the middle and the map as a rounded rectangle on the right.
   Lists read as rows of a table, sections become bordered cards, sheets become centered dialogs.
   Only when body[data-staff="1"] (set by app.js): drivers keep the phone layout at any width. */
.deskbar,.crumbs,.soon{display:none}
@media (min-width:768px){
  body[data-staff="1"]{--bar:64px;--pad:24px}
  body[data-staff="1"] .deskbar{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:20px;height:var(--bar);padding:0 var(--pad);background:var(--paper);box-shadow:0 1px 0 var(--line),0 2px 6px rgba(0,0,0,.04)}
  .deskbar nav{display:flex;align-self:stretch;min-width:0;overflow-x:auto;scrollbar-width:none}
  .deskbar nav::-webkit-scrollbar{display:none}
  .deskbar nav a{position:relative;display:flex;align-items:center;gap:8px;padding:0 10px;font-size:14px;font-weight:500;white-space:nowrap}
  .deskbar nav a[aria-current="page"]::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--ink)}
  .deskbar nav svg{display:none} /* tablet: words only, the six tabs have to fit */
  .deskbar .r{margin-left:auto;display:flex;align-items:center;gap:8px;flex:none}
  .deskbar .pb{font-size:14px}
  .deskbar .imp{display:none}
  .acctb{display:flex;align-items:center;gap:4px;margin-left:4px}
  .acctb .av{width:36px;height:36px;font-size:13px}
  @media (hover:hover){.deskbar nav a:hover,.trow:hover,.menu a:hover,.menu button:hover{background:#f6f6f6}}

  /* pages without a map: one wide column, title on the left, no back arrow (the tabs are the way back) */
  body[data-staff="1"] #app{max-width:1088px;min-height:calc(100dvh - var(--bar));border:0;padding:16px calc(var(--pad) - 16px) 64px}
  body[data-staff="1"] .top .bk,body[data-staff="1"] .top [data-act="new"]{display:none}
  body[data-staff="1"] .week{max-width:560px}
  body[data-staff="1"] .earn+.cs{max-width:420px}
  /* a trip in a list becomes a row: time, who, route, chips */
  body[data-staff="1"] #app:not(:has(>.map)) .trow{display:grid;grid-template-columns:104px minmax(0,1fr) auto;gap:0 20px;align-items:start;padding:16px}
  body[data-staff="1"] #app:not(:has(>.map)) .trow .t{display:contents}
  body[data-staff="1"] #app:not(:has(>.map)) .trow .m{grid-column:2;grid-row:1;margin:3px 0 0}
  body[data-staff="1"] #app:not(:has(>.map)) .trow .tline{grid-column:2;grid-row:2;margin-top:6px}
  body[data-staff="1"] #app:not(:has(>.map)) .trow .chiprow{grid-column:3;grid-row:1}
  /* sections as bordered cards (Uber's Activity page), side by side where they fit */
  body[data-staff="1"] #app .cards{gap:16px}
  body[data-staff="1"] #app .cards>.card{border:1px solid var(--line);border-radius:var(--r-card);overflow:hidden}
  body[data-staff="1"] #app:not(:has(>.map)) .cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));align-items:start;padding:8px 16px}
  body[data-staff="1"] #app .card .blank{border:0;margin-bottom:0}

  /* pages with a map (Today and a trip): what to read on the left, the map on the right */
  body[data-staff="1"] #app:has(>.map){max-width:none;display:grid;grid-template-columns:380px minmax(0,1fr);grid-template-rows:auto 1fr;gap:16px var(--pad);align-items:start;padding:var(--pad)}
  body[data-staff="1"] #app:has(>.bar){grid-template-rows:auto auto 1fr}
  body[data-staff="1"] #app:has(>.map)>.map{grid-column:2;grid-row:1/-1;position:sticky;top:calc(var(--bar) + var(--pad));height:calc(100dvh - var(--bar) - 2*var(--pad));min-height:420px;border-radius:var(--r-card)}
  body[data-staff="1"] #app:has(>.map)>:not(.map){grid-column:1;min-width:0}
  body[data-staff="1"] #app:has(>.map)>.tsheet{grid-row:1;margin:0;padding:16px;border:1px solid var(--line);border-radius:var(--r-card);box-shadow:none}
  body[data-staff="1"] #app:has(>.map)>.cards{grid-row:2;border:0}
  body[data-staff="1"] #app:has(>.bar)>.cards{grid-row:3}
  body[data-staff="1"] #app:has(>.map) .bar{position:static;grid-row:2;padding:0;border:0}
  body[data-staff="1"] #app:has(>.map)~.toast{left:50%;max-width:520px;bottom:24px}
  body[data-staff="1"] .map .fbrow{display:none} /* the bar has the menu and New trip; the trip has Back and Options as text */
  body[data-staff="1"] .map.home .offer{position:absolute;left:16px;bottom:16px;z-index:2;width:min(380px,calc(100% - 32px));margin:0}
  body[data-staff="1"] .map.trip .navh{max-width:440px}
  body[data-staff="1"] .status>.ib{display:none}
  body[data-staff="1"] .status .c{text-align:left}
  body[data-staff="1"] .crumbs{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
  body[data-staff="1"] .crumbs a{display:inline-flex;align-items:center;gap:8px;height:36px;font-size:14px;font-weight:500}
  body[data-staff="1"] .soon{display:block;border-top:1px solid var(--line);margin-top:8px}

  /* sheets as centered dialogs (Uber's "Switch rider") */
  body[data-staff="1"] .sheet,body[data-staff="1"] .sheet.full{inset:0;margin:auto;width:calc(100% - 48px);height:fit-content;max-height:min(88dvh,860px);border-radius:16px}
  body[data-staff="1"] .sheet{max-width:480px}
  body[data-staff="1"] .sheet.full{max-width:640px}
  body[data-staff="1"] .sheet[open]{animation:fade .2s var(--ease)}
  body[data-staff="1"] .sh-in::before{display:none}
}
/* desktop: three columns, as Uber's Ride page once a list is on screen */
@media (min-width:1100px){
  body[data-staff="1"]{--pad:32px}
  .deskbar nav svg{display:block}
  .deskbar nav a{padding:0 12px}
  /* a trip in a list: route beside who, chips in a fixed last column so every row lines up */
  body[data-staff="1"] #app:not(:has(>.map)) .trow{grid-template-columns:104px minmax(0,1.1fr) minmax(0,1.3fr) 200px}
  body[data-staff="1"] #app:not(:has(>.map)) .trow .tline{grid-column:3;grid-row:1;margin-top:2px}
  body[data-staff="1"] #app:not(:has(>.map)) .trow .chiprow{grid-column:4}
  .deskbar .imp{display:inline-flex}
  body[data-staff="1"] #app:has(>.map){grid-template-columns:340px minmax(0,1fr) minmax(0,1.1fr)}
  body[data-staff="1"] #app:has(>.map)>.map{grid-column:3}
  /* a trip: status and the step on the left, its sections in the middle */
  body[data-staff="1"] #app:has(>.bar){grid-template-rows:auto 1fr}
  body[data-staff="1"] #app:has(>.bar)>.cards{grid-column:2;grid-row:1/-1}
  /* Today: status, to-dos and shortcuts on the left, the day's trips in the middle */
  body[data-staff="1"] #app:has(>.map.home){grid-template-rows:auto auto auto 1fr}
  body[data-staff="1"] #app:has(>.map.home)>.cards{display:contents}
  body[data-staff="1"] #app .card.todo,body[data-staff="1"] #app .card.office{grid-column:1}
  body[data-staff="1"] #app .card.today{grid-column:2;grid-row:1/-1}
}
