/* BITS Restaurant POS by Brooklyn Tech Support LLC — design system */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/jakarta.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Caveat Brush"; src: url("/assets/fonts/caveat-brush.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
:root {
  --navy-950: #07142a;
  --navy-900: #0b1b33;
  --navy-800: #13284a;
  --navy-700: #1d3560;
  --ink: #0f1e36;
  --ink-2: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e5e9f0;
  --line-2: #eef1f6;
  --bg: #f4f6fa;
  --card: #ffffff;
  --blue: #1f6bf2;
  --blue-600: #1a5cd6;
  --blue-50: #eaf1fe;
  --green: #22a447;
  --green-600: #1c8d3c;
  --green-50: #e8f6ec;
  --brand-green: #3db33f;
  --orange: #f08a12;
  --orange-50: #fff4e5;
  --red: #e0352b;
  --red-50: #fdecec;
  --purple: #7c3aed;
  --yellow: #eab308;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 30, 54, .06), 0 1px 3px rgba(15, 30, 54, .05);
  --shadow-lg: 0 12px 40px rgba(15, 30, 54, .18);
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-script: "Caveat Brush", "Segoe Script", cursive;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.01em; word-spacing: .08em; font-family: var(--font-display); font-weight: 700; }
body { font-feature-settings: "cv11", "ss01"; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 10px; }
.between { justify-content: space-between; }
.gap-sm { gap: 6px; }
.gap-lg { gap: 18px; }
.mt { margin-top: 14px; }
.mt-lg { margin-top: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Boot / spinner ---------- */
.boot { height: 100vh; display: grid; place-items: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--blue); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.notfound { height: 100vh; display: grid; place-content: center; text-align: center; gap: 10px; }

/* ---------- Brand ---------- */
.brand { display: flex; flex-direction: column; line-height: 1; color: #fff; }
.brand .word { font-weight: 800; font-size: 26px; letter-spacing: -.02em; display: flex; align-items: flex-end; }
.brand .word .i { position: relative; display: inline-block; }
.brand .word .i::before { content: ""; position: absolute; left: 50%; top: -1px; width: .26em; height: .22em; background: var(--brand-green); transform: translateX(-50%); }
.brand .sub { font-size: 11px; color: #c9d4e5; margin-top: 3px; font-weight: 500; }
.brand.lg .word { font-size: 64px; }
.brand.lg .sub { font-size: 18px; color: #fff; font-weight: 600; margin-top: 4px; }
.brand .hat { width: 44px; height: 38px; margin-bottom: 4px; color: var(--brand-green); }
.brand.lg .hat { width: 64px; height: 56px; }
.brand.dark { color: var(--ink); }
.brand.dark .sub { color: var(--brand-green); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-weight: 600; cursor: pointer; transition: background .12s, border-color .12s, transform .05s; white-space: nowrap; user-select: none; }
.btn:hover { background: #f8fafc; border-color: #d6dce6; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-600); }
.btn.success { background: var(--green); border-color: var(--green); color: #fff; }
.btn.success:hover { background: var(--green-600); }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.warn { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.outline-primary { color: var(--blue); border-color: var(--blue); }
.btn.outline-primary:hover { background: var(--blue-50); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: rgba(15, 30, 54, .06); }
.btn.sm { height: 32px; padding: 0 10px; font-size: 13px; }
.btn.lg { height: 52px; font-size: 16px; padding: 0 22px; border-radius: 10px; }
.btn.xl { height: 64px; font-size: 18px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn.icon { width: 40px; padding: 0; }
.btn.icon.sm { width: 32px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-weight: 600; cursor: pointer; white-space: nowrap; }
.chip.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.segmented { display: inline-flex; background: #eef1f6; padding: 3px; border-radius: 10px; gap: 2px; }
.segmented button { border: 0; background: transparent; height: 32px; padding: 0 14px; border-radius: 8px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.segmented button.active { background: var(--blue); color: #fff; box-shadow: var(--shadow); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: #eef1f6; color: var(--ink-2); white-space: nowrap; }
.badge.green { background: var(--green-50); color: var(--green-600); }
.badge.blue { background: var(--blue-50); color: var(--blue-600); }
.badge.orange { background: var(--orange-50); color: #b45f06; }
.badge.red { background: var(--red-50); color: var(--red); }
.badge.purple { background: #f1eafe; color: var(--purple); }
.badge.dark { background: var(--navy-900); color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.input, select.input, textarea.input { height: 40px; border: 1px solid #d9dfe8; border-radius: var(--radius-sm); padding: 0 12px; background: #fff; outline: none; width: 100%; }
textarea.input { height: auto; min-height: 80px; padding: 10px 12px; resize: vertical; }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 107, 242, .15); }
.input.invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(224, 53, 43, .12); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }
.switch { position: relative; width: 44px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: #cbd5e1; transition: .15s; cursor: pointer; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .15s; box-shadow: var(--shadow); }
.switch input:checked + i { background: var(--blue); }
.switch input:checked + i::after { transform: translateX(20px); }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); }
.search .input { padding-left: 36px; }

/* ---------- Cards / tables ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 0; }
.card-head h3 { font-size: 15px; }
.grid { display: grid; gap: 16px; }
.grid.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.k2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.split { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; }
table.data th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fafbfd; }
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr.clickable { cursor: pointer; }
table.data tr.clickable:hover td { background: #f8fafc; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty > svg { width: 36px; height: 36px; color: var(--faint); margin: 0 auto 8px; }
.kpi { padding: 16px 18px; }
.kpi .label { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.kpi .value { font-size: 28px; font-weight: 700; margin-top: 6px; letter-spacing: -.02em; }
.kpi .delta { font-size: 13px; font-weight: 600; margin-top: 4px; }
.delta.up { color: var(--green); }
.delta.down { color: var(--red); }

/* ---------- Admin shell ---------- */
.layout { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--navy-900); color: #cfd8e6; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { padding: 20px 20px 18px; }
.nav { display: flex; flex-direction: column; gap: 2px; padding: 4px 10px; }
.nav a { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 8px; color: #cfd8e6; font-weight: 500; }
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a.active { background: var(--blue); color: #fff; }
.nav a .soon { margin-left: auto; font-size: 10px; background: rgba(255, 255, 255, .1); padding: 2px 6px; border-radius: 4px; }
.nav .sep { height: 1px; background: rgba(255, 255, 255, .08); margin: 8px 6px; }
.sidebar .user { margin-top: auto; padding: 14px 16px; display: flex; align-items: center; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .08); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #e2e8f0; color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.sidebar .user .name { color: #fff; font-weight: 600; font-size: 13px; }
.sidebar .user .role { font-size: 11px; color: #9fb0c8; }
.topbar { height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 24px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar .loc select { height: 38px; font-weight: 600; min-width: 190px; }
.topbar .clock { color: var(--ink-2); font-size: 13px; }
.main { padding: 22px 24px 40px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; }
.menu-toggle { display: none; }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 110px; color: var(--ink); font-weight: 600; }
.tile svg { width: 34px; height: 34px; color: var(--blue); }
.tile:hover { border-color: var(--blue); }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button.active { color: var(--blue); border-bottom-color: var(--blue); }

/* ---------- Modals / toasts ---------- */
.overlay { position: fixed; inset: 0; background: rgba(7, 20, 42, .55); display: grid; place-items: center; z-index: 100; padding: 16px; animation: fade .12s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; animation: pop .14s; }
.modal.wide { width: min(880px, 100%); }
.modal.xwide { width: min(1080px, 100%); }
.modal.narrow { width: min(400px, 100%); }
@keyframes pop { from { transform: scale(.97); opacity: 0; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 12px; gap: 10px; }
.modal-head h2 { font-size: 18px; }
.modal-body { padding: 4px 20px 16px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px 18px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 200; pointer-events: none; }
.toast { background: var(--navy-900); color: #fff; padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow-lg); font-weight: 500; animation: pop .15s; display: flex; gap: 10px; align-items: center; max-width: 90vw; }
.toast.error { background: var(--red); }
.toast svg { width: 20px; height: 20px; flex: none; }
.toast.success { background: var(--green); }

/* ---------- Auth screens ---------- */
.shell-auth { background: var(--navy-950); }
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr minmax(360px, 440px) 1fr; align-items: center; padding: 32px; gap: 24px; position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 10% 90%, rgba(240, 138, 18, .22), transparent 60%), radial-gradient(900px 500px at 90% 10%, rgba(61, 179, 63, .15), transparent 60%), linear-gradient(160deg, #0b1b33, #07142a 60%, #0d1a2c); }
.auth::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.auth .side { position: relative; color: #fff; }
.auth .tagline { margin-top: 24px; font-size: 20px; font-weight: 600; line-height: 1.3; }
.auth .script { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 40px; color: #fff; transform: rotate(-8deg); line-height: 1.05; text-align: center; }
.auth .script::after { content: ""; display: block; width: 120px; height: 4px; background: var(--brand-green); border-radius: 4px; margin: 10px auto 0; transform: rotate(-4deg); }
.auth-card { position: relative; background: rgba(20, 28, 42, .88); border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; padding: 30px; color: #fff; backdrop-filter: blur(8px); box-shadow: var(--shadow-lg); }
.auth-card h1 { font-size: 26px; text-align: center; }
.auth-card .lead { text-align: center; color: #c4cfdf; margin: 6px 0 22px; }
.auth-card .input { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: #fff; height: 48px; }
.auth-card .input::placeholder { color: #9fb0c8; }
.auth-card .field > span { color: #c4cfdf; }
.auth-card.light { background: #f1ede6; color: var(--ink); border-color: rgba(255, 255, 255, .6); }
.auth-card.light .lead { color: var(--ink-2); }
.auth-foot { position: absolute; bottom: 18px; left: 32px; right: 32px; display: flex; justify-content: space-between; color: #9fb0c8; font-size: 12px; }
.auth .err { color: #ffb4ae; text-align: center; min-height: 20px; margin-top: 10px; font-weight: 500; }
.auth-card.light .err { color: var(--red); }
.pin-dots { display: flex; justify-content: center; gap: 14px; margin: 0 0 22px; }
.pin-dots i { width: 22px; height: 30px; border-radius: 6px; background: #e2ddd3; border: 1px solid #d3cdc1; }
.pin-dots i.on { background: var(--ink); }
.pin-dots.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.keypad button { height: 64px; border-radius: 10px; border: 1px solid #ddd7cc; background: #fff; font-size: 24px; font-weight: 600; cursor: pointer; display: grid; place-items: center; }
.keypad button:active { background: #eef1f6; }
.keypad button.go { background: var(--green); border-color: var(--green); color: #fff; }
.keypad button svg { width: 26px; height: 26px; }
.keypad.dark button { background: #f8fafc; border-color: var(--line); }

/* ---------- POS ---------- */
.shell-pos { overflow: hidden; }
.pos { display: grid; grid-template-columns: 96px minmax(0, 1fr) 380px; height: 100vh; }
.pos-rail { background: var(--navy-900); display: flex; flex-direction: column; align-items: center; padding: 14px 0; gap: 4px; }
.pos-rail .brand { padding: 0 0 14px; align-items: center; }
.pos-rail .brand .word { font-size: 22px; }
.pos-rail .brand .sub { font-size: 9px; text-align: center; }
.pos-rail a, .pos-rail button { width: 80px; height: 64px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  color: #cfd8e6; font-size: 11px; font-weight: 600; border: 0; background: transparent; cursor: pointer; }
.pos-rail a svg, .pos-rail button svg { width: 22px; height: 22px; }
.pos-rail a.active { background: var(--blue); color: #fff; }
.pos-rail a:hover, .pos-rail button:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.pos-rail .bottom { margin-top: auto; }
.pos-center { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.pos-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.pos-top .search { flex: 1; max-width: 420px; }
.pos-user { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.pos-user .name { font-weight: 700; font-size: 13px; line-height: 1.1; }
.pos-user .role { font-size: 12px; color: var(--muted); }
.cat-nav { position: relative; min-width: 0; }
.cat-strip { display: flex; gap: 10px; padding: 12px 16px 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-left: 16px; }
.cat-strip::-webkit-scrollbar { display: none; }
.cat-nav::after { content: ''; position: absolute; top: 0; right: 0; bottom: 6px; width: 44px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--bg) 70%); opacity: 1; transition: opacity .15s; }
.cat-nav.at-end::after, .cat-nav.no-scroll::after { opacity: 0; }
.cat-arrow { position: absolute; top: calc(50% + 3px); transform: translateY(-50%); z-index: 6; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); display: flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; padding-bottom: 3px; color: var(--navy-800); cursor: pointer; }
.cat-arrow:hover { background: var(--blue-50); border-color: var(--blue); color: var(--blue); }
.cat-arrow.prev { left: 4px; }
.cat-arrow.next { right: 4px; }
.cat-nav.at-start .cat-arrow.prev, .cat-nav.at-end .cat-arrow.next, .cat-nav.no-scroll .cat-arrow { display: none; }
.cat { flex: none; width: 96px; scroll-snap-align: start; border-radius: 10px; border: 2px solid transparent; background: #fff; box-shadow: var(--shadow); cursor: pointer; padding: 5px; text-align: center; }
.cat .ph { height: 60px; border-radius: 7px; }
.cat span { display: block; font-size: 12px; font-weight: 600; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat.active { border-color: var(--blue); background: var(--blue-50); }
.pos-items { flex: 1; overflow-y: auto; padding: 8px 16px 20px; }
.pos-items h2 { font-size: 20px; margin: 6px 0 12px; }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.item-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; text-align: left; padding: 0; box-shadow: var(--shadow); transition: transform .06s, border-color .12s; position: relative; }
.item-card:active { transform: scale(.98); }
.item-card:hover { border-color: #c9d6ea; }
.item-card .ph { aspect-ratio: 4 / 3; }
.item-card .info { padding: 9px 11px 11px; }
.item-card .nm { font-weight: 600; font-size: 13px; line-height: 1.25; min-height: 32px; }
.item-card .pr { font-weight: 700; margin-top: 4px; }
.item-card.unavailable { opacity: .45; }
.item-card.unavailable::after { content: "86'd"; position: absolute; top: 8px; right: 8px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 5px; }
.ph { width: 100%; background-size: cover; background-position: center; position: relative; display: grid; place-items: center; overflow: hidden; }
.ph .ini { font-weight: 800; color: rgba(255, 255, 255, .95); font-size: 26px; letter-spacing: -.02em; text-shadow: 0 2px 10px rgba(0, 0, 0, .15); position: relative; }
.ph::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .16) 1.2px, transparent 1.2px); background-size: 12px 12px; }
.ph.has-img::before, .ph.has-img .ini { display: none; }
.check-panel { background: #fff; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.check-head { padding: 14px 16px 10px; border-bottom: 1px solid var(--line-2); }
.check-head h2 { font-size: 18px; display: flex; align-items: center; gap: 6px; }
.check-lines { flex: 1; overflow-y: auto; padding: 6px 16px; }
.line { display: grid; grid-template-columns: 26px 1fr auto; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.line .q { font-weight: 700; }
.line .n { font-weight: 600; }
.line .m { color: var(--muted); font-size: 12px; margin-top: 2px; }
.line .m div::before { content: "• "; }
.line .p { font-weight: 600; text-align: right; }
.line.voided { opacity: .45; text-decoration: line-through; }
.line.pending .n::after { content: "NEW"; margin-left: 6px; font-size: 10px; background: var(--orange-50); color: #b45f06; padding: 1px 5px; border-radius: 4px; font-weight: 700; text-decoration: none; display: inline-block; }
.line.selected { background: var(--blue-50); margin: 0 -16px; padding: 10px 16px; }
.line .ks { font-size: 11px; font-weight: 600; margin-top: 3px; }
.totals { padding: 12px 16px; border-top: 1px solid var(--line); }
.totals .t { display: flex; justify-content: space-between; color: var(--ink-2); padding: 2px 0; }
.totals .t.big { color: var(--ink); font-weight: 800; font-size: 22px; padding-top: 6px; }
.check-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px 10px; }
.check-sub { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 16px 14px; }
.check-sub .btn { height: 38px; padding: 0 6px; font-size: 13px; }
.empty-check { flex: 1; display: grid; place-content: center; text-align: center; color: var(--muted); gap: 8px; padding: 20px; }
.empty-check > svg { width: 44px; height: 44px; margin: 0 auto; color: var(--faint); }

/* ---------- Modifier modal ---------- */
.mod-head { display: flex; gap: 14px; align-items: center; }
.mod-head .ph { width: 88px; height: 88px; border-radius: 12px; flex: none; }
.mod-group { margin-top: 16px; }
.mod-group h4 { font-size: 14px; display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.mod-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.mod-opt { min-height: 50px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; padding: 8px 12px; text-align: left; cursor: pointer; font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.mod-opt small { color: var(--muted); font-weight: 600; }
.mod-opt.on { border-color: var(--blue); background: var(--blue-50); color: var(--blue-600); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { width: 44px; height: 44px; border: 0; background: #f8fafc; font-size: 20px; cursor: pointer; }
.qty span { width: 48px; text-align: center; font-weight: 700; font-size: 18px; }

/* ---------- Payment ---------- */
.pay { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.pay-methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.pay-methods button { height: 46px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-weight: 600; cursor: pointer; }
.pay-methods button.active { border-color: var(--blue); color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); }
.terminal { border-radius: 14px; background: linear-gradient(180deg, #f8fafc, #eef2f7); padding: 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.terminal .dev { width: 150px; height: 150px; border-radius: 26px; background: linear-gradient(160deg, #262f3c, #0b1018); display: grid; place-items: center; box-shadow: 0 16px 30px rgba(0, 0, 0, .25); color: #fff; }
.terminal .dev svg { width: 56px; height: 56px; opacity: .9; }
.terminal.waiting .dev svg { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.94); } }
.tips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.tips button { height: 60px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tips button small { font-weight: 500; color: var(--muted); font-size: 11px; }
.tips button.active { border-color: var(--blue); background: var(--blue-50); color: var(--blue-600); box-shadow: inset 0 0 0 1px var(--blue); }
.amount-due { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.result-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 6px auto 12px; color: #fff; background: var(--green); }
.result-icon svg { width: 40px; height: 40px; }
.result-icon.fail { background: var(--red); }
.recognized { display: flex; gap: 12px; align-items: center; background: var(--green-50); border: 1px solid #c8ead2; border-radius: 12px; padding: 12px 14px; text-align: left; }
.recognized .avatar { background: var(--green); color: #fff; }
.pci-note { display: flex; gap: 10px; background: #f1f5fb; border-radius: 12px; padding: 10px 14px; font-size: 12px; color: var(--ink-2); text-align: left; }
.pci-note svg { width: 20px; height: 20px; color: var(--blue); flex: none; }

/* ---------- Floor plan ---------- */
.floor { position: relative; border-radius: 12px; min-height: 560px; overflow: auto;
  background: linear-gradient(90deg, rgba(0, 0, 0, .04) 1px, transparent 1px) 0 0 / 34px 100%, linear-gradient(#8a5a33, #6f4526); }
.floor.area-light { background: linear-gradient(90deg, rgba(0, 0, 0, .03) 1px, transparent 1px) 0 0 / 34px 100%, linear-gradient(#e7ddcf, #d9ccb9); }
.floor-inner { position: relative; width: 940px; height: 620px; }
.tbl { position: absolute; width: 132px; height: 112px; border-radius: 14px; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: #fff; font-weight: 800; font-size: 20px; box-shadow: 0 8px 18px rgba(0, 0, 0, .25); user-select: none; touch-action: none; }
.tbl.round { border-radius: 50%; width: 118px; height: 118px; }
.tbl.rect { width: 170px; }
.tbl small { font-size: 12px; font-weight: 600; opacity: .95; }
.tbl .meta { font-size: 11px; font-weight: 600; opacity: .9; }
.tbl.AVAILABLE { background: #3aa84a; }
.tbl.SEATED, .tbl.ORDERING { background: #f59e0b; }
.tbl.KITCHEN { background: #e0352b; }
.tbl.DINING { background: #d9443a; }
.tbl.CHECK_REQUESTED { background: #7c3aed; }
.tbl.PAYMENT { background: #1f6bf2; }
.tbl.NEEDS_ATTENTION { background: #b91c1c; outline: 3px solid #fde047; }
.tbl.editing { background: #f8fafc; color: var(--ink); outline: 2px dashed var(--blue); cursor: move; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.legend i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: -2px; }

/* ---------- KDS ---------- */
.shell-kds { background: #f4f5f7; overflow: hidden; }
.kds { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100vh; height: 100dvh; overflow: hidden; }
.kds-top { background: var(--navy-900); color: #fff; display: flex; align-items: center; gap: 22px; padding: 0 22px; padding-top: env(safe-area-inset-top); min-height: 80px; box-sizing: content-box; }
.kds-top .kbrand { display: flex; align-items: center; gap: 10px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.kds-top .kbrand svg { width: 42px; height: 38px; color: var(--brand-green); }
.kds-top .loc { border-left: 1px solid rgba(255, 255, 255, .15); padding-left: 22px; }
.kds-top .loc b { font-size: 22px; display: block; }
.kds-top .loc span { color: #b8c4d6; font-size: 13px; }
.kds-top .time b { font-size: 26px; display: block; font-variant-numeric: tabular-nums; }
.kds-top .time span { color: #b8c4d6; font-size: 13px; }
.kds-counts { display: flex; gap: 10px; margin-left: auto; }
.kds-counts div { width: 108px; height: 58px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .15); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.kds-counts b { font-size: 24px; line-height: 1; }
.kds-counts span { font-size: 13px; color: #cdd6e3; margin-top: 3px; }
.kds-counts .ip { background: rgba(240, 138, 18, .18); border-color: var(--orange); }
.kds-counts .ip b, .kds-counts .ip span { color: #ffb54a; }
.kds-counts .rd b { color: #5fdc7c; }
.kds-station select { height: 52px; background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px; padding: 0 14px; font-size: 18px; font-weight: 600; min-width: 220px; }
.kds-station select option { color: var(--ink); }
.kds-board { display: grid; grid-template-columns: 1fr 1.35fr 1fr 1fr; min-height: 0; }
.kds-col { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid #e3e6eb; }
.kds-col:nth-child(2) { background: #fbfbfc; }
.kds-col-head { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 20px 10px; }
.kds-col-head h2 { font-size: 24px; }
.kds-col-head h2 span { font-weight: 500; color: var(--muted); font-size: 20px; }
.kds-list { overflow-y: auto; padding: 4px 14px 20px; display: flex; flex-direction: column; gap: 12px; }
.ticket { background: #fff; border-radius: 10px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); border-left: 6px solid var(--red); padding: 14px 16px; cursor: pointer; }
.ticket.new { background: #fff5f5; }
.ticket.late { animation: latepulse 1.8s ease-in-out infinite; }
@keyframes latepulse { 50% { box-shadow: 0 0 0 3px rgba(224, 53, 43, .35); } }
.ticket.ip { border-left-color: #3b82f6; }
.ticket.ready { border-left-color: var(--green); }
.ticket .th { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ticket .no { font-size: 24px; font-weight: 800; }
.ticket .sub { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.ticket .clock { text-align: right; }
.ticket .clock b { font-size: 22px; color: var(--red); font-variant-numeric: tabular-nums; }
.ticket.ip .clock b { color: var(--orange); }
.ticket.ready .clock b { color: var(--green); }
.ticket .clock span { display: block; color: var(--muted); font-size: 13px; }
.ticket ul { list-style: none; margin: 10px 0 0; padding: 0; }
.ticket li { display: grid; grid-template-columns: 30px 1fr; padding: 4px 0; font-size: 18px; font-weight: 600; }
.ticket li .mods { grid-column: 2; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.ticket li .mods .alert { color: var(--red); }
.ticket li.done { color: var(--faint); text-decoration: line-through; }
.ticket li.voided { color: var(--red); text-decoration: line-through; }
.ticket .src { font-weight: 800; color: var(--green); font-size: 16px; }
.ticket .note { margin-top: 8px; background: #fff7d6; border-radius: 6px; padding: 6px 10px; font-size: 14px; font-weight: 600; }
.ticket-btn { margin-top: 12px; }
.ticket-btn .btn { height: 48px; font-size: 17px; }
.bigticket { background: #fff; border: 2px solid var(--orange); border-radius: 12px; overflow: hidden; box-shadow: 0 6px 20px rgba(240, 138, 18, .15); }
.bigticket .bh { background: var(--orange-50); padding: 14px 18px 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.bigticket .bh .row { flex-wrap: wrap; row-gap: 0; }
.bigticket .bh .no { font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
.bigticket .bh .meta { font-size: 16px; color: var(--ink-2); margin-top: 4px; }
.bigticket .bh .clock b { font-size: 30px; color: var(--orange); display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.bigticket .bh .clock b svg { width: 28px; height: 28px; }
.progress { height: 12px; background: #e8e2d8; border-radius: 99px; overflow: hidden; margin-top: 10px; }
.progress i { display: block; height: 100%; background: var(--orange); border-radius: 99px; transition: width .5s; }
.progress.blue i { background: #3b82f6; }
.bigitems { padding: 6px 16px; }
.bigitem { display: grid; grid-template-columns: 110px 44px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.bigitem .ph { height: 74px; border-radius: 8px; }
.bigitem .q { font-size: 24px; font-weight: 700; text-align: center; }
.bigitem .n { font-size: 22px; font-weight: 700; }
.bigitem .mods { font-size: 16px; color: var(--ink-2); }
.bigitem .mods .alert { color: var(--red); font-weight: 600; }
.bigitem .timing { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.bigitem.done .n { text-decoration: line-through; color: var(--faint); }
.bigitem .ib { width: 54px; height: 54px; border-radius: 12px; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; }
.bigitem .ib svg { width: 28px; height: 28px; color: var(--faint); }
.bigitem.done .ib { background: var(--green); border-color: var(--green); }
.bigitem.done .ib svg { color: #fff; }
.bigactions { display: grid; grid-template-columns: 1fr 1fr 64px; gap: 10px; padding: 12px 16px 16px; }
.kds-done-row { display: grid; grid-template-columns: 70px 60px 1fr 26px; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 8px; background: #fff; border-left: 4px solid var(--green); font-size: 16px; cursor: pointer; }
.kds-done-row b { font-size: 17px; }
.kds-done-row svg { width: 22px; height: 22px; color: var(--green); }
.kds-detail { margin: 12px 14px 16px; background: #fff; border-radius: 12px; border: 1px solid var(--line); padding: 16px; }
.kds-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.kds-actions button { height: 84px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 15px; cursor: pointer; }
.kds-actions button svg { width: 28px; height: 28px; }
.kds-actions button:active { background: #f1f5f9; }
.kds-bottom { background: #fff; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 0 22px; min-height: 72px; padding-bottom: env(safe-area-inset-bottom); box-sizing: content-box; }
.kds-bottom .chip { height: 48px; padding: 0 22px; font-size: 16px; }
.kds-bottom .end { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.kds-empty { color: var(--faint); text-align: center; padding: 30px 10px; font-size: 16px; }
.kds-conn { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: #7ee29b; }
.kds-conn.off { color: #ff9b94; }

/* ---------- Mobile handheld ---------- */
.shell-mobile { background: #eef2f6; }
.hh { max-width: 520px; margin: 0 auto; min-height: 100vh; background: #f7f9fb; display: flex; flex-direction: column; position: relative; }
.hh-top { position: sticky; top: 0; z-index: 10; background: #fff; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); padding-top: max(10px, env(safe-area-inset-top)); }
.hh-top h1 { font-size: 18px; flex: 1; text-align: center; }
.hh-top .rest { font-family: var(--font-script); font-size: 28px; color: var(--green-600); font-weight: 400; }
.hh-body { flex: 1; padding: 12px 12px 110px; }
.hh-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(520px, 100%); background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr);
  padding-bottom: env(safe-area-inset-bottom); z-index: 20; }
.hh-nav button { height: 62px; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--muted); cursor: pointer; }
.hh-nav button svg { width: 24px; height: 24px; }
.hh-nav button.active { color: var(--green-600); }
.hh-tables { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hh-table { height: 64px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 800; font-size: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
.hh-table svg { width: 26px; height: 26px; }
.hh-table small { font-size: 10px; font-weight: 600; color: var(--muted); }
.hh-table.busy { background: #fff1e6; border-color: #fdba74; }
.hh-table.mine { background: var(--green-50); border-color: #86d69c; }
.hh-table.check { background: #f1eafe; border-color: #c4b5fd; }
.hh-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hh-cat { border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); cursor: pointer; text-align: left; padding: 0; }
.hh-cat .ph { height: 84px; }
.hh-cat span { display: block; padding: 8px 10px; font-weight: 700; font-size: 15px; }
.hh-items .hh-item { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; margin-bottom: 8px; cursor: pointer; width: 100%; text-align: left; }
.hh-item .ph { width: 64px; height: 64px; border-radius: 10px; flex: none; }
.hh-item .nm { font-weight: 700; font-size: 16px; }
.hh-item .pr { font-weight: 700; color: var(--green-600); }
.hh-sheet { position: fixed; left: 50%; transform: translateX(-50%); bottom: 62px; width: min(520px, 100%); background: var(--navy-900); color: #fff; display: flex; align-items: center; gap: 12px; padding: 12px 16px; z-index: 15; cursor: pointer; }
.hh-sheet b { font-size: 16px; }
.hh-card { background: #fff; border-radius: 14px; border: 1px solid var(--line); padding: 14px; }
.hh-title { font-weight: 700; font-size: 15px; margin: 14px 2px 8px; }
.hh-actions { position: fixed; bottom: 62px; left: 50%; transform: translateX(-50%); width: min(520px, 100%); background: #fff; border-top: 1px solid var(--line); padding: 10px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; z-index: 15; }
.hh-actions .btn { height: 54px; font-size: 16px; }
.hh-result { text-align: center; padding: 20px 10px; }
.hh-result h2 { font-size: 24px; color: var(--green-600); }
.hh .mod-opts { grid-template-columns: 1fr; }
.hh .mod-opt { min-height: 54px; font-size: 17px; }

/* ---------- Charts ---------- */
.chart { width: 100%; height: 240px; }
.chart text { font-size: 11px; fill: var(--muted); font-family: var(--font); }
.donut-wrap { display: flex; align-items: center; gap: 22px; }
.donut-legend { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.donut-legend div { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.donut-legend i { width: 12px; height: 12px; border-radius: 3px; }
.bar-list div { display: grid; grid-template-columns: 140px 1fr 80px; gap: 10px; align-items: center; padding: 6px 0; font-size: 13px; }
.bar-list .bar { height: 10px; background: #eef1f6; border-radius: 99px; overflow: hidden; }
.bar-list .bar i { display: block; height: 100%; background: var(--blue); border-radius: 99px; }

/* ---------- Receipt (print) ---------- */
.receipt80 { width: 72mm; font-family: "Courier New", monospace; font-size: 12px; color: #000; }
#print-frame { position: fixed; width: 0; height: 0; border: 0; right: 0; bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .pos { grid-template-columns: 84px minmax(0, 1fr) 340px; }
  .pos-rail a, .pos-rail button { width: 70px; }
  .kds-board { grid-template-columns: 1fr 1.3fr 1fr; }
  .kds-board .kds-col:nth-child(4) { display: none; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .grid.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.split, .grid.k3 { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; justify-items: center; }
  .auth .side.left { text-align: center; }
  .auth .side.right { display: none; }
  .pay { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 250px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .menu-toggle { display: inline-flex; }
  .topbar { padding: 0 12px; }
  .topbar .clock { display: none; }
  .main { padding: 16px 12px 40px; }
  .pos { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .pos-rail { display: none; }
  .check-panel { border-left: 0; border-top: 1px solid var(--line); max-height: 45vh; }
  .form-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kds { grid-template-rows: auto minmax(0, 1fr) auto; }
  .kds-top { flex-wrap: wrap; padding: 10px; gap: 10px; }
  .kds-counts { margin-left: 0; }
  .kds-board { grid-template-columns: 1fr; overflow-y: auto; }
  .kds-board .kds-col:nth-child(4) { display: flex; }
  .auth-foot { position: static; margin-top: 20px; flex-direction: column; gap: 4px; text-align: center; }
  .bigitem { grid-template-columns: 60px 34px 1fr auto; }
  .bigitem .ph { height: 50px; }
}
@media (max-width: 560px) {
  .grid.k2 { grid-template-columns: 1fr; }
  .grid.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tips { grid-template-columns: repeat(3, 1fr); }
  .pay-methods { grid-template-columns: repeat(2, 1fr); }
  .bar-list div { grid-template-columns: 90px 1fr 70px; }
}
@media print {
  body * { visibility: hidden; }
  .print-area, .print-area * { visibility: visible; }
  .print-area { position: absolute; left: 0; top: 0; }
}


/* =====================================================================
   Round 2 — navigation, typography, i18n, identity, responsive shell
   ===================================================================== */
.layout { grid-template-columns: 248px minmax(0, 1fr); }
.content { min-width: 0; display: flex; flex-direction: column; }
.sidebar { background: linear-gradient(180deg, #0b1b33 0%, #0a1830 60%, #081427 100%); scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.12) transparent; }
.sidebar-brand { display: flex; justify-content: center; padding: 22px 16px 18px; border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 6px; }
.sidebar-brand .brand { align-items: center; text-align: center; padding: 0; }
.brand .hat-wrap { display: none; }
.sidebar-brand .brand .hat-wrap, .brand.lg .hat-wrap { display: block; }
.sidebar-brand .brand .hat { width: 30px; height: 26px; margin: 0 auto 2px; color: var(--brand-green); }
.sidebar-brand .brand .word { font-size: 30px; justify-content: center; font-family: var(--font-display); }
.sidebar-brand .brand .sub { letter-spacing: .14em; text-transform: uppercase; font-size: 9.5px; font-weight: 600; color: #8ea3c2; margin-top: 5px; }
.nav { gap: 0; padding: 4px 10px 12px; }
.nav-group { margin-top: 6px; }
.nav-group-head { width: 100%; display: flex; align-items: center; justify-content: space-between; background: none; border: 0; color: #7189ab; font-size: 10.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: 8px 12px 6px; cursor: pointer; border-radius: 6px; }
.nav-group-head:hover { color: #b9c7dc; }
.nav-group-head svg { width: 14px; height: 14px; transition: transform .18s; }
.nav-group.collapsed .nav-group-head svg { transform: rotate(-90deg); }
.nav-items { display: grid; gap: 2px; overflow: hidden; }
.nav-group.collapsed .nav-items { display: none; }
.nav a { height: 38px; font-size: 13.5px; position: relative; }
.nav a .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav a.active { background: linear-gradient(90deg, #1f6bf2, #2f7bff); box-shadow: 0 6px 16px rgba(31,107,242,.35); }
.nav a.active::before { content: ""; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand-green); }
.nav a.locked { color: #7d8ca3; }
.nav a .soon.lock { padding: 2px 4px; display: inline-grid; place-items: center; }
.nav a .soon.lock svg { width: 11px; height: 11px; }
.sidebar .user .btn.icon { color: #9fb0c8; width: 34px; height: 34px; }
.sidebar .user .btn.icon:hover { background: rgba(255,255,255,.08); color: #fff; }
.avatar { background-size: cover; background-position: center; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.avatar.has-img { color: transparent; text-shadow: none; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.avatar.xl { width: 112px; height: 112px; font-size: 38px; }
.avatar.sm { width: 26px; height: 26px; font-size: 10px; }
.page-head h1 { font-size: 24px; letter-spacing: -.015em; }
.card h2, .card h3 { font-family: var(--font-display); }
.topbar { gap: 10px; }
.lang-toggle { gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); padding: 0 10px; }
.lang-toggle svg { width: 16px; height: 16px; }
.lang-toggle span.on { color: var(--blue); }
.lang-toggle .sl { opacity: .4; }
.terminal-badge { --tc: #1f6bf2; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 999px; font-weight: 800; font-size: 13px;
  background: color-mix(in srgb, var(--tc) 14%, #fff); color: var(--tc); border: 1px solid color-mix(in srgb, var(--tc) 35%, #fff); white-space: nowrap; }
.terminal-badge svg { width: 15px; height: 15px; }
.terminal-badge small { font-weight: 600; color: var(--ink-2); font-size: 11px; }
.terminal-badge.dark { background: color-mix(in srgb, var(--tc) 30%, #0b1b33); color: #fff; border-color: color-mix(in srgb, var(--tc) 60%, #0b1b33); }
.terminal-badge.dark small { color: #c9d4e5; }
.suspended-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--red-50); color: #9f1d17; border-bottom: 1px solid #f7c6c3; padding: 10px 24px; font-size: 13px; }
.suspended-banner svg { width: 18px; height: 18px; }
.scrim { display: none; }
.ph .food-ic { position: relative; display: grid; place-items: center; width: 46%; max-width: 64px; aspect-ratio: 1; color: rgba(255,255,255,.95); filter: drop-shadow(0 3px 8px rgba(0,0,0,.18)); }
.ph .food-ic svg { width: 100%; height: 100%; stroke-width: 1.6; }
.ph .ini { display: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.lg svg { width: 22px; height: 22px; }
.icon-chip { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--blue-50); color: var(--blue); }
.icon-chip svg { width: 20px; height: 20px; }
.icon-chip.green { background: var(--green-50); color: var(--green); }
.icon-chip.orange { background: var(--orange-50); color: var(--orange); }
.icon-chip.red { background: var(--red-50); color: var(--red); }
.icon-chip.purple { background: #f1ebfe; color: var(--purple); }
.module-lock { max-width: 560px; margin: 40px auto; text-align: center; padding: 40px 28px; }
.module-lock .icon-chip { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; }
.module-lock .icon-chip svg { width: 30px; height: 30px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: 0; padding: 10px 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabs button svg { width: 16px; height: 16px; }
.tabs button.active { color: var(--blue); border-bottom-color: var(--blue); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stat { padding: 16px; display: flex; gap: 12px; align-items: center; }
.stat .v { font-size: 22px; font-weight: 800; font-family: var(--font-display); letter-spacing: -.02em; }
.stat .k { font-size: 12px; color: var(--muted); font-weight: 600; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--faint); }
.status-dot.green { background: var(--green); box-shadow: 0 0 0 3px var(--green-50); }
.status-dot.orange { background: var(--orange); box-shadow: 0 0 0 3px var(--orange-50); }
.status-dot.purple { background: var(--purple); box-shadow: 0 0 0 3px #f1ebfe; }
.status-dot.red { background: var(--red); box-shadow: 0 0 0 3px var(--red-50); }
.working-list { display: grid; gap: 10px; }
.working-list .w { display: flex; align-items: center; gap: 10px; }
.working-list .w .grow div:last-child { font-size: 12px; color: var(--muted); }
@media (max-width: 1100px) { .topbar .clock { display: none; } }
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { width: 272px; transform: translateX(-102%); transition: transform .22s ease; }
  body.nav-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(7,20,42,.45); z-index: 45; }
  .topbar { height: 56px; }
  .topbar .loc select { min-width: 0; max-width: 46vw; }
  .hide-sm { display: none; }
  .logout-top { display: none; }
  .page-head h1 { font-size: 20px; }
  .suspended-banner { padding: 10px 12px; }
  table.table { font-size: 13px; }
}
@media (max-width: 560px) {
  .terminal-badge small { display: none; }
  .lang-toggle .sl, .lang-toggle span:not(.on) { display: none; }
  .page-head .row.wrap { width: 100%; }
  .modal { width: 100% !important; max-width: none; border-radius: 16px 16px 0 0; align-self: flex-end; max-height: 92vh; }
  .overlay { place-items: end stretch; padding: 0; }
}

/* ---------- Sign-in scene (restaurant ambience) ---------- */
.shell-auth, .shell-kiosk { background: #120d0a; }
.auth { background: radial-gradient(1000px 520px at 50% -10%, rgba(255, 176, 77, .22), transparent 65%), radial-gradient(900px 600px at 0% 100%, rgba(240, 138, 18, .16), transparent 60%),
  linear-gradient(180deg, #0b1b33 0%, #111a2b 45%, #1d140e 100%); isolation: isolate; }
.auth::before { display: none; }
.auth-scene { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.scene-lights { position: absolute; top: 0; left: 50%; width: max(1340px, 110vw); transform: translateX(-50%); }
.scene-lights .bulb { fill: #ffd38a; filter: drop-shadow(0 0 8px #ffb347) drop-shadow(0 0 18px rgba(255, 170, 60, .7)); animation: twinkle 3.2s ease-in-out infinite; }
.scene-lights .b1 { animation-delay: -.8s; } .scene-lights .b2 { animation-delay: -1.6s; fill: #ffe7b8; } .scene-lights .b3 { animation-delay: -2.4s; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.scene-bokeh i { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255, 196, 120, .55), rgba(255, 160, 60, .08) 60%, transparent 70%); filter: blur(2px);
  animation: bokeh 18s ease-in-out infinite; opacity: .5; }
.scene-bokeh i:nth-child(3n) { background: radial-gradient(circle, rgba(120, 200, 140, .35), transparent 70%); }
.scene-bokeh i:nth-child(4n) { background: radial-gradient(circle, rgba(120, 160, 255, .3), transparent 70%); }
@keyframes bokeh { 0%, 100% { transform: translate(0, 0) scale(1); opacity: .35; } 50% { transform: translate(24px, -30px) scale(1.15); opacity: .7; } }
.scene-food span { position: absolute; bottom: -80px; width: 44px; height: 44px; color: rgba(255, 220, 170, .16); animation: floatUp 26s linear infinite; }
.scene-food span svg { width: 100%; height: 100%; stroke-width: 1.4; }
.scene-food span:nth-child(odd) { width: 32px; height: 32px; }
@keyframes floatUp { 0% { transform: translateY(0) rotate(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(-115vh) rotate(40deg); opacity: 0; } }
.scene-counter { position: absolute; left: 0; right: 0; bottom: 0; height: 17vh; min-height: 90px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 12px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .08) 0 2px, transparent 2px 140px),
  repeating-linear-gradient(180deg, rgba(255, 255, 255, .03) 0 3px, transparent 3px 11px), linear-gradient(180deg, #5a3a22, #3d2716 70%, #2a1b10); border-top: 3px solid #7a5234; }
.scene-cup { position: absolute; left: 7vw; bottom: calc(17vh - 34px); width: 150px; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .4)); }
.scene-cup .steam { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 60 140; animation: steam 3.6s ease-in-out infinite; }
.scene-cup .s2 { animation-delay: -1.2s; } .scene-cup .s3 { animation-delay: -2.4s; }
@keyframes steam { 0% { stroke-dashoffset: 200; opacity: 0; } 30% { opacity: .8; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.auth .brand-lockup .brand .hat-wrap { display: block; }
.auth .brand-lockup .brand .hat { width: 64px; height: 56px; color: var(--brand-green); margin-bottom: 6px; }
.auth .brand.lg .word { font-family: var(--font-display); }
.auth .tagline { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: #f6e9d6; }
.auth .script { font-family: var(--font-script); font-size: 58px; color: #fff3df; text-shadow: 0 4px 24px rgba(255, 170, 60, .35); }
.auth-card { background: rgba(18, 22, 32, .78); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-color: rgba(255, 220, 170, .14); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.auth-card.light { background: rgba(247, 242, 234, .96); }
.auth-card h1 { font-family: var(--font-display); }
.auth-foot { z-index: 1; color: #c9b9a3; align-items: center; }
.lang-toggle.on-dark { color: #c9b9a3; height: 30px; }
.lang-toggle.on-dark span.on { color: #ffd38a; }
@media (max-width: 1024px) { .scene-cup { display: none; } .auth .side.left { display: flex; flex-direction: column; align-items: center; } .auth .tagline { display: none; } }
@media (max-width: 560px) { .auth { padding: 20px 14px; } .auth .brand.lg .word { font-size: 44px; } .auth-card { padding: 22px 18px; } .scene-counter { height: 70px; min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .auth-scene *, .auth-scene *::before { animation: none !important; } }
.auth-card .card-ic { width: 54px; height: 54px; margin: -4px auto 12px; border-radius: 16px; display: grid; place-items: center; background: rgba(61, 179, 63, .16); color: #6bd46d; }
.auth-card .card-ic svg { width: 28px; height: 28px; }
.auth-card.light .card-ic { background: #e3f3e4; color: var(--green-600); }
.auth-card .card-ic.blue { background: var(--blue-50); color: var(--blue); }
.input-ic { position: relative; }
.input-ic > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #8ea3c2; pointer-events: none; }
.input-ic .input { padding-left: 42px; }
.input-ic .pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: #c4cfdf; }
.auth-card .hint { color: #9fb0c8; font-size: 13px; }
.auth-card .check { color: #dbe3ee; }
.auth-alt { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.auth-alt .btn { color: #c4cfdf; }
.auth-alt .btn:hover { background: rgba(255, 255, 255, .06); color: #fff; border-color: transparent; }
.auth-foot a { color: #e8d5b8; }
.code-input { text-transform: uppercase; text-align: center; font-size: 20px !important; letter-spacing: .08em; }
.kiosk-card { text-align: center; }
.kc-time { font-family: var(--font-display); font-size: 44px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.kc-date { color: var(--ink-2); margin: 6px 0 4px; text-transform: capitalize; }
.kc-emp { display: grid; justify-items: center; gap: 8px; margin-bottom: 14px; }
.kc-emp .avatar { box-shadow: 0 0 0 4px #fff, 0 10px 30px rgba(0, 0, 0, .18); }
.kc-name { font-family: var(--font-display); font-size: 24px; font-weight: 800; }
.kc-stats { display: flex; justify-content: center; gap: 10px; margin: 6px 0 16px; }
.kc-stats > div { background: #fff; border: 1px solid #e6dfd3; border-radius: 12px; padding: 8px 16px; display: grid; gap: 2px; min-width: 120px; }
.kc-stats small { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.kc-stats b { font-size: 18px; }
.kc-actions { display: grid; gap: 10px; margin-bottom: 10px; }
.btn.orange { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.purple { background: var(--purple); border-color: var(--purple); color: #fff; }
.kc-check { width: 76px; height: 76px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; margin: 0 auto 12px; animation: pop .3s; box-shadow: 0 0 0 10px rgba(34, 164, 71, .15); }
.kc-check svg { width: 40px; height: 40px; stroke-width: 3; }
@media (max-width: 1024px) { .auth-card { width: min(440px, 100%); } }
/* ---------- Employees ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .input { height: 40px; }
.toolbar select.input { width: auto; min-width: 140px; }
.emp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.emp-card { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 6px; padding: 0 14px 16px; text-align: center; cursor: pointer; font: inherit; color: inherit; transition: transform .12s, box-shadow .12s; }
.emp-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(15, 30, 54, .12); }
.emp-card .emp-top { width: calc(100% + 28px); height: 46px; background: linear-gradient(135deg, var(--ec), color-mix(in srgb, var(--ec) 55%, #0b1b33)); margin-bottom: -30px; }
.emp-card .avatar { box-shadow: 0 0 0 4px #fff; }
.emp-card.inactive { opacity: .6; }
.emp-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin-top: 2px; }
.emp-status { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.emp-meta { font-size: 12px; }
.modal.wide { width: min(820px, 100%); }
.profile-head { display: flex; gap: 18px; align-items: center; padding: 22px 0 16px; position: relative; }
.profile-head::before { content: ""; position: absolute; left: -20px; right: -20px; top: -4px; height: 70px; background: linear-gradient(135deg, var(--ec), color-mix(in srgb, var(--ec) 50%, #0b1b33)); z-index: 0; opacity: .12; }
.profile-head > * { position: relative; }
.profile-head h2 { font-size: 24px; margin-bottom: 6px; }
.profile-photo { position: relative; }
.profile-photo .avatar { box-shadow: 0 0 0 4px #fff, 0 8px 20px rgba(0, 0, 0, .12); }
.profile-photo .photo-btn { position: absolute; right: -2px; bottom: 2px; width: 36px; height: 36px; padding: 0; border-radius: 50%; }
.kv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.kv { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.kv span { font-size: 12px; color: var(--muted); font-weight: 600; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches .sw { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatches .sw.on { box-shadow: 0 0 0 2px var(--ink); }
@media (max-width: 560px) { .kv-grid { grid-template-columns: 1fr; } .emp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .profile-head { flex-direction: column; text-align: center; } }
tr.sub-row td { background: #fafbfd; font-size: 13px; padding-top: 8px; padding-bottom: 8px; }
tr.sub-row td:first-child { padding-left: 46px; }
svg.chev { width: 16px; height: 16px; color: var(--muted); }
.emp-card { align-content: start; }
/* ---------- Floor plan ---------- */
.segmented.scroll { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.danger-text { border: 0; background: none; color: var(--red); cursor: pointer; padding: 0 8px; display: grid; place-items: center; }
.danger-text svg { width: 16px; height: 16px; }
.fp-wrap { position: relative; width: 100%; overflow-x: auto; overflow-y: hidden; border-radius: 12px; background: #e9e4dc; -webkit-overflow-scrolling: touch; }
.fp-sizer { pointer-events: none; }
.fp-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; border-radius: 12px; box-shadow: inset 0 0 0 6px rgba(40, 30, 20, .35); overflow: hidden; }
.floor-wood { background: repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 1px, transparent 1px 120px), repeating-linear-gradient(0deg, rgba(0,0,0,.07) 0 2px, transparent 2px 28px), linear-gradient(135deg, #d9b98f, #c9a274 60%, #caa577); }
.floor-tile { background: repeating-conic-gradient(#efe9df 0 25%, #e0d6c6 0 50%) 0 0 / 60px 60px; }
.floor-concrete { background: radial-gradient(rgba(0,0,0,.05) 1px, transparent 1.5px) 0 0 / 14px 14px, linear-gradient(135deg, #cfd3d6, #b9bec3); }
.floor-carpet { background: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 3px, transparent 3px 6px), linear-gradient(135deg, #7a2e3a, #5d2130); }
.floor-terrace { background: repeating-linear-gradient(90deg, rgba(0,0,0,.12) 0 3px, transparent 3px 46px), linear-gradient(135deg, #b99a78, #9c7b58); }
.fp-stage.editing { background-image: linear-gradient(rgba(31,107,242,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(31,107,242,.08) 1px, transparent 1px), var(--fp-bg, none); background-size: 20px 20px, 20px 20px, auto; }
.fp-stage.editing.floor-wood { --fp-bg: linear-gradient(135deg, #d9b98f, #c9a274 60%, #caa577); }
.fp-stage.editing.floor-tile { --fp-bg: linear-gradient(#ece5da, #ece5da); }
.fp-stage.editing.floor-concrete { --fp-bg: linear-gradient(135deg, #cfd3d6, #b9bec3); }
.fp-stage.editing.floor-carpet { --fp-bg: linear-gradient(135deg, #7a2e3a, #5d2130); }
.fp-stage.editing.floor-terrace { --fp-bg: linear-gradient(135deg, #b99a78, #9c7b58); }
.fp-el { position: absolute; box-sizing: border-box; user-select: none; touch-action: none; }
.fp-table { cursor: pointer; }
.fp-table > .top { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: #fff; text-align: center; line-height: 1.1; pointer-events: none; z-index: 2; }
.fp-table::before { content: ""; position: absolute; inset: 0; border-radius: 12px; background: #6b7280; box-shadow: 0 6px 14px rgba(0,0,0,.25), inset 0 -4px 0 rgba(0,0,0,.15); z-index: 1; transition: background .2s; }
.fp-table.round::before, .fp-table.bar_stool::before { border-radius: 50%; }
.fp-table.oval::before { border-radius: 50% / 50%; }
.fp-table.booth::before { border-radius: 10px 10px 4px 4px; box-shadow: 0 -12px 0 -2px #5b3b25, 0 6px 14px rgba(0,0,0,.25); }
.fp-table b { font-size: 15px; font-weight: 800; }
.fp-table small { font-size: 11px; font-weight: 700; opacity: .95; }
.fp-table .meta { font-size: 10px; font-weight: 600; opacity: .9; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; }
.fp-table.bar_stool b { font-size: 11px; }
.fp-table .chair { position: absolute; width: 22px; height: 12px; border-radius: 6px 6px 3px 3px; background: #4b3a2b; box-shadow: 0 2px 4px rgba(0,0,0,.25); z-index: 0; }
.fp-stage:not(.editing) .fp-table::before { background: #3aa84a; }
.fp-table.st-AVAILABLE::before { background: #3aa84a !important; }
.fp-table.st-SEATED::before, .fp-table.st-ORDERING::before { background: #f59e0b !important; }
.fp-table.st-KITCHEN::before, .fp-table.st-DINING::before { background: #e0352b !important; }
.fp-table.st-CHECK_REQUESTED::before { background: #7c3aed !important; }
.fp-table.st-PAYMENT::before { background: #1f6bf2 !important; }
.fp-table.st-NEEDS_ATTENTION::before { background: #991b1b !important; animation: attn 1.2s ease-in-out infinite; }
@keyframes attn { 50% { box-shadow: 0 0 0 8px rgba(185, 28, 28, .35); } }
.fp-table.mine::after { content: ""; position: absolute; inset: -6px; border-radius: 16px; border: 3px dashed #fff; z-index: 3; pointer-events: none; }
.fp-table.round.mine::after { border-radius: 50%; }
.fp-stage.editing .fp-table::before { background: #475569; }
.fp-table:hover::before { filter: brightness(1.08); }
.fp-obj { display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 12px; border-radius: 8px; color: #fff; overflow: hidden; }
.fp-obj svg { width: 18px; height: 18px; flex: none; }
.fp-obj.o-bar { background: linear-gradient(180deg, #6b4428, #4a2e1a); border-radius: 10px; box-shadow: inset 0 6px 0 rgba(255,255,255,.12), 0 8px 18px rgba(0,0,0,.3); }
.fp-obj.o-front_desk, .fp-obj.o-host_stand, .fp-obj.o-pos_station { background: linear-gradient(180deg, #334155, #1e293b); box-shadow: inset 0 4px 0 rgba(255,255,255,.1), 0 6px 14px rgba(0,0,0,.25); }
.fp-obj.o-pos_station { background: linear-gradient(180deg, #1f6bf2, #1a4fb8); }
.fp-obj.o-kitchen { background: repeating-linear-gradient(45deg, #94a3b8 0 10px, #a8b4c4 10px 20px); color: #0f172a; border: 3px solid #64748b; }
.fp-obj.o-restroom { background: #e2e8f0; color: #334155; border: 3px solid #94a3b8; }
.fp-obj.o-stage { background: linear-gradient(180deg, #1e1b4b, #312e81); box-shadow: 0 6px 14px rgba(0,0,0,.3); }
.fp-obj.o-entrance { background: repeating-linear-gradient(90deg, #22a447 0 12px, #1c8d3c 12px 24px); border-radius: 4px; }
.fp-obj.o-entrance:not(.thin) { color: #fff; }
.fp-obj.o-wall { background: #1f2937; border-radius: 3px; }
.fp-obj.o-window { background: linear-gradient(90deg, #bae6fd, #e0f2fe, #bae6fd); border: 1px solid #7dd3fc; border-radius: 2px; }
.fp-obj.o-plant { background: radial-gradient(circle, #4ade80, #15803d 70%); border-radius: 50%; color: #dcfce7; box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.fp-obj.o-plant svg { width: 60%; height: 60%; }
.fp-obj.o-divider { background: repeating-linear-gradient(90deg, #78716c 0 8px, #a8a29e 8px 16px); border-radius: 4px; }
.fp-obj.o-label { background: rgba(255,255,255,.85); color: #0f172a; border-radius: 999px; font-size: 13px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.fp-stage.editing .fp-el { cursor: grab; }
.fp-stage.editing .fp-el:active { cursor: grabbing; }
.fp-el.selected { outline: 2px solid #1f6bf2; outline-offset: 4px; z-index: 10; }
.fp-el .handle { position: absolute; z-index: 11; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid #1f6bf2; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.fp-el .handle.resize { right: -13px; bottom: -13px; cursor: nwse-resize; }
.fp-el .handle.rotate { left: 50%; top: -34px; transform: translateX(-50%); width: 24px; height: 24px; display: grid; place-items: center; cursor: grab; color: #1f6bf2; }
.fp-el .handle.rotate svg { width: 13px; height: 13px; }
.fp-editor { display: grid; grid-template-columns: 210px minmax(0, 1fr) 240px; gap: 12px; align-items: start; }
.fp-palette, .fp-inspector { padding: 12px; position: sticky; top: 76px; max-height: calc(100vh - 100px); overflow-y: auto; }
.fp-pal-title { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 6px 0 8px; }
.fp-pal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.fp-pal-btn { display: grid; justify-items: center; gap: 4px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 11px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.fp-pal-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-50); }
.fp-pal-btn svg { width: 20px; height: 20px; }
.ph-shape { width: 22px; height: 22px; background: #64748b; border-radius: 4px; }
.ph-shape.round, .ph-shape.bar_stool { border-radius: 50%; }
.ph-shape.bar_stool { width: 12px; height: 12px; margin: 5px; }
.ph-shape.rect { width: 30px; height: 18px; margin: 2px 0; }
.ph-shape.oval { width: 32px; height: 18px; border-radius: 50%; margin: 2px 0; }
.ph-shape.booth { box-shadow: 0 -5px 0 -1px #5b3b25; margin-top: 4px; height: 18px; }
.fp-center { min-width: 0; }
.fp-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.check.sm { font-size: 13px; }
.fp-inspector .field { margin-bottom: 10px; }
.fp-inspector .row .field { flex: 1; min-width: 0; }
.fp-counts { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 10px; }
.fp-counts b { color: var(--ink); font-size: 16px; }
.small { font-size: 12px; }
svg.flip { transform: scaleX(-1); }
.btn.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(34,164,71,.25); } }
.legend i[class^="st-"] { display: inline-block; width: 12px; height: 12px; border-radius: 4px; }
.legend i.st-AVAILABLE { background: #3aa84a; } .legend i.st-SEATED { background: #f59e0b; } .legend i.st-KITCHEN { background: #e0352b; }
.legend i.st-CHECK_REQUESTED { background: #7c3aed; } .legend i.st-PAYMENT { background: #1f6bf2; } .legend i.st-NEEDS_ATTENTION { background: #991b1b; }
.floor-host { position: relative; }
.floor-host > .empty { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(255,255,255,.92); border-radius: 14px; padding: 18px 22px; max-width: 420px; }
@media (max-width: 1180px) { .fp-editor { grid-template-columns: 180px minmax(0, 1fr); } .fp-inspector { grid-column: 1 / -1; position: static; max-height: none; } }
@media (max-width: 760px) {
  .fp-editor { grid-template-columns: 1fr; }
  .fp-palette { position: static; max-height: none; order: 2; }
  .fp-center { order: 1; }
  .fp-inspector { order: 3; }
  .fp-pal-grid { grid-template-columns: repeat(4, 1fr); }
}
/* ---------- POS round 2 ---------- */
.pos { grid-template-columns: 96px minmax(0, 1fr) 400px; }
.pos-top { flex-wrap: nowrap; }
.pos-top .lang-toggle { flex: none; }
.pos-home { display: none; }
.term-slot { flex: none; }
.term-reg { color: var(--orange); border-color: #fcd9a6; background: var(--orange-50); }
.pos-user .avatar { width: 38px; height: 38px; }
.item-card { position: relative; }
.item-card .sold-out { position: absolute; top: 8px; left: 8px; background: rgba(15, 23, 42, .85); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; z-index: 2; }
.pos-rail button.clock-on_shift { color: #86efac; }
.pos-rail button.clock-on_break, .pos-rail button.clock-on_lunch { color: #fcd34d; }
.member-add { margin-top: 10px; width: 100%; display: flex; align-items: center; gap: 10px; border: 1px dashed #c7d2fe; background: #f5f7ff; color: var(--blue); font-weight: 600; border-radius: 10px; padding: 9px 12px; cursor: pointer; }
.member-add svg { width: 18px; height: 18px; }
.member-add span { flex: 1; text-align: left; }
.member-card { margin-top: 10px; border-radius: 12px; padding: 10px 10px 10px 12px; background: linear-gradient(135deg, #eef2ff, #f8fafc); border: 1px solid #dfe5f5; }
.member-card.tier-silver { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); border-color: #cbd5e1; }
.member-card.tier-gold { background: linear-gradient(135deg, #fff7e0, #fde68a); border-color: #f6d36b; }
.tier-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--blue); color: #fff; flex: none; }
.tier-ic svg { width: 18px; height: 18px; }
.tier-ic.sm { width: 30px; height: 30px; }
.tier-silver .tier-ic, .tier-ic.tier-silver { background: #64748b; }
.tier-gold .tier-ic, .tier-ic.tier-gold { background: #d97706; }
.member-results { display: grid; gap: 6px; max-height: 50vh; overflow-y: auto; }
.member-row, .reward-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; color: inherit; }
.member-row:hover, .reward-row:hover:not(:disabled) { border-color: var(--blue); background: var(--blue-50); }
.reward-row.locked { opacity: .55; cursor: not-allowed; }
.member-hero { border-radius: 14px; padding: 14px; color: #fff; background: linear-gradient(135deg, #1f6bf2, #173f8f); }
.member-hero.tier-silver { background: linear-gradient(135deg, #64748b, #334155); }
.member-hero.tier-gold { background: linear-gradient(135deg, #f59e0b, #b45309); }
.member-hero .pts { font-size: 28px; font-weight: 800; font-family: var(--font-display); line-height: 1; }
.member-hero .bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .25); margin: 12px 0 6px; overflow: hidden; }
.member-hero .bar i { display: block; height: 100%; background: #fff; border-radius: 6px; }
.disc-lines { padding: 6px 16px; border-top: 1px dashed var(--line); display: grid; gap: 4px; }
.disc { display: flex; align-items: center; gap: 8px; color: var(--green-600); font-size: 13px; font-weight: 600; }
.disc svg { width: 16px; height: 16px; }
.disc .btn.icon.sm { width: 26px; height: 26px; color: var(--muted); }
.totals .disc-t { color: var(--green-600); }
.check-sub .btn svg { width: 16px; height: 16px; }
.check-sub .btn { gap: 5px; }
.modal.xwide { width: min(1100px, 100%); }
.sheet-bar, .sheet-scrim { display: none; }
@media (max-width: 1280px) { .pos { grid-template-columns: 84px minmax(0, 1fr) 360px; } .pos-top .search { max-width: 280px; } }
@media (max-width: 1100px) { .check-sub .btn .lbl { display: none; } }
@media (max-width: 860px) {
  .pos { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 100dvh; }
  .pos-home { display: inline-flex; }
  .pos-top { padding: 8px 10px; gap: 8px; }
  .pos-top .segmented button { padding: 0 10px; }
  .pos-top .search { max-width: none; min-width: 0; }
  .pos-top .search .input { min-width: 0; }
  .pos-top .lang-toggle, .pos-user { display: none; }
  .item-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .pos-items { padding-bottom: 90px; }
  .check-panel { position: fixed; left: 0; right: 0; bottom: 0; height: 88dvh; max-height: none; z-index: 60; border: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .25);
    transform: translateY(105%); transition: transform .25s ease; padding-bottom: env(safe-area-inset-bottom); }
  body.sheet-open .check-panel { transform: none; }
  .sheet-bar { display: flex; align-items: center; gap: 10px; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 55; height: 58px; border: 0; border-radius: 14px;
    background: var(--navy-900); color: #fff; font: inherit; font-weight: 700; padding: 0 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
  .sheet-bar svg { width: 20px; height: 20px; }
  .sheet-bar span { text-align: left; }
  body.sheet-open .sheet-bar { display: none; }
  body.sheet-open .sheet-scrim { display: block; position: fixed; inset: 0; background: rgba(7, 20, 42, .45); z-index: 58; }
  .term-reg span { display: none; }
}
.pos-top .segmented button { white-space: nowrap; }
.hh-me { border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; width: 40px; height: 40px; }
.hh-me .avatar.sm { width: 34px; height: 34px; font-size: 12px; }
.auth .script, .kc-time { font-kerning: normal; }
.es-missing { margin-left: 6px; font-size: 9px; height: 16px; padding: 0 4px; vertical-align: middle; }
.term-num { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; flex: none; }
.term-num.none { background: #eef1f6; color: var(--ink-2); }
.term-num svg { width: 16px; height: 16px; }
/* ---------- Loyalty ---------- */
.tier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.tier-card { display: flex; gap: 12px; align-items: center; border-radius: 14px; padding: 14px; background: linear-gradient(135deg, #eef2ff, #f8fafc); border: 1px solid #dfe5f5; }
.tier-card.tier-silver { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); border-color: #cbd5e1; }
.tier-card.tier-gold { background: linear-gradient(135deg, #fff7e0, #fde68a); border-color: #f6d36b; }
.tier-card .tier-ic { width: 44px; height: 44px; border-radius: 12px; }
.tier-card .tier-ic svg { width: 22px; height: 22px; }
.reward-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.reward-card { display: flex; gap: 12px; align-items: center; padding: 12px; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.reward-card:hover { border-color: var(--blue); }
.reward-card.inactive { opacity: .55; }
@media (max-width: 700px) { .tier-grid { grid-template-columns: 1fr; } }
/* ---------- Digital signage ---------- */
.shell-player { background: #000; }
body.sg-fullscreen { overflow: hidden; }
body.hide-cursor, body.hide-cursor * { cursor: none !important; }
.sg-host { position: fixed; inset: 0; background: #000; }
.sg-stage { position: absolute; inset: 0; overflow: hidden; background: #000; container-type: size; }
.sg-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.sg-slide.in { opacity: 1; }
.sg-media, .sg-media img, .sg-media video { width: 100%; height: 100%; display: block; }
.sg-media { background: #000; }
.sg-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 6cqw; gap: 2cqh; }
.sg-headline { font-family: var(--font-display); font-weight: 800; font-size: 7cqw; line-height: 1.05; letter-spacing: -.02em; }
.sg-subtext { font-size: 3cqw; opacity: .85; }
.sg-menu { position: absolute; inset: 0; padding: 3.5cqh 3cqw; display: flex; flex-direction: column; gap: 2cqh; font-size: 1.6cqw; }
.sg-menu.theme-dark { background: radial-gradient(1200px 600px at 20% 0%, #1e293b, #0b1220); color: #f8fafc; }
.sg-menu.theme-light { background: #fbf7f0; color: #1f2937; }
.sg-menu.theme-chalk { background: repeating-linear-gradient(0deg, rgba(255,255,255,.015) 0 2px, transparent 2px 4px), #1f2a24; color: #f1f5f0; font-family: var(--font-script); }
.sg-title { font-family: var(--font-script); font-size: 4.2cqw; text-align: center; line-height: 1; color: #fbbf24; }
.sg-cols { display: grid; gap: 3cqw; flex: 1; min-height: 0; }
.sg-cat h2 { font-family: var(--font-display); font-size: 2.4cqw; text-transform: uppercase; letter-spacing: .06em; border-bottom: .35cqw solid; padding-bottom: .8cqh; margin-bottom: 1.4cqh; }
.theme-chalk .sg-cat h2 { font-family: var(--font-script); text-transform: none; letter-spacing: 0; }
.sg-cat h2 small { display: block; font-size: 1.2cqw; opacity: .7; text-transform: none; letter-spacing: 0; font-weight: 500; }
.sg-item { display: flex; align-items: center; gap: 1cqw; padding: 1cqh 0; border-bottom: 1px dashed rgba(148, 163, 184, .25); }
.sg-item.out { opacity: .45; }
.sg-img { width: 5cqw; height: 5cqw; border-radius: .6cqw; background-size: cover; background-position: center; flex: none; }
.sg-txt { flex: 1; min-width: 0; }
.sg-name { font-weight: 700; font-size: 1.7cqw; }
.sg-es { font-weight: 400; opacity: .7; }
.sg-desc { font-size: 1.1cqw; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-price { font-weight: 800; font-size: 1.9cqw; color: #fbbf24; font-variant-numeric: tabular-nums; }
.theme-light .sg-price { color: #b45309; }
.sg-idle { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; background: radial-gradient(circle at 50% 40%, #13284a, #07142a); color: #c9d4e5; }
.sg-status { position: fixed; right: 16px; bottom: 16px; background: rgba(0, 0, 0, .65); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 13px; display: flex; gap: 6px; align-items: center; z-index: 5; }
.sg-status svg { width: 16px; height: 16px; }
.sg-empty { position: absolute; inset: 0; display: grid; place-content: center; color: #94a3b8; }
.sg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.sg-screen { overflow: hidden; }
.sg-tv { background: #0f172a; padding: 14px 14px 18px; position: relative; }
.sg-tv::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 60px; height: 4px; border-radius: 4px; background: #334155; transform: translateX(-50%); }
.sg-tv-inner { aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; position: relative; display: grid; place-items: center; container-type: size; }
.sg-tv.portrait .sg-tv-inner { aspect-ratio: 9 / 16; max-height: 220px; margin: 0 auto; }
.sg-tv-inner .sg-stage { position: absolute; inset: 0; }
.sg-noplay svg { width: 40px; height: 40px; color: #334155; }
.sg-howto { max-width: 620px; margin: 0 auto; }
.sg-howto ol { color: var(--ink-2); line-height: 1.7; }
.sg-howto code { display: inline-block; background: #f1f5f9; padding: 6px 10px; border-radius: 8px; }
.sg-preview { position: relative; width: 100%; background: #000; border-radius: 10px; overflow: hidden; margin: 0 auto; container-type: size; }
.sg-preview .sg-stage { position: absolute; inset: 0; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.media-card { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; text-align: left; font: inherit; color: inherit; padding: 0; }
.media-card.pick { cursor: pointer; }
.media-card.pick:hover { border-color: var(--blue); }
.media-card > .btn { position: absolute; top: 6px; right: 6px; background: rgba(255,255,255,.9); }
.media-thumb { aspect-ratio: 16 / 9; background: #0f172a; position: relative; }
.media-thumb img, .media-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-thumb .badge { position: absolute; left: 6px; bottom: 6px; }
.media-thumb .badge svg { width: 12px; height: 12px; }
.media-meta { padding: 8px 10px; min-width: 0; }
.media-meta b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.pl-editor { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.pl-preview { position: sticky; top: 0; }
.slide-list { display: grid; gap: 8px; }
.slide-row { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; cursor: pointer; background: #fff; }
.slide-row.on { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); cursor: default; }
.slide-head { display: flex; align-items: center; gap: 8px; }
.slide-head > svg { width: 18px; height: 18px; color: var(--muted); }
.slide-n { width: 22px; height: 22px; border-radius: 6px; background: #eef1f6; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.slide-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.slide-fields .full { grid-column: 1 / -1; }
.days { display: inline-flex; gap: 3px; }
.day { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 12px; cursor: pointer; }
.day.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.input.time { width: 120px; }
svg.rot180 { transform: rotate(180deg); }
.feature-list { display: grid; gap: 10px; text-align: left; max-width: 420px; margin: 18px auto; }
.feature-list div { display: flex; gap: 10px; align-items: center; }
.feature-list svg { width: 20px; height: 20px; color: var(--purple); flex: none; }
.tabs .badge.sm { height: 18px; padding: 0 6px; font-size: 11px; }
@media (max-width: 900px) { .pl-editor { grid-template-columns: 1fr; } .pl-preview { position: static; order: -1; } .slide-fields { grid-template-columns: 1fr; } }
/* ---------- Billing ---------- */
.module-list { display: grid; gap: 10px; }
.module-row { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px; transition: background .15s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:disabled + span { opacity: .5; cursor: not-allowed; }
.est-lines { display: grid; gap: 4px; margin-top: 10px; padding: 10px; background: #f8fafc; border-radius: 10px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.plan-card { padding: 18px; }
.plan-card.inactive { opacity: .6; }
.plan-card .col svg { width: 14px; height: 14px; vertical-align: -2px; color: var(--muted); }
.plan-price { font-family: var(--font-display); font-size: 32px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0; }
.plan-price small { font-size: 14px; color: var(--muted); font-weight: 600; }
.invoice-frame { width: 100%; height: 70vh; border: 0; border-radius: 10px; background: #f1f5f9; }
.inv-line .input { height: 38px; }
.balance-banner { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; background: var(--orange-50); border-color: #fcd9a6; }
.balance-banner.overdue { background: var(--red-50); border-color: #f7c6c3; }
.balance-banner > svg { width: 22px; height: 22px; color: var(--orange); }
.balance-banner.overdue > svg { color: var(--red); }
table.data td.num { white-space: nowrap; }
.working-list.card-pad { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
/* ---------- Gratuity ---------- */
.link-btn { border: 0; background: none; color: var(--blue); font-weight: 600; font-size: 12px; cursor: pointer; margin-left: 6px; padding: 0; }
.totals .grat-t span:first-child { display: inline-flex; align-items: center; gap: 2px; }
.totals .grat-t svg { width: 14px; height: 14px; }
.gratuity-note { display: flex; gap: 10px; align-items: center; background: var(--blue-50); border: 1px solid #cfe0fd; color: #1e3a8a; border-radius: 10px; padding: 10px 12px; }
.gratuity-note svg { width: 20px; height: 20px; flex: none; }
.btn.survey-cta { background: linear-gradient(135deg, #f59e0b, #db2777); color: #fff; border: 0; font-weight: 700; }
.btn.survey-cta .e { font-size: 20px; }
/* ---------- Guest survey ---------- */
.shell-public { background: radial-gradient(900px 500px at 50% -10%, rgba(255, 176, 77, .25), transparent 70%), linear-gradient(180deg, #fff8ef, #fdf2e3); min-height: 100vh; }
.gs-page { max-width: 560px; margin: 0 auto; padding: 18px 14px 24px; }
.gs-foot { text-align: center; color: #a8927a; font-size: 12px; padding: 0 0 24px; }
.gs-overlay { position: fixed; inset: 0; z-index: 300; background: linear-gradient(180deg, #fff8ef, #fdf2e3); overflow-y: auto; animation: fade .2s; }
.gs-host { max-width: 620px; margin: 0 auto; padding: 24px 18px; }
.gs { position: relative; background: #fff; border-radius: 22px; box-shadow: 0 20px 60px rgba(120, 72, 20, .14); padding: 20px 22px 24px; overflow: hidden; color: #2a1d12; }
.gs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.gs-brand { display: flex; align-items: center; gap: 12px; }
.gs-logo { max-width: 64px; max-height: 56px; border-radius: 8px; object-fit: contain; }
.gs-rest { font-family: var(--font-script); font-size: 30px; line-height: 1; color: #b45309; }
.gs-sub { font-size: 12px; color: #a8927a; margin-top: 4px; }
.gs-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin: 22px auto 4px; }
.gs-social a { font-size: 13px; font-weight: 600; color: #2563eb; text-decoration: none; }
.gs-social a:hover { text-decoration: underline; }
.gs-lang { display: inline-flex; background: #f5ece0; border-radius: 999px; padding: 3px; }
.gs-lang button { border: 0; background: none; font-weight: 700; font-size: 12px; padding: 5px 10px; border-radius: 999px; color: #8a6d52; cursor: pointer; }
.gs-lang button.on { background: #fff; color: #b45309; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.gs-progress { display: flex; gap: 6px; margin: 14px 0 6px; }
.gs-progress i { flex: 1; height: 4px; border-radius: 4px; background: #f1e4d3; }
.gs-progress i.on { background: linear-gradient(90deg, #f59e0b, #db2777); }
.gs-step { text-align: center; padding-top: 8px; animation: pop .25s; }
.gs-step h1 { font-family: var(--font-display); font-size: 26px; margin: 10px 0 4px; }
.gs-step h2 { font-family: var(--font-display); font-size: 20px; margin: 6px 0 14px; }
.gs-lead { color: #8a6d52; margin: 0 0 16px; }
.gs-server { display: inline-flex; align-items: center; gap: 10px; background: #fff7ed; border-radius: 999px; padding: 6px 16px 6px 6px; text-align: left; }
.gs-server small { display: block; color: #a8927a; font-size: 11px; }
.gs-server .avatar.lg { width: 44px; height: 44px; font-size: 16px; }
.gs-faces { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 8px 0 14px; }
.gs-face { border: 2px solid transparent; background: #fbf6ef; border-radius: 16px; padding: 12px 2px 8px; cursor: pointer; display: grid; gap: 4px; justify-items: center;
  animation: faceIn .45s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: calc(var(--i) * 60ms); transition: transform .12s; }
.gs-face .e { font-size: 38px; line-height: 1; transition: transform .15s; }
.gs-face .l { font-size: 11px; font-weight: 700; color: #8a6d52; }
.gs-face:hover .e { transform: scale(1.18) rotate(-6deg); }
.gs-face.on { border-color: #f59e0b; background: #fff3dc; }
@keyframes faceIn { from { transform: translateY(14px) scale(.8); opacity: 0; } }
.gs-items { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 4px 0 12px; }
.gs-items span { background: #f5ece0; color: #6b4f37; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.gs-reward { display: inline-flex; gap: 8px; align-items: center; background: linear-gradient(135deg, #fff3dc, #fde7f3); color: #9d174d; font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 999px; }
.gs-reward svg { width: 16px; height: 16px; }
.gs-reward.big { font-size: 16px; padding: 12px 18px; margin: 6px 0 14px; }
.gs-skip { display: block; margin: 14px auto 0; border: 0; background: none; color: #a8927a; cursor: pointer; text-decoration: underline; }
.gs-picked { display: flex; justify-content: center; align-items: center; gap: 8px; }
.gs-picked .e { font-size: 44px; animation: wobble .6s; }
@keyframes wobble { 30% { transform: rotate(-12deg) scale(1.1); } 60% { transform: rotate(8deg); } }
.gs-change { border: 0; background: none; color: #b45309; font-weight: 700; cursor: pointer; }
.gs-questions { display: grid; gap: 8px; text-align: left; }
.gs-q { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fbf6ef; border-radius: 14px; padding: 8px 12px; }
.gs-q-label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: #4a3423; }
.gs-q-label svg { width: 18px; height: 18px; color: #d97706; }
.gs-stars { display: flex; gap: 2px; }
.gs-stars button { border: 0; background: none; font-size: 28px; line-height: 1; color: #e7d8c4; cursor: pointer; padding: 0 1px; transition: transform .1s, color .1s; }
.gs-stars button.on { color: #f59e0b; }
.gs-stars button:active { transform: scale(1.3); }
.gs-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 16px 0; }
.gs-tag { border: 1.5px solid #eadbc8; background: #fff; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 600; color: #6b4f37; cursor: pointer; }
.gs-tag.on { background: #dcfce7; border-color: #22a447; color: #14532d; }
.gs-tag.neg.on { background: #fee2e2; border-color: #e0352b; color: #7f1d1d; }
.gs-nps { text-align: left; background: #fbf6ef; border-radius: 14px; padding: 10px 12px; }
.gs-nps-row { display: grid; grid-template-columns: repeat(11, 1fr); gap: 3px; margin-top: 8px; }
.gs-nps-row button { border: 0; border-radius: 8px; height: 34px; font-weight: 700; font-size: 13px; cursor: pointer; background: #fff; color: #6b4f37; }
.gs-nps-row button.on.lo { background: #e0352b; color: #fff; } .gs-nps-row button.on.mid { background: #f59e0b; color: #fff; } .gs-nps-row button.on.hi { background: #22a447; color: #fff; }
.gs-nps-legend { display: flex; justify-content: space-between; font-size: 11px; color: #a8927a; margin-top: 4px; }
.gs textarea, .gs input[type=email] { width: 100%; border: 1.5px solid #eadbc8; border-radius: 14px; padding: 12px; font: inherit; resize: vertical; background: #fffdf9; margin-bottom: 10px; }
.gs-check { display: flex; gap: 8px; align-items: center; justify-content: center; font-weight: 600; color: #6b4f37; margin: 4px 0 10px; }
.gs-check input { width: 18px; height: 18px; accent-color: #d97706; }
.gs-actions { display: flex; gap: 10px; justify-content: space-between; margin-top: 18px; }
.gs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 0 22px; height: 50px; font: inherit; font-weight: 800; font-size: 16px;
  background: linear-gradient(135deg, #f59e0b, #db2777); color: #fff; cursor: pointer; text-decoration: none; box-shadow: 0 8px 20px rgba(219, 39, 119, .25); }
.gs-btn svg { width: 20px; height: 20px; }
.gs-btn.big { flex: 1; height: 56px; }
.gs-btn.ghost { background: #f5ece0; color: #6b4f37; box-shadow: none; }
.gs-btn:disabled { opacity: .6; }
.gs-thanks .gs-btn { display: flex; margin: 10px auto 0; max-width: 320px; }
.gs-err { color: #b91c1c; font-weight: 600; min-height: 18px; }
.gs-big { font-size: 64px; animation: wobble .8s; }
.gs-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.gs-confetti i { position: absolute; top: -12px; left: var(--x); width: 8px; height: 14px; background: var(--c); border-radius: 2px; transform: rotate(var(--r)); animation: confetti 2.4s ease-in var(--d) forwards; }
@keyframes confetti { to { top: 110%; transform: rotate(calc(var(--r) + 540deg)) translateX(40px); opacity: .2; } }
@media (max-width: 420px) { .gs-face .e { font-size: 30px; } .gs-face .l { font-size: 10px; } .gs-stars button { font-size: 24px; } .gs { padding: 16px 14px 20px; } }
@media (prefers-reduced-motion: reduce) { .gs *, .gs-face { animation: none !important; } }
.set-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.tip-chip { display: inline-flex; align-items: center; gap: 4px; }
.tip-chip button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0; display: grid; }
.tip-chip svg { width: 13px; height: 13px; }
.tip-add { width: 80px; height: 32px; }
.grat-example { display: flex; gap: 10px; align-items: center; background: #f7f3ff; border: 1px solid #e3d8fd; border-radius: 12px; padding: 10px 12px; color: #4c1d95; }
.grat-example svg { width: 20px; height: 20px; flex: none; }
.howto { color: var(--ink-2); line-height: 1.8; padding-left: 20px; }
.gs-close { position: fixed; top: 12px; right: 12px; z-index: 2; }
label.chip { cursor: pointer; }
/* ---------- Guest feedback dashboard ---------- */
.fb-hero { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 14px; }
.fb-score { display: grid; place-content: center; text-align: center; padding: 18px; background: linear-gradient(160deg, #fff7ed, #fff); }
.fb-big { font-family: var(--font-display); font-size: 60px; font-weight: 800; line-height: 1; }
.fb-big.green { color: var(--green-600); } .fb-big.orange { color: var(--orange); } .fb-big.red { color: var(--red); }
.fb-stars { color: #f59e0b; font-size: 22px; letter-spacing: 2px; margin: 4px 0; }
.fb-bars { display: grid; gap: 10px; }
.fb-bar { display: grid; grid-template-columns: 150px 1fr 40px; align-items: center; gap: 10px; }
.fb-bar .lbl { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; }
.fb-bar .lbl svg { width: 16px; height: 16px; color: var(--muted); }
.fb-bar .track { height: 10px; background: #eef1f6; border-radius: 10px; overflow: hidden; }
.fb-bar .track i { display: block; height: 100%; border-radius: 10px; background: var(--blue); }
.fb-bar .track i.green { background: var(--green); } .fb-bar .track i.orange { background: var(--orange); } .fb-bar .track i.red { background: var(--red); }
.fb-leader .rank { width: 30px; text-align: center; font-weight: 800; }
.fb-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-weight: 600; }
.fb-tag b { font-size: 12px; background: rgba(0,0,0,.08); border-radius: 999px; padding: 0 6px; }
.fb-tag.good { background: #e8f6ec; color: #14532d; }
.fb-tag.bad { background: #fdecec; color: #7f1d1d; }
.fb-tag.sm { font-size: 12px; padding: 2px 8px; }
.fb-list { display: grid; }
.fb-item { display: flex; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line-2); }
.fb-item.low { background: #fffafa; box-shadow: inset 3px 0 0 var(--red); }
.fb-emoji { flex: none; width: 40px; text-align: center; font-size: 34px; line-height: 1; }
.fb-stars-sm { color: #f59e0b; letter-spacing: 1px; }
.fb-mini { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.fb-comment { margin: 8px 0; padding: 10px 14px; background: #f8fafc; border-left: 3px solid #cbd5e1; border-radius: 8px; font-style: italic; color: var(--ink); }
.fb-follow { margin-top: 8px; font-size: 12px; color: var(--green-600); font-weight: 600; }
.fb-follow svg, .fb-item .badge svg, .fb-item .small svg { width: 12px; height: 12px; vertical-align: -1px; }
.toast.low-rating { pointer-events: auto; }
@media (max-width: 860px) { .fb-hero { grid-template-columns: 1fr; } .fb-bar { grid-template-columns: 110px 1fr 34px; } }

/* ---------- Public landing page ---------- */
.shell-landing { background: #fbf8f3; color: var(--ink); font-size: 16px; height: auto; }
.shell-landing a { color: inherit; }
.lp-nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 12px max(16px, calc((100% - 1160px) / 2)); background: rgba(11, 27, 51, .94); backdrop-filter: blur(10px); color: #fff; }
.lp-nav nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; font-weight: 500; }
.lp-nav nav a { color: #c9d4e5; text-decoration: none; }
.lp-nav nav a:hover { color: #fff; }
.lp-logo { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-decoration: none; color: #fff !important; line-height: 1; }
.lp-hat { grid-row: 1 / 3; width: 36px; height: 32px; color: var(--brand-green); }
.lp-hat svg { width: 100%; height: 100%; }
.lp-word { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.lp-word .i { position: relative; display: inline-block; }
.lp-word .i::before { content: ""; position: absolute; left: 50%; top: -1px; width: .26em; height: .22em; background: var(--brand-green); transform: translateX(-50%); }
.lp-sub { font-size: 11px; color: #c9d4e5; font-weight: 500; }
.lp-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; background: var(--brand-green); color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none; border: 2px solid var(--brand-green); transition: transform .15s, box-shadow .15s; white-space: nowrap; }
.lp-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(61, 179, 63, .35); }
.lp-btn svg { width: 18px; height: 18px; }
.lp-btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .45); }
.lp-btn.ghost:hover { border-color: #fff; box-shadow: none; }
.lp-nav .lp-btn { padding: 8px 16px; font-size: 14px; }
.lp-hero { position: relative; overflow: hidden; text-align: center; color: #fff; padding: 150px 16px 150px; background: radial-gradient(ellipse at 50% 20%, #274a7e 0%, var(--navy-900) 55%, var(--navy-950) 100%); }
.lp-lights { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: max(1340px, 100%); height: auto; pointer-events: none; }
.lp-lights .bulb { fill: #ffd38a; filter: drop-shadow(0 0 6px #ffb347) drop-shadow(0 0 16px rgba(255, 170, 60, .7)); animation: twinkle 3.2s ease-in-out infinite; }
.lp-lights .b1 { animation-delay: .8s; } .lp-lights .b2 { animation-delay: 1.6s; } .lp-lights .b3 { animation-delay: 2.4s; }
.lp-hero-inner { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; }
.lp-kicker { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #ffd38a; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.lp-hero h1 { font-size: clamp(34px, 5.6vw, 60px); line-height: 1.08; font-weight: 800; letter-spacing: -.025em; word-spacing: 0; }
.lp-hero h1 span { display: block; color: var(--brand-green); font-family: var(--font-script); font-weight: 400; font-size: 1.05em; letter-spacing: 0; margin-top: 6px; }
.lp-lead { max-width: 640px; margin: 20px auto 30px; color: #c9d4e5; font-size: clamp(16px, 2vw, 19px); line-height: 1.55; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.lp-proof { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; list-style: none; padding: 0; margin: 34px 0 0; color: #c9d4e5; font-size: 14px; }
.lp-proof li { display: flex; align-items: center; gap: 8px; }
.lp-proof svg { width: 18px; height: 18px; color: var(--brand-green); }
.lp-counter { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: linear-gradient(180deg, #8a5a33 0%, #6e4526 40%, #54341c 100%); box-shadow: inset 0 6px 0 #a87447, 0 -12px 40px rgba(0, 0, 0, .35); }
.lp-counter::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 140px, rgba(0, 0, 0, .08) 140px 142px); }
.lp-section { max-width: 1160px; margin: 0 auto; padding: 88px 16px; }
.lp-section > h2, .lp-split h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; word-spacing: 0; }
#features > h2, #faq > h2 { text-align: center; }
.lp-section-lead { text-align: center; color: var(--muted); font-size: 18px; margin: 12px 0 44px; }
.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-card { background: #fff; border: 1px solid #efe7db; border-radius: 18px; padding: 26px; box-shadow: 0 1px 2px rgba(60, 40, 20, .05); transition: transform .2s, box-shadow .2s; }
.lp-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(60, 40, 20, .1); }
.lp-card h3 { font-size: 18px; margin: 16px 0 8px; }
.lp-card p { margin: 0; color: var(--ink-2); line-height: 1.55; font-size: 15px; }
.lp-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--green-50); color: var(--green-600); }
.lp-card:nth-child(3n+2) .lp-ic { background: var(--blue-50); color: var(--blue); }
.lp-card:nth-child(3n) .lp-ic { background: var(--orange-50); color: var(--orange); }
.lp-ic svg { width: 24px; height: 24px; }
.lp-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.lp-split p { color: var(--ink-2); font-size: 17px; line-height: 1.6; margin: 18px 0; }
.lp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.lp-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.lp-list svg { flex: none; width: 22px; height: 22px; color: var(--brand-green); margin-top: 1px; }
.lp-phone { justify-self: center; width: 290px; padding: 12px; border-radius: 42px; background: var(--navy-900); box-shadow: 0 30px 60px rgba(11, 27, 51, .3); transform: rotate(3deg); }
.lp-phone-screen { border-radius: 32px; background: linear-gradient(180deg, #fff 0%, #fff8ee 100%); padding: 34px 20px 28px; text-align: center; min-height: 500px; display: flex; flex-direction: column; gap: 16px; }
.lp-rest { font-weight: 800; font-family: var(--font-display); color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.lp-q { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.2; }
.lp-faces { display: flex; justify-content: space-between; font-size: 30px; }
.lp-faces span { opacity: .45; filter: grayscale(.6); }
.lp-faces .on { opacity: 1; filter: none; transform: scale(1.35); }
.lp-stars { color: #f59e0b; font-size: 28px; letter-spacing: 4px; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.lp-chips span { padding: 6px 10px; border-radius: 999px; background: var(--green-50); color: var(--green-600); font-size: 12px; font-weight: 600; }
.lp-pts { margin-top: auto; padding: 12px; border-radius: 14px; background: var(--navy-900); color: #ffd38a; font-weight: 700; }
.lp-faq { max-width: 780px; margin: 40px auto 0; display: grid; gap: 12px; }
.lp-faq details { background: #fff; border: 1px solid #efe7db; border-radius: 14px; padding: 18px 22px; }
.lp-faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; color: var(--brand-green); font-size: 22px; line-height: 1; }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq p { margin: 12px 0 0; color: var(--ink-2); line-height: 1.6; }
.lp-contact { max-width: none; text-align: center; color: #fff; background: radial-gradient(ellipse at 50% 0%, #274a7e 0%, var(--navy-900) 70%); }
.lp-contact p { max-width: 640px; margin: 16px auto 30px; color: #c9d4e5; font-size: 17px; line-height: 1.6; }
.lp-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 22px max(16px, calc((100% - 1160px) / 2)); background: var(--navy-950); color: #8ea0bb; font-size: 13px; }
.lp-foot a { color: #c9d4e5; }
@media (max-width: 960px) {
  .lp-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-split { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 700px) {
  .lp-nav nav { display: none; }
  .lp-nav .lp-btn { margin-left: auto; }
  .lp-hero { padding: 100px 16px 120px; }
  .lp-lights { width: 760px; }
  .lp-grid { grid-template-columns: 1fr; }
  .lp-section { padding: 64px 16px; }
  .lp-cta .lp-btn { width: 100%; justify-content: center; }
  .lp-contact .lp-btn { white-space: normal; word-break: break-all; }
  .lp-phone { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .lp-lights .bulb { animation: none; } .lp-card, .lp-btn { transition: none; } }

/* ---------- Overflow guards (phones) ---------- */
.menu-split { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; }
@media (max-width: 700px) { .menu-split { grid-template-columns: minmax(0, 1fr); } }
.grid > *, .split > *, .col > *, .card { min-width: 0; }
.card > .table-wrap, .card-pad > .table-wrap { max-width: 100%; }
@media (max-width: 700px) {
  .page-head > .row, .toolbar > .row, .card-head > .row { flex-wrap: wrap; }
  .segmented { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .segmented::-webkit-scrollbar { display: none; }
  .segmented button { flex: none; }
  .page-head > .row { width: 100%; flex-wrap: wrap; }
  .card > table.data, .card-pad > table.data { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* QR codes */
.qr-box { background: #fff; padding: 8px; border-radius: 12px; line-height: 0; flex: none; }

/* KDS: merged Ready card (one order, several stations) */
.ticket.merged .station-part { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }
.ticket.merged .station-part:first-of-type { border-top: 0; padding-top: 0; }
.ticket.merged .station-name { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.ticket.merged .station-part ul { margin-top: 4px; }

.app-qr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px; }

/* Platform MDM */
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px 18px; }
.info-grid b { font-size: 14px; word-break: break-word; }

/* Audit trail (0.7.1) */
.audit-table td { vertical-align: top; }
.audit-summary { color: var(--ink-2); margin-top: 4px; max-width: 640px; word-break: break-word; }
.audit-expand > td { background: #f7f9fc; padding: 12px 16px 16px; }
.audit-expand.hidden { display: none; }
.audit-details { gap: 10px; }
.audit-diff { font-size: 13px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.audit-diff th, .audit-diff td { padding: 6px 10px; }
.audit-from { color: var(--red); text-decoration: line-through; text-decoration-color: rgba(220, 38, 38, .45); word-break: break-word; }
.audit-to { color: var(--green-600); font-weight: 600; word-break: break-word; }
.value.red-t { color: var(--red); }
.value.orange-t { color: #b45f06; }
.kpi.clickable { cursor: pointer; }
.kpi.clickable:hover { box-shadow: var(--shadow); }
.avatar-sm { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 13px; flex: none; }
.avatar-sm.lg { width: 46px; height: 46px; font-size: 16px; }
tr.muted-row td { opacity: .6; }

/* MDM device detail and policy (0.8.0) */
.mdm-hero { display: flex; gap: 14px; align-items: flex-start; }
.mdm-hero h2 { font-size: 22px; }
.term-num.lg { width: 52px; height: 52px; border-radius: 14px; font-size: 20px; }
.term-num.lg svg { width: 24px; height: 24px; }
.mdm-body { min-height: 320px; }
.mdm-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.mdm-action { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; color: var(--ink); }
.mdm-action:hover:not(:disabled) { border-color: var(--blue); box-shadow: var(--shadow); }
.mdm-action:disabled { opacity: .45; cursor: not-allowed; }
.mdm-action b { display: block; font-size: 14px; }
.mdm-action small { display: block; font-size: 12px; margin-top: 2px; }
.mdm-action.danger { border-color: #f5c2bf; }
.mdm-action.danger b { color: var(--red); }
.mdm-action.primary { border-color: var(--blue); background: var(--blue-50); }
.unlock-code { font-size: 30px; font-weight: 800; letter-spacing: .12em; font-variant-numeric: tabular-nums; min-width: 160px; }
.policy-row { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.policy-row.col { align-items: stretch; }
.policy-row:last-child { border-bottom: 0; }
.lost-card { border: 1px solid #f5c2bf; background: #fff7f6; }
@media (max-width: 720px) { .mdm-hero { flex-direction: column; } }
.code-block { background: #0b1b33; color: #dbe7ff; padding: 12px 14px; border-radius: 10px; font-size: 12px; line-height: 1.5; max-height: 360px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
