/* 3L Deliver · driver app (#/driver…). Graphite instrument, 56 px rows, glove-sized targets.
   Desktop: the app sits in the handset, centred on a matte surface, with a quiet job-context panel.
   ≤620 px: the app IS the phone (full screen, no footer). Yellow only on the hold-to-send key. */

/* ---------- stage (desktop) ---------- */
.dv-stage{position:relative;min-height:calc(100vh - var(--top-h));padding:24px var(--gut) 48px;
  background:radial-gradient(70% 60% at 50% 0%,var(--stage-hi) 0%,transparent 70%),linear-gradient(180deg,var(--page) 0%,var(--page) 30%,var(--stage-lo) 100%)}
.dv-stage::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:.3;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E")}
.dv-grid{position:relative;z-index:1;max-width:1240px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) 362px minmax(0,1fr);column-gap:56px;align-items:start}
.dv-hs{grid-column:2;grid-row:1}
.dv-side{grid-column:1;grid-row:1;justify-self:end;width:min(320px,100%);margin-top:56px}
body[data-area="driver"] .foot{padding-top:32px}

/* quiet side panel: job context only (light, follows the theme) */
.dv-side-in{background:var(--card);border-radius:var(--r-xl);box-shadow:inset 0 0 0 1px var(--line);padding:20px}
.dv-who{display:flex;gap:12px;align-items:center}
.dv-who-r{display:grid;place-items:center;width:20px;height:20px;color:var(--ink);flex:none}
.dv-who-r svg{display:block}
.dv-who b{display:block;font-size:15px;font-weight:620;letter-spacing:-.01em}
.dv-who span{display:block;font-size:12.5px;color:var(--ink-3);line-height:1.4}
.dv-who .mono{display:inline;color:var(--ink-2)}
.dv-sj{margin-top:16px;padding-top:16px;border-top:1px solid var(--line-2)}
.dv-sj-h{display:flex;justify-content:space-between;align-items:center;gap:10px}
.dv-sj-h .mono{font-size:13px;color:var(--ink)}
.dv-sj-c{font-size:13.5px;color:var(--ink-2);margin:4px 0 14px}
.dv-sj .kv{font-size:13px;gap:5px 14px}
.dv-sj-t{margin-top:18px}
.dv-sj-t .stl li{font-size:13.5px;padding-bottom:12px}
.dv-sj-n{font-size:12.5px;color:var(--ink-3);margin-top:14px}
.dv-sl{list-style:none;display:flex;flex-direction:column;gap:10px}
.dv-sl li{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;font-size:13px}
.dv-sl .mono{color:var(--ink)}
.dv-sl-r{color:var(--ink-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dv-sl .st{grid-column:1 / -1}

/* ---------- the app (graphite, both themes) ---------- */
.dv .hs-body{scroll-behavior:auto}
.dv-app{flex:1 0 auto;display:flex;flex-direction:column;color:var(--g-ink);font-size:14px}
.dv-app a{color:inherit}
.dv-top{display:flex;align-items:center;gap:6px;min-height:56px;padding:4px 12px 0 16px}
.dv-back{width:48px;height:48px;margin-left:-10px;border-radius:14px;display:grid;place-items:center;color:var(--g-ink);flex:none;text-decoration:none;transition:background-color var(--t) ease-out}
.dv-back svg{width:22px;height:22px}
@media (hover:hover){.dv-back:hover{background:var(--g2)}}
.dv-kick{flex:1;min-width:0;font-size:12.5px;font-weight:520;color:var(--g-ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dv-kick .mono,.dv-app .mono{color:var(--g-ink)}
.dv-net{display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 11px;border-radius:16px;background:var(--g2);font-size:12px;font-weight:560;color:var(--g-ink-2);text-decoration:none;white-space:nowrap;flex:none}
.dv-net .led{width:8px;height:8px;margin:0;display:block}
.dv-net.is-off{color:#F0A564}
.dv-net.is-off .led.off{box-shadow:inset 0 0 0 1.5px #F0A564}
.dv-body{flex:1 0 auto;display:flex;flex-direction:column;gap:10px;padding:2px 16px 20px}
.dv-h{padding:2px 2px 4px}
.dv-h h1{font-size:23px;line-height:1.12;font-weight:620;letter-spacing:-.02em}
.dv-h p{font-size:13.5px;color:var(--g-ink-2);margin-top:4px;line-height:1.4}
.dv-lbl{font-size:12.5px;font-weight:560;color:var(--g-ink-2);margin:10px 2px -2px}
.dv-hint{font-size:12.5px;color:var(--g-ink-2);line-height:1.45;padding:2px 2px 0}
.dv-ring{flex:none;display:block}

/* buttons on graphite (light ink = primary; yellow stays on the hold key) */
.dv-btn{height:56px;width:100%;border:0;border-radius:16px;background:var(--g-ink);color:var(--g1);font-family:var(--font);font-size:16px;font-weight:620;letter-spacing:-.01em;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 16px;text-decoration:none;cursor:pointer;white-space:nowrap;
  transition:transform var(--t-fast) ease-out,background-color var(--t) ease-out}
.dv-app a.dv-btn{color:var(--g1)}
.dv-btn svg{width:18px;height:18px}
.dv-btn:active{transform:scale(.97)}
.dv-btn.ghost,.dv-app a.dv-btn.ghost{background:var(--g2);color:var(--g-ink);box-shadow:inset 0 0 0 1px var(--g4)}
.dv-btn.bad{background:var(--g2);color:#F5A492;box-shadow:inset 0 0 0 1.5px rgba(240,140,121,.6)}
.dv-btn.sm{height:48px;width:auto;flex:none;font-size:14px;border-radius:12px;padding:0 14px}
.dv-btn[disabled]{background:var(--g2);color:var(--g-ink-3);box-shadow:none;cursor:not-allowed;transform:none}
.dv-btn:focus-visible,.dv-row:focus-visible,.dv-back:focus-visible,.dv-net:focus-visible,.dv-nav:focus-visible,.dv-nextc:focus-visible,.dv-outs button:focus-visible,.dv-reasons button:focus-visible,.dv-chip:focus-visible,.dv-switch:focus-visible,.dv-stepper button:focus-visible,.dv-pad-clr:focus-visible{outline:none;box-shadow:0 0 0 2px var(--g1),0 0 0 4px var(--g-ink-2)}
@media (hover:hover){.dv-btn:not([disabled]):hover{background:#FFFFFF}.dv-btn.ghost:not([disabled]):hover{background:var(--g3)}.dv-btn.bad:not([disabled]):hover{background:#3A2723}}
.dv-sq{width:56px;flex:none;padding:0}
.dv-wide{margin-top:4px}

/* bottom bar: ≤80 px tall (the widget pill sits above it on phones) */
.dv-foot{position:sticky;bottom:0;z-index:5;margin-top:auto;display:flex;gap:8px;padding:12px 16px 12px;background:var(--g1)}
.dv-foot::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:32px;background:linear-gradient(180deg,rgba(26,29,32,0),var(--g1));pointer-events:none}
.dv-keys::before{display:none}
.dv-foot .dv-btn{flex:1}
.dv-foot .dv-btn.dv-sq{flex:none}
.dv-keys{display:block;padding:12px 16px 10px;box-shadow:none}
/* two equal 56 px targets; yellow only on Complete. The need line sits in the 32 px fade above the dock */
.dv-keys .keys.dv-keys2{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.dv-keys .key{height:56px;border-radius:18px;padding:0 10px;gap:8px}
.dv-keys .key .kl{min-width:0}
.dv-keys .key .kl b{font-size:15px;line-height:1.08;white-space:normal}
.dv-keys .key .kl small{margin-top:2px}
.dv-keys .key .ring{width:22px;height:22px}
.dv-keys a.key{text-decoration:none;color:var(--g-ink);font-size:16px}
.dv-keys a.key .dv-ring{width:22px;height:22px}
.dv-keys .key-commit:focus-visible,.dv-keys .key-fail:focus-visible{border-radius:18px}
.dv-need{position:absolute;left:0;right:0;bottom:100%;min-height:32px;padding:16px 18px 2px;font-size:12.5px;font-weight:520;color:var(--g-ink-2);background:linear-gradient(180deg,rgba(26,29,32,0),var(--g1) 62%);pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dv-cap{padding-bottom:112px}

/* 56 px rows */
.dv-rows{display:flex;flex-direction:column;gap:6px}
.dv-row{display:flex;align-items:center;gap:12px;min-height:56px;padding:10px 14px;border-radius:14px;background:var(--g2);text-decoration:none;color:var(--g-ink);transition:background-color var(--t) ease-out,transform var(--t-fast) ease-out}
.dv-row:active{transform:scale(.985)}
@media (hover:hover){.dv-row:hover{background:var(--g3)}}
.dv-row .txt{flex:1;min-width:0;font-size:13px;color:var(--g-ink-2);line-height:1.35}
.dv-row .txt b{display:block;color:var(--g-ink);font-weight:600;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dv-row .tm{font-size:20px;font-weight:560;letter-spacing:-.03em;color:var(--g-ink)}
.dv-row>svg.ico{width:16px;height:16px;color:var(--g-ink-3)}
.dv-ph{font-size:13px;font-weight:560;color:var(--g-ink);white-space:nowrap}
.dv-hico{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--g3);color:var(--g-ink);flex:none}
.dv-hico svg{width:16px;height:16px}
.dv-hico .dv-ring{width:22px;height:22px}
.dv-meter{display:block;width:100%;height:22px}
.dv-meter.sm{height:14px;margin-top:5px}

/* today: the next action */
.dv-next{background:var(--g2);border-radius:18px;padding:8px 8px 8px;display:flex;flex-direction:column;gap:10px}
.dv-next-ro{background:var(--g0);border-radius:14px;padding:12px 14px;display:flex;justify-content:space-between;align-items:flex-end;box-shadow:inset 0 1px 2px rgba(0,0,0,.5)}
.dv-next-ro .t{font-size:52px;line-height:.95;font-weight:540;letter-spacing:-.05em}
.dv-next-ro .rl{font-size:12px;font-weight:520;color:var(--g-ink-2);text-align:right;line-height:1.35}
.dv-next-ro .rl b{display:block;font-size:13px;font-weight:600;color:var(--g-ink)}
.dv-next-ro .rl b.late{color:#F0A564}
.dv-next-ro .rl b.ok{color:var(--ok-g-ink)}
.dv-next-w{padding:0 8px;font-size:13px;color:var(--g-ink-2);line-height:1.4}
.dv-next-w b{display:block;font-size:16px;font-weight:620;color:var(--g-ink);letter-spacing:-.01em;margin-bottom:1px}
.dv-hrow .txt b{white-space:nowrap}

/* graphite readout tweaks */
.dv-app .ro.g{border-radius:16px}
.dv-app .ro.g .t{font-size:52px}
.dv-app .ro.g .rl b.ink{color:var(--g-ink)}
.dv-app .ro.g .rl b.late{color:#F0A564}
.dv-lr{width:44px;height:44px;margin:4px 0;color:var(--g-ink)}

/* job: status steps */
.dv-steps{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;background:var(--g0);border-radius:14px;padding:12px 6px 10px;box-shadow:inset 0 1px 2px rgba(0,0,0,.5)}
.dv-steps li{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;text-align:center;font-size:12px;color:var(--g-ink-3);min-width:0}
.dv-steps li::before{content:"";position:absolute;top:6px;right:50%;width:100%;height:1.5px;background:var(--g4);z-index:0}
.dv-steps li:first-child::before{display:none}
.dv-steps li.done::before,.dv-steps li.now::before,.dv-steps li.bad::before{background:var(--g-ink-2)}
.dv-steps i{position:relative;z-index:1;width:14px;height:14px;border-radius:50%;background:var(--g0);box-shadow:inset 0 0 0 1.5px var(--g4)}
.dv-steps li.done i{background:var(--g-ink);box-shadow:none}
.dv-steps li.now i{background:conic-gradient(var(--g-ink) 0 180deg,var(--g0) 0);box-shadow:inset 0 0 0 1.5px var(--g-ink)}
.dv-steps li.bad i{background:none;box-shadow:none;border-radius:50%;background:conic-gradient(from 40deg,#F08C79 0 290deg,transparent 0);-webkit-mask:radial-gradient(circle,transparent 4.6px,#000 5px);mask:radial-gradient(circle,transparent 4.6px,#000 5px)}
.dv-steps b{font-weight:560;color:var(--g-ink-2);white-space:nowrap;font-size:12px}
.dv-steps li.now b,.dv-steps li.done b{color:var(--g-ink)}
.dv-steps li.bad b{color:#F08C79}
.dv-steps span{font-size:14px;font-weight:560;letter-spacing:-.02em;color:var(--g-ink)}
.dv-steps li.todo span{color:var(--g-ink-3);font-weight:450}

/* job: the two stops */
.dv-stops{list-style:none;display:flex;flex-direction:column;gap:6px;position:relative}
.dv-stop{position:relative;display:grid;grid-template-columns:14px minmax(0,1fr) auto;gap:12px;align-items:center;background:var(--g2);border-radius:14px;padding:12px 8px 12px 14px;min-height:72px}
.dv-stop>i{width:12px;height:12px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--g-ink-2);align-self:start;margin-top:4px}
.dv-stop.is-done>i{background:var(--g-ink-2);box-shadow:none}
.dv-stop.is-next{box-shadow:inset 0 0 0 1.5px var(--g-ink-2)}
.dv-stop.is-next>i{box-shadow:inset 0 0 0 2px var(--g-ink)}
.dv-stop+.dv-stop::before{content:"";position:absolute;left:19.25px;top:-10px;height:14px;width:1.5px;background:var(--g4)}
.dv-stop-t{min-width:0;font-size:13px;color:var(--g-ink-2);line-height:1.38}
.dv-stop-t .lb{display:block;font-size:12px;color:var(--g-ink-3)}
.dv-stop.is-next .lb{color:var(--g-ink)}
.dv-stop-t b{display:block;font-size:14.5px;font-weight:600;color:var(--g-ink)}
.dv-nav{width:64px;height:56px;border-radius:12px;background:var(--g3);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-decoration:none;font-size:12px;font-weight:560;color:var(--g-ink)}
.dv-nav svg{width:18px;height:18px}
@media (hover:hover){.dv-nav:hover{background:var(--g4)}}
.dv-card{background:var(--g2);border-radius:14px;padding:12px 14px}
.dv-card h2{display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:560;color:var(--g-ink-2);margin-bottom:6px}
.dv-card h2 svg{width:16px;height:16px}
.dv-card p{font-size:14px;line-height:1.48;color:var(--g-ink)}
.dv-card p b{font-weight:600}
.dv-card .dv-note{font-size:13px;color:var(--g-ink-2);margin-top:6px}
.dv-kv b{display:block;font-size:16px;font-weight:600}
.dv-kv span{font-size:13px;color:var(--g-ink-2)}
.dv-banner{display:flex;gap:12px;align-items:center;background:var(--g2);border-radius:14px;padding:12px 14px;font-size:13px;color:var(--g-ink-2);line-height:1.38}
.dv-banner b{display:block;font-size:15px;font-weight:600;color:var(--g-ink)}
.dv-banner.bad b{color:#F5A492}
.dv-nextc{position:relative;display:flex;flex-direction:column;gap:2px;width:100%;text-align:left;background:var(--g2);border-radius:18px;padding:14px 44px 14px 16px;text-decoration:none;font-size:13px;color:var(--g-ink-2);transition:background-color var(--t) ease-out}
.dv-nextc .lb{font-size:12px}
.dv-nextc b{font-size:16px;font-weight:620;color:var(--g-ink);letter-spacing:-.01em}
.dv-nextc>svg{position:absolute;right:16px;top:50%;margin-top:-8px;width:16px;height:16px;color:var(--g-ink-2)}
@media (hover:hover){.dv-nextc:hover{background:var(--g3)}}

/* capture steps */
.dv-sh{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:600;color:var(--g-ink);margin:8px 2px -2px;letter-spacing:-.005em}
.dv-sh em{font-style:normal;font-weight:450;font-size:12.5px;color:var(--g-ink-3)}
.dv-n{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:620;color:var(--g-ink-2);box-shadow:inset 0 0 0 1.5px var(--g4);flex:none}
.dv-n.is-done{background:var(--g-ink);color:var(--g1);box-shadow:none}
.dv-n svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.dv-step{padding:9px 9px 9px 9px;gap:12px}
.dv-th{width:58px;height:58px;border-radius:9px;object-fit:cover;flex:none;background:var(--g3)}
.dv-th-0{display:grid;place-items:center;color:var(--g-ink-2)}
.dv-th-0 svg{width:22px;height:22px}
.dv-step .txt{font-size:12.5px}
.dv-step .led{margin-right:8px}

.dv-outs,.dv-reasons{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.dv-outs button,.dv-reasons button{min-height:64px;border:0;border-radius:14px;background:var(--g2);color:var(--g-ink);text-align:left;padding:10px 12px;font-family:var(--font);cursor:pointer;transition:background-color var(--t) ease-out,transform var(--t-fast) ease-out}
.dv-outs button:active,.dv-reasons button:active{transform:scale(.97)}
.dv-outs b{display:block;font-size:14.5px;font-weight:600;line-height:1.2}
.dv-outs span{display:block;font-size:12px;color:var(--g-ink-2);margin-top:3px}
.dv-outs button[aria-checked="true"],.dv-reasons button[aria-checked="true"]{background:var(--g-ink);color:var(--g1)}
.dv-outs button[aria-checked="true"] span,.dv-reasons button[aria-checked="true"] span{color:var(--g3)}
@media (hover:hover){.dv-outs button:not([aria-checked="true"]):hover,.dv-reasons button:not([aria-checked="true"]):hover{background:var(--g3)}}
.dv-reasons{grid-template-columns:1fr}
.dv-reasons button{display:flex;align-items:center;gap:12px;min-height:56px}
.dv-reasons i{width:18px;height:18px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--g-ink-2);flex:none}
.dv-reasons button[aria-checked="true"] i{box-shadow:inset 0 0 0 5px var(--g1)}
.dv-reasons span{font-size:12.5px;color:var(--g-ink-2);line-height:1.3}
.dv-reasons b{display:block;font-size:14.5px;font-weight:600;color:inherit}
.dv-reasons button[aria-checked="true"] b{color:var(--g1)}

.dv-in{display:flex;flex-direction:column;gap:6px;font-size:12.5px;color:var(--g-ink-2);min-width:0}
.dv-in input,.dv-in textarea{width:100%;height:52px;border:0;border-radius:12px;background:var(--g0);color:var(--g-ink);font-family:var(--font);font-size:16px;padding:0 14px;box-shadow:inset 0 1px 2px rgba(0,0,0,.5);outline:none}
.dv-in textarea{height:auto;min-height:76px;padding:12px 14px;resize:vertical;line-height:1.45}
.dv-in input::placeholder,.dv-in textarea::placeholder{color:var(--g-ink-3)}
.dv-in input:focus,.dv-in textarea:focus{box-shadow:inset 0 1px 2px rgba(0,0,0,.5),0 0 0 2px var(--g1),0 0 0 4px var(--g-ink-2)}
.dv-two{display:grid;grid-template-columns:minmax(0,1fr) 96px;gap:8px}
.dv-chips{display:flex;flex-wrap:wrap;gap:6px}
.dv-chip{min-height:48px;height:48px;padding:0 14px;border-radius:20px;border:0;background:var(--g2);color:var(--g-ink-2);font-family:var(--font);font-size:13.5px;font-weight:520;cursor:pointer;display:inline-flex;align-items:center;gap:7px;transition:background-color var(--t) ease-out}
.dv-chip svg{width:15px;height:15px}
.dv-chips{gap:8px}
.dv-chip[aria-pressed="true"]{background:var(--g-ink);color:var(--g1)}
@media (hover:hover){.dv-chip:not([aria-pressed="true"]):hover{background:var(--g3);color:var(--g-ink)}}
.dv-sugg{align-self:flex-start;color:var(--g-ink);box-shadow:inset 0 0 0 1px var(--g4)}

/* signature pad: really draws; touch-action none only here */
.dv-pad{position:relative;height:196px;min-height:180px;border-radius:14px;background:var(--g0);box-shadow:inset 0 1px 2px rgba(0,0,0,.55);flex:none;overflow:hidden}
.dv-pad canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair;z-index:1}
.dv-sig-pre{position:absolute;left:22px;top:36px;width:250px;height:84px;color:var(--g-ink);pointer-events:none}
.dv-pad-hint{position:absolute;left:0;right:0;top:76px;text-align:center;font-size:13px;color:var(--g-ink-3);pointer-events:none}
.dv-pad.has-ink .dv-pad-hint{display:none}
.dv-pad-base{position:absolute;left:18px;right:18px;bottom:52px;border-top:1px dashed var(--g4);pointer-events:none}
.dv-pad-who{position:absolute;left:18px;bottom:16px;right:80px;font-size:12px;color:var(--g-ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
.dv-pad-clr{position:absolute;right:4px;bottom:4px;z-index:2;height:48px;min-width:64px;padding:0 14px;border:0;border-radius:10px;background:none;color:var(--g-ink-2);font-family:var(--font);font-size:13px;font-weight:560;cursor:pointer}
@media (hover:hover){.dv-pad-clr:hover{color:var(--g-ink);background:var(--g2)}}

/* count stepper */
.dv-count{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--g2);border-radius:14px;padding:8px 8px 8px 14px;min-height:72px}
.dv-count-l{min-width:0;font-size:12.5px;color:var(--g-ink-2);line-height:1.35}
.dv-count-l b{display:block;font-size:14.5px;font-weight:600;color:var(--g-ink)}
.dv-count-l .late{color:#F0A564}
.dv-stepper{display:flex;align-items:center;gap:4px;flex:none}
.dv-stepper button{width:52px;height:56px;border-radius:14px;border:0;background:var(--g3);color:var(--g-ink);font-family:var(--font);font-size:26px;font-weight:450;line-height:1;cursor:pointer;transition:transform var(--t-fast) ease-out}
.dv-stepper button:active{transform:scale(.94)}
.dv-stepper output{min-width:56px;white-space:nowrap;text-align:center;font-size:14px;color:var(--g-ink-2);line-height:1.1}
.dv-stepper output b{font-size:26px;font-weight:560;letter-spacing:-.03em;color:var(--g-ink)}
.dv-stepper output small{display:block;font-size:12px;color:var(--g-ink-3);margin-top:2px}

/* success: the ring closes, then the tick */
.dv-done{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:14px 0 4px}
.dv-done-r{width:80px;height:80px}
.dv-done .dr-t{fill:none;stroke:var(--g3);stroke-width:3}
.dv-done .dr-f{fill:none;stroke:var(--ok-g);stroke-width:3;stroke-linecap:round;stroke-dasharray:226.2;stroke-dashoffset:0;transform:rotate(-90deg);transform-origin:42px 42px}
.dv-done .tick{fill:none;stroke:var(--g-ink);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:40;stroke-dashoffset:0}
.dv-done .dr-b{fill:none;stroke:#F08C79;stroke-width:3;stroke-linecap:round;stroke-dasharray:181 226.2;transform:rotate(-50deg);transform-origin:42px 42px}
.dv-done.is-saved .dr-f{stroke:var(--g-ink-2);stroke-dashoffset:56.55}
.dv-done.is-saved .tick{display:none}
/* the key's ring is already closed: the done block cross-fades in with the form going out (180 ms), the tick draws at 80 ms, text at 120 ms */
.dv-done.is-anim{animation:dv-in 180ms ease-out both}
.dv-done.is-anim .tick{stroke-dashoffset:40;animation:dv-tick 200ms 80ms ease-out forwards}
.dv-done.is-anim>*:not(svg){animation:dv-up 180ms 120ms ease-out both}
@keyframes dv-in{from{opacity:0}to{opacity:1}}
.dv-xfade{position:fixed;z-index:40;overflow:hidden;pointer-events:none;background:var(--g1);color:var(--g-ink);animation:dv-out 180ms ease-out forwards}
@keyframes dv-out{from{opacity:1}to{opacity:0}}
@keyframes dv-tick{to{stroke-dashoffset:0}}
@keyframes dv-up{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.dv-done h2{font-size:23px;font-weight:620;letter-spacing:-.02em;line-height:1.15}
.dv-done>p{font-size:13.5px;color:var(--g-ink-2);line-height:1.4;max-width:30ch}
.dv-done .dv-card{width:100%;text-align:left}
.dv-done .dv-btn{width:100%}
.dv-strip{display:flex;align-items:center;gap:10px;width:100%;background:var(--g2);border-radius:14px;padding:9px;margin-top:6px;text-align:left}
.dv-strip img{width:56px;height:56px;border-radius:9px;object-fit:cover;flex:none}
.dv-strip-sig{flex:1;min-width:0;height:56px;border-radius:9px;background:var(--g0);display:flex;align-items:center;justify-content:center;color:var(--g-ink)}
.dv-strip-sig svg{width:124px;height:42px}
.dv-strip-sig em{font-style:normal;font-size:12.5px;color:var(--g-ink-3)}
.dv-strip-c{font-size:12.5px;color:var(--g-ink-2);line-height:1.2;padding-right:6px;flex:none}
.dv-strip-c b{display:block;font-size:20px;font-weight:560;letter-spacing:-.03em;color:var(--g-ink)}
.dv-done .dv-nextc{margin-top:6px}

/* empty / guard states */
.dv-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:36px 4px 8px;color:var(--g-ink-2)}
.dv-empty>svg{width:56px;height:56px;color:var(--g-ink-3);margin-bottom:4px}
.dv-empty h2{font-size:20px;font-weight:620;letter-spacing:-.015em;color:var(--g-ink)}
.dv-empty p{font-size:13.5px;line-height:1.45;max-width:30ch;margin-bottom:6px}

/* camera sheet: "takes" the photo with a shutter */
.dv-cam{position:absolute;inset:0;z-index:30;background:#050607;color:#fff;display:flex;flex-direction:column;animation:dv-cam-in 180ms var(--ease)}
@keyframes dv-cam-in{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
.dv-cam-top{padding:16px 18px 12px;font-size:12.5px;color:var(--g-ink-2);line-height:1.4}
.dv-cam-top b{display:block;font-size:15px;font-weight:620;color:#fff}
.dv-cam-vf{position:relative;flex:1;min-height:0;overflow:hidden;margin:0 10px;border-radius:18px;background:#111;transition:transform 160ms ease-out}
.dv-cam-vf img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;animation:dv-drift 7s ease-in-out infinite alternate}
@keyframes dv-drift{from{transform:scale(1.07) translate(-1.2%,.6%)}to{transform:scale(1.04) translate(1%,-.8%)}}
.dv-cam.is-shot .dv-cam-vf{transform:scale(.985)}
.dv-cam.is-shot .dv-cam-vf img{animation-play-state:paused}
.dv-cam .br{position:absolute;width:28px;height:28px;border:2px solid rgba(255,255,255,.85);pointer-events:none;transition:inset 160ms ease-out}
.dv-cam .br.tl{left:12%;top:14%;border-right:0;border-bottom:0;border-radius:6px 0 0 0}
.dv-cam .br.tr{right:12%;top:14%;border-left:0;border-bottom:0;border-radius:0 6px 0 0}
.dv-cam .br.bl{left:12%;bottom:14%;border-right:0;border-top:0;border-radius:0 0 0 6px}
.dv-cam .br.brr{right:12%;bottom:14%;border-left:0;border-top:0;border-radius:0 0 6px 0}
.dv-cam-ts{position:absolute;left:12px;bottom:12px;font-size:12px;font-weight:560;color:#fff;background:rgba(0,0,0,.5);padding:4px 9px;border-radius:8px;font-variant-numeric:tabular-nums}
.dv-cam-flash{position:absolute;inset:0;background:#fff;opacity:0;pointer-events:none}
.dv-cam.is-shot .dv-cam-flash{animation:dv-flash 240ms ease-out}
@keyframes dv-flash{0%{opacity:0}25%{opacity:.85}100%{opacity:0}}
.dv-cam-bar{height:112px;flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 24px}
.dv-cam-x,.dv-cam-sp{width:48px;height:48px;flex:none}
.dv-cam-x{border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;display:grid;place-items:center;cursor:pointer}
.dv-cam-x svg{width:18px;height:18px}
.dv-shutter{width:76px;height:76px;border-radius:50%;border:0;background:transparent;box-shadow:inset 0 0 0 4px #fff;display:grid;place-items:center;cursor:pointer;flex:none}
.dv-shutter i{width:60px;height:60px;border-radius:50%;background:#fff;transition:transform 120ms ease-out}
.dv-shutter:active i{transform:scale(.88)}
.dv-shutter:focus-visible,.dv-cam-x:focus-visible{outline:none;box-shadow:inset 0 0 0 4px #fff,0 0 0 3px #050607,0 0 0 5px var(--g-ink-2)}
.dv-cam-bar .dv-btn{flex:1}
.dv-cam-bar .dv-btn.ghost{background:rgba(255,255,255,.12);box-shadow:none;color:#fff}

/* sync */
.dv-switch{display:flex;align-items:center;gap:12px;width:100%;min-height:64px;border:0;border-radius:14px;background:var(--g2);padding:10px 14px;text-align:left;color:var(--g-ink);font-family:var(--font);cursor:pointer}
.dv-switch .txt{flex:1;min-width:0;font-size:13px;color:var(--g-ink-2);line-height:1.35}
.dv-switch .txt b{display:block;font-size:15px;font-weight:600;color:var(--g-ink)}
.dv-switch[disabled]{cursor:progress}
.dv-sw{position:relative;width:52px;height:32px;border-radius:16px;background:var(--g4);flex:none;transition:background-color var(--t) ease-out}
.dv-sw i{position:absolute;left:3px;top:3px;width:26px;height:26px;border-radius:50%;background:var(--g-ink-2);transition:left var(--t) ease-out,background-color var(--t) ease-out}
.dv-switch[aria-checked="true"] .dv-sw{background:var(--g-ink)}
.dv-switch[aria-checked="true"] .dv-sw i{left:23px;background:var(--g1)}
.dv-ql{list-style:none;display:flex;flex-direction:column;gap:6px}
.dv-q{display:flex;align-items:center;gap:12px;min-height:56px;padding:10px 14px;border-radius:14px;background:var(--g2);font-size:13px;color:var(--g-ink-2);line-height:1.35}
.dv-q .txt{flex:1;min-width:0}
.dv-q .txt b{display:block;font-size:14px;font-weight:600;color:var(--g-ink)}
.dv-q-t{display:block;font-size:12.5px;margin-top:2px}
.dv-q-t b{display:inline!important;font-size:12.5px!important}
.dv-q .tm{font-size:13.5px;font-weight:560;color:var(--g-ink);white-space:nowrap}
.dv-q.is-sent .dv-hico{background:none}

/* hours */
.dv-hrs{background:var(--g0);border-radius:16px;padding:14px 16px 12px;box-shadow:inset 0 1px 2px rgba(0,0,0,.5)}
.dv-hrs-h{display:flex;justify-content:space-between;align-items:flex-end;gap:12px}
.dv-hrs .t{font-size:46px;line-height:.95;font-weight:540;letter-spacing:-.05em}
.dv-hrs .t small{font-size:22px;color:var(--g-ink-2);letter-spacing:-.02em;margin:0 4px 0 2px}
.dv-hrs .rl{font-size:12px;font-weight:520;color:var(--g-ink-2);text-align:right;line-height:1.35}
.dv-hrs .rl b{display:block;font-size:12.5px;font-weight:600;color:var(--g-ink);margin-top:3px}
.dv-hrs .dv-meter{margin-top:10px}
.dv-hrs-s{display:flex;justify-content:space-between;font-size:12px;color:var(--g-ink-3);margin-top:2px}
.dv-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 14px;margin-top:8px;font-size:12px;color:var(--g-ink-2)}
.dv-legend span{display:inline-flex;align-items:center;gap:6px}
.dv-legend i{display:inline-block;width:12px;height:6px;border-radius:2px}
.dv-legend .k-d{background:var(--g-ink)} .dv-legend .k-l{background:#F0A564;width:2px;height:12px}
/* hours: the 24 h tachograph ring (the driver's signature dial) */
.dv-tg{padding:14px 14px 12px}
.dv-tacho{display:block;width:100%;max-width:252px;height:auto;margin:0 auto}
.dv-tacho .tg-face{fill:none;stroke:var(--g3);stroke-width:1}
.dv-tacho .tg-tr{fill:none;stroke:var(--g2);stroke-width:8}
.dv-tacho .tg-tr2{fill:none;stroke:var(--g2);stroke-width:1}
.dv-tacho .tg-d{fill:none;stroke:var(--g-ink);stroke-width:8;stroke-linecap:butt}
.dv-tacho .tg-w{fill:none;stroke:var(--g5);stroke-width:4}
.dv-tacho .tg-b{fill:none;stroke:var(--g-ink-2);stroke-width:4;stroke-dasharray:2 2}
.dv-tacho .tg-duty{fill:none;stroke:var(--g-ink-3);stroke-width:1.5}
.dv-tacho .tg-st{fill:var(--g-ink-2)}
.dv-tacho .tg-tk{stroke:var(--g5);stroke-width:1.2;fill:none}
.dv-tacho .tg-lb text{fill:var(--g-ink-3);font-size:12px;font-weight:560;font-family:var(--font);font-variant-numeric:tabular-nums}
.dv-tacho .tg-lim{stroke:#F0A564;stroke-width:2.2;stroke-linecap:round}
.dv-tacho .tg-nd{stroke:var(--g-ink);stroke-width:1.5;stroke-linecap:round}
.dv-tacho .tg-t{fill:var(--g-ink);font-family:var(--font);font-size:40px;font-weight:540;letter-spacing:-.05em;font-variant-numeric:tabular-nums}
.dv-tacho .tg-u{fill:var(--g-ink-2);font-size:20px;letter-spacing:0}
.dv-tacho .tg-s{fill:var(--g-ink-2);font-family:var(--font);font-size:12px;font-weight:520}
.dv-tg-ro{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid var(--g2);font-size:12px;color:var(--g-ink-2);line-height:1.3}
.dv-tg-ro b{display:block;font-size:17px;font-weight:560;letter-spacing:-.02em;color:var(--g-ink);font-variant-numeric:tabular-nums;margin-bottom:2px}
.dv-legend .k-w{background:var(--g5);height:4px}
.dv-legend .k-b{background:repeating-linear-gradient(90deg,var(--g-ink-2) 0 2px,transparent 2px 4px);height:4px}
.dv-rules p+p{margin-top:8px}
.dv-rules p{font-size:13.5px}
.dv-src{display:inline-flex;align-items:center;gap:6px;min-height:40px;margin-top:4px;font-size:12.5px;color:var(--g-ink-2)!important;text-underline-offset:3px}
.dv-src svg{width:14px;height:14px}

/* ---------- reflow ---------- */
@media (max-width:1040px){
  .dv-grid{grid-template-columns:minmax(0,1fr);justify-items:center;row-gap:28px}
  .dv-hs{grid-column:1;grid-row:1}
  .dv-side{grid-column:1;grid-row:2;justify-self:center;width:min(420px,100%);margin-top:0}
}
/* the app IS the phone */
@media (max-width:620px){
  body[data-area="driver"] .foot{display:none}
  body[data-area="driver"]{background:var(--g1)}
  .dv-stage{padding:0;min-height:0;background:var(--g1)}
  .dv-stage::after{display:none}
  .dv-grid{display:block;z-index:auto}
  .dv-side{display:none}
  .dv-hs .handset.is-app .hs-body,.dv-hs .handset.is-app .hs-screen{overflow:visible}
  .dv-cam{position:fixed;z-index:120}
  body[data-area="driver"] .toasts{bottom:auto;top:calc(var(--top-h) + 8px)}
}
@media (prefers-reduced-motion:reduce){
  .dv-btn,.dv-row,.dv-outs button,.dv-reasons button,.dv-chip,.dv-sw,.dv-sw i,.dv-stepper button,.dv-cam-vf{transition:none}
  .dv-cam,.dv-cam-vf img,.dv-cam.is-shot .dv-cam-flash{animation:none}
  .dv-done.is-anim{animation:dv-fade 160ms linear both}
  .dv-done.is-anim .tick{animation:none;stroke-dashoffset:0}
  .dv-done.is-anim>*:not(svg){animation:dv-fade 160ms linear both}
  @keyframes dv-fade{from{opacity:0}to{opacity:1}}
}
.dv-app>.dv-h{padding:2px 18px 8px}
.dv-nw{white-space:nowrap}

/* arrival at the drop: waiting time on the readout and the job */
.dv-ro-arr{flex-basis:100%;width:100%;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 10px;margin-top:12px;padding-top:10px;border-top:1px solid var(--g2);font-size:12.5px;color:var(--g-ink-2);font-variant-numeric:tabular-nums}
.dv-ro-arr span{white-space:nowrap}
.dv-ro-arr span:first-child{color:var(--g-ink);font-weight:560}
.dv-ro-arr.is-not span:first-child{color:var(--g-ink-2);font-weight:520}
.dv-ro-arr .dv-chip{color:var(--g-ink);box-shadow:inset 0 0 0 1px var(--g4)}
.dv-app .ro.g.dv-ro{flex-wrap:wrap}
/* condition next to the count: Good · Damaged · Unchecked */
.dv-cond{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.dv-cond button{min-height:56px;border:0;border-radius:14px;background:var(--g2);color:var(--g-ink);text-align:left;padding:8px 10px;font-family:var(--font);cursor:pointer;transition:background-color var(--t) ease-out,transform var(--t-fast) ease-out}
.dv-cond button:active{transform:scale(.97)}
.dv-cond b{display:block;font-size:14.5px;font-weight:600;line-height:1.2}
.dv-cond span{display:block;font-size:12px;color:var(--g-ink-2);margin-top:2px;line-height:1.2}
.dv-cond button[aria-checked="true"]{background:var(--g-ink);color:var(--g1)}
.dv-cond button[aria-checked="true"] span{color:var(--g3)}
.dv-cond button.is-bad[aria-checked="true"]{background:var(--g2);color:#F5A492;box-shadow:inset 0 0 0 1.5px rgba(240,140,121,.7)}
.dv-cond button.is-bad[aria-checked="true"] span{color:#F5A492}
.dv-cond button:focus-visible{outline:none;box-shadow:0 0 0 2px var(--g1),0 0 0 4px var(--g-ink-2)}
@media (hover:hover){.dv-cond button:not([aria-checked="true"]):hover{background:var(--g3)}}
.dv-req{font-style:normal;color:var(--g-ink-3)}
.dv-reasons .dv-count{margin:-2px 0 2px}
@media (prefers-reduced-motion:reduce){.dv-cond button{transition:none}.dv-xfade{animation:none;display:none}}
