:root {
  --bg: #11141a;
  --panel: #1b2029;
  --line: #2c3340;
  --text: #f4f6f8;
  --muted: #9aa3b2;
  --accent: #f4c15d;
  --ok: #3dd68c;
  --warn: #f0a05a;
  --danger: #ef6b6b;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font: 15px/1.4 "Avenir Next", "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
#app { min-height: 100vh; }
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.gate form, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; width: min(420px, 100%); }
.gate h1, h1, h2 { margin: 0 0 8px; }
.muted { color: var(--muted); }
.field { display: grid; gap: 6px; margin: 16px 0; }
.field input, .field select { background: #10141b; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 12px; }
.cta, .chip, .product, .action { border: 0; border-radius: 12px; cursor: pointer; }
.cta { background: var(--accent); color: #1a1408; font-weight: 700; padding: 12px 16px; width: 100%; }
.shell { display: grid; grid-template-rows: auto 1fr; min-height: 100vh; }
.top { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #0d1015; }
.top nav { display: flex; gap: 8px; margin-left: auto; }
.top a, .ghost { color: var(--text); text-decoration: none; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; }
.top a.active { background: var(--accent); color: #1a1408; border-color: var(--accent); }
.caisse { display: grid; grid-template-columns: 1.6fr 0.9fr; min-height: 0; }
.catalog, .ticket, .board, .list { padding: 16px; overflow: auto; }
.cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { background: #10141b; color: var(--text); border: 1px solid var(--line); padding: 8px 12px; }
.chip.active { background: var(--accent); color: #1a1408; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.product { background: var(--panel); color: var(--text); text-align: left; padding: 14px; min-height: 92px; border: 1px solid var(--line); }
.product strong { display: block; margin-bottom: 6px; }
.ticket { background: #0d1015; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.lines { flex: 1; display: grid; gap: 8px; align-content: start; }
.line { display: flex; justify-content: space-between; gap: 8px; background: var(--panel); padding: 10px 12px; border-radius: 10px; }
.total { font-size: 28px; font-weight: 800; margin: 12px 0; }
.services { display: flex; gap: 8px; margin-bottom: 12px; }
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.column { background: var(--panel); border-radius: 16px; padding: 12px; min-height: 70vh; }
.card { background: #10141b; border-radius: 12px; padding: 12px; margin-top: 10px; }
.card p { margin: 6px 0; }
.action { margin: 6px 6px 0 0; padding: 8px 10px; background: var(--ok); color: #062415; font-weight: 700; }
.action.warn { background: var(--warn); color: #2a1604; }
.action.danger { background: var(--danger); color: #2b0909; }
.list { display: grid; gap: 12px; align-content: start; }
.actions-row { display: flex; gap: 8px; }
.actions-row .cta, .actions-row .ghost { width: auto; flex: 1; }
.pending { display: grid; gap: 8px; margin-top: 8px; max-height: 28vh; overflow: auto; }
.pending-line .action { margin: 0; }
.ticket h2 { font-size: 15px; margin: 16px 0 0; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; padding: 24px; }
.home-card { display: grid; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; color: var(--text); text-decoration: none; }
.home-card span, .home-card p { color: var(--muted); margin: 0; }
.home-card a { color: var(--accent); }
.ghost-card { background: transparent; }
@media (max-width: 900px) {
  .caisse, .board { grid-template-columns: 1fr; }
  .ticket { border-left: 0; border-top: 1px solid var(--line); }
}
