@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Mono:wght@400;500&family=Fraunces:opsz,wght@9..144,600&display=swap');

:root {
  --canvas: #f5f6f4;
  --paper: #ffffff;
  --paper-2: #f0f2ef;
  --ink: #171a18;
  --muted: #626c66;
  --line: #dce2dd;
  --line-strong: #c5cdc7;
  --brand: #5a1f3f;
  --brand-soft: #f2e8ed;
  --herb: #2d6a50;
  --herb-soft: #e4efe9;
  --blue: #315f7c;
  --blue-soft: #e4edf2;
  --danger: #a63f4b;
  --danger-soft: #f7e7e9;
  --attention: #5b4a8b;
  --attention-soft: #ece9f4;
  --amber: #92601b;
  --amber-soft: #f7eddc;
  --shadow: 0 22px 55px rgba(36, 46, 39, .12);
  --radius: 18px;
  --font: "DM Sans", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--canvas); color: var(--ink); font-family: var(--font); }
button, input, select { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

/* Journey shell */
.shell-body { display: grid; grid-template-columns: 292px 1fr; height: 100vh; overflow: hidden; }
.journey-rail { background: #21131b; color: #f3edf0; padding: 22px 14px 18px; overflow-y: auto; position: relative; z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; padding: 2px 10px 24px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #f6f1f3; color: #4e1c37; font-family: "Fraunces", serif; font-size: 24px; }
.brand span:last-child { display: grid; gap: 2px; }
.brand b { font-size: 16px; letter-spacing: -.01em; }
.brand small { color: #a995a1; font-size: 11px; }
.nav-group { border-top: 1px solid rgba(255,255,255,.09); padding-top: 14px; margin-top: 14px; }
.nav-group > p { margin: 0 10px 7px; color: #a995a1; font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.nav-item { width: 100%; display: flex; gap: 11px; align-items: center; border: 0; background: transparent; color: inherit; padding: 9px 10px; border-radius: 11px; text-align: left; }
.nav-item:hover { background: rgba(255,255,255,.07); }
.nav-item.is-active { background: #f1e8ed; color: #511c39; }
.nav-item > span:last-child { display: grid; gap: 2px; min-width: 0; }
.nav-item b { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-item small { color: #a995a1; font-size: 10px; }
.nav-item.is-active small { color: #765b6b; }
.nav-icon { width: 27px; height: 27px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; font: 500 9px var(--mono); }
.is-active .nav-icon { border-color: #d5c2cd; background: white; }
.rail-note { display: flex; gap: 10px; align-items: flex-start; margin: 22px 8px 0; padding: 14px 11px; border: 1px solid rgba(255,255,255,.11); border-radius: 13px; }
.rail-note > span:last-child { display: grid; gap: 3px; }
.rail-note b { font-size: 10px; }
.rail-note small { font-size: 9px; line-height: 1.4; color: #a995a1; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #7db594; margin-top: 3px; box-shadow: 0 0 0 4px rgba(125,181,148,.13); }
.stage { min-width: 0; display: flex; flex-direction: column; }
.stage-bar { height: 78px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 24px; background: rgba(255,255,255,.82); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.stage-bar h1 { margin: 2px 0 0; font-size: 19px; letter-spacing: -.03em; }
.eyebrow { margin: 0; color: var(--muted); font: 500 9px var(--mono); letter-spacing: .11em; }
.stage-actions { display: flex; align-items: center; gap: 9px; }
.device-pill, .quiet-button { border: 1px solid var(--line); border-radius: 999px; padding: 8px 11px; font-size: 10px; background: var(--paper); color: var(--muted); text-decoration: none; white-space: nowrap; }
.quiet-button:hover { color: var(--brand); border-color: #d5c2cd; }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 20px; }
.preview-wrap { flex: 1; min-height: 0; padding: 22px; display: grid; place-items: stretch; position: relative; overflow: auto; background: radial-gradient(circle at 80% 5%, #e9efeb 0, transparent 35%), var(--canvas); }
.preview-wrap iframe { display: block; width: 100%; height: 100%; min-height: 650px; border: 1px solid var(--line); border-radius: 20px; background: var(--canvas); box-shadow: var(--shadow); }
.preview-wrap[data-device="phone"] { place-items: center; }
.preview-wrap[data-device="phone"] iframe { width: 390px; max-width: 100%; height: min(844px, calc(100vh - 122px)); min-height: 580px; border: 7px solid #202522; border-radius: 38px; box-shadow: 0 25px 65px rgba(24,32,27,.24); }
.phone-speaker { display: none; }
.preview-wrap[data-device="phone"] .phone-speaker { display: block; position: absolute; z-index: 2; top: 31px; width: 65px; height: 5px; border-radius: 9px; background: #303632; }
.rail-backdrop { display: none; }

/* Shared screen language */
.screen { min-height: 100vh; background: var(--canvas); }
.screen-topbar { height: 58px; background: rgba(255,255,255,.88); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 22px; position: sticky; top: 0; z-index: 5; backdrop-filter: blur(12px); }
.screen-brand { display: flex; align-items: center; gap: 10px; }
.mini-mark { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: var(--brand); color: white; font: 600 15px "Fraunces", serif; }
.screen-brand span:last-child { display: grid; gap: 1px; }
.screen-brand b { font-size: 12px; }
.screen-brand small { font-size: 9px; color: var(--muted); }
.screen-actions { display: flex; align-items: center; gap: 8px; }
.status { border-radius: 999px; padding: 6px 9px; background: var(--herb-soft); color: var(--herb); font: 500 9px var(--mono); }
.screen-main { padding: 22px; max-width: 1440px; margin: auto; }
.screen-main.narrow { max-width: 1080px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.page-head h1, .page-head h2 { margin: 2px 0 0; letter-spacing: -.035em; }
.page-head h1 { font-size: clamp(25px, 3vw, 38px); }
.page-head h2 { font-size: 24px; }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.kicker { color: var(--brand); font: 500 9px var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.button, .button-secondary, .icon-button { border: 0; border-radius: 11px; padding: 10px 14px; font-weight: 600; font-size: 11px; }
.button { background: var(--brand); color: white; }
.button:hover { background: #70284e; }
.button-secondary { background: var(--paper); border: 1px solid var(--line); }
.button-secondary:hover { border-color: var(--line-strong); }
.icon-button { padding: 9px 11px; background: var(--paper-2); }
.segmented { display: flex; gap: 3px; padding: 3px; border-radius: 11px; background: var(--paper-2); }
.segmented button { border: 0; padding: 7px 10px; border-radius: 8px; background: transparent; color: var(--muted); font-size: 10px; }
.segmented button.is-active { background: white; color: var(--ink); box-shadow: 0 1px 4px rgba(20,30,24,.1); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 5px 18px rgba(28,38,31,.04); }
.card-pad { padding: 18px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.tiny { font-size: 9px; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.tag { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 5px 8px; background: var(--paper-2); color: var(--muted); font: 500 8px var(--mono); text-transform: uppercase; }
.tag.green { background: var(--herb-soft); color: var(--herb); }
.tag.red { background: var(--danger-soft); color: var(--danger); }
.tag.blue { background: var(--blue-soft); color: var(--blue); }
.tag.purple { background: var(--attention-soft); color: var(--attention); }
.tag.amber { background: var(--amber-soft); color: var(--amber); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--brand); font-size: 10px; font-weight: 700; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list > li:last-child { border: 0; }
.list-title { display: grid; gap: 3px; }
.list-title b { font-size: 12px; }
.list-title small { color: var(--muted); font-size: 10px; }
.bottom-nav { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); background: white; position: sticky; bottom: 0; }
.bottom-nav button { border: 0; background: transparent; padding: 10px 4px 8px; color: var(--muted); font-size: 9px; display: grid; justify-items: center; gap: 3px; }
.bottom-nav button::before { content: ""; width: 18px; height: 3px; border-radius: 99px; background: currentColor; opacity: .25; }
.bottom-nav button.is-active { color: var(--brand); }
.prototype-toast { position: fixed; left: 50%; bottom: 18px; z-index: 99; max-width: calc(100% - 28px); transform: translate(-50%, 18px); opacity: 0; pointer-events: none; padding: 10px 13px; border-radius: 999px; background: #21131b; color: white; box-shadow: 0 10px 30px rgba(33,19,27,.25); font-size: 9px; transition: .18s ease; }
.prototype-toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* Overview */
.overview-hero { background: #21131b; color: white; border-radius: 24px; padding: 34px; position: relative; overflow: hidden; }
.overview-hero::after { content: "F"; position: absolute; right: 30px; bottom: -70px; color: rgba(255,255,255,.05); font: 600 210px "Fraunces",serif; }
.overview-hero h1 { font: 600 clamp(34px,5vw,66px)/.98 "Fraunces",serif; max-width: 760px; margin: 10px 0 14px; letter-spacing: -.045em; }
.overview-hero p { max-width: 650px; color: #d2c3cb; line-height: 1.65; font-size: 13px; }
.overview-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.overview-summary span { border: 1px solid rgba(255,255,255,.17); padding: 8px 10px; border-radius: 999px; font: 500 9px var(--mono); }
.role-map { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 16px; }
.role-card { padding: 18px; min-height: 160px; position: relative; overflow: hidden; }
.role-number { font: 500 9px var(--mono); color: var(--brand); }
.role-card h3 { font-size: 17px; margin: 28px 0 7px; letter-spacing: -.02em; }
.role-card p { color: var(--muted); font-size: 11px; line-height: 1.55; margin: 0; }
.role-card footer { display: flex; gap: 5px; margin-top: 15px; flex-wrap: wrap; }

/* Guest menu */
.guest-screen { background: #f9f6f3; }
.guest-screen .screen-topbar { background: rgba(249,246,243,.9); }
.guest-welcome { padding: 24px 18px 14px; }
.guest-welcome h1 { margin: 6px 0 8px; font: 600 29px/1.03 "Fraunces", serif; }
.guest-welcome p { color: #6d5e4d; font-size: 11px; line-height: 1.55; margin: 0; }
.allergy-prompt { margin: 0 14px 12px; padding: 11px 12px; border-radius: 13px; background: #fff; border: 1px solid #e9e0d6; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10px; }
.allergy-prompt > span { min-width: 0; }
.allergy-prompt button { border: 0; background: #f2e8ed; color: var(--brand); border-radius: 999px; padding: 7px 9px; font-size: 9px; }
.menu-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 0 14px 12px; scrollbar-width: none; }
.menu-tabs button { white-space: nowrap; border: 1px solid #e9e0d6; background: white; border-radius: 999px; padding: 8px 10px; font-size: 9px; }
.menu-tabs button.is-active { background: var(--brand); color: white; border-color: var(--brand); }
.dish-list { padding: 0 14px 80px; display: grid; gap: 10px; }
.dish { background: white; border: 1px solid #e9e0d6; border-radius: 16px; padding: 13px; display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.dish > div { min-width: 0; }
.dish h3 { margin: 0 0 5px; font-size: 13px; }
.dish p { margin: 0; color: #766756; font-size: 9px; line-height: 1.45; }
.dish strong { font-size: 12px; }
.dish-meta { display: flex; gap: 5px; margin-top: 9px; flex-wrap: wrap; }
.dish.is-hidden { display: none; }
.sold-out { opacity: .52; }
.sold-out h3 { text-decoration: line-through; }

/* Kitchen */
.dark-screen { background: #111412; color: #f0f2ef; min-height: 100vh; }
.dark-screen .screen-topbar { background: #181c19; border-color: #303832; }
.dark-screen .screen-brand small, .dark-screen .muted { color: #aab3ac; }
.dark-screen .segmented { background: #202521; }
.dark-screen .segmented button.is-active { background: #293029; color: white; box-shadow: none; }
.kitchen-main { padding: 14px; }
.kds-summary { display: flex; gap: 8px; margin-bottom: 13px; }
.kds-summary span { border: 1px solid #303832; border-radius: 999px; padding: 6px 9px; color: #aab3ac; font: 500 9px var(--mono); }
.kds-summary b { color: white; }
.ticket-rack { display: grid; grid-template-columns: repeat(4,minmax(230px,1fr)); gap: 10px; align-items: start; }
.ticket { background: #181c19; border: 1px solid #303832; border-top: 4px solid var(--blue); border-radius: 12px; padding: 13px; }
.ticket.is-cooking { border-top-color: #d39a48; }
.ticket.is-late { border-top-color: #e48d96; box-shadow: 0 0 0 1px rgba(228,141,150,.22); }
.ticket-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; border-bottom: 1px solid #303832; padding-bottom: 10px; }
.ticket-head h3 { margin: 0 0 3px; font-size: 17px; }
.ticket-head small { color: #aab3ac; font-size: 9px; }
.timer { padding: 5px 7px; border-radius: 7px; background: #202521; font: 500 10px var(--mono); }
.is-late .timer { background: #3a2226; color: #e48d96; }
.ticket-lines { list-style: none; padding: 8px 0; margin: 0; }
.ticket-lines li { padding: 6px 0; display: flex; gap: 7px; font-size: 11px; line-height: 1.3; }
.ticket-lines b { color: #8bb8d0; }
.ticket-note { background: #282338; color: #b9aae6; border-radius: 7px; padding: 7px; font-size: 9px; margin: 4px 0 9px; }
.ticket button { width: 100%; border: 0; border-radius: 9px; padding: 10px; background: #315f7c; color: white; font-size: 10px; font-weight: 700; }
.ticket.is-cooking button { background: #2d6a50; }
.ticket button.done { background: #26342d; color: #83b99d; }

/* Phone work apps */
.phone-screen { display: flex; flex-direction: column; min-height: 100vh; }
.phone-main { padding: 15px 14px 20px; flex: 1; }
.phone-greeting { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.phone-greeting h1 { font-size: 21px; margin: 0 0 4px; letter-spacing: -.03em; }
.phone-greeting p { color: var(--muted); margin: 0; font-size: 10px; }
.priority-card { background: var(--brand); color: white; padding: 16px; border-radius: 17px; margin-bottom: 12px; }
.priority-card small { color: #d2c3cb; font-size: 9px; }
.priority-card h2 { font-size: 17px; margin: 11px 0 5px; }
.priority-card p { margin: 0; color: #eadfe5; font-size: 10px; }
.priority-card .button-secondary { width: 100%; margin-top: 13px; border-color: transparent; }
.shortcut-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; }
.shortcut { border: 1px solid var(--line); background: white; border-radius: 15px; padding: 14px; text-align: left; min-height: 96px; display: flex; flex-direction: column; justify-content: space-between; }
.shortcut i { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--paper-2); font-style: normal; color: var(--brand); font-size: 11px; }
.shortcut b { font-size: 11px; }
.shortcut small { color: var(--muted); font-size: 9px; }
.shift-card { padding: 14px; margin: 12px 0; }
.shift-row { display: flex; justify-content: space-between; align-items: center; }
.shift-card h3 { margin: 8px 0 3px; font-size: 14px; }
.shift-card p { margin: 0; color: var(--muted); font-size: 9px; }

/* Floor */
.floor-tabs { display: flex; gap: 7px; margin-bottom: 12px; overflow-x: auto; }
.floor-tabs button { border: 1px solid var(--line); background: white; border-radius: 999px; padding: 7px 9px; font-size: 9px; white-space: nowrap; }
.floor-tabs button.is-active { background: var(--brand); color: white; }
.floor-plan { position: relative; min-height: 455px; background: #eef0ec; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.floor-plan::before { content: "TERRACE"; position: absolute; top: 15px; left: 16px; color: #98a19b; font: 500 9px var(--mono); letter-spacing: .12em; }
.table-button { position: absolute; width: 72px; height: 72px; border-radius: 50%; border: 2px solid white; background: white; box-shadow: 0 4px 13px rgba(37,48,41,.1); display: grid; place-items: center; align-content: center; gap: 2px; }
.table-button b { font-size: 16px; }
.table-button small { font-size: 8px; color: var(--muted); }
.table-button[data-state="ordered"] { background: var(--blue-soft); color: var(--blue); }
.table-button[data-state="ready"] { background: var(--herb-soft); color: var(--herb); animation: softPulse 1.7s infinite; }
.table-button[data-state="bill"] { background: var(--attention-soft); color: var(--attention); }
.table-button.is-selected { outline: 3px solid var(--brand); outline-offset: 2px; }
@keyframes softPulse { 50% { box-shadow: 0 0 0 7px rgba(45,106,80,.1); } }
.floor-key { display: flex; gap: 9px; flex-wrap: wrap; margin: 10px 2px; font-size: 8px; color: var(--muted); }
.floor-key span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); margin-right: 4px; }
.floor-key .ready::before { background: var(--herb); }
.floor-key .ordered::before { background: var(--blue); }
.floor-key .bill::before { background: var(--attention); }
.table-drawer { position: fixed; left: 10px; right: 10px; bottom: 58px; z-index: 4; padding: 15px; transform: translateY(130%); transition: transform .25s ease; }
.table-drawer.is-open { transform: translateY(0); }
.table-drawer h3 { margin: 0 0 4px; }
.table-drawer p { margin: 0 0 12px; color: var(--muted); font-size: 9px; }
.table-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }

/* Till */
.till-screen { background: #e9ede9; min-height: 100vh; display: grid; grid-template-rows: 54px 1fr; }
.till-bar { background: #21131b; color: white; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; }
.till-bar b { font-size: 13px; }
.till-bar small { color: #c9b7c2; font-size: 9px; }
.till-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; min-height: 0; }
.till-menu { padding: 13px; min-width: 0; }
.category-row { display: flex; gap: 7px; margin-bottom: 11px; overflow-x: auto; }
.category-row button { min-width: 90px; border: 1px solid var(--line-strong); background: white; padding: 11px 12px; border-radius: 9px; font-weight: 600; font-size: 10px; }
.category-row button.is-active { background: var(--brand); color: white; border-color: var(--brand); }
.product-grid { display: grid; grid-template-columns: repeat(4,minmax(105px,1fr)); gap: 8px; }
.product { min-height: 88px; border: 1px solid var(--line); background: white; border-radius: 11px; padding: 10px; text-align: left; display: flex; flex-direction: column; justify-content: space-between; }
.product b { font-size: 11px; line-height: 1.2; }
.product span { color: var(--brand); font-weight: 700; font-size: 11px; }
.product:active { transform: scale(.98); }
.order-panel { background: white; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.order-head { padding: 13px 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.order-head h2 { font-size: 15px; margin: 0; }
.order-lines { flex: 1; padding: 4px 14px; overflow: auto; }
.order-line { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 10px; }
.qty { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; background: var(--paper-2); font-weight: 700; }
.order-total { padding: 12px 14px; border-top: 1px solid var(--line); }
.total-row { display: flex; justify-content: space-between; margin-bottom: 10px; }
.total-row strong { font-size: 18px; }
.pay-button { width: 100%; border: 0; border-radius: 10px; padding: 13px; background: var(--herb); color: white; font-weight: 700; }
.manager-strip { display: flex; gap: 6px; padding: 8px 13px; background: var(--attention-soft); border-bottom: 1px solid #ded8eb; overflow-x: auto; }
.manager-strip button { border: 1px solid #d8cee9; background: white; color: var(--attention); border-radius: 8px; padding: 7px 9px; white-space: nowrap; font-size: 9px; font-weight: 600; }

/* Manager */
.manager-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 14px; }
.metric { padding: 14px; }
.metric small { font: 500 8px var(--mono); text-transform: uppercase; color: var(--muted); }
.metric strong { display: block; margin-top: 8px; font-size: 22px; letter-spacing: -.04em; }
.metric span { font-size: 9px; color: var(--herb); }
.manager-columns { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; }
.manager-panel { padding: 17px; }
.manager-panel h2 { margin: 0 0 12px; font-size: 15px; }
.service-row { display: grid; grid-template-columns: 50px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.service-row:last-child { border: 0; }
.service-row b { font-size: 10px; }
.service-row p { margin: 2px 0 0; color: var(--muted); font-size: 9px; }
.progress { height: 5px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--herb); border-radius: inherit; }

/* Owner */
.owner-cover { background: linear-gradient(135deg,#21131b,#47263a); color: white; padding: 24px; border-radius: 21px; margin-bottom: 13px; }
.owner-cover p { color: #d2c3cb; font-size: 11px; }
.owner-cover strong { display: block; font: 600 38px "Fraunces",serif; margin-top: 24px; }
.spark { display: flex; align-items: end; gap: 5px; height: 80px; margin-top: 10px; }
.spark i { flex: 1; background: rgba(255,255,255,.23); border-radius: 4px 4px 0 0; }
.spark i:last-child { background: #d991b2; }
.decision { padding: 14px; }
.decision h3 { margin: 9px 0 5px; font-size: 13px; }
.decision p { margin: 0; font-size: 9px; color: var(--muted); line-height: 1.5; }

/* Preserved Chorao POS reference */
.reference-screen { min-height: 100vh; background: #09090b; color: #fafafa; font-family: Inter, var(--font); }
.ref-note { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 14px; background: #25101d; border-bottom: 1px solid #45273a; color: #d8bdcc; font-size: 10px; }
.ref-note strong { color: white; }
.ref-top { height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; background: #111113; border-bottom: 1px solid #1f1f23; }
.ref-left, .ref-right { display: flex; align-items: center; gap: 8px; }
.ref-logo { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: #f59e0b; color: #16120d; font-weight: 800; }
.ref-chip { border: 1px solid #27272a; background: #18181b; color: #a1a1aa; border-radius: 7px; padding: 7px 10px; font-size: 10px; }
.ref-chip.active { color: #f59e0b; border-color: #5b4320; background: #2b2112; }
.ref-layout { min-height: calc(100vh - 91px); display: grid; grid-template-columns: 1fr minmax(290px, 36%); }
.ref-menu { min-width: 0; border-right: 1px solid #1f1f23; }
.ref-categories { display: flex; gap: 5px; padding: 9px; border-bottom: 1px solid #1f1f23; overflow-x: auto; }
.ref-categories button { border: 1px solid #27272a; border-radius: 7px; background: #18181b; color: #a1a1aa; padding: 7px 9px; white-space: nowrap; font-size: 9px; }
.ref-categories button.active { background: #172554; border-color: #3b82f6; color: #dbeafe; }
.ref-products { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; padding: 9px; }
.ref-product { min-height: 88px; padding: 11px 9px; text-align: left; border: 1px solid #27272a; border-radius: 9px; background: #18181b; color: #fafafa; display: flex; flex-direction: column; justify-content: space-between; }
.ref-product b { font-size: 11px; }
.ref-product span { color: #60a5fa; font-weight: 700; }
.ref-product.is-86 { opacity: .45; }
.ref-order { display: flex; min-width: 0; flex-direction: column; background: #111113; }
.ref-order-head { display: flex; align-items: center; justify-content: space-between; padding: 11px 13px; border-bottom: 1px solid #27272a; }
.ref-order-head b { font-size: 13px; }
.ref-order-head button { border: 0; background: transparent; color: #71717a; font-size: 10px; }
.ref-lines { flex: 1; padding: 4px 10px; }
.ref-line { display: grid; grid-template-columns: 24px 1fr auto; gap: 7px; align-items: center; border-bottom: 1px solid #27272a; padding: 10px 0; font-size: 10px; }
.ref-line.is-draft { margin-top: 2px; padding-inline: 5px; border-radius: 6px; background: #281e12; border-bottom-color: transparent; }
.ref-qty { width: 22px; height: 22px; display: grid; place-items: center; background: #27272a; border-radius: 6px; font-weight: 700; }
.ref-state { font: 500 7px var(--mono); color: #22c55e; text-transform: uppercase; }
.ref-state.paid { color: #71717a; }
.ref-footer { border-top: 1px solid #27272a; padding: 11px 13px; }
.ref-total { display: flex; justify-content: space-between; margin: 5px 0; font-size: 11px; }
.ref-total.big { font-size: 16px; font-weight: 700; padding-top: 7px; border-top: 1px solid #27272a; }
.ref-total.due { color: #60a5fa; font-weight: 700; }
.ref-buttons { display: grid; grid-template-columns: 1fr 2fr; gap: 7px; margin-top: 9px; }
.ref-buttons button { border: 0; border-radius: 8px; padding: 11px; background: #27272a; color: #a1a1aa; font-weight: 600; }
.ref-buttons .pay { background: #22c55e; color: #04150a; }

/* Comparison */
.compare-intro { padding: 22px; border-radius: 20px; background: var(--brand-soft); border: 1px solid #dfcfd8; margin-bottom: 14px; }
.compare-intro h1 { margin: 5px 0 8px; font-size: 28px; letter-spacing: -.04em; }
.compare-intro p { margin: 0; color: var(--muted); max-width: 850px; font-size: 11px; line-height: 1.6; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compare-card { padding: 18px; }
.compare-card header { min-height: 88px; }
.compare-card h2 { margin: 7px 0 5px; font-size: 18px; }
.compare-card header p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.journey-flow { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin: 16px 0; }
.journey-flow span { padding: 7px 8px; border-radius: 8px; background: var(--paper-2); border: 1px solid var(--line); font-size: 9px; }
.journey-flow i { color: var(--muted); font-style: normal; font-size: 10px; }
.compare-table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.compare-table th, .compare-table td { padding: 11px 9px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 10px; line-height: 1.45; }
.compare-table th { color: var(--muted); font: 500 8px var(--mono); text-transform: uppercase; }
.compare-callout { margin-top: 14px; padding: 14px; border-radius: 13px; background: var(--herb-soft); color: var(--herb); font-size: 10px; line-height: 1.55; }

@media (max-width: 1080px) {
  .ticket-rack { grid-template-columns: repeat(2,minmax(220px,1fr)); }
  .product-grid { grid-template-columns: repeat(3,minmax(100px,1fr)); }
  .role-map { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .shell-body { display: block; }
  .journey-rail { position: fixed; inset: 0 auto 0 0; width: 292px; transform: translateX(-102%); transition: transform .2s ease; box-shadow: 16px 0 44px rgba(0,0,0,.2); }
  .journey-rail.is-open { transform: translateX(0); }
  .rail-backdrop { position: fixed; inset: 0; z-index: 10; background: rgba(10,12,10,.45); }
  .rail-backdrop.is-open { display: block; }
  .mobile-menu { display: block; }
  .device-pill { display: none; }
  .stage-bar { height: 68px; padding: 10px 12px; }
  .stage-bar h1 { font-size: 15px; }
  .quiet-button { padding: 7px 9px; }
  .preview-wrap { padding: 10px; }
  .preview-wrap[data-device="phone"] iframe { height: calc(100vh - 86px); }
  .preview-wrap[data-device="phone"] .phone-speaker { top: 18px; }
  .grid-3, .grid-4, .role-map, .manager-grid, .manager-columns { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .till-layout { grid-template-columns: 1fr; }
  .order-panel { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 480px) {
  .guest-welcome h1 { font-size: 26px; }
  .guest-screen .screen-topbar .status { display: none; }
  .allergy-prompt button { flex: 0 0 auto; }
  .dish { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; } }
