/* Door to Door Rush: the hybrid palette. White ground, the client's maroon for
   every action, lemon only on the Rush pill and brand marks, green on
   vegetables, warm ink. Outfit for everything. */
:root {
  --ink: #2A2220; --muted: #7A6F66; --faint: #C9BFB3;
  --maroon: #8A1A1A; --lemon: #FFD60A; --green: #1E6B2B; --brown: #8A6B3E;
  --tile: #F8F7F4; --line: #ECE8E1; --band: #FBF6EA; --band-text: #7A5A1E;
  --veg: #F1F6EE; --meat: #FAF1F0; --chicken: #F7F4EE; --fruit: #FFF4E6; --fruit-text: #8A4E0E;
  --ok: #1F6B33; --ok-bg: #EAF3EC; --warn: #8A2A2A;
  --r: 20px; --pill: 999px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: #fff; color: var(--ink); font-family: Outfit, system-ui, sans-serif; font-size: 15px; line-height: 1.4; }
a { color: var(--ink); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.5px; line-height: 1.1; }
h2 { margin: 0; font-size: 16px; font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Brand */
.brand { display: flex; align-items: center; gap: 6px; text-decoration: none; }
.brand .name { font-size: 17px; font-weight: 700; letter-spacing: -.3px; }
.pill { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: var(--pill); font-size: 13px; font-weight: 700; white-space: nowrap; }
.pill.rush { background: var(--lemon); color: var(--ink); font-size: 15px; font-weight: 800; }
.pill.role { background: var(--ink); color: #fff; }
.pill.role.admin { color: var(--lemon); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--meat); color: var(--warn); }
.pill.soft { background: var(--tile); color: var(--ink); }
.pill.veg { background: var(--veg); color: var(--green); }
.pill.meat { background: var(--meat); color: var(--maroon); }
.pill.chicken { background: var(--chicken); color: var(--brown); }
.pill.fruit { background: var(--fruit); color: var(--fruit-text); }

/* Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border: 0; border-radius: var(--pill); background: var(--tile); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.btn.primary { background: var(--maroon); color: #fff; font-weight: 700; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.big { height: 56px; font-size: 16px; }
.btn.small { height: 32px; padding: 0 12px; font-size: 12px; }
.btn[disabled] { opacity: .5; cursor: default; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; }
/* 16px in every field: below that iOS zooms the page when a field is tapped. No focus ring. */
.input, select.input, input, textarea, select { font-size: 16px; }
.input, select.input { height: 44px; padding: 0 16px; border: 0; border-radius: var(--pill); background: var(--tile); outline: 0; width: 100%; -webkit-appearance: none; appearance: none; }
.input:focus, input:focus, textarea:focus, select:focus, button:focus { outline: none; box-shadow: none; }
.input:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 40px; padding: 0 16px; border: 0; border-radius: var(--pill); background: var(--tile); color: var(--ink); font-size: 14px; font-weight: 500; }
.chip.on { background: var(--ink); color: #fff; font-weight: 600; }

/* Layout */
.band { padding: 14px 16px; border-radius: var(--r); background: var(--band); color: var(--band-text); font-size: 13px; }
.card { padding: 16px; border-radius: var(--r); background: var(--tile); }
.boxed { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 16px; border-radius: var(--r); background: var(--tile); }
.stat b { display: block; font-size: 28px; font-weight: 700; letter-spacing: -.5px; line-height: 1; }
.stat span { font-size: 13px; color: var(--muted); font-weight: 500; }
.msg { min-height: 20px; font-size: 13px; color: var(--muted); }
.msg.err { color: var(--warn); }
.msg.ok { color: var(--ok); }

/* Tables */
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 600; }
td { padding: 10px 16px; border-bottom: 1px solid var(--tile); vertical-align: middle; white-space: nowrap; }
td.wrap { white-space: normal; }
tr:last-child td { border-bottom: 0; }
tr.sel td { background: var(--band); }
td .input { height: 36px; padding: 0 12px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: var(--pill); margin-right: 8px; vertical-align: middle; }
.thumb { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; background: var(--tile); display: inline-block; vertical-align: middle; }

/* Console shell */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.top .who { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.avatar { width: 40px; height: 40px; border-radius: var(--pill); background: var(--maroon); color: #fff; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.body { display: flex; flex-wrap: wrap; flex: 1 1 auto; }
.nav { flex: 0 0 200px; padding: 20px 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.nav a { height: 44px; padding: 0 14px; border-radius: var(--pill); font-size: 14px; font-weight: 500; display: flex; align-items: center; text-decoration: none; }
.nav a.on { background: var(--ink); color: #fff; font-weight: 600; }
.nav .foot { margin-top: auto; padding: 14px; border-radius: 16px; background: var(--tile); font-size: 12px; color: var(--muted); line-height: 1.4; }
.main { flex: 999 1 560px; min-width: 0; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.split { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.split > section { flex: 999 1 480px; min-width: 0; }
.split > aside { flex: 1 1 280px; max-width: 360px; display: flex; flex-direction: column; gap: 12px; }
.drop { flex: 0 0 auto; height: 140px; min-height: 140px; border-radius: var(--r); border: 2px dashed var(--faint); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; overflow: hidden; position: relative; }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
/* Consoles on tablets: two columns, the nav as a row */
@media (max-width: 760px) {
  .g4, .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding: 10px 12px; scrollbar-width: none; position: sticky; top: 0; background: #fff; z-index: 5; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: 0 0 auto; height: 38px; padding: 0 14px; background: var(--tile); white-space: nowrap; }
  .nav .foot, .nav .powered { display: none; }
  .main { padding: 18px 16px; gap: 16px; }
}
.filters > .pick { flex: 0 1 180px; }
/* Consoles on phones: one column, a tight top bar, bottom-sheet modals */
@media (max-width: 560px) {
  .top { padding: 12px 16px; gap: 10px; }
  .top .who #today, .top .who #whoName { display: none; }
  .brand .name { font-size: 15px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .grid:has(> .stat) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .head { align-items: flex-start; flex-direction: column; }
  .head h1 { font-size: 24px; }
  .head .row { flex-wrap: wrap; }
  .split > aside { max-width: none; }
  .main { padding: 14px 12px; }
  .top .brand .pill + .pill + .pill, .top .brand .name { display: none; }
  .filters > .pick { flex: 1 1 40%; }
  .filters > input { flex: 1 1 100%; }
}

/* Motion: short and quiet. Views fade in, modals settle in, buttons give under the thumb. */
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes dim { from { background: rgba(42, 34, 32, 0); } to { background: rgba(42, 34, 32, .45); } }
@keyframes settle-out { to { opacity: 0; transform: translateY(8px) scale(.985); } }
@keyframes undim { to { background: rgba(42, 34, 32, 0); } }
/* The gutter is always reserved, so a scrollbar coming or going never shifts the page. */
html { scrollbar-gutter: stable; }
/* Motion runs only while the page is visible (html.motion is set by the scripts); a background tab would freeze it. */
html.motion #view.enter { animation: fade-in .22s ease-out; }
.btn, .chip, .tile .add, .stepper button, .tabs a, .nav a, .card, .addr { transition: transform .12s ease, background-color .15s ease, color .15s ease, opacity .15s ease; }
.btn:active, .chip:active, .tile .add:active, .stepper button:active { transform: scale(.96); }
.tile .pic { transition: transform .18s ease; }
.tile:active .pic { transform: scale(.98); }
.fab { transition: transform .2s ease, opacity .2s ease; }
.fab[hidden] { display: flex !important; opacity: 0; transform: translate(-50%, 16px); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Modals: every form in the console and the customer app opens in one */
dialog.modal { border: 0; border-radius: 24px; padding: 0; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: hidden; background: #fff; color: var(--ink); box-shadow: 0 24px 60px rgba(42, 34, 32, .25); }
dialog.modal[open] { display: flex; flex-direction: column; }
dialog.modal::backdrop { background: rgba(42, 34, 32, .45); }
html.motion dialog.modal[open] { animation: settle .2s ease-out; }
html.motion dialog.modal::backdrop { animation: dim .2s ease-out; }
html.motion dialog.modal.closing { animation: settle-out .16s ease-in forwards; }
html.motion dialog.modal.closing::backdrop { animation: undim .16s ease-in forwards; }
body:has(dialog.modal[open]) { overflow: hidden; }
dialog.modal .mhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 24px 16px; flex: 0 0 auto; }
dialog.modal .mhead h2 { font-size: 20px; letter-spacing: -.3px; }
dialog.modal .x { width: 40px; height: 40px; border: 0; border-radius: var(--pill); background: var(--tile); font-size: 18px; }
dialog.modal .mbody { display: flex; flex-direction: column; gap: 12px; padding: 2px 24px 8px; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--faint) transparent; }
dialog.modal .mbody::-webkit-scrollbar { width: 8px; }
dialog.modal .mbody::-webkit-scrollbar-thumb { background: var(--faint); border-radius: 999px; border: 2px solid #fff; }
dialog.modal .mbody::-webkit-scrollbar-track { background: transparent; }
dialog.modal .mfoot { display: flex; gap: 8px; padding: 16px 24px 24px; flex: 0 0 auto; border-top: 1px solid var(--line); }
dialog.modal .mfoot .btn { flex: 1 1 auto; }
textarea.input { height: auto; min-height: 72px; padding: 12px 16px; border-radius: 16px; resize: vertical; }

/* Customer app */
.app { max-width: 560px; margin: 0 auto; min-height: 100vh; padding: 20px 20px 110px; display: flex; flex-direction: column; gap: 18px; }
.app .top { padding: 0; border: 0; }
.greet { font-size: 26px; font-weight: 700; letter-spacing: -.5px; line-height: 1.1; }
.herobox { position: relative; min-height: 220px; border-radius: 28px; overflow: hidden; background: var(--ink); display: flex; align-items: flex-end; }
.herobox img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.herobox .herotext { position: relative; padding: 20px; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(to top, rgba(42, 34, 32, .85), rgba(42, 34, 32, 0)); width: 100%; }
.search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border-radius: var(--pill); background: var(--tile); }
.search input { flex: 1 1 auto; border: 0; outline: 0; background: transparent; font-size: 16px; font-weight: 500; min-width: 0; }
.promise { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--r); background: var(--band); }
.promise b { font-size: 15px; }
.promise .sub { font-size: 13px; color: var(--band-text); }
.scrollx { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.scrollx::-webkit-scrollbar { display: none; }
.scrollx .chip { flex: 0 0 auto; }
.chip.veg.on { background: var(--green); } .chip.meat.on { background: var(--maroon); } .chip.chicken.on { background: var(--brown); } .chip.fruit.on { background: var(--fruit-text); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 8px; text-align: left; border: 0; background: transparent; padding: 0; color: var(--ink); }
.tile .pic { height: 128px; border-radius: var(--r); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.tile .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .pic .add { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: var(--pill); border: 0; background: var(--maroon); color: #fff; font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.tile .pic .qty { position: absolute; right: 10px; bottom: 10px; height: 40px; border-radius: var(--pill); background: var(--ink); color: #fff; display: flex; align-items: center; padding: 0 4px; gap: 2px; }
.tile .pic .qty button { width: 32px; height: 32px; border: 0; border-radius: var(--pill); background: transparent; color: #fff; font-size: 18px; }
.tile .pic .qty button.more { background: var(--maroon); }
.tile .pic .qty span { min-width: 44px; text-align: center; font-size: 13px; font-weight: 700; }
.tile .name { font-size: 15px; font-weight: 600; }
.tile .sub { font-size: 13px; color: var(--muted); }
.tile .price { font-size: 16px; font-weight: 700; display: flex; align-items: baseline; gap: 6px; }
.tile .price .unit { font-size: 12px; font-weight: 500; color: var(--muted); }
.tile .price .was { font-size: 12px; font-weight: 500; color: var(--muted); text-decoration: line-through; }
.line { display: flex; align-items: center; gap: 14px; }
.line .pic { width: 56px; height: 56px; border-radius: 16px; flex: 0 0 auto; }
.line .grow { flex: 1 1 auto; min-width: 0; }
.line .name { font-size: 15px; font-weight: 600; }
.line .sub { font-size: 13px; color: var(--muted); }
.stepper { display: flex; align-items: center; height: 40px; border-radius: var(--pill); background: var(--ink); color: #fff; padding: 0 4px; gap: 2px; }
.stepper button { width: 32px; height: 32px; border: 0; border-radius: var(--pill); background: transparent; color: #fff; font-size: 18px; }
.stepper button.more { background: var(--maroon); }
.stepper span { min-width: 48px; text-align: center; font-size: 13px; font-weight: 700; }
.totals { display: flex; flex-direction: column; gap: 6px; padding: 0 6px; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; }
.totals .big { font-size: 20px; font-weight: 700; }
.fab { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); width: min(520px, calc(100vw - 40px)); height: 60px; border-radius: var(--pill); background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 10px 0 22px; text-decoration: none; z-index: 5; box-shadow: 0 10px 30px rgba(42, 34, 32, .25); }
.fab .cap { height: 44px; padding: 0 18px; border-radius: var(--pill); background: var(--lemon); color: var(--ink); font-size: 16px; font-weight: 700; display: flex; align-items: center; }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); display: flex; justify-content: center; z-index: 4; padding-bottom: env(safe-area-inset-bottom, 0px); }
.tabs .in { width: min(560px, 100%); display: flex; justify-content: space-around; padding: 8px 12px 14px; }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 64px; padding-top: 6px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 500; }
.tabs a.on { color: var(--maroon); font-weight: 600; }
.tabs svg { width: 22px; height: 22px; }
.hasfab .tabs { bottom: 0; }
.app.hasfab { padding-bottom: 190px; }
.state { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--pill); font-size: 12px; font-weight: 700; background: var(--tile); }
.state.placed, .state.confirmed { background: var(--band); color: var(--band-text); }
.state.packing, .state.packed { background: var(--chicken); color: var(--brown); }
.state.with_rider, .state.arrived { background: var(--ink); color: var(--lemon); }
.state.delivered { background: var(--ok-bg); color: var(--ok); }
.state.cancelled { background: var(--meat); color: var(--warn); }
.addr { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--tile); }
.addr.on { background: var(--band); }
.addr .grow { flex: 1 1 auto; min-width: 0; }
.addr b { display: block; }
.addr .sub { font-size: 13px; color: var(--muted); }
.empty { padding: 32px 16px; text-align: center; color: var(--muted); border-radius: var(--r); background: var(--tile); }

/* Wide screens: the customer app becomes a two-column page, with the tab bar as a
   left rail and the catalogue in four columns. Phones keep the bottom tabs. */
@media (min-width: 960px) {
  .app { max-width: none; padding: 24px 40px 48px 264px; min-height: 100vh; gap: 22px; }
  .app.hasfab { padding-bottom: 48px; }
  .app .top { padding: 0 0 16px; border-bottom: 1px solid var(--line); }
  .tabs { position: fixed; left: 0; top: 0; bottom: 0; width: 224px; border-top: 0; border-right: 1px solid var(--line); background: #fff; display: block; z-index: 4; padding: 0; }
  .tabs .in { flex-direction: column; justify-content: flex-start; width: auto; padding: 24px 16px 16px; gap: 4px; }
  .tabs a { flex-direction: row; justify-content: flex-start; gap: 12px; height: 44px; padding: 0 14px; border-radius: var(--pill); font-size: 14px; min-width: 0; }
  .tabs a.on { background: var(--ink); color: #fff; }
  .tabs a.on svg { color: var(--lemon); }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
  .tile .pic { height: 160px; }
  .herobox { min-height: 320px; }
  .herobox .greet { font-size: 40px; max-width: 26ch; }
  .fab { left: auto; right: 40px; transform: none; width: 360px; bottom: 32px; }
  .fab[hidden] { transform: translateY(16px); }
  .scrollx .tile { flex-basis: 210px !important; }
  .promise, .band { max-width: 100%; }
}

/* Landing */
.land { max-width: 1120px; margin: 0 auto; padding: 24px 24px 64px; display: flex; flex-direction: column; gap: 56px; }
.land .top { padding: 0; border: 0; }
.hero2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero2 h1 { font-size: 52px; letter-spacing: -1.5px; line-height: 1.02; }
.hero2 p { font-size: 18px; color: var(--muted); max-width: 46ch; }
.hero2 .art { border-radius: 32px; background: var(--band); padding: 32px; display: flex; align-items: flex-end; justify-content: center; min-height: 360px; position: relative; overflow: hidden; }
.hero2 .art svg { width: 100%; height: auto; max-width: 420px; }
.hero2 .art.photo { padding: 0; background: var(--tile); }
.hero2 .art.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { padding: 22px; border-radius: 24px; background: var(--tile); display: flex; flex-direction: column; gap: 8px; }
.step .n { width: 36px; height: 36px; border-radius: var(--pill); background: var(--lemon); color: var(--ink); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step b { font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cat { padding: 22px; border-radius: 24px; min-height: 160px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; text-decoration: none; }
.cat b { font-size: 18px; }
.cat span { font-size: 13px; }
.quote { padding: 32px; border-radius: 32px; background: var(--ink); color: #fff; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; }
.quote h2 { font-size: 30px; letter-spacing: -.6px; line-height: 1.1; }
.quote p { color: var(--faint); margin: 8px 0 0; }
.foot2 { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); padding-top: 24px; }
@media (max-width: 880px) { .hero2, .quote { grid-template-columns: 1fr; } .hero2 h1 { font-size: 38px; } .steps { grid-template-columns: 1fr; } .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Phone pages (sign-in) */
/* Sign-in and reset: the greenhouse on one side, the form on the other. On a
   phone the photo becomes a band above the form. */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.auth .side { position: relative; overflow: hidden; background: var(--ink); color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 28px 32px; }
.auth .side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .82; }
.auth .side .brand { position: relative; align-self: flex-start; height: 44px; padding: 0 14px 0 12px; border-radius: var(--pill); background: rgba(42, 34, 32, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.auth .side .brand .name { color: #fff; }
.auth .side .say { position: relative; display: flex; flex-direction: column; gap: 14px; margin: 0 -32px -28px; padding: 140px 32px 32px; background: linear-gradient(to top, rgba(42, 34, 32, .92) 30%, rgba(42, 34, 32, 0)); }
.auth .side .big { font-size: 36px; font-weight: 700; letter-spacing: -.9px; line-height: 1.04; max-width: 15ch; }
.auth .side .big em { font-style: normal; color: var(--lemon); }
.auth .side .say p { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .8); max-width: 40ch; }
.auth .perks { display: flex; flex-wrap: wrap; gap: 8px; }
.auth .perks span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--pill); background: rgba(255, 255, 255, .14); font-size: 13px; font-weight: 600; }
.auth .perks span::before { content: ''; width: 6px; height: 6px; border-radius: var(--pill); background: var(--lemon); }
.auth .pane { display: flex; flex-direction: column; padding: 32px 24px; }
.auth .form { width: 100%; max-width: 400px; margin: auto; display: flex; flex-direction: column; gap: 22px; }
.auth .form h1 { font-size: 32px; letter-spacing: -.8px; }
.auth .form .lead { margin: 6px 0 0; color: var(--muted); }
.auth .foot { width: 100%; max-width: 400px; margin: 28px auto 0; text-align: center; }
.auth .foot .powered { margin: 16px 0 0; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: var(--pill); background: var(--tile); }
.seg .chip { flex: 1 1 0; background: transparent; color: var(--muted); font-weight: 600; }
.seg .chip.on { background: var(--ink); color: #fff; }
.pwbox { position: relative; }
.pwbox .input { padding-right: 76px; }
.pwbox .peek { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 32px; padding: 0 12px; border: 0; border-radius: var(--pill); background: #fff; font-size: 12px; font-weight: 600; color: var(--muted); }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth .side { min-height: 232px; padding: 16px 20px 20px; border-radius: 0 0 28px 28px; justify-content: space-between; }
  .auth .side .say { margin: 0 -20px -20px; padding: 56px 20px 22px; gap: 8px; }
  .auth .side .big { font-size: 26px; max-width: 18ch; }
  .auth .side .say p { display: none; }
  .auth .perks span { height: 26px; padding: 0 10px; font-size: 12px; }
  .auth .pane { padding: 24px 20px 24px; }
  .auth .form { margin: 0 auto; gap: 18px; }
  .auth .form h1 { font-size: 26px; }
  .auth .foot { margin-top: 32px; }
}
.title { font-size: 30px; font-weight: 700; letter-spacing: -.6px; line-height: 1.1; }
.phonebox { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 8px; border-radius: var(--pill); background: var(--tile); }
.phonebox .cc { height: 40px; padding: 0 14px; border-radius: var(--pill); background: #fff; font-weight: 600; display: flex; align-items: center; }
.phonebox input { flex: 1 1 auto; border: 0; outline: 0; background: transparent; font-size: 17px; font-weight: 500; min-width: 0; }
.code { height: 64px; text-align: center; font-size: 28px; font-weight: 700; letter-spacing: 8px; }

/* Powered by Rails Cloud · Rails Net: a quiet line on every main page. */
.powered { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 28px 0 8px; color: var(--muted); font-size: 11px; text-decoration: none; letter-spacing: .02em; }
.powered img { height: 14px; opacity: .85; }
.nav .powered { margin: 12px 0 0; padding: 0 8px; justify-content: flex-start; }
.nav .powered img { height: 18px; }
.nav .powered span { display: none; }
.app.hasfab .powered { margin-bottom: 72px; }

/* Find us: the shop's social handles */
.socials { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; width: 100%; }
.socials a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 10px; border-radius: var(--pill); background: var(--tile); color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; }
.socials a:hover { background: var(--band); }
.socials svg { flex: 0 0 auto; }
.foot2 .socials { margin-top: 4px; }

/* The add button takes the colour of its category: green for vegetables, red for meat */
.tile .pic .add.veg, .tile .qty .more.veg { background: var(--green); }
.tile .pic .add.fruit, .tile .qty .more.fruit { background: var(--fruit-text); }
.tile .pic .add.meat, .tile .qty .more.meat { background: var(--maroon); }
.tile .pic .add.chicken, .tile .qty .more.chicken { background: var(--brown); }

/* A floating notice that can be dismissed and comes back when things change */
.toastbox { position: fixed; right: 20px; bottom: 20px; z-index: 40; max-width: 460px; display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; border-radius: 18px; background: var(--ink); color: #fff; box-shadow: 0 12px 32px rgba(42, 34, 32, .28); }
.toastbox.warn { background: var(--maroon); }
.toastbox .small { color: rgba(255, 255, 255, .78); margin-top: 2px; }
.toastbox .btn { background: var(--lemon); color: var(--ink); flex: 0 0 auto; }
.toastbox .x { flex: 0 0 auto; width: 32px; height: 32px; border: 0; border-radius: var(--pill); background: rgba(255, 255, 255, .14); color: #fff; font-size: 20px; line-height: 1; }
@media (max-width: 640px) { .toastbox { left: 12px; right: 12px; bottom: 12px; max-width: none; } }

/* Phones: modals as bottom sheets (after the dialog rules so they win) */
@media (max-width: 560px) {
  dialog.modal { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  dialog.modal .mhead { padding: 18px 18px 12px; }
  dialog.modal .mbody { padding: 2px 18px 8px; }
  dialog.modal .mfoot { padding: 12px 18px calc(16px + env(safe-area-inset-bottom)); flex-wrap: wrap; }
}
