/* ═══════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  /* ── Warm Tavern · Abend (dunkles, warmes Holz) ── */
  --bg:          #1a130b;
  --bg-2:        #241a10;
  --bg-3:        #312516;
  --border:      #3e2e1c;

  --text:        #f1e7d4;
  --text-muted:  #b29c7e;
  --text-dim:    #a4906c;

  --accent:        #e8a020;
  /* Accent used for TEXT on a surface. In light mode applyDesign() darkens it
     to meet WCAG AA; in dark mode it equals --accent. */
  --accent-text:   var(--accent);
  --accent-tint:   #fbedca;
  --accent-bg:     #271a08;
  --accent-border: #6b5000;
  --accent-dark:   #c47a10;
  --on-accent:     #201400;

  --green:       #4a9d5b;
  --red:         #d9603f;
  --blue:        #6a9fd8;

  /* Warme klassische Serif für Überschriften — bewusst systemnah (kein CDN). */
  --font-display: Georgia, 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --radius:      10px;
  --radius-sm:   7px;
  --header-h:    84px;
  --fab-size:    56px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --shadow-card: 0 1px 2px rgba(40,22,6,0.06), 0 4px 14px rgba(40,22,6,0.06);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.4;
  min-height: 100dvh;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}

/* Warme Serif für Überschriften & Namen — gibt dem POS Kneipen-Charakter. */
.tiles-title, .detail-guest-name, .archive-title, .modal-title,
.config-section-title, .recipe-section-title, .editItemTitle {
  font-family: var(--font-display);
}
.tiles-title, .detail-guest-name, .archive-title, .modal-title {
  letter-spacing: 0.01em;
}

/* ═══════════════════════════════════════════
   HEADER
════════════════════════════════════════════ */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: linear-gradient(180deg, #2c1e11 0%, #1d1409 100%);
  border-bottom: 1px solid #4a3520;
  box-shadow: 0 2px 10px rgba(0,0,0,0.28);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 14px 6px;
  z-index: 100;
  gap: 2px;
}

.app-header-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.app-header-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-logo-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.app-logo {
  display: flex;
  align-items: baseline;
  gap: 0;
  line-height: 1;
}

.logo-gastro {
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.06em;
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

.logo-helper {
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: 0.02em;
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

/* Start-Screen-Wortmarke sitzt auf heller Karte (nicht im dunklen Header) →
   im Hellmodus dunkle/abgedunkelte Farben, damit "GASTRO" nicht verschwindet. */
body.light .start-logo-text .logo-gastro { color: var(--text); }
body.light .start-logo-text .logo-helper { color: var(--accent-text); }

@media (min-width: 480px) {
  :root          { --header-h: 96px; }
  .app-logo-icon { width: 42px; height: 42px; }
  .logo-gastro,
  .logo-helper   { font-size: 2.2rem; }
  .app-header    { padding: 8px 20px; gap: 4px; }
}

@media (min-width: 768px) {
  :root          { --header-h: 106px; }
  .app-logo-icon { width: 50px; height: 50px; }
  .logo-gastro,
  .logo-helper   { font-size: 2.7rem; }
  .app-header    { padding: 10px 32px; }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-btn {
  position: relative;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}
.header-btn:active { background: #444; }

.badge {
  position: absolute;
  top: 3px;
  right: 3px;
  background: var(--red);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  border-radius: 2px;
  padding: 1px 4px;
  min-width: 16px;
  text-align: center;
}

/* ═══════════════════════════════════════════
   SCREENS
════════════════════════════════════════════ */
.screen {
  margin-top: var(--header-h);
  min-height: calc(100dvh - var(--header-h));
  padding-bottom: calc(100px + var(--safe-bottom));
}

/* ═══════════════════════════════════════════
   OVERVIEW: TILES GRID
════════════════════════════════════════════ */
.tiles-header {
  padding: 12px 14px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.tiles-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.guest-count {
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 2px;
  padding: 1px 7px;
}

.tiles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 12px;
}

@media (min-width: 480px) {
  .tiles-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .tiles-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1100px) {
  .tiles-grid { grid-template-columns: repeat(5, 1fr); }
}

.tile {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 13px 14px 11px;
  min-height: 118px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  user-select: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.tile:hover  { box-shadow: 0 2px 4px rgba(40,22,6,0.08), 0 8px 22px rgba(40,22,6,0.10); }
.tile:active { transform: scale(0.985); }

.tile.tile--active {
  background: var(--accent-bg);
  border-color: var(--accent);
  box-shadow: 0 0 0 1.5px var(--accent), var(--shadow-card);
}

.tile-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.15;
  word-break: break-word;
}

/* Kategorie-Icons der bestellten Getränke */
.tile-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}
.tile-cat {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.02rem;
  line-height: 1;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.tile-cats--empty {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-style: italic;
}

.tile-note {
  font-size: 0.74rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile-amount {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--accent-text);
  line-height: 1;
}

.tile-free-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--green);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  border-radius: 2px;
  padding: 1px 5px;
}

/* ── Gast ruft die Bedienung ── */
.tile-call-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 3px 11px;
  box-shadow: 0 2px 8px rgba(217,96,63,0.5);
}
.tile-call-badge::before {
  content: '🔔';
  display: inline-block;
  transform-origin: 50% 0;
  animation: bellRing 0.9s ease-in-out infinite;
}
@keyframes bellRing {
  0%, 60%, 100% { transform: rotate(0); }
  10%, 30%, 50% { transform: rotate(16deg); }
  20%, 40%      { transform: rotate(-16deg); }
}
/* beim Rufen die anderen Badges ausblenden, damit nichts kollidiert */
.tile--calling .tile-free-badge,
.tile--calling .tile-lock-badge { display: none; }
/* Kachel selbst deutlich rot einfärben (nicht nur Rand) */
.tile--calling {
  background: rgba(217, 96, 63, 0.16);
  border-color: var(--red);
  animation: tileCallPulse 1.05s ease-in-out infinite;
}
.tile--calling .tile-name { color: var(--red); }
.tile--calling .tile-amount { color: var(--red); }
@keyframes tileCallPulse {
  0%, 100% { box-shadow: 0 0 0 1.5px var(--red), var(--shadow-card); }
  50%      { box-shadow: 0 0 0 3px var(--red), 0 0 22px rgba(217,96,63,0.6); }
}

/* Auffälliges Alarm-Banner oben in der Übersicht */
.call-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 12px 0;
  padding: 12px 14px;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(217,96,63,0.45);
  animation: bannerPulse 1.05s ease-in-out infinite;
}
.call-banner-bell {
  font-size: 1.3rem;
  line-height: 1;
  transform-origin: 50% 0;
  animation: bellRing 0.9s ease-in-out infinite;
}
.call-banner-text {
  flex: 1;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.2;
}
.call-banner-go {
  flex-shrink: 0;
  background: rgba(255,255,255,0.95);
  color: #b1361f;
  border: none;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 7px 14px;
  cursor: pointer;
}
.call-banner-go:active { background: #fff; }
@keyframes bannerPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(217,96,63,0.45); }
  50%      { box-shadow: 0 4px 24px rgba(217,96,63,0.85); }
}

.tile-time {
  font-size: 0.65rem;
  color: var(--text-dim);
}

.empty-state {
  grid-column: 1 / -1;
  background: var(--bg);
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-icon { font-size: 2.5rem; margin-bottom: 12px; }
.empty-state p { margin-bottom: 6px; }
.empty-hint { font-size: 0.82rem; color: var(--text-dim); }

/* ═══════════════════════════════════════════
   DETAIL SCREEN
════════════════════════════════════════════ */
.screen--detail {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--header-h));
  overflow: hidden;
  padding-bottom: 0;
}

.detail-header {
  flex-shrink: 0;
  background: #111;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
}

.detail-back {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
}
.detail-back:active { background: #444; }

.icon-back { font-size: 1rem; font-weight: 700; }

.detail-guest-info {
  flex: 1;
  min-width: 0;
}

.detail-guest-name {
  font-size: 1rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.detail-guest-status {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.detail-nav {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.nav-arrow {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-arrow:active { background: #444; }
.nav-arrow:disabled { opacity: 0.25; pointer-events: none; }

.detail-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  touch-action: pan-y;
}

.detail-footer {
  flex-shrink: 0;
  background: #111;
  border-top: 1px solid var(--border);
  padding: 8px 12px calc(8px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ═══════════════════════════════════════════
   TOTAL CARD
════════════════════════════════════════════ */
.total-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: var(--shadow-card);
}

.total-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.total-amount {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--accent-text);
  line-height: 1;
  letter-spacing: -0.02em;
}

.total-free-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.total-free-badge {
  background: #0d2e18;
  color: var(--green);
  border: 1px solid #1a4f2a;
  border-radius: 2px;
  padding: 1px 7px;
  font-size: 0.7rem;
  font-weight: 700;
}

.bill-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text);
}

.bill-row span:first-child { color: var(--text-muted); }
.bill-row--free span:first-child { color: var(--green); }
.bill-row--free span:last-child  { color: var(--green); font-weight: 700; }

/* ═══════════════════════════════════════════
   ORDER COUNT BAR
════════════════════════════════════════════ */
.order-count-bar {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

/* ═══════════════════════════════════════════
   PICKER DIVIDER
════════════════════════════════════════════ */
.picker-divider {
  height: 1px;
  background: var(--border);
}

/* ═══════════════════════════════════════════
   SECTION LABEL
════════════════════════════════════════════ */
.section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  padding: 4px 0 6px;
  border-bottom: 1px solid var(--border);
}

/* ═══════════════════════════════════════════
   ORDER LIST
════════════════════════════════════════════ */
.order-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-empty {
  color: var(--text-dim);
  font-size: 0.82rem;
  padding: 6px 0;
}

.order-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-item.order-item--free {
  border-color: #1a4f2a;
  background: #0d2010;
}

.order-item-info {
  flex: 1;
  min-width: 0;
}

.order-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.order-item-detail { display: none; }

.order-item-free-label {
  font-size: 0.62rem;
  font-weight: 800;
  background: var(--green);
  color: #fff;
  border-radius: 2px;
  padding: 1px 5px;
  white-space: nowrap;
}

.order-item-price {
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  text-align: right;
  color: var(--text);
}

.order-item--free .order-item-price { color: var(--green); }

.order-item-remove {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px 6px;
  border-radius: var(--radius);
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.order-item-remove:active { background: #2d0a0a; color: var(--red); }

.order-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.qty-btn {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.qty-val {
  font-size: 0.9rem;
  font-weight: 800;
  min-width: 20px;
  text-align: center;
}

/* ═══════════════════════════════════════════
   CATEGORY TABS
════════════════════════════════════════════ */
.category-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
  flex-shrink: 0;
  /* subtle right fade indicates more tabs */
  -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
  mask-image: linear-gradient(to right, black 80%, transparent 100%);
}
.category-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: var(--radius);
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: background 0.1s, border-color 0.1s, color 0.1s;
}
.cat-tab:active { background: var(--bg-2); }

.cat-tab.cat-tab--active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
}

/* ═══════════════════════════════════════════
   ITEM GRID
════════════════════════════════════════════ */
.item-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

@media (min-width: 480px) {
  .item-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .item-grid { grid-template-columns: repeat(4, 1fr); }
}

.item-tile {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 10px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100px;
  justify-content: space-between;
  position: relative;
  user-select: none;
  box-shadow: var(--shadow-card);
}
.item-tile:active { background: var(--accent-bg); border-color: var(--accent); }

.item-tile--ordered {
  border-color: var(--accent-border);
  background: var(--accent-bg);
}

.item-tile-count {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.6rem;
  font-weight: 900;
  border-radius: 2px;
  padding: 1px 5px;
}

.item-tile-name {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  padding-right: 26px;
}

.item-tile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.item-tile-price {
  font-size: 1.0rem;
  font-weight: 900;
  color: var(--accent-text);
}

.item-tile-free {
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: 1.0rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius);
  line-height: 1;
  flex-shrink: 0;
  min-width: 32px;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.item-tile-free:active { background: #0d2010; border-color: var(--green); }

/* ═══════════════════════════════════════════
   SPECIAL REQUEST BUTTON
════════════════════════════════════════════ */
.special-btn {
  background: var(--bg-2);
  border: 1px dashed var(--border);
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: var(--radius);
  width: 100%;
  text-align: left;
}
.special-btn:active { color: var(--accent); border-color: var(--accent); background: var(--accent-bg); }

/* ═══════════════════════════════════════════
   CHECKOUT ACTIONS
════════════════════════════════════════════ */
.btn-checkout {
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  padding: 16px;
  width: 100%;
  letter-spacing: 0.01em;
}

.btn-paid {
  background: #15803d; /* darker green so white label clears WCAG AA */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-paid:active { background: #1e7a38; }

.btn-later {
  background: #0a1a2e;
  color: var(--blue);
  border: 1px solid #1a3050;
  font-weight: 700;
}
.btn-later:active { background: #0d203a; }

.btn-gone {
  background: #2d0a0a;
  color: var(--red);
  border: 1px solid #5a1a1a;
}
.btn-gone:active { background: #3d1010; }

/* ═══════════════════════════════════════════
   CHECKOUT SECONDARY ROW
════════════════════════════════════════════ */
.checkout-secondary {
  display: flex;
  gap: 8px;
}
.checkout-secondary .btn-checkout { flex: 1; }

.btn-checkout-icon { font-size: 1.3rem; font-weight: 900; }
.btn-checkout-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.btn-checkout-main { font-size: 1rem; font-weight: 900; }
.btn-checkout-sub  { font-size: 0.82rem; font-weight: 700; opacity: 0.85; }

/* ═══════════════════════════════════════════
   ARCHIVE SCREEN
════════════════════════════════════════════ */
.screen--archive {
  padding-bottom: calc(40px + var(--safe-bottom));
}

.archive-header {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: #111;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 8px 12px;
  gap: 8px;
}

.archive-title {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  color: var(--text);
}

.btn-clear-archive {
  background: #2d0a0a;
  border: 1px solid #5a1a1a;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius);
}
.btn-clear-archive:active { background: var(--red); color: #fff; }

.archive-list {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.archive-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.archive-card--paid  { border-left: 3px solid var(--green); }
.archive-card--gone  { border-left: 3px solid var(--red); }
.archive-card--later { border-left: 3px solid var(--blue); }

.archive-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.archive-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.archive-card-time {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.archive-status-badge {
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: 2px;
  padding: 2px 8px;
  white-space: nowrap;
}

.badge--paid  { background: var(--green); color: #fff; }
.badge--gone  { background: var(--red);   color: #fff; }
.badge--later { background: var(--blue);  color: #fff; }

.archive-card-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.archive-card-total {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
}

/* ═══════════════════════════════════════════
   STATS SCREEN
════════════════════════════════════════════ */
.screen--stats {
  padding-bottom: calc(40px + var(--safe-bottom));
}

.stats-header {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: #111;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 8px 12px;
  gap: 8px;
}

.stats-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stats-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

@media (min-width: 600px) {
  .stats-kpi-grid { grid-template-columns: repeat(4, 1fr); }
}

.kpi-card {
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--border);
  background: var(--bg-2);
}

.kpi-card--green  { border-color: #1a4f2a; }
.kpi-card--red    { border-color: #5a1a1a; }
.kpi-card--yellow { border-color: #6b5000; }
.kpi-card--blue   { border-color: #1a3050; }

.kpi-label {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.kpi-value {
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.kpi-card--green  .kpi-value { color: var(--green); }
.kpi-card--red    .kpi-value { color: var(--red); }
.kpi-card--yellow .kpi-value { color: var(--accent-text); }
.kpi-card--blue   .kpi-value { color: var(--blue); }

.kpi-sub {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.stats-balance {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.balance-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.balance-bar-track {
  height: 12px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  gap: 2px;
}

.balance-bar-paid  { background: var(--green); height: 100%; }
.balance-bar-later { background: var(--blue);  height: 100%; }
.balance-bar-gone  { background: var(--red);   height: 100%; }

.balance-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.balance-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 1px;
  flex-shrink: 0;
}

.legend-dot--green  { background: var(--green); }
.legend-dot--later  { background: var(--blue); }
.legend-dot--red    { background: var(--red); }
.legend-dot--accent { background: var(--accent); }

.stats-status-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.status-row-icon { font-size: 1.1rem; flex-shrink: 0; }
.status-row-info { flex: 1; }

.status-row-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.status-row-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.status-row-amount {
  font-size: 1.05rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-row--paid  { border-left: 3px solid var(--green); }
.status-row--gone  { border-left: 3px solid var(--red); }
.status-row--later { border-left: 3px solid var(--blue); }
.status-row--open  { border-left: 3px solid var(--accent); }
.status-row--free  { border-left: 3px solid var(--text-dim); }

.status-row--paid  .status-row-amount { color: var(--green); }
.status-row--gone  .status-row-amount { color: var(--red); }
.status-row--later .status-row-amount { color: var(--blue); }
.status-row--open  .status-row-amount { color: var(--accent-text); }
.status-row--free  .status-row-amount { color: var(--text-muted); }

.stats-items-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stats-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stats-item-rank {
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--text-dim);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.stats-item-name {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.stats-item-qty {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  background: var(--bg-3);
  border-radius: 2px;
  padding: 1px 7px;
  font-weight: 700;
}

.stats-item-total {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}

.stats-guest-log {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stats-guest-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stats-guest-dot {
  width: 8px;
  height: 8px;
  border-radius: 1px;
  flex-shrink: 0;
}

.stats-guest-info { flex: 1; min-width: 0; }

.stats-guest-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-guest-meta {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.stats-guest-amount {
  font-size: 0.92rem;
  font-weight: 900;
  white-space: nowrap;
}

.stats-guest-badge {
  font-size: 0.6rem;
  font-weight: 800;
  border-radius: 2px;
  padding: 2px 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   FLOATING ACTION BUTTONS
════════════════════════════════════════════ */
.fab-container {
  position: fixed;
  bottom: calc(18px + var(--safe-bottom));
  right: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  z-index: 200;
}

.fab {
  width: var(--fab-size);
  height: var(--fab-size);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.fab:active { opacity: 0.85; }

.fab--add {
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1.9rem;
  font-weight: 300;
}

.fab--search {
  background: var(--bg-3);
  color: var(--text);
  font-size: 1.2rem;
  border: 1px solid var(--border);
}

/* ═══════════════════════════════════════════
   SEARCH OVERLAY
════════════════════════════════════════════ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 300;
  display: flex;
  flex-direction: column;
  padding: 14px;
  gap: 10px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--header-h);
}

.search-input {
  flex: 1;
  background: var(--bg-3);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1.05rem;
  padding: 11px 14px;
  outline: none;
}
.search-input::placeholder { color: var(--text-dim); }

.search-close {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.search-close:active { background: #444; }

.search-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  flex: 1;
}

.search-result-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.search-result-item:active { background: var(--bg-3); }

.search-result-name   { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.search-result-note   { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.search-result-amount { font-size: 0.95rem; font-weight: 900; color: var(--accent-text); }

/* ═══════════════════════════════════════════
   MODALS
════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  z-index: 400;
  display: flex;
  align-items: flex-end;
  padding: 14px;
}

@media (min-width: 600px) {
  .modal-backdrop { align-items: center; justify-content: center; }
  .modal { max-width: 460px; border-radius: var(--radius); }
}

.modal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 20px 18px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 600px) {
  .modal { border-radius: var(--radius); }
}

.modal-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: -6px;
}

.modal-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.form-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-input {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  padding: 12px 12px;
  width: 100%;
  outline: none;
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text-dim); }

.modal-actions {
  display: flex;
  gap: 8px;
  padding-top: 2px;
}

.modal-actions--column { flex-direction: column; }

.btn-modal {
  flex: 1;
  border: none;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  padding: 13px;
}

.btn-modal--confirm { background: var(--accent); color: var(--on-accent); }
.btn-modal--confirm:active { background: var(--accent-dark); }

.btn-modal--cancel {
  background: var(--bg-3);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-modal--cancel:active { background: #444; }

.btn-modal--danger { background: var(--red); color: #fff; }
.btn-modal--danger:active { background: #a82020; }

.btn-modal--secondary {
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}
.btn-modal--secondary:active { opacity: 0.7; }

.btn-modal--free { background: var(--green); color: #fff; }
.btn-modal--free:active { background: #1e7a38; }

/* ═══════════════════════════════════════════
   UTILITIES
════════════════════════════════════════════ */
[hidden] { display: none !important; }

.fade-in {
  animation: fadeIn 0.1s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

/* ═══════════════════════════════════════════
   EMPTY STATE CTA
════════════════════════════════════════════ */
.empty-cta {
  margin-top: 14px;
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  padding: 12px 22px;
}
.empty-cta:active { background: var(--accent-dark); }

/* ═══════════════════════════════════════════
   BILL CARD — MODAL LAYOUT
════════════════════════════════════════════ */
.bill-divider {
  height: 1px;
  background: var(--border);
  margin: 3px 0;
}

.bill-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 4px;
}

.bill-total-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.bill-total-value {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--accent);
}

/* ═══════════════════════════════════════════
   SECTION BAR
════════════════════════════════════════════ */
.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 6px;
  border-bottom: 1px solid var(--border);
}

.section-bar .section-label {
  border-bottom: none;
  padding: 0;
}

.section-count {
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--bg-3);
  color: var(--text-muted);
  border-radius: 2px;
  padding: 1px 7px;
}

/* ═══════════════════════════════════════════
   PRESET CHIPS
════════════════════════════════════════════ */
.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.preset-chip {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius);
  white-space: nowrap;
}

.preset-chip:active,
.preset-chip.preset-chip--active {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent);
}

/* ═══════════════════════════════════════════
   TOAST NOTIFICATIONS
════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: calc(88px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  width: calc(100% - 28px);
  max-width: 400px;
}

.toast {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  animation: toastIn 0.15s ease;
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.toast--success { background: #0d2e18; border-color: #1a4f2a; color: var(--green); }
.toast--error   { background: #2d0a0a; border-color: #5a1a1a; color: var(--red); }
.toast--info    { background: #0a1a2e; border-color: #1a3050; color: var(--blue); }
.toast--warning { background: var(--accent-bg); border-color: var(--accent-border); color: var(--accent); }

/* ═══════════════════════════════════════════
   CONTEXT MENU (Long-press tile)
════════════════════════════════════════════ */
.context-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 350;
}

.context-menu {
  position: fixed;
  bottom: calc(14px + var(--safe-bottom));
  left: 14px;
  right: 14px;
  z-index: 360;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.context-menu-name {
  padding: 12px 14px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}

.context-menu-item {
  width: 100%;
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  padding: 15px 14px;
  text-align: left;
  display: block;
}
.context-menu-item:first-of-type { border-top: none; }
.context-menu-item:active { background: var(--bg-3); }
.context-menu-item--danger { color: var(--red); }
.context-menu-item--danger:active { background: #2d0a0a; }
.context-menu-item--cancel { color: var(--text-muted); font-size: 0.88rem; }

/* ═══════════════════════════════════════════
   SWIPE HINT
════════════════════════════════════════════ */
.swipe-hint {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-dim);
  padding: 5px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

/* ═══════════════════════════════════════════
   NAV COUNTER
════════════════════════════════════════════ */
.nav-counter {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dim);
  min-width: 28px;
  text-align: center;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════
   ITEM SEARCH
════════════════════════════════════════════ */
.item-search-wrap {
  position: relative;
}

.item-search {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.92rem;
  padding: 10px 12px;
  outline: none;
}
.item-search:focus { border-color: var(--accent); }
.item-search::placeholder { color: var(--text-dim); }

.item-tile-none {
  grid-column: 1 / -1;
  text-align: center;
  padding: 18px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ═══════════════════════════════════════════
   TILE FOOTER
════════════════════════════════════════════ */
.tile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.tile-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.tile-order-count {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-dim);
  background: var(--bg-3);
  border-radius: 2px;
  padding: 1px 5px;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════
   HEADER LIVE REVENUE
════════════════════════════════════════════ */
.header-live {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  margin-left: 8px;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════
   ARCHIVE DETAIL MODAL
════════════════════════════════════════════ */
.modal--tall {
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.archive-detail-header {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.archive-detail-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.archive-detail-meta {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.archive-detail-orders {
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
}

.archive-detail-bill {
  flex-shrink: 0;
  padding-top: 4px;
}

.archive-card--clickable {
  cursor: pointer;
}
.archive-card--clickable:active { background: var(--bg-3); }

.archive-card-hint {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ═══════════════════════════════════════════
   SEARCH HINT
════════════════════════════════════════════ */
.search-hint {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 2px;
}

/* ═══════════════════════════════════════════
   TILE TIME WARNING (NEW)
   Amber after 45 min, red after 90 min
════════════════════════════════════════════ */
.tile-time--warn { color: var(--accent-text); font-weight: 700; }
.tile-time--old  { color: var(--red);    font-weight: 700; }

/* ═══════════════════════════════════════════
   PERSONS ROW (NEW — in add guest modal)
════════════════════════════════════════════ */
/* ── Direkt-bezahlt deduction row ── */
.order-item--direct-paid {
  background: rgba(22, 163, 74, 0.07);
  border-left: 2px solid var(--green);
}
.order-item-name--direct {
  text-decoration: line-through;
  color: var(--green);
  opacity: 0.85;
}
.order-item-free-label--direct {
  background: var(--green) !important;
  text-decoration: none;
}
.order-item-qty--direct   { color: var(--green); }
.order-item-price--direct { color: var(--green); font-weight: 700; }
.order-item-direct-spacer { width: 28px; flex-shrink: 0; }

/* ═══════════════════════════════════════════
   DIRECT PAY BUTTON (in order list)
════════════════════════════════════════════ */
.order-item-direct-pay {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 1.15rem;
  cursor: pointer;
  color: var(--blue);
  flex-shrink: 0;
  transition: background 0.12s;
}
.order-item-direct-pay:active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ── Direct Pay Modal qty row ── */
.direct-pay-qty-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 16px 0 6px;
}
.direct-pay-qty-val {
  font-size: 2.6rem;
  font-weight: 900;
  min-width: 56px;
  text-align: center;
}
.direct-pay-price {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 4px;
}
.qty-btn--lg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
}

/* ═══════════════════════════════════════════
   CHANGE CALCULATOR (NEW)
════════════════════════════════════════════ */
.change-quick {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.change-quick-btn {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: var(--radius);
  flex: 1;
  min-width: 56px;
  text-align: center;
}
.change-quick-btn:active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.change-result {
  font-size: 1.2rem;
  font-weight: 900;
  text-align: center;
  padding: 10px 0 2px;
  min-height: 38px;
}
.change-result--ok    { color: var(--green); }
.change-result--short { color: var(--red); }

/* ═══════════════════════════════════════════
   PAYMENT BADGE (NEW — in archive cards)
════════════════════════════════════════════ */
.pay-badge {
  font-size: 0.62rem;
  font-weight: 700;
  border-radius: 2px;
  padding: 1px 6px;
  white-space: nowrap;
}
.pay-badge--cash { background: var(--accent-bg); color: var(--accent); border: 1px solid var(--accent-border); }
.pay-badge--card { background: #0a1a2e; color: var(--blue);   border: 1px solid #1a3050; }

/* ═══════════════════════════════════════════
   PAY SPLIT (NEW — in stats balance card)
════════════════════════════════════════════ */
.pay-split {
  display: flex;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 2px;
}
.pay-split-item {
  flex: 1;
  text-align: center;
}
.pay-split-label {
  font-size: 0.64rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}
.pay-split-value {
  font-size: 1rem;
  font-weight: 900;
}
.pay-split-divider {
  width: 1px;
  background: var(--border);
  margin: 0 4px;
}

/* ═══════════════════════════════════════════
   CONFIG SCREEN (Speisekarte)
════════════════════════════════════════════ */
.screen--config {
  padding-bottom: calc(40px + var(--safe-bottom));
}

.config-header {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: #111;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 8px 12px;
  gap: 8px;
}

.btn-config-new {
  background: var(--accent);
  border: none;
  color: var(--on-accent);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: var(--radius);
  white-space: nowrap;
}
.btn-config-new:active { background: var(--accent-dark); }

.config-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}

.config-section-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  padding: 12px 0 5px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 5px;
}
.config-section-title:first-child { padding-top: 4px; }

.config-item-row {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.config-item-name {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.config-item-price {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
  min-width: 60px;
  text-align: right;
}

.config-item-actions {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.btn-config-edit,
.btn-config-del {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-config-edit:active { color: var(--accent); border-color: var(--accent); }
.btn-config-del:active  { background: #2d0a0a; color: var(--red); border-color: var(--red); }

/* ═══════════════════════════════════════════
   DESIGN PANEL
════════════════════════════════════════════ */
.design-panel {
  padding: 12px 12px 14px;
  border-bottom: 2px solid var(--border);
  background: var(--bg-2);
}

.design-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.design-mode-row {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.design-mode-btn {
  flex: 1;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 8px;
  border-radius: var(--radius);
  text-align: center;
  transition: border-color 0.1s, color 0.1s;
}
.design-mode-btn--active {
  border-color: var(--accent);
  color: var(--text);
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.design-mode-btn:active { opacity: 0.8; }

.design-colors {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.design-color-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  outline: none;
  transition: transform 0.1s;
}
.design-color-btn:active { transform: scale(0.9); }
.design-color-btn--active {
  box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 4px var(--text);
}

/* ═══════════════════════════════════════════
   LIGHT MODE
════════════════════════════════════════════ */
body.light {
  /* ── Warm Tavern · Tag (cremiges Pergament) ── */
  --bg:          #f1e7d2;
  --bg-2:        #fffdf6;
  --bg-3:        #e9dcc1;
  --border:      #ddccac;
  --text:        #2a1d10;
  --text-muted:  #6e5b42;
  --text-dim:    #786040;
  --green:       #2f8f4e;
  --red:         #c0392b;
  --blue:        #2f6fb0;
}

/* Surfaces with hardcoded dark backgrounds */
body.light .detail-header,
body.light .detail-footer,
body.light .archive-header,
body.light .stats-header,
body.light .config-header { background: var(--bg-2); }

/* Tile active state */
body.light .tile.tile--active { background: var(--accent-tint); }

/* Item picker ordered */
body.light .item-tile--ordered {
  background: var(--accent-tint);
  border-color: var(--accent);
}

/* Order items */
body.light .order-item.order-item--free { background: #eefaf3; border-color: #86c9a0; }
body.light .order-item--free .order-item-price { color: var(--green); }

/* Free badge */
body.light .total-free-badge { background: #eefaf3; color: var(--green); border-color: #86c9a0; }
body.light .order-item-free-label { background: var(--green); }
body.light .tile-free-badge { background: var(--green); }

/* Checkout buttons */
body.light .btn-later { background: #eef3fd; border-color: #b4c9f4; color: #1d4ed8; }
body.light .btn-gone  { background: #fdeaea; border-color: #f4b4b4; color: #b91c1c; }

/* Payment */
body.light .btn-pay--cash { background: var(--accent-tint); color: var(--accent); border-color: var(--accent); }
body.light .btn-pay--card { background: #eef3fd; color: var(--blue); border-color: #b4c9f4; }

/* Archive cards */
body.light .archive-card--paid  { background: #f7fdf9; }
body.light .archive-card--gone  { background: #fdf7f7; }
body.light .archive-card--later { background: #f7f9fd; }

/* KPI cards */
body.light .kpi-card--green  { background: #eefaf3; border-color: #86c9a0; }
body.light .kpi-card--red    { background: #fdeaea; border-color: #f4b4b4; }
body.light .kpi-card--yellow { background: var(--accent-tint); border-color: var(--accent); }
body.light .kpi-card--blue   { background: #eef3fd; border-color: #b4c9f4; }

/* Status rows */
body.light .status-row--paid  { background: #f7fdf9; }
body.light .status-row--gone  { background: #fdf7f7; }
body.light .status-row--later { background: #f7f9fd; }
body.light .status-row--open  { background: var(--accent-tint); }

/* Context menu */
body.light .context-backdrop { background: rgba(0,0,0,0.3); }
body.light .modal-backdrop   { background: rgba(0,0,0,0.25); }
body.light .context-menu     { background: #fff; }
body.light .context-menu-item { color: var(--text); }

/* Toasts */
body.light .toast--success { background: #eefaf3; border-color: #86c9a0; color: #166534; }
body.light .toast--error   { background: #fdeaea; border-color: #f4b4b4; color: #991b1b; }
body.light .toast--info    { background: #eef3fd; border-color: #b4c9f4; color: #1e40af; }
body.light .toast--warning { background: var(--accent-tint); border-color: var(--accent); color: var(--accent-dark); }

/* Config delete btn in light mode */
body.light .btn-config-del:active { background: #fdeaea; border-color: var(--red); }

/* Balance bars stay the same */
/* Scrollbar in light mode */
body.light ::-webkit-scrollbar-thumb { background: #c0c0c0; }

/* ═══════════════════════════════════════════
   LOCAL BADGE
════════════════════════════════════════════ */
.header-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

.local-badge {
  background: none;
  border: none;
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 0;
  text-align: left;
  white-space: nowrap;
}
.local-badge:active { color: var(--green); }

body.light .local-badge { color: #aaa; }

/* ═══════════════════════════════════════════
   TIP / ROUND-UP CHIPS
════════════════════════════════════════════ */
.tip-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tip-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tip-chip {
  flex: 1;
  min-width: 70px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 7px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.tip-chip:active { background: var(--accent-bg); border-color: var(--accent); }

.tip-chip-amount {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
}

.tip-chip-tip {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--green);
}

.btn-stimmt {
  width: 100%;
  background: var(--green);
  border: none;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  padding: 12px;
  border-radius: var(--radius);
}
.btn-stimmt:active { opacity: 0.85; }

body.light .tip-chip-amount { color: var(--text); }

/* ═══════════════════════════════════════════
   ADD FEEDBACK (+1 float animation)
════════════════════════════════════════════ */
.add-feedback {
  position: fixed;
  pointer-events: none;
  z-index: 600;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--accent);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  animation: addFloat 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes addFloat {
  0%   { opacity: 1;   transform: translateY(0)    scale(1.2); }
  30%  { opacity: 1;   transform: translateY(-12px) scale(1); }
  100% { opacity: 0;   transform: translateY(-38px) scale(0.85); }
}

.item-tile--pop {
  animation: tilePop 0.18s ease;
}

@keyframes tilePop {
  0%   { transform: scale(1); }
  45%  { transform: scale(0.91); }
  100% { transform: scale(1); }
}

/* ═══════════════════════════════════════════
   START SCREEN
════════════════════════════════════════════ */
.start-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.start-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

.start-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.start-logo-icon {
  width: 48px;
  height: auto;
  flex-shrink: 0;
}

.start-logo-text {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

.start-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-top: -6px;
}

.start-btn {
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  padding: 16px;
  width: 100%;
  margin-top: 10px;
  letter-spacing: 0.01em;
}
.start-btn:active { background: var(--accent-dark); }

.start-hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.6;
}

body.light .start-screen { background: var(--bg); }

/* ═══════════════════════════════════════════
   LOCK BANNER
════════════════════════════════════════════ */
.lock-banner {
  background: #2d0a0a;
  border-bottom: 2px solid var(--red);
  color: var(--red);
  padding: 11px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  flex-shrink: 0;
  letter-spacing: 0.01em;
}

body.light .lock-banner {
  background: #fdeaea;
  border-color: var(--red);
  color: var(--red);
}

/* Disable editing controls when guest is locked by another waiter */
#screenDetail.is-locked #detailBody {
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
}
#screenDetail.is-locked .detail-footer {
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
}

/* ═══════════════════════════════════════════
   TILE LOCK BADGE
════════════════════════════════════════════ */
.tile-lock-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 0.75rem;
  line-height: 1;
}

.tile--locked {
  opacity: 0.7;
}

/* ═══════════════════════════════════════════
   CONNECTION BADGE (header)
════════════════════════════════════════════ */
.local-badge {
  font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════
   QR BUTTON (detail header)
════════════════════════════════════════════ */
.btn-qr {
  font-size: 1rem;
  opacity: 0.75;
  transition: opacity 0.15s;
}
.btn-qr:hover { opacity: 1; }

/* ═══════════════════════════════════════════
   QR MODAL
════════════════════════════════════════════ */
.modal--qr {
  text-align: center;
  max-width: 320px;
  width: 100%;
}

.qr-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  text-align: left;
}

.qr-modal-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.qr-modal-close {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 0.9rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-modal-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-align: center;
}

.qr-canvas-wrap {
  display: flex;
  justify-content: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 12px;
}

.qr-canvas-wrap canvas {
  display: block;
  border-radius: 4px;
}

.qr-url-text {
  font-size: 0.68rem;
  color: var(--text-muted);
  word-break: break-all;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 10px;
  text-align: left;
  font-family: monospace;
  user-select: all;
  display: none; /* hidden in local mode — URL is too long to be useful */
}

.qr-update-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin: 8px 0 6px;
}

.qr-url-row {
  display: flex;
  gap: 6px;
  margin: 0 0 10px;
}
.qr-url-input {
  flex: 1;
  min-width: 0;
  font-size: 0.72rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-3);
  color: var(--text);
}
.qr-url-input:focus { outline: none; border-color: var(--accent); }
.qr-url-copy {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 12px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
}
.qr-url-copy:active { background: var(--accent-dark); }
.qr-url-copy--done { background: var(--green); border-color: var(--green); color: #fff; }

/* ═══════════════════════════════════════════
   BIERDECKEL 3-D (Kellner-Detailansicht)
════════════════════════════════════════════ */
.bierdeckel-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 12px 0;
}

.bierdeckel-mount {
  width: 100%;
  max-width: 420px;
  background: transparent;
  touch-action: none;
}

.bierdeckel-mount canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
}

/* ── Bierdeckel-Ansicht: Tab-Umschalter Draufsicht / 3D ── */
.bd-view { display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: 100%; }
.bd-tabs {
  display: inline-flex;
  align-self: center;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.bd-tab {
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 6px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.bd-tab--active { background: var(--accent); color: var(--on-accent); }
.bd-stage { position: relative; width: 100%; border-radius: 14px; overflow: hidden; touch-action: none; }
.bd-top-canvas { display: block; width: 100%; height: auto; }
.bd-3d-mount { width: 100%; }
.bd-3d-mount canvas { display: block; width: 100% !important; height: auto !important; }
.bd-3d-fallback { padding: 40px 12px; text-align: center; color: var(--text-muted); font-size: 0.85rem; }

.bierdeckel-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: center;
  padding: 2px 0 6px;
  font-size: 0.75rem;
  color: var(--text-muted, #888);
  min-height: 22px;
}

.bierdeckel-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.bierdeckel-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.bierdeckel-legend-empty {
  font-style: italic;
  color: var(--text-muted, #888);
  font-size: 0.73rem;
}

/* ═══════════════════════════════════════════
   RECIPE SYSTEM
════════════════════════════════════════════ */

/* Config section */
.recipe-section-title {
  margin: 20px 12px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.btn-recipe-cfg-add {
  display: block;
  width: calc(100% - 24px);
  margin: 10px 12px 4px;
  background: var(--bg-3);
  border: 1px dashed var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius);
  text-align: center;
}
.btn-recipe-cfg-add:active { background: var(--accent-bg); color: var(--accent); border-color: var(--accent); }

.recipe-cfg-info { flex: 1; min-width: 0; }
.recipe-cfg-preview {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

/* Recipe category chips (edit modal) */
.recipe-cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}
.recipe-cat-chip {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 5px 12px;
  white-space: nowrap;
}
.recipe-cat-chip--active {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}
.recipe-cat-chip--new {
  border-style: dashed;
  color: var(--text-muted);
}
.recipe-cat-chip--new.recipe-cat-chip--active { color: var(--accent); }

/* Recipe tile in item picker */
.item-tile--recipe { cursor: pointer; position: relative; }
.recipe-tile-cat {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 1rem;
  line-height: 1;
}
/* Full recipe text shown inside the tile (line breaks preserved). */
.recipe-tile-recipe {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
  white-space: pre-wrap;
  line-height: 1.35;
  flex: 1;
}
.recipe-tile-empty { font-style: italic; opacity: 0.7; }
/* Recipe tiles grow to fit their text rather than staying square. */
.item-tile--recipe {
  height: auto;
  min-height: 90px;
  align-items: stretch;
  text-align: left;
}

/* Category filter bar in item picker */
.recipe-cat-filter-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 12px 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.recipe-cat-filter-bar::-webkit-scrollbar { display: none; }
.recipe-cat-filter-btn {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}
.recipe-cat-filter-btn--active {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent);
}

/* Recipe edit modal */
.modal--edit-recipe { max-height: 90vh; overflow-y: auto; }
.recipe-text-input {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
  font-family: inherit;
}

/* ── Runde geben ─────────────────────────── */
/* "Runde ausgeben" sits next to Sonderwunsch on the guest screen, accent-tinted
   so it reads as a money action rather than a note. */
.special-btn--round {
  margin-top: 8px;
  border-style: solid;
  border-color: var(--accent-border);
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 700;
  text-align: center;
}
body.light .special-btn--round { background: var(--accent-tint); }
.special-btn--round:active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

.round-item-list {
  max-height: 56vh;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 6px;
}
.round-cat-head {
  position: sticky;
  top: 0;
  background: var(--bg-3);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-bottom: 1px solid var(--border);
}
.round-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  background: var(--bg-2);
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.92rem;
  padding: 11px 12px;
  cursor: pointer;
  text-align: left;
}
.round-item:last-child { border-bottom: none; }
.round-item--active {
  background: var(--accent-bg);
  box-shadow: inset 3px 0 0 var(--accent);
}
body.light .round-item--active { background: var(--accent-tint); }
.round-item-name { font-weight: 600; }
.round-item-price { color: var(--accent-text); font-weight: 700; flex-shrink: 0; }

