.s-head { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); padding: calc(8px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 8px max(12px, env(safe-area-inset-left, 0px)); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.s-head .who { font-size: 13px; color: var(--muted); }
.s-nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.s-nav button { min-height: 36px; padding: 6px 12px; }
.s-nav button.on { background: var(--gold); border-color: var(--gold); color: var(--on-gold); font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); display: inline-block; }
.dot.on { background: var(--ok); }
.s-main { padding: 14px max(12px, env(safe-area-inset-right, 0px)) 80px max(12px, env(safe-area-inset-left, 0px)); display: grid; gap: 16px; }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { min-height: 34px; padding: 4px 12px; border-radius: 999px; font-size: 14px; }
.chips button.on { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-strong); font-weight: 600; }

/* PIN */
.pin { max-width: 340px; margin: 8vh auto 0; display: grid; gap: 16px; text-align: center; padding: 0 16px; }
.pin .dots { display: flex; justify-content: center; gap: 12px; min-height: 18px; }
.pin .dots span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--gold); }
.pin .dots span.f { background: var(--gold); }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pad button { min-height: 64px; font-size: 24px; font-weight: 500; }

/* Кухня */
.tickets { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); align-items: start; }
.ticket { background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--info); border-radius: var(--radius); padding: 12px; display: grid; gap: 10px; }
.ticket.warn { border-top-color: var(--warn); }
.ticket.late { border-top-color: var(--bad); }
.ticket .th { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.ticket .place { font-size: 20px; font-weight: 700; }
.ticket .age { font-variant-numeric: tabular-nums; font-weight: 600; }
.ticket.warn .age { color: var(--warn); }
.ticket.late .age { color: var(--bad); }
.ti { display: grid; gap: 6px; padding-top: 8px; border-top: 1px dashed var(--line); }
.ti .nm { font-size: 17px; font-weight: 600; }
.ti .cm { color: var(--bad); font-size: 14px; font-weight: 500; }
.ti.done .nm { color: var(--muted); }

/* Столы */
.places { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.place-btn { min-height: 64px; display: grid; gap: 2px; text-align: center; justify-items: center; }
.place-btn.busy { border-color: var(--gold); background: var(--gold-soft); }
.place-btn.alert { border-color: var(--bad); background: var(--bad-soft); }

/* Касса */
.checks { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.check-card { text-align: left; display: grid; gap: 6px; justify-items: stretch; min-height: 90px; padding: 12px; }
.check-card.bill { border-color: var(--gold); border-width: 2px; }
.lines { display: grid; gap: 6px; }
.line { display: flex; gap: 8px; align-items: center; }
.line.cx { color: var(--muted); }
.line.cx .ln { text-decoration: line-through; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; border-radius: 0; min-width: 110px; }
.seg button.on { background: var(--gold); color: var(--on-gold); font-weight: 600; }
.kpis { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.kpi .v { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 12px; color: var(--muted); }
.slip { max-height: 160px; border-radius: 8px; border: 1px solid var(--line); }

/* Админка */
.tabs2 { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.tabs2 button { min-height: 34px; padding: 5px 12px; border-color: transparent; background: transparent; }
.tabs2 button.on { border-color: var(--gold); color: var(--gold-strong); font-weight: 600; }
.grid2 { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; background: var(--surface-2); }

/* Печать QR: только карточки */
.qr-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.qr-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; display: grid; gap: 6px; justify-items: center; background: #fff; color: #1d1b17; break-inside: avoid; }
.qr-card img.q { width: 160px; height: 160px; }
.qr-card .nm { font-size: 20px; font-weight: 700; }
.qr-card .hint { font-size: 11px; color: #555; }
@media print {
  .s-head, .no-print, .tabs2 { display: none !important; }
  body { background: #fff; }
  .s-main { padding: 0; }
  .qr-sheet { grid-template-columns: repeat(3, 1fr); }
}
.ti .row > button.grow { flex: 1 1 120px; }
.ti .row > select { flex: 0 1 140px; min-width: 0; }
