/* ============================================================================
   BitePlate — "THE PASS"
   A premium kitchen-operations console. Warm charcoal canvas, ember accents,
   cream type. Fraunces (display) · Hanken Grotesk (UI) · Space Mono (tickets).
   ========================================================================== */

:root {
  /* --- canvas / surfaces (warm near-black) --- */
  --bg:        #14110d;
  --bg-2:      #1a1611;
  --surface:   #211c16;
  --surface-2: #2a241c;
  --raised:    #322a20;

  /* --- hairlines --- */
  --line:        rgba(245, 239, 230, 0.08);
  --line-strong: rgba(245, 239, 230, 0.15);

  /* --- type --- */
  --text:   #f5efe6;
  --dim:    #bcae9b;
  --faint:  #80735f;

  /* --- signature ember --- */
  --flame:    #f4761e;
  --flame-lo: #d85f12;
  --gold:     #e9b949;
  --ember-grad: linear-gradient(135deg, #f4761e 0%, #e9b949 100%);
  --ember-glow: rgba(244, 118, 30, 0.35);

  /* --- status hues --- */
  --idle:   #93a7b3;
  --wait:   #e9b949;
  --heat:   #f4761e;
  --fresh:  #6fcf73;
  --done:   #80735f;
  --danger: #e0533d;
  --reserved: #c79a6a;

  /* --- type families --- */
  --display: "Fraunces", "Georgia", serif;
  --ui:      "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono:    "Space Mono", ui-monospace, "SFMono-Regular", monospace;

  /* --- shape --- */
  --r-lg: 16px;
  --r-md: 11px;
  --r-sm: 8px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 78% -8%, rgba(244, 118, 30, 0.10), transparent 60%),
    radial-gradient(900px 520px at -6% 8%, rgba(233, 185, 73, 0.06), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  position: relative;
}
/* faint film grain for atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- typography base ---- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}
h1 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); font-optical-sizing: auto; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
a  { color: var(--gold); text-decoration: none; }
code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 0.08em 0.4em;
  border-radius: 5px;
  color: var(--gold);
}
small { color: var(--dim); font-family: var(--ui); font-weight: 400; }
::selection { background: var(--flame); color: #14110d; }

/* ============================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.85rem 1.75rem;
  background: rgba(20, 17, 13, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.navbar .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.navbar .brand::before {
  content: "";
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--ember-grad);
  box-shadow: 0 0 0 3px rgba(244, 118, 30, 0.18), 0 0 16px var(--ember-glow);
}
.nav-links { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.nav-links a {
  position: relative;
  color: var(--dim);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.4rem 0.7rem;
  border-radius: var(--r-sm);
  transition: color 0.18s, background 0.18s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0.7rem; right: 0.7rem; bottom: 0.05rem;
  height: 2px;
  border-radius: 2px;
  background: var(--ember-grad);
}
.nav-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.nav-user .role {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.logout-form { margin: 0; }

/* ============================================================================
   LAYOUT
   ========================================================================== */
.content {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 2.25rem 1.75rem 4rem;
  animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.content > h1 {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}
.content > h1 small { font-size: 0.9rem; letter-spacing: 0.02em; }

/* ============================================================================
   BUTTONS
   ========================================================================== */
.btn {
  --b: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1;
  color: var(--text);
  background: var(--b);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 0.62rem 1.1rem;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.18s, background 0.18s, border-color 0.18s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--faint); background: var(--raised); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.btn-sm { padding: 0.42rem 0.78rem; font-size: 0.82rem; }

.btn-primary, .btn.btn-primary {
  color: #1a1207;
  background: var(--ember-grad);
  border-color: transparent;
  box-shadow: 0 6px 18px -6px var(--ember-glow);
}
.btn-primary:hover { background: var(--ember-grad); box-shadow: 0 10px 26px -6px var(--ember-glow); }

.btn-accent {
  color: var(--gold);
  border-color: rgba(233, 185, 73, 0.4);
  background: rgba(233, 185, 73, 0.08);
}
.btn-accent:hover { background: rgba(233, 185, 73, 0.16); }

.btn-danger {
  color: #ffd9d0;
  border-color: rgba(224, 83, 61, 0.45);
  background: rgba(224, 83, 61, 0.12);
}
.btn-danger:hover { background: rgba(224, 83, 61, 0.22); }

.btn-ghost { background: transparent; color: var(--dim); }
.btn-ghost:hover { color: var(--text); background: var(--surface); }

/* ============================================================================
   FORMS
   ========================================================================== */
label { font-size: 0.82rem; font-weight: 600; color: var(--dim); }

input, select {
  width: 100%;
  font-family: var(--ui);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 0.6rem 0.7rem;
  transition: border-color 0.16s, box-shadow 0.16s;
}
input::placeholder { color: var(--faint); }
input:focus, select:focus {
  outline: none;
  border-color: var(--flame);
  box-shadow: 0 0 0 3px rgba(244, 118, 30, 0.15);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%23bcae9b' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

/* inline filter / action forms */
.start-order-form, .bill-form, .report-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.9rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin-bottom: 1.5rem;
}
.start-order-form label, .bill-form label, .report-filter label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.bill-form input, .report-filter input { max-width: 160px; }

.hint, .login-hint { color: var(--faint); font-size: 0.85rem; }
.hint { margin: -0.6rem 0 1.5rem; }

/* ============================================================================
   CARDS & GRIDS
   ========================================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.4rem;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
}

/* ============================================================================
   STATUS BADGES & PILLS  (shared color system)
   ========================================================================== */
.badge, .status-badge {
  --c: var(--idle);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.26rem 0.65rem;
  border-radius: 999px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
}
.badge::before, .status-badge::before {
  content: "";
  width: 0.45rem; height: 0.45rem;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 8px var(--c);
}

/* order / kitchen statuses */
.badge-new,     .status-new     { --c: var(--idle); }
.badge-queued,  .status-queued  { --c: var(--wait); }
.badge-cooking, .status-cooking { --c: var(--heat); }
.badge-ready,   .status-ready   { --c: var(--fresh); }
.badge-served,  .status-served  { --c: var(--done); }
.badge-cancelled, .status-cancelled { --c: var(--danger); }

/* table states (capitalized, spaces→dashes) */
.state-Free, .badge.state-Free, .badge-free { --c: var(--idle); }
.state-Reserved, .badge-reserved   { --c: var(--reserved); }
.state-Occupied, .badge-occupied   { --c: var(--heat); }
.state-Awaiting-Bill               { --c: var(--gold); }
.state-Cleared, .badge-cleared     { --c: var(--done); }

/* ============================================================================
   LOGIN
   ========================================================================== */
.login-card {
  max-width: 380px;
  margin: 6vh auto 0;
  padding: 2.4rem 2.2rem;
  text-align: left;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 70px -30px #000, 0 0 0 1px var(--line);
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.login-card h1 { font-size: 2rem; margin-bottom: 0.3rem; }
.login-card h1::after {
  content: "Order to pass — one console.";
  display: block;
  font-family: var(--ui);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--faint);
  margin-top: 0.5rem;
}
.login-card label { display: block; margin: 1rem 0 0; }
.login-card input { margin-top: 0.4rem; }
.login-card .btn { width: 100%; margin-top: 1.5rem; padding: 0.75rem; font-size: 1rem; }
.login-hint {
  margin: 1.5rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--line-strong);
  line-height: 1.9;
}
.login-hint code { font-size: 0.78rem; }

/* ============================================================================
   DASHBOARD — stations
   ========================================================================== */
.dash-greeting { margin-bottom: 0.4rem; }
.dash-sub { color: var(--dim); margin: 0 0 1.8rem; }
.nav-card {
  position: relative;
  display: block;
  color: inherit;
  overflow: hidden;
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.2s;
}
.nav-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 140% at 100% 0%, rgba(244, 118, 30, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.2s;
}
.nav-card:hover {
  transform: translateY(-3px);
  border-color: rgba(244, 118, 30, 0.4);
  box-shadow: 0 18px 40px -22px var(--ember-glow);
}
.nav-card:hover::after { opacity: 1; }
.nav-card .station-icon { font-size: 1.5rem; margin-bottom: 0.7rem; }
.nav-card h2 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.nav-card p { margin: 0; color: var(--dim); font-size: 0.88rem; }
.nav-card .go {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

/* ============================================================================
   TABLES — floor plan
   ========================================================================== */
.table-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.table-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-top: 3px solid var(--c, var(--idle));
}
.table-card.state-Free      { --c: var(--idle); }
.table-card.state-Reserved  { --c: var(--reserved); }
.table-card.state-Occupied  { --c: var(--heat); }
.table-card.state-Awaiting-Bill { --c: var(--gold); }
.table-card.state-Cleared   { --c: var(--done); }
.table-card h2 { font-size: 1.2rem; }
.table-card .seats { color: var(--faint); font-size: 0.82rem; margin: 0; }
.table-card .badge { align-self: flex-start; margin-top: 0.2rem; }
.table-actions {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.7rem;
  flex-wrap: wrap;
}
.table-actions .btn { flex: 1; min-width: 68px; }

/* ============================================================================
   ORDER builder
   ========================================================================== */
.order-summary { margin-top: 0.5rem; animation: rise 0.35s ease both; }
.order-summary h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.order-lines { list-style: none; padding: 0; margin: 1rem 0; }
.order-line {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.88rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--line);
  color: var(--dim);
}
.order-subtotal {
  font-family: var(--mono);
  font-weight: 700;
  text-align: right;
  font-size: 1.05rem;
  margin: 0.8rem 0 1.2rem;
}
.order-menu {
  display: grid;
  gap: 0.6rem;
  padding: 1.1rem;
  margin: 1rem 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.add-item-form {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 0.5rem;
  align-items: center;
}
.add-item-form .qty-input { text-align: center; }
.add-item-form .btn { white-space: nowrap; }

/* ============================================================================
   KITCHEN — THE PASS (showpiece)
   ========================================================================== */
.pass-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.3rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.pass-header .pass-title {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
}
.pass-header .pass-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--dim);
}
.pass-header .pass-clock { color: var(--gold); font-weight: 700; }
.pass-header .live-dot {
  display: inline-flex; align-items: center; gap: 0.45rem;
  color: var(--fresh); font-weight: 700;
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.pass-header .live-dot::before {
  content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--fresh); box-shadow: 0 0 8px var(--fresh);
  animation: ember-pulse 1.6s ease-in-out infinite;
}

#kitchen-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
  margin-top: 1.25rem;
}
.kitchen-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--faint);
  font-family: var(--display);
  font-style: italic;
  font-size: 1.2rem;
  padding: 3rem 0;
}
.kitchen-card {
  --c: var(--idle);
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  border-left: 4px solid var(--c);
  padding: 1.1rem 1.1rem 1rem;
  overflow: hidden;
  animation: rise 0.35s ease both;
}
/* perforated ticket top edge */
.kitchen-card::before {
  content: "";
  position: absolute;
  top: -7px; left: 8px; right: 8px;
  height: 14px;
  background: radial-gradient(circle at 7px 7px, var(--bg) 5px, transparent 5.5px) repeat-x;
  background-size: 14px 14px;
  opacity: 0.6;
}
.kitchen-card.status-new     { --c: var(--idle); }
.kitchen-card.status-queued  { --c: var(--wait); }
.kitchen-card.status-cooking { --c: var(--heat); }
.kitchen-card.status-ready   { --c: var(--fresh); }
.kitchen-card.status-served  { --c: var(--done); }
.kitchen-card.status-cancelled { --c: var(--danger); opacity: 0.7; }

/* cooking tickets glow & pulse on the pass */
.kitchen-card.status-cooking {
  border-color: color-mix(in srgb, var(--heat) 45%, transparent);
  box-shadow: 0 0 0 1px rgba(244, 118, 30, 0.15), 0 14px 40px -18px var(--ember-glow);
  animation: rise 0.35s ease both, ember-pulse 2.6s ease-in-out 0.4s infinite;
}
.kitchen-card-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}
.kitchen-card-head .order-code {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.kitchen-card-head .table-no {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.kitchen-card-head .status-badge { margin-left: auto; }
.kitchen-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

/* ============================================================================
   BILLS list + BILL receipt
   ========================================================================== */
.bills-table, .report-records {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.bills-table th, .report-records th {
  text-align: left;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.bills-table td, .report-records td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.bills-table tr:last-child td, .report-records tr:last-child td { border-bottom: none; }
.bills-table tbody tr, .report-records tbody tr { transition: background 0.14s; }
.bills-table tbody tr:hover, .report-records tbody tr:hover { background: var(--surface-2); }
.bills-table td:first-child, .report-records td:first-child {
  font-family: var(--mono);
  color: var(--gold);
}

.bill-doc {
  max-width: 440px;
  margin: 1.5rem 0;
  padding: 1.8rem;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  font-family: var(--mono);
  box-shadow: 0 24px 60px -30px #000;
}
.bill-doc .strategy {
  text-align: center;
  font-family: var(--ui);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
  margin: 0 0 1.2rem;
}
.bill-lines { list-style: none; padding: 0; margin: 0 0 1rem; }
.bill-lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  padding: 0.3rem 0;
  color: var(--dim);
}
.bill-lines .amount { color: var(--text); }
.bill-totals {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px dashed var(--line-strong);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  font-size: 0.85rem;
}
.bill-totals dt { color: var(--dim); }
.bill-totals dd { margin: 0; text-align: right; color: var(--text); }
.bill-totals dt.total, .bill-totals dd.total {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  padding-top: 0.6rem;
  margin-top: 0.4rem;
  border-top: 2px solid var(--line-strong);
}
.bill-totals dd.total { color: var(--gold); }
.per-guest {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--faint);
}
.flash-area { margin: 1.2rem 0 0.6rem; }

/* ============================================================================
   REPORT — metrics
   ========================================================================== */
.report-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 0.5rem 0 2rem;
}
.report-stats span {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
}
.report-records { margin-top: 1rem; }
.top-items {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: rank;
}
.top-items li {
  counter-increment: rank;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
}
.top-items li::before {
  content: counter(rank);
  flex: none;
  width: 1.6rem; height: 1.6rem;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(233, 185, 73, 0.1);
  border: 1px solid rgba(233, 185, 73, 0.3);
  border-radius: 50%;
}
.report-records td:nth-child(3) { font-family: var(--mono); }
.empty { color: var(--faint); font-style: italic; }
.content > h3 { margin: 1.8rem 0 0.4rem; }

/* ============================================================================
   FLASH / toasts
   ========================================================================== */
.flash {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-radius: var(--r-sm);
  margin: 0.75rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--c, var(--line-strong));
  background: color-mix(in srgb, var(--c, var(--idle)) 12%, var(--surface));
  color: var(--text);
  animation: rise 0.3s ease both;
}
.flash::before {
  content: "";
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--c, var(--idle));
  box-shadow: 0 0 8px var(--c, var(--idle));
}
.flash-info    { --c: var(--gold); }
.flash-success { --c: var(--fresh); }
.flash-error   { --c: var(--danger); }

/* ============================================================================
   MOTION
   ========================================================================== */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ember-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(244, 118, 30, 0.15), 0 14px 40px -22px var(--ember-glow); }
  50%      { box-shadow: 0 0 0 1px rgba(244, 118, 30, 0.35), 0 16px 48px -16px var(--ember-glow); }
}
@media (prefers-reduced-motion: reduce) {
  *, .content, .login-card, .kitchen-card { animation: none !important; }
  .btn:hover, .nav-card:hover { transform: none; }
}

/* ============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 720px) {
  .navbar { gap: 1rem; padding: 0.7rem 1rem; flex-wrap: wrap; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; }
  .nav-user { margin-left: auto; }
  .content { padding: 1.5rem 1rem 3rem; }
  .pass-header .pass-meta { margin-left: 0; width: 100%; }
  .add-item-form { grid-template-columns: 56px 1fr; }
  .add-item-form .btn { grid-column: 1 / -1; }
}
