:root {
  color-scheme: light;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #281d23;
  background: #f7f5f4;
  --ink: #281d23;
  --muted: #655961;
  --line: #e8e0e3;
  --surface: #fff;
  --soft: #fbf8f9;
  --tint: #fce9ec;
  --accent: #d50b28;
  --accent-hover: #ad0820;
  --focus: #9c091a;
  --success: #205e48;
  --shadow: 0 2px 5px #3b122008, 0 12px 30px #3b122008;
  --radius: 18px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; padding-bottom: env(safe-area-inset-bottom); }
main, .bar, footer div { max-width: 1224px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 44px); }
header { background: var(--surface); border-bottom: 1px solid var(--line); }
.bar {
  min-height: calc(76px + env(safe-area-inset-top));
  padding-block: calc(12px + env(safe-area-inset-top)) 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { display: block; width: 40px; height: 40px; }
.brand strong { display: block; font-size: 1rem; line-height: 1.2; letter-spacing: -.025em; }
.brand small { display: block; margin-top: 2px; font-size: .72rem; color: var(--muted); }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.badge, .pill { display: inline-flex; align-items: center; border-radius: 100px; font-size: .75rem; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.badge { background: var(--tint); color: #9d0b1c; padding: 7px 10px; }
.language-switch { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: .75rem; color: var(--muted); }
.language-switch select { margin: 0; min-width: 110px; width: auto; max-width: 100%; }

.home-services { grid-column: 1 / -1; min-width: 0; }
.service-choices { margin-block: 8px 24px; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.service-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; text-align: start; padding: 20px; background: var(--surface); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.service-choice strong { font-size: 1.15rem; color: var(--ink); }
.service-choice span { font-weight: 400; color: var(--muted); }
.service-choice .service-cta { margin-top: auto; color: var(--accent); font-weight: 700; }
@media (max-width: 520px) { .service-grid { grid-template-columns: 1fr; } }

.landing {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 32px); align-items: start; margin-top: clamp(16px, 4vw, 44px);
}
.hero {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; gap: 12px;
  padding: clamp(20px, 3.5vw, 46px); border-radius: 26px; overflow: hidden;
  color: white; background: var(--accent);
}
.hero svg { display: block; width: 100%; max-height: 285px; }
.hero p { max-width: 43ch; margin-bottom: 0; color: #ffe5e8; }
.eyebrow { margin: 0 0 8px; font-size: .73rem; font-weight: 750; letter-spacing: .11em; color: var(--accent); }
.hero .eyebrow, .hero em { color: #ffd5da; }
.hero em { font-style: normal; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.022em; }
h1 { margin: 0; font-size: clamp(1.75rem, 4vw, 3rem); letter-spacing: -.05em; }
.hero h1 { font-size: clamp(1.85rem, 3.2vw, 3.25rem); line-height: 1.08; }
h2 { margin: 0 0 14px; font-size: 1.32rem; }
h3 { margin: 0 0 8px; font-size: 1.09rem; }
h4 { margin: 0 0 8px; font-size: 1.03rem; }
p { margin: .7em 0; }
a { color: var(--accent); text-underline-offset: .17em; }
.workspace {
  margin-top: clamp(14px, 2vw, 22px); padding: clamp(16px, 2.4vw, 27px);
  border: 1px solid var(--accent); border-radius: var(--radius);
  color: white; background: var(--accent);
}
.workspace h1 { font-size: clamp(1.75rem, 3.7vw, 2.7rem); }
.workspace .eyebrow { color: #ffd5da; }
.workspace p:last-child { margin: 6px 0 0; color: #ffe5e8; max-width: 70ch; }
.notice, #connection:not([hidden]), #message:not(:empty) {
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px;
  margin: 12px 0; font-size: .875rem; color: #53424b; background: var(--surface);
}
#connection:not([hidden]), #message:not(:empty) { background: var(--tint); border-color: #f1d8dc; color: #8c101e; }
#message:empty, #tabs:empty, [data-error]:empty, [data-slot-hint]:empty, [data-availability-results]:empty { display: none; }
#tabs, .customer-nav { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: #eee8eb; }
#tabs { width: fit-content; max-width: 100%; margin: 0 0 14px; }
#tabs button, .customer-nav button { color: #52434b; background: transparent; border-color: transparent; border-radius: 10px; }
#tabs [aria-pressed=true], .customer-nav [aria-pressed=true] {
  color: var(--accent); background: var(--surface); border-color: var(--line); box-shadow: 0 1px 3px #33142316;
}
.customer-nav { margin: 0 0 14px; }
.customer-nav button { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; }
.customer-nav svg { flex: 0 0 19px; width: 19px; height: 19px; }
.dispatch-nav span { text-align: center; overflow-wrap: anywhere; }
.layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 20px; margin-top: 16px; align-items: start; }
.layout > *, .fields > * { min-width: 0; }
.card {
  min-width: 0; padding: clamp(16px, 2.6vw, 25px); margin-bottom: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.card > :last-child, .offline-card > :last-child { margin-bottom: 0; }
aside .card { box-shadow: none; }
aside .card .card { padding: 0; border: 0; box-shadow: none; }
.sub { color: var(--muted); font-size: .9rem; }
.fields, .metrics { display: grid; gap: 14px; }
.fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metrics { grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); margin-block: 16px; gap: 10px; }
.metrics .card { margin: 0; padding: 13px 15px; }
.metrics strong { display: block; font-size: 1.52rem; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
/* Dispatch workflow board: same card, pill and badge language as the order list. */
.board-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 16px; }
.board-head h2, .board-head p { margin-block: 0 4px; }
.board-period { min-width: 150px; }
.board-summary { margin-block: 14px; }
.board-tile { color: inherit; text-decoration: none; }
.board-tile:hover { border-color: var(--accent); }
.board-tile-alert { background: #fdf1d8; border-color: #f1d9a6; }
.board-attention ul { margin: 6px 0 0; padding-left: 18px; }
.board-columns { display: grid; grid-template-columns: repeat(6, minmax(200px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 4px; margin-top: 14px; }
.board-column { min-width: 0; padding: 12px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); }
.board-column h3 { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0; font-size: 1rem; }
.board-column > .sub { margin: 4px 0 10px; font-size: .8rem; }
.board-column ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.board-card { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.board-card:hover, .board-card:focus-visible { border-color: var(--accent); }
.board-card .sub { font-size: .8rem; }
.board-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 4px 8px; }
/* Order numbers and status labels wrap between words only, never mid-word (narrow columns beside the panel). */
.board-card-head strong { white-space: nowrap; }
.board-card-head .pill, .board-panel .board-flags .pill, .board-panel .board-flags .badge { overflow-wrap: normal; white-space: nowrap; }
.board-card[data-status=delivered] .pill, .board-card[data-status=driving] .pill, .board-card[data-status=picked] .pill { background: #e7f3ec; color: #21583f; }
.board-card:is([data-status=failed],[data-status=approval],[data-status=quote_required]) .pill { background: #fdf1d8; color: #754909; }
.board-flags { display: flex; flex-wrap: wrap; gap: 4px; }
.board-flags .badge { padding: 4px 8px; }
.board-late { background: #fdf1d8; color: #754909; }
/* P4 warning levels: amber = attention, red = overdue; the badge also says it in words. */
.board-level-warn { background: #fdf1d8; color: #754909; justify-self: start; }
.board-level-crit { background: var(--tint); color: #9d0b1c; justify-self: start; }
.board-card[data-level=warn] { border-color: #f1d9a6; }
.board-card[data-level=crit] { border-color: #f0b3ba; }
.board-card [data-level=ok] { color: var(--muted); font-size: .8rem; }
@media (max-width: 930px) { .board-columns { grid-template-columns: 1fr; overflow-x: visible; } }
.board-card[aria-current=true] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--tint); }
/* P5: collapsible step sections (phone friendly) and the driver list. */
.board-column > summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.board-column > summary::-webkit-details-marker { display: none; }
.board-column > summary h3 { flex: 1; }
.board-column > summary h3::after { content: '▾'; color: var(--muted); font-size: .8rem; margin-left: 6px; }
.board-column:not([open]) > summary h3::after { content: '▸'; }
.board-column:not([open]) { padding-block: 6px; }
.board-drivers { margin-top: 16px; }
.board-drivers h3 { margin: 0; }
.board-drivers ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.board-driver { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); overflow-wrap: anywhere; }
.board-driver .pill.board-on-shift { background: #e7f3ec; color: #21583f; }
.board-driver .pill.board-off-duty { background: var(--soft); color: var(--muted); border: 1px solid var(--line); }
@media (max-width: 560px) {
  .board-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .board-summary .card { padding: 10px 12px; }
  .board-summary strong { font-size: 1.25rem; }
  .board-head { align-items: stretch; }
  .board-period, .board-period select { width: 100%; }
}
.board-body.has-panel { display: grid; gap: 12px; margin-top: 14px; }
.board-body.has-panel .board-columns { margin-top: 0; }
.board-panel { margin: 0; align-self: start; }
.board-panel h3 { margin: 0; }
.board-panel h4 { margin: 16px 0 8px; font-size: .95rem; }
.board-panel-close { min-width: 44px; min-height: 44px; padding: 0; font-size: 1.3rem; line-height: 1; }
.board-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; margin: 12px 0 0; }
.board-facts dt { color: var(--muted); }
.board-facts dd { margin: 0; overflow-wrap: anywhere; }
.board-timeline { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.board-timeline li[aria-current=step] strong { color: var(--accent); }
@media (min-width: 1180px) {
  .board-body.has-panel { grid-template-columns: minmax(0, 1fr) 340px; }
  .board-body.has-panel .board-panel { order: 2; position: sticky; top: 12px; }
}
.wide { grid-column: 1 / -1; }
label { display: block; color: var(--ink); font-size: .875rem; font-weight: 650; }
label:has(input[type=checkbox]) { line-height: 1.5; }
input, select, textarea, button { font: inherit; }
input, select, textarea {
  width: 100%; min-height: 44px; margin-top: 5px; padding: 9px 11px;
  color: var(--ink); background: var(--surface); border: 1px solid #9a8993; border-radius: 10px;
}
input::placeholder, textarea::placeholder { color: #766973; }
input[type=checkbox] { width: 1.1rem; min-height: 0; height: 1.1rem; margin: 0 4px 0 0; vertical-align: -.21em; accent-color: var(--accent); }
input[type=file] { max-width: 100%; padding: 7px; }
input::file-selector-button { border: 0; border-radius: 7px; padding: 6px 9px; margin-inline-end: 8px; background: var(--tint); color: var(--accent); font: inherit; }
textarea { min-height: 96px; resize: vertical; }
button, .driver-navigation .button {
  min-height: 44px; padding: 8px 13px; border-radius: 10px; border: 1px solid #d5c9d0;
  background: var(--surface); color: var(--accent); font-weight: 700; line-height: 1.35; cursor: pointer;
}
button.primary, button[aria-pressed=true] { background: var(--accent); color: white; border-color: var(--accent); }
button:not(:disabled):hover, .driver-navigation .button:hover { background: var(--tint); }
button.primary:not(:disabled):hover { background: var(--accent-hover); border-color: var(--accent-hover); }
button:disabled { opacity: .52; cursor: default; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
button, label, legend, .card, dialog p, pre { overflow-wrap: anywhere; }
.actions, .booking-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.booking-actions { margin-top: 0; }
fieldset { margin: 0; padding: 14px; min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
legend { padding-inline: 6px; font-weight: 750; color: #95101d; }
h3.wide { margin: 6px 0 0; }
summary { cursor: pointer; font-weight: 650; }
details[open] > summary { margin-bottom: 8px; }
details.row summary + form { margin-top: 12px; }
ol, ul { padding-inline-start: 22px; }
pre { white-space: pre-wrap; }
.mono { font-variant-numeric: tabular-nums; }
.row { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
label:has(select[name=areaFilter]) { margin-bottom: 12px; }
[data-availability] .fields { align-items: end; }
[data-availability-results] { margin-top: 12px; }
.branch-option { border: 1px solid var(--line); background: var(--soft); border-radius: 14px; padding: 14px; margin-top: 10px; }
.branch-option h3 { margin: 0; }
.branch-option .pill { margin-bottom: 7px; }
.branch-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; margin-top: 10px; }
.branch-actions p { margin: 0; color: var(--muted); }
.order-card,
.order-card :is(.payment-box, .driver-navigation, .dispatch-review, .warn-box, .notice, .row),
.order-card .tracking li,
.order-card .dispatch-review-steps li { border: 0; }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.order-head h3 { margin: 0; }
.pill { background: var(--tint); color: #94101e; padding: 5px 9px; }
.order-card:is([data-status=delivered],[data-status=driving],[data-status=picked]) .order-head .pill { background: #e7f3ec; color: #21583f; }
.order-card:is([data-status=failed],[data-status=hold],[data-status=approval],[data-status=quote_required]) .order-head .pill { background: #fdf1d8; color: #754909; }
.tracking { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.tracking li { padding: 4px 8px; border: 1px solid var(--line); color: var(--muted); border-radius: 9px; font-size: .82rem; }
.tracking .complete { background: #e9f3ed; border-color: #c6e0d2; color: var(--success); }
.tracking [aria-current] { font-weight: 750; }
/* P6: time under each reached step; orders that ended without delivery are shown greyed out. */
.tracking time { display: block; font-size: .72rem; font-weight: 400; opacity: .85; }
.tracking-ended .complete { background: var(--soft); border-color: var(--line); color: var(--muted); }
.shop-guide, .rewe-guide, .import-box, .payment-box, .driver-navigation, .dispatch-review {
  background: var(--soft); border: 1px solid var(--line); border-radius: 13px; padding: 13px 15px;
}
.shop-guide h3, .rewe-guide h3 { margin-bottom: 6px; }
.shop-guide ol, .rewe-guide ol { margin-block: 6px; }
.shop-guide p:last-child, .rewe-guide p:last-child, .import-box p:last-child { margin-bottom: 0; }
.shop-link { display: inline-flex; align-items: center; min-height: 44px; margin: 4px 12px 4px 0; font-weight: 750; }
.import-box { border-style: dashed; border-color: #b8a6af; }
[data-import-status]:not(:empty) { font-weight: 650; }
ul.warn, .warn-box { padding: 10px 13px; margin-block: 10px; background: #fff6e1; color: #634411; border: 1px solid #efd8a1; border-radius: 10px; }
ul.warn { padding-inline-start: 30px; }
[data-error]:not(:empty) { color: #a20c1e; font-weight: 650; }
.decision { margin-block: 10px; }
.decision label { padding-block: 6px; }
.payment-box, .driver-navigation, .dispatch-review { margin-block: 12px; }
.driver-navigation .button { display: inline-flex; align-items: center; text-decoration: none; }
.driver-completions article { border-top: 1px solid var(--line); padding-block: 12px; }
.dispatch-review-steps { list-style: none; padding-inline-start: 0; overflow-wrap: anywhere; }
.dispatch-review-steps li { border-bottom: 1px solid var(--line); padding-block: 6px; }
.dispatch-review-steps h5 { font-size: .95rem; margin-block: 5px; }
.dispatch-review-steps p { margin-block: 6px; }
.dispatch-ready { color: var(--success); font-weight: 650; }
[data-configuration] textarea { font-family: monospace; white-space: pre; max-width: 100%; overflow: auto; }
.notification-inbox { padding-block: 10px; box-shadow: none; }
.notification-inbox:not(:has(details[open])) { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; }
.notification-inbox:not(:has(details[open])) > :is(h2,p) { margin: 0; }
.notification-inbox:not(:has(details[open])) > details { margin-inline-start: auto; }
.notification-inbox > h2 { display: inline-block; margin: 0 12px 4px 0; font-size: 1rem; }
.notification-inbox > p { display: inline-block; margin: 0 0 4px; color: var(--muted); font-size: .875rem; }
.notification-inbox > details > summary { font-size: .9rem; color: var(--accent); padding-block: 5px; }
.notification-list { max-height: 28rem; overflow: auto; overflow-wrap: anywhere; }
.notification-list li { padding: .75rem; border-bottom: 1px solid var(--line); }
.notification-list p { margin-block: .4rem; }
.notification-list time { font-size: .85rem; color: var(--muted); }
.notification-unread { border-inline-start: 3px solid var(--accent); }
footer { margin-top: 24px; padding-block: 20px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }
.offline-card { margin-top: 36px; }
dialog {
  width: min(calc(100% - 24px), 560px); max-height: calc(100dvh - 28px); overflow: auto; overscroll-behavior: contain;
  padding: clamp(16px, 3.2vw, 26px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink);
  box-shadow: 0 18px 70px #27122146;
}
dialog::backdrop { background: #21131ed0; }
dialog h2 { font-size: 1.5rem; margin-bottom: 8px; }
dialog > .language-switch { align-items: flex-start; margin-bottom: 12px; }
dialog code { overflow-wrap: anywhere; }
#sign-in { position: static; width: 100%; min-width: 0; max-height: none; margin: 0; border: 0; box-shadow: var(--shadow); }
#sign-in .role-pick { display: flex; flex-wrap: wrap; gap: 5px; padding: 4px; margin-block: 10px; border-radius: 13px; background: #eee8eb; }
#sign-in .role-pick button { flex: 1; min-width: 0; padding-inline: 7px; border-color: transparent; }
#sign-in .role-pick button[aria-pressed=true]:not(:disabled):hover { background: var(--accent-hover); }
#sign-in label { margin-top: 10px; }
#sign-in [type=submit] { width: 100%; }
.signup-callout { padding: 16px; margin-block: 18px; border-radius: 14px; background: var(--tint); }
.signup-callout h3 { margin-bottom: 4px; }
.signup-callout p { margin-block: 4px 12px; font-size: .9rem; }
.signup-callout button { width: 100%; }
.google-login { display: grid; gap: 6px; margin-block: 4px 18px; }
.google-login button { width: 100%; }
.google-login small { font-size: .85rem; }
header [data-open-registration] { font-size: .8rem; }
dl.recap { display: block; min-width: 0; margin: 10px 0 16px; }
dl.recap dt { margin: 0; font-size: .875rem; font-weight: 700; color: var(--muted); overflow-wrap: anywhere; }
dl.recap dd { min-width: 0; max-width: 100%; margin: 2px 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; white-space: normal; }
dl.recap dd:last-child { margin-bottom: 0; padding-bottom: 0; border: 0; }
[data-authorized-recipient] { grid-column: 1 / -1; }
/* Signature gestures stay on the drawing surface and swipe control. */
.signature-section { min-width: 0; }
.signature-section h3 { margin-bottom: .5rem; }
canvas[data-signature] {
  display: block; width: 100%; height: 190px; margin: .75rem 0; border: 2px solid #687580;
  border-radius: 12px; background: white; touch-action: none; overscroll-behavior: contain; cursor: crosshair;
}
.handover-confirm { display: grid; gap: 12px; min-width: 0; }
.handover-confirm > button, .handover-confirm [data-explicit-submit] { width: 100%; min-height: 48px; white-space: normal; }
.handover-swipe {
  position: relative; min-height: 88px; overflow: hidden; isolation: isolate; display: flex; align-items: center;
  padding: 12px 12px 12px 72px; border: 2px solid var(--accent); border-radius: 14px;
  background: linear-gradient(to right, #f7c4ca var(--progress, 0%), #fff3f4 var(--progress, 0%)); color: #94101e; font-weight: 700;
}
.handover-swipe[aria-disabled=true] { opacity: .65; }
.handover-swipe [data-swipe-label] { overflow-wrap: anywhere; font-size: .95rem; line-height: 1.4; pointer-events: none; }
.handover-swipe [data-swipe-handle] { position: absolute; left: 4px; top: 4px; bottom: 4px; width: 56px; min-height: 48px; padding: 8px; transform: translateX(var(--swipe, 0px)); touch-action: none; user-select: none; z-index: 1; }
.handover-confirm [data-explicit-handover], .handover-confirm [data-signature-exception-form] { border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-width: 0; }
@media (min-width: 930px) {
  [data-availability] .fields { grid-template-columns: minmax(100px, .8fr) minmax(120px, 1.1fr) minmax(140px, 1.25fr); }
}
@media (max-width: 790px) {
  .landing { grid-template-columns: minmax(0, 1fr); }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
@media (max-width: 560px) {
  .bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; }
  .header-actions { display: contents; }
  .bar .brand { grid-column: 1 / 3; grid-row: 1; justify-self: start; }
  .bar .badge { grid-column: 2 / -1; grid-row: 1; justify-self: end; font-size: .67rem; max-width: 145px; }
  .bar .language-switch { grid-column: 1; grid-row: 2; position: relative; }
  .bar .language-caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .bar .language-switch select { width: 100%; min-width: 0; font-size: .84rem; }
  .bar #install { grid-column: 2; grid-row: 2; }
  .bar [data-i18n=m004] { grid-column: 3; grid-row: 2; }
  .bar button { padding-inline: 8px; font-size: .83rem; }
  .hero { grid-template-columns: 1fr; }
  .hero svg { display: none; }
  .fields { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .customer-nav { gap: 2px; padding: 4px; }
  .customer-nav button { flex-direction: column; justify-content: center; gap: 4px; min-height: 61px; padding: 6px 4px; font-size: .78rem; }
  .customer-nav svg { flex-basis: 17px; width: 17px; height: 17px; }
  .booking-actions .primary, [data-availability] button { width: 100%; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Service first on the public entry; authentication opens only on request. */
.guest-entry .landing { grid-template-columns: minmax(0, 1fr); }
.guest-entry .hero { display: none; }
#sign-in:modal { position: fixed; inset: 0; margin: auto; width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; }

[data-load-question] label { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 12px; margin-block: 8px; border-radius: 12px; background: var(--tint); cursor: pointer; }
[data-load-question] input[type=radio] { flex: 0 0 1.15rem; width: 1.15rem; min-height: 0; height: 1.15rem; margin: .15em 0 0; padding: 0; accent-color: var(--accent); }

.shift-list { list-style: none; padding: 0; margin-block: 12px; }
.shift-list li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-block: 12px; }
.shift-list li > div { min-width: 0; overflow-wrap: anywhere; }

.notification-list p, .notification-list button { overflow-wrap: anywhere; }
.notification-list button { max-width: 100%; white-space: normal; }
[data-security-dialog] { width: min(680px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; overflow-wrap: anywhere; }
[data-security-dialog] form { width: 100%; min-width: 0; margin-block: 12px; }
[data-security-dialog] input, [data-security-dialog] select, [data-security-dialog] textarea { box-sizing: border-box; max-width: 100%; width: 100%; }
[data-security-dialog] input[type=checkbox] { width: auto; }
[data-security-dialog] button { max-width: 100%; white-space: normal; }
[data-security-dialog] [data-private-code] { font-family: monospace; overflow-wrap: anywhere; word-break: break-all; }

/* Account security: personal setup, staff cards and history have separate groups. */
[data-security-dialog] { padding: 24px; }
.security-dialog-header { margin-bottom: 22px; }
.security-dialog-header h2 { margin: 0; }
.security-dialog-footer { margin-top: 24px; display: flex; justify-content: flex-end; }
.security-section + .security-section { margin-top: 28px; }
.security-section h3 { margin: 0 0 10px; font-size: 1.08rem; }
.security-section p { margin: 0 0 12px; }
.security-section .sub { line-height: 1.6; }
.security-recovery-status { padding: 10px 12px; border-radius: 10px; background: var(--tint); }
.security-recovery-status.needs-attention { background: #fff6df; color: #6d4b00; }
/* Two-factor sign-in: setup key and backup codes are easy to read and copy. */
.security-secret { display: inline-block; padding: 8px 10px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); font-size: 1.05rem; letter-spacing: .06em; user-select: all; }
.security-backup-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px 16px; padding-left: 22px; font-size: 1.05rem; }
.security-backup-codes code { user-select: all; letter-spacing: .04em; }
.security-steps { padding-left: 20px; display: grid; gap: 8px; }
/* QR code for authenticator setup: white with its quiet zone, never wider than the dialog. */
.security-qr { margin: 10px 0; padding: 0; display: flex; justify-content: center; min-height: 40px; }
.security-qr svg { display: block; width: min(220px, 100%); height: auto; background: #fff; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
[data-mfa-step] h3 { margin: 0 0 4px; }
.security-disclosure summary { padding: 10px 0; cursor: pointer; font-weight: 650; line-height: 1.5; }
.security-invite { margin-block: 14px 18px; }
.security-invite > summary { color: var(--accent); }
.security-members, .security-events { padding: 0; margin: 0; list-style: none; }
.security-members { display: grid; gap: 12px; }
.security-member { padding: 16px; background: var(--tint); border-radius: 12px; min-width: 0; }
.security-member-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.security-member-heading strong { overflow-wrap: anywhere; }
.security-member-meta { margin-top: 6px !important; color: var(--muted, #665b62); font-size: .9rem; }
.security-status { font-size: .8rem; border-radius: 20px; padding: 3px 9px; background: white; }
.security-status[data-status=active] { background: #e4f3e8; color: #205d37; }
.security-status[data-status=disabled] { background: #fde9eb; color: #9b1728; }
.security-status[data-status=pending] { background: #fff1d0; color: #6d4b00; }
.security-member-actions > summary { font-size: .9rem; }
.security-form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 18px; }
.security-form-grid label { display: grid; align-content: start; gap: 6px; min-width: 0; margin: 0; }
[data-security-dialog] form > label { display: grid; gap: 6px; margin-block: 14px; }
[data-security-dialog] form > button { margin-top: 8px; }
.security-form-grid .security-admin-choice { display: flex; align-items: flex-start; gap: 8px; }
.security-admin-choice input { flex: 0 0 auto; margin-top: 4px; }
.security-events { display: grid; gap: 16px; padding-top: 10px; }
.security-events li { display: grid; gap: 4px; }
.security-events span { font-size: .85rem; color: var(--muted, #665b62); }
.security-event-count { font-weight: 400; }
@media (min-width: 640px) {
 .security-form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
 .security-wide { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
 [data-security-dialog] { padding: 20px 16px; }
 .security-member { padding: 14px; }
}

.security-dialog-header { border: 0; }
.security-dialog-footer { border: 0; padding: 0; font-size: inherit; }

.security-help summary { font-weight: 400; font-size: .9rem; color: var(--muted, #665b62); padding-block: 4px; }

.push-prompt { margin-block: 14px; padding: 16px; background: var(--tint); border-radius: 12px; }
.push-prompt [data-push-status] { margin: 0 0 8px; }
.push-prompt .actions { flex-wrap: wrap; }
.push-prompt button { max-width: 100%; white-space: normal; }

/* Business documents: compact reading and accessible mobile controls. */
[data-document-workflow] textarea{width:100%;box-sizing:border-box;min-height:12rem;line-height:1.5;resize:vertical}[data-document-workflow] details{margin:1rem 0}[data-document-workflow] .actions{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}[data-launch-tasks] li{margin:.7rem 0;line-height:1.5}footer nav{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap;margin-bottom:1rem}[data-document-workflow] input{max-width:100%;box-sizing:border-box}

.privacy-dialog{width:min(900px,94vw);max-height:90vh;overflow:auto;box-sizing:border-box}.privacy-dialog form{display:grid;gap:1rem}.privacy-dialog textarea,.privacy-dialog input:not([type=checkbox]),.privacy-dialog select{width:100%;box-sizing:border-box}.privacy-dialog fieldset{min-width:0;overflow-wrap:anywhere}.privacy-request{padding:1rem 0;border-bottom:1px solid #eee}.privacy-dialog .actions{display:flex;gap:.7rem;flex-wrap:wrap}.privacy-dialog label{display:block;margin:.4rem 0}

/* FRESHSORA: service first, red actions and fresh green accents. */
:root { --ink:#20362b; --muted:#627069; --line:#e3e9e2; --soft:#f5f8f2; --tint:#fff0f1; --accent:#d50b28; --accent-hover:#ad0820; --success:#246239; background:#f7f9f5; color:var(--ink); }
.brand .freshsora-wordmark { font-size:1.3rem; font-weight:850; letter-spacing:-.045em; color:#246239; }
.freshsora-wordmark span { color:var(--accent); }
.brand small { font-size:.67rem; letter-spacing:0; }
.brand img { width:46px; height:46px; }
.guest-entry .landing { display:flex; flex-direction:column; gap:24px; }
.hero.freshsora-hero { display:grid; order:-1; width:100%; grid-template-columns:minmax(0,1.6fr) minmax(150px,.65fr); background:#205337; color:#fff; border-radius:28px; }
.freshsora-hero h1 { max-width:16ch; letter-spacing:-.04em; }
.freshsora-hero p { color:#e7efdf; max-width:52ch; }
.freshsora-hero .eyebrow { color:#d8edbb; }
.freshsora-promise { display:inline-flex; margin-top:20px; padding:8px 14px; border-radius:100px; background:#e5f4d2; color:#204b2e; font-size:.85rem; font-weight:650; }
.service-choices h2 { margin-bottom:16px; }
.service-grid { gap:20px; }
.service-choice { padding:24px; min-height:230px; border-radius:24px; box-shadow:0 6px 25px #254b2d0a; transition:transform .15s,box-shadow .15s; }
.service-choice:hover { transform:translateY(-2px); background:#fff; box-shadow:0 10px 30px #254b2d14; }
.service-choice:focus-visible { outline:3px solid var(--accent); outline-offset:4px; }
.service-choice .service-symbol { display:grid; place-items:center; width:52px; height:52px; color:#246239; background:#edf5e5; border-radius:16px; }
.service-symbol svg { width:30px; height:30px; }
.service-choice:first-child .service-symbol { color:var(--accent); background:#fff0f1; }
.service-choice strong { font-size:1.3rem; }
.service-choice .service-cta { margin-top:8px; }
.delivery-windows { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-block:12px; }
.delivery-window { display:flex; flex-direction:column; align-items:flex-start; gap:4px; padding:13px; background:#f1f7eb; border:0; color:#244d32; white-space:normal; text-align:start; }
.delivery-window:hover { background:#e4efd9; }
.delivery-window span { font-size:.88rem; font-weight:500; }
.branch-option { margin-block:18px; padding-block:16px; }
@media(max-width:600px) {
 .bar { align-items:flex-start; gap:12px; flex-wrap:wrap; }
 .header-actions { width:100%; justify-content:flex-start; }
 .header-actions button { font-size:.8rem; padding:9px 12px; }
 .hero.freshsora-hero { padding:24px; grid-template-columns:1fr 100px; gap:4px; border-radius:22px; }
 .freshsora-hero h1 { font-size:1.85rem; }
 .freshsora-hero p { font-size:.93rem; }
 .freshsora-hero svg { display:block; width:130px; margin-left:-16px; }
 .freshsora-hero .eyebrow { font-size:.63rem; letter-spacing:.05em; }
 .freshsora-promise { font-size:.75rem; padding:8px 10px; }
 .service-choice { min-height:0; padding:20px; }
 .service-grid { gap:12px; }
 .service-choice strong { font-size:1.16rem; }
}
@media(max-width:370px) { .hero.freshsora-hero { grid-template-columns:1fr; } .freshsora-hero svg { display:none; } .delivery-windows { grid-template-columns:1fr; } }
@media(prefers-reduced-motion:reduce) { .service-choice { transition:none; } .service-choice:hover { transform:none; } }

.freshsora-promise { text-decoration:none; }
#delivery-availability { scroll-margin-top:20px; }
@media(max-width:600px) {
 .header-actions [data-open-registration] { flex-basis:100%; width:auto; padding:5px 0; min-height:32px; background:transparent; color:var(--accent); text-align:start; text-decoration:underline; }
 .hero.freshsora-hero { grid-template-columns:1fr; }
 .freshsora-hero svg { display:none; }
 .freshsora-hero h1 { max-width:22ch; }
}
@media(min-width:371px) and (max-width:600px) {
 .service-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .service-choice { padding:16px; gap:8px; }
 .service-choice strong { font-size:1.07rem; }
 .service-choice span { font-size:.88rem; }
}
@media(max-width:560px) { .bar [data-open-registration] { grid-column:1 / -1; justify-self:start; width:auto; border:0; border-radius:0; padding:4px 0; white-space:normal; } }

/* Reference-led FRESHSORA identity: glossy mark, photographic groceries and bright green. */
:root { --accent:#d50b28; --accent-hover:#ad0820; --ink:#123b20; --muted:#5d695e; background:#fff; }
.brand { gap:10px; }
.brand .freshsora-app-icon { width:58px; height:58px; object-fit:contain; }
.brand .freshsora-wordmark { display:block; line-height:0; }
.brand .freshsora-wordmark img { display:block; width:216px; height:48px; object-fit:contain; }
.brand small { margin-top:0; text-align:center; font-style:italic; color:#28592a; font-size:.65rem; }
.hero.freshsora-hero { position:relative; isolation:isolate; overflow:hidden; display:block; min-height:360px; background:linear-gradient(105deg,#064b13 0%,#277f00 48%,#a1ca4d 100%); border-radius:28px; padding:40px; }
.freshsora-hero > div { position:relative; z-index:2; width:53%; }
.freshsora-hero h1 { font-size:clamp(1.8rem,3.6vw,3.2rem); color:#fff; max-width:18ch; }
.freshsora-hero p { font-size:1rem; color:#fff; }
.freshsora-hero .eyebrow { color:#e6f6d5; }
.freshsora-hero .freshsora-groceries { display:block; position:absolute; right:-3%; bottom:-7%; width:62%; height:112%; object-fit:contain; z-index:1; }
.freshsora-promise { background:var(--accent); color:#fff; box-shadow:inset 0 0 0 1px #ffaaaa80,0 5px 12px #00471035; font-weight:750; padding:13px 20px; }
.freshsora-promise:hover { color:#fff; background:var(--accent-hover); }
.service-grid { gap:18px; }
.service-choice { padding:0 0 20px; gap:10px; overflow:hidden; background:#fff; box-shadow:0 3px 16px #162a1520; min-height:0; }
.service-choice > strong,.service-choice > span:not(.service-visual) { margin-inline:20px; }
.service-choice .service-visual { display:flex; align-items:center; justify-content:center; width:100%; height:180px; background:radial-gradient(ellipse at center,#f3f9de,#f8f8f7); }
.service-visual img { display:block; height:100%; width:100%; object-fit:contain; }
.service-visual-pickup img { height:142px; width:142px; filter:drop-shadow(0 5px 4px #92000020); }
.service-choice > strong { font-size:1.2rem; color:#153921; }
.service-choice .service-cta { margin-top:auto; }
@media(max-width:600px) {
 .brand .freshsora-app-icon { width:48px; height:48px; }
 .brand .freshsora-wordmark img { width:173px; height:38px; }
 .brand small { font-size:.58rem; }
 .hero.freshsora-hero { padding:22px; min-height:320px; border-radius:22px; }
 .freshsora-hero > div { width:64%; }
 .freshsora-hero h1 { font-size:1.6rem; line-height:1.12; max-width:14ch; }
 .freshsora-hero p { font-size:.83rem; line-height:1.5; }
 .freshsora-hero .eyebrow { font-size:.57rem; letter-spacing:.03em; max-width:26ch; }
 .freshsora-hero .freshsora-groceries { display:block; width:80%; height:85%; right:-28%; bottom:-8%; }
 .freshsora-promise { font-size:.75rem; margin-top:16px; padding:11px 14px; max-width:100%; }
 .service-choices h2 { font-size:1.18rem; }
 .service-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
 .service-choice { padding:0 0 16px; }
 .service-choice > strong,.service-choice > span:not(.service-visual) { margin-inline:12px; }
 .service-choice .service-visual { height:125px; }
 .service-visual-pickup img { height:105px; width:105px; }
 .service-choice > strong { font-size:1rem; }
 .service-choice > span { font-size:.81rem; }
}
@media(max-width:370px) {
 .brand .freshsora-wordmark img { width:148px; height:33px; }
 .brand .freshsora-app-icon { width:43px; height:43px; }
 .brand small { font-size:.52rem; }
 .bar .badge { max-width:100px; font-size:.58rem; padding:5px; }
 .freshsora-hero > div { width:70%; }
 .freshsora-hero h1 { font-size:1.45rem; }
 .freshsora-hero .freshsora-groceries { right:-34%; }
}
@media(max-width:600px) { .freshsora-hero .freshsora-groceries { width:65%; height:72%; right:-5%; bottom:-2%; } .freshsora-hero > div { width:64%; } }
@media(max-width:370px) { .freshsora-hero .freshsora-groceries { width:62%; height:65%; right:-7%; bottom:-1%; } }

/* Compact signed-in customer pages; navigation stays in reach. */
.customer-entry .workspace { display:none; }
.customer-entry main { max-width:850px; padding-bottom:100px; }
.customer-entry main > .notice { font-size:.7rem; padding:6px 10px; margin:8px 0; }
.customer-entry #message:empty { display:none; }
.customer-entry .customer-nav { position:fixed; z-index:20; left:50%; transform:translateX(-50%); bottom:0; margin:0; padding:8px 12px calc(8px + env(safe-area-inset-bottom)); width:min(850px,100%); border-radius:18px 18px 0 0; background:#fff; box-shadow:0 -3px 16px #16361514; gap:10px; }
.customer-entry .customer-nav button { flex-direction:column; gap:3px; font-size:.78rem; background:transparent; border:0; min-height:52px; padding:4px; }
.customer-entry .customer-nav button[aria-pressed=true] { color:var(--accent); box-shadow:inset 0 -3px var(--accent); border-radius:0; }
.customer-entry .customer-nav svg { width:24px; height:24px; flex-basis:24px; }
.customer-home { display:grid; gap:14px; }
.home-location { justify-self:start; padding:0; border:0; color:#17491f; background:transparent; min-height:32px; font-weight:650; text-align:start; }
.customer-grocery-banner { position:relative; overflow:hidden; min-height:200px; border-radius:24px; padding:26px; background:linear-gradient(110deg,#034d0e,#4c980e 70%,#93b944); }
.customer-grocery-banner h1 { position:relative; z-index:1; color:#fff; font-size:2.3rem; max-width:14ch; line-height:1.15; }
.customer-grocery-banner img { position:absolute; width:59%; height:130%; object-fit:contain; right:-7%; bottom:-13%; }
.customer-service-list { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.customer-service-row { display:grid; grid-template-columns:74px minmax(0,1fr); gap:14px; align-items:center; padding:18px; background:#fff; border:0; border-radius:22px; box-shadow:0 3px 14px #20382514; text-align:start; }
.customer-service-art { display:grid; place-items:center; border-radius:16px; width:74px; height:85px; background:linear-gradient(#f7faed,#e7f4ba); color:#17471c; }
.customer-service-art svg { display:block; width:68px; height:68px; max-width:100%; }
.customer-service-row strong { display:block; color:#16451e; font-size:1.1rem; line-height:1.2; }
.service-row-description { display:block; color:#424b43; font-size:.83rem; font-weight:400; margin-block:5px 10px; }
.service-row-action { display:flex; justify-content:space-between; gap:8px; border-radius:100px; padding:7px 12px; color:#fff; background:linear-gradient(#f50017,#ce0012); font-size:.82rem; }
.home-windows { display:flex; align-items:center; justify-content:space-between; gap:12px; border:0; background:#edf8c9; color:#214b1e; border-radius:18px; padding:16px; text-align:start; }
.home-resume,.home-delivery-status { font-size:.85rem; border:0; background:#f4f7f1; color:#214b1e; text-align:start; }
.customer-entry .customer-back { margin-bottom:12px; padding:6px 0; background:transparent; border:0; }
.customer-page-title { font-size:1.5rem; margin-block:14px; }
.customer-notices { margin-block:10px; }
.customer-notices > summary { font-size:.9rem; color:#35583a; }
.order-pagination { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-block:15px; }
.order-pagination button { padding:8px 12px; font-size:.85rem; }
.order-pagination span { font-size:.8rem; }
[data-customer-wizard] { scroll-margin-top:16px; }
[data-wizard-progress] { grid-column:1 / -1; font-size:1.13rem; color:#20542d; }
[data-booking-page] { min-width:0; width:100%; margin:0; padding:0; }
[data-booking-page] > fieldset { margin:0; width:100%; }
[data-booking-page] [data-conditional] { width:100%; }
.wizard-controls { position:sticky; bottom:80px; z-index:5; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; background:#fff; padding:12px 0; box-shadow:0 -8px 14px #ffffffdf; }
.wizard-controls button { padding:9px 13px; font-size:.85rem; }
.wizard-controls p { flex-basis:100%; margin:0; }
[data-wizard-error]:empty { display:none; }
[data-customer-wizard] .booking-actions { display:flex; flex-wrap:wrap; gap:10px; }
@media(max-width:600px) {
 .customer-entry .bar { padding-block:8px; }
 .customer-entry header #install { display:none; }
 .customer-entry .bar .language-switch { grid-column:1 / 3; }
 .customer-entry .bar .language-switch select { min-height:34px; padding:5px 9px; width:auto; }
 .customer-entry .bar [data-i18n=m004] { min-height:34px; padding:5px 9px; }
 .customer-grocery-banner { min-height:148px; padding:20px; }
 .customer-grocery-banner h1 { font-size:1.65rem; max-width:13ch; }
 .customer-grocery-banner img { width:64%; height:120%; right:-9%; bottom:-10%; }
 .customer-service-list { grid-template-columns:1fr; gap:12px; }
 .customer-service-row { grid-template-columns:78px minmax(0,1fr); padding:14px; gap:14px; }
 .customer-service-art { width:78px; height:87px; }
 .customer-service-row strong { font-size:1.1rem; }
 .service-row-description { font-size:.82rem; margin-block:4px 7px; }
 .service-row-action { padding:7px 12px; }
 .home-windows { padding:14px; font-size:.94rem; }
 .customer-home { gap:12px; }
}

/* Compact reference layout: the two services and window shortcut stay together. */
.language-segments { display:none; }
.customer-entry .language-segments { display:flex; border:1px solid #d6d8d5; border-radius:100px; padding:2px; gap:1px; background:#fff; }
.customer-entry .language-segments button { min-height:28px; padding:2px 8px; border:0; border-radius:100px; font-size:.78rem; background:transparent; color:#202820; line-height:1.2; }
.customer-entry .language-segments button[aria-pressed=true] { background:linear-gradient(#f92330,#cd0011); color:white; }
.customer-entry .header-actions .language-switch select,.customer-entry .language-caption,.customer-entry .brand small,.customer-entry header .badge { display:none; }
.customer-entry header [data-i18n=m004] { display:none; }
.customer-entry.customer-profile-page header [data-i18n=m004] { display:block; }
.customer-entry .bar { display:flex; flex-wrap:wrap; min-height:66px; padding:8px 14px; gap:6px; }
.customer-entry .header-actions { display:flex; width:auto; gap:4px; margin-left:auto; }
.customer-entry .brand { gap:6px; min-width:0; flex-shrink:1; }
.customer-entry .brand .freshsora-app-icon { width:44px; height:44px; }
.customer-entry .brand .freshsora-wordmark { height:auto; }
.customer-entry .brand .freshsora-wordmark img { width:152px; height:34px; }
.customer-entry main > .notice { font-size:.6rem; border:0; background:transparent; padding:0; margin:2px 0 0; line-height:1.25; color:#86515a; }
.customer-entry main { padding-inline:10px; }
.customer-home { gap:12px; }
.home-location { min-height:30px; font-size:.9rem; }
.customer-grocery-banner { min-height:168px; padding:22px 18px; border-radius:23px; isolation:isolate; background:linear-gradient(110deg,#075610,#397c02 68%,#70a91d); }
.customer-grocery-banner::after { content:""; position:absolute; width:65%; height:80px; border-top:7px solid #b0e720; border-radius:50%; left:-7%; bottom:-61px; transform:rotate(-12deg); z-index:-1; }
.customer-grocery-banner h1 { margin:0; font-size:1.85rem; max-width:14ch; line-height:1.1; }
.customer-grocery-banner img { width:62%; height:138%; right:-9%; bottom:-18%; z-index:-1; }
.customer-service-row { grid-template-columns:94px minmax(0,1fr); gap:12px; padding:12px; border:1px solid #f0f0ec; border-radius:22px; box-shadow:0 3px 8px #20382515; }
.customer-service-art { width:94px; height:90px; border-radius:15px; position:relative; }
.customer-service-art::after { content:""; position:absolute; right:-8px; top:0; height:100%; border-right:1px solid #b5bfa9; }
.customer-service-art svg { width:77px; height:77px; }
.customer-service-row strong { font-size:1.13rem; letter-spacing:-.035em; line-height:1.15; }
.service-row-description { font-size:.8rem; line-height:1.3; margin:5px 0 9px; }
.service-row-action { justify-content:center; position:relative; padding:6px 19px 6px 9px; font-size:.86rem; line-height:1.25; background:linear-gradient(#f6202b,#ce0010); }
.service-row-action > span { position:absolute; right:12px; font-size:1.4rem; line-height:.7; }
.home-windows { justify-content:initial; gap:14px; padding:11px 12px; min-height:64px; background:linear-gradient(110deg,#edf9c8,#f1fbce); border-radius:17px; font-size:1rem; letter-spacing:-.035em; }
.home-windows .delivery-truck { flex-shrink:0; width:78px; height:44px; padding-right:10px; border-right:1px solid #b5bfa9; }
.home-windows > span:last-child { margin-left:auto; font-size:1.6rem; }
.customer-entry .customer-nav { border-radius:0; padding-block:6px calc(6px + env(safe-area-inset-bottom)); border-top:1px solid #ebeeea; }
.customer-entry .customer-nav svg { width:28px; height:28px; flex-basis:28px; }
.customer-entry .customer-nav button { min-height:56px; font-size:.8rem; }
@media(max-width:600px) { .customer-service-list { gap:12px; } }
@media(max-width:370px) {
 .customer-entry .brand .freshsora-app-icon { width:38px; height:38px; }
 .customer-entry .brand .freshsora-wordmark { height:auto; }
 .customer-entry .brand .freshsora-wordmark img { width:130px; height:29px; }
 .customer-entry .language-segments button { padding-inline:6px; font-size:.7rem; }
 .customer-entry .bar { padding-inline:10px; }
 .customer-service-row { grid-template-columns:76px minmax(0,1fr); padding:10px; }
 .customer-service-art { width:76px; height:84px; }
 .customer-service-art svg { width:68px; height:68px; }
 .customer-service-row strong { font-size:1rem; }
 .service-row-description { font-size:.74rem; }
 .home-windows { gap:10px; font-size:.9rem; }
 .home-windows .delivery-truck { width:66px; }
 .customer-grocery-banner h1 { font-size:1.65rem; }
}

/* Tablet and desktop: wide layouts instead of a stretched phone screen.
   Phones (up to 600 px) keep the bottom tab bar; tablets get a full-width bottom bar;
   from 1100 px the customer pages use a top navigation and the width of the header. */
.guest-entry .home-services { align-self:stretch; }
@media(min-width:601px) {
 .customer-entry main { padding-inline:24px; }
 .customer-entry .customer-nav { width:100%; }
 .customer-entry main > .notice { font-size:.78rem; margin:10px 0 4px; }
 .home-location { font-size:1rem; }
 .customer-grocery-banner { min-height:220px; padding:32px 34px; }
 .customer-grocery-banner h1 { font-size:2.3rem; }
 .customer-grocery-banner img { width:52%; height:135%; right:-5%; bottom:-17%; }
 .customer-service-row { padding:16px; }
 .home-windows { padding:14px 18px; }
}
@media(min-width:1100px) {
 .customer-entry main,.customer-entry .bar,.customer-entry footer div { max-width:1180px; }
 .customer-entry .bar { padding-inline:40px; }
 .customer-entry main { padding-inline:40px; padding-bottom:48px; min-height:calc(100dvh - 210px); }
 /* The tab bar becomes a sticky top navigation, left-aligned with the content. */
 .customer-entry .customer-nav { position:sticky; top:0; left:auto; bottom:auto; transform:none; z-index:20; width:100%; justify-content:flex-start; gap:28px; margin:4px 0 22px; padding:0; border:0; border-bottom:1px solid #e4e8e3; border-radius:0; box-shadow:none; background:#fff; }
 .customer-entry .customer-nav button { flex:0 0 auto; flex-direction:row; gap:8px; min-height:52px; padding:0 2px; font-size:.95rem; }
 .customer-entry .customer-nav button:hover { color:var(--accent); }
 .customer-entry .customer-nav svg { width:22px; height:22px; flex-basis:22px; }
 .wizard-controls { bottom:0; }
 .customer-home { gap:18px; }
 .customer-grocery-banner { min-height:280px; padding:48px 52px; border-radius:28px; }
 .customer-grocery-banner h1 { font-size:3rem; max-width:13ch; }
 .customer-grocery-banner img { width:46%; height:140%; right:-2%; bottom:-20%; }
 .customer-service-list { gap:18px; }
 .customer-service-row { grid-template-columns:120px minmax(0,1fr); gap:20px; padding:20px; }
 .customer-service-art { width:120px; height:110px; }
 .customer-service-art svg { width:92px; height:92px; }
 .customer-service-row strong { font-size:1.35rem; }
 .service-row-description { font-size:.95rem; margin:6px 0 12px; }
 .service-row-action { justify-self:start; max-width:260px; font-size:.95rem; padding:9px 34px 9px 18px; }
 .home-windows { min-height:76px; padding:14px 24px; font-size:1.1rem; }
 .customer-page-title { font-size:2rem; }
 /* Order cards side by side; profile cards in two columns. */
 .customer-entry #content { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:22px; align-items:start; }
 .customer-entry #content > * { grid-column:1 / -1; }
 .customer-entry #content > article.card { grid-column:auto; }
}
/* Below 1100 px the fixed tab bar must not hide the footer links; header and footer line up with the content column. */
@media(max-width:1099px) { .customer-entry footer { padding-bottom:calc(84px + env(safe-area-inset-bottom)); } }
@media(min-width:601px) and (max-width:1099px) { .customer-entry .bar,.customer-entry footer div { max-width:850px; padding-inline:24px; } }
/* Pickup card: store → groceries → FRESHSORA van scene fills the picture area (cropped to the bag on narrow cards). */
.service-visual-pickup img { width:100%; height:100%; object-fit:cover; object-position:50% 60%; filter:none; }
@media(max-width:600px) { .service-visual-pickup img { object-position:59% 60%; } }
