/* "Gece Servisi": the look of every screen, a tactical HUD with sharp edges. Rules and tokens: docs/analysis/23. */
@font-face { font-family: "Chakra Petch"; font-weight: 500; font-display: swap; src: url(/ui/chakra-500-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-display: swap; src: url(/ui/chakra-700-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Chakra Petch"; font-weight: 500; font-display: swap; src: url(/ui/chakra-500-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-display: swap; src: url(/ui/chakra-700-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0; }

:root {
  --bg: #090d13; --bg-2: #0f151e; --panel: #121a24; --panel-2: #1b2531; --panel-3: #263241; --edge: #33445a; --edge-hi: #4d647f;
  --ink: #f1f5f9; --ink-2: #9fb0c2;
  --acc: #ffb800; --acc-d: #2b1f00; /* the one accent: action, XP, rank */
  --new: #ffb800; --cook: #38bdf8; --ready: #2fe38c; --late: #ff4d5e; /* status only */
  --c: 12px; --cut: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
  --num: "Chakra Petch", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font: 500 16px/1.35 "Chakra Petch", system-ui, "Segoe UI", Roboto, sans-serif;
  background:
    linear-gradient(#ffffff06 1px, transparent 1px) 0 0 / 100% 28px,
    linear-gradient(90deg, #ffffff06 1px, transparent 1px) 0 0 / 28px 100%,
    radial-gradient(ellipse 90% 340px at 50% 0, #1a2636, transparent) no-repeat, var(--bg);
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
h2 { font-size: 15px; font-weight: 700; letter-spacing: .05em; margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; color: var(--ink); }
h2 .icon { color: var(--acc); }
main { padding: 12px 14px 40px; max-width: 1320px; margin: auto; }
.muted { color: var(--ink-2); font-size: 14px; font-weight: 500; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.hidden { display: none !important; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: square; stroke-linejoin: miter; vertical-align: -0.2em; }

/* The shadow trial's warning: on every screen, always. */
#test { color: #fff; padding: 2px 12px; font-size: 12px; font-weight: 700; text-align: center; letter-spacing: .09em; background: repeating-linear-gradient(-45deg, #8f1d28 0 10px, #5e121a 10px 20px); }
#conn.ok { height: 2px; font-size: 0; background: var(--ready); }
#conn.bad { display: block; padding: 6px 12px; font-weight: 700; text-align: center; background: var(--late); color: #1c0306; }

/* Sharp-cornered panels: an edge colour behind, the fill inset by a hair. */
.ticket, .plate, .quest, section.cat, .multi, .toast { position: relative; isolation: isolate; background: var(--edge-color, var(--edge)); clip-path: var(--cut); }
.ticket::before, .plate::before, .quest::before, section.cat::before, .multi::before, .toast::before { content: ""; position: absolute; inset: 1px; background: var(--fill, var(--panel)); clip-path: var(--cut); z-index: -1; }

/* Buttons: one cut corner, and they lock in when pressed. */
button { --c: 8px; font: inherit; font-weight: 700; color: var(--ink); background: var(--panel-3); border: 0; padding: 9px 14px; min-height: 48px; cursor: pointer; clip-path: var(--cut); transition: transform .05s, filter .05s; touch-action: manipulation; letter-spacing: .01em; }
button:active:not(:disabled) { transform: translateY(1px); filter: brightness(1.3); }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--cook); outline-offset: -2px; }
button.primary { background: var(--acc); color: var(--acc-d); }
button.go { background: var(--ready); color: #02241a; }
button.cook { background: var(--cook); color: #03202f; }
button.on { background: var(--ink); color: var(--bg); }
button.quiet { background: var(--panel-2); color: var(--ink-2); min-height: 40px; padding: 5px 10px; box-shadow: inset 0 0 0 1px var(--edge); }
button.danger { background: var(--late); color: #1c0306; }

input, select, textarea { font: inherit; font-weight: 500; padding: 10px; color: var(--ink); background: #0b1118; border: 1px solid var(--edge); border-radius: 0; max-width: 100%; }
input::placeholder, textarea::placeholder { color: var(--ink-2); }

/* HUD */
.hud { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 7px 12px; background: var(--bg-2); border-bottom: 1px solid var(--edge); flex-wrap: wrap; }
.hud h1 { font-size: 18px; font-weight: 700; line-height: 1.1; }
.hud .where { font-size: 11px; color: var(--acc); font-weight: 700; letter-spacing: .16em; }
.rank { display: flex; align-items: center; gap: 9px; min-width: 150px; flex: 1 1 160px; max-width: 360px; }
.crest { flex: none; width: 40px; height: 40px; display: grid; place-items: center; font-family: var(--num); font-size: 20px; font-weight: 700; color: var(--acc-d); background: var(--acc); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.rank .title { font-size: 12px; font-weight: 700; display: flex; justify-content: space-between; gap: 6px; white-space: nowrap; letter-spacing: .04em; margin-bottom: 3px; }
.rank .title span { color: var(--ink-2); font-family: var(--num); font-variant-numeric: tabular-nums; }
.meter { position: relative; height: 8px; background: #05080c; overflow: hidden; }
.meter i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--v, 0)); background: var(--acc); transition: transform .5s cubic-bezier(.2, .9, .3, 1); }
.meter::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 9px, #05080c 9px 11px); }
.stat { --c: 6px; display: flex; align-items: center; gap: 6px; padding: 4px 10px; min-height: 36px; background: var(--panel-2); clip-path: var(--cut); font-family: var(--num); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat small { color: var(--ink-2); font-size: 11px; font-weight: 500; letter-spacing: .03em; }
.stat.hot { background: var(--late); color: #1c0306; }
.stat.hot small { color: #3c0a10; }
.light { width: 9px; height: 9px; background: var(--ready); flex: none; transform: rotate(45deg); }
.light.off { background: var(--late); }
.sound { min-height: 38px; min-width: 42px; padding: 2px 8px; background: var(--panel-2); color: var(--ink-2); display: inline-grid; place-items: center; }
@media (max-width: 520px) { .hud { position: static; padding: 6px 10px; gap: 8px; } .rank { order: 9; flex-basis: 100%; max-width: none; } }

/* Mission cards */
.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; align-items: start; }
.ticket { --tone: var(--edge-hi); display: flex; flex-direction: column; gap: 9px; padding: 12px 12px 12px 15px; }
.ticket::after { content: ""; position: absolute; left: 1px; top: 1px; bottom: 13px; width: 4px; background: var(--tone); }
.ticket .top { display: flex; align-items: center; gap: 10px; }
.table-no { --c: 8px; flex: none; display: grid; place-items: center; min-width: 52px; height: 52px; padding: 0 8px; font-family: var(--num); font-size: 28px; font-weight: 700; color: var(--bg); background: var(--tone, var(--acc)); clip-path: var(--cut); font-variant-numeric: tabular-nums; }
.ticket h3 { font-size: 18px; font-weight: 700; line-height: 1.1; }
.ticket .sub { font-size: 13px; color: var(--ink-2); font-weight: 500; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.ticket ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.ticket li { font-size: 19px; font-weight: 700; line-height: 1.2; }
.ticket li b { color: var(--tone); font-family: var(--num); margin-right: 4px; }
.ticket li em { display: block; font-style: normal; font-size: 15px; color: var(--cook); font-weight: 700; }
.ticket > button { min-height: 56px; font-size: 17px; }
.ticket.new { --tone: var(--new); --edge-color: #6b5210; --fill: #17150f; }
.ticket.preparing, .ticket.accepted { --tone: var(--cook); --edge-color: #1f5673; --fill: #0f1a24; }
.ticket.ready { --tone: var(--ready); --edge-color: #17694a; --fill: #0e1c18; }
.ticket.late { --tone: var(--late); --edge-color: var(--late); --fill: #1f0f13; }
.ticket.late::after { animation: blink 1.2s steps(2, jump-none) infinite; }
.ticket.late .flame { display: inline-flex; color: var(--late); }
.flame { display: none; }
.timer { display: flex; align-items: center; gap: 8px; }
.timer .digits { font-family: var(--num); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 66px; letter-spacing: .02em; }
.timer .meter { flex: 1; }
.timer .meter i { background: var(--ready); transition: transform .9s linear; }
.timer.warm .meter i { background: var(--acc); }
.timer.warm .digits { color: var(--acc); }
.timer.late .meter i { background: var(--late); }
.timer.late .digits { color: var(--late); }

.lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.lane { border-top: 2px solid var(--edge-hi); background: #0d131b; padding: 10px; min-height: 240px; }
.lane.l-new { border-top-color: var(--new); } .lane.l-cook { border-top-color: var(--cook); } .lane.l-ready { border-top-color: var(--ready); }
.lane > h2 { margin: 2px 2px 12px; justify-content: space-between; letter-spacing: .08em; }
.lane > h2 > span:first-child { display: flex; align-items: center; gap: 8px; }
.lane .tickets { grid-template-columns: 1fr; }
.count { font-family: var(--num); background: var(--panel-3); color: var(--ink); padding: 0 8px; font-size: 15px; font-variant-numeric: tabular-nums; }
.empty { display: grid; place-items: center; text-align: center; padding: 26px 10px; color: var(--ink-2); font-weight: 500; font-size: 14px; }
.empty .icon { width: 30px; height: 30px; margin-bottom: 6px; color: var(--edge-hi); }
@media (max-width: 820px) { .lanes { grid-template-columns: 1fr; } .lane { min-height: 0; } }

/* Floor: tables as pieces on a board */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 84px; padding: 6px 4px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--edge); font-family: var(--num); font-size: 24px; font-weight: 700; line-height: 1.1; }
.tile small { font-family: "Chakra Petch", system-ui, sans-serif; font-size: 11px; font-weight: 500; color: var(--ink-2); letter-spacing: .03em; }
.tile .ico { font-size: 15px; line-height: 1; min-height: 17px; }
.tile.empty { color: var(--ink-2); display: flex; padding: 6px 4px; }
.tile.waiting { background: #2a1015; color: var(--late); box-shadow: inset 0 0 0 2px var(--late); animation: blink 1.2s steps(2, jump-none) infinite; }
.tile.seated { background: #1b2531; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-2); }
.tile.cooking { background: #0f2230; color: var(--cook); box-shadow: inset 0 0 0 2px var(--cook); }
.tile.ready { background: #0d2a20; color: var(--ready); box-shadow: inset 0 0 0 2px var(--ready); animation: blink 1.2s steps(2, jump-none) infinite; }
.tile.waiting small, .tile.seated small, .tile.cooking small, .tile.ready small { color: inherit; }
.tile.small { min-height: 58px; font-size: 16px; pointer-events: none; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; }
.c-empty { background: var(--panel-3); } .c-waiting { background: var(--late); } .c-seated { background: var(--ink-2); } .c-cooking { background: var(--cook); } .c-ready { background: var(--ready); }
.guests { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.guests button { padding: 4px; min-height: 52px; font-family: var(--num); font-size: 20px; }

/* Order entry */
.cats { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; margin: 8px 0 4px; scrollbar-width: thin; }
.cats button { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 6px; background: var(--panel-2); }
.cats button.on { background: var(--acc); color: var(--acc-d); }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 8px; }
.items button { position: relative; text-align: left; min-height: 84px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; font-size: 15px; background: var(--panel-2); }
.items .price { color: var(--acc); font-family: var(--num); font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.items .qty { position: absolute; top: 0; right: 0; min-width: 28px; height: 28px; padding: 0 6px; display: grid; place-items: center; font-family: var(--num); font-weight: 700; background: var(--ready); color: #02241a; }
.bar { position: sticky; bottom: 0; z-index: 15; margin: 14px -14px -40px; padding: 10px 14px 14px; background: var(--bg-2); border-top: 2px solid var(--acc); max-height: 48vh; overflow-y: auto; }
.tray { display: grid; gap: 5px; margin-bottom: 8px; }
.tray .row { flex-wrap: nowrap; font-weight: 700; }
.tray button { min-height: 36px; min-width: 40px; padding: 0 8px; }
.bar input { flex: 1 1 130px; min-width: 110px; }
.bar #send { flex: 2 1 170px; min-height: 56px; font-size: 18px; }
.total { font-family: var(--num); font-size: 19px; font-weight: 700; color: var(--acc); font-variant-numeric: tabular-nums; }
.items .name, .clip { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; overflow-wrap: anywhere; }
.clip { -webkit-line-clamp: 2; }
.multi { --fill: var(--panel); grid-column: 1 / -1; padding: 10px; font-size: 15px; font-weight: 700; }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; margin-top: 8px; }
.items .sizes button { min-height: 58px; padding: 5px 8px; gap: 2px; background: var(--panel-3); }
.row.size { flex-wrap: nowrap; margin-bottom: 4px; }
.row.size .label { width: 74px; min-width: 60px; }
.search { width: 100%; margin-top: 10px; font-size: 17px; }
.tray .line { display: grid; gap: 4px; }
.tray .note { width: 100%; font-size: 14px; padding: 7px 10px; }
.tray .quiet { min-height: 36px; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.items .empty { grid-column: 1 / -1; }

/* Guest screen and table codes */
.guest-status { --c: 8px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 10px; font-weight: 700; background: #17150f; color: var(--acc); clip-path: var(--cut); box-shadow: inset 0 0 0 1px #6b5210; }
.guest-status.open { background: #0e1c18; color: var(--ready); box-shadow: inset 0 0 0 1px #17694a; }
.guest-status.closed { background: #1f0f13; color: var(--late); box-shadow: inset 0 0 0 1px var(--late); }
.items .desc { font-weight: 500; font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.items .view-only { padding: 10px 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--edge); display: flex; flex-direction: column; gap: 4px; font-size: 15px; font-weight: 700; }
.items .view-only .sizes-text { color: var(--acc); font-family: var(--num); font-size: 14px; }
.my-orders li { display: grid; gap: 2px; }
.order-state { font-size: 13px; font-weight: 700; color: var(--cook); }
.order-state.held { color: var(--acc); } .order-state.ready, .order-state.served { color: var(--ready); } .order-state.declined { color: var(--late); }
.ticket .held { padding: 8px 10px; background: #0b1118; display: grid; gap: 6px; }
.ticket .held li { font-size: 16px; }
@media print {
  #test, #hud, #conn, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .codes { grid-template-columns: repeat(3, 1fr); }
  .code { break-inside: avoid; clip-path: none; color: #000; }
  .code::before { background: #fff; }
}

/* Salesperson page */
.stack { display: grid; gap: 10px; }
.stack input { width: 100%; }
.stack label { font-size: 13px; color: var(--ink-2); margin-bottom: -6px; }
.narrow { max-width: 460px; margin: 12px auto; }
.wide { width: 100%; }
.big-btn { min-height: 56px; font-size: 17px; }
a.btn-link { --c: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px; min-height: 40px; font-weight: 700; color: var(--ink); background: var(--panel-3); text-decoration: none; clip-path: var(--cut); }
a.btn-link.primary { background: var(--acc); color: var(--acc-d); min-height: 56px; }
.plate.stack { --fill: var(--panel); }
.plate.stack > h2 { font-size: 17px; color: var(--ink); letter-spacing: .02em; margin: 0; }

/* Status page */
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 12px; }
.code { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; }
.code h3 { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.code h3 .icon { color: var(--acc); }
.qr { width: 100%; max-width: 230px; }
#health { margin-bottom: 14px; }

/* Owner's deck */
.deck { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; }
.plate { --fill: var(--panel); grid-column: span 3; padding: 12px; min-width: 0; }
.plate.w4 { grid-column: span 4; } .plate.w6 { grid-column: span 6; } .plate.w8 { grid-column: span 8; } .plate.w12 { grid-column: span 12; }
.plate h2 { margin: 0 0 8px; font-size: 11px; color: var(--ink-2); letter-spacing: .12em; }
.big { font-family: var(--num); font-size: 34px; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; }
.big.gold { color: var(--acc); } .big.mint { color: var(--ready); } .big.chili { color: var(--late); } .big.sky { color: var(--cook); }
.stars { font-size: 20px; letter-spacing: 3px; color: var(--acc); white-space: nowrap; }
.stars .off { color: #ffffff24; }
.hero { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero .crest { width: 72px; height: 72px; font-size: 34px; }
.hero .big { font-size: 30px; }
.hero .meter { margin-top: 6px; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.badge { --c: 8px; text-align: center; padding: 10px 4px; clip-path: var(--cut); background: var(--panel-2); font-size: 12px; color: var(--ink-2); }
.badge .icon { display: block; margin: 0 auto 5px; width: 24px; height: 24px; opacity: .35; }
.badge.won { background: var(--acc); color: var(--acc-d); font-weight: 700; }
.badge.won .icon { opacity: 1; }
.chart { display: flex; align-items: flex-end; gap: 5px; height: 110px; }
.chart div { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; font-family: var(--num); font-size: 11px; color: var(--ink-2); }
.chart i { display: block; width: 100%; max-width: 40px; height: 72px; transform-origin: bottom; transform: scaleY(var(--v, 0)); background: var(--acc); }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; max-height: 240px; overflow-y: auto; }
.feed li { display: flex; gap: 8px; align-items: baseline; }
.feed .icon { color: var(--ink-2); align-self: center; }
.feed time { color: var(--ink-2); font-family: var(--num); font-variant-numeric: tabular-nums; font-size: 12px; flex: none; }
@media (max-width: 820px) { .plate, .plate.w4 { grid-column: span 6; } .plate.w6, .plate.w8 { grid-column: span 12; } }

/* Report and review */
.quests { display: grid; gap: 6px; list-style: none; padding: 0; margin: 0; }
.quest { --c: 8px; --fill: var(--panel); display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-weight: 700; }
.quest .mark { --c: 6px; flex: none; width: 32px; height: 32px; display: grid; place-items: center; background: var(--panel-3); clip-path: var(--cut); }
.quest.pass .mark { background: var(--ready); color: #02241a; }
.quest.fail .mark { background: var(--late); color: #1c0306; }
.quest.warning .mark { background: var(--acc); color: var(--acc-d); }
.quest.error .mark { background: var(--late); color: #1c0306; }
.quest .grow { display: flex; flex-direction: column; }
.quest .table-no { min-width: 40px; height: 40px; font-size: 20px; }
.quest .grow .muted { font-size: 12px; }
.pass { color: var(--ready); font-weight: 700; }
.fail { color: var(--late); font-weight: 700; }
.error { color: var(--late); }
.warning { color: var(--acc); }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
td, th { border-bottom: 1px solid var(--edge); padding: 7px 6px; text-align: left; vertical-align: middle; }
td input { width: 100%; min-width: 74px; }
section.cat { --fill: var(--panel); margin-top: 10px; padding: 10px 12px 14px; }
section.cat h2 { margin: 0 0 8px; flex-wrap: wrap; }
section.cat h2 input { flex: 1 1 150px; font-weight: 700; }
textarea { width: 100%; margin: 8px 0; }

/* Pop-ups never take taps: staff have full hands (docs/analysis/23 §1). */
#fx { position: fixed; inset: 0; z-index: 50; pointer-events: none; overflow: hidden; }
#toasts { position: absolute; top: 62px; left: 50%; width: min(420px, 94vw); transform: translateX(-50%); display: grid; gap: 6px; }
.toast { --fill: #1f2a37; --tone: var(--acc); display: flex; align-items: center; gap: 10px; padding: 9px 14px; font-weight: 700; line-height: 1.15; animation: toast 3.2s both; }
.toast::after { content: ""; position: absolute; left: 1px; top: 1px; bottom: 13px; width: 4px; background: var(--tone); }
.toast .icon { width: 22px; height: 22px; color: var(--tone); }
.toast small { display: block; font-weight: 500; font-size: 13px; color: var(--ink-2); }
.toast.alert { --tone: var(--late); --edge-color: var(--late); }
.toast.good { --tone: var(--ready); --edge-color: var(--ready); }
.moment { position: absolute; top: 34%; left: 0; right: 0; text-align: center; padding: 16px; background: #0d131bf2; border-top: 2px solid var(--acc); border-bottom: 2px solid var(--acc); animation: moment 2s both; }
.moment .icon { display: block; margin: 0 auto 4px; width: 38px; height: 38px; color: var(--acc); }
.moment b { display: block; font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: .03em; }
.moment small { font-size: 14px; color: var(--ink-2); }
.float { position: fixed; z-index: 51; font-family: var(--num); font-size: 19px; font-weight: 700; color: var(--acc); background: #090d13d9; padding: 0 5px; animation: rise 1s ease-out both; }
.sweep { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--acc); animation: sweep .7s linear both; }

.enter { animation: enter .22s cubic-bezier(.2, .8, .3, 1) both; }
.shake { animation: jolt .4s steps(4); }
@keyframes enter { from { opacity: 0; transform: translateX(-14px); } }
@keyframes blink { 50% { opacity: .62; } }
@keyframes jolt { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes toast { 0% { opacity: 0; transform: translateX(-14px); } 6%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes moment { 0% { opacity: 0; transform: scaleY(.1); } 8%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes rise { to { opacity: 0; transform: translateY(-56px); } }
@keyframes sweep { from { transform: translateY(0); opacity: 1; } to { transform: translateY(100vh); opacity: .2; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .toast, .moment { animation: none; }
  .sweep, .float { display: none; }
}
