/* Fuentes alojadas en el sitio (OFL): sin depender de Google y disponibles sin señal */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/fraunces-latin-full-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 100 900; font-display: swap; src: url('../fonts/fraunces-latin-wght-italic.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('../fonts/figtree-latin-wght-normal.woff2') format('woff2'); }

:root {
  --bg: #fbf7f4;
  --paper: #fffdfb;
  --line: #ece2dc;
  --line-2: #e2d5ce;
  --ink: #3b2a21;
  --brown: #4e2d18;
  --brown-2: #6d4632;
  --muted: #8b7b72;
  --green: #3e583a;
  --green-2: #55744f;
  --green-soft: #e8eee5;
  --rose: #f4e5e4;
  --rose-2: #ead3d2;
  --rose-ink: #a0646b;
  --danger: #b3423d;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(78, 45, 24, 0.06), 0 8px 24px rgba(78, 45, 24, 0.08);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  overscroll-behavior-y: none;
}
body.locked { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.app { max-width: 560px; margin: 0 auto; padding: calc(var(--safe-t) + 10px) 16px calc(110px + var(--safe-b)); }

/* ---------- Encabezado ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 2px 2px; }
.top img { height: 46px; width: auto; display: block; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px;
  background: var(--green-soft); color: var(--green); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.closed { background: var(--rose); color: var(--rose-ink); }

.hello { margin: 18px 2px 14px; }
.hello h1 { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.08; margin: 0; color: var(--brown); letter-spacing: -0.01em; font-variation-settings: 'SOFT' 100, 'opsz' 72; }
.hello p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

.notice { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--rose); color: var(--rose-ink); font-size: 14px; font-weight: 500; }

/* Pedido activo */
.active-order {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  margin: 0 0 14px; padding: 12px 14px; border-radius: 16px; background: var(--brown); color: #fff; box-shadow: var(--shadow);
}
.active-order .code { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: 0.04em; }
.active-order .txt { flex: 1; font-size: 14px; line-height: 1.25; }
.active-order .txt small { display: block; opacity: 0.75; }

/* ---------- Pestañas ---------- */
.tabs {
  position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px;
  margin: 0 -2px 14px; background: rgba(251, 247, 244, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 999px;
}
.tabs button { height: 42px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--muted); transition: background 0.2s, color 0.2s; }
.tabs button[aria-selected='true'] { background: var(--brown); color: #fff; }

/* ---------- Tarjetas de producto ---------- */
.list { display: grid; gap: 12px; }
.card {
  position: relative; display: block; width: 100%; text-align: left; padding: 16px 16px 14px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(78, 45, 24, 0.03);
  transition: transform 0.12s ease;
}
.card:active { transform: scale(0.985); }
.card.hl { background: var(--rose); border-color: var(--rose-2); }
.card .row1 { display: flex; align-items: baseline; gap: 10px; }
.card .num { font-size: 12px; font-weight: 700; color: var(--green); letter-spacing: 0.06em; }
.card.hl .num { color: var(--rose-ink); }
.card h3 { flex: 1; margin: 0; font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.12; color: var(--brown); font-variation-settings: 'SOFT' 100, 'opsz' 40; }
.card .price { font-weight: 700; font-size: 18px; color: var(--green); }
.card.hl .price { color: var(--rose-ink); }
.card .tag { margin: 4px 0 0 28px; font-family: var(--serif); font-style: italic; font-size: 14.5px; color: var(--brown-2); }
.card .meta { margin: 6px 0 0 28px; font-size: 13px; color: var(--muted); }
.card .flavors { margin: 10px 0 0 28px; font-size: 13.5px; color: var(--ink); line-height: 1.45; padding-right: 44px; }
.card .flavors b { font-weight: 600; color: var(--rose-ink); }
.card .add {
  position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brown); color: #fff; font-size: 22px; line-height: 1;
}
.card .incart {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--green); color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center;
  box-shadow: 0 0 0 2px var(--paper);
}
.card.hl .incart { box-shadow: 0 0 0 2px var(--rose); }
.card:not(:has(.flavors)) { padding-bottom: 18px; }
.card:not(:has(.flavors)) .meta { padding-right: 44px; }

.foot { margin: 26px 4px 0; color: var(--muted); font-size: 13px; text-align: center; line-height: 1.6; }
.foot a { color: var(--green); font-weight: 600; text-decoration: none; }

/* ---------- Barra del carrito ---------- */
.cartbar {
  position: fixed; left: 50%; bottom: calc(14px + var(--safe-b)); transform: translate(-50%, 140%); z-index: 20;
  width: min(528px, calc(100% - 24px)); height: 60px; padding: 0 8px 0 18px; border-radius: 999px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--green); color: #fff; box-shadow: 0 10px 30px rgba(40, 60, 36, 0.35);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.cartbar.show { transform: translate(-50%, 0); }
.cartbar.bump { animation: bump 0.4s ease; }
@keyframes bump { 40% { transform: translate(-50%, 0) scale(1.04); } }
.cartbar .l { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; }
.cartbar .count { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; background: rgba(255, 255, 255, 0.22); display: grid; place-items: center; font-size: 14px; }
.cartbar .r { height: 44px; padding: 0 18px; border-radius: 999px; background: #fff; color: var(--green); font-weight: 700; display: grid; place-items: center; font-size: 16px; }

/* ---------- Hojas (bottom sheets) ---------- */
.backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(42, 26, 16, 0.42); opacity: 0; transition: opacity 0.25s; }
.backdrop.show { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; margin: 0 auto; max-width: 560px;
  max-height: calc(100dvh - 28px - var(--safe-t)); display: flex; flex-direction: column;
  background: var(--bg); border-radius: 24px 24px 0 0; box-shadow: 0 -10px 40px rgba(42, 26, 16, 0.2);
  transform: translateY(100%); transition: transform 0.32s cubic-bezier(0.2, 0.85, 0.25, 1);
}
.sheet.show { transform: translateY(0); }
.sheet.full { height: calc(100dvh - 28px - var(--safe-t)); }
.grab { flex: none; padding: 10px 0 4px; display: grid; place-items: center; touch-action: none; }
.grab::before { content: ''; width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); }
.sheet-head { flex: none; display: flex; align-items: flex-start; gap: 12px; padding: 4px 20px 12px; }
.sheet-head h2 { flex: 1; margin: 0; font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.1; color: var(--brown); font-variation-settings: 'SOFT' 100, 'opsz' 60; }
.sheet-head .sub { display: block; margin-top: 4px; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--brown-2); font-weight: 400; }
.icon-btn { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); color: var(--brown); font-size: 18px; }
.sheet-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 20px 20px; overscroll-behavior: contain; }
.sheet-foot { flex: none; padding: 12px 16px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--paper); display: flex; gap: 10px; align-items: center; }

/* Grupos de opciones */
.group { margin: 18px 0 0; scroll-margin-top: 10px; }
.group:first-child { margin-top: 4px; }
.group h4 { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); }
.group h4 em { font-style: normal; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--muted); font-size: 12.5px; }
.group.need h4 em { color: var(--danger); }
.group.shake { animation: shake 0.45s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.cols { display: grid; grid-template-columns: 1fr 1fr; }
.chip {
  min-height: 44px; padding: 9px 14px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--paper);
  font-size: 15px; font-weight: 500; text-align: left; line-height: 1.2; transition: border-color 0.15s, background 0.15s;
}
.chip small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); font-weight: 500; }
.chip .sf { display: inline-block; margin-left: 4px; padding: 1px 5px; border-radius: 6px; background: var(--green-soft); color: var(--green); font-size: 10.5px; font-weight: 700; vertical-align: 2px; }
.chip[aria-pressed='true'] { border-color: var(--brown); background: #f6ece5; box-shadow: inset 0 0 0 1px var(--brown); }
.chips.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.chips.seg .chip { text-align: center; font-weight: 600; }

.rows { border: 1.5px solid var(--line-2); border-radius: 16px; overflow: hidden; background: var(--paper); }
.rowopt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 0 16px; text-align: left; font-size: 15.5px; }
.rowopt + .rowopt { border-top: 1px solid var(--line); }
.rowopt .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; display: grid; place-items: center; }
.rowopt[aria-pressed='true'] .dot { border-color: var(--brown); }
.rowopt[aria-pressed='true'] .dot::after { content: ''; width: 11px; height: 11px; border-radius: 50%; background: var(--brown); }
.rowopt .check { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line-2); flex: none; display: grid; place-items: center; color: #fff; font-size: 14px; }
.rowopt[aria-pressed='true'] .check { border-color: var(--brown); background: var(--brown); }
.rowopt .n { flex: 1; }
.rowopt .p { color: var(--muted); font-weight: 600; font-size: 14.5px; }
.included { padding: 12px 14px; border-radius: 14px; background: var(--rose); color: var(--rose-ink); font-size: 14px; font-weight: 500; }

textarea, input[type='text'], input[type='tel'], select {
  width: 100%; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--paper);
  padding: 12px 14px; font-size: 16px; outline: none; transition: border-color 0.15s;
}
textarea { resize: none; min-height: 64px; }
textarea:focus, input:focus, select:focus { border-color: var(--brown); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--brown) 50%), linear-gradient(135deg, var(--brown) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field { margin: 14px 0 0; }
.field label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--brown); }
.field .hint { margin: 6px 2px 0; font-size: 12.5px; color: var(--muted); }
.field.err input { border-color: var(--danger); }
.field .msg { margin: 6px 2px 0; font-size: 13px; color: var(--danger); font-weight: 500; }

/* Cantidad */
.qty { flex: none; display: flex; align-items: center; height: 52px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--paper); }
.qty button { width: 44px; height: 100%; font-size: 22px; color: var(--brown); display: grid; place-items: center; }
.qty button:disabled { opacity: 0.3; }
.qty span { min-width: 22px; text-align: center; font-weight: 700; font-size: 17px; }
.qty.sm { height: 38px; }
.qty.sm button { width: 34px; font-size: 18px; }
.qty.sm span { font-size: 15px; min-width: 16px; }

.btn {
  flex: 1; height: 52px; border-radius: 999px; padding: 0 18px; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--brown); color: #fff; font-weight: 700; font-size: 16.5px; transition: opacity 0.15s, background 0.15s;
}
.btn.green { background: var(--green); }
.btn.ghost { background: var(--paper); color: var(--brown); border: 1.5px solid var(--line-2); }
.btn.pending { background: #a69087; }
.btn:disabled { opacity: 0.6; }
.btn .amt { opacity: 0.9; font-weight: 600; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Carrito */
.line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line:first-child { padding-top: 4px; }
.line .info { flex: 1; min-width: 0; }
.line .name { display: block; text-align: left; font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--brown); line-height: 1.2; }
.line .opts { margin: 3px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.line .note { margin: 4px 0 0; font-size: 13px; color: var(--brown-2); font-style: italic; }
.line .edit { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--green); }
.line .side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.line .amt { font-weight: 700; font-size: 16px; }
.totals { margin: 14px 0 0; display: grid; gap: 6px; font-size: 15px; }
.totals div { display: flex; justify-content: space-between; }
.totals .big { font-size: 19px; font-weight: 700; color: var(--brown); padding-top: 6px; }
.empty { padding: 40px 10px; text-align: center; color: var(--muted); }

.pay { display: grid; gap: 10px; }
.payopt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--paper); text-align: left; }
.payopt[aria-pressed='true'] { border-color: var(--brown); box-shadow: inset 0 0 0 1px var(--brown); }
.payopt .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--green-soft); font-size: 20px; flex: none; }
.payopt b { display: block; font-size: 15.5px; }
.payopt small { color: var(--muted); font-size: 13px; }
.secure { margin: 10px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.formerr { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: #f8e2df; color: var(--danger); font-size: 14px; font-weight: 500; }

/* Estatus del pedido */
.status-hero { text-align: center; padding: 6px 0 4px; }
.status-hero .lbl { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.status-hero .code { font-family: var(--serif); font-size: 64px; line-height: 1; font-weight: 600; color: var(--brown); letter-spacing: 0.06em; margin: 6px 0 4px; }
.status-hero h3 { margin: 10px 0 4px; font-family: var(--serif); font-weight: 500; font-size: 24px; color: var(--green); }
.status-hero p { margin: 0; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 22px 0 6px; }
.steps div { text-align: center; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.steps div::before { content: ''; display: block; height: 6px; border-radius: 3px; background: var(--line); margin-bottom: 8px; }
.steps div.on { color: var(--green); }
.steps div.on::before { background: var(--green); }
.steps div.now::before { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.45; } }
.box { margin: 16px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.box .kv { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; padding: 3px 0; }
.box .kv span:first-child { color: var(--muted); }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--green-soft); color: var(--green); }
.badge.rose { background: var(--rose); color: var(--rose-ink); }
.badge.gray { background: #eee7e3; color: var(--muted); }
.mini-line { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14.5px; }
.mini-line small { display: block; color: var(--muted); font-size: 12.5px; }

/* Toast */
.toast {
  position: fixed; left: 50%; top: calc(14px + var(--safe-t)); z-index: 90; transform: translate(-50%, -150%);
  padding: 11px 18px; border-radius: 999px; background: var(--brown); color: #fff; font-weight: 600; font-size: 14.5px;
  box-shadow: var(--shadow); transition: transform 0.3s ease; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); }

/* Modal de pago simulado (solo demo) */
.fake-pay { position: fixed; inset: 0; z-index: 80; background: #f6f8fa; display: flex; flex-direction: column; align-items: center; padding: calc(30px + var(--safe-t)) 20px 20px; font-family: system-ui, sans-serif; color: #30313d; }
.fake-pay .card2 { width: 100%; max-width: 420px; background: #fff; border-radius: 12px; padding: 22px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.fake-pay .tag2 { display: inline-block; font-size: 12px; font-weight: 600; color: #635bff; background: #eeedff; padding: 3px 8px; border-radius: 6px; margin-bottom: 10px; }
.fake-pay .tot { font-size: 30px; font-weight: 700; margin: 4px 0 18px; }
.fake-pay .fld { border: 1px solid #e0e0e6; border-radius: 8px; padding: 12px; margin-bottom: 10px; color: #6a7383; font-size: 15px; }
.fake-pay .go { width: 100%; height: 48px; border-radius: 8px; background: #635bff; color: #fff; font-weight: 600; font-size: 16px; margin-top: 6px; }
.fake-pay .back { margin-top: 14px; color: #635bff; font-weight: 600; font-size: 14px; }

/* Barra de demo */
body.demo .app { padding-top: calc(var(--safe-t) + 54px); }
.demo-bar { position: fixed; top: calc(8px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 60; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(59, 42, 33, 0.88); }
.demo-bar a { padding: 6px 11px; border-radius: 999px; color: #fff; font-size: 12.5px; font-weight: 600; text-decoration: none; opacity: 0.7; }
.demo-bar a.on { background: #fff; color: var(--brown); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =================== Panel de pedidos =================== */
.admin { max-width: 760px; }
.admin .top img { height: 36px; }
.admin-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 2px 12px; }
.admin-h h1 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 26px; color: var(--brown); }
.admin-h .date { color: var(--muted); font-size: 14px; }
.toggles { display: grid; gap: 8px; margin: 0 0 14px; }
.switch { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); text-align: left; }
.switch .t { flex: 1; font-weight: 600; font-size: 15px; }
.switch .t small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.switch .k { width: 48px; height: 28px; border-radius: 14px; background: var(--line-2); position: relative; transition: background 0.2s; flex: none; }
.switch .k::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform 0.2s; }
.switch[aria-pressed='true'] .k { background: var(--green); }
.switch[aria-pressed='true'] .k::after { transform: translateX(20px); }
.order { margin: 0 0 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(78, 45, 24, 0.03); }
.order.is-new { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-soft); }
.order .oh { display: flex; align-items: center; gap: 12px; }
.order .ocode { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--brown); letter-spacing: 0.05em; line-height: 1; }
.order .who { flex: 1; min-width: 0; }
.order .who b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order .who small { color: var(--muted); font-size: 13px; }
.order .ostat { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.st-new { background: #e3eedf; color: var(--green); }
.st-preparing { background: #fbefd9; color: #9a6a12; }
.st-ready { background: var(--green); color: #fff; }
.st-done { background: #eee7e3; color: var(--muted); }
.st-canceled { background: var(--rose); color: var(--rose-ink); }
.order .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.order .items { margin: 10px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--line-2); }
.order .it { padding: 4px 0; font-size: 15px; }
.order .it b { color: var(--brown); }
.order .it small { display: block; color: var(--muted); font-size: 13.5px; }
.order .it .nt { display: inline-block; margin-top: 3px; padding: 2px 8px; border-radius: 8px; background: #fbefd9; color: #8a5d0c; font-size: 13px; font-weight: 600; }
.order .acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.order .acts .btn { height: 46px; font-size: 15px; }
.order .acts .small { flex: none; height: 46px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--paper); font-weight: 600; font-size: 14px; color: var(--brown); display: inline-flex; align-items: center; text-decoration: none; }
.order .acts .small.danger { color: var(--danger); }
.confirm-row { display: flex; gap: 8px; width: 100%; }
.linkbtn { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); font-size: 13px; font-weight: 600; color: var(--muted); }
.admin-hint { margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; background: #fbefd9; color: #8a5d0c; font-size: 14px; font-weight: 500; }
body.view-panel .cartbar, body.view-panel #app { display: none; }
body:not(.view-panel) #admin { display: none; }
.pin-wrap { max-width: 340px; margin: 14vh auto 0; text-align: center; }
.pin-wrap h1 { font-family: var(--serif); font-weight: 500; color: var(--brown); font-size: 26px; margin: 18px 0 6px; }
.pin-wrap p { color: var(--muted); margin: 0 0 18px; }
.pin-wrap input { text-align: center; font-size: 26px; letter-spacing: 0.4em; }
.pin-wrap .btn { width: 100%; margin-top: 12px; }
.sum-row { display: flex; gap: 8px; margin: 0 0 12px; overflow-x: auto; }
.sum-row div { flex: 1; min-width: 92px; padding: 10px 12px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.sum-row b { display: block; font-size: 20px; color: var(--brown); }
.sum-row small { color: var(--muted); font-size: 12.5px; }
