/* Concept 3 uses the same surfaces and action hierarchy in both workspaces. */
:root {
  --premium-ink: #291747;
  --premium-action: #6030ae;
  --premium-line: #ded7e9;
  --premium-tint: #f3eefb;
  --premium-shadow: 0 5px 18px rgb(43 25 75 / 7%);
}
body {
  color: var(--premium-ink);
  background: linear-gradient(135deg, #f0ebfa, #faf9fc 40%, #f0f6fa);
  min-height: 100vh;
}
.goat-platform {
  background: linear-gradient(105deg, #24123e, #48247e 65%, #6237a1);
  box-shadow: var(--premium-shadow);
}
.goat-platform-nav [aria-current="page"] { color: var(--premium-ink); background: #f7f1ff; }
.heading h1 { color: var(--premium-ink); letter-spacing: -.04em; }
.eyebrow { color: var(--premium-action); }
.toolbar, .panel, .login-card, .returns-queue, .stats article {
  border: 1px solid var(--premium-line);
  border-radius: 16px;
  box-shadow: var(--premium-shadow);
}
.staff-today { margin-block: 1.25rem; }
.staff-today h2 { margin-bottom: .65rem; }
.today-metric {
  border: 1px solid var(--premium-line);
  border-top: 3px solid var(--premium-action);
  border-radius: 12px;
  background: linear-gradient(145deg, white, var(--premium-tint));
}
.today-metric:nth-child(2) { border-top-color: #326db3; }
.today-metric:nth-child(3) { border-top-color: #197455; }
.today-metric:nth-child(4) { border-top-color: #ae343d; }
.today-metric:nth-child(5) { border-top-color: #ab631e; }
.today-metric dd, .stats b { color: var(--premium-ink); font-variant-numeric: tabular-nums; }
.dashboard-tabs { gap: .35rem; flex-wrap: wrap; }
.dashboard-tabs button.is-active, .driver-nav button[aria-pressed="true"] {
  background: var(--premium-tint);
  border-color: #bfabd8;
  color: #492776;
  box-shadow: inset 0 -3px var(--premium-action);
}
.delivery { border-color: var(--premium-line); border-radius: 12px; }
.delivery-title, .panel h2 { color: var(--premium-ink); }
.delivery-title, .delivery-address, .driver-action-sheet { overflow-wrap: anywhere; }
.primary, .delivery-actions .primary {
  background: var(--premium-action);
  border-color: var(--premium-action);
  color: white;
}
.primary:hover, .delivery-actions .primary:hover { background: #49217f; color: white; }
body:has(.driver-layout) .next-destination {
  border: 1px solid #b6a0d2;
  border-inline-start: 5px solid var(--premium-action);
  background: linear-gradient(115deg, #f1e8ff, #fcfaff);
  color: var(--premium-ink);
}
.driver-action-sheet, .failure-dialog, .delivery-entry-dialog {
  border: 1px solid var(--premium-line);
  border-block-start: 4px solid var(--premium-action);
  color: var(--premium-ink);
  box-shadow: 0 18px 65px rgb(28 14 52 / 24%);
}
.driver-action-sheet::backdrop, .failure-dialog::backdrop, .delivery-entry-dialog::backdrop { background: rgb(26 17 42 / 60%); }
main :focus-visible, dialog :focus-visible { outline: 3px solid #7348b1; outline-offset: 2px; }
@media (max-width: 640px) {
  .next-destination button, .driver-action-sheet button, .delivery-actions button { min-height: 46px; }
  .driver-action-sheet { padding-inline: 16px; }
}

.next-destination .primary + .primary {
  background: #17674e;
  border-color: #17674e;
}
body:has(.driver-layout) .next-destination .outline {
  background: white;
  border-color: #bdafd0;
  color: var(--premium-ink);
}

body:has(.driver-layout) { background: #291747; }
body:has(.driver-layout) .heading h1 { color: white; }
body:has(.driver-layout) .v10-panel {
  background: #faf8ff;
  border-color: var(--premium-line);
  color: var(--premium-ink);
}

/* Operations workspace. The same ink, surface, status and spacing tokens are
   used by the staff overview, driver journey and outcome sheets. */
:root {
  --pd-ink:#261642; --pd-purple:#6429bc; --pd-midnight:#271344;
  --pd-muted:#625b70; --pd-line:#e1daeb; --pd-surface:#fff; --pd-gap:16px;
  --pd-radius:18px; --pd-success:#146748; --pd-attention:#84520e;
}
body:has(#appView:not([hidden])) { background:#f4f2f8; color:var(--pd-ink); }
body:has(#appView:not([hidden])) main { width:auto; max-width:1600px; padding:16px clamp(12px,2.5vw,40px) 30px; margin:auto; }
.pd-icon { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linejoin:round; stroke-linecap:round; flex:none; }
.pd-rail-brand,.pd-rail-product {display:none}
#appView .pd-workhead {border:1px solid var(--pd-line);border-radius:var(--pd-radius);overflow:hidden;background:var(--pd-surface);margin-bottom:18px}
body:not(:has(.driver-layout)) #appView .pd-workhead .heading {
  background:linear-gradient(90deg,#fbf8ff 17%,#f8f2ffde 43%,transparent 75%),url('/brand/ranges.svg') right center/cover;
  display:flex; align-items:center; justify-content:space-between;min-height:102px;padding:18px 24px;margin:0;border:0;border-radius:0;
}
#appView .heading h1 {font-size:clamp(1.55rem,3vw,2.4rem);line-height:1.1;letter-spacing:-.045em}
#appView .pd-workhead .toolbar {margin:0;padding:8px 22px;border:0;border-radius:0;box-shadow:none;background:white;color:var(--pd-ink)}
#appView .toolbar select {max-width:100%}
#staffToday {margin:0 0 18px}
#staffToday>h2 {font-size:1rem;margin:0 0 10px}
#todayCounts {gap:12px}
#todayCounts .today-metric {background:white;color:var(--pd-ink);align-items:start;display:grid;gap:5px;border:1px solid var(--pd-line);border-radius:15px;padding:12px 16px;box-shadow:0 3px 10px #26164206;--accent:#6837b2;--tint:#f2ebfc}
#todayCounts .today-metric:nth-child(2){--accent:#225da5;--tint:#e9f2ff}
#todayCounts .today-metric:nth-child(3){--accent:#146748;--tint:#e4f5eb}
#todayCounts .today-metric:nth-child(4){--accent:#aa3449;--tint:#ffeaf0}
#todayCounts .today-metric:nth-child(5){--accent:#84520e;--tint:#fff0d6}
#todayCounts dt {display:flex;gap:8px;align-items:center;font-size:.84rem;color:#484154}
#todayCounts dt svg {width:30px;height:30px;padding:6px;border-radius:9px;background:var(--tint);color:var(--accent)}
#todayCounts dd {font-size:clamp(1.7rem,3vw,2.4rem);line-height:1.05;letter-spacing:-.04em}
.pd-operations {display:grid;grid-template-columns:minmax(0,1.8fr) minmax(205px,1fr);gap:var(--pd-gap);margin-top:var(--pd-gap)}
.pd-map-card,.pd-progress-card {min-width:0;border:1px solid var(--pd-line);border-radius:var(--pd-radius);overflow:hidden;background:white}
.pd-operations header {padding:15px 18px 10px}
.pd-operations h2 {font-size:1.15rem;letter-spacing:-.035em;margin:3px 0}
#pdMap {background:#edeaf2;min-height:160px}
#pdMap .street-map {height:170px;min-height:0;border:0;border-radius:0}
.pd-map-card footer {display:flex;gap:4px 12px;flex-wrap:wrap;justify-content:space-between;margin:0;padding:7px 14px;color:var(--pd-muted);font-size:.72rem;background:white}
.pd-progress-card {background:linear-gradient(125deg,#fff 55%,#f3effb)}
#pdProgress {display:grid;justify-items:center;padding:0 14px}
#pdProgress p {font-weight:650;color:var(--pd-muted);font-size:.84rem;text-align:center;margin:2px 0 10px}
.pd-ring {display:grid;place-items:center;position:relative;width:112px;aspect-ratio:1;color:var(--pd-ink)}
.pd-ring svg,.pd-ring strong {grid-area:1/1}
.pd-ring strong {font-size:1.4rem;letter-spacing:-.04em}
.pd-ring circle {fill:none;stroke-width:9}
.pd-ring .track {stroke:#e5def2}
.pd-ring .value {stroke:var(--pd-success);transform:rotate(-90deg);transform-origin:center}
#pdAttention {display:block;background:#fff0db;color:#714307;border:1px solid #eacb9c;border-radius:10px;min-height:44px;margin:0 auto 10px}
#pdAttention[hidden] {display:none}
.pd-person {display:inline-grid;place-items:center;vertical-align:middle;margin-right:8px;width:32px;height:32px;color:#563281;background:#eee8f8;border-radius:10px;font-weight:750;font-size:.76rem}
.staff-table-scroll tbody tr:nth-child(3n+2) .pd-person {background:#deeff7;color:#225674}
.staff-table-scroll tbody tr:nth-child(3n) .pd-person {background:#f9e8dd;color:#794328}
.staff-table-scroll td {padding-block:11px}
#appView .staff-shortcuts .primary {box-shadow:none;min-height:44px}
#appView .dashboard-tabs button {display:inline-flex;align-items:center;gap:9px}
@media(min-width:1000px) {
 body:has(#appView:not([hidden])):not(:has(.driver-layout)) {padding-left:210px}
 body:has(#appView:not([hidden])):not(:has(.driver-layout)) #staffRail:not([hidden]) {
   position:fixed;inset:0 auto 0 0;z-index:12;width:210px;margin:0;padding:22px 14px;display:flex;flex-direction:column;align-items:stretch;gap:6px;
   border:0;background:linear-gradient(165deg,#311752,#201132 74%,#512a78);border-radius:0;
 }
 #staffRail .pd-rail-brand {display:grid;grid-template-columns:44px 1fr;column-gap:9px;color:white;font-size:1.4rem;font-weight:800;line-height:1;align-items:end}
 .pd-rail-brand img {width:44px;height:44px;grid-row:span 2}
 .pd-rail-brand small {font-size:.92rem;font-weight:500;align-self:start}
 #staffRail .pd-rail-product {display:block;color:#e4d4fa;border-block:1px solid #684e85;font-size:.83rem;font-weight:650;margin:17px 0 7px;padding:13px 8px}
 #appView #dashboardTabs button {justify-content:start;min-height:46px;padding:10px 12px;color:#f2eafc;background:transparent;border:1px solid transparent;border-radius:10px;box-shadow:none}
 #appView #dashboardTabs button[aria-selected=true]{background:#6537a2;color:white;border-color:#8958c9}
 #appView #dashboardTabs button:hover {background:#493061}
 body:not(:has(.driver-layout)) #appView .staff-shortcuts {display:flex;justify-content:flex-end;margin:0 0 8px}
}
body:has(.driver-layout) #appView .pd-workhead .heading {background:linear-gradient(112deg,#261442,#56277f 85%);min-height:74px}
body:has(.driver-layout) #appView .heading h1 {color:white}
body:has(.driver-layout) #appView .pd-workhead {margin-bottom:8px}
body:has(.driver-layout) #appView .v10-panel {border:1px solid var(--pd-line);border-radius:var(--pd-radius);padding:14px;background:white;color:var(--pd-ink)}
body:has(.driver-layout) #appView .driver-nav strong {color:#423353}
.pd-run-overview {display:flex;align-items:center;gap:12px;background:#f5f0fa;border-radius:13px;padding:5px 12px;margin:4px 0 10px}
.pd-run-overview .pd-ring {width:66px;flex:none}
.pd-run-overview .pd-ring strong {font-size:1rem}
.pd-run-overview .route-metrics {font-size:.95rem;line-height:1.4}
.pd-journey {isolation:isolate;min-width:0}
.pd-journey .street-map {height:clamp(185px,26vh,300px)}
.pd-journey>.small:empty {display:none}
body:has(.driver-layout) #appView .pd-journey .next-destination {position:relative;margin:0 0 12px;background:white;color:var(--pd-ink);border:1px solid #d3c4e3;border-radius:17px;padding:16px;box-shadow:0 7px 20px #33204912}
body:has(.driver-layout) #appView .next-destination h3 {font-size:1.4rem;line-height:1.15;margin:5px 0}
.pd-journey .next-destination>button {min-height:48px}
body:has(.driver-layout) #appView .next-destination .primary {background:#6027b2;color:white}
body:has(.driver-layout) #appView .next-destination .primary+.primary {background:#146748;color:white}
#appView .driver-nav button {min-height:46px}
.driver-action-sheet,.failure-dialog,.pickup-dialog {border-radius:20px;padding:22px;border:1px solid var(--pd-line)}
.failure-dialog:has(.failure-form) {border-top:5px solid #ab304d}
.failure-form select,.failure-form button,.driver-action-sheet button {min-height:46px}
.failure-form button[type=submit] {background:#9b2540;color:white}
#toast.pd-success {position:fixed;z-index:40;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:92vw;display:flex;align-items:center;gap:10px;background:#0d593e;color:white;border:1px solid #82c69d;border-radius:15px;padding:16px 22px;box-shadow:0 8px 28px #132b2040}
#toast.pd-success:not(.show){display:none}
@media(max-width:700px){
 .pd-operations {grid-template-columns:1fr}
 #todayCounts {grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:7px}
 #todayCounts .today-metric {padding:9px}
 #appView .pd-workhead .heading,#appView .pd-workhead .toolbar {padding:10px 12px}
 .pd-person {display:none}
 body:has(.driver-layout) main {padding:8px 8px 20px}
 body:has(.driver-layout) #appView .v10-panel {padding:10px}
 .pd-journey .map-legend,.pd-journey .map-attribution {font-size:.72rem}
}

.pd-head-actions {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#appView .pd-head-actions .staff-shortcuts:not([hidden]) {margin:0;display:block}
body:not(:has(.driver-layout)) #appView .pd-workhead .heading .eyebrow {display:block}
body:not(:has(.driver-layout)):has(#appView:not([hidden])) .goat-platform {
 background:white;color:var(--pd-ink);box-shadow:none;border-bottom:1px solid var(--pd-line);
}
body:not(:has(.driver-layout)):has(#appView:not([hidden])) .goat-platform :is(summary,.goat-platform-nav span,.goat-platform-nav a,.header-context){color:var(--pd-ink)}
body:not(:has(.driver-layout)):has(#appView:not([hidden])) .goat-platform-nav [aria-current]{background:#eee6fa}
body:not(:has(.driver-layout)):has(#appView:not([hidden])) .goat-platform :is(summary,a):hover {background:#ece5f6}
#appView .staff-action-trigger {min-height:44px}
#appView .staff-delivery-table thead th {background:#f3eff8;color:#4c405d;font-size:.78rem;padding-block:9px}
#appView .staff-delivery-table tbody tr:focus-within {background:#f7f3ff}
@media(max-width:600px){.pd-head-actions{gap:4px}.pd-head-actions button{padding:8px;min-height:44px}}
#toast.pd-success.show {background:white;color:#134c38;border:1px solid #93c9aa;border-top:4px solid #237644;width:min(360px,92vw);justify-content:flex-start}
#toast.pd-success .pd-icon {background:#ddf5e8;border-radius:50%;width:42px;height:42px;padding:9px;color:#146748}
.pd-receipt-body {display:grid;gap:3px;line-height:1.25}
.pd-receipt-body strong {font-size:1.1rem}
.pd-receipt-body span {font-size:.82rem;color:#425e51}
@media(min-width:850px){
 .pd-journey {display:grid;grid-template-columns:minmax(0,1.4fr) minmax(300px,1fr);align-items:start;gap:0 16px}
 .pd-journey>.v10-map {grid-column:1;grid-row:1}
 .pd-journey>.small {grid-column:1;grid-row:2}
 .pd-journey>.next-destination {grid-column:2;grid-row:1 / span 2}
 .pd-journey .street-map {height:clamp(240px,30vh,350px)}
}

/* GOAT PD workspace palette and operational surfaces */
:root {--pd-midnight:#241052;--pd-violet:#6425D8;--pd-lavender:#A777F4;--pd-canvas:#F6F3FC;--pd-green:#14A46C;--pd-ink:#241637;--pd-line:#e0daeb;--pd-success:#14A46C}
body:has(#appView:not([hidden])) {background:var(--pd-canvas)}
#appView .heading h1 {font-weight:780;letter-spacing:-.055em}
#appView .pd-workhead {box-shadow:0 5px 20px #2e15540b;border-color:#dcd0ee}
body:not(:has(.driver-layout)) #appView .pd-workhead .heading {
 background:linear-gradient(90deg,#f9f5ff 8%,#f5edffed 32%,#f5edff00 67%),url('/brand/ranges.svg#dashboard') center/100% 100%;
 min-height:116px;align-items:flex-start;padding:18px 22px;
}
/* The decorative flex item uses only the space left by the heading and actions. */
body:not(:has(.driver-layout)) #appView .pd-workhead .heading::after {
 content:"";order:1;align-self:stretch;flex:1 1 0;min-width:0;margin-block:-18px;
 margin-inline-end:clamp(0px, 2vw, 40px);
 background:url('/brand/dashboard-summit.svg') right bottom / contain no-repeat;
 pointer-events:none;
}
body:not(:has(.driver-layout)) .pd-workhead .pd-head-actions {order:2}
@media(max-width:700px){
 body:not(:has(.driver-layout)) #appView .pd-workhead .heading::after {display:none}
}
.pd-workhead .eyebrow b {color:#927ba7;margin:0 .25rem}
#appView .heading .primary,#appView .next-destination .primary:first-of-type {background:var(--pd-violet);color:white}
#appView .pd-workhead .toolbar {background:#fefcff;border-top:1px solid #e4d9ef;padding-block:9px}
#appView .toolbar label {font-weight:700}
#appView .toolbar select {background-color:white}
#staffToday>h2 {font-size:1.12rem;letter-spacing:-.035em}
#todayCounts .today-metric {position:relative;display:flex;flex-direction:column-reverse;justify-content:center;align-items:start;min-height:88px;padding:13px 12px 13px clamp(48px,4.1vw,66px);gap:4px;background:linear-gradient(125deg,var(--tint),white 84%);border-color:color-mix(in srgb,var(--accent) 21%,white);box-shadow:0 3px 10px #24105208}
#todayCounts dt {font-size:.8rem;color:#42384e;line-height:1.2;font-weight:680}
#todayCounts dt svg {position:absolute;left:12px;top:50%;transform:translateY(-50%);width:clamp(30px,2.8vw,42px);height:auto;padding:7px;background:var(--tint);color:var(--accent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 18%,transparent);border-radius:12px}
#todayCounts dd {font-size:clamp(1.65rem,2.3vw,2.3rem);font-weight:780;font-variant-numeric:tabular-nums}
#todayCounts .today-metric:nth-child(1){--accent:#6425d8;--tint:#ede1ff}
#todayCounts .today-metric:nth-child(2){--accent:#1856af;--tint:#deedff}
#todayCounts .today-metric:nth-child(3){--accent:#087047;--tint:#dbf7e9}
#todayCounts .today-metric:nth-child(5){--accent:#925410;--tint:#fff0cf}
.pd-operations {grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr)}
.pd-operations>section {box-shadow:0 4px 14px #24105209;border-radius:18px}
.pd-operations header {padding:15px 18px 11px}
#pdMap .street-map {height:clamp(198px,22vh,260px)}
#pdProgress {grid-template-columns:1fr 1fr;align-items:center;gap:7px;padding:8px 18px}
#pdProgress>p {grid-column:1/-1;margin:4px 0}
.pd-progress-legend {display:grid;gap:10px;justify-self:stretch;margin:0;font-size:.84rem}
.pd-progress-legend div {display:flex;justify-content:space-between;gap:8px;align-items:center}
.pd-progress-legend dt:before {content:'';display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:8px;background:var(--pd-lavender)}
.pd-progress-legend div:nth-child(2) dt:before {background:#2476ce}
.pd-progress-legend div:nth-child(3) dt:before {background:var(--pd-green)}
.pd-progress-legend dd {margin:0;font-weight:750;font-variant-numeric:tabular-nums}
.pd-quiet {grid-column:1/-1;align-self:center;justify-self:center;text-align:center;max-width:255px;padding:8px 5px}
.pd-quiet>.pd-icon {display:block;background:#ede2fc;color:#6425d8;width:52px;height:52px;padding:14px;margin:0 auto 9px;border-radius:18px}
#pdProgress .pd-quiet p {font-weight:450;line-height:1.5;margin:6px 0}
.pd-progress-card {display:flex;flex-direction:column;background:radial-gradient(ellipse at top right,#efe6ff,transparent 63%),white}
.pd-progress-card #pdProgress {flex:1}
#pdAttention {margin:0 14px 13px;width:calc(100% - 28px);text-align:left;padding:9px 12px;font-weight:650}
#appView .staff-delivery-table th {text-transform:uppercase;letter-spacing:.055em;font-size:.7rem}
#appView .staff-delivery-table td {border-bottom:1px solid #ede9f2;padding-block:10px}
#appView .staff-delivery-table tbody tr:hover {background:#faf7ff}
#appView .staff-action-trigger {background:#f8f4ff;border-color:#d9cbed;color:#442674}
#appView #staffDeliveryPeriod button[aria-pressed=true],#appView .driver-nav button[aria-pressed=true]{background:#eee4ff;color:#4b198e;border-color:#cdb4ed;box-shadow:none}
body:has(.driver-layout) .goat-platform {background:var(--pd-midnight)}
body:has(.driver-layout) #appView .pd-workhead .heading {background:linear-gradient(105deg,#241052 18%,#482289 81%,#6425d8)}
body:has(.driver-layout) #appView .pd-journey .next-destination {border-top:4px solid var(--pd-violet)}
.pd-run-overview {background:linear-gradient(115deg,#e9dcff,#faf7ff);border:1px solid #e1d3f1}
@media(min-width:1000px){
 body:has(#appView:not([hidden])):not(:has(.driver-layout)) #staffRail:not([hidden]) {padding:24px 13px;background:radial-gradient(ellipse at 90% 110%,#7139a3 0,transparent 35%),linear-gradient(165deg,#321465,#241052 42%,#201044)}
 #staffRail .pd-rail-brand {padding:3px 6px;background:transparent;font-weight:750;font-size:1.5rem}
 #staffRail .pd-rail-brand small {font-weight:450}
 #staffRail .pd-rail-product {display:block;background:#ffffff0e;border:1px solid #ffffff27;border-radius:12px;color:white;font-size:.95rem;line-height:1.4;letter-spacing:.035em;margin:19px 0 12px;padding:10px 14px}
 .pd-rail-product small {display:block;color:#dfd0f6;font-size:.72rem;letter-spacing:0}
 #appView #dashboardTabs button[aria-selected=true] {background:linear-gradient(105deg,#6425d8,#553197);border-color:#9772d0;box-shadow:0 3px 8px #19063240}
 body:not(:has(.driver-layout)):has(#appView:not([hidden])) .goat-platform {grid-template-columns:1fr auto}
 body:not(:has(.driver-layout)):has(#appView:not([hidden])) .goat-platform .goat-brand {display:none}
 body:not(:has(.driver-layout)):has(#appView:not([hidden])) .goat-platform-nav {justify-content:start}
}
@media(max-width:850px){.pd-operations {grid-template-columns:minmax(0,1.25fr) minmax(230px,1fr)}}
@media(max-width:700px){
 .pd-operations {grid-template-columns:1fr}
 #todayCounts .today-metric {min-height:66px;padding:8px 6px 8px 35px}
 #todayCounts dt {font-size:.72rem}
 #todayCounts dt svg {width:24px;left:6px;padding:4px}
 #appView .pd-workhead .heading {gap:6px}
 body:not(:has(.driver-layout)) #appView .pd-workhead .heading {flex-wrap:wrap;padding:14px}
}
.pd-progress-legend div:nth-child(4) dt:before {background:#b13b52}
.pd-progress-legend div:nth-child(5) dt:before {background:#ac6b16}
#pdProgress .pd-first-delivery {background:#6425d8;color:white;border:0;min-height:44px;padding:8px 16px;margin:6px auto 0;border-radius:10px;font-weight:700}
#pdMap .street-stop[data-delivery-status] {width:27px;height:27px;min-width:27px;min-height:27px;border-radius:50% 50% 50% 5px;background:#6739b3;color:white;border:2px solid white;font-size:1rem;padding:0;box-shadow:0 1px 5px #24105256}
#pdMap .street-stop[data-delivery-status=out] {background:#245eaa}
#pdMap .street-stop[data-delivery-status=delivered] {background:#167146}
#pdMap .street-stop[data-delivery-status=failed] {background:#a83148}
#pdMap .street-stop[data-delivery-status=returned] {background:#8b581c}
@media(min-width:1000px){
 #staffRail:after {content:'';display:block;margin:auto -13px -24px;height:90px;pointer-events:none;background:linear-gradient(0deg,#43216c55,#241052),url('/brand/ranges.svg') bottom right/cover;opacity:.65}
}

/* The same pharmacy control sits in the staff rail or the driver header. */
.driver-pharmacy-label,.pd-workhead .staff-pharmacy-label {display:none}
.pd-workhead .driver-pharmacy-label {display:inline}
#staffRail {min-width:0}
#staffRail #pharmacyContext {color:#f9f5ff;background:#ffffff0c;border:1px solid #ffffff30;border-radius:12px;padding:9px;display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center;margin:0 0 8px;box-shadow:none}
#staffRail #pharmacyContext label {flex:0 0 100%;position:relative;display:grid;gap:4px;width:100%;min-width:0;font-size:.73rem;color:#e8dafc;font-weight:600}
#staffRail #pharmacyContext #pharmacy {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6'%3E%3Cpath d='M3 10l2-6h14l2 6c-1 3-4 3-6 1-2 2-4 2-6 0-2 2-4 2-6-1zm2 3v7h14v-7M10 20v-5h4v5'/%3E%3C/svg%3E") ;background-repeat:no-repeat;background-size:16px;background-position:left 7px center}
#staffRail #pharmacy {font:inherit;font-size:.87rem;font-weight:650;min-height:44px;width:100%;min-width:0;padding:8px 19px 8px 28px;text-overflow:ellipsis;overflow:hidden;background-color:#452775;color:white;border:1px solid #8d6db8;border-radius:8px;color-scheme:dark}
#staffRail #pharmacy option {color:#241052;background:white}
#staffRail #connection,#staffRail #roleBadge {display:inline-flex;align-items:center;gap:4px;min-width:0;padding:2px 0;border:0;background:transparent;color:#e7dbfd;font-size:.7rem;white-space:normal}
#staffRail #connection:before {content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:#ffd380;flex:none}
#staffRail #connection.ok:before {background:#65dfb0}
#staffRail #retryConnectionBtn {min-height:44px;background:#fff0d2;color:#583600;border-color:#ffd380}
#staffRail #pharmacy:focus-visible {outline:3px solid #cfb3ff;outline-offset:2px}
@supports (appearance:base-select){
 #staffRail #pharmacy,#staffRail #pharmacy::picker(select) {appearance:base-select}
 #staffRail #pharmacy {display:flex;align-items:center;gap:4px;white-space:normal;overflow-wrap:break-word;padding-right:8px}
 #staffRail #pharmacy::picker-icon {margin-left:auto;color:#eadcff}
 #staffRail #pharmacy::picker(select) {min-width:anchor-size(width);max-width:min(290px,92vw);margin-top:3px;background:white;color:#241052;border:1px solid #ad94ca;border-radius:10px;box-shadow:0 8px 24px #24105233}
 #staffRail #pharmacy option {white-space:normal;padding:10px;min-height:40px}
 #staffRail #pharmacy option:checked,#staffRail #pharmacy option:hover {background:#f1e8ff}
}
@media(min-width:1000px){
 #staffRail {overflow-y:auto}
 #staffRail #dashboardTabs {display:flex;flex-direction:column;gap:5px;margin:0;border:0;padding:0}
 #staffRail .pd-rail-product {margin-bottom:3px}
 body:not(:has(.driver-layout)) #appView .pd-workhead .heading {align-items:center;min-height:92px}
}
@media(max-width:999px){
 #staffRail {background:#241052;border-radius:14px;padding:10px;margin:0 0 12px}
 #staffRail #pharmacyContext {max-width:480px;margin:0 auto 6px}
 #staffRail #dashboardTabs {display:flex;flex-wrap:wrap;gap:4px;padding:0;border:0;margin:0}
 #appView #staffRail #dashboardTabs button {min-width:0;min-height:44px;flex:1 1 90px;justify-content:center;background:transparent;color:#f8f5ff;border:0;box-shadow:none}
 #appView #staffRail #dashboardTabs button[aria-selected=true] {background:#6425d8}
}

/* Signed-out entry. Keep every layout rule local to this surface. */
body:has(.pd-landing:not([hidden])) {background:#f6f3fc;color:#26173b}
body:has(.pd-landing:not([hidden])) main {width:100%;max-width:1360px;margin:auto;padding:16px clamp(14px,3vw,48px) 28px}
body:has(.pd-landing:not([hidden])) .goat-platform {background:#241052}
body:has(.pd-landing:not([hidden])) .goat-brand::after {content:'Pharmacy';font-size:.85em;letter-spacing:0;font-weight:500}
body:has(.pd-landing:not([hidden])) .notice {background:#fffaf0;border-color:#e7dcc5;color:#614b26;margin:0 0 14px;box-shadow:none}
.pd-landing {display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);isolation:isolate;background:#fff;border:1px solid #dcd3e9;border-radius:24px;overflow:hidden;box-shadow:0 16px 48px #30144812}
.pd-landing[hidden] {display:none}
.pd-intro {display:flex;flex-direction:column;justify-content:space-between;min-width:0;color:white;background:radial-gradient(ellipse at 96% 90%,#9252ce,transparent 66%),linear-gradient(140deg,#241052,#3a1674 65%,#6031a3)}
.pd-intro-copy {padding:clamp(26px,4vw,62px) clamp(24px,4vw,68px) 22px}
.pd-product {display:flex;align-items:center;gap:11px}
.pd-product img {border-radius:12px;border:1px solid #aa8bd059}
.pd-product strong,.pd-product small {display:block;line-height:1.3}
.pd-product strong {font-size:1.12rem;letter-spacing:.035em}
.pd-product small {color:#e5d6fa;font-size:.84rem}
.pd-intro h1 {margin:clamp(30px,4vw,64px) 0 17px;color:white;font-size:clamp(2.5rem,4.55vw,4.7rem);line-height:.99;letter-spacing:-.058em;font-weight:730}
.pd-intro h1 em {display:block;margin-top:.10em;color:#e0c3ff;font-family:Georgia,serif;font-weight:450;letter-spacing:-.052em}
.pd-intro-detail {font-size:clamp(1rem,1.3vw,1.16rem);line-height:1.55;max-width:40ch;color:#f0e8ff;margin:0}
.pd-benefits {display:flex;flex-wrap:wrap;gap:7px 15px;list-style:none;margin:24px 0 0;padding:0;font-size:.8rem;font-weight:650}
.pd-benefits li::before {content:'✓';color:#debbff;margin-right:5px}
.pd-landscape {min-height:clamp(128px,12vw,180px);background:linear-gradient(to bottom,#51278d 0%,transparent 44%),url('/brand/ranges.svg') right bottom/cover;mask-image:linear-gradient(to bottom,transparent,#000 35%)}
.pd-signin {display:grid;place-items:center;padding:clamp(28px,3.8vw,64px);min-width:0}
.pd-signin-inner {width:100%;max-width:400px;min-width:0}
.pd-key {width:48px;height:48px;padding:11px;border-radius:15px;background:#f0e7ff;stroke:#612ab5;fill:none;stroke-width:1.7;stroke-linecap:round}
.pd-signin h2 {font-weight:730;color:#241052;font-size:clamp(1.8rem,2.6vw,2.65rem);letter-spacing:-.05em;line-height:1.12;margin:19px 0 10px}
#signinInstructions {line-height:1.55;color:#584c66;margin:0 0 24px}
.pd-signin :is(#loginBtn,#legacyDriverLoginBtn) {min-height:50px;width:100%;display:flex;align-items:center;justify-content:center;gap:10px;border-radius:10px;font-weight:700;line-height:1.3;padding:11px}
.pd-signin #loginBtn {background:#6425d8;color:white;border:1px solid #5521bc}
.pd-signin #loginBtn:hover {background:#5220b2}
.pd-signin #legacyDriverLoginBtn {background:white;color:#402267;border:1px solid #cfc0df;margin-top:9px}
.pd-ms-mark {width:16px;height:16px;flex:none;background:linear-gradient(to right,transparent 45%,#6425d8 45% 55%,transparent 55%),linear-gradient(to bottom,white 45%,transparent 45% 55%,white 55%)}
.pd-signin button:focus-visible {outline:3px solid #8450d9;outline-offset:3px}
.pd-login-help {border-top:1px solid #e6dfef;margin-top:24px;padding-top:17px;color:#514560;font-size:.84rem;line-height:1.55}
.pd-login-help strong {color:#38254a}
.pd-login-help p {margin:4px 0 0}
.pd-signin #loginProgress:empty {display:none}
.pd-signin #loginProgress:not(:empty) {padding:10px 12px;margin:13px 0 0;background:#f1eaff;border-radius:8px;color:#462076}
.pd-signin .auth-failure {min-width:0;overflow-wrap:anywhere}
@media(max-width:820px){
 .pd-intro-copy {padding:28px 22px 16px}
 .pd-signin {padding:25px}
 .pd-intro h1 {font-size:clamp(2rem,4.65vw,3rem)}
}
@media(max-width:650px){
 body:has(.pd-landing:not([hidden])) main {padding:8px 10px 18px}
 .pd-landing {grid-template-columns:minmax(0,1fr);border-radius:17px}
 .pd-intro {position:relative;isolation:isolate}
 .pd-intro-copy {padding:17px 18px 20px}
 .pd-product img {width:32px;height:32px}
 .pd-product strong {font-size:.95rem}
 .pd-product small {font-size:.72rem}
 .pd-intro h1 {font-size:clamp(1.65rem,6vw,2.3rem);margin:14px 0 0;max-width:16ch}
 .pd-intro-detail,.pd-benefits {display:none}
 .pd-landscape {position:absolute;inset:0 0 0 55%;z-index:-1;min-height:0;opacity:.72;mask-image:linear-gradient(to right,transparent,#000 60%)}
 .pd-signin {padding:20px 18px 22px}
 .pd-key {display:none}
 .pd-signin h2 {margin-top:0}
 #signinInstructions {margin-bottom:15px}
 .pd-login-help {margin-top:18px;padding-top:12px}
 body:has(.pd-landing:not([hidden])) .notice {margin-bottom:8px}
}
@media(max-width:650px){
 body:has(.pd-landing:not([hidden])) .goat-platform {display:flex;flex-wrap:nowrap;gap:6px;padding:7px 10px}
 body:has(.pd-landing:not([hidden])) .goat-brand {gap:4px;font-size:.93rem}
 body:has(.pd-landing:not([hidden])) .goat-brand img {width:24px;height:24px}
 body:has(.pd-landing:not([hidden])) .goat-platform-nav {margin-left:auto;min-width:0;flex:none;width:auto}
 body:has(.pd-landing:not([hidden])) .goat-platform-nav [aria-current] {display:none}
 body:has(.pd-landing:not([hidden])) .goat-platform-nav a {min-height:44px;padding:5px;font-size:.75rem}
 body:has(.pd-landing:not([hidden])) .goat-platform-account {flex:none;width:auto}
 body:has(.pd-landing:not([hidden])) .goat-platform-account summary {min-height:44px;padding:8px}
 .pd-intro-copy {padding-block:13px}
 .pd-signin :is(#loginBtn,#legacyDriverLoginBtn) {font-size:.95rem}
}
@media(max-width:380px){
 body:has(.pd-landing:not([hidden])) .goat-platform {flex-wrap:wrap}
 body:has(.pd-landing:not([hidden])) .goat-brand::after {content:none}
}

/* The driver shell uses the same authorised controls across its four views. */
#driverDate:empty,#appView:not(:has(.driver-layout)) #driverDate {display:none}
#appView[data-driver-view=home] #deliveryWorkspace {display:none}
body:has(#appView:not([hidden]) .driver-layout) {background:#f6f3fc}
body:has(.driver-layout) #appView .heading {margin:0;border-radius:18px;background:#241052 url('/brand/ranges.svg') right bottom/auto 100% no-repeat;color:white}
body:has(.driver-layout) #appView .heading>div:first-child {background:#241052ed;border-radius:10px;padding:5px 9px;min-width:0}
#driverDate {color:#f1e7ff;display:block;overflow-wrap:anywhere;margin-top:3px}
#driverHome {max-width:44rem;margin:auto;display:grid;gap:10px}
#driverHome[hidden],#pickupProgress[hidden],#driverScope[hidden] {display:none}
.shift-card,.drive-link,#pickupProgress {border:1px solid #ddd2ef;border-radius:18px;background:white;color:#291745;padding:16px;box-shadow:0 3px 12px #34185c0a}
.shift-card {display:grid;grid-template-columns:minmax(74px,.72fr) 1.3fr;align-items:center;gap:16px;background:linear-gradient(135deg,#eee5ff,white 60%)}
#shiftProgress {justify-self:center}
#shiftProgress .pd-ring {width:90px;color:#271341}
#shiftProgress .pd-icon {width:44px;height:44px;color:#6425d8}
#shiftCounts {margin:0;display:grid;gap:8px}
#shiftCounts div {display:flex;align-items:center;justify-content:space-between;gap:8px}
#shiftCounts dt {font-size:.88rem;font-weight:600}
#shiftCounts dt:before {content:'';display:inline-block;width:9px;height:9px;border-radius:50%;background:#138759;margin-right:7px}
#shiftCounts div:nth-child(2) dt:before {background:#3474c5}
#shiftCounts div:nth-child(3) dt:before {background:#8957ca}
#shiftCounts dd {font-weight:750;margin:0}
.drive-link {display:grid;text-align:left;gap:4px;padding:15px 42px 15px 17px;position:relative}
.drive-link:after {content:'›';position:absolute;right:16px;top:50%;transform:translateY(-50%);font-size:1.5rem;color:#6425d8}
.drive-link small {color:#68448e;font-weight:700}
.drive-link strong {font-size:1.08rem}
.drive-primary {border:0;border-radius:12px;background:linear-gradient(110deg,#7537e1,#5419ad);color:white;min-height:50px;font-size:1rem;font-weight:700}
.drive-primary span {margin-left:6px}
#driverScope {max-width:44rem;margin:12px auto;color:#492765}
#driverScope summary {padding:12px 4px;font-weight:650;cursor:pointer}
#driverScope .toolbar {margin:0}
#pickupProgress {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-block:10px}
body:has(.driver-layout) #appView .next-destination {overflow-wrap:anywhere}
body:has(.driver-layout) #appView .next-destination h3 {font-size:1.45rem}
body:has(.driver-layout) .collection-group-heading {padding:10px 14px;background:#ede5f8;color:#43216b;border-radius:10px}
body:has(.driver-layout) .delivery {border:1px solid #dcd1e9;border-radius:15px;background:white;box-shadow:0 3px 10px #24105209}
body:has(.driver-layout) #appView .driver-nav button {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;background:transparent;color:#4e435b;padding:6px;min-width:0}
body:has(.driver-layout) #appView .driver-nav button[aria-pressed=true] {color:#55219e;background:#eee6fa}
body:has(.driver-layout) .driver-nav .pd-icon {width:19px;height:19px}
body:has(.driver-layout) #appView .driver-nav {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;background:white;border:1px solid #d9cdea;border-radius:14px;padding:4px}
body:has(.driver-layout) #appView #driverNav[hidden] {display:none}
@media(max-width:700px){
 body:has(.driver-layout) main {padding:8px 12px calc(88px + env(safe-area-inset-bottom))}
 body:has(.driver-layout) .goat-platform {display:flex;gap:6px;justify-content:space-between;padding:5px 9px}
 body:has(.driver-layout) .goat-brand {font-size:0;gap:0}
 body:has(.driver-layout) .goat-brand img {width:27px;height:27px}
 body:has(.driver-layout) .header-context {display:none}
 body:has(.driver-layout) .goat-platform-nav {gap:2px;flex:1;justify-content:flex-start}
 body:has(.driver-layout) .goat-platform-nav>* {flex:none;padding:6px;font-size:.8rem}
 body:has(.driver-layout) .goat-platform-account summary {padding:6px;font-size:.8rem}
 body:has(.driver-layout) #appView .driver-nav {position:fixed;z-index:15;inset:auto 0 0;border-radius:15px 15px 0 0;padding:4px 8px max(5px,env(safe-area-inset-bottom));box-shadow:0 -3px 20px #30164d12;margin:0}
 body:has(.driver-layout) #appView .driver-nav button {font-size:.76rem;min-height:48px}
 body:has(.driver-layout) #appView .heading h1 {font-size:1.55rem}
 body:has(.driver-layout) .pd-workhead {margin:0 0 12px}
 body:has(.driver-layout) #appView .pd-workhead .heading {min-height:72px;padding:8px}
 body:has(.driver-layout) #appView .pd-journey {display:flex;flex-direction:column}
 body:has(.driver-layout) #appView .pd-journey .v10-map {order:0}
 body:has(.driver-layout) #appView .pd-journey .next-destination {order:1;margin:0;background:white;border-radius:0 0 16px 16px}
 body:has(.driver-layout) .pd-journey .street-map {height:clamp(180px,27svh,300px)}
 body:has(.driver-layout) .next-destination button {min-height:48px}
 body:has(.driver-layout) #toast {bottom:calc(74px + env(safe-area-inset-bottom))}
 body:has(.driver-layout) :is(.driver-action-sheet,.failure-dialog,.pickup-dialog) {width:min(100%,30rem);max-width:100%;margin:auto auto 0;border-radius:20px 20px 0 0;padding:20px 16px max(22px,env(safe-area-inset-bottom));max-height:88svh;overflow:auto}
 body:has(.driver-layout) :is(.driver-action-sheet,.failure-dialog,.pickup-dialog)::backdrop {background:#20113485}
 body:has(.driver-layout) #appView :is(button,summary,a,input,select):focus-visible {outline:3px solid #995be6;outline-offset:2px}
}
#appView[data-driver-view=stop] :is(.pd-journey .v10-map,.pd-journey>.small,.stop-details,.pd-run-overview,#deliveryWorkspace) {display:none}
#appView[data-driver-view=stop] #v10Panel:has(.next-destination)>:is(h2,.primary,.route-details,details) {display:none}
#appView[data-driver-view=stop] .next-destination {display:grid;gap:6px}
#appView[data-driver-view=stop] .next-destination button {width:100%;min-height:48px;margin:0}
.stop-details {color:#57269f;background:#f2ebff;border:1px solid #dbcbf4}
.failure-choices {display:grid;gap:5px;min-width:0;padding:0;border:0;margin:12px 0}
.failure-choices legend {font-weight:700;margin-bottom:7px}
.failure-choices label {display:flex;align-items:center;gap:10px;padding:8px 12px;min-height:44px;border-radius:10px;border:1px solid #d8cce7;background:white;color:#321e4f}
.failure-choices label:has(:checked) {border-color:#7948c4;background:#f1eaff}
.failure-choices input {width:20px;height:20px;margin:0;accent-color:#6425d8}
#driverRunStatus {margin:0;padding-inline:4px;color:#52366b;font-size:.9rem;font-weight:650}
#driverRunStatus:empty {display:none}
#shiftCounts div:nth-child(4) dt:before {background:#ae4255}
.drive-link {grid-template-columns:36px minmax(0,1fr);column-gap:12px;align-items:center}
.drive-link>.pd-icon {grid-row:1 / span 3;width:36px;height:36px;padding:8px;border-radius:10px;background:#eee5ff;color:#602ab5}
.drive-link>small,.drive-link>strong,.drive-link>span {grid-column:2}
#driverHome .drive-link[hidden] {display:none}
body:has(.driver-layout) .street-stop-delivery:not(.stop-complete) {background:#6425d8}
body:has(.driver-layout) footer,body:has(.driver-layout)>footer a {color:#554766}
body:has(.driver-layout)>footer {padding-bottom:calc(75px + env(safe-area-inset-bottom))}
@media(max-width:700px){
 body:has(.driver-layout) .goat-brand {font-size:.84rem;gap:4px;letter-spacing:0}
 body:has(.driver-layout) #appView .pd-workhead .heading {background:linear-gradient(100deg,#28144f,#492279);border:0;border-radius:15px}
 body:has(.driver-layout) #appView .heading>div:first-child {background:transparent}
 body:has(.driver-layout) #appView .heading h1 {line-height:1.15}
 body:has(.driver-layout) #v10Panel>.route-details {clear:both}
}

#homeDestination {border-radius:18px;border:1px solid #cebbe9;border-top:4px solid #6425d8;background:white;padding:12px;overflow-wrap:anywhere}
#homeDestination[hidden],.stop-actions[hidden] {display:none}
#homeDestination .drive-link {width:100%;box-shadow:none;border:0;padding:4px 25px 8px 2px}
#homeDestination .drive-link strong {font-size:1.25rem}
#homeDestination .drive-link span {font-size:1rem;color:#342345;line-height:1.35}
#homeWarnings p {margin:4px 0;padding:5px 8px}
.stop-actions {display:flex;flex-wrap:wrap;gap:6px;align-items:stretch;margin-top:8px}
.stop-actions button,#appView[data-driver-view=stop] .stop-actions button {flex:1 1 auto;width:auto;min-height:44px;min-width:44px;margin:0;padding:6px 8px;border-radius:10px}
#homeDeliver {background:#116648;border:0;color:white;font-weight:700}
#homeMore {background:white;border:1px solid #c9bdd8;color:#352347}
.run-completion {padding:14px 16px;border-radius:15px;border:1px solid #d4c3e7;background:linear-gradient(125deg,#f2eafa,#fff)}
.run-completion h3 {margin:0;color:#33204b}
@media(max-width:700px){
 body:has(.driver-layout) .goat-platform {padding:0 10px;min-height:44px}
 body:has(.driver-layout) .goat-platform-account summary {min-width:44px;min-height:44px;display:grid;align-items:center;border:0}
 body:has(.driver-layout) .goat-account-panel a:not([hidden]) {display:block;padding:12px;color:#492279}
 body:has(.driver-layout) main>.notice {padding:4px 8px;margin:0 0 6px;gap:0 6px;font-size:.75rem;line-height:1.3}
 body:has(.driver-layout) #appView .pd-workhead .heading {min-height:48px;padding:2px 8px}
 body:has(.driver-layout) #appView .heading h1 {font-size:1.15rem;margin:0}
 body:has(.driver-layout) #driverDate {font-size:.75rem;margin:0}
 body:has(.driver-layout) #appView .pd-workhead {margin-bottom:6px}
 #driverHome .shift-card {padding:8px 12px;grid-template-columns:54px 1fr;gap:12px}
 #shiftProgress .pd-ring {width:52px}
 #shiftCounts {gap:2px}
 #appView[data-driver-view=stop] .next-destination .stop-actions {position:fixed;z-index:14;inset:auto 0 calc(57px + env(safe-area-inset-bottom)) 0;background:white;border-top:1px solid #d8cbe7;margin:0;padding:6px 10px}
 body:has(#appView[data-driver-view=stop]) main {padding-bottom:calc(155px + env(safe-area-inset-bottom))}
}

@media(max-width:700px){
 #appView[data-driver-view=stop] #v10Panel:has(.next-destination) {padding:0;background:transparent;border:0;box-shadow:none}
 body:has(.driver-layout) #appView[data-driver-view=stop] .pd-journey .next-destination {gap:3px;padding:10px 12px;border-radius:14px}
 #appView[data-driver-view=stop] .next-destination p {margin:2px 0;line-height:1.3}
}

/* Delivery annotations use the same hierarchy in the checklist, route and staff table. */
body :is(#appView,.driver-action-sheet) :is(.delivery-note,.driver-warning,.handling-note,.cash-warning,.fridge-warning,.return-alert,.failure-note) {
  --note-surface:#fce8ec;
  --note-edge:#c53c57;
  --note-ink:#a92d48;
  background:var(--note-surface);
  color:var(--note-ink);
  border-inline-start:4px solid var(--note-edge);
  padding:6px 9px;
  border-radius:6px;
  line-height:1.35;
  overflow-wrap:anywhere;
}
body :is(#appView,.driver-action-sheet) .delivery-note {
  --note-surface:#f0eaff; --note-edge:#7545cf; --note-ink:#452078;
}
body :is(#appView,.driver-action-sheet) :is(.handling-note,.cash-warning,.fridge-warning) {
  --note-surface:#e8f1ff; --note-edge:#3778d4; --note-ink:#245dad;
}
.delivery-note::before {content:'ⓘ ' / ''}
.handling-note::before {content:'↳ ' / ''}
.cash-warning::before {content:'$ ' / ''}
.driver-warning:not(.cash-warning,.handling-note,.fridge-warning,.holiday-warning)::before {content:'⚠ ' / ''}
.driver-action-sheet[open] {height:fit-content;align-content:start;grid-auto-rows:max-content;gap:8px}
.driver-action-sheet[open] :is(p,h2,h3) {margin:0}
.driver-action-sheet[open] h3 {margin-top:6px}
.ring-caption {display:block;text-align:center;color:#452078;font-size:.72rem;font-weight:650}
@media (max-width:700px) {
  body:has(.driver-layout) #appView .pd-journey .next-destination {order:-1;border-radius:14px}
  body:has(.driver-layout) #appView .pd-run-overview {padding:6px 10px;margin-bottom:8px}
  body:has(.driver-layout) #appView .pd-run-overview .pd-ring {width:44px}
  #shiftProgress .pd-ring strong {font-size:1rem}
  body:has(.driver-layout) .goat-platform-nav [aria-current=page] {padding:4px 8px}
  body:has(.driver-layout) #appView .stop-actions button {scroll-margin-bottom:calc(80px + env(safe-area-inset-bottom))}
}
