:root {
  --bg: #F3F1EA; --card: #FFFFFF; --ink: #1D2420; --mute: #67706A; --line: #DCDDD5;
  --pine: #2A5C45; --pine-2: #E3EDE6; --amber: #9A6413; --amber-2: #FBF0DC; --red: #A63D2F; --red-2: #F8E5E1;
  --r: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-text-size-adjust: 100%; }
a { color: var(--pine); }
h1 { font-size: 26px; margin: 0 0 6px; letter-spacing: -.01em; line-height: 1.2; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); margin: 24px 0 8px; font-weight: 600; }
h3 { font-size: 18px; margin: 0 0 6px; }
p.sub { color: var(--mute); margin: 0 0 16px; font-size: 15px; }
.note { font-size: 13px; color: var(--mute); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 12px; }
label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; }
label:first-child { margin-top: 0; }
.hint { font-size: 12px; color: var(--mute); font-weight: 400; }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px; border: 1px solid #C9CBC2; border-radius: 10px; background: #fff; color: var(--ink); }
input[type=checkbox] { width: auto; margin: 0 8px 0 0; transform: scale(1.2); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--pine); outline-offset: 0; border-color: var(--pine); }
textarea { min-height: 64px; resize: vertical; }
.row { display: flex; gap: 10px; } .row > * { flex: 1; min-width: 0; }
.row .narrow { flex: 0 0 34%; }
button, .btn { font: inherit; cursor: pointer; border: 0; border-radius: 12px; padding: 14px 16px; font-weight: 600; font-size: 16px; -webkit-tap-highlight-color: transparent; text-decoration: none; display: inline-block; text-align: center; }
.btn { width: 100%; background: var(--pine); color: #fff; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.ghost { background: transparent; color: var(--pine); border: 1.5px solid var(--pine); }
.btn.amber { background: var(--amber); }
.btn.danger { background: var(--red); }
.btn.small { width: auto; padding: 8px 12px; font-size: 14px; border-radius: 10px; }
.link { background: none; color: var(--pine); padding: 6px 0; font-size: 14px; }
.link.danger { color: var(--red); }
.stack > * + * { margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: #fff; border: 1px solid var(--line); color: var(--ink); padding: 8px 12px; border-radius: 99px; font-size: 14px; font-weight: 500; }
.chip.on { background: var(--pine); color: #fff; border-color: var(--pine); }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice { background: #fff; border: 1.5px solid var(--line); color: var(--ink); padding: 14px 6px; font-size: 15px; }
.choice.on { border-color: var(--pine); background: var(--pine-2); color: var(--pine); }
.banner { font-size: 14px; background: var(--amber-2); color: #6B4710; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.banner.red { background: var(--red-2); color: #7A2A1F; }
.banner.green { background: var(--pine-2); color: var(--pine); }
.err { color: var(--red); font-size: 14px; margin-top: 8px; min-height: 1px; }
.badge { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 4px 8px; border-radius: 99px; background: var(--pine-2); color: var(--pine); white-space: nowrap; }
.badge.amber { background: var(--amber-2); color: var(--amber); }
.badge.red { background: var(--red-2); color: var(--red); }
.pay { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 99px; }
.pay.paid { background: var(--pine-2); color: var(--pine); } .pay.part, .pay.unpaid { background: var(--amber-2); color: var(--amber); }
.status { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.status.done { color: var(--pine); } .status.transit { color: var(--amber); }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 10px; font-size: 14px; margin: 0; }
.kv dt { color: var(--mute); } .kv dd { margin: 0; font-weight: 500; }
.modal { position: fixed; inset: 0; background: rgba(20,25,22,.45); display: flex; align-items: flex-end; justify-content: center; z-index: 10; }
.sheet { background: #fff; width: 100%; max-width: 520px; border-radius: 18px 18px 0 0; padding: 20px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 92vh; overflow: auto; }
@media (min-width: 700px) { .modal { align-items: center; } .sheet { border-radius: 18px; } }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom)); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 20; max-width: 90%; }
.brand { font-weight: 700; color: var(--pine); letter-spacing: -.01em; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.brand svg { flex: none; }
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
table.grid th { text-align: left; font-size: 12px; color: var(--mute); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 8px 8px; border-bottom: 1px solid var(--line); }
table.grid td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.grid td.num, table.grid th.num { text-align: right; white-space: nowrap; }
.center { text-align: center; }
.check { width: 64px; height: 64px; border-radius: 50%; background: var(--pine-2); color: var(--pine); display: grid; place-items: center; margin: 12px auto; font-size: 34px; }
.copybox { display: flex; gap: 8px; align-items: center; }
.copybox input { font-size: 13px; color: var(--mute); }

/* past-customer pick list (trip app, staff PIN) */
.plist-head { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 6px; font-size: 13px; color: var(--mute); }
.plist { max-height: 372px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; -webkit-overflow-scrolling: touch; }
.plist button { display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 10px 12px; min-height: 52px; color: var(--ink); font-size: 15px; font-weight: 600; border-radius: 0; }
.plist button:first-child { border-top: 0; }
.plist button:active { background: var(--pine-2); }
.plist button span { display: block; font-size: 13px; font-weight: 400; color: var(--mute); margin-top: 2px; }
.plist .empty { padding: 12px; font-size: 13px; color: var(--mute); }
