[hidden] { display: none !important; }

.ax-dark {
  --accent: var(--ember-600);
  --accent-hover: var(--ember-700);
  --accent-press: var(--ember-300);
  --accent-soft: rgba(232, 91, 30, 0.16);
  --ink-link: var(--ember-300);
  --app-desk: var(--mesquite-950);
  --surface-line: #4A3B2C;
  --dock-shadow: 0 -10px 28px rgba(0, 0, 0, 0.45);
  --photo-light: radial-gradient(120% 90% at 22% 18%, rgba(255, 227, 199, 0.45), rgba(255, 227, 199, 0) 60%);
}

html { background: var(--mesquite-950); }
body.ax-dark { background: var(--app-desk); min-height: 100vh; }
a { color: var(--ink-link); }
a:hover { color: var(--ember-200); }
button { font: inherit; }
svg { flex: none; }

.app {
  max-width: 600px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-page);
  color: var(--text-body);
  display: flex;
  flex-direction: column;
  position: relative;
}
@media (min-width: 640px) {
  .app { border-left: 1px solid var(--border-hair); border-right: 1px solid var(--border-hair); box-shadow: 0 0 60px rgba(0, 0, 0, 0.5); }
}

.topbar {
  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);
  background: color-mix(in srgb, var(--surface-card) 94%, transparent);
  border-bottom: 1px solid var(--border-hair);
  backdrop-filter: blur(8px);
}
.topbar__brand { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.topbar__brand .logo { width: 34px; height: 34px; }
.topbar__title { margin: 0; font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--weight-bold); letter-spacing: var(--tracking-snug); line-height: var(--leading-snug); color: var(--text-strong); }
.topbar__shop { margin: 0; font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar--plain { background: transparent; border-bottom: none; backdrop-filter: none; }

.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); }

.reception {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 var(--space-4) 0 var(--space-3);
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--rc-line);
  background: var(--rc-bg);
  color: var(--rc-fg);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  text-decoration: none;
  white-space: nowrap;
}
.reception:hover { color: var(--rc-fg); text-decoration: none; filter: brightness(1.12); }
.reception svg { width: 18px; height: 18px; }
.reception--open { --rc-bg: rgba(91, 140, 54, 0.18); --rc-fg: #B9D99A; --rc-line: rgba(91, 140, 54, 0.55); }
.reception--paused { --rc-bg: rgba(224, 164, 34, 0.16); --rc-fg: #F1CB73; --rc-line: rgba(224, 164, 34, 0.55); }
.reception--stopped { --rc-bg: rgba(196, 56, 31, 0.2); --rc-fg: #F4B3A2; --rc-line: rgba(196, 56, 31, 0.6); }

.back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  padding: 0 var(--space-4) 0 var(--space-2);
  margin-left: calc(var(--space-2) * -1);
  border-radius: var(--radius-pill);
  font-weight: var(--weight-bold);
  color: var(--text-strong);
  text-decoration: none;
}
.back svg { width: 22px; height: 22px; }
.back:hover { background: var(--accent-soft); color: var(--text-strong); text-decoration: none; }

.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(91, 140, 54, 0.18);
  color: #B9D99A;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  line-height: 1;
  white-space: nowrap;
}
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #7FB356; box-shadow: 0 0 0 3px rgba(127, 179, 86, 0.25); }
.live--off { background: rgba(224, 164, 34, 0.16); color: #F1CB73; }
.live--off::before { background: transparent; border: 2px solid #F1CB73; box-shadow: none; width: 6px; height: 6px; }

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

.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.stack--tight { gap: var(--space-2); }
.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; }
.num { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }

.title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-extra);
  font-size: 1.875rem;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-strong);
  text-wrap: balance;
}
.title--md { font-size: var(--text-xl); }
.lede { margin: 0; font-size: var(--text-base); line-height: var(--leading-normal); color: var(--text-muted); text-wrap: pretty; }
.meta { margin: 0; font-size: var(--text-sm); color: var(--text-muted); }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 32px; }
.section-head__title { margin: 0; display: inline-flex; align-items: baseline; gap: var(--space-2); font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--weight-bold); letter-spacing: var(--tracking-snug); color: var(--text-strong); }
.section-head__count { font-family: var(--font-mono); font-size: var(--text-base); color: var(--text-muted); }

.badge-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: var(--radius-lg); background: rgba(232, 91, 30, 0.16); color: var(--ember-300); }
.badge-icon svg { width: 30px; height: 30px; }
.badge-icon--round { width: 80px; height: 80px; border-radius: 50%; }
.badge-icon--round svg { width: 36px; height: 36px; }
.badge-icon--danger { background: rgba(196, 56, 31, 0.2); color: #F4B3A2; }
.badge-icon--calm { background: var(--surface-raised); color: var(--text-muted); }

.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);
}
.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: #fff; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35); }
.btn--primary:hover { background: var(--accent-hover); color: #fff; box-shadow: var(--shadow-ember); }
.btn--secondary { background: var(--surface-raised); color: var(--text-strong); border-color: var(--border-strong); }
.btn--secondary:hover { background: #43342A; 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(--ember-400); 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; }
.btn--danger:hover { background: var(--brick-600); color: #fff; }
.btn--danger-outline { background: transparent; color: #F4B3A2; border: 1.5px solid rgba(196, 56, 31, 0.7); }
.btn--danger-outline:hover { background: rgba(196, 56, 31, 0.16); color: #F9CFC4; border-color: var(--danger); }
.btn--lg { height: var(--control-lg); padding: 0 var(--space-8); font-size: var(--text-md); gap: 10px; }
.btn--xl { height: 60px; padding: 0 var(--space-6); font-size: 1.1875rem; gap: 10px; }
.btn--xl svg { width: 24px; height: 24px; }
.btn--block { width: 100%; }
.btn:disabled, .btn.is-disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; transform: none; }

.actions { display: flex; gap: var(--space-3); }
.actions > .btn { flex: 1; }
.actions > .btn--side { flex: 0 0 auto; padding: 0 var(--space-5); }
.actions__hint { margin: 0; font-size: var(--text-sm); color: var(--text-muted); text-align: center; }

.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-sm); color: var(--text-muted); }
.field__hints { margin: 0; padding-left: 1.1em; display: grid; gap: 2px; line-height: 1.4; }
.field__error { display: flex; align-items: flex-start; gap: 6px; font-size: var(--text-sm); font-weight: var(--weight-semibold); color: #F4B3A2; }
.field__error svg { width: 18px; height: 18px; margin-top: 1px; }
.input {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 56px;
  padding: 0 var(--space-4);
  background: var(--surface-sunken);
  border: 1.5px solid var(--border-strong);
  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(--ember-400); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.is-invalid { border-color: var(--danger); }
.input.is-invalid.is-focused { box-shadow: 0 0 0 3px rgba(196, 56, 31, 0.28); }
.input input { flex: 1; min-width: 0; height: 100%; border: none; outline: none; background: transparent; font-family: var(--font-sans); font-size: var(--text-md); color: var(--text-strong); }
.input__icon { display: inline-flex; color: var(--text-muted); }
.input__icon svg { width: 20px; height: 20px; }
.textarea {
  display: block;
  width: 100%;
  min-height: 132px;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  color: var(--text-strong);
  background: var(--surface-sunken);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  resize: vertical;
  outline: none;
}
.textarea:focus, .textarea.is-focused { border-color: var(--ember-400); box-shadow: 0 0 0 3px var(--accent-soft); }
.textarea.is-invalid { border-color: var(--danger); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  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--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); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-snug);
  line-height: 1;
  white-space: nowrap;
  background: var(--surface-raised);
  color: var(--text-strong);
}
.badge svg { width: 14px; height: 14px; }
.badge--paid { background: rgba(91, 140, 54, 0.2); color: #B9D99A; }
.badge--new { background: var(--ember-500); color: #fff; text-transform: uppercase; letter-spacing: var(--tracking-wide); }
.badge--late { background: rgba(196, 56, 31, 0.22); color: #F4B3A2; }
.badge--out { background: rgba(224, 164, 34, 0.16); color: #F1CB73; }
.badge--soldout { background: rgba(196, 56, 31, 0.22); color: #F4B3A2; }
.badge--available { background: rgba(91, 140, 54, 0.2); color: #B9D99A; }

.card {
  background: var(--surface-card);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.card--sm { padding: var(--space-4); }
.card--flush { padding: 0; overflow: hidden; }
.card__title { margin: 0 0 var(--space-2); 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; color: var(--text-body); line-height: var(--leading-normal); }

.ticket {
  background: var(--surface-card);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.ticket__main { display: flex; flex-direction: column; gap: 10px; padding: var(--space-4) var(--space-4) var(--space-3); color: inherit; text-decoration: none; }
a.ticket__main:hover { background: rgba(255, 255, 255, 0.025); color: inherit; text-decoration: none; }
.ticket__head { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.ticket__code { font-family: var(--font-mono); font-weight: var(--weight-bold); font-size: 1.375rem; letter-spacing: -0.01em; color: var(--text-strong); }
.ticket__caret { margin-left: auto; color: var(--text-muted); display: inline-flex; }
.ticket__caret svg { width: 22px; height: 22px; }
.ticket__who { display: flex; align-items: center; gap: 8px; margin: 0 var(--space-4) var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--surface-line); font-weight: var(--weight-semibold); color: var(--text-strong); }
.ticket__who svg { width: 18px; height: 18px; color: var(--text-muted); }
.ticket__who .num { font-weight: var(--weight-bold); }
.ticket__items { margin: 0; font-size: var(--text-md); line-height: var(--leading-snug); color: var(--text-body); }
.ticket__foot { display: flex; align-items: center; gap: var(--space-3); }
.ticket__total { font-family: var(--font-mono); font-weight: var(--weight-bold); font-size: var(--text-md); color: var(--text-strong); }
.ticket__actions { display: flex; gap: var(--space-3); padding: 0 var(--space-4) var(--space-4); }
.ticket__actions > .btn { flex: 1; }
.ticket__actions > .btn--side { flex: 0 0 auto; padding: 0 var(--space-5); }
.ticket.is-new { border: 2px solid var(--ember-500); box-shadow: 0 0 0 4px rgba(232, 91, 30, 0.22), 0 12px 32px rgba(232, 91, 30, 0.18); }
.ticket.is-stale { border-style: dashed; border-color: var(--border-strong); }
.ticket.is-stale .ticket__main { opacity: 0.78; }

.alert-new {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
  border-radius: var(--radius-xl);
  background: var(--ember-600);
  color: #fff;
  box-shadow: 0 10px 30px rgba(232, 91, 30, 0.35);
}
.alert-new__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.alert-new__icon svg { width: 24px; height: 24px; }
.alert-new__title { font-weight: var(--weight-extra); font-family: var(--font-display); font-size: var(--text-md); letter-spacing: var(--tracking-snug); }
.alert-new__body { font-size: var(--text-sm); opacity: 0.95; }
.alert-new .btn { background: #fff; color: var(--ember-800); height: 48px; padding: 0 var(--space-5); }
.alert-new .btn:hover { background: var(--cream-100); color: var(--ember-900); }

.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__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-raised); --banner-fg: var(--text-body); }
.banner--warning .banner__icon { color: #B7841A; }
.banner--neutral .banner__title { color: var(--text-strong); }

.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); font-size: var(--text-md); }
.receipt__qty { min-width: 2.2ch; font-family: var(--font-mono); font-weight: var(--weight-bold); color: var(--ember-300); }
.receipt__name { flex: 1; min-width: 0; color: var(--text-strong); font-weight: var(--weight-medium); }
.receipt__name .badge { margin-left: 6px; vertical-align: 2px; }
.receipt__amount { font-family: var(--font-mono); color: var(--text-strong); }
.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; border-top: 1.5px dashed var(--border-strong); }
.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__paid { display: flex; align-items: center; gap: 10px; padding: var(--space-3) var(--space-5); background: rgba(91, 140, 54, 0.14); border-top: 1px solid var(--surface-line); font-weight: var(--weight-bold); color: #B9D99A; }
.receipt__paid svg { width: 20px; height: 20px; }

.person { display: flex; align-items: center; gap: var(--space-3); }
.person__avatar { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--surface-raised); color: var(--ember-300); font-family: var(--font-display); font-weight: var(--weight-extra); font-size: var(--text-lg); }
.person__name { font-weight: var(--weight-bold); font-size: var(--text-md); color: var(--text-strong); }
.person__phone { font-family: var(--font-mono); color: var(--text-body); }
.person__hidden { font-size: var(--text-sm); color: var(--text-muted); }

.call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 var(--space-5);
  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: 20px; height: 20px; color: var(--ember-300); }
.call .num { font-weight: var(--weight-bold); }
.call--sm { height: 44px; padding: 0 var(--space-4); font-size: var(--text-sm); }
.person .call { flex: none; }
.call:hover { border-color: var(--ember-400); background: var(--accent-soft); color: var(--text-strong); text-decoration: none; }

.list { list-style: none; margin: 0; padding: 0; }
.list__row { display: flex; align-items: center; gap: var(--space-3); min-height: 72px; padding: var(--space-3) var(--space-4); border-top: 1px solid var(--surface-line); }
.list__row:first-child { border-top: none; }
a.list__row { color: inherit; text-decoration: none; }
a.list__row:hover { background: rgba(255, 255, 255, 0.03); color: inherit; text-decoration: none; }
.list__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.list__title { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; font-weight: var(--weight-bold); color: var(--text-strong); }
.list__sub { font-size: var(--text-sm); color: var(--text-muted); }
.list__end { display: flex; align-items: center; gap: var(--space-2); }
.list__caret { color: var(--text-muted); display: inline-flex; }
.list__caret svg { width: 20px; height: 20px; }

.item-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); padding: var(--space-4); border-top: 1px solid var(--surface-line); }
.item-row:first-child { border-top: none; }
.item-row__thumb { width: 56px; height: 56px; flex: none; border-radius: var(--radius-md); }
.item-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.item-row__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-row__tag { margin-left: 8px; font-family: var(--font-sans); font-size: var(--text-2xs); font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--ember-300); white-space: nowrap; }
.item-row__price { font-family: var(--font-mono); font-weight: var(--weight-bold); color: var(--text-strong); }
.item-row__foot { flex: 1 0 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.item-row__foot .badge { font-size: var(--text-sm); padding: 7px 12px; }
.item-row.is-sold-out .item-row__thumb { filter: brightness(0.55); }
.item-row.is-sold-out .item-row__name { color: var(--text-muted); }
.rental { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); border-top: 1px solid var(--surface-line); }
.rental:first-child { border-top: none; }
.rental__head { display: flex; align-items: center; gap: var(--space-2) var(--space-3); flex-wrap: wrap; }
.rental__code { font-family: var(--font-mono); font-weight: var(--weight-bold); font-size: var(--text-lg); color: var(--text-strong); }
.rental__who { font-weight: var(--weight-semibold); color: var(--text-strong); }
.rental__sep { color: var(--text-muted); }
.mask { font-family: var(--font-sans); font-weight: var(--weight-bold); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; white-space: nowrap; }
.person__phone.mask { font-weight: var(--weight-semibold); color: var(--text-body); }
.rental__tail { display: inline-flex; align-items: center; gap: var(--space-3); white-space: nowrap; }
.rental__since { font-size: var(--text-sm); color: var(--text-muted); }
.rental.is-late { background: rgba(196, 56, 31, 0.07); }

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

.state-hero { display: flex; align-items: center; gap: var(--space-4); }
.state-hero__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--rc-bg); color: var(--rc-fg); border: 1.5px solid var(--rc-line); }
.state-hero__icon svg { width: 26px; height: 26px; }
.state-hero__label { font-family: var(--font-display); font-weight: var(--weight-extra); font-size: var(--text-xl); letter-spacing: var(--tracking-tight); color: var(--text-strong); }

.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(--surface-line);
  box-shadow: var(--dock-shadow);
}

.tabbar {
  position: sticky;
  bottom: 0;
  z-index: 30;
  display: flex;
  margin-top: auto;
  background: var(--mesquite-950);
  border-top: 1px solid var(--border-default);
}
.tab {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 64px;
  padding: var(--space-2) 2px;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--text-muted);
  text-decoration: none;
}
.tab svg { width: 24px; height: 24px; }
.tab:hover { color: var(--text-strong); text-decoration: none; }
.tab[aria-current="page"] { color: var(--ember-300); }
.tab[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; border-radius: 0 0 3px 3px; background: var(--ember-400); }
.tab__count { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--ember-500); color: #fff; font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: var(--weight-bold); line-height: 20px; text-align: center; }
.tab__count--alert { box-shadow: 0 0 0 3px var(--mesquite-950), 0 0 0 5px rgba(232, 91, 30, 0.5); }

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--toast-bar, var(--success));
  background: var(--cream-100);
  color: var(--text-inverse);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  font-weight: var(--weight-bold);
}
.toast__icon { display: inline-flex; color: var(--lime-700); }
.toast__icon svg { width: 22px; height: 22px; }
.toast--late { --toast-bar: var(--warning); }
.toast--late .toast__icon { color: #8A6410; }
.toast-slot { position: fixed; z-index: 60; left: 50%; bottom: 84px; width: min(560px, calc(100% - 32px)); transform: translateX(-50%); }

.empty { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); padding: var(--space-12) var(--space-4); 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: 32ch; color: var(--text-muted); }

.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); }

.photo { background-color: var(--brick-600); background-size: cover; background-position: center; }
.photo--arrachera { background-image: repeating-linear-gradient(-32deg, rgba(63, 23, 16, 0) 0 12px, rgba(63, 23, 16, 0.34) 12px 16px), 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 8%, rgba(242, 152, 95, 0) 9%), radial-gradient(circle at 64% 40%, rgba(238, 119, 56, 0.8) 0 7%, rgba(238, 119, 56, 0) 8%), radial-gradient(120% 100% at 50% 100%, var(--ember-700), rgba(166, 56, 17, 0) 70%), linear-gradient(160deg, var(--mesquite-600), var(--mesquite-800)); }
.photo--asador { background-image: repeating-linear-gradient(90deg, rgba(38, 32, 25, 0) 0 9px, rgba(38, 32, 25, 0.38) 9px 12px), var(--photo-light), linear-gradient(145deg, var(--ember-300), var(--brick-500)); }

.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-default); border-radius: var(--radius-2xl); 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-default); 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__note { margin: 0; font-size: var(--text-xs); color: var(--text-muted); }
.spec__frame { border: 1px solid var(--border-default); border-radius: var(--radius-lg); overflow: hidden; }
.spec__frame .tabbar, .spec__frame .topbar { position: static; }
@media (max-width: 900px) {
  .sheet { grid-template-columns: 1fr; padding: var(--space-6); }
}

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

.sound-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 12px; border-radius: var(--radius-pill); background: rgba(224, 164, 34, 0.16); color: #F1CB73; font-size: var(--text-xs); font-weight: var(--weight-bold); }
