/* Short Order — a team inbox that runs like a line kitchen ticket rail. */

@font-face { font-family: "Oswald"; src: url("assets/oswald.ttf") format("truetype"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("assets/ibm-plex-mono.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url("assets/dm-serif.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --wall: #15181a;
  --grout: #212629;
  --steel-hi: #f3f5f6;
  --steel: #c3c9cd;
  --steel-lo: #8d969c;
  --paper: #fbf7ec;
  --paper-2: #f2ecdc;
  --ink: #1f1d1a;
  --ink-soft: #5b564c;
  --red: #c8281f;
  --neon: #ff4b3e;
  --todo: #2c5bb8;
  --fire: #c45a0c;
  --block: #c8281f;
  --done: #237a42;
  --focus: #ffcc33;
  --sign: "Oswald", "Arial Narrow", Impact, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --script: "DM Serif Display", Georgia, serif;
  --tooth: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.5;
  background-color: var(--wall);
  background-image:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(255, 150, 60, .16), transparent 70%),
    linear-gradient(var(--grout) 2px, transparent 2px),
    linear-gradient(90deg, var(--grout) 2px, transparent 2px);
  background-size: 100% 100%, 64px 32px, 64px 32px;
  background-attachment: fixed, scroll, scroll;
}

button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--focus); color: var(--ink); padding: 8px 14px; font-family: var(--sign);
  text-decoration: none; border-radius: 4px;
}
.skip:focus { top: 12px; }

/* ---------- The hood (header) ---------- */
.hood {
  color: var(--ink);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, var(--steel-hi), var(--steel) 55%, #aeb6bb);
  border-bottom: 6px solid #6f787e;
  box-shadow: 0 10px 30px rgba(0,0,0,.55);
  position: relative;
  overflow-x: clip; /* the bell's "Ding!" and rivets never widen the page */
}
.hood::after { /* rivets */
  content: ""; position: absolute; inset: auto 0 10px 0; height: 6px; pointer-events: none;
  background: radial-gradient(circle, #7a8389 2px, transparent 2.5px) 0 0 / 48px 6px repeat-x;
  opacity: .5;
}
.hood__inner {
  max-width: 1380px; margin: 0 auto; padding: 18px 28px 10px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: end;
}

.brand { margin: 0; font-weight: 400; min-width: 0; }
.brand__sign {
  margin: 0; display: inline-block; white-space: nowrap;
  background: #1a1a1c; padding: 4px 18px 8px; border-radius: 10px;
  border: 3px solid #3a3d40; box-shadow: inset 0 0 18px rgba(0,0,0,.8), 0 2px 0 #fff8;
  font-family: var(--script); font-size: 42px; line-height: 1.05; letter-spacing: .01em;
  color: #ffe2dc;
  text-shadow: 0 0 2px #fff, 0 0 8px var(--neon), 0 0 18px var(--neon), 0 0 36px rgba(255,75,62,.6);
  transform: rotate(-2deg);
}
.brand__sign span:last-child { font-style: italic; }
.brand__tag {
  display: block; margin: 8px 0 0; font-family: var(--sign); font-size: 15px; font-weight: 600; letter-spacing: .14em;
  line-height: 1.3; text-transform: uppercase; color: #22282c;
}
.brand__motto { font-weight: 400; color: #3d454a; }

.controls { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(200px, 270px); gap: 16px; max-width: 760px; justify-self: center; width: 100%; }
.field label, .expo__label {
  display: block; font-family: var(--sign); font-size: 13px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; margin-bottom: 5px; color: #22282c;
}
.field__box {
  position: relative; display: flex; align-items: center;
  background: var(--paper); border: 2px solid #22282c; border-radius: 6px;
  box-shadow: inset 0 2px 0 rgba(0,0,0,.08), 0 2px 0 rgba(255,255,255,.6);
}
.field__box:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 5px #22282c; }
.field__box input, .field__box select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; width: 100%;
  padding: 11px 12px; font-size: 16px; color: var(--ink); min-height: 46px;
}
.field__box input:focus-visible, .field__box select:focus-visible { outline: none; }
.field__box input { padding-left: 40px; padding-right: 38px; }
.field__box input::placeholder { color: #8a8273; }
.field__box input::-webkit-search-cancel-button { cursor: pointer; }
.field__icon { position: absolute; left: 12px; width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.field__kbd {
  position: absolute; right: 10px; font-family: var(--mono); font-size: 12px; color: var(--ink-soft);
  border: 1px solid #b8b0a0; border-bottom-width: 2px; border-radius: 4px; padding: 0 6px; pointer-events: none;
}
.field__box input:not(:placeholder-shown) ~ .field__kbd { display: none; }
.field__box--select::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); pointer-events: none;
}
.field__box select { padding-right: 38px; cursor: pointer; }

/* Service bell */
.bell {
  position: relative; display: grid; justify-items: center; gap: 2px;
  background: none; border: 0; padding: 4px 8px; cursor: pointer; border-radius: 8px; color: var(--ink);
}
.bell svg { width: 64px; height: 48px; overflow: visible; }
.bell__base { fill: #2b2f33; }
.bell__dome { fill: #c9a24a; stroke: #8a6a22; stroke-width: 1.5; }
.bell__stem { fill: #555b60; }
.bell__shine { fill: none; stroke: #fff6d0; stroke-width: 3; stroke-linecap: round; opacity: .8; }
.bell__label { font-family: var(--sign); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.bell[aria-pressed="false"] .bell__dome { fill: #9aa0a4; stroke: #6c7276; }
.bell__ding {
  position: absolute; top: -6px; right: -26px; font-family: var(--script); font-size: 22px; color: var(--red);
  transform: scale(0) rotate(-12deg); opacity: 0; pointer-events: none;
}
.bell.is-ringing svg { animation: ring .7s ease-out; transform-origin: 50% 90%; }
.bell.is-ringing .bell__ding { animation: ding 1.2s ease-out; }
@keyframes ring { 0%,100% { transform: rotate(0) } 15% { transform: rotate(-14deg) } 30% { transform: rotate(11deg) } 45% { transform: rotate(-7deg) } 60% { transform: rotate(4deg) } }
@keyframes ding { 0% { transform: scale(0) rotate(-12deg); opacity: 0 } 20% { transform: scale(1.25) rotate(-12deg); opacity: 1 } 70% { opacity: 1 } 100% { transform: scale(1) translateY(-14px) rotate(-12deg); opacity: 0 } }

/* Station board (status shortcuts) */
.board, .tape { max-width: 1380px; margin: 0 auto; padding: 0 28px; }
.board__list { position: relative; list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.station {
  position: relative; /* keeps its visually-hidden count inside the scrolling board */
  width: 100%; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  text-align: left; cursor: pointer; padding: 8px 12px 8px 10px;
  background: #222629; color: #f4efe2; border: 0; border-radius: 6px; border-top: 5px solid var(--c, #888);
  box-shadow: inset 0 0 0 1px #000, 0 3px 0 #555d62;
  transition: transform .12s ease, box-shadow .12s ease;
}
.station:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px #000, 0 5px 0 #555d62; }
.station[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 2px var(--c, #222), 0 1px 0 #555d62; transform: translateY(2px); }
.station__n { grid-row: span 2; font-family: var(--sign); font-weight: 600; font-size: 30px; line-height: 1; min-width: 1.4ch; text-align: center; color: var(--c-text, inherit); }
.station[aria-pressed="true"] .station__n { color: var(--c, var(--ink)); }
.station[data-value="all"][aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink), 0 1px 0 #555d62; }
.station[data-value="all"][aria-pressed="true"] .station__n { color: var(--ink); }
.station__name { font-family: var(--sign); font-size: 16px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; }
.station__plain { font-size: 12px; opacity: .8; line-height: 1.2; }

.tape {
  display: flex; align-items: stretch; gap: 0; margin-top: 12px; padding-bottom: 22px;
}
.tape__head {
  font-family: var(--sign); text-transform: uppercase; letter-spacing: .16em; font-size: 12px;
  background: #22282c; color: var(--paper); padding: 6px 10px; border-radius: 4px 0 0 4px; display: flex; align-items: center;
}
.tape__roll {
  list-style: none; margin: 0; padding: 6px 12px; flex: 1; min-width: 0;
  background: var(--paper); color: var(--ink); font-size: 13px; border-radius: 0 4px 4px 0;
  display: flex; gap: 22px; overflow: hidden; white-space: nowrap;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.08);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.tape__roll li { flex: none; }
.tape__roll li:first-child { font-weight: 700; }
.tape__roll li + li::before { content: "✂ "; color: #a49c8a; }
.tape__roll li.is-new { animation: feed .5s ease-out; }
@keyframes feed { from { transform: translateX(-30px); opacity: 0 } to { transform: none; opacity: 1 } }

/* ---------- The line (main) ---------- */
.line { max-width: 1380px; margin: 0 auto; padding: 22px 28px 40px; outline: none; overflow-x: clip; }
.line__summary { margin: 0 0 14px; font-size: 13px; color: #c9c1ae; letter-spacing: .04em; }
.line__summary strong { color: var(--paper); font-weight: 400; }

.rails { display: grid; gap: 30px; }
.rails[hidden] { display: none; }
.rail { display: grid; grid-template-columns: 190px 1fr; gap: 22px; align-items: start; --c: var(--todo); }
.rail--in-progress { --c: var(--fire); }
.rail--blocked { --c: var(--block); }
.rail--done { --c: var(--done); }
.rail[hidden] { display: none; }

.rail__sign {
  position: sticky; top: 12px;
  background: #0f1112; border: 3px solid #2d3236; border-left: 8px solid var(--c);
  border-radius: 6px; padding: 12px 14px 14px; color: var(--paper);
  box-shadow: 0 8px 18px rgba(0,0,0,.45);
}
.rail__sign h2 { margin: 0; line-height: 1; }
.rail__name { display: block; font-family: var(--sign); font-weight: 600; text-transform: uppercase; font-size: 30px; letter-spacing: .03em; }
.rail__plain { display: block; font-family: var(--mono); font-size: 13px; font-weight: 400; margin-top: 6px; color: #e3dccb; }
.rail__count { margin: 10px 0 0; font-family: var(--sign); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-light, #fff); }
.rail--todo { --c-light: #8fb2ff; }
.rail--in-progress { --c-light: #ffad6b; }
.rail--blocked { --c-light: #ff8a80; }
.rail--done { --c-light: #7fdc9c; }
.rail__note { margin: 4px 0 0; font-size: 12.5px; color: #b9b2a2; line-height: 1.35; }

.rail__track { position: relative; padding-top: 6px; min-height: 120px; }
.rail__track::before { /* the stainless rail */
  content: ""; position: absolute; left: -10px; right: 0; top: 0; height: 16px; border-radius: 8px;
  background: linear-gradient(180deg, #fbfcfc, #b6bec3 45%, #e9ecee 60%, #7f888e);
  box-shadow: 0 4px 8px rgba(0,0,0,.6), inset 0 -1px 0 #6a7378;
}
.rail__tickets {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(196px, 100%), 1fr)); gap: 26px 20px; align-items: start;
}
.rail__none {
  margin: 30px 0 0; padding: 14px 16px; border: 2px dashed #3b4247; border-radius: 6px; color: #b9b2a2; font-size: 13px; max-width: 420px;
}

/* ---------- Tickets ---------- */
.tkt-wrap {
  --tilt: 0deg;
  position: relative; padding-top: 4px;
  transform: rotate(var(--tilt)); transform-origin: 50% 0;
  filter: drop-shadow(0 6px 6px rgba(0,0,0,.5));
  transition: transform .25s cubic-bezier(.3,1.6,.5,1);
}
.tkt-wrap::before { /* the clip that holds the ticket on the rail */
  content: ""; position: absolute; z-index: 2; left: 50%; top: -6px; width: 40px; height: 18px; margin-left: -20px;
  border-radius: 4px 4px 8px 8px;
  background: linear-gradient(180deg, #e7eaec, #9aa3a8);
  box-shadow: inset 0 -2px 0 #6c757a, 0 1px 1px rgba(0,0,0,.4);
}
.tkt-wrap:hover, .tkt-wrap:focus-within { transform: rotate(0deg) translateY(5px); z-index: 3; }
.tkt-wrap.is-moved .tkt { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 30% { background-color: #fff2a8; } 100% { background-color: var(--paper); } }

.tkt {
  position: relative; margin-bottom: var(--tooth);
  background: var(--paper); color: var(--ink);
  padding: 20px 14px 12px;
  overflow-wrap: anywhere;
}
.tkt::after { /* torn tear-off edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(var(--tooth) * -1 + 1px); height: var(--tooth);
  background:
    linear-gradient(135deg, var(--paper) 50%, transparent 50%) 0 0 / var(--tooth) var(--tooth) repeat-x,
    linear-gradient(-135deg, var(--paper) 50%, transparent 50%) 0 0 / var(--tooth) var(--tooth) repeat-x;
}
.tkt__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12.5px; }
.tkt__no { font-family: var(--sign); font-weight: 600; font-size: 22px; line-height: 1; letter-spacing: .02em; }
.tkt__heat { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.tkt__heat b { color: var(--red); font-weight: 400; letter-spacing: -.1em; margin-right: .2em; }
.tkt__table { margin: 2px 0 0; font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.tkt hr, .cut { border: 0; border-top: 2px dashed #b9b09c; margin: 10px 0; }
.tkt__title { margin: 0; font-family: var(--sign); font-weight: 500; font-size: 19px; line-height: 1.22; }
.tkt__open {
  all: unset; cursor: pointer; display: inline; color: var(--ink);
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; text-decoration-thickness: 2px;
}
.tkt__open::after { content: ""; position: absolute; inset: 0 0 calc(var(--tooth) * -1) 0; z-index: 1; }
.tkt-wrap:hover .tkt__open { text-decoration-color: var(--c, var(--ink)); }
.tkt__open:focus-visible { outline: none; }
.tkt__open:focus-visible::after { outline: 4px solid var(--focus); outline-offset: 4px; border-radius: 2px; }
.tkt__qty { color: var(--ink-soft); font-family: var(--mono); font-size: 14px; font-weight: 400; margin-right: .35em; }
.tkt__mods { list-style: none; margin: 6px 0 0; padding: 0 0 0 1.6em; font-size: 12.5px; color: #3e3a33; }
.tkt__mods li::before { content: "+ "; }
.tkt__meta { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; font-size: 12.5px; }
.tkt__meta dt { text-transform: uppercase; color: var(--ink-soft); letter-spacing: .05em; }
.tkt__meta dd { margin: 0; text-align: right; }
.tkt__pull {
  margin: 10px 0 0; font-family: var(--sign); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); text-align: center;
}
.tkt-wrap:hover .tkt__pull { color: var(--ink); }

.stamp-mini {
  position: absolute; z-index: 0; right: 8px; top: 46px; pointer-events: none;
  font-family: var(--sign); font-weight: 700; font-size: 18px; letter-spacing: .08em; text-transform: uppercase;
  border: 3px solid currentColor; border-radius: 6px; padding: 0 7px; transform: rotate(-11deg);
  opacity: .78; mix-blend-mode: multiply;
}
.tkt--in-progress .stamp-mini { color: var(--fire); }
.tkt--blocked .stamp-mini { color: var(--block); }
.tkt--done .stamp-mini { color: var(--done); }
.tkt--todo .stamp-mini { display: none; }
.tkt--done .tkt__t { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(35,122,66,.7); }
.tkt--done { background-color: #f3efe2; }

.tkt mark { background: #ffe066; color: inherit; padding: 0 1px; border-radius: 2px; }

/* ---------- Empty state ---------- */
.empty {
  margin: 20px auto; max-width: 520px; text-align: center; padding: 34px 26px 30px;
  background: var(--paper); color: var(--ink); border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.5);
  position: relative;
}
.empty__art { width: 150px; height: 100px; }
.empty__rail { fill: #9aa3a8; }
.empty__hook, .empty__mouth { fill: none; stroke: #5b564c; stroke-width: 3; stroke-linecap: round; }
.empty__eye { fill: #5b564c; }
.empty h2 { font-family: var(--sign); font-weight: 600; text-transform: uppercase; font-size: 32px; letter-spacing: .04em; margin: 6px 0 4px; }
.empty p { margin: 0 0 18px; color: var(--ink-soft); }
.empty[hidden] { display: none; }

.btn {
  cursor: pointer; border-radius: 6px; padding: 11px 18px; font-family: var(--sign); letter-spacing: .08em;
  text-transform: uppercase; font-size: 15px; min-height: 44px;
}
.btn--loud { background: var(--red); color: #fff; border: 0; box-shadow: 0 4px 0 #7d1711; }
.btn--loud:hover { background: #b0211a; }
.btn--loud:active { transform: translateY(3px); box-shadow: 0 1px 0 #7d1711; }
.btn--quiet { background: transparent; color: #d9d2c0; border: 1px solid #4a5156; font-size: 13px; }
.btn--quiet:hover { border-color: #9aa3a8; color: #fff; }

.foot {
  max-width: 1380px; margin: 0 auto; padding: 20px 28px 40px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  color: #a39c8c; font-size: 12.5px; border-top: 1px solid #2a3034;
}
.foot p { margin: 0; }

/* ---------- Pulled ticket (detail dialog) ---------- */
.pull {
  border: 0; padding: 26px 16px 36px; background: transparent; color: var(--ink);
  width: min(560px, 100%); max-width: 100%; max-height: 100dvh; max-height: 100vh; overflow: auto;
  overscroll-behavior: contain;
}
.pull:not([open]) { display: none; }
.pull::backdrop { background: rgba(8, 9, 10, .78); backdrop-filter: blur(3px); }
.pull[open] .receipt { animation: print .45s cubic-bezier(.2,.9,.3,1.1); }
@keyframes print { from { transform: translateY(60px) rotate(2deg); opacity: 0; } to { transform: none; opacity: 1; } }

.receipt {
  position: relative; background: var(--paper); color: var(--ink);
  padding: 22px 26px 18px; margin: var(--tooth) 0;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.6));
  background-image:
    linear-gradient(90deg, transparent 0 14px, rgba(0,0,0,.03) 14px 15px, transparent 15px calc(100% - 15px), rgba(0,0,0,.03) calc(100% - 15px) calc(100% - 14px), transparent 0);
}
.receipt::before, .receipt::after {
  content: ""; position: absolute; left: 0; right: 0; height: var(--tooth);
}
.receipt::after {
  bottom: calc(var(--tooth) * -1 + 1px);
  background:
    linear-gradient(135deg, var(--paper) 50%, transparent 50%) 0 0 / var(--tooth) var(--tooth) repeat-x,
    linear-gradient(-135deg, var(--paper) 50%, transparent 50%) 0 0 / var(--tooth) var(--tooth) repeat-x;
}
.receipt::before {
  top: calc(var(--tooth) * -1 + 1px);
  background:
    linear-gradient(45deg, var(--paper) 50%, transparent 50%) 0 0 / var(--tooth) var(--tooth) repeat-x,
    linear-gradient(-45deg, var(--paper) 50%, transparent 50%) 0 0 / var(--tooth) var(--tooth) repeat-x;
}
.receipt__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.receipt__shop { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); }
.close {
  cursor: pointer; background: var(--ink); color: var(--paper); border: 0; border-radius: 999px;
  padding: 9px 16px; font-family: var(--sign); letter-spacing: .08em; text-transform: uppercase; font-size: 14px; min-height: 42px;
}
.close:hover { background: #3a362f; }
.receipt__no { margin-top: 14px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.receipt__no strong { font-family: var(--sign); font-weight: 700; font-size: 54px; line-height: .9; }
.receipt__no span { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.receipt__table { margin: 6px 0 0; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.receipt__title { margin: 0; font-family: var(--sign); font-weight: 500; font-size: 30px; line-height: 1.15; padding-right: 8px; }
.receipt__title .tkt__qty { font-size: 18px; }
.mods { list-style: none; margin: 8px 0 0; padding: 0 0 0 2em; font-size: 14px; }
.mods li::before { content: "+ "; }
.receipt__body { font-size: 15px; line-height: 1.6; }
.receipt__body p { margin: 0 0 12px; }
.receipt__body p:last-child { margin-bottom: 0; }
.receipt__body .outcome { background: var(--paper-2); border-left: 4px solid var(--ink); padding: 8px 12px; }
.receipt__body .outcome b { display: block; font-family: var(--sign); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
.receipt__meta { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 14px; }
.receipt__meta dt { text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.receipt__meta dd { margin: 0; text-align: right; }

.expo { position: relative; z-index: 2; }
.expo__label { color: var(--ink); }
.expo__box { background: #fff; }
.expo__msg { min-height: 1.5em; margin: 10px 0 0; font-size: 14px; }
.expo__msg.is-live {
  background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 4px; animation: pop .35s ease-out;
}
.expo__msg.is-live::before { content: "🛎 "; }
@keyframes pop { from { transform: scale(.94); opacity: 0 } to { transform: none; opacity: 1 } }

.stamp {
  position: absolute; z-index: 1; right: 22px; top: 92px; pointer-events: none;
  font-family: var(--sign); font-weight: 700; font-size: 40px; letter-spacing: .08em; text-transform: uppercase; line-height: 1;
  padding: 6px 14px; border: 5px solid currentColor; border-radius: 10px; transform: rotate(-12deg);
  mix-blend-mode: multiply; opacity: .82;
  color: var(--todo);
}
.stamp[data-s="in-progress"] { color: var(--fire); }
.stamp[data-s="blocked"] { color: var(--block); }
.stamp[data-s="done"] { color: var(--done); }
.stamp.is-slam { animation: slam .45s cubic-bezier(.3,1.5,.5,1); }
@keyframes slam { 0% { transform: scale(2.4) rotate(-20deg); opacity: 0 } 60% { opacity: .9 } 100% { transform: scale(1) rotate(-12deg); opacity: .82 } }

.barcode {
  height: 46px; margin: 18px 0 6px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 var(--a, 2px), transparent 0 var(--b, 5px));
  opacity: .9;
}
.receipt__thanks { margin: 0; text-align: center; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hood__inner { grid-template-columns: 1fr auto; }
  .controls { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; max-width: none; }
  .rail { grid-template-columns: 160px 1fr; }
  .rail__name { font-size: 25px; }
}

@media (max-width: 720px) {
  body { font-size: 14px; }
  .hood__inner { padding: 14px 16px 6px; gap: 12px 10px; }
  .brand__sign { font-size: 32px; padding: 2px 12px 6px; }
  .brand__tag { font-size: 13px; margin-top: 6px; }
  .brand__tag > [aria-hidden], .brand__motto { display: none; }
  .bell svg { width: 50px; height: 38px; }
  .controls { grid-template-columns: 1fr; gap: 10px; }
  .board, .tape { padding: 0 16px; }
  .board__list {
    display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity;
    margin: 6px -16px 0; padding: 4px 16px 8px; scrollbar-width: none;
  }
  .board__list::-webkit-scrollbar { display: none; }
  .board__list li { flex: none; scroll-snap-align: start; }
  .station { padding: 6px 12px 6px 8px; grid-template-rows: auto; min-height: 44px; }
  .station__n { grid-row: auto; font-size: 22px; }
  .station__name { font-size: 14px; white-space: nowrap; }
  .station__plain { display: none; }
  .tape { margin-top: 6px; padding-bottom: 16px; }
  .tape__roll { font-size: 12px; }

  .line { padding: 14px 12px 30px; }
  .line__summary { margin-bottom: 10px; }
  .rails { gap: 26px; }
  .rail { grid-template-columns: 1fr; gap: 14px; }
  .rail__sign { position: static; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 12px; padding: 10px 12px; }
  .rail__name { font-size: 24px; }
  .rail__count { margin: 0; text-align: right; grid-column: 2; grid-row: 1; }
  .rail__note { display: none; }
  .rail__track::before { left: -4px; right: -4px; }
  .rail__tickets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .tkt { padding: 18px 10px 10px; }
  .tkt__no { font-size: 19px; }
  .tkt__title { font-size: 16.5px; }
  .tkt__meta { grid-template-columns: 1fr; }
  .tkt__meta dd { text-align: left; margin-bottom: 3px; }
  .tkt__heat { font-size: 11px; }
  .stamp-mini { font-size: 14px; top: 40px; right: 4px; border-width: 2px; }

  .pull { padding: 16px 8px 28px; }
  .receipt { padding: 18px 16px 14px; }
  .receipt__no strong { font-size: 44px; }
  .receipt__title { font-size: 24px; }
  .stamp { font-size: 26px; top: 80px; right: 12px; border-width: 4px; }
  .receipt__meta { font-size: 13px; }
  .foot { padding: 18px 16px 30px; }
}

@media (max-width: 340px) {
  .rail__tickets { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .tkt-wrap:hover, .tkt-wrap:focus-within { transform: rotate(var(--tilt)); }
}
