/* ServiceTill — servicetill.com
   Light pages; the till itself is dark, and only appears inside the "screen" illustrations. */

:root {
  --paper: #F3F2EE;
  --paper-2: #E9E8E2;
  --line: #D6D4CC;
  --ink: #15171A;
  --ink-2: #4C5158;
  --ink-3: #6F747B;
  --amber: #F5A524;
  --amber-ink: #8A5A08;
  --blue: #2F6FE4;
  --blue-ink: #2457C5;
  --teal: #1FA58A;
  --teal-ink: #117A64;
  --till: #15171A;
  --till-2: #1B1E22;
  --till-3: #262A30;
  --till-line: #2A2E34;
  --till-ink: #F2F0EB;
  --till-ink-2: #A3A8B0;
  --sans: 'Archivo', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --measure: 62ch;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:hover { color: var(--amber-ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.08; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0; max-width: var(--measure); }
button, input, select { font: inherit; }
.mono { font-family: var(--mono); }
.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.muted { color: var(--ink-2); }

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: var(--radius);
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn:hover { background: #2A2E34; color: var(--paper); }
.btn.amber { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn.amber:hover { background: #E59A1C; color: var(--ink); }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.quiet:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn.wide { width: 100%; }

/* --- header --- */
.site-head {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; letter-spacing: -0.01em; }
.brand .mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--amber); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800;
}
.site-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.site-nav a { padding: 10px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 15px; }
.site-nav a:hover { background: var(--paper-2); color: var(--ink); }
.site-nav .btn { min-height: 42px; margin-left: 8px; }

/* --- hero --- */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: start; }
.hero p.lead { font-size: 1.25rem; color: var(--ink-2); margin-top: 22px; max-width: 54ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero .fine { font-size: 0.95rem; color: var(--ink-3); margin-top: 16px; }

/* The receipt: the one thing that gets to be loud. */
.receipt {
  justify-self: end; width: min(100%, 360px);
  background: #FBFAF6; color: #1A1A1A; font-family: var(--mono); font-size: 13px; line-height: 1.5;
  padding: 26px 24px 30px; border-radius: 3px;
  box-shadow: 0 30px 60px rgba(21, 23, 26, 0.18), 0 2px 6px rgba(21, 23, 26, 0.08);
  transform: rotate(1.2deg);
  position: relative;
}
.receipt::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
  background: linear-gradient(135deg, #FBFAF6 50%, transparent 50%) 0 0 / 10px 10px, linear-gradient(45deg, #FBFAF6 50%, transparent 50%) 0 0 / 10px 10px;
}
.receipt .head { text-align: center; margin-bottom: 10px; }
.receipt .head strong { display: block; font-size: 15px; letter-spacing: 0.08em; }
.receipt hr { border: 0; border-top: 1px dashed #9A9A94; margin: 10px 0; }
.receipt ol { list-style: none; margin: 0; padding: 0; }
.receipt li { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; padding: 3px 0; align-items: baseline; }
.receipt li .src { color: #55554F; font-size: 11px; text-align: right; }
.receipt li.hot .what { background: var(--amber); padding: 0 4px; border-radius: 3px; }
.receipt .total { display: flex; justify-content: space-between; font-weight: 600; font-size: 15px; margin-top: 4px; }
.receipt .note { color: #55554F; margin-top: 8px; font-size: 12px; text-align: center; }

/* --- sections --- */
section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 40px; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* features: text beside a small dark screen */
.feature { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; padding: 28px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature h3 { font-size: 1.45rem; }
.feature p { margin-top: 10px; color: var(--ink-2); }
.feature ul { margin: 14px 0 0; padding-left: 18px; color: var(--ink-2); }
.feature li + li { margin-top: 4px; }

.screen {
  background: var(--till); color: var(--till-ink); border-radius: 14px; padding: 18px;
  border: 1px solid var(--till-line); font-size: 14px; box-shadow: 0 20px 50px rgba(21, 23, 26, 0.18);
}
.screen .bar { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--till-line); color: var(--till-ink-2); font-size: 13px; }
.screen .bar b { color: var(--till-ink); }
.screen .bar .time { margin-left: auto; font-family: var(--mono); font-weight: 600; }
.tables { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.table { border-radius: 12px; padding: 12px 8px; text-align: center; display: flex; flex-direction: column; gap: 3px; align-items: center; }
.table .n { font-weight: 800; font-size: 18px; line-height: 1; }
.table .ph { font-size: 12px; font-weight: 700; }
.table .in { font-family: var(--mono); font-size: 14px; font-weight: 600; }
.pills { display: flex; gap: 3px; margin-top: 3px; }
.pills span { min-width: 28px; height: 18px; padding: 0 4px; border-radius: 5px; font-family: var(--mono); font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.22); }
.pills span.cur { background: transparent; border: 1px solid currentColor; }
.pills span.todo { background: transparent; border: 1px solid rgba(128,128,128,0.45); }
.t-seated { background: var(--blue); color: #fff; }
.t-drinks { background: var(--teal); color: #161718; }
.t-ready { background: var(--amber); color: #161718; box-shadow: 0 0 0 3px #FF7A7F; }
.t-eating { background: #E8E4DC; color: #161718; }
.screen .legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; color: var(--till-ink-2); }
.screen .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.split { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.guest { background: var(--till-2); border: 1px solid var(--till-line); border-radius: 10px; padding: 10px; }
.guest b { display: block; font-size: 13px; }
.guest .amt { font-family: var(--mono); font-size: 17px; font-weight: 600; margin-top: 6px; }
.guest .st { font-size: 11px; margin-top: 4px; }
.guest .st.paid { color: #5FD3A4; }
.guest .st.now { color: var(--amber); }
.screen .due { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--till-line); }
.screen .due .big { font-family: var(--mono); font-size: 28px; font-weight: 600; }
.screen .tenders { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.screen .tenders span { padding: 6px 10px; border-radius: 8px; border: 1px solid #343941; font-size: 12px; font-weight: 600; }
.screen .tenders span.on { background: var(--amber); color: #161718; border-color: var(--amber); }

.ticket { border-radius: 12px; overflow: hidden; border: 1px solid var(--till-line); background: var(--till-2); }
.ticket .th { display: flex; gap: 10px; align-items: center; padding: 10px 12px; font-weight: 800; }
.ticket .th .time { margin-left: auto; font-family: var(--mono); font-weight: 600; font-size: 18px; }
.ticket .th.late { background: #FF6B70; color: #161718; }
.ticket .th.ok { background: var(--till-3); }
.ticket .line { display: flex; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--till-line); }
.ticket .q { width: 24px; height: 24px; border-radius: 6px; background: var(--till-3); display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 600; font-size: 13px; flex: none; }
.ticket .mods { font-size: 12px; color: #C9CED6; }
.ticket .allergy { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 0.05em; padding: 2px 6px; border-radius: 4px; background: #FF9A9E; color: #161718; margin-top: 3px; }
.tickets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.everything { columns: 2; column-gap: 40px; margin: 36px 0 0; padding: 0; list-style: none; max-width: 900px; }
.everything li { break-inside: avoid; padding: 10px 0; border-top: 1px solid var(--line); }
.everything li b { display: block; }
.everything li span { color: var(--ink-2); font-size: 0.95rem; }

/* works with */
.apps { display: grid; gap: 18px; }
.app-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: 26px 0; border-top: 1px solid var(--line); align-items: start; }
.app-row:last-child { border-bottom: 1px solid var(--line); }
.app-name { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.15rem; }
.app-name .mark { width: 40px; height: 40px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex: none; }
.app-name small { display: block; font-weight: 500; font-size: 0.9rem; color: var(--ink-3); }
.app-row h4 { margin: 0 0 8px; font-size: 0.95rem; color: var(--ink-3); font-weight: 600; }
.app-row ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.app-row li + li { margin-top: 4px; }
.flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 28px; }
.flow span { padding: 8px 12px; border-radius: 8px; font-weight: 700; font-size: 0.9rem; }
.flow .arrow { color: var(--ink-3); padding: 0 2px; font-weight: 500; }
.f-ctd { background: var(--blue); color: #fff; }
.f-st { background: var(--amber); color: var(--ink); }
.f-ts { background: var(--teal); color: #161718; }
.f-kds { background: var(--ink); color: var(--paper); }
.f-hwyf { background: #E8E4DC; color: var(--ink); }

/* own till */
.own { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.address {
  background: var(--till); color: var(--till-ink); border-radius: 14px; padding: 20px 22px; font-family: var(--mono); font-size: 15px;
  border: 1px solid var(--till-line);
}
.address .url { font-size: 1.35rem; font-weight: 600; }
.address .url em { font-style: normal; color: var(--amber); }
.address .lines { margin-top: 14px; color: var(--till-ink-2); font-size: 13px; display: grid; gap: 6px; }
.address .lines b { color: var(--till-ink); font-weight: 600; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 880px; }
.plan { border: 1px solid var(--line); border-radius: 14px; padding: 26px; background: #FAF9F5; }
.plan.main { border-color: var(--ink); }
.plan h3 { font-size: 1.3rem; }
.plan .price { font-family: var(--mono); font-size: 2rem; font-weight: 600; margin: 14px 0 4px; }
.plan .per { color: var(--ink-3); font-size: 0.95rem; }
.plan ul { margin: 18px 0 22px; padding-left: 18px; color: var(--ink-2); }
.plan li + li { margin-top: 6px; }
.placeholder { background: #FFF3D6; border: 1px dashed var(--amber-ink); padding: 0 6px; border-radius: 4px; color: var(--amber-ink); font-family: var(--mono); font-size: 0.9em; }

/* faq */
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 500; color: var(--ink-3); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding: 0 0 20px; }

/* cta + footer */
.cta { background: var(--ink); color: var(--paper); border-top: 0; }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.cta p { color: #C9CED6; margin-top: 10px; }
.cta .btn.amber { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.site-foot { padding: 36px 0; font-size: 0.95rem; color: var(--ink-2); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.site-foot a { text-decoration: none; }
.site-foot .right { margin-left: auto; }

/* --- forms (sign up / log in) --- */
.auth { padding: 64px 0 96px; }
.auth .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.form { display: grid; gap: 16px; max-width: 460px; }
.field label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
.field .hint { display: block; font-weight: 500; color: var(--ink-3); font-size: 0.85rem; margin-top: 4px; }
.field input { width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--line); background: #FBFAF6; color: var(--ink); }
.field input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(47, 111, 228, 0.25); }
.field .addr { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: #FBFAF6; overflow: hidden; }
.field .addr input { border: 0; border-radius: 0; background: transparent; flex: 1 1 auto; min-width: 0; }
.field .addr span { padding: 0 14px; font-family: var(--mono); color: var(--ink-3); white-space: nowrap; border-left: 1px solid var(--line); min-height: 48px; display: inline-flex; align-items: center; }
.errors { margin: 0; padding: 14px 16px; border-radius: var(--radius); background: #FDE8E9; color: #7A1F23; list-style: none; }
.errors li + li { margin-top: 4px; }
.notice { padding: 14px 16px; border-radius: var(--radius); background: #E3F6EE; color: #0F5C44; }

/* --- the venue's app (dark, like the till) --- */
body.app { background: var(--till); color: var(--till-ink); }
.app-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-height: 64px; padding: 10px 24px; background: var(--till-2); border-bottom: 1px solid var(--till-line); }
.app-head .brand { color: var(--till-ink); }
.app-head .venue { color: var(--till-ink-2); font-size: 0.95rem; }
.app-head nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.app-head nav a, .app-head nav span { padding: 10px 14px; border-radius: 9px; font-weight: 600; font-size: 14px; text-decoration: none; color: #C9CED6; }
.app-head nav span[aria-current] { background: var(--till-3); color: var(--till-ink); }
.app-head nav a:hover { color: var(--till-ink); background: var(--till-3); }
.app-head form { margin-left: 8px; }
.app-head .btn.quiet { color: var(--till-ink); border-color: #343941; min-height: 40px; }
.app-main { padding: 24px; max-width: 1200px; }
.app-main h1 { font-size: 1.6rem; }
.app-main .sub { color: var(--till-ink-2); margin-top: 6px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 24px; }
.tile { display: block; padding: 18px; border-radius: 12px; background: var(--till-2); border: 1px solid var(--till-line); text-decoration: none; color: var(--till-ink); }
.tile:hover { border-color: #4A505A; color: var(--till-ink); }
.tile b { display: block; font-size: 1.05rem; }
.tile span { display: block; color: var(--till-ink-2); font-size: 0.9rem; margin-top: 4px; }
.tile.soon { opacity: 0.55; }
.status { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; max-width: 640px; }
.status .row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--till-2); border: 1px solid var(--till-line); }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: #4A505A; flex: none; }
.status .dot.on { background: #5FD3A4; }
.status .dot.off { background: var(--amber); }
.status .row small { margin-left: auto; color: var(--till-ink-2); }
.app-form { display: grid; gap: 18px; max-width: 640px; margin-top: 20px; }
.app-form .field label { color: var(--till-ink); }
.app-form .field .hint { color: var(--till-ink-2); }
.app-form .field input { background: #1F2328; border-color: #343941; color: var(--till-ink); }
.app-form .field input:focus { border-color: var(--amber); box-shadow: none; }
.keybox { font-family: var(--mono); padding: 12px 14px; border-radius: 10px; background: #1F2328; border: 1px solid #343941; word-break: break-all; }
.events { margin: 10px 0 0; padding: 0; list-style: none; max-width: 640px; }
.events li { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid var(--till-line); font-size: 0.95rem; }
.events li .when { font-family: var(--mono); color: var(--till-ink-2); }
.flash { padding: 12px 14px; border-radius: 10px; background: #1E4D3A; color: #5FD3A4; margin-top: 16px; max-width: 640px; }

/* --- responsive --- */
@media (max-width: 900px) {
  .hero .wrap, .own, .cta .wrap, .auth .wrap { grid-template-columns: 1fr; }
  .receipt { justify-self: start; transform: none; }
  .feature { grid-template-columns: 1fr; }
  .app-row { grid-template-columns: 1fr; gap: 14px; padding: 20px 0; }
  .plans { grid-template-columns: 1fr; }
  .everything { columns: 1; }
  .tables { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tickets { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .receipt { transform: none; } }

/* --- floor page (live from Call the Desk) --- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 9px; background: var(--till-2); border: 1px solid var(--till-line); font-size: 13px; font-weight: 600; }
.chip b { font-family: var(--mono); color: var(--till-ink-2); font-weight: 600; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; border: 1px solid transparent; }
.sw-seated, .st-seated { background: var(--blue); color: #fff; }
.sw-drinks, .st-drinks { background: var(--teal); color: #161718; }
.sw-cooking, .st-cooking { background: #3A4048; color: var(--till-ink); }
.sw-ready, .st-ready { background: var(--amber); color: #161718; }
.sw-eating, .st-eating { background: #E8E4DC; color: #161718; }
.sw-bill, .st-bill { background: #C4B5FD; color: #161718; }
.sw-paid, .st-paid { background: #5FD3A4; color: #161718; }
.sw-reserved, .st-reserved { background: #1A1D21; color: #C9CED6; border: 2px dashed #6B7280; }
.sw-free, .st-free, .st-late { background: #1F2328; color: #8A9099; border: 1px solid #3A4048; }
.st-late { background: var(--blue); color: #fff; }
.floor-wrap { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.needs { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 12px; background: var(--till-2); border: 1px solid var(--till-line); }
.needs h2 { font-size: 1rem; margin: 0 0 4px; }
.need { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px; background: #1F2328; border: 1px solid var(--till-line); text-decoration: none; color: var(--till-ink); }
.need b { font-size: 15px; } .need span { font-size: 13px; color: #C9CED6; } .need em { font-style: normal; font-family: var(--mono); font-weight: 600; }
.need.red { border-color: #FF7A7F; } .need.red em { color: #FF9A9E; }
.need.amber { border-color: var(--amber); } .need.amber em { color: var(--amber); }
.plan { position: relative; min-height: 560px; aspect-ratio: 4 / 3; border-radius: 14px; background: #121416; border: 1px solid #22262B; overflow: hidden; }
.tbl { position: absolute; width: 11%; min-width: 86px; min-height: 76px; transform: translate(-50%, -50%); border-radius: 12px; box-sizing: border-box; padding: 8px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; text-decoration: none; line-height: 1.15; }
.tbl.shape-round { border-radius: 50%; min-width: 92px; min-height: 92px; }
.tbl b { font-size: 17px; } .tbl span { font-size: 11px; font-weight: 700; } .tbl em { font-style: normal; font-family: var(--mono); font-size: 12px; font-weight: 600; }
.tbl .flag { font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: 0.05em; padding: 1px 5px; border-radius: 4px; background: #FF9A9E; color: #161718; margin-top: 2px; }
.tbl:hover { filter: brightness(1.08); color: inherit; }
.ring-red { box-shadow: 0 0 0 3px #FF7A7F; } .ring-amber { box-shadow: 0 0 0 3px var(--amber); }

/* --- table page --- */
.table-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 24px; margin-top: 16px; max-width: 1100px; }
.card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 12px; background: var(--till-2); border: 1px solid var(--till-line); }
.card b { font-size: 1.1rem; }
.allergy { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; padding: 4px 8px; border-radius: 5px; background: #FF9A9E; color: #161718; }
.stage-now { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #24211A; border: 1px solid #5A4A22; color: var(--amber); }
.stage-now b { color: var(--till-ink); }
.steps { display: flex; flex-direction: column; gap: 8px; }
.step { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.step .btn { min-height: 44px; }
.step .btn.quiet { color: var(--till-ink); border-color: #343941; }
.step-main .btn { min-height: 52px; font-size: 1.05rem; }
.step .inline { display: inline-flex; align-items: center; gap: 6px; }
.step input[type=number], .step select { height: 44px; padding: 0 10px; border-radius: 9px; border: 1px solid #343941; background: #1F2328; color: var(--till-ink); width: 120px; }
.step select { width: auto; }
@media (max-width: 900px) { .floor-wrap, .table-cols { grid-template-columns: 1fr; } }

/* --- order pad --- */
.mini { height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid #343941; background: #1F2328; color: var(--till-ink); font-weight: 600; font-size: 12px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.mini.danger { color: #FF9A9E; } .mini.warn { color: var(--amber); border-color: var(--amber); }
.pad { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.ticket-panel { background: var(--till-2); border: 1px solid var(--till-line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.ticket-lines { display: flex; flex-direction: column; }
.tl { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--till-line); align-items: flex-start; }
.tl-new { background: #20242A; margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
.tl .q { width: 26px; height: 26px; border-radius: 7px; background: var(--till-3); display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 600; font-size: 13px; flex: none; }
.tl-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tl-name { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 14px; }
.tl-price { font-family: var(--mono); font-weight: 500; color: #C9CED6; }
.tl-note { display: flex; gap: 4px; }
.tl-note input { flex: 1 1 auto; min-width: 0; height: 30px; padding: 0 8px; border-radius: 7px; border: 1px solid #343941; background: #1F2328; color: var(--till-ink); font-size: 12px; }
.tl-status { font-size: 11px; color: var(--till-ink-2); }
.ticket-totals { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; border-top: 1px solid var(--till-line); font-size: 14px; color: var(--till-ink-2); }
.ticket-totals > div { display: flex; justify-content: space-between; gap: 10px; }
.ticket-totals .total { color: var(--till-ink); font-weight: 700; font-size: 16px; padding-top: 6px; }
.ticket-totals .total .mono { font-size: 22px; font-weight: 600; }
.ticket-totals small { font-weight: 500; color: var(--till-ink-2); font-size: 12px; }
.ticket-actions { display: grid; gap: 8px; }
.ticket-actions .btn { width: 100%; min-height: 48px; }
.ticket-actions .btn.quiet { color: var(--till-ink); border-color: #343941; }
.ticket-actions .btn[disabled] { opacity: 0.4; cursor: default; }
.menu-panel { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; }
.cat-rail { display: flex; flex-direction: column; gap: 6px; }
.cat-rail a { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 10px; background: var(--till-3); color: var(--till-ink); font-weight: 600; font-size: 14px; text-decoration: none; }
.cat-rail a span { font-size: 12px; opacity: 0.7; }
.cat-rail a.on { background: var(--amber); color: #161718; }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; align-content: start; }
.item-btn { width: 100%; min-height: 104px; text-align: left; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; padding: 12px; border-radius: 12px; background: #1F2328; border: 1px solid #2E333A; color: var(--till-ink); cursor: pointer; }
.item-btn:hover { border-color: #4A505A; }
.item-btn.out { opacity: 0.45; }
.item-name { font-weight: 600; font-size: 14px; line-height: 1.25; }
.item-name small { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; color: var(--till-ink-2); border: 1px solid #3A4048; border-radius: 4px; padding: 1px 4px; margin-left: 4px; }
.item-foot { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.item-foot em { font-style: normal; font-size: 12px; font-weight: 700; color: #FF9A9E; }
.item-foot .mono { margin-left: auto; font-weight: 600; }

/* --- pay --- */
.pay-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; max-width: 1000px; align-items: start; }
.service-toggle { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.split-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 600; }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper .mini { width: 40px; height: 40px; justify-content: center; font-size: 18px; }
.stepper b { width: 28px; text-align: center; font-size: 18px; }
.split-row .mono { margin-left: auto; font-size: 18px; font-weight: 600; }
.pay-form { display: grid; gap: 12px; margin-top: 14px; }
.pay-form .field label { color: var(--till-ink); }
.pay-form .field input { background: #1F2328; border-color: #343941; color: var(--till-ink); font-family: var(--mono); font-size: 18px; }
.tenders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tenders .btn { min-height: 52px; }
.tenders .btn.quiet { color: var(--till-ink); border-color: #343941; }

/* --- receipt --- */
.paper { width: 320px; margin-top: 12px; padding: 22px 20px; background: #FBFAF6; color: #1A1A1A; font-family: var(--mono); font-size: 12px; line-height: 1.5; border-radius: 3px; }
.paper .c { text-align: center; } .paper .r { display: flex; justify-content: space-between; gap: 10px; } .paper .n { color: #55554F; padding-left: 14px; font-size: 11px; }
.paper .big { font-weight: 600; font-size: 15px; margin-top: 4px; } .paper hr { border: 0; border-top: 1px dashed #9A9A94; margin: 8px 0; }
@media print { .app-head, .sub { display: none; } body.app { background: #fff; } .paper { margin: 0; } }

/* --- kitchen --- */
.kds { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 16px; align-items: start; }
.kds-ticket { border-radius: 14px; background: var(--till-2); border: 1px solid var(--till-line); overflow: hidden; }
.kds-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--till-3); }
.kds-head b { font-size: 20px; } .kds-head span { font-size: 12px; color: #C9CED6; } .kds-head em { margin-left: auto; font-style: normal; font-size: 18px; font-weight: 600; }
.kds-ticket.warn .kds-head { background: var(--amber); color: #161718; } .kds-ticket.warn .kds-head span { color: #161718; }
.kds-ticket.late .kds-head { background: #FF6B70; color: #161718; } .kds-ticket.late .kds-head span { color: #161718; }
.kds-line { display: flex; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--till-line); font-size: 15px; }
.kds-line .q { width: 26px; height: 26px; border-radius: 7px; background: var(--till-3); display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 600; font-size: 14px; flex: none; }
.kds-ticket form { padding: 10px 14px 14px; }

/* --- menu admin --- */
.menu-admin { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; margin-top: 16px; align-items: start; }
.mi { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--till-line); font-size: 14px; }
.mi-name { flex: 1 1 auto; min-width: 0; } .mi-name small { font-size: 10px; font-weight: 700; color: var(--till-ink-2); border: 1px solid #3A4048; border-radius: 4px; padding: 1px 4px; margin-left: 4px; }
.mi-add { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--till-line); margin-top: 4px; }
.mi-add input { height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid #343941; background: #1F2328; color: var(--till-ink); flex: 1 1 160px; min-width: 0; }
@media (max-width: 900px) { .pad, .menu-panel, .pay-cols, .menu-admin { grid-template-columns: 1fr; } .cat-rail { flex-direction: row; flex-wrap: wrap; } }

/* --- staff, pin, admin --- */
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #3B4A5C; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.pin-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.pinpad { margin-top: 16px; }
.pinpad input { width: 100%; box-sizing: border-box; height: 52px; margin: 8px 0 12px; padding: 0 14px; border-radius: 10px; border: 1px solid #343941; background: #1F2328; color: var(--till-ink); font-family: var(--mono); font-size: 24px; letter-spacing: 0.3em; text-align: center; }
.pad-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pad-grid button { height: 60px; border-radius: 12px; border: 1px solid #343941; background: #1F2328; color: var(--till-ink); font-family: var(--mono); font-size: 22px; font-weight: 600; cursor: pointer; }
.pad-grid button.go { background: var(--amber); color: #161718; border-color: var(--amber); font-family: var(--sans); font-size: 16px; font-weight: 800; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.admin-table th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: 0.85rem; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.changelog h4 { margin: 14px 0 4px; } .changelog p { color: var(--ink-2); margin: 2px 0; }
@media (max-width: 900px) { .pin-cols { grid-template-columns: 1fr; } }
