/* Owner applicants, the offer and the driver's offer (offer BUILD-SPEC round 2, founder Oct 10; page tops PT1 to PT5). Linked from
   app/index.html after post.css. Tokens only (app.css), so dark mode follows. Reuses: part2.css (.phead, .pbk, .pstat, .refline, .rel,
   .op-price, the Price details sheet), route.css (.rp, .rp-*, .ap-*), walk.css (.wa), routes.css (.rh-tl, .rh-*), post.css (.om-note,
   .id-*, P.idStep), more-inbox.css (.ib-clk), app.css (.btn, .chip, .tag, .checks, .confirm, .pav).
   1 the clock line   2 the owner's route page   3 the application page and its bar   4 See all drivers   5 the driver's offer page
   6 Offer accepted (checkout style)   7 the apply flow's payouts step   8 laptops   9 short phones */

/* ---------- 1. the clock line (Pending, Pending owner payment, the hours left) ---------- */
.clk{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600;color:var(--ot)}
.clk svg{flex:none;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ---------- 2. the owner's route page (#/route/:id) ---------- */
.or{padding:4px 16px 28px}
.or .pstat{margin-bottom:6px}
.or-h2{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:22px 0 10px;font-size:20px}
.or-h2 .schip{font-family:'Instrument Sans',sans-serif}
.or-flash{display:flex;align-items:center;gap:10px;justify-content:space-between;padding:8px 10px 8px 14px;margin:6px 0 12px;border-radius:var(--r-md);
  background:var(--ink);color:var(--bg);font-size:15px;line-height:1.35}
.or-flash .linkbtn{color:var(--bg);flex:none;min-height:44px;padding:0 6px}
/* the applicant cards: up to 3 on the route page, then "See all" */
.apc-l{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.apc-l>li{min-width:0}
.apc{position:relative;display:flex;gap:12px;align-items:flex-start;padding:14px 12px 12px 14px;border:1px solid var(--line);border-radius:var(--r-lg);
  background:var(--card);color:var(--ink);text-decoration:none;-webkit-tap-highlight-color:transparent}
.apc:hover{border-color:var(--tint-line)}
.apc:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.apc.is-pend{border:1.5px solid var(--ob);box-shadow:0 0 0 3px var(--tint)}
.apc>.pav{flex:none;width:52px;height:52px;font-size:21px;background-color:var(--tint);color:var(--ot)}
.apc-m{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.apc-top{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.apc-top b{font:600 19px/1.15 'Clash Grotesk','Instrument Sans',sans-serif}
.apc-top .rel{margin-left:auto}
.apc-top .rel.pay{margin-left:0}   /* the long chip sits under the name, not pushed right */
.apc-facts{display:flex;align-items:center;flex-wrap:wrap;gap:2px 6px;font-size:14px;color:var(--sub)}
.apc-facts .idv{display:inline-flex;align-items:center;gap:4px;color:var(--good-d);font-weight:700}
.apc-facts .idv svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.apc-facts .st{color:var(--ink);font-weight:600}
.apc-rt{white-space:nowrap}
.apc .checks{margin:2px 0 0}
.apc .checks li{font-size:14.5px}
.apc-note{display:block;font-size:14.5px;line-height:1.35;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-style:italic}
.apc-when{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--sub)}
.apc-pend{display:flex;align-items:center;gap:6px;margin-top:4px;padding:7px 10px;border-radius:var(--r-md);background:var(--tint);font-size:14px;line-height:1.35;color:var(--ink)}
.apc-pend svg{flex:none;width:17px;height:17px;fill:none;stroke:var(--ot);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.apc-go{flex:none;align-self:center;width:22px;height:22px;color:var(--sub)}
.apc-go svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.apc-more{display:flex;align-items:center;justify-content:center;min-height:48px;margin-top:10px;border:1.5px solid var(--ink);border-radius:var(--r-md);
  font-weight:700;font-size:16px;color:var(--ink);text-decoration:none;background:var(--card)}
.apc-one{margin:8px 2px 0;font-size:13.5px;line-height:1.4;color:var(--sub)}
.apc-none{margin:0;padding:16px 14px;border:1.5px dashed var(--line);border-radius:var(--r-lg);color:var(--sub);font-size:15px;text-align:center}
.or .pushask{margin-top:16px}
/* 3.4.3 (items 9, 11): the Withdraw link under the cards; the short trip summary and the "All route details" fold */
.apc-wd{margin:2px 0 0}.apc-wd .linkbtn{min-height:44px;padding:0 2px;font-size:15px}.apc-wd .confirm{margin-top:6px}
.or-sum{margin:0 2px 10px;font-size:15.5px;line-height:1.45;overflow-wrap:anywhere}
.or-all>summary{font-size:16px;min-height:48px}.or-all .or-rows{border:0;border-top:1px solid var(--line);border-radius:0 0 var(--r-lg) var(--r-lg)}
/* "Your route": the plain facts, one row each */
.or-rows{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--card)}
.or-rows li{display:flex;align-items:center;gap:10px;padding:10px 12px 10px 14px;border-top:1px solid var(--line);min-height:52px}
.or-rows li:first-child{border-top:0}
.or-rows .grow{flex:1;min-width:0}
.or-rows .k{display:block;font-size:12.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--sub)}
.or-rows .v{display:block;font-size:15.5px;line-height:1.35;overflow-wrap:anywhere}
.or-rows .s{display:block;margin-top:2px;font-size:13.5px;line-height:1.4;color:var(--sub)}
.or-rows .v b{font:600 19px/1.2 'Clash Grotesk','Instrument Sans',sans-serif}
.or-rows .linkbtn{flex:none;font-size:14.5px;min-height:44px;padding:0 4px}
.or-lock{display:flex;align-items:flex-start;gap:8px;margin:8px 2px 0;font-size:14px;line-height:1.4;color:var(--sub)}
.or-lock svg{flex:none;width:17px;height:17px;margin-top:1px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.or-acts{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.or-acts .btn{flex:1 1 150px}
.or-acts .confirm{flex:1 1 100%;margin:0}
.or-set{margin-top:10px;padding:12px 14px;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--card);display:grid;gap:8px}
.or-set[hidden]{display:none}
.or-set .confirm{margin:0}
/* Pending owner payment: the hand-off to today's pay step */
.or-pay{margin-top:12px;border:1.5px solid var(--ob);border-radius:var(--r-lg);background:var(--card);padding:16px 14px 14px;box-shadow:0 0 0 3px var(--tint)}
.or-pay-top{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap}
.or-pay h2{margin:10px 0 4px;font-size:22px}
.or-pay p{font-size:15px;line-height:1.45}
.or-pay .op-price{margin-top:8px}
.or-pay .btn.bigger{display:flex;width:100%;margin-top:10px}
.or-pay-fine{margin-top:10px;font-size:13.5px!important;line-height:1.4;color:var(--sub)}

/* ---------- 3. the application page (#/room/:app, the owner) and its bar ---------- */
body[data-screen=app]{padding-bottom:calc(132px + env(safe-area-inset-bottom))}
.ax{padding:4px 16px 24px}
.ax-who{display:flex;align-items:center;gap:16px;padding:6px 0 14px}
.ax-who .rp-ph{width:84px;height:84px}
.ax-who .rp-ph .pav{width:84px;height:84px;font-size:32px}
.ax-who .rp-who{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.ax-who .rp-stats{display:block}
.ax-who .ax-big{font-size:16px;color:var(--ink);font-weight:600}
.ax-mb{margin-top:8px}
.ax-sec{padding:14px 0;border-top:1px solid var(--line)}
.ax-sec>h2{font-size:18px;margin:0 0 8px}
.ax-about{font-size:15.5px;line-height:1.45;padding-bottom:14px}
.ax-k{display:block;font-size:12.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--sub);margin-bottom:2px}
.ax .checks li{font-size:15.5px}
.ax-note{margin:0;padding:10px 12px;border-left:3px solid var(--orange);border-radius:0 var(--r-md) var(--r-md) 0;background:var(--card);font-size:16px;line-height:1.45;overflow-wrap:anywhere}
.ax-note small{display:block;margin-top:4px;font-size:13px;color:var(--sub)}
.ax-status{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;margin:0 0 6px;border-radius:var(--r-lg);background:var(--tint);border:1px solid var(--tint-line)}
.ax-status svg{flex:none;width:22px;height:22px;margin-top:1px;fill:none;stroke:var(--ot);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ax-status.ok{background:var(--good-bg);border-color:transparent}
.ax-status.ok svg{stroke:var(--good-d)}
.ax-status b{display:block;font-size:16.5px}
.ax-status p{font-size:14.5px;line-height:1.4;margin-top:2px}
/* the bar at the bottom: the one action, the quiet second one. Its confirm opens inside the bar, over a dimmed page */
.xbar{position:fixed;left:0;right:0;bottom:0;z-index:25;padding:10px 16px calc(8px + env(safe-area-inset-bottom));background:var(--card);
  border-top:1px solid var(--line);box-shadow:0 -2px 10px rgba(20,20,20,.06)}
.xbar-in{max-width:640px;margin:0 auto}
.xbar .btn.bigger{display:flex;width:100%;min-height:54px}
.xbar-alt{display:flex;justify-content:center;gap:18px;margin-top:2px}
.xbar-alt .linkbtn{min-height:44px;font-size:15px}
.xbar-why{margin:6px 2px 0;text-align:center;color:var(--sub)}
.xbar.has-cf .xbar-cf>.btn,.xbar.has-cf .xbar-alt>.linkbtn,.xbar.has-cf .xbar-alt>.btn,.xbar.has-cf .xbar-why,.xbar.has-cf .xbar-in>.btn{display:none}
.xbar.has-cf .xbar-alt{display:block}
.xbar .confirm{margin:0 0 2px;padding:14px 14px 12px}
.xbar .confirm>p:first-child,.or-acts .confirm>p:first-child,.of-buy .confirm>p:first-child{font:600 19px/1.25 'Clash Grotesk','Instrument Sans',sans-serif;margin-bottom:6px}
.cf-l{list-style:none;margin:0 0 8px;padding:0;display:grid;gap:5px}
.cf-l li{position:relative;padding-left:18px;font-size:15px;line-height:1.4}
.cf-l li::before{content:"";position:absolute;left:3px;top:.55em;width:7px;height:7px;border-radius:50%;background:var(--ot)}
.confirm .op-price{margin:0 0 6px}
.confirm .cf-t{font-weight:400;font-size:15px;line-height:1.4;margin:0 0 10px;font-family:'Instrument Sans',sans-serif}
.xscrim{position:fixed;inset:0;z-index:24;background:rgba(20,16,12,.32)}

/* ---------- 4. See all drivers (#/route/:id/drivers) ---------- */
.aside-fold{margin-top:16px;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--card)}
.aside-fold>summary{display:flex;align-items:center;justify-content:space-between;min-height:52px;padding:0 14px;font-weight:700;cursor:pointer;list-style:none}
.aside-fold>summary::-webkit-details-marker{display:none}
.aside-fold>summary svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
.aside-fold[open]>summary svg{transform:rotate(180deg)}
.aside-row{display:flex;align-items:center;gap:12px;padding:10px 14px 12px;border-top:1px solid var(--line);flex-wrap:wrap}
.aside-row .pav{width:40px;height:40px;font-size:17px;background-color:var(--wait);color:var(--sub)}
.aside-row .grow{flex:1;min-width:0}
.aside-row small{display:block;color:var(--sub);font-size:13px}

/* ---------- 5. the driver's offer page (#/offer/:connection) ---------- */
body[data-screen=offer]{padding-bottom:calc(92px + env(safe-area-inset-bottom))}
.of-title{margin:6px 0 10px;font-size:clamp(28px,7.6vw,40px);line-height:1.08}
.of .rp-sec.first{padding-top:4px}
.of-clk{margin:10px 0 0}
/* 0220 (3.4.2): "Ride to your next stop: $25 (included in your pay)." under the walk-away (offer.js rideHtml) */
.of-ride{margin:10px 0 0;font-size:15px;line-height:1.4;color:var(--sub)}
.of-side .of-ride{margin:8px 0 0;font-size:14px}
.oa-wa .of-ride{margin:8px 0 0}
.of-car{display:flex;align-items:center;gap:10px;margin-top:12px;font-size:16px}
.of-car svg{flex:none;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.of-fine{margin-top:8px;font-size:14px;line-height:1.4;color:var(--sub)}
.of-who{display:flex;align-items:center;gap:14px}
.of-who .rp-ph{width:64px;height:64px}
.of-who .rp-ph .pav{width:64px;height:64px;font-size:26px}
.of-who .grow{flex:1;min-width:0}
.of-who .rp-name{font:600 20px/1.15 'Clash Grotesk','Instrument Sans',sans-serif}
.of-who .btn{flex:none}
.of-agreed{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:14.5px;color:var(--good-d);font-weight:600}
.of-agreed svg{flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.of-rare{margin:0 0 8px;font-size:14px;line-height:1.4;color:var(--ink)}
/* the bar: Pass (ghost) and the one orange Accept */
.of-buy{position:fixed;left:0;right:0;bottom:0;z-index:25;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:var(--card);
  border-top:1px solid var(--line);box-shadow:0 -2px 10px rgba(20,20,20,.06)}
.of-buy-in{display:flex;gap:10px;max-width:640px;margin:0 auto}
.of-buy .btn{min-height:54px;font-size:17px}
.of-buy .btn.ghost{flex:0 0 112px;padding:0 10px}
.of-buy .btn:not(.ghost){flex:1}
.of-buy.has-cf .of-buy-in{display:none}
.of-buy .confirm{margin:0 auto;max-width:640px;padding:14px}
.of-side{display:none}

/* ---------- 6. Offer accepted: the checkout-style confirmation (founder Oct 10) ---------- */
body[data-screen=offer-done]{padding-bottom:24px}
.oa-in{max-width:560px;margin:0 auto;padding:0 0 12px}
.oa-in>.rp-bar{margin-left:0;margin-right:0}
.oa-done{padding:4px 0 14px}
.oa-ok{display:inline-flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;background:var(--good-bg);color:var(--good-d);margin-bottom:8px}
.oa-ok svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.oa-done h1{margin:0;font-size:clamp(28px,7.6vw,36px);line-height:1.1}
.oa-lead{margin:6px 0 0;font-size:16.5px;color:var(--ink)}
.oa-sum{border:1px solid var(--line);border-radius:var(--r-lg);background:var(--card);padding:12px 14px}
.oa-st{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.oa-dl{margin:0;display:grid;gap:0}
.oa-dl>div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line)}
.oa-dl dt{color:var(--sub);font-size:14.5px;flex:none}
.oa-dl dd{margin:0;font-weight:600;font-size:15px;text-align:right;min-width:0;overflow-wrap:anywhere}
.oa-wa{padding-top:10px}
.oa-h{font-size:19px;margin:20px 0 8px}
.oa-next{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.oa-next li{display:flex;gap:12px;align-items:flex-start}
.oa-next .n{flex:none;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:var(--wait);font-weight:700;font-size:14px}
.oa-next li:first-child .n{background:var(--tint);color:var(--ot)}
.oa-next .m{min-width:0;font-size:15.5px;line-height:1.4}
.oa-next b{display:block;font-weight:600}
.oa-next .s{display:block;color:var(--sub);font-size:14px}
.oa-acts{display:grid;gap:10px;margin-top:18px}
.oa-acts .btn{display:flex;width:100%}
.oa-cancel{display:flex;flex-direction:column;align-items:center;margin-top:14px}
.oa-cancel .linkbtn{min-height:44px;font-size:14.5px;color:var(--sub)}
.oa-cancel .confirm{align-self:stretch;margin-top:6px}

/* ---------- 7. the apply flow's payouts step (decision 12): the Stripe card and its three points ---------- */
.ac-stripe{display:flex;gap:12px;align-items:flex-start;padding:14px;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--card)}
.ac-stripe .grow{flex:1;min-width:0}
.ac-stripe b{display:block;font-size:16.5px}
.ac-stripe span{display:block;font-size:14.5px;line-height:1.4;color:var(--sub);margin-top:2px}
.ac-stripe svg{flex:none;width:26px;height:26px;fill:none;stroke:var(--ink);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ac-pts{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:8px}
.ac-pts li{display:flex;gap:10px;font-size:15px;line-height:1.4}
.ac-pts svg{flex:none;width:20px;height:20px;margin-top:1px;fill:none;stroke:var(--good-d);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
/* the step bar at 320 wide: the two end words go so "Step 3 of 6" always reads in full (the bar's ends still show where it starts and ends) */
@media (max-width:359px){.stp[data-flow=apply] .stb-lab>span:not(.mid){visibility:hidden}}

/* ---------- 8. laptops ---------- */
@media (min-width:900px){
  body[data-screen=app]{padding-bottom:24px}
  .xbar{position:static;box-shadow:none;border:1px solid var(--line);border-radius:var(--r-lg);margin:16px 0 0;padding:14px}
  .xscrim{display:none}
  .ax-wrap{max-width:640px;margin:0 auto}
  body[data-screen=offer]{padding-bottom:24px}
  .of-buy,.of-buy.has-cf{display:none}
  .of-side{display:block;position:sticky;top:112px;margin-top:8px}
  .of-side .card{padding:20px}
  .of-side .btn{width:100%;margin-top:12px}
  .of-side .confirm{margin-top:12px;padding:12px}
  .of-side .confirm>p:first-child{font:600 18px/1.25 'Clash Grotesk','Instrument Sans',sans-serif;margin-bottom:6px}
  .of-side .confirm .row{display:flex;flex-wrap:nowrap;gap:8px;margin-top:4px}
  .of-side .confirm .row .btn{margin-top:0;width:auto;flex:1 1 auto}
  .of-side .confirm .row .btn.ghost{flex:0 0 auto}
  .of-side .confirm .cf-l li,.of-side .confirm .cf-t{font-size:14.5px}
  .of-side .of-sdates{margin-top:12px;padding-top:12px;border-top:1px solid var(--line);font-size:15px}
  .of-side .of-sdates b{display:block}
  .oa-acts{grid-template-columns:1fr 1fr}
}

/* ---------- 9. (3.5.8) short phones: the rules that shrank the apply step's Stripe box are gone (steps.css section 5) ---------- */
@media (prefers-reduced-motion:reduce){.aside-fold>summary svg{transition:none}}
