/* Virtual Drive Thru: cream + lime, deep olive ink, violet as the complementary accent.
   Heavy wide caps for headlines, food served on a white plate. */
:root {
  --cream: #F6F4D8;
  --cream-2: #EEEBC6;
  --paper: #FFFEF3;
  --lime: #D3D46B;
  --lime-deep: #B4B63F;
  --lime-tint: #ECECB6;
  --ink: #2B2E12;
  --ink-2: #3D4119;
  /* Text on the brand colour, and the brand colour where it sits on dark ink. Set from the owner's palette. */
  --on-lime: #2B2E12;
  --lime-hi: #D3D46B;
  --muted: #6C6F47;
  --line: #E3E0B9;
  --violet: #6E58B8;
  --violet-tint: #ECE7FA;
  --good: #3F7D2C;
  --good-bg: #E3F1D6;
  --warn: #A86A0B;
  --warn-bg: #FBEFD2;
  --bad: #B83A26;
  --bad-bg: #F9E1DA;
  --info: #2F6B83;
  --info-bg: #E0EEF3;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(43, 46, 18, .06), 0 6px 18px rgba(43, 46, 18, .07);
  font-family: "Archivo", ui-sans-serif, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  font-size: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.01em; }
button { font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* The poster type: heavy, wide, all caps. */
.wordmark, .pc-logo, .pc-home-title, .pc-section h2, .pc-item-name, .pc-status h2, .ticket .no {
  font-family: "Archivo", "Arial Black", sans-serif;
  font-weight: 900;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: -.015em;
  line-height: .92;
}

/* ------------------------------------------------ top bar */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  padding: 12px 18px; background: var(--ink); color: var(--cream);
}
.brand { display: flex; align-items: center; gap: 14px; }
.wordmark { font-size: 19px; color: var(--lime-hi); }
.brand small { display: block; font-size: 12px; font-weight: 600; opacity: .7; }
.clock { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.clock .time { font-variant-numeric: tabular-nums; font-weight: 800; background: var(--ink-2); padding: 6px 12px; border-radius: 99px; }
.clock .btn { background: var(--ink-2); color: var(--cream); border-color: transparent; }
.clock .btn:hover:not(:disabled) { background: #50551f; border-color: transparent; }
.status-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 5px 11px; border-radius: 99px; background: var(--lime); color: var(--on-lime); font-weight: 700; }
.status-dot.paused { background: var(--bad-bg); color: var(--bad); }

/* ------------------------------------------------ layout */
.layout { display: grid; grid-template-columns: 400px 1fr; gap: 20px; padding: 18px; align-items: start; }
.layout.narrow { grid-template-columns: 1fr; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; }
.tab { border: 0; background: transparent; padding: 8px 14px; border-radius: 99px; color: var(--muted); font-weight: 700; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.tab:hover { background: var(--cream-2); color: var(--ink); }
.tab.on { background: var(--ink); color: var(--cream); }
.count { background: var(--lime); color: var(--on-lime); border-radius: 99px; padding: 0 7px; font-size: 11px; line-height: 18px; font-weight: 800; }
.count.bad { background: var(--bad); color: #fff; }
.stack { display: grid; gap: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.hint { background: var(--info-bg); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: var(--info); }
.hint.warn { background: var(--warn-bg); color: var(--warn); }
.hint.bad { background: var(--bad-bg); color: var(--bad); }
.hint.good { background: var(--good-bg); color: var(--good); }

/* ------------------------------------------------ cards & buttons */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.card-h h3 { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.card-warn { border-color: #EAD49A; }
.card-bad { border-color: #EDB9AC; }
.empty { color: var(--muted); font-size: 13px; margin: 6px 0; }
.btn { border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 8px 14px; border-radius: 99px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.btn:hover:not(:disabled) { border-color: var(--lime-deep); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-primary { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.btn-primary:hover:not(:disabled) { background: var(--lime-deep); border-color: var(--lime-deep); }
.btn-good { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn-good:hover:not(:disabled) { background: var(--ink-2); border-color: var(--ink-2); }
.btn-danger { background: transparent; border-color: #E8B6A9; color: var(--bad); }
.btn-danger:hover:not(:disabled) { background: var(--bad-bg); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover:not(:disabled) { color: var(--ink); border-color: transparent; }
.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn-full { width: 100%; padding: 12px; }

/* ------------------------------------------------ status pills */
.pill { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 800; white-space: nowrap; background: var(--cream-2); color: var(--muted); }
.st-pending_approval { background: var(--warn-bg); color: var(--warn); }
.st-awaiting_payment { background: #F6E2CC; color: #94500F; }
.st-confirmed { background: var(--info-bg); color: var(--info); }
.st-preparing { background: var(--violet-tint); color: var(--violet); }
.st-ready { background: var(--lime); color: var(--on-lime); }
.st-picked_up { background: var(--good-bg); color: var(--good); }
.st-cancelled { background: var(--bad-bg); color: var(--bad); }
.pay-payment_confirmed, .pay-cash_received { background: var(--good-bg); color: var(--good); }
.pay-cash_due { background: var(--warn-bg); color: var(--warn); }
.pay-manual_review, .pay-payment_failed { background: var(--bad-bg); color: var(--bad); }
.flag { background: var(--bad-bg); color: var(--bad); }

/* ------------------------------------------------ test helpers */
.code-chip { border: 1px dashed var(--lime-deep); background: var(--paper); padding: 3px 8px; border-radius: 7px; font-size: 11.5px; font-family: ui-monospace, Menlo, monospace; }
.testpanel { max-width: 380px; margin: 12px auto 0; border: 1px dashed #C9C69A; border-radius: 12px; padding: 10px 12px; background: rgba(255, 254, 243, .6); }
.testpanel .lbl { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; }

/* ------------------------------------------------ kitchen */
.kcols { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 12px; }
.kcol h4 { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; padding: 9px 14px; border-radius: 99px; margin-bottom: 10px; display: flex; justify-content: space-between; }
.kcol.c-confirmed h4 { background: var(--paper); border: 1px solid var(--line); }
.kcol.c-preparing h4 { background: var(--violet-tint); color: var(--violet); }
.kcol.c-ready h4 { background: var(--lime); color: var(--on-lime); }
.ticket { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.ticket.arrived { border: 2px solid var(--violet); }
.ticket .no { font-size: 24px; }
.ticket ul { margin: 8px 0; padding-left: 0; list-style: none; font-size: 13px; }
.ticket li { padding: 3px 0; }
.ticket li small { display: block; color: var(--muted); padding-left: 22px; }
.here-tag { display: flex; gap: 6px; align-items: center; background: var(--violet); color: #fff; border-radius: 10px; padding: 7px 10px; font-size: 12px; font-weight: 800; margin: 6px 0; }
.arrivals { background: var(--violet); color: #fff; border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 8px; box-shadow: var(--shadow); }
.arrivals h3 { font-size: 15px; font-weight: 800; }
.arrivals .arr { display: flex; justify-content: space-between; gap: 8px; align-items: center; background: rgba(255, 255, 255, .12); border-radius: 12px; padding: 9px 12px; font-size: 13px; flex-wrap: wrap; }
.arrivals .arr b { color: #fff; }
.arrivals .btn { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.req { background: var(--warn-bg); border-radius: 8px; padding: 6px 8px; font-size: 12px; margin-top: 4px; }
.due { font-size: 12px; font-weight: 800; }
.due.late { color: var(--bad); }
.role-toggle { display: inline-flex; background: var(--cream-2); border-radius: 99px; padding: 3px; }
.role-toggle button { border: 0; background: transparent; padding: 5px 12px; border-radius: 99px; font-weight: 700; cursor: pointer; color: var(--muted); }
.role-toggle button.on { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.line { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }

/* ------------------------------------------------ owner */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.metric { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.metric .v { font-size: 24px; font-weight: 900; font-stretch: 112%; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.metric .l { font-size: 12px; color: var(--muted); margin-top: 3px; }
.metric.good { background: var(--lime-tint); border-color: var(--lime); }
.metric.bad .v { color: var(--bad); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; padding: 6px 8px; border-bottom: 1px solid var(--line); }
td { padding: 9px 8px; border-bottom: 1px solid #EFECCB; vertical-align: top; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--cream); }
.tablewrap { overflow-x: auto; }
.totals { font-size: 13px; display: grid; gap: 4px; margin-top: 10px; }
.totals .spread.total { font-weight: 800; font-size: 15px; border-top: 1px solid var(--line); padding-top: 6px; }
.timeline { display: grid; gap: 6px; font-size: 12.5px; }
.timeline div { display: grid; grid-template-columns: 70px 1fr; gap: 8px; }
.timeline time { color: var(--muted); font-variant-numeric: tabular-nums; }
.t-good { color: var(--good); }
.t-warn { color: var(--warn); }
.t-bad { color: var(--bad); }
.health { display: grid; gap: 6px; }
.health div { display: flex; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--good-bg); color: var(--good); font-size: 13px; }
.health div.fail { background: var(--bad-bg); color: var(--bad); }
.log { font-size: 12.5px; }
.log td:first-child { white-space: nowrap; color: var(--muted); }
.ok { color: var(--good); font-weight: 800; }
.no { color: var(--bad); font-weight: 800; }
.field { display: grid; gap: 4px; margin-bottom: 10px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.field input, .field textarea, .field select { border: 1px solid var(--line); border-radius: 12px; padding: 10px 11px; font-weight: 400; font-size: 14px; background: #fff; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--lime); border-color: var(--lime-deep); }
.field small { font-weight: 400; color: var(--muted); }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; margin: 6px 0; }
.check input, input[type="checkbox"] { accent-color: var(--ink); }
.field select, .row select { border: 1px solid var(--line); border-radius: 8px; padding: 3px 6px; background: #fff; }

/* ------------------------------------------------ modal, drawer, toast */
.modal-back { position: fixed; inset: 0; background: rgba(43, 46, 18, .45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: var(--paper); border-radius: 18px; padding: 20px; width: min(440px, 100%); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.modal h3 { margin-bottom: 12px; font-weight: 800; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--paper); z-index: 40; box-shadow: -10px 0 40px rgba(0, 0, 0, .15); padding: 20px; overflow-y: auto; }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 60; padding: 12px 20px; border-radius: 99px; font-weight: 700; box-shadow: 0 8px 30px rgba(0, 0, 0, .2); max-width: min(560px, calc(100% - 32px)); }
.toast-info { background: var(--ink); color: var(--cream); }
.toast-good { background: var(--violet); color: #fff; }
.toast-bad { background: var(--bad); color: #fff; }
.toast-warn { background: var(--warn); color: #fff; }

/* ================================================ customer phone */
.phone-wrap { position: sticky; top: 76px; }
.phone-label { text-align: center; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.phone { width: 100%; max-width: 380px; margin: 0 auto; height: calc(100vh - 170px); min-height: 600px; max-height: 820px; border-radius: 40px; background: var(--ink); padding: 10px; box-shadow: 0 16px 44px rgba(43, 46, 18, .3); }
.screen { height: 100%; border-radius: 31px; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.pc { background: var(--cream); color: var(--ink); }
.pc-body { flex: 1; overflow-y: auto; padding: 16px 16px 0; }
.pc-foot { padding: 10px 16px 16px; background: var(--cream); border-top: 1px solid var(--line); display: grid; gap: 8px; }
.pc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; }
.pc-top h3 { font-size: 16px; font-weight: 800; }
.pc-logo { color: var(--ink); }
.pc-powered { display: block; font-size: 9.5px; color: var(--muted); margin-top: 4px; letter-spacing: .03em; }
.pc-open { font-size: 11px; font-weight: 800; background: var(--lime); color: var(--on-lime); padding: 4px 11px; border-radius: 99px; }
.pc-open.closed { background: var(--bad-bg); color: var(--bad); }
.pc-back { border: 0; background: none; font-weight: 800; cursor: pointer; padding: 4px 0; }

/* the plate: white, round, softly shadowed, sitting on lime */
.pc-plate { width: 72px; height: 72px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 18px rgba(43, 46, 18, .2), inset 0 0 0 5px #F3F1DC; }
.pc-plate span { font-size: 36px; line-height: 1; }
.pc-plate.big { width: 170px; height: 170px; box-shadow: 0 22px 36px rgba(43, 46, 18, .24), inset 0 0 0 9px #F3F1DC; }
.pc-plate.big span { font-size: 82px; }

/* welcome */
.pc-home { display: flex; flex-direction: column; padding: 22px 18px 14px; background: var(--lime); color: var(--on-lime); }
.pc-home-top { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; text-align: center; }
.pc-home-top .pc-open { background: var(--ink); color: var(--lime-hi); }
.pc-home-title { color: var(--on-lime); font-size: 46px; max-width: 8ch; }
.pc-home-actions { display: grid; gap: 10px; margin: 18px 0 12px; }
.pc-big { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; background: var(--paper); color: var(--ink); border-radius: 18px; padding: 16px 18px; cursor: pointer; }
.pc-big.primary { background: var(--ink); color: var(--cream); }
.pc-big.primary small { color: rgba(246, 244, 216, .75); }
.pc-big:hover:not(:disabled) { transform: translateY(-1px); }
.pc-big:disabled { opacity: .5; cursor: default; }
.pc-big b { display: block; font-size: 16px; font-weight: 800; }
.pc-big small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.pc-big-arrow { margin-left: auto; font-size: 20px; font-weight: 800; }
.pc-home-foot { margin: 0 0 6px; text-align: center; color: var(--on-lime); font-weight: 800; font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; line-height: 1.5; }
.pc-home .pc-powered { color: var(--on-lime); opacity: .65; }
.pc-powered.center { text-align: center; }

/* menu */
.pc-home-btn { border: 0; background: var(--paper); width: 32px; height: 32px; border-radius: 50%; font-size: 18px; font-weight: 800; cursor: pointer; flex: none; }
.pc-pickup { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 11px 13px; cursor: pointer; margin-bottom: 12px; }
.pc-pickup b { display: block; font-size: 13.5px; font-weight: 800; }
.pc-pickup small { display: block; color: var(--muted); font-size: 11.5px; }
.pc-ico { font-size: 18px; }
.pc-link { margin-left: auto; font-size: 12px; font-weight: 800; text-decoration: underline; text-decoration-color: var(--lime-deep); text-underline-offset: 3px; }
.pc-chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 6px; position: sticky; top: -16px; background: var(--cream); z-index: 2; }
.pc-chips button { flex: none; border: 1.5px solid var(--line); background: var(--paper); border-radius: 99px; padding: 6px 14px; font-weight: 800; font-size: 12.5px; cursor: pointer; text-transform: uppercase; letter-spacing: .02em; }
.pc-chips button:hover { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.pc-section { padding-top: 16px; scroll-margin-top: 34px; }
.pc-section h2 { font-size: 22px; margin-bottom: 12px; }
.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pc-card { background: var(--paper); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); }
.pc-card.out { opacity: .5; }
.pc-tile { position: relative; border: 0; background: var(--lime-tint); height: 112px; display: grid; place-items: center; cursor: pointer; }
.pc-tile:disabled { cursor: default; }
.pc-badge { position: absolute; top: 8px; right: 8px; background: var(--ink); color: var(--cream); font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; }
.pc-sold { position: absolute; bottom: 8px; left: 8px; background: var(--paper); color: var(--bad); font-style: normal; font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 99px; }
.pc-card-b { padding: 10px 11px 4px; cursor: pointer; flex: 1; }
.pc-card-b b { display: block; font-size: 13px; font-weight: 800; line-height: 1.25; }
.pc-card-b small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; line-height: 1.3; }
.pc-card-f { display: flex; justify-content: space-between; align-items: center; padding: 4px 9px 10px 11px; font-weight: 800; font-size: 13px; }
.pc-plus { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--lime); color: var(--on-lime); font-size: 19px; font-weight: 700; cursor: pointer; line-height: 1; }
.pc-plus:hover { background: var(--lime-deep); }
.pc-qty { display: inline-flex; align-items: center; background: var(--lime); color: var(--on-lime); border-radius: 99px; height: 32px; }
.pc-qty button { border: 0; background: transparent; width: 30px; height: 32px; font-size: 17px; font-weight: 800; cursor: pointer; }
.pc-qty button:disabled { opacity: .3; cursor: default; }
.pc-qty span { min-width: 18px; text-align: center; font-weight: 800; font-size: 13px; }
.pc-bar { position: absolute; left: 12px; right: 12px; bottom: 14px; display: flex; justify-content: space-between; align-items: center; border: 0; background: var(--ink); color: var(--cream); padding: 15px 20px; border-radius: 99px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 26px rgba(43, 46, 18, .35); z-index: 3; }
.pc-bar b { color: var(--lime-hi); text-transform: uppercase; letter-spacing: .03em; font-weight: 900; }

/* buttons, inputs, text */
.pc-cta { border: 0; background: var(--lime); color: var(--on-lime); font-weight: 800; padding: 14px 18px; border-radius: 99px; cursor: pointer; font-size: 14px; }
.pc-cta:hover:not(:disabled) { background: var(--lime-deep); }
.pc-cta:disabled { opacity: .35; cursor: default; }
.pc-cta.full, .pc-btn.full { width: 100%; }
.pc-btn { border: 1.5px solid var(--line); background: var(--paper); font-weight: 800; padding: 11px 14px; border-radius: 99px; cursor: pointer; }
.pc-btn:hover:not(:disabled) { border-color: var(--lime-deep); }
.pc-btn:disabled { opacity: .4; }
.pc-textlink { border: 0; background: none; padding: 4px 0; font-weight: 800; font-size: 12.5px; cursor: pointer; text-decoration: underline; text-decoration-color: var(--lime-deep); text-underline-offset: 3px; display: block; }
.pc-textlink.danger { color: var(--bad); margin-top: 8px; }
.pc-row { display: flex; gap: 8px; align-items: center; }
.pc-row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.pc-muted { color: var(--muted); font-size: 13px; }
.pc-muted.small, .small { font-size: 12px; }
.pc-note { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; font-size: 12.5px; margin: 10px 0; }
.pc-note.bad { background: var(--bad-bg); border-color: transparent; color: var(--bad); }
.pc-note.good { background: var(--good-bg); border-color: transparent; color: var(--good); }
.pc-input, .pc-field input, .pc-field textarea, .pc-field select { border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 11px 12px; font-size: 14px; width: 100%; }
.pc-input:focus, .pc-field input:focus, .pc-field textarea:focus, .pc-field select:focus { outline: none; border-color: var(--lime-deep); box-shadow: 0 0 0 3px var(--lime-tint); }
.pc-field { display: grid; gap: 5px; margin-bottom: 11px; font-size: 12px; font-weight: 800; }
.pc-field em { font-style: normal; font-weight: 500; color: var(--muted); }
.pc-field small { font-weight: 500; color: var(--muted); }
.pc-check { display: flex; gap: 8px; align-items: center; font-size: 12.5px; margin: 6px 0; }
.pc-check input { accent-color: var(--ink); width: 16px; height: 16px; }
.pc-block { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin-bottom: 10px; }
.pc-block h4 { font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 10px; }
.pc-totals { display: grid; gap: 4px; font-size: 13px; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 9px; }
.pc-totals div { display: flex; justify-content: space-between; color: var(--muted); }
.pc-totals .good { color: var(--good); }
.pc-totals .total { color: var(--ink); font-weight: 900; font-size: 16px; }
.pc-line { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.pc-line small { display: block; }
.pc-req { background: var(--warn-bg); color: var(--warn); border-radius: 8px; padding: 5px 8px; font-size: 11.5px; margin-top: 4px; }
.pc-applied { background: var(--lime-tint); border-radius: 12px; padding: 7px 11px; margin-top: 10px; font-weight: 800; font-size: 12.5px; }

/* sheets */
.pc-sheet-back { position: absolute; inset: 0; background: rgba(43, 46, 18, .45); display: flex; align-items: flex-end; z-index: 10; }
.pc-sheet { background: var(--cream); width: 100%; border-radius: 26px 26px 0 0; max-height: 88%; display: flex; flex-direction: column; overflow: hidden; }
.pc-sheet.tall { height: 88%; }
.pc-sheet-h { display: flex; justify-content: space-between; align-items: center; padding: 18px 16px 6px; }
.pc-sheet-h h3 { font-size: 17px; font-weight: 900; text-transform: uppercase; letter-spacing: .01em; }
.pc-sheet-body { flex: 1; overflow-y: auto; padding: 8px 16px 12px; }
.pc-sheet-foot { padding: 10px 16px 16px; border-top: 1px solid var(--line); }
.pc-x { border: 0; background: var(--paper); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 13px; font-weight: 800; }
.pc-hero { position: relative; height: 210px; margin: -8px -16px 14px; background: var(--lime-tint); display: grid; place-items: center; }
.pc-x.on-hero { position: absolute; top: 14px; right: 14px; background: var(--paper); }
.pc-item-name { font-size: 24px; margin-bottom: 6px; }
.pc-group { margin: 16px 0; }
.pc-group-h { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 13px; font-weight: 800; }
.pc-group-h small { color: var(--muted); font-weight: 600; }
.pc-opt { width: 100%; display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 11px 13px; margin-bottom: 6px; cursor: pointer; font-size: 13.5px; font-weight: 600; text-align: left; }
.pc-opt span { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.pc-opt.on { border-color: var(--ink); background: var(--lime-tint); }
i.radio, i.box { width: 18px; height: 18px; border: 2px solid #A9A77C; flex: none; display: inline-block; }
i.radio { border-radius: 50%; }
i.box { border-radius: 5px; }
.on > i.radio { border: 6px solid var(--ink); }
.on > i.box { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 2px var(--lime-tint); }
.pc-choice { display: grid; gap: 6px; }
.pc-choice button { display: flex; align-items: center; gap: 10px; text-align: left; background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 13px; cursor: pointer; }
.pc-choice button.on { border-color: var(--ink); background: var(--lime-tint); }
.pc-choice button:disabled { opacity: .5; cursor: default; }
.pc-choice b { display: block; font-size: 13.5px; font-weight: 800; }
.pc-choice small { display: block; color: var(--muted); font-size: 11.5px; }

/* tracking */
.pc-switch { font-size: 12px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--paper); padding: 4px 8px; }
.pc-status { background: var(--ink); color: var(--cream); border-radius: 22px; padding: 18px; margin-bottom: 10px; }
.pc-status small { font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--lime-hi); }
.pc-status h2 { font-size: 28px; margin: 6px 0 8px; color: var(--lime-hi); }
.pc-status p { margin: 0; font-size: 13px; }
.pc-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 16px; }
.pc-progress div { display: grid; gap: 6px; font-size: 10.5px; font-weight: 700; opacity: .5; }
.pc-progress i { height: 5px; border-radius: 99px; background: rgba(246, 244, 216, .3); }
.pc-progress div.on { opacity: 1; }
.pc-progress div.on i { background: var(--lime-hi); }
.pc-here { display: flex; align-items: center; gap: 10px; justify-content: space-between; background: var(--lime); color: var(--on-lime); border-radius: 20px; padding: 16px; margin-bottom: 10px; }
.pc-here b { display: block; font-size: 15px; font-weight: 800; }
.pc-here small { display: block; font-size: 12px; color: inherit; opacity: .85; margin-top: 2px; }
.pc-here .pc-cta { background: var(--ink); color: var(--lime-hi); white-space: nowrap; }
.pc-here .pc-cta:hover { background: var(--ink-2); }
.pc-arrived { display: flex; gap: 12px; background: var(--violet-tint); border: 1.5px solid #D3C9F2; border-radius: 20px; padding: 14px; margin-bottom: 10px; }
.pc-arrived b { display: block; font-size: 15px; font-weight: 800; color: var(--violet); }
.pc-arrived small { display: block; font-size: 12.5px; margin: 2px 0 4px; }
.pc-arrived-ico { width: 32px; height: 32px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; font-weight: 900; flex: none; }
.pc-price { background: var(--paper); border: 2px solid var(--lime-deep); border-radius: 20px; padding: 15px; display: grid; gap: 6px; margin-bottom: 10px; }
.pc-price > small { font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-size: 10.5px; }
.pc-price > b { font-size: 15px; font-weight: 800; }
.pc-quote { margin: 0; font-size: 12.5px; font-style: italic; color: var(--ink-2); }
.pc-price-rows { display: grid; gap: 4px; background: var(--lime-tint); border-radius: 14px; padding: 11px 13px; margin: 4px 0; font-size: 13px; }
.pc-price-rows div { display: flex; justify-content: space-between; }
.pc-price-rows .total { border-top: 1px solid rgba(43, 46, 18, .15); padding-top: 6px; font-size: 14px; }
.strike { text-decoration: line-through; color: var(--muted); }
.pc-pay { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 15px; display: grid; gap: 8px; margin-bottom: 10px; font-size: 13px; }
.pc-pay h4 { font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; }
.pc-pay .pc-row span { color: var(--muted); }
.pc-cardbox { border: 1.5px dashed #C9C69A; border-radius: 14px; padding: 14px; text-align: center; color: var(--muted); font-size: 12.5px; }
.pc-wait { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 10px; font-weight: 800; }
.pc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime-deep); animation: pc-pulse 1.2s ease-in-out infinite; }
@keyframes pc-pulse { 50% { opacity: .25; transform: scale(.7); } }
.pc-sms { background: var(--paper); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 9px 11px; font-size: 12.5px; margin: 6px 0; }
.pc-sms time { display: block; font-size: 10.5px; color: var(--muted); margin-top: 3px; }

/* find my order */
.pc-code { font-size: 22px !important; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.pc-found { width: 100%; display: flex; justify-content: space-between; gap: 10px; text-align: left; background: var(--paper); border: 1.5px solid var(--line); border-radius: 18px; padding: 13px; margin-bottom: 8px; cursor: pointer; }
.pc-found:hover { border-color: var(--lime-deep); }
.pc-found b { display: block; font-size: 15px; font-weight: 900; }
.pc-found small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.pc-found-r { display: grid; gap: 4px; justify-items: end; align-content: start; }
.pc-found-r em { font-style: normal; font-size: 10.5px; font-weight: 900; background: var(--violet-tint); color: var(--violet); padding: 2px 8px; border-radius: 99px; white-space: nowrap; }

@media (max-width: 760px) {
  .kcols { grid-template-columns: 1fr; }
  .layout { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .pc-dot { animation: none; }
  .pc-big:hover:not(:disabled) { transform: none; }
}

/* ---------- cash: what was handed over, the change, and a drawer that adds up */
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.knote { background: var(--info-bg); color: var(--info); border-radius: 8px; padding: 6px 8px; font-size: 12px; margin: 6px 0; overflow-wrap: anywhere; }
.cash-line { display: flex; flex-wrap: wrap; gap: 4px 14px; background: var(--good-bg); color: var(--good); border-radius: 10px; padding: 7px 10px; font-size: 12px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.cash-sum { display: grid; gap: 5px; font-size: 13px; font-variant-numeric: tabular-nums; }
.cash-sum div { display: flex; justify-content: space-between; gap: 12px; }
.cash-sum .total { border-top: 1px solid var(--line); padding-top: 7px; margin-top: 2px; font-size: 15px; font-weight: 800; }
.change { border-radius: 12px; padding: 11px 13px; margin: 2px 0 12px; font-size: 13px; background: var(--cream-2); color: var(--muted); }
.change b { font-size: 20px; font-weight: 900; margin-left: 6px; font-variant-numeric: tabular-nums; }
.change.ok { background: var(--good-bg); color: var(--good); }
.change.short { background: var(--bad-bg); color: var(--bad); }

/* ---------- reviews */
.stars { letter-spacing: 1px; white-space: nowrap; }
.stars i { font-style: normal; color: var(--line); }
.stars i.on { color: #D9A514; }
.review { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.review:last-child { border-bottom: 0; }
.review p { margin: 5px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.verified { font-size: 10.5px; font-weight: 800; color: var(--good); background: var(--good-bg); border-radius: 99px; padding: 2px 8px; white-space: nowrap; }
.review-bars { display: grid; gap: 3px; font-size: 11.5px; margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.review-bars div { display: grid; grid-template-columns: 26px 1fr 18px; gap: 8px; align-items: center; }
.review-bars i { height: 6px; background: var(--cream-2); border-radius: 99px; overflow: hidden; display: block; }
.review-bars em { display: block; height: 100%; background: #D9A514; border-radius: 99px; }
.review-bars span:last-child { text-align: right; color: var(--muted); }

.pc-reviews { background: var(--paper); color: var(--ink); border-radius: 18px; margin-bottom: 12px; }
.pc-reviews > button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 12px 14px; cursor: pointer; border-radius: 18px; }
.pc-reviews > button:hover { background: rgba(255, 254, 243, .5); }
.pc-reviews > .pc-reviews-h { padding: 12px 14px; }
.pc-reviews-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; }
.pc-reviews-h b { font-size: 15px; font-weight: 900; white-space: nowrap; }
.pc-reviews-h span { color: var(--ink-2); font-weight: 700; }
.pc-reviews p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-reviews p em { font-style: normal; font-weight: 800; white-space: nowrap; }
.pc-block h4 em { font-style: normal; font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; }
.pc-field small.over { color: var(--bad); font-weight: 800; }
.pc-ordernote { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; overflow-wrap: anywhere; }
.pc-ordernote b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); margin-bottom: 2px; }
.pc-reviewbox { border-color: var(--lime-deep); }
.pc-starpick { display: flex; gap: 4px; margin: 0 0 10px; }
.pc-starpick button { border: 0; background: none; font-size: 36px; line-height: 1; padding: 2px 4px; cursor: pointer; color: var(--line); }
.pc-starpick button.on { color: #D9A514; }
.pc-starpick button:focus-visible { outline: 2px solid var(--ink); border-radius: 8px; }
.cash-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.cash-quick button { border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 8px 13px; font-weight: 800; font-size: 13px; cursor: pointer; font-variant-numeric: tabular-nums; }
.cash-quick button:hover { border-color: var(--lime-deep); }
.cash-quick button.on { background: var(--ink); border-color: var(--ink); color: var(--lime-hi); }
.stars i.half { background: linear-gradient(90deg, #D9A514 50%, var(--line) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pc-field textarea { font-weight: 500; resize: vertical; }
.pc-field input.pc-code { font-size: 26px; font-weight: 900; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; padding: 12px; }
.pc-reviewdraft { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }

/* ---------- owner setup: menu editor, loyalty, text list */
.menu-sec h4 { font-size: 11.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 14px 0 2px; }
.menu-row { display: grid; grid-template-columns: 1fr auto auto; gap: 6px 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.menu-row.hidden .menu-row-main, .menu-row.hidden > .num { opacity: .5; }
.menu-row-main b { margin-right: 6px; }
.menu-row-actions { justify-content: flex-end; }
@media (max-width: 760px) { .menu-row { grid-template-columns: 1fr auto; } .menu-row-actions { grid-column: 1 / -1; justify-content: flex-start; } }
h4.sub { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; margin: 14px 0 4px; }
.reward-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 10px; align-items: end; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.reward-form .field select { border-radius: 12px; padding: 10px 11px; font-size: 14px; font-weight: 400; }
.reward-form .btn { margin-bottom: 10px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; margin: 6px 0; }
.inline-money { width: 70px; margin: 0 6px; border: 1px solid var(--line); border-radius: 8px; padding: 3px 6px; background: #fff; }
.inline-money:disabled { background: var(--cream-2); }
.pc-agree { align-items: flex-start; background: var(--paper); border: 1.5px solid var(--line); border-radius: 16px; padding: 12px; margin: 0 0 10px; line-height: 1.4; }
.pc-agree input { margin-top: 2px; flex: none; }
.pc-agree em { display: block; font-style: normal; color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.pc-agree.need { border-color: var(--bad); background: var(--bad-bg); }
.pc-stamps { margin: 0 0 8px; font-size: 13px; }
.pc-stamps b { font-size: 18px; font-weight: 900; }
.pc-stamps span { color: var(--muted); }
.pc-home-loyalty { margin: 0 0 10px; text-align: center; font-size: 12px; font-weight: 700; color: var(--on-lime); }

/* ---------- pick-up times: per-time limits, hours, and the customer's red low tag */
.pc-low { display: inline-block; color: #fff; background: var(--bad); border-radius: 99px; padding: 2px 8px; font-size: 10.5px; font-weight: 900; letter-spacing: .01em; white-space: nowrap; }
.pc-pickup .pc-low, .pc-choice .pc-low { margin-top: 4px; }
.pc-pickup > span:nth-child(2) { display: grid; justify-items: start; }
.pc-choice button > span { display: grid; justify-items: start; }
.pc-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.pc-times button { display: grid; gap: 3px; justify-items: center; border: 1.5px solid var(--line); background: var(--paper); border-radius: 14px; padding: 9px 4px; cursor: pointer; font-size: 12.5px; }
.pc-times button b { font-weight: 800; }
.pc-times button.low { border-color: #E9B3A8; }
.pc-times button.on { background: var(--ink); border-color: var(--ink); color: var(--lime-hi); }
.pc-times button .pc-low { font-size: 9.5px; padding: 1px 6px; }
.pickup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 10px; }
.pickup-grid .field select, .pickup-grid .field input { border-radius: 12px; padding: 9px 10px; font-size: 14px; font-weight: 400; }
.hours-row { display: grid; grid-template-columns: 96px 110px auto 110px 1fr; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.hours-row input { border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; background: #fff; font-size: 13px; }
.hours-row .btn { justify-self: end; }
@media (max-width: 520px) { .hours-row { grid-template-columns: 80px 1fr auto 1fr; } .hours-row .btn { grid-column: 1 / -1; justify-self: start; } }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.slot-cell { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: var(--paper); font-size: 12.5px; }
.slot-cell input { border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; width: 100%; background: #fff; font-variant-numeric: tabular-nums; }
.slot-cell.custom { border-color: var(--violet); background: var(--violet-tint); }
.slot-cell.closed { opacity: .6; }
.menu-sec-h { margin-top: 10px; }
.menu-sec-h h4 { margin: 0; }
.opts { grid-column: 1 / -1; background: var(--cream); border-radius: 12px; padding: 10px 12px; margin-top: 4px; }
.opt-group { padding: 6px 0 8px; border-bottom: 1px dashed var(--line); }
.opt-group:last-of-type { border-bottom: 0; }
.opt { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 3px 0 3px 12px; font-size: 12.5px; }
.opt.off > span { text-decoration: line-through; color: var(--muted); }

/* ---------- brand: logo, photos, palette editor, promo codes */
.brand-logo { width: 34px; height: 34px; border-radius: 9px; object-fit: contain; background: #fff; flex: none; }
.pc-logo-row { display: flex; align-items: center; gap: 8px; }
.pc-logo-img { width: 30px; height: 30px; border-radius: 8px; object-fit: contain; background: #fff; flex: none; }
.pc-plate img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.pc-plate.logo img { object-fit: contain; border-radius: 0; padding: 18%; }
.pc-insta { display: inline-flex; align-items: center; gap: 6px; justify-content: center; margin: 0 auto 10px; font-size: 12px; font-weight: 800; color: var(--on-lime); text-decoration: underline; text-underline-offset: 3px; }
.logo-drop { display: flex; gap: 12px; align-items: center; }
.logo-drop .logo-box { width: 72px; height: 72px; border-radius: 14px; border: 1.5px dashed var(--line); display: grid; place-items: center; background: #fff; overflow: hidden; flex: none; }
.logo-drop .logo-box img { width: 100%; height: 100%; object-fit: contain; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 10px 0; }
.swatch { display: grid; gap: 4px; font-size: 12px; font-weight: 700; }
.swatch .sw { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 4px; background: #fff; }
.swatch input[type=color] { width: 34px; height: 30px; border: 0; padding: 0; background: none; cursor: pointer; flex: none; }
.swatch input[type=text] { width: 100%; border: 0; font: inherit; font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: transparent; min-width: 0; }
.brand-preview { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px; border-radius: 12px; border: 1px solid var(--line); }
.thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; background: var(--cream-2); display: grid; place-items: center; font-size: 20px; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.menu-row.with-photo { grid-template-columns: auto 1fr auto auto; }
.menu-row.with-photo .opts, .menu-row.with-photo .menu-row-actions { grid-column: 1 / -1; }
@media (min-width: 761px) { .menu-row.with-photo .menu-row-actions { grid-column: auto; } }
.tax-select { border: 1px solid var(--line); border-radius: 8px; padding: 2px 4px; background: #fff; font-size: 11.5px; margin-top: 4px; }
.promo-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.promo-row code { font-weight: 900; font-size: 13.5px; letter-spacing: .03em; }
.promo-row.off code { text-decoration: line-through; color: var(--muted); }
.switch { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); margin-bottom: 10px; cursor: pointer; font-size: 13px; }
.switch input { width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.dim { opacity: .45; pointer-events: none; }
.inline-field { border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; background: #fff; font-size: 13px; min-width: 0; }
.modal select { border: 1px solid var(--line); border-radius: 12px; padding: 10px 11px; font-weight: 400; font-size: 14px; background: #fff; }

/* ---------- Virtual Drive Thru home page (main site): discovery feed */
.entry-switch { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 8px; }
.entry-switch button { border: 1px solid var(--line); background: var(--paper); border-radius: 99px; padding: 5px 11px; font-size: 12px; font-weight: 800; cursor: pointer; }
.entry-switch button.on { background: var(--ink); border-color: var(--ink); color: var(--lime-hi); }
.vdt { padding-top: 0; }
.vdt-mark { font-family: "Archivo", "Arial Black", sans-serif; font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: 15px; line-height: .95; color: var(--lime-hi); }
.vdt-mark.big { font-size: 30px; color: var(--ink); margin: 26px 0 10px; }
.vdt-hero { display: flex; flex-direction: column; justify-content: center; padding-bottom: 20px; }
.vdt-hero-h { font-size: 20px; font-weight: 800; line-height: 1.2; margin: 0 0 16px; }
.vdt-top { position: sticky; top: 0; z-index: 2; margin: 0 -16px 10px; padding: 12px 16px; background: var(--ink); color: var(--cream); display: grid; gap: 6px; }
.vdt-place { justify-self: start; border: 0; background: rgba(255,255,255,.12); color: var(--cream); border-radius: 99px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.vdt-place b { font-weight: 900; }
.vdt-where { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin-bottom: 10px; font-size: 13px; display: grid; }
.vdt-search { margin-bottom: 10px; }
.vdt-cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin: 0 -16px 2px; padding-left: 16px; padding-right: 16px; scroll-padding: 0 16px; scrollbar-width: none; }
.vdt-cat { flex: none; display: grid; justify-items: center; gap: 4px; width: 68px; border: 0; background: none; font-size: 11px; font-weight: 800; cursor: pointer; color: var(--ink); }
.vdt-cat span { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: var(--paper); border: 1.5px solid var(--line); }
.vdt-cat.on span { background: var(--ink); border-color: var(--ink); }
.vdt-chip { border: 1.5px solid var(--line); background: var(--paper); border-radius: 99px; padding: 6px 11px; font-size: 12px; font-weight: 800; cursor: pointer; }
.vdt-chip.on { background: var(--ink); border-color: var(--ink); color: var(--lime-hi); }
.vdt-row { margin-bottom: 14px; }
.vdt-row h3 { font-size: 16px; font-weight: 900; margin: 0 0 8px; }
.vdt-strip { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; }
.vdt-tile { flex: none; width: 168px; display: grid; gap: 2px; text-align: left; border: 0; background: none; padding: 0; cursor: pointer; scroll-snap-align: start; color: var(--ink); }
.vdt-tile b { font-size: 13.5px; font-weight: 900; margin-top: 6px; }
.vdt-tile small { font-size: 11.5px; color: var(--muted); }
.vdt-tile small.t-good { color: var(--good); font-weight: 700; }
.vdt-cover { position: relative; display: grid; place-items: center; width: 100%; height: 96px; border-radius: 14px; overflow: hidden; }
.vdt-cover.tall { height: 120px; }
.vdt-cover > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.vdt-cover-emoji { font-size: 44px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }
.vdt-cover-logo { position: absolute; left: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 9px; background: #fff; object-fit: contain; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.vdt-cover-off { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; font-size: 12px; font-weight: 800; }
.vdt-card { width: 100%; display: grid; gap: 8px; text-align: left; background: var(--paper); border: 1.5px solid var(--line); border-radius: 18px; padding: 8px; margin-bottom: 10px; cursor: pointer; color: var(--ink); }
.vdt-card:hover { border-color: var(--lime-deep); }
.vdt-card-b { display: grid; gap: 2px; padding: 0 4px 4px; min-width: 0; }
.vdt-card-b b { font-size: 15px; font-weight: 900; }
.vdt-card-b small { color: var(--muted); font-size: 11.5px; }
.vdt-km { font-size: 12px; font-weight: 900; white-space: nowrap; }
.vdt-status { justify-self: start; margin-top: 3px; font-size: 11px; font-weight: 800; border-radius: 99px; padding: 2px 8px; background: var(--cream-2); color: var(--ink); }
.vdt-status.open { background: var(--good-bg); color: var(--good); }
.vdt-status.off { background: var(--bad-bg); color: var(--bad); }
.pc-home-back { align-self: flex-start; border: 0; background: var(--paper); color: var(--ink); border-radius: 99px; padding: 6px 12px; font-weight: 800; font-size: 12px; cursor: pointer; }
.pc-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 0 0 10px; }
.pc-links a { display: inline-flex; align-items: center; gap: 5px; background: var(--paper); color: var(--ink); border-radius: 99px; padding: 5px 10px; font-size: 11.5px; font-weight: 800; text-decoration: none; }
.scan-box { margin-top: 14px; padding: 12px; border: 1.5px dashed var(--lime-deep); border-radius: 14px; background: var(--paper); }
.dot { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: inline-block; }
.swatch small { font-size: 10.5px; font-weight: 600; }

/* ---------- undo, colour preview */
.toast { display: flex; align-items: center; gap: 12px; }
.toast-undo { border: 0; background: rgba(255,255,255,.22); color: inherit; font-weight: 900; border-radius: 99px; padding: 4px 12px; cursor: pointer; }
.toast-undo:hover { background: rgba(255,255,255,.35); }
.undo-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; box-shadow: var(--shadow); }
.undo-bar.empty { box-shadow: none; position: static; }
.scan-result { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.preview-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0; }
.mini-store { margin: 8px 0 0; display: grid; gap: 4px; justify-items: center; }
.mini-phone { width: 100%; max-width: 180px; border-radius: 18px; padding: 10px 9px; display: grid; gap: 5px; justify-items: center; border: 4px solid #1f1f1f; }
.mini-name { font-family: "Archivo", "Arial Black", sans-serif; font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: 13px; text-align: center; line-height: 1; }
.mini-plate { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; font-size: 22px; }
.mini-plate img { width: 70%; height: 70%; object-fit: contain; }
.mini-btn { width: 100%; border-radius: 9px; padding: 5px 7px; font-size: 9.5px; font-weight: 800; }
.mini-pill { border-radius: 99px; padding: 1px 7px; font-size: 8.5px; font-weight: 800; }
.mini-swatch { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; }
.mini-swatch .dot { width: 16px; height: 16px; }

/* ---------- owner Settings: one place for everything that isn't the kitchen */
.settings { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; }
.settings-nav { position: sticky; top: 8px; display: grid; gap: 2px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.settings-nav h2 { font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; margin: 2px 6px 6px; }
.settings-nav button { display: flex; align-items: center; gap: 9px; border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--ink); }
.settings-nav button:hover { background: var(--cream-2); }
.settings-nav button.on { background: var(--ink); color: var(--lime-hi); }
.settings-nav button.test { margin-top: 6px; border-top: 1px dashed var(--line); border-radius: 0 0 10px 10px; padding-top: 12px; }
.settings-nav button .count { margin-left: auto; }
.settings-h { display: grid; gap: 2px; }
.settings-h h2 { font-size: 20px; font-weight: 900; }
@media (max-width: 900px) {
  .settings { grid-template-columns: 1fr; }
  .settings-nav { position: static; display: flex; overflow-x: auto; padding: 6px; scrollbar-width: none; }
  .settings-nav h2 { display: none; }
  .settings-nav button { flex: none; white-space: nowrap; }
  .settings-nav button.test { margin-top: 0; border-top: 0; border-radius: 10px; padding-top: 8px; }
}
.unpaid-note { background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: 7px 10px; font-size: 12px; font-weight: 700; margin-top: 6px; }

/* ---------- connections */
.conn-connected { background: var(--good-bg); color: var(--good); }
.conn-needs_attention { background: var(--warn-bg); color: var(--warn); }
.conn-pending { background: var(--info-bg); color: var(--info); }
.test-link { font-size: 11px; color: var(--muted); display: inline; margin-left: 4px; }
ul.tight { margin: 4px 0 8px; padding-left: 18px; }
.modal table { width: 100%; font-size: 12px; border-collapse: collapse; }
.modal td, .modal th { padding: 4px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.modal { max-height: 90vh; overflow-y: auto; }

/* ---------- connections: a row of logos */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
.logo-tile { display: grid; justify-items: center; gap: 4px; padding: 14px 6px 10px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--paper); cursor: pointer; color: var(--ink); transition: transform .12s, border-color .12s; }
.logo-tile:hover { transform: translateY(-2px); border-color: var(--lime-deep); }
.logo-tile.connected { border-color: var(--good); }
.logo-tile.needs_attention { border-color: var(--warn); }
.logo-mark { position: relative; width: 52px; height: 52px; display: block; }
.logo-mark svg { width: 100%; height: 100%; display: block; border-radius: 13px; }
.logo-mark.big { width: 56px; height: 56px; flex: none; }
.logo-badge { position: absolute; right: -5px; bottom: -5px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 900; color: #fff; border: 2px solid var(--paper); }
.logo-badge.ok { background: var(--good); }
.logo-badge.warn { background: var(--warn); }
.logo-name { font-size: 12.5px; font-weight: 800; }
.logo-state { font-size: 10.5px; font-weight: 700; color: var(--muted); }
.logo-tile.connected .logo-state { color: var(--good); }
.logo-tile.needs_attention .logo-state { color: var(--warn); }
.conn-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.conn-head p { margin: 0; }
.books { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.books summary { cursor: pointer; font-weight: 700; }
