:root {
  --accent: var(--ember-600);
  --accent-hover: var(--ember-700);
  --accent-press: var(--ember-800);
  --app-desk: var(--mesquite-100);
  --ink-link: var(--ember-700);
  --dock-shadow: 0 -8px 24px rgba(58, 44, 34, 0.08);
  --photo-light: radial-gradient(120% 90% at 22% 18%, rgba(255, 227, 199, 0.55), rgba(255, 227, 199, 0) 60%);
}

[hidden] { display: none !important; }

html { background: var(--app-desk); }
body { background: var(--app-desk); min-height: 100vh; }
a { color: var(--ink-link); }
a:hover { color: var(--accent-press); }
button { font: inherit; }
svg { flex: none; }

.app {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
  position: relative;
}
@media (min-width: 500px) {
  .app { box-shadow: var(--shadow-xl); border-left: 1px solid var(--border-hair); border-right: 1px solid var(--border-hair); }
}

.appbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 68px;
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-2);
  background: color-mix(in srgb, var(--bg-page) 92%, transparent);
  backdrop-filter: blur(8px);
}
.appbar--home { padding-left: var(--space-3); }
.appbar--over { position: absolute; left: 0; right: 0; background: transparent; backdrop-filter: none; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 var(--space-1);
  color: var(--text-strong);
  text-decoration: none;
}
.brand:hover { color: var(--text-strong); text-decoration: none; }
.brand .logo { width: 34px; height: 34px; }
.logo { display: block; width: 28px; height: 28px; }
.wordmark {
  font-family: var(--font-display);
  font-weight: var(--weight-extra);
  font-size: 1.5rem;
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  color: var(--text-strong);
}
.wordmark b { color: var(--ember-500); font-weight: var(--weight-extra); }

.back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  padding: 0 var(--space-4) 0 var(--space-2);
  border-radius: var(--radius-pill);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-snug);
  color: var(--text-strong);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-standard);
}
.back svg { width: 22px; height: 22px; }
.back:hover { background: var(--accent-soft); color: var(--text-strong); text-decoration: none; }

.iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-body);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.iconbtn svg { width: 22px; height: 22px; }
.iconbtn:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.iconbtn--raised { background: var(--surface-raised); border-color: var(--border-hair); box-shadow: var(--shadow-md); color: var(--text-strong); }

.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 10px;
  border-radius: var(--radius-pill);
  background: #E4EFD3;
  color: #3E6323;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  line-height: 1;
}
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--status-listo); box-shadow: 0 0 0 3px rgba(91, 140, 54, 0.22); }

.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-2) var(--space-4) var(--space-8);
}
.screen--form { gap: var(--space-6); padding-top: var(--space-4); }
.screen--center { justify-content: center; align-items: center; text-align: center; padding-bottom: var(--space-16); }

.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.stack--tight { gap: var(--space-2); }
.stack--loose { gap: var(--space-6); }
.row { display: flex; align-items: center; gap: var(--space-3); }
.row--wrap { flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }

.title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-extra);
  font-size: 2rem;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-strong);
  text-wrap: balance;
}
.title--hero { font-size: 2.75rem; }
.title--md { font-size: var(--text-xl); }
.title .code { font-family: var(--font-mono); font-weight: var(--weight-bold); font-size: 0.8em; letter-spacing: 0; }
.lede { margin: 0; font-size: var(--text-md); line-height: var(--leading-snug); color: var(--text-muted); text-wrap: pretty; }
.lede--mono { font-family: var(--font-mono); font-size: var(--text-md); color: var(--text-strong); }
.meta { margin: 0; font-size: var(--text-sm); color: var(--text-muted); }
.meta .num { font-family: var(--font-mono); }
.sect-label { margin: var(--space-2) 0 calc(var(--space-2) * -1); }
.num { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }

.badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--ember-100);
  color: var(--ember-700);
}
.badge-icon svg { width: 30px; height: 30px; }
.badge-icon--round { border-radius: 50%; width: 80px; height: 80px; }
.badge-icon--round svg { width: 36px; height: 36px; }
.badge-icon--brick { background: var(--brick-100); color: var(--brick-600); }
.badge-icon--neutral { background: var(--mesquite-100); color: var(--mesquite-600); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--control-md);
  padding: 0 var(--space-6);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-snug);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard);
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn--primary { background: var(--accent); color: var(--text-on-ember); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-hover); color: var(--text-on-ember); box-shadow: var(--shadow-ember); }
.btn--secondary { background: var(--surface-raised); color: var(--text-strong); border-color: var(--border-strong); box-shadow: var(--shadow-xs); }
.btn--secondary:hover { background: var(--surface-sunken); color: var(--text-strong); }
.btn--outline { background: transparent; color: var(--text-strong); border: 1.5px solid var(--border-strong); }
.btn--outline:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--text-strong); }
.btn--ghost { background: transparent; color: var(--text-strong); }
.btn--ghost:hover { background: var(--accent-soft); color: var(--text-strong); }
.btn--danger { background: var(--danger); color: #fff; box-shadow: var(--shadow-sm); }
.btn--danger:hover { background: var(--brick-600); color: #fff; }
.btn--lg { height: var(--control-lg); padding: 0 var(--space-8); font-size: var(--text-md); gap: 10px; }
.btn--block { width: 100%; }
.btn--split { justify-content: space-between; padding: 0 var(--space-6); }
.btn__amount { font-family: var(--font-mono); font-weight: var(--weight-bold); font-size: var(--text-base); }
.btn:disabled, .btn.is-disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; transform: none; }
.btn--toggle { justify-content: flex-start; padding: 0 var(--space-5); height: 56px; }
.btn--toggle svg { width: 24px; height: 24px; }
.btn--toggle[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-press); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-strong); }
.field__hint { font-size: var(--text-xs); color: var(--text-muted); }
.field__error { display: flex; align-items: flex-start; gap: 6px; font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--danger); }
.field__error svg { width: 18px; height: 18px; margin-top: 1px; }

.input {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: var(--control-md);
  padding: 0 var(--space-4);
  background: var(--surface-raised);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.input:focus-within, .input.is-focused { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.is-invalid { border-color: var(--danger); }
.input.is-invalid:focus-within, .input.is-invalid.is-focused { box-shadow: 0 0 0 3px rgba(196, 56, 31, 0.18); }
.input input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--text-body);
}
.input__lead { display: inline-flex; align-items: center; gap: 6px; padding-right: var(--space-3); border-right: 1px solid var(--border-hair); font-weight: var(--weight-semibold); color: var(--text-muted); white-space: nowrap; }
.input--lg { height: 56px; }
.input--lg input { font-size: var(--text-md); }
.input--mono input { font-family: var(--font-mono); font-size: var(--text-md); }
.input--code { height: 68px; }
.input--code input { font-family: var(--font-mono); font-weight: var(--weight-bold); font-size: 1.875rem; letter-spacing: 0.42em; text-align: center; color: var(--text-strong); padding-left: 0.42em; }

.textarea {
  display: block;
  width: 100%;
  min-height: 96px;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-body);
  background: var(--surface-raised);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  resize: vertical;
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.textarea:focus, .textarea.is-focused { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.textarea.is-invalid { border-color: var(--danger); }
.textarea--tall { min-height: 160px; }

.check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  min-height: 44px;
  padding: 10px 0;
  font-size: var(--text-base);
  line-height: var(--leading-snug);
  color: var(--text-body);
  cursor: pointer;
}
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-strong);
  background: var(--surface-raised);
  color: #fff;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.check__box svg { width: 15px; height: 15px; opacity: 0; }
.check input:checked + .check__box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .check__box svg { opacity: 1; }
.check input:focus-visible + .check__box { outline: var(--ring-width) solid var(--focus-ring); outline-offset: 2px; }
.check.is-invalid .check__box { border-color: var(--danger); }
.check__label { font-weight: var(--weight-semibold); color: var(--text-strong); }

.qty { display: inline-flex; align-items: center; gap: var(--space-3); }
.qty__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-strong);
  background: var(--surface-raised);
  color: var(--accent);
  cursor: pointer;
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}
.qty__btn svg { width: 18px; height: 18px; stroke-width: 2.4; }
.qty__btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.qty__btn:disabled { color: var(--text-subtle); cursor: not-allowed; background: var(--surface-raised); border-color: var(--border-default); }
.qty__n { min-width: 2ch; text-align: center; font-family: var(--font-mono); font-weight: var(--weight-bold); font-size: var(--text-base); color: var(--text-strong); }
.qty.is-disabled { opacity: 0.5; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-snug);
  line-height: 1;
  white-space: nowrap;
  background: var(--chip-bg);
  color: var(--chip-fg);
}
.chip::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--chip-dot); }
.chip--sm { padding: 3px 9px 3px 8px; font-size: var(--text-2xs); gap: 6px; }
.chip--sm::before { width: 6px; height: 6px; }
.chip--pendiente { --chip-bg: #FBF0D3; --chip-fg: #8A6410; --chip-dot: var(--status-pendiente); }
.chip--aceptado { --chip-bg: #D3E8E2; --chip-fg: #1C5A4E; --chip-dot: var(--status-aceptado); }
.chip--preparando { --chip-bg: #FBDECD; --chip-fg: #A63811; --chip-dot: var(--status-preparando); }
.chip--listo { --chip-bg: #E4EFD3; --chip-fg: #3E6323; --chip-dot: var(--status-listo); }
.chip--entregado { --chip-bg: #E9DFD2; --chip-fg: #4A3B2C; --chip-dot: var(--status-entregado); }
.chip--rechazado { --chip-bg: #F4D2C8; --chip-fg: #96301D; --chip-dot: var(--status-rechazado); }
.chip--cancelado { --chip-bg: #E9DFD2; --chip-fg: #63513F; --chip-dot: var(--status-cancelado); }
.chip--final { --chip-bg: #E9DFD2; --chip-fg: #63513F; --chip-dot: var(--status-cancelado); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-snug);
  line-height: 1;
  background: var(--mesquite-100);
  color: var(--mesquite-700);
}
.badge svg { width: 14px; height: 14px; }
.badge--ember { background: var(--ember-100); color: var(--ember-700); }
.badge--success { background: var(--lime-100); color: var(--lime-700); }
.badge--warning { background: #F8E7BE; color: #8A6410; }
.badge--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-default);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-body);
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.card--sm { padding: var(--space-4); }
.card--flush { padding: 0; overflow: hidden; }
.card__title { margin: 0 0 var(--space-3); font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--weight-bold); letter-spacing: var(--tracking-snug); color: var(--text-strong); }
.card__text { margin: 0; font-size: var(--text-sm); line-height: var(--leading-relaxed); color: var(--text-body); }

.photo { background-color: var(--brick-500); background-size: cover; background-position: center; }
.photo--shop {
  background-image:
    var(--photo-light),
    radial-gradient(60% 50% at 80% 90%, rgba(92, 34, 16, 0.55), rgba(92, 34, 16, 0) 70%),
    linear-gradient(135deg, var(--ember-300), var(--brick-500));
}
.photo--shop-2 {
  background-image:
    var(--photo-light),
    radial-gradient(70% 60% at 15% 100%, rgba(63, 23, 16, 0.5), rgba(63, 23, 16, 0) 70%),
    linear-gradient(160deg, var(--ember-400), var(--brick-600));
}
.photo--arrachera {
  background-image:
    repeating-linear-gradient(-32deg, rgba(63, 23, 16, 0) 0 16px, rgba(63, 23, 16, 0.32) 16px 21px),
    var(--photo-light),
    linear-gradient(135deg, var(--brick-400), var(--brick-700));
}
.photo--carbon {
  background-image:
    radial-gradient(circle at 30% 65%, rgba(242, 152, 95, 0.9) 0 7%, rgba(242, 152, 95, 0) 8%),
    radial-gradient(circle at 62% 42%, rgba(238, 119, 56, 0.8) 0 6%, rgba(238, 119, 56, 0) 7%),
    radial-gradient(circle at 72% 72%, rgba(232, 91, 30, 0.7) 0 8%, rgba(232, 91, 30, 0) 9%),
    radial-gradient(120% 100% at 50% 100%, var(--ember-700), rgba(166, 56, 17, 0) 70%),
    linear-gradient(160deg, var(--mesquite-700), var(--mesquite-900));
}
.photo--asador {
  background-image:
    repeating-linear-gradient(90deg, rgba(38, 32, 25, 0) 0 12px, rgba(38, 32, 25, 0.35) 12px 15px),
    var(--photo-light),
    linear-gradient(145deg, var(--ember-300), var(--brick-500));
}
.photo--hero {
  background-image:
    repeating-linear-gradient(-28deg, rgba(63, 23, 16, 0) 0 34px, rgba(63, 23, 16, 0.18) 34px 42px),
    radial-gradient(90% 70% at 25% 20%, rgba(255, 227, 199, 0.6), rgba(255, 227, 199, 0) 60%),
    radial-gradient(70% 70% at 90% 100%, rgba(63, 23, 16, 0.6), rgba(63, 23, 16, 0) 70%),
    linear-gradient(140deg, var(--ember-400), var(--brick-600));
}

.shop {
  display: block;
  background: var(--surface-card);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  transition: box-shadow var(--dur-base), transform var(--dur-base);
}
a.shop:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); color: inherit; text-decoration: none; }
.shop__hero { position: relative; height: 136px; }
.shop__body { padding: var(--space-4) var(--space-5) var(--space-5); }
.shop__name { margin: 0; font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--weight-bold); letter-spacing: var(--tracking-tight); line-height: var(--leading-snug); color: var(--text-strong); }
.shop__meta { margin: 4px 0 12px; font-size: var(--text-sm); color: var(--text-muted); }
.shop__meta:last-child { margin-bottom: 0; }
.shop__tags { display: flex; flex-wrap: wrap; gap: 6px; }

.avail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--text-2xs);
  font-weight: var(--weight-bold);
  line-height: 1.3;
  background: var(--avail-bg);
  color: var(--avail-fg);
}
.avail::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--avail-dot); }
.shop__hero .avail { position: absolute; top: 10px; left: 10px; }
.avail--open { --avail-bg: #E4EFD3; --avail-fg: #3E6323; --avail-dot: var(--status-listo); }
.avail--closed { --avail-bg: #FBF0D3; --avail-fg: #8A6410; --avail-dot: var(--status-pendiente); }
.avail--paused { --avail-bg: #F4D2C8; --avail-fg: #96301D; --avail-dot: var(--status-rechazado); }
.avail--lg { font-size: var(--text-xs); padding: 5px 12px 5px 10px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  color: var(--text-body);
}
.pill svg { width: 13px; height: 13px; color: var(--ember-600); }

.item {
  display: flex;
  gap: var(--space-4);
  align-items: stretch;
  background: var(--surface-card);
  border: 1.5px solid var(--border-hair);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur-base), border-color var(--dur-fast);
}
.item:hover { box-shadow: var(--shadow-md); }
.item.is-selected { border-color: var(--accent); }
.item.is-sold-out { opacity: 0.6; }
.item.is-sold-out:hover { box-shadow: var(--shadow-xs); }
.item__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item__head { display: flex; align-items: center; flex-wrap: wrap; column-gap: 8px; row-gap: 2px; margin-bottom: 4px; }
.item__name { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-md); letter-spacing: var(--tracking-snug); color: var(--text-strong); }
.item__tag { font-size: var(--text-2xs); font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--brick-500); }
.item__foot { margin-top: auto; padding-top: var(--space-3); display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.item__price { font-family: var(--font-mono); font-weight: var(--weight-bold); font-size: var(--text-base); color: var(--text-strong); }
.item__out { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text-strong); }
.item__thumb { flex: none; width: 92px; min-height: 92px; align-self: stretch; border-radius: var(--radius-md); overflow: hidden; }

.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-6) var(--space-6) var(--space-6);
  background: var(--surface-card);
  border: 2px solid var(--border-hair);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  transition: box-shadow var(--dur-base), transform var(--dur-base), border-color var(--dur-fast);
}
.tier:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); color: inherit; text-decoration: none; }
.tier__badge { position: absolute; top: var(--space-5); right: var(--space-5); padding: 4px 10px; border-radius: var(--radius-pill); background: var(--ember-100); color: var(--ember-700); font-size: var(--text-2xs); font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: var(--tracking-wide); }
.tier__icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: var(--space-1); border-radius: var(--radius-lg); background: var(--ember-100); color: var(--ember-500); }
.tier__icon svg { width: 34px; height: 34px; }
.tier__title { font-family: var(--font-display); font-weight: var(--weight-extra); font-size: var(--text-xl); letter-spacing: var(--tracking-tight); line-height: var(--leading-tight); color: var(--text-strong); }
.tier__desc { font-size: var(--text-base); line-height: var(--leading-normal); color: var(--text-muted); }
.tier__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-1); font-weight: var(--weight-bold); color: var(--accent); }
.tier__cta svg { width: 18px; height: 18px; stroke-width: 2.5; }
.tier--cooked .tier__icon { background: var(--brick-100); color: var(--brick-500); }
.tier--cooked .tier__cta { color: var(--brick-500); }

.banner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5) var(--space-4) var(--space-4);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--banner-bar);
  background: var(--banner-bg);
  color: var(--banner-fg);
}
.banner__icon { display: inline-flex; margin-top: 1px; color: var(--banner-bar); }
.banner__icon svg { width: 20px; height: 20px; }
.banner__main { flex: 1; min-width: 0; }
.banner__title { font-weight: var(--weight-bold); }
.banner__body { font-size: var(--text-sm); line-height: var(--leading-normal); }
.banner__title + .banner__body { margin-top: 2px; }
.banner__list { margin: 6px 0 0; padding-left: 1.1em; font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.banner__action { margin-top: var(--space-3); }
.banner--info { --banner-bar: var(--info); --banner-bg: #E7F1EE; --banner-fg: #1C5A4E; }
.banner--success { --banner-bar: var(--success); --banner-bg: #EAF2DE; --banner-fg: #3E6323; }
.banner--warning { --banner-bar: var(--warning); --banner-bg: #FBF0D3; --banner-fg: #8A6410; }
.banner--danger { --banner-bar: var(--danger); --banner-bg: #F7E1DB; --banner-fg: #96301D; }
.banner--neutral { --banner-bar: var(--mesquite-400); --banner-bg: var(--surface-sunken); --banner-fg: var(--text-body); }
.banner--warning .banner__icon { color: #B7841A; }

.call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: var(--control-md);
  padding: 0 var(--space-5) 0 var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--surface-raised);
  border: 1.5px solid var(--border-strong);
  color: var(--text-strong);
  font-weight: var(--weight-bold);
  text-decoration: none;
}
.call svg { width: 18px; height: 18px; color: var(--accent); }
.call:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--text-strong); text-decoration: none; }
.call .num { font-weight: var(--weight-bold); }

.scrim {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  background: var(--overlay-scrim);
  backdrop-filter: blur(2px);
}
.dialog { width: 100%; max-width: 382px; background: var(--surface-card); border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); overflow: hidden; }
.dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); padding: var(--space-5) var(--space-3) 0 var(--space-6); }
.dialog__title { margin: 10px 0 0; font-family: var(--font-display); font-size: var(--text-xl); font-weight: var(--weight-bold); letter-spacing: var(--tracking-tight); line-height: var(--leading-snug); color: var(--text-strong); }
.dialog__body { padding: var(--space-3) var(--space-6) var(--space-6); color: var(--text-body); line-height: var(--leading-normal); }
.dialog__body p { margin: 0; }
.dialog__foot { display: flex; justify-content: flex-end; gap: var(--space-3); padding: var(--space-4) var(--space-6); border-top: 1px solid var(--border-hair); background: var(--surface-sunken); }

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--toast-bar, var(--mesquite-800));
  background: var(--mesquite-900);
  color: var(--cream-100);
  box-shadow: var(--shadow-xl);
}
.toast__icon { display: inline-flex; margin-top: 1px; color: var(--toast-bar); }
.toast__icon svg { width: 20px; height: 20px; }
.toast__title { font-weight: var(--weight-bold); }
.toast__body { margin-top: 2px; font-size: var(--text-sm); color: var(--cream-300); }
.toast--success { --toast-bar: #86B35F; }
.toast--ember { --toast-bar: var(--ember-400); }
.toast-slot { position: fixed; z-index: 60; left: 50%; bottom: var(--space-6); width: min(398px, calc(100% - 32px)); transform: translateX(-50%); }
.toast-slot--over-dock { bottom: 104px; }

.steps { display: flex; align-items: center; width: 100%; }
.step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
.step__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--surface-sunken);
  color: var(--text-subtle);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}
.step__dot svg { width: 15px; height: 15px; stroke-width: 3.5; }
.step__label { font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--text-muted); white-space: nowrap; }
.step__bar { flex: 1; height: 2px; margin: 0 6px 22px; background: var(--border-default); }
.step.is-done .step__dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.step.is-current .step__dot { background: var(--surface-raised); border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.step.is-current .step__label { font-weight: var(--weight-bold); color: var(--text-strong); }
.step__bar.is-done { background: var(--accent); }

.tabs { display: flex; gap: var(--space-1); border-bottom: 1.5px solid var(--border-hair); }
.tab { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: var(--space-3) var(--space-4); margin-bottom: -1.5px; color: var(--text-muted); font-weight: var(--weight-medium); text-decoration: none; }
.tab:hover { color: var(--text-strong); text-decoration: none; }
.tab[aria-selected="true"] { color: var(--text-strong); font-weight: var(--weight-bold); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: var(--space-3); right: var(--space-3); bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
.tab__count { padding: 1px 7px; border-radius: var(--radius-pill); background: var(--mesquite-200); color: var(--mesquite-700); font-size: var(--text-2xs); font-weight: var(--weight-bold); line-height: 1.4; }
.tab[aria-selected="true"] .tab__count { background: var(--accent); color: #fff; }

.seg { position: relative; display: flex; width: 100%; padding: 4px; background: var(--surface-sunken); border: 1px solid var(--border-hair); border-radius: var(--radius-pill); }
.seg__opt { flex: 1; display: flex; align-items: center; justify-content: center; min-height: var(--control-md); padding: 0 var(--space-4); border-radius: var(--radius-pill); font-weight: var(--weight-bold); letter-spacing: var(--tracking-snug); color: var(--text-muted); text-decoration: none; }
.seg__opt:hover { color: var(--text-strong); text-decoration: none; }
.seg__opt[aria-current="true"] { background: var(--surface-raised); border: 1px solid var(--border-hair); box-shadow: var(--shadow-sm); color: var(--accent-press); }

.dock {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: auto;
  padding: var(--space-3) var(--space-4) var(--space-5);
  background: var(--surface-card);
  border-top: 1px solid var(--border-hair);
  box-shadow: var(--dock-shadow);
}

.hero { position: relative; height: 200px; flex: none; }
.home-hero { height: 132px; margin-top: var(--space-2); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }
.hero .appbar { top: 0; }
.shop-head { position: relative; margin: -44px var(--space-4) 0; z-index: 2; }
.shop-head .title { font-size: var(--text-xl); }

.shopline { display: flex; align-items: center; gap: var(--space-3); }
.shopline__thumb { width: 44px; height: 44px; flex: none; border-radius: var(--radius-md); }
.shopline__name { font-weight: var(--weight-bold); color: var(--text-strong); line-height: var(--leading-snug); }
.shopline__sub { font-size: var(--text-sm); color: var(--text-muted); }

.order-head { display: flex; flex-direction: column; gap: var(--space-3); }

.receipt { padding: 0; overflow: hidden; }
.receipt__lines { padding: var(--space-2) 0; }
.receipt__row { display: flex; align-items: baseline; gap: var(--space-3); padding: 10px var(--space-5); }
.receipt__qty { min-width: 2.2ch; font-family: var(--font-mono); font-weight: var(--weight-bold); color: var(--accent-press); }
.receipt__name { flex: 1; min-width: 0; color: var(--text-strong); font-weight: var(--weight-medium); }
.receipt__amount { font-family: var(--font-mono); color: var(--text-strong); }
.receipt__empty { padding: var(--space-5); color: var(--text-muted); font-size: var(--text-sm); }
.receipt__total { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin: 0 var(--space-5); padding: var(--space-4) 0 var(--space-1); border-top: 1.5px dashed var(--border-default); }
.receipt__total-label { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-lg); color: var(--text-strong); }
.receipt__total-amount { font-family: var(--font-mono); font-weight: var(--weight-bold); font-size: var(--text-lg); color: var(--text-strong); }
.receipt__tax { margin: 0; padding: 0 var(--space-5) var(--space-4); font-size: var(--text-sm); color: var(--text-muted); }
.receipt__tax .num { color: var(--text-body); }
.receipt__pay { display: flex; align-items: center; gap: 10px; padding: var(--space-3) var(--space-5); background: var(--surface-sunken); border-top: 1px solid var(--border-hair); font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-body); }
.receipt__pay svg { width: 20px; height: 20px; color: var(--accent); }

.quote { margin: 0; font-size: var(--text-md); line-height: var(--leading-snug); color: var(--text-strong); }
.quote--muted { color: var(--text-muted); }

.orders { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.order {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--surface-card);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  transition: box-shadow var(--dur-base), transform var(--dur-base);
}
a.order:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); color: inherit; text-decoration: none; }
.order__thumb { width: 52px; height: 52px; flex: none; border-radius: var(--radius-md); }
.order__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.order__top { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.order__code { font-family: var(--font-mono); font-weight: var(--weight-bold); color: var(--text-strong); }
.order__shop { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-body); }
.order__date { font-size: var(--text-xs); color: var(--text-muted); }
.order__end { display: flex; align-items: center; gap: 4px; }
.order__total { font-family: var(--font-mono); font-weight: var(--weight-bold); color: var(--text-strong); }
.order__end svg { width: 20px; height: 20px; color: var(--text-subtle); }

.facts { margin: 0; }
.facts__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); padding: 14px var(--space-5); border-top: 1px solid var(--border-hair); }
.facts__row:first-child { border-top: none; }
.facts dt { font-size: var(--text-sm); color: var(--text-muted); }
.facts dd { margin: 0; font-weight: var(--weight-bold); color: var(--text-strong); }

.linkrow { display: flex; align-items: center; gap: var(--space-3); min-height: 56px; padding: 0 var(--space-5); color: var(--text-strong); font-weight: var(--weight-bold); text-decoration: none; }
.linkrow:hover { background: var(--accent-soft); color: var(--text-strong); text-decoration: none; }
.linkrow__icon { display: inline-flex; color: var(--accent); }
.linkrow__icon svg { width: 22px; height: 22px; }
.linkrow__caret { margin-left: auto; color: var(--text-subtle); }
.linkrow__caret svg { width: 20px; height: 20px; }

.danger-zone { display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-2); }
.btn--delete { background: transparent; color: var(--danger); border: 1.5px solid var(--brick-200); }
.btn--delete:hover { background: var(--brick-50); border-color: var(--danger); color: var(--brick-600); }

.empty { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); padding: var(--space-12) var(--space-4) var(--space-8); text-align: center; }
.empty__title { margin: 0; font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-lg); letter-spacing: var(--tracking-snug); color: var(--text-strong); text-wrap: balance; }
.empty__text { margin: 0; max-width: 30ch; color: var(--text-muted); text-wrap: pretty; }

.foot-link { display: flex; justify-content: center; }
.foot-link a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-3); font-weight: var(--weight-bold); }

.sheet-page { max-width: 1180px; margin: 0 auto; padding: var(--space-12) var(--space-8) var(--space-20); }
.sheet-head { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-8); }
.sheet-head .logo { width: 48px; height: 48px; }
.sheet-head .title { font-size: var(--text-2xl); }
.sheet { background: var(--bg-page); border: 1px solid var(--border-hair); border-radius: var(--radius-2xl); box-shadow: var(--shadow-lg); padding: var(--space-10); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-10) var(--space-12); }
.spec { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.spec--wide { grid-column: 1 / -1; }
.spec__name { margin: 0; padding-bottom: var(--space-2); border-bottom: 1px solid var(--border-hair); font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--weight-bold); letter-spacing: var(--tracking-snug); color: var(--text-strong); }
.spec__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.spec__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); align-items: start; }
.spec__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.spec__note { margin: 0; font-size: var(--text-xs); color: var(--text-muted); }
.spec__stage { position: relative; height: 280px; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-sunken); border: 1px solid var(--border-hair); }
.spec__stage .scrim { position: absolute; }
.spec__col { display: flex; flex-direction: column; gap: var(--space-3); }
@media (max-width: 900px) {
  .sheet { grid-template-columns: 1fr; padding: var(--space-6); }
  .spec__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:active, .tier:hover, a.shop:hover, a.order:hover { transform: none; }
}
