:root { --navy:#0B3A68; --navy2:#0B2E5C; --teal:#65C1BE; --teal-d:#0E8F8B; --aqua:#E3F4F2; --ink:#14202b; --muted:#55616c;
        --line:#d5dee5; --red:#C8102E; --green:#1F9D55; --bg:#F4F8FA; --amber:#E6A800; }
* { box-sizing: border-box; }
html { font-size: 18px; }
body { margin:0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color:var(--ink); background:var(--bg); line-height:1.4; }
.top { background:var(--navy); color:#fff; border-bottom:6px solid var(--teal); }
.top-in { max-width:720px; margin:0 auto; padding:16px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.top h1 { font-size:1.45rem; margin:0; line-height:1.15; }
.top .tag { margin:4px 0 0; color:#BFE7E4; font-size:.95rem; }
.logo { height:64px; background:#fff; border-radius:12px; padding:6px 8px; }
main { max-width:720px; margin:0 auto; padding:14px 16px 90px; }
h2 { font-size:1.25rem; margin:10px 0 6px; color:var(--navy2); }
p { margin:8px 0; }
.muted { color:var(--muted); } .note { font-size:.88rem; color:var(--muted); }
.err { color:var(--red); font-weight:600; }
.issue { display:flex; align-items:center; width:100%; min-height:64px; margin:10px 0; padding:14px 18px; font:inherit; font-weight:700; font-size:1.05rem; text-align:left;
         color:var(--navy2); background:#fff; border:2px solid var(--line); border-left:9px solid var(--teal); border-radius:14px; cursor:pointer; }
.issue:hover, .issue:focus-visible { border-color:var(--teal-d); border-left-color:var(--teal-d); background:#f0fbfa; outline:3px solid #9fd6d3; }
.btn { font:inherit; font-weight:700; cursor:pointer; border:2px solid var(--navy); background:#fff; color:var(--navy); border-radius:10px; padding:10px 14px; min-height:44px; }
.btn:hover, .btn:focus-visible { background:#eaf3fa; outline:3px solid #9cc5e4; }
.btn.primary { background:var(--navy); color:#fff; } .btn.primary:hover { background:#0d4a86; }
.btn.good { background:var(--green); border-color:var(--green); color:#fff; }
.btn.danger { border-color:var(--red); color:var(--red); } .btn.plain { border-color:var(--line); color:var(--ink); }
.btn.small { min-height:0; padding:6px 10px; font-size:.85rem; }
.btn.wide { display:block; width:100%; margin:10px 0; }
.card { background:#fff; border:2px solid var(--line); border-radius:18px; padding:20px; margin:14px 0; text-align:center; }
.card.wait { border-color:var(--teal); background:var(--aqua); }
.card.go { border-color:var(--green); background:var(--green); color:#fff; }
.label { font-size:.9rem; letter-spacing:.08em; text-transform:uppercase; font-weight:700; color:var(--muted); }
.card.go .label { color:#dff6e6; }
.number { font-size:6.4rem; font-weight:800; line-height:1.05; color:var(--navy2); }
.card.go .number { color:#fff; }
.big { font-size:1.35rem; font-weight:700; }
footer { position:fixed; left:0; right:0; bottom:0; background:rgba(244,248,250,.96); border-top:1px solid var(--line); padding:10px 16px; text-align:right; }
.staff-btn { font:inherit; font-size:.9rem; padding:8px 14px; border:2px solid var(--line); background:#fff; color:var(--muted); border-radius:10px; cursor:pointer; }
.staff-btn:hover { border-color:var(--navy); color:var(--navy); }
.modal { display:none; position:fixed; inset:0; background:rgba(11,46,92,.65); z-index:20; align-items:center; justify-content:center; padding:16px; }
.modal.open { display:flex; }
.modal .box { background:#fff; border-radius:16px; padding:20px; width:100%; max-width:380px; }
.modal input { width:100%; font:inherit; font-size:1.1rem; padding:12px; margin:10px 0; border:2px solid var(--line); border-radius:10px; }
.row-btns { display:flex; gap:10px; justify-content:flex-end; margin-top:6px; }
/* staff */
.wide { max-width:1100px; }
.bar { display:flex; gap:14px; flex-wrap:wrap; align-items:center; margin:8px 0 12px; }
.bar label { font-size:.9rem; color:var(--muted); display:flex; gap:6px; align-items:center; }
.bar input, .bar select { font:inherit; padding:6px 8px; border:2px solid var(--line); border-radius:8px; width:5.2em; }
.cols { display:grid; grid-template-columns:1fr 1fr; gap:16px; } @media (max-width:820px) { .cols { grid-template-columns:1fr; } }
.panel { background:#fff; border:2px solid var(--line); border-radius:14px; padding:12px 14px; margin:12px 0; }
.panel h2 { margin-top:2px; }
.serve { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:10px 0; border-bottom:1px solid var(--line); }
.serve:last-child { border-bottom:0; }
.serve .n { font-size:3rem; font-weight:800; color:var(--navy2); line-height:1; min-width:2.4ch; }
.serve .info { flex:1; min-width:150px; }
.row { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 0; border-bottom:1px solid var(--line); flex-wrap:wrap; }
.row:last-child { border-bottom:0; }
.tag { font-weight:800; font-size:1.3rem; min-width:2.6ch; display:inline-block; }
table.stats { border-collapse:collapse; width:100%; font-size:.9rem; } table.stats td { padding:4px 6px; border-bottom:1px solid var(--line); }
.closed { background:#fff1dc; border:2px solid var(--amber); border-radius:12px; padding:10px 14px; font-weight:700; }
@media print { .noprint { display:none !important; } }

/* "Your turn" flash and push button */
@keyframes turnflash { 0%,100% { background:var(--green); } 50% { background:#0f7a3a; } }
.card.go { animation: turnflash 0.9s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .card.go { animation: none; } }
.pushbox { margin:14px 0; padding:12px 14px; border:1px solid #cfd8e3; border-radius:12px; background:#fff; }
.pushbox p { margin:0 0 8px; }
.pushbox p:last-child { margin-bottom:0; }
