@font-face { font-family: 'Anton'; src: url(fonts/anton-latin-400-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url(fonts/dm-sans-latin-wght-normal.woff2) format('woff2'); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(fonts/jetbrains-mono-latin-wght-normal.woff2) format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
    --bg: #141213; --panel: #1d1a1b; --card: #262223; --card-2: #2e2a2b; --line: #3a3435;
    --ink: #f3ece4; --ink-soft: #b3a8a0; --ink-mute: #7f7570;
    --brand: #c9485a; --ok: #6fbf8e; --amber: #f2a93b; --red: #ff5a4e;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: 'DM Sans', system-ui, sans-serif; min-height: 100vh; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.ribbon { position: fixed; right: 12px; bottom: 12px; z-index: 50; font: 600 11px/1 'DM Sans', sans-serif; letter-spacing: .04em; color: #141213; background: rgba(243, 236, 228, .9); padding: 7px 10px; border-radius: 999px; text-decoration: none; }

.top { display: flex; align-items: center; gap: 20px; padding: 14px 24px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.mark { width: 34px; height: 34px; color: var(--brand); }
.hotel { margin: 0; font-weight: 700; font-size: 16px; }
.screen-name { margin: 2px 0 0; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-mute); }
.tabs { display: flex; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; justify-content: center; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; border: 1px solid var(--line); background: transparent; border-radius: 10px; padding: 9px 14px; font-weight: 600; font-size: 14px; color: var(--ink-soft); display: inline-flex; gap: 8px; align-items: center; }
.tab[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tab .n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--brand); color: #fff; font-size: 12px; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.tools { display: flex; align-items: center; gap: 10px; flex: none; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(111, 191, 142, .2); }
.live-ago { letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.clock { font-family: 'JetBrains Mono', monospace; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; padding: 0 4px; }
.tool { height: 36px; min-width: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 13px; }
.tool svg { width: 18px; height: 18px; }
.tool[aria-pressed="true"] { border-color: var(--amber); color: var(--amber); }

.stats { display: flex; align-items: stretch; gap: 12px; padding: 16px 24px 0; flex-wrap: wrap; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; display: grid; gap: 2px; min-width: 150px; }
.stat-k { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); font-weight: 700; }
.stat-v { font-family: 'JetBrains Mono', monospace; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat.late .stat-v { color: var(--red); }
.legend { margin: 0 0 0 auto; align-self: center; font-size: 12.5px; color: var(--ink-mute); display: flex; gap: 8px; align-items: center; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 6px; }
.sw.ok { background: var(--ok); } .sw.amber { background: var(--amber); } .sw.red { background: var(--red); }

.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 16px 24px 60px; align-items: start; }
.col { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px; min-height: 60vh; min-width: 0; }
.col-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 12px; }
.col-title { margin: 0; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; color: var(--ink-soft); display: flex; gap: 8px; align-items: center; }
.col-title i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.col-count { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--ink-mute); }
.col-list { display: grid; gap: 12px; }
.col-empty { border: 1px dashed var(--line); border-radius: 12px; padding: 22px; text-align: center; color: var(--ink-mute); font-size: 13px; }

.ticket { --bar: var(--ok); background: var(--card); border-radius: 14px; padding: 18px 14px 12px; overflow: hidden; position: relative; box-shadow: 0 10px 24px -18px #000; }
.ticket::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--bar); }
.ticket.amber { --bar: var(--amber); }
.ticket.red { --bar: var(--red); background: linear-gradient(180deg, rgba(255, 90, 78, .09), transparent 60%), var(--card); }
.ticket.fresh { animation: arrive .7s var(--ease), flash 2.4s ease-out; }
@keyframes arrive { from { transform: translateY(-14px) scale(.98); opacity: 0; } }
@keyframes flash { 0%, 30% { box-shadow: 0 0 0 2px var(--amber), 0 0 30px -4px rgba(242, 169, 59, .55); } }
.ticket.leaving { animation: leave .45s var(--ease) forwards; }
@keyframes leave { to { transform: translateX(30px); opacity: 0; } }
.t-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.room { font-family: 'Anton', Impact, sans-serif; font-size: 38px; line-height: .95; letter-spacing: .01em; }
.room small { display: block; font-family: 'DM Sans', sans-serif; font-size: 12.5px; color: var(--ink-soft); font-weight: 500; letter-spacing: 0; margin-top: 4px; }
.timer { font-family: 'JetBrains Mono', monospace; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px; color: var(--ok); }
.timer svg { width: 15px; height: 15px; }
.timer.sched { color: var(--ink-soft); }
.ticket.amber .timer { color: var(--amber); }
.ticket.red .timer { color: var(--red); }
.ticket.red .timer svg { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.t-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; justify-content: flex-end; }
.pill { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--card-2); color: var(--ink-soft); white-space: nowrap; }
.pill.sched { background: rgba(242, 169, 59, .14); color: var(--amber); }
.t-lines { list-style: none; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.t-lines li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 6px; align-items: baseline; }
.q { font-family: 'Anton', Impact, sans-serif; font-size: 22px; line-height: 1; }
.ln { font-size: 15px; font-weight: 600; line-height: 1.3; }
.note { display: block; font-size: 12.5px; font-style: italic; color: var(--amber); font-weight: 500; margin-top: 2px; }
.t-foot { display: flex; gap: 8px; margin-top: 14px; align-items: center; }
.bump { flex: 1; border: 0; border-radius: 10px; padding: 12px 14px; font-weight: 800; font-size: 14px; letter-spacing: .04em; background: var(--ink); color: var(--bg); display: flex; justify-content: space-between; align-items: center; gap: 8px; transition: transform .12s; }
.bump:active { transform: scale(.98); }
.bump svg { width: 16px; height: 16px; }
.bump.go { background: var(--brand); color: #fff; }
.bump.done { background: var(--ok); color: #0f2117; }
.ref { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-mute); }

.toast { position: fixed; left: 50%; top: 84px; transform: translate(-50%, -16px); background: var(--ink); color: var(--bg); border-radius: 12px; padding: 12px 16px; font-weight: 700; font-size: 14px; display: flex; gap: 14px; align-items: center; opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--ease); z-index: 40; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { border: 0; background: var(--bg); color: var(--ink); border-radius: 8px; padding: 6px 10px; font-weight: 800; font-size: 12.5px; }
.toast .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); flex: none; }

@media (max-width: 1180px) {
    .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .col { min-height: 0; }
    .tabs { justify-content: flex-start; }
}
@media (max-width: 760px) {
    .top { flex-wrap: wrap; padding: 12px 16px; gap: 12px; }
    .brand { flex: 1; }
    .tabs { order: 3; flex-basis: 100%; }
    .live { display: none; }
    .stats { padding: 12px 16px 0; gap: 8px; }
    .stat { min-width: 0; flex: 1 1 calc(50% - 8px); padding: 8px 12px; }
    .stat-v { font-size: 20px; }
    .legend { margin: 4px 0 0; flex-basis: 100%; }
    .board { grid-template-columns: minmax(0, 1fr); padding: 12px 16px 70px; }
    .toast { top: auto; bottom: 50px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
