/* Gordi’s — app design system from the locked brand spec (Nov 17 2026): vintage beverage brand inside a modern ordering app.
   Tomato red (sampled from the approved can render), warm cream, espresso text, Fraunces display + DM Sans functional. Phone first. */
:root {
  --red: #B10101; --red-2: #8E0101; --red-soft: rgba(177, 1, 1, .08);
  --cream: #F3E5C9; --soft: #FFF8ED; --espresso: #302018; --coffee: #927661; --border: #E3D4BF; --border-2: #D2BFA3;
  --basil: #2F9E5F; --basil-2: #227A48;
  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --ui: 'DM Sans', system-ui, -apple-system, sans-serif;
  --w: 520px; --pad: 20px; --r: 12px; --r-sm: 8px;
  --shadow: 0 1px 2px rgba(48, 32, 24, .05), 0 8px 24px -16px rgba(48, 32, 24, .25);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--espresso); background: var(--cream); font: 16px/1.5 var(--ui); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; min-height: 100dvh; overflow-x: hidden; }
#app { position: relative; z-index: 1; max-width: var(--w); margin: 0 auto; padding: 0 var(--pad) 120px; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- type ---------- */
.disp { font-family: var(--display); font-weight: 900; font-variation-settings: 'SOFT' 100, 'opsz' 144; letter-spacing: -.015em; line-height: .96; }
.lbl { font-family: var(--ui); font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--coffee); }
.wordmark { display: block; height: auto; width: auto; color: var(--red); }
img.wordmark { object-fit: contain; }
.crown { display: block; color: var(--red); }
.capsule { display: inline-block; border: 2px solid var(--red); color: var(--red); border-radius: 999px; padding: 3px 11px; font-family: var(--ui); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.3; white-space: nowrap; }
.capsule.on { background: var(--red); color: var(--soft); }
.star { width: 14px; height: 14px; display: inline-block; color: var(--red); vertical-align: middle; }

/* ---------- top bar ---------- */
.top { display: flex; align-items: center; justify-content: space-between; padding: calc(14px + env(safe-area-inset-top)) 0 10px; }
.top .mark { display: flex; align-items: center; gap: 10px; text-decoration: none; background: none; border: 0; padding: 0; }
.top .mark .crown { width: 20px; }
.top .mark .wordmark { width: 92px; }
.top .nav { display: flex; gap: 6px; }
.top .nav button { background: transparent; border: 1.5px solid var(--border-2); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 13px; min-height: 38px; color: var(--espresso); }
.top .nav button.cart { border-color: var(--espresso); }
.top .nav button.cart b { color: var(--red); margin-left: 4px; }

/* ---------- home ---------- */
.hero { text-align: left; padding: 10px 0 0; }
.hero .brandline { display: grid; justify-items: center; gap: 4px; padding: 10px 0 10px; }
.hero .brandline .crown { width: 30px; }
.hero .brandline .wordmark { width: min(78%, 300px); }
.hero .brandline .wordmark.lockup { width: min(86%, 330px); }
.hero .brandline .desc { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--red); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.hero .brandline .desc::before, .hero .brandline .desc::after { content: ''; width: 18px; border-top: 2px solid var(--red); }
.hero h1 { margin: 6px 0 0; font-size: clamp(44px, 13vw, 58px); color: var(--espresso); text-transform: uppercase; }
.hero h1 em { font-style: normal; color: var(--red); display: block; }
.hero .photo { margin: 18px calc(-1 * var(--pad)) 0; position: relative; }
.hero .photo img { width: 100%; height: auto; aspect-ratio: 887 / 1774; object-fit: cover; max-height: 78dvh; object-position: center 40%; }
.hero .sub { margin: 20px 0 0; font-size: 16px; line-height: 1.5; color: var(--espresso); max-width: 34ch; }
.hero .sub b { color: var(--red); }
.cta { display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; border: 0; border-radius: var(--r); background: var(--red); color: var(--soft); padding: 16px 20px; font-weight: 700; font-size: 16px; min-height: 54px; transition: background .15s, transform .1s; }
.cta:active { background: var(--red-2); transform: translateY(1px); }
.cta:disabled { background: var(--border-2); color: var(--coffee); }
.cta.outline { background: transparent; color: var(--red); border: 2px solid var(--red); }
.cta.quiet { background: var(--soft); color: var(--espresso); border: 1.5px solid var(--border-2); }
.cta .amt { font-variant-numeric: tabular-nums; }
.hero .cta { margin-top: 18px; }
.sec { display: flex; align-items: baseline; justify-content: space-between; margin: 32px 0 12px; }
.sec h2 { margin: 0; font-family: var(--display); font-weight: 900; font-variation-settings: 'SOFT' 100, 'opsz' 48; font-size: 28px; letter-spacing: -.01em; line-height: 1; }
.sec .more { background: none; border: 0; color: var(--red); font-weight: 700; font-size: 14px; padding: 0; }
.featured { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.featured .fcard { background: var(--soft); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; text-align: left; padding: 0; display: block; width: 100%; color: inherit; }
.featured .fcard .photo { aspect-ratio: 4 / 5; }
.featured .fcard.text .fcap { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 12px; border-bottom: 1px solid var(--border); }
.featured .fcard.text .fcap .capsule { white-space: normal; text-align: center; line-height: 1.3; font-size: 10px; }
.featured .fcard .fb { padding: 10px 12px 12px; }
.featured .fcard .nm { font-family: var(--display); font-weight: 900; font-variation-settings: 'SOFT' 100, 'opsz' 24; font-size: 19px; line-height: 1.05; }
.featured .fcard .pr { font-size: 13px; color: var(--coffee); margin-top: 3px; font-weight: 600; }

/* ---------- product photo + photo-ready placeholder (same composition as the render) ---------- */
.photo { position: relative; background: linear-gradient(112deg, #E9D5B8 0%, #F2E2C6 28%, #E3C9A9 55%, #F0DEC0 78%, #E6CFAF 100%); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }

/* ---------- batch strip ---------- */
.batch { background: var(--soft); border: 1px solid var(--border); border-radius: var(--r); margin: 16px 0 20px; overflow: hidden; }
.batch .row1 { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 10px; border-bottom: 1px solid var(--border); }
.batch .row1 .t { font-family: var(--display); font-weight: 900; font-variation-settings: 'SOFT' 100, 'opsz' 24; font-size: 20px; }
.batch .row1 .state { font-size: 12px; font-weight: 700; color: var(--red); }
.batch .row1 .state.off { color: var(--coffee); }
.batch .grid { display: grid; grid-template-columns: 1fr 1fr; }
.batch .cell { padding: 10px 16px 12px; }
.batch .cell:first-child { border-right: 1px solid var(--border); }
.batch .cell .v { display: block; font-weight: 700; font-size: 17px; margin-top: 1px; line-height: 1.2; }
.batch .cell .v.red { color: var(--red); }
.batch .cell .s { display: block; font-size: 12.5px; color: var(--coffee); margin-top: 1px; }
.batch .left { grid-column: 1 / -1; padding: 10px 16px 14px; border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; }
.batch .left .v { font-weight: 700; font-size: 15px; }
.batch .left .v b { color: var(--red); }
.bar { grid-column: 1 / -1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--red); border-radius: 3px; transition: width .5s ease; }

/* ---------- product cards (menu) ---------- */
.card { position: relative; background: var(--soft); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; margin: 0 0 14px; width: 100%; padding: 0; display: grid; grid-template-columns: 128px 1fr; text-align: left; color: inherit; box-shadow: var(--shadow); }
.card .photo { aspect-ratio: 4 / 5; }
.card .body { padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card .nm { font-family: var(--display); font-weight: 900; font-variation-settings: 'SOFT' 100, 'opsz' 36; font-size: 26px; letter-spacing: -.01em; line-height: 1; margin: 0; }
.card .ds { font-size: 13.5px; color: var(--coffee); line-height: 1.4; margin: 0; }
.card .meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.card .pr { font-weight: 700; font-size: 16px; }
.card .sz { font-size: 12px; color: var(--coffee); }
.card .add { margin-top: 4px; align-self: flex-start; background: var(--red); color: var(--soft); border: 0; border-radius: var(--r-sm); padding: 9px 14px; font-weight: 700; font-size: 13px; min-height: 38px; }
.card .add:disabled { background: var(--border); color: var(--coffee); }
.card.hero .nm { font-size: 28px; }
.card.out .body, .card.out .photo { opacity: .5; }
.card .incart { position: absolute; top: 10px; left: 10px; background: var(--basil); color: #fff; font-weight: 700; font-size: 12px; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; display: grid; place-items: center; }
.card .flag { display: inline-block; margin-bottom: 2px; min-height: 0; }
.card .flag:empty { display: none; }
.card.nophoto { grid-template-columns: 1fr; }
.card.nophoto .body { padding: 16px 16px 14px; }
.card .flag .capsule { font-size: 9.5px; padding: 2px 8px; }

/* ---------- product detail ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 0; padding: 14px 0 8px; font-weight: 600; font-size: 14px; color: var(--coffee); }
.detail .photo { margin: 0 calc(-1 * var(--pad)); aspect-ratio: 4 / 5; max-height: 62dvh; }
.detail .photo img { object-position: center 35%; }
.detail .dh { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 18px 0 6px; }
.detail .dh h1 { margin: 0; font-size: 44px; }
.detail .dh .pr { font-family: var(--display); font-weight: 900; font-variation-settings: 'SOFT' 100, 'opsz' 36; font-size: 26px; white-space: nowrap; color: var(--red); }
.detail .caps { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 4px 0 10px; }
.detail.nophoto .dh { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--border); }
.detail .caps .sz { font-size: 13px; color: var(--coffee); }
.detail .ds { margin: 0; font-size: 16px; line-height: 1.5; }
.specs { margin: 16px 0 0; border-top: 1px solid var(--border); }
.specs .row { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.specs .row .k { color: var(--coffee); font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }
.specs .row .v em { font-style: normal; color: var(--red); font-weight: 600; }
.grp { margin: 18px 0 0; }
.grp .k { display: flex; justify-content: space-between; margin-bottom: 8px; }
.grp .k span:last-child { font-size: 12px; color: var(--coffee); text-transform: none; letter-spacing: 0; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--border-2); color: var(--espresso); background: var(--soft); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; min-height: 40px; transition: background .15s, border-color .15s; }
.chip small { font-size: 12px; color: var(--coffee); font-weight: 500; }
.chip.on { background: var(--espresso); border-color: var(--espresso); color: var(--soft); }
.chip.on small { color: var(--border); }
.qty { display: inline-grid; grid-template-columns: 44px 52px 44px; align-items: center; border: 1.5px solid var(--border-2); border-radius: 999px; overflow: hidden; background: var(--soft); }
.qty button { border: 0; background: transparent; height: 44px; font-size: 20px; font-weight: 600; color: var(--espresso); }
.qty button:disabled { color: var(--border-2); }
.qty b { text-align: center; font-weight: 700; font-size: 18px; }
.qty-row { display: flex; justify-content: space-between; align-items: center; margin: 20px 0 6px; }
.detail .cta { margin-top: 16px; justify-content: space-between; }
.detail .fine { margin-top: 12px; }

/* ---------- cart bar ---------- */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px var(--pad) calc(12px + env(safe-area-inset-bottom)); display: flex; justify-content: center; pointer-events: none; }
.cartbar .in { pointer-events: auto; width: 100%; max-width: calc(var(--w) - var(--pad) * 2); background: var(--espresso); color: var(--soft); border-radius: var(--r); box-shadow: 0 14px 30px -12px rgba(48,32,24,.55); display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 6px 6px 6px 18px; gap: 10px; }
.cartbar .sum b { font-weight: 700; font-size: 16px; }
.cartbar .sum span { font-size: 14px; opacity: .8; margin-left: 8px; font-variant-numeric: tabular-nums; }
.cartbar .hint { display: block; font-size: 12px; font-weight: 600; color: #9EDDB7; margin-top: 1px; }
.cartbar button { background: var(--red); color: var(--soft); border: 0; border-radius: var(--r-sm); padding: 12px 16px; font-weight: 700; font-size: 14px; min-height: 46px; }

/* ---------- cart / checkout ---------- */
.page-title { margin: 4px 0 16px; font-size: 40px; }
.lines { background: var(--soft); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 6px 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); align-items: center; }
.line:last-child { border-bottom: 0; }
.line .photo { width: 56px; aspect-ratio: 4 / 5; border-radius: 6px; }
.line.nophoto { grid-template-columns: 14px 1fr auto; }
.line .dot { width: 12px; height: 12px; border-radius: 50%; display: block; }
.line .nm { font-weight: 700; font-size: 16px; line-height: 1.2; }
.line .ad { font-size: 12.5px; color: var(--coffee); margin-top: 2px; }
.line .amt { font-weight: 700; font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; }
.line .amt .ad { font-weight: 500; }
.line .edit { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.line .qty { grid-template-columns: 38px 40px 38px; }
.line .qty button { height: 36px; font-size: 18px; }
.line .qty b { font-size: 15px; }
.line .rm { background: transparent; border: 0; font-size: 13px; font-weight: 600; color: var(--coffee); padding: 8px 0; text-decoration: underline; }
.totals { margin: 16px 0; }
.totals .t { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.totals .t.sum { border-bottom: 0; border-top: 2px solid var(--espresso); margin-top: 4px; padding-top: 10px; font-weight: 700; font-size: 20px; }
.totals .t.basil { color: var(--basil-2); font-weight: 600; }
.tag { display: inline-block; white-space: nowrap; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.tag.basil { background: var(--basil); color: #fff; }
.tag.line { background: transparent; border: 1.5px solid currentColor; }
.nudge { display: flex; align-items: center; gap: 10px; background: #EAF4EC; border: 1px solid #BFDFC9; color: var(--basil-2); border-radius: var(--r); padding: 10px 12px; margin: 12px 0; font-size: 14px; font-weight: 600; }
.pips { display: flex; gap: 4px; }
.pips i { width: 10px; height: 10px; border-radius: 50%; background: var(--basil); }
.pips i.off { background: transparent; border: 1.5px solid var(--basil); }
.field { margin: 14px 0; }
.field label { display: block; margin-bottom: 6px; }
.field input { width: 100%; border: 1.5px solid var(--border-2); background: var(--soft); border-radius: var(--r-sm); padding: 13px 14px; font-size: 17px; outline: none; transition: border-color .15s, box-shadow .15s; }
.field input:focus { border-color: var(--espresso); box-shadow: 0 0 0 3px rgba(48,32,24,.08); }
.field .help { font-size: 13px; color: var(--coffee); margin-top: 6px; }
.field.err input { border-color: var(--red); }
.err { color: var(--red); font-weight: 600; font-size: 13.5px; margin: 6px 0 0; }
.fine { font-size: 13px; color: var(--coffee); line-height: 1.55; margin: 14px 0 0; }
.fine b { color: var(--espresso); font-weight: 600; }
.checkout-btn { margin-top: 18px; justify-content: space-between; }
.empty { text-align: center; padding: 50px 20px; color: var(--coffee); }
.empty .disp { font-size: 30px; margin-bottom: 8px; color: var(--espresso); }
.empty .crown { width: 28px; margin: 0 auto 12px; }

/* ---------- the pickup pass ---------- */
.pass { margin: 10px 0 0; background: var(--soft); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.pass .top-strip { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.pass .top-strip .mk { display: flex; align-items: center; gap: 10px; }
.pass .top-strip .crown { width: 18px; }
.pass .top-strip .wordmark { width: 84px; }
.pass .top-strip .no { font-size: 12px; color: var(--coffee); font-weight: 600; letter-spacing: .04em; }
.pass .body { padding: 18px 18px 18px; }
.pass .code-k { text-align: center; margin: 0 0 10px; }
.code { display: flex; justify-content: center; gap: 8px; }
.code b { font-family: var(--display); font-weight: 900; font-variation-settings: 'SOFT' 100, 'opsz' 144; font-size: 60px; line-height: 1; width: 62px; height: 80px; display: grid; place-items: center; border: 1.5px solid var(--border-2); border-radius: 10px; background: var(--cream); color: var(--red); }
.pass .who { text-align: center; margin: 14px 0 4px; font-family: var(--display); font-weight: 900; font-variation-settings: 'SOFT' 100, 'opsz' 36; font-size: 26px; }
.pass .pay-tag { text-align: center; margin: 0 0 6px; }
.pass .specs { margin-top: 12px; }
.pass .specs .row { grid-template-columns: 84px 1fr; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 16px 0 4px; }
.steps .st { text-align: center; position: relative; }
.steps .st i { display: grid; place-items: center; width: 32px; height: 32px; margin: 0 auto 6px; border-radius: 50%; border: 1.5px solid var(--border-2); color: var(--coffee); background: var(--soft); font-weight: 700; font-size: 13px; position: relative; z-index: 1; font-style: normal; }
.steps .st.done i { background: var(--basil); border-color: var(--basil); color: #fff; }
.steps .st.now i { background: var(--red); border-color: var(--red); color: var(--soft); }
.steps .st:not(:last-child)::after { content: ''; position: absolute; top: 15px; left: 50%; width: 100%; border-top: 1.5px solid var(--border); }
.steps .st span { display: block; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--coffee); line-height: 1.2; }
.pass .items { margin-top: 14px; font-size: 13.5px; color: var(--coffee); border-top: 1px solid var(--border); padding-top: 10px; }
.pass .items div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-variant-numeric: tabular-nums; }
.pass .items div span:first-child { color: var(--espresso); }
.pass-actions { margin: 16px 0 0; display: grid; gap: 10px; }
.pass-note { text-align: center; font-size: 13px; color: var(--coffee); margin: 14px 0 0; line-height: 1.5; }
.pass.cancelled .code b { opacity: .35; text-decoration: line-through; }

/* ---------- closed / before / sold-out ---------- */
.closed { margin: 0 0 14px; background: var(--soft); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.closed .photo { aspect-ratio: 3 / 2; }
.closed .photo img { object-position: center 78%; }
.closed .in { padding: 18px 18px 6px; }
.closed .eyebrow { color: var(--red); }
.closed h2 { margin: 4px 0 8px; font-size: 40px; }
.closed p { margin: 0; color: var(--coffee); font-size: 15px; line-height: 1.5; max-width: 36ch; }
.closed .next { display: grid; grid-template-columns: 1fr 1fr; margin: 16px 0 0; border-top: 1px solid var(--border); }
.closed .next .cell { padding: 12px 18px 14px; }
.closed .next .cell:first-child { border-right: 1px solid var(--border); }
.closed .next .v { display: block; font-weight: 700; font-size: 17px; margin-top: 1px; }
.alert-form { margin: 0 0 8px; background: var(--soft); border: 1px solid var(--border); border-radius: var(--r); padding: 16px 18px 18px; }
.alert-form h3 { margin: 0 0 2px; font-size: 26px; }
.alert-form p { margin: 0 0 6px; font-size: 14px; color: var(--coffee); }
.alert-form .cta { margin-top: 8px; }
.alert-form .ok { text-align: center; padding: 14px 0 4px; font-weight: 700; font-size: 18px; color: var(--basil-2); }
.dim { opacity: .55; pointer-events: none; filter: saturate(.7); }

/* ---------- catering (customer) ---------- */
.lead { margin: 0 0 14px; font-size: 15.5px; color: var(--coffee); line-height: 1.5; }
.lead b { color: var(--espresso); font-weight: 600; }
.stepnav { list-style: none; margin: 4px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.stepnav li { text-align: center; position: relative; }
.stepnav li i { display: grid; place-items: center; width: 26px; height: 26px; margin: 0 auto 4px; border-radius: 50%; border: 1.5px solid var(--border-2); color: var(--coffee); background: var(--soft); font-style: normal; font-size: 12px; font-weight: 700; position: relative; z-index: 1; }
.stepnav li.done i { background: var(--basil); border-color: var(--basil); color: #fff; }
.stepnav li.now i { background: var(--red); border-color: var(--red); color: var(--soft); }
.stepnav li:not(:last-child)::after { content: ''; position: absolute; top: 12px; left: 50%; width: 100%; border-top: 1.5px solid var(--border); }
.stepnav li span { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--coffee); }
.notice { background: var(--soft); border: 1px solid var(--border); border-left: 3px solid var(--red); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14.5px; line-height: 1.45; margin: 16px 0 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ct-list { background: var(--soft); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.ct-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.ct-row:last-child { border-bottom: 0; }
.ct-nm { display: grid; gap: 4px; min-width: 0; }
.ct-nm .capsule { max-width: 100%; white-space: normal; line-height: 1.25; font-size: 10px; justify-self: start; }
.ct-pr { font-size: 12px; color: var(--coffee); }
.ct-pr b { color: var(--espresso); }
.ct-row .qty { grid-template-columns: 36px 50px 36px; }
.ct-row .qty button { height: 38px; font-size: 18px; }
.ct-row .qty .qn { width: 50px; border: 0; background: transparent; text-align: center; font-weight: 700; font-size: 16px; padding: 0; outline: none; -moz-appearance: textfield; }
.ct-row .qty .qn::-webkit-outer-spin-button, .ct-row .qty .qn::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.chip.sm { min-height: 34px; padding: 6px 10px; font-size: 12px; }
.ct-sum { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); margin: 14px 0 0; background: var(--espresso); color: var(--soft); border-radius: var(--r); padding: 12px 16px; display: grid; gap: 4px; box-shadow: 0 14px 30px -12px rgba(48,32,24,.55); }
.ct-sum > div:first-child { display: flex; justify-content: space-between; align-items: baseline; }
.ct-sum b { font-size: 18px; }
.ct-sum span { font-size: 13px; opacity: .85; }
.ct-sum .msg { font-size: 13px; font-weight: 600; color: #9EDDB7; }
.ct-sum.warn .msg { color: #FFB4A8; }
.ct-sum a { color: inherit; }
.opt { width: 100%; text-align: left; display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; background: var(--soft); border: 1.5px solid var(--border-2); border-radius: var(--r); padding: 14px; margin: 0 0 10px; color: inherit; transition: border-color .15s; }
.opt i { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--border-2); display: block; }
.opt.on { border-color: var(--red); }
.opt.on i { background: var(--red); border-color: var(--red); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFF8ED' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); background-size: 16px; background-position: center; background-repeat: no-repeat; }
.opt b { display: block; font-size: 16px; }
.opt span { display: block; font-size: 13px; color: var(--coffee); line-height: 1.4; margin-top: 2px; }
.opt em { font-style: normal; font-weight: 700; font-size: 14px; white-space: nowrap; text-align: right; }
.catcard { margin: 30px 0 0; background: var(--soft); border: 1px solid var(--border); border-radius: var(--r); padding: 18px 18px 18px; box-shadow: var(--shadow); }
.catcard h2 { margin: 4px 0 6px; font-size: 32px; }
.catcard p { margin: 0 0 14px; color: var(--coffee); font-size: 15px; line-height: 1.5; }
.ct-done .body h2 { color: var(--espresso); }

/* ---------- toast + footer ---------- */
.toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--espresso); color: var(--soft); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 13px; z-index: 40; box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); animation: fade .2s; white-space: nowrap; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.view { animation: rise .22s ease; }
.footer { text-align: center; margin: 40px 0 0; font-size: 12px; color: var(--coffee); }
.footer .crown { width: 18px; margin: 0 auto 8px; opacity: .8; }
.footer button { background: none; border: 0; color: var(--coffee); text-decoration: underline; font-size: 12px; padding: 4px; }

/* ================= OWNER BOARD (dark, data-first; new palette only where legibility is untouched) ================= */
body.owner { background: #16100C; color: var(--cream); }
body.owner #app { padding-bottom: 96px; max-width: 640px; }
body.owner .disp { color: var(--cream); }
.ob-top { position: sticky; top: 0; z-index: 10; background: #16100C; padding: calc(10px + env(safe-area-inset-top)) 0 10px; border-bottom: 1px solid rgba(243,229,201,.14); }
.ob-top .row1 { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ob-top .brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ob-top .brand .wordmark { width: 78px; filter: brightness(0) saturate(100%) invert(72%) sepia(30%) saturate(1200%) hue-rotate(320deg) brightness(105%); }
.ob-top .brand span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--border-2); white-space: nowrap; }
.ob-top .pill { white-space: nowrap; flex: 0 0 auto; }
.ob-date { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; margin-top: 8px; gap: 6px; }
.ob-date button { height: 48px; border-radius: 10px; border: 1.5px solid rgba(243,229,201,.25); background: transparent; color: var(--cream); font-size: 22px; font-weight: 600; }
.ob-date .d { text-align: center; }
.ob-date .d b { display: block; font-family: var(--display); font-weight: 900; font-variation-settings: 'SOFT' 100, 'opsz' 36; font-size: 26px; line-height: 1; }
.ob-date .d span { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--border-2); margin-top: 4px; font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.open { background: rgba(47,158,95,.18); color: #9EDDB7; }
.pill.locked { background: rgba(200,19,10,.22); color: #FF9D90; }
.pill.closed { background: rgba(243,229,201,.12); color: var(--border-2); }
.pill.done { background: rgba(243,229,201,.2); color: var(--cream); }
.ob-tabs.five { grid-template-columns: repeat(5, 1fr); }
.ob-tabs.five button { letter-spacing: .06em; font-size: 9.5px; padding-left: 2px; padding-right: 2px; }
.ob-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #0F0B08; border-top: 1px solid rgba(243,229,201,.14); display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 6px calc(8px + env(safe-area-inset-bottom)); }
.ob-tabs button { background: transparent; border: 0; color: var(--border-2); padding: 10px 4px 8px; border-radius: 10px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; display: grid; gap: 3px; justify-items: center; min-height: 56px; }
.ob-tabs button b { font-family: var(--display); font-weight: 900; font-size: 22px; line-height: 1; color: var(--cream); }
.ob-tabs button.on { background: rgba(243,229,201,.1); color: var(--cream); }
.ob-tabs button.on b { color: #FF9D90; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.tile { background: #221912; border: 1px solid rgba(243,229,201,.14); border-radius: 12px; padding: 12px 10px 10px; text-align: center; }
.tile .k { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--border-2); }
.tile b { display: block; font-family: var(--display); font-weight: 900; font-variation-settings: 'SOFT' 100, 'opsz' 72; font-size: 44px; line-height: 1; margin-top: 6px; }
.tile.brick b { color: #FF9D90; }
.tile.basil b { color: #9EDDB7; }
.tile small { display: block; font-size: 11.5px; color: var(--border-2); margin-top: 4px; }
.ob-sec { display: flex; align-items: center; gap: 10px; margin: 20px 0 10px; }
.ob-sec h2 { margin: 0; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--border-2); font-weight: 700; }
.ob-sec .ln { flex: 1; border-top: 1px solid rgba(243,229,201,.18); }
.ob-sec .mono { font-size: 12px; color: var(--border-2); }
.frow { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; background: #221912; border: 1px solid rgba(243,229,201,.14); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.frow .nm { font-family: var(--display); font-weight: 900; font-variation-settings: 'SOFT' 100, 'opsz' 24; font-size: 21px; line-height: 1.05; }
.frow .nm small.ph-tag, .ctl .xr .nm small.ph-tag { color: var(--border-2); border: 1px solid rgba(243,229,201,.35); border-radius: 999px; padding: 1px 6px; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; vertical-align: middle; margin-left: 6px; font-family: var(--ui); }
.frow .nm small { display: inline-block; font-family: var(--ui); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: #FF9D90; margin-left: 6px; vertical-align: middle; font-weight: 700; }
.frow .nums { text-align: right; font-size: 13px; color: var(--border-2); font-variant-numeric: tabular-nums; }
.frow .nums b { display: block; font-family: var(--display); font-size: 30px; line-height: 1; color: var(--cream); font-weight: 900; }
.frow .pips { grid-column: 1 / -1; margin-top: 2px; flex-wrap: wrap; gap: 3px; }
.frow .pips i { width: 9px; height: 14px; border-radius: 3px; background: #FF9D90; border: 0; }
.frow .pips i.x { background: var(--border-2); opacity: .6; }
.frow .pips i.off { background: transparent; border: 1px solid rgba(243,229,201,.3); }
.prep { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.prep .p { background: #221912; border: 1px solid rgba(243,229,201,.14); border-radius: 12px; padding: 12px 12px 10px; }
.prep .p .k { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--border-2); }
.prep .p b { display: block; font-family: var(--display); font-weight: 900; font-variation-settings: 'SOFT' 100, 'opsz' 72; font-size: 34px; line-height: 1; margin-top: 6px; }
.prep .p b small { font-family: var(--ui); font-size: 13px; font-weight: 500; color: var(--border-2); margin-left: 4px; }
.prep .p .sub { display: block; font-size: 12px; color: var(--border-2); margin-top: 6px; }
.prep .p.wide { grid-column: 1 / -1; }
.prep .p .list div { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; border-bottom: 1px solid rgba(243,229,201,.12); }
.prep .p .list div:last-child { border-bottom: 0; }
.prep .p .list b { display: inline; font-size: 18px; margin: 0; }
.chips.dark .chip { border-color: rgba(243,229,201,.3); background: transparent; color: var(--cream); }
.chips.dark .chip.on { background: var(--cream); color: var(--espresso); border-color: var(--cream); }
.chips.dark .chip.on small { color: var(--coffee); }
.chips.dark .chip small { color: var(--border-2); }
.filters { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; margin: 10px 0 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters .chip { flex: 0 0 auto; padding: 8px 12px; font-size: 12px; min-height: 36px; }
.ocard { background: #221912; border: 1px solid rgba(243,229,201,.14); border-radius: 14px; padding: 12px 14px 12px; margin-bottom: 10px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: start; }
.ocard .ocode { font-family: var(--display); font-weight: 900; font-variation-settings: 'SOFT' 100, 'opsz' 72; font-size: 34px; line-height: 1; letter-spacing: .04em; color: var(--cream); background: #2E2219; border-radius: 10px; padding: 12px 12px 10px; min-width: 104px; text-align: center; align-self: center; }
.ocard.picked_up .ocode { background: rgba(47,158,95,.22); color: #9EDDB7; }
.ocard.in_fridge .ocode { background: rgba(243,229,201,.12); }
.ocard.no_show .ocode, .ocard.cancelled .ocode { opacity: .45; text-decoration: line-through; }
.ocard .meta { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 3px; min-width: 0; }
.ocard .its, .ocard .tags { grid-column: 1 / -1; }
.ocard .meta .nm { font-family: var(--display); font-weight: 900; font-variation-settings: 'SOFT' 100, 'opsz' 24; font-size: 22px; line-height: 1; }
.ocard .meta .ph { font-size: 13px; color: var(--border-2); }
.ocard .its { font-size: 13.5px; color: var(--border-2); line-height: 1.45; }
.ocard .its b { color: var(--cream); }
.ocard .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.ocard .act { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 6px; }
.ocard .act .btn { min-height: 52px; font-size: 15px; }
.ocard .act .no { background: transparent; border: 1.5px solid rgba(243,229,201,.3); color: var(--border-2); border-radius: 10px; padding: 0 14px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.ocard .act .no.on { border-color: #FF9D90; color: #FF9D90; }
.ocard .done-line { grid-column: 1 / -1; font-size: 12.5px; color: #9EDDB7; margin-top: 4px; }
.tag.pay { background: rgba(243,229,201,.14); color: var(--cream); }
.tag.pay.paid { background: rgba(47,158,95,.3); color: #9EDDB7; }
.tag.fridge { background: rgba(243,229,201,.1); color: var(--border-2); border: 1px solid rgba(243,229,201,.25); }
.btn { width: 100%; border: 0; border-radius: 10px; background: var(--red); color: var(--soft); padding: 13px 18px; font-weight: 700; font-size: 15px; min-height: 50px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.btn.ink { background: var(--cream); color: var(--espresso); }
.btn.ghost { background: transparent; color: var(--cream); border: 1.5px solid rgba(243,229,201,.4); }
.btn.basil { background: var(--basil); color: #fff; }
.btn:disabled { background: rgba(243,229,201,.15); color: var(--border-2); }
.btn .amt { font-variant-numeric: tabular-nums; }
.ctl { background: #221912; border: 1px solid rgba(243,229,201,.14); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.ctl .k { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; gap: 10px; }
.ctl .k h3 { margin: 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--border-2); font-weight: 700; white-space: nowrap; }
.ctl .k span { font-size: 12px; color: var(--border-2); text-align: right; }
.ctl .qty { border-color: rgba(243,229,201,.3); background: transparent; }
.ctl .qty b { color: var(--cream); font-size: 24px; font-family: var(--display); font-weight: 900; }
.ctl .qty button { color: var(--cream); }
.ctl .qty button:disabled { color: rgba(243,229,201,.25); }
.ctl .xr { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(243,229,201,.12); }
.ctl .xr:last-child { border-bottom: 0; }
.ctl .xr .nm { font-family: var(--display); font-weight: 900; font-variation-settings: 'SOFT' 100, 'opsz' 24; font-size: 19px; }
.ctl .xr .qty { grid-template-columns: 42px 48px 42px; }
.ctl .xr .qty button { height: 42px; }
.ctl .xr .qty b { font-size: 20px; }
.ctl .btn { margin-top: 10px; justify-content: center; }
.ctl .btn.danger { background: transparent; color: #FF9D90; border: 1.5px solid #FF9D90; }
.ctl p { font-size: 13px; color: var(--border-2); margin: 8px 0 0; line-height: 1.5; }
.ctl .csv { background: #0F0B08; border: 1px solid rgba(243,229,201,.2); border-radius: 10px; padding: 10px 12px; font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; color: var(--cream); white-space: pre; overflow-x: auto; margin-top: 10px; }
.ctl .num { width: 100%; background: transparent; border: 0; border-bottom: 1.5px solid rgba(243,229,201,.4); color: var(--cream); font-size: 22px; padding: 8px 2px; outline: none; }
.ctl .chip { min-height: 30px; padding: 4px 10px; font-size: 11px; }
.gate { max-width: 420px; margin: 14vh auto 0; text-align: center; }
.gate .wordmark { width: 150px; margin: 0 auto 10px; color: #FF8A7A; }
.gate h1 { font-size: 36px; margin: 10px 0 4px; }
.gate p { color: var(--border-2); font-size: 14px; }
.gate .field input { color: var(--cream); background: #221912; border-color: rgba(243,229,201,.3); }
.gate .btn { margin-top: 10px; justify-content: center; }
.ob-empty { text-align: center; padding: 36px 10px; color: var(--border-2); font-size: 14px; }
.ob-empty b { display: block; font-family: var(--display); font-size: 26px; color: var(--cream); margin-bottom: 4px; font-weight: 900; }

/* ---------- owner: events ---------- */
.ecard { background: #221912; border: 1px solid rgba(243,229,201,.14); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.ecard.inquiry { border-color: rgba(255,157,144,.35); }
.ecard .ehead { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.ecard .edate { font-family: var(--display); font-weight: 900; font-variation-settings: 'SOFT' 100, 'opsz' 36; font-size: 24px; line-height: 1; display: block; }
.ecard .enm { font-size: 13px; color: var(--border-2); margin-top: 4px; }
.ecard .egrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.ecard .egrid > div { display: grid; gap: 2px; font-size: 13px; color: var(--border-2); }
.ecard .egrid .k { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.ecard .egrid b { color: var(--cream); font-size: 14px; }
.ecard .egrid b.big { font-family: var(--display); font-weight: 900; font-size: 26px; line-height: 1; }
.ecard .egrid a { color: var(--cream); }
.ecard .eitems { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 12px 0 4px; font-size: 13.5px; color: var(--border-2); }
.ecard .eitems b { color: var(--cream); }
.ecard .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.ecard .enotes { margin: 10px 0 0; font-size: 13.5px; color: var(--cream); font-style: italic; }
.ecard .act { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; }
.ecard .act .no { background: transparent; border: 1.5px solid rgba(243,229,201,.3); color: var(--border-2); border-radius: 10px; padding: 0 14px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.ecard .act .done-line { font-size: 12.5px; color: #9EDDB7; align-self: center; }

@media (min-width: 600px) { .hero h1 { font-size: 64px; } .card { grid-template-columns: 160px 1fr; } .card .nm { font-size: 30px; } .code b { font-size: 68px; width: 70px; height: 90px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
