:root { --brand: #1f6feb; --ink: #14181f; --muted: #5b6573; --line: #e3e7ed; --bg: #f6f7f9; --card: #fff; --ok: #1a7f37; --warn: #b54708; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
.wrap { max-width: 960px; margin: 0 auto; padding: 20px; }
.narrow { max-width: 440px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spread { justify-content: space-between; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
label { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=number] {
  width: 100%; padding: 12px; font: inherit; border: 1px solid #c5ccd6; border-radius: 8px; background: #fff; color: var(--ink);
}
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, white); outline-offset: 2px; }
button, .btn {
  font: inherit; font-weight: 600; padding: 11px 16px; border-radius: 8px; border: 1px solid transparent; cursor: pointer;
  background: var(--brand); color: #fff; text-decoration: none; display: inline-block; min-height: 44px;
}
button.ghost, .btn.ghost { background: #fff; color: var(--ink); border-color: #c5ccd6; }
button.ok { background: var(--ok); }
button.link { background: none; color: var(--muted); padding: 6px 8px; min-height: 0; font-weight: 500; text-decoration: underline; }
button:disabled { opacity: .55; cursor: default; }
.error { color: #b42318; font-size: 14px; min-height: 1.4em; margin: 8px 0 0; }
.notice { background: #fff8e6; border: 1px solid #f1d48a; border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.pill { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #e8eefc; color: #1b4fb5; text-transform: uppercase; letter-spacing: .03em; }
.pill.pro { background: #e3f5e8; color: var(--ok); }
header.top { background: #fff; border-bottom: 1px solid var(--line); }
header.top .wrap { padding-top: 12px; padding-bottom: 12px; }
.logo { font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; }
.logo span { color: var(--brand); }

/* landing */
.hero { padding: 48px 0 24px; display: grid; gap: 32px; grid-template-columns: 1.2fr 1fr; align-items: start; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -.02em; }
.hero p.lead { font-size: 19px; color: var(--muted); }
.grid3 { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin: 24px 0; }
.grid2 { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.price { font-size: 34px; font-weight: 800; }
ul.check { list-style: none; padding: 0; margin: 12px 0 0; }
ul.check li { padding-left: 24px; position: relative; margin: 6px 0; }
ul.check li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
@media (max-width: 760px) { .hero, .grid3, .grid2 { grid-template-columns: 1fr; } .hero { padding-top: 24px; } }

/* staff board */
.cols { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }
.ticket { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.ticket:first-child { border-top: 0; }
.num { font-weight: 800; font-size: 20px; min-width: 52px; font-variant-numeric: tabular-nums; }
.ticket .who { flex: 1; min-width: 0; }
.ticket .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { color: var(--muted); padding: 16px 0; }
.addrow { display: grid; grid-template-columns: 1fr 90px auto; gap: 8px; align-items: end; }
@media (max-width: 520px) { .addrow { grid-template-columns: 1fr 80px; } .addrow button { grid-column: 1 / -1; } }

/* customer + screen */
.center { text-align: center; }
.big { font-size: clamp(64px, 22vw, 120px); font-weight: 800; line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; }
.status-ready { background: var(--ok); color: #fff; border-radius: 12px; padding: 24px; }
.status-ready .big { color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.chip.ready { background: var(--ok); border-color: var(--ok); color: #fff; }
footer.powered { text-align: center; padding: 24px; font-size: 13px; color: var(--muted); }

body.screen { background: #0e1116; color: #fff; min-height: 100vh; }
body.screen .wrap { max-width: none; padding: 3vw; }
body.screen h1 { font-size: 3.2vw; }
body.screen .tv { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3vw; }
body.screen .panel { background: #171c24; border-radius: 1.2vw; padding: 2.4vw; min-height: 60vh; }
body.screen .panel h2 { font-size: 2.2vw; text-transform: uppercase; letter-spacing: .06em; color: #9aa7b8; }
body.screen .panel.ready h2 { color: #57d27a; }
body.screen .list { display: flex; flex-wrap: wrap; gap: 1.2vw; }
body.screen .item { background: #222a36; border-radius: .8vw; padding: 1vw 1.8vw; font-size: 3vw; font-weight: 800; font-variant-numeric: tabular-nums; }
body.screen .item small { font-size: 1.6vw; font-weight: 500; color: #b8c2cf; margin-left: .6vw; }
body.screen .ready .item { background: #1a7f37; font-size: 5vw; }
body.screen .ready .item small { color: #d9f5e0; font-size: 2.2vw; }
body.screen .foot { margin-top: 2vw; color: #9aa7b8; font-size: 1.5vw; display: flex; justify-content: space-between; }
@media (prefers-reduced-motion: no-preference) { .flash { animation: flash 1s ease 3; } @keyframes flash { 50% { opacity: .35; } } }
@media print { header.top, .noprint { display: none !important; } body { background: #fff; } .card { border: 0; } }
.status-ready .muted, .status-ready h1 { color: #fff; }
[hidden] { display: none !important; }
.legal { max-width: 720px; }
.legal h2 { font-size: 20px; margin-top: 28px; }
.legal li { margin: 6px 0; }
