@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

@import url('/rush.css');
@import url('/onboarding.css');
@import url('/handover.css');
:root {
  color-scheme: light;
  --canvas: #f8f7f3;
  --surface: #fff;
  --ink: #211e1a;
  --muted: #6d665e;
  --line: #eae5dc;
  --orange: #b83b17;
  --accent: #ed693c;
  --orange-bg: #fff0e8;
  --green: #216b4b;
  --green-bg: #e8f4ed;
  --amber: #875208;
  --amber-bg: #fff3d9;
  --red: #a23330;
  --red-bg: #fcebe7;
  --nav-width: 238px;
  --radius: 16px;
  --shadow: 0 2px 3px #33230d04, 0 10px 22px #33230d04;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--canvas);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
h1, h2, h3, h4, p, ul { margin: 0; }
h1, h2, h3, h4, strong, b { font-family: 'Manrope', 'DM Sans', sans-serif; }
h1 { font-size: clamp(1.8rem, 3vw, 2.65rem); line-height: 1.1; letter-spacing: -.055em; font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 800; line-height: 1.22; letter-spacing: -.034em; }
h3 { font-size: 1rem; line-height: 1.35; letter-spacing: -.018em; font-weight: 800; }
p { line-height: 1.55; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
a, button, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, select, summary { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
button, a { touch-action: manipulation; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; vertical-align: middle; }
small, .small { font-size: .8125rem; }
.muted, .subtle, .helper { color: var(--muted); }
.loading { padding: 3rem; color: var(--muted); }
.hidden, [hidden] { display: none !important; }

.app-shell, .shell { min-height: 100vh; display: grid; grid-template-columns: var(--nav-width) minmax(0, 1fr); }
.sidebar { align-self: start; position: sticky; top: 0; min-height: 100dvh; max-height: 100dvh; overflow: auto; display: flex; flex-direction: column; padding: 24px 15px 17px; background: var(--surface); border-right: 1px solid var(--line); z-index: 20; scrollbar-width: thin; }
.brand { display: flex; align-items: center; gap: 11px; padding: 1px 10px 25px; text-decoration: none; color: var(--ink); }
.brand > div:last-child { display: grid; gap: 3px; }
.brand b, .brand strong, .brand-name { font-family: 'Manrope', sans-serif; font-size: 1.135rem; font-weight: 800; line-height: 1.1; letter-spacing: -.055em; white-space: nowrap; }
.brand small, .brand-subtitle { color: var(--muted); font-size: .72rem; }
.brand-mark, .logo-mark { display: inline-grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; background: #c74624; color: white; box-shadow: 0 3px 6px #b83b172c; font-weight: 800; }
.brand-mark svg, .logo-mark svg { width: 23px; height: 23px; }
.sidebar nav, .sidebar-nav, .nav-group { display: grid; gap: 4px; }
.nav-group + .nav-group { margin-top: 18px; }
.nav-label, .eyebrow, .kicker { font-size: .69rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.nav-label { color: var(--muted); padding: 5px 11px 3px; }
.nav-link { display: flex; align-items: center; gap: 11px; position: relative; width: 100%; min-height: 39px; padding: 9px 11px; border: 1px solid transparent; background: transparent; border-radius: 10px; color: #514a43; text-decoration: none; font-size: .875rem; font-weight: 650; text-align: left; white-space: nowrap; }
.nav-link svg { width: 17px; height: 17px; }
.nav-link:hover { background: #f8f6f1; color: var(--ink); }
.nav-link.active, .nav-link[aria-current='page'] { background: var(--orange-bg); color: var(--orange); font-weight: 800; }
.sidebar-footer { margin-top: auto; padding-top: 22px; display: grid; gap: 8px; }
.sidebar-footer .btn { justify-content: flex-start; width: 100%; }
.sidebar-footer .role, .sidebar-footer .profile { display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--line); padding: 13px 6px 0; }
.avatar { display: inline-grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; background: var(--orange-bg); color: var(--orange); font-size: .75rem; font-weight: 800; flex-shrink: 0; }
.workspace, .main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 10px clamp(16px, 3.2vw, 44px); background: #f8f7f3f6; border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.topbar .toolbar, .topbar-actions { justify-content: flex-end; }
.toolbar, .row, .actions, .action-row, .button-row, .inline-form { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.toolbar > *, .row > *, .action-row > * { flex-shrink: 0; max-width: 100%; }
.between, .spread { justify-content: space-between; }
.content, .main-content { width: min(100%, 1560px); margin-inline: auto; padding: 29px clamp(16px, 3.2vw, 44px) 42px; min-width: 0; }
.page-heading, .screen-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.screen-head { margin-bottom: 22px; }
.page-heading p, .screen-head p { color: var(--muted); margin-top: 6px; }
.page-heading .eyebrow, .screen-head .eyebrow { color: var(--orange); margin: 0 0 7px; }
.status-dot, .dot { display: inline-block; flex: none; width: .55em; height: .55em; border-radius: 50%; background: currentColor; }
.status-dot { background: #288454; box-shadow: 0 0 0 3px #28845417; }
.status-live { color: var(--green); }

.btn, button:not([class]) { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 7px 12px; border: 1px solid #e4ddd2; border-radius: 9px; background: white; color: var(--ink); text-align: center; text-decoration: none; font-size: .83rem; line-height: 1.2; font-weight: 750; transition: color .16s, background .16s, border-color .16s, translate .16s; }
.btn svg { width: 16px; height: 16px; }
.btn:not(:disabled):active, button:not([class]):not(:disabled):active { translate: 0 1px; }
.btn:hover, button:not([class]):hover { background: #f5f1ea; border-color: #d5c9b8; }
.btn.primary, .btn-primary { background: #be411d; border-color: #be411d; color: white; }
.btn.primary:hover, .btn-primary:hover { background: #a43213; border-color: #a43213; }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: #f0ebe2; }
.btn.small, .btn-sm { min-height: 31px; font-size: .76rem; padding: 5px 8px; }
.btn.danger { color: var(--red); border-color: #edc5bc; background: var(--red-bg); }
.btn.icon-only { width: 38px; padding: 0; }
.btn.full { width: 100%; }
.badge, .pill, .chip, .tag { display: inline-flex; align-items: center; gap: 6px; min-height: 23px; border-radius: 999px; padding: 3px 8px; background: #f1eee8; color: #5b5147; font-size: .71rem; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.badge.green, .badge.success, .pill.green, .badge.completed, .badge.ready { background: var(--green-bg); color: var(--green); }
.badge.amber, .badge.warning, .pill.amber, .badge.pending, .badge.preparing { background: var(--amber-bg); color: var(--amber); }
.badge.red, .badge.danger, .pill.red, .badge.critical { background: var(--red-bg); color: var(--red); }
.badge.orange, .badge.active, .badge.new, .pill.orange { background: var(--orange-bg); color: var(--orange); }

.radio-hero, .voice-hero, .hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 245px; padding: clamp(24px, 3.1vw, 40px); border-radius: 20px; color: #fffbf7; background: radial-gradient(ellipse at 92% 60%, #512c20 0%, transparent 46%), #251f1a; box-shadow: 0 10px 22px #3a271019; margin-bottom: 19px; }
.radio-hero::before, .voice-hero::before, .hero::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .12; background: repeating-linear-gradient(0deg, transparent 0 27px, #d896773b 28px 29px), repeating-linear-gradient(90deg, transparent 0 27px, #d896773b 28px 29px); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.radio-hero h1, .radio-hero h2, .voice-hero h1, .voice-hero h2, .hero h1, .hero h2 { margin: 8px 0 11px; font-size: clamp(2rem, 4.35vw, 4rem); line-height: 1.04; letter-spacing: -.065em; font-weight: 800; max-width: 20ch; }
.radio-hero h1 em, .radio-hero h2 em, .voice-hero em, .hero em, .hero-accent { color: #ff9369; font-style: normal; }
.radio-hero p, .voice-hero p, .hero p { color: #e2d2c4; font-size: .94rem; max-width: 49ch; }
.radio-hero .eyebrow, .voice-hero .eyebrow, .hero .eyebrow, .on-air { color: #ffb599; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.radio-hero .btn, .voice-hero .btn, .hero .btn { border-color: #695148; background: #ffffff0c; color: white; }
.radio-hero .btn:hover, .voice-hero .btn:hover, .hero .btn:hover { background: #ffffff20; }
.radio-hero .btn.primary, .voice-hero .btn.primary, .hero .btn.primary { color: #2c1c13; background: #ff956b; border-color: #ff956b; }
.radio-hero .btn.primary:hover, .voice-hero .btn.primary:hover, .hero .btn.primary:hover { background: #ffb18e; }
.waveform, .signal-bars, .wave { position: relative; display: flex; flex: 0 1 34%; justify-content: center; align-items: center; gap: clamp(4px, .65vw, 9px); min-width: 125px; height: 115px; padding-inline: 10px; color: #fc8150; }
.waveform::before, .signal-bars::before, .wave::before { content: ''; position: absolute; inset: -24% -10%; z-index: -1; background: repeating-radial-gradient(ellipse at center, transparent 0 16px, #fd986b24 17px, transparent 18px 29px); mask-image: radial-gradient(ellipse, #000 14%, transparent 75%); }
.waveform > :is(i, span), .signal-bars > :is(i, span), .wave > :is(i, span) { background: linear-gradient(#ffb391, #f36336); height: var(--bar, var(--h, 36%)); width: clamp(3px, .61vw, 8px); border-radius: 999px; box-shadow: 0 0 11px #ff834967; }
.waveform > :nth-child(5n+1), .signal-bars > :nth-child(5n+1), .wave > :nth-child(5n+1) { --h: 22%; }
.waveform > :nth-child(5n+2), .signal-bars > :nth-child(5n+2), .wave > :nth-child(5n+2) { --h: 43%; }
.waveform > :nth-child(5n+3), .signal-bars > :nth-child(5n+3), .wave > :nth-child(5n+3) { --h: 67%; }
.waveform > :nth-child(5n+4), .signal-bars > :nth-child(5n+4), .wave > :nth-child(5n+4) { --h: 91%; }
.waveform > :nth-child(5n), .signal-bars > :nth-child(5n), .wave > :nth-child(5n) { --h: 56%; }
.listening :is(.waveform,.wave,.signal-bars) > *, .speaking :is(.waveform,.wave,.signal-bars) > *, .waveform.listening > *, .waveform.speaking > *,
[data-voice-state=listening] .waveform > *, [data-voice-state=speaking] .waveform > * { animation: signal 1s ease-in-out infinite alternate; }
:is(.waveform,.wave,.signal-bars) > :nth-child(2n) { animation-delay: -.5s !important; }
:is(.waveform,.wave,.signal-bars) > :nth-child(3n) { animation-delay: -.3s !important; }
@keyframes signal { from { scale: 1 .45; } to { scale: 1 1.13; } }

.metrics, .metric-grid, .stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.metric, .stat-card { min-width: 0; min-height: 106px; display: grid; align-content: center; gap: 4px; padding: 13px 16px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.metric strong, .metric b, .stat-value { color: var(--ink); font-weight: 800; font-size: clamp(1.25rem, 2.4vw, 1.9rem); letter-spacing: -.057em; line-height: 1.05; }
.metric small, .metric p, .metric .label, .stat-label { color: var(--muted); }
.metric-icon, .stat-icon, .panel-icon, .event-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--orange); background: var(--orange-bg); }
.metric-icon svg, .stat-icon svg, .panel-icon svg, .event-icon svg { width: 16px; height: 16px; }

.dashboard-grid, .section-grid, .split-grid, .two-col { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 16px; align-items: start; }
.dashboard-grid, .section-grid, .split-grid { margin-bottom: 17px; }
.stack { display: grid; gap: 10px; }
.panel { min-width: 0; padding: 17px 19px; border-radius: var(--radius); border: 1px solid var(--line); background: white; box-shadow: var(--shadow); }
.panel + .panel:not(:where(.dashboard-grid > *, .section-grid > *, .split-grid > *, .stack > *)) { margin-top: 13px; }
.panel-header, .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.panel-header p, .panel-head p { margin-top: 4px; color: var(--muted); font-size: .84rem; }
.panel p + .action-row, .panel .action-row + p { margin-top: 10px; }
.empty, .empty-state { padding: 19px 13px; color: var(--muted); text-align: center; background: #faf8f4; border: 1px dashed #e3dacf; border-radius: 12px; font-size: .87rem; }
.activity, .activity-list, .timeline, .timeline-list { display: grid; list-style: none; padding: 0; }
.activity > *, .activity-list > *, .timeline > *, .timeline-list > * { border-bottom: 1px solid #f0ece4; padding-block: 9px; }
.activity > :last-child, .activity-list > :last-child, .timeline > :last-child, .timeline-list > :last-child { border-bottom: 0; }
.activity-item, .timeline-item { display: flex; align-items: flex-start; gap: 9px; }
.activity-item p, .timeline-item p { font-size: .85rem; }
.alert, .incident { padding: 12px 14px; border: 1px solid #ecd5bb; border-radius: 12px; background: #fff7e9; margin-bottom: 9px; }
.alert.red, .incident.open, .incident.critical { border-color: #efcdc4; background: #fff2ed; }
.alert.success, .incident.resolved { border-color: #c8e4d6; background: var(--green-bg); }

.board, .kanban { display: grid; grid-template-columns: repeat(5, minmax(170px, 1fr)); align-items: stretch; gap: 11px; overflow-x: auto; padding: 3px 1px 16px; scrollbar-width: thin; }
.board-column, .kanban-column { display: flex; flex-direction: column; gap: 9px; min-height: 292px; background: #f1eee7; border: 1px solid #e9e2d7; border-radius: 13px; padding: 9px; }
.column-heading, .column-head, .board-column > header, .kanban-column > header { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 4px 2px 6px; font-weight: 800; font-size: .86rem; }
.order-card { background: white; border: 1px solid var(--line); border-radius: 11px; padding: 10px; display: grid; gap: 7px; align-content: start; box-shadow: 0 2px 3px #29221608; font-size: .82rem; }
.order-card.priority, .order-card.late { border-left: 3px solid #ca5542; padding-left: 8px; }
.order-card .btn { min-height: 28px; padding: 4px 6px; font-size: .72rem; }
.order-card ul { padding-left: 16px; }
.order-card p { line-height: 1.35; }
.order-name, .order-number { color: var(--ink); font-weight: 800; }
.order-card .instructions { padding: 6px 7px; border-radius: 7px; background: #faf7ee; color: #775c35; font-size: .75rem; }
.table-wrap { width: 100%; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; white-space: nowrap; font-size: .875rem; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: .76rem; background: #faf8f4; font-weight: 800; }
tr:last-child td { border-bottom: 0; }
td .action-row { flex-wrap: nowrap; }
label, .field { color: var(--muted); font-weight: 700; font-size: .84rem; }
.field { display: grid; gap: 5px; }
input:not([type=checkbox]):not([type=radio]), textarea, select { min-height: 37px; padding: 7px 10px; border: 1px solid #e2dacf; border-radius: 9px; background: #fff; color: var(--ink); max-width: 100%; }
textarea { display: block; min-height: 75px; width: 100%; resize: vertical; }
.field :is(input, textarea, select) { width: 100%; }
input[type=number] { width: 85px; }
input[type=checkbox], input[type=radio] { accent-color: var(--orange); width: 15px; height: 15px; margin: 0 5px 0 0; vertical-align: middle; }
select { appearance: none; padding-right: 28px; background-image: url("data:image/svg+xml,%3Csvg width='11' height='7' viewBox='0 0 11 7' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m1 1 4.5 4.5L10 1' fill='none' stroke='%2371675b' stroke-width='1.4'/%3E%3C/svg%3E"); background-position: right 10px center; background-repeat: no-repeat; }
.inline-form .field, .action-row .field { align-self: end; }
hr { border: 0; border-top: 1px solid var(--line); margin-block: 12px; }

.transcript, .conversation { display: grid; gap: 10px; max-height: 420px; overflow: auto; }
.message, .bubble { padding: 11px 13px; border-radius: 12px; background: #f6f2ec; width: fit-content; max-width: 85%; line-height: 1.5; }
.message.user, .bubble.user { justify-self: end; background: var(--orange-bg); color: var(--orange); }
.command-form, .composer { display: flex; align-items: stretch; gap: 8px; }
.command-form input, .composer input { flex: 1; min-width: 0; }
.mic-button, .mic { position: relative; display: inline-grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; border: 0; background: #ee6f43; color: #271a11; box-shadow: 0 0 0 6px #ee6f4333, 0 6px 25px #ed603d5b; }
.mic-button svg, .mic svg { width: 27px; height: 27px; }
.mic-button:hover, .mic:hover { background: #ff956f; }
.mic-button.listening, .mic.listening { animation: mic-pulse 1.2s ease-in-out infinite alternate; }
@keyframes mic-pulse { to { box-shadow: 0 0 0 10px #ee6f4350, 0 6px 25px #ed603d5b; } }
.toast, .snackbar { position: fixed; z-index: 50; right: 18px; bottom: 18px; max-width: min(410px, calc(100vw - 36px)); background: #27221e; color: white; padding: 12px 17px; border-radius: 10px; box-shadow: 0 10px 24px #1f170f2e; font-size: .875rem; }
dialog { width: min(580px, calc(100vw - 28px)); max-height: calc(100dvh - 30px); border: 1px solid var(--line); border-radius: 17px; padding: 21px; color: var(--ink); background: white; box-shadow: 0 20px 50px #22180d2e; }
dialog::backdrop, .backdrop { background: #1d140d75; backdrop-filter: blur(3px); }
.modal-backdrop { position: fixed; z-index: 35; inset: 0; display: grid; place-items: center; padding: 15px; background: #1d140d75; }
.modal { width: min(580px, 100%); max-height: calc(100dvh - 30px); overflow: auto; background: white; border: 1px solid var(--line); border-radius: 17px; padding: 21px; }

.portal { min-width: 0; }
.portal:not(.content) { padding-bottom: 24px; }
.portal-grid, .menu-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(270px,.45fr); gap: 16px; align-items: start; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 12px; }
.menu-card, .cart { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); }
.menu-card { display: grid; align-content: start; gap: 8px; }
.menu-card img { width: 100%; height: 125px; object-fit: cover; border-radius: 9px; }
.menu-card .food-symbol, .menu-card .food-icon { display: grid; place-items: center; min-height: 76px; border-radius: 9px; background: var(--orange-bg); font-size: 2rem; }
.cart { position: sticky; top: 80px; display: grid; gap: 10px; }
.cart-line { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.sales-chart { display: flex; gap: clamp(7px, 1.6vw, 20px); align-items: flex-end; min-height: 145px; justify-content: space-around; padding: 12px 2px 0; border-bottom: 1px solid var(--line); }
.sales-column { display: grid; gap: 5px; align-items: end; text-align: center; width: 100%; min-width: 0; font-size: .72rem; color: var(--muted); }
.sales-bar { align-self: end; margin-inline: auto; display: block; width: min(100%, 40px); min-height: 2px; border-radius: 6px 6px 0 0; background: linear-gradient(#ec7952, #b9411d); }
.sales-track { width: 100%; height: clamp(85px, 15vw, 155px); display: grid; align-items: end; }
.sales-column strong { color: var(--ink); }
.sales-column > span { padding-block: 5px; }
.stock-meter { display: block; width: 100%; min-width: 80px; height: 9px; accent-color: var(--green); }
.kv { margin: 12px 0; display: grid; gap: 5px; }
.kv > div { display: flex; justify-content: space-between; gap: 10px; padding-block: 5px; border-bottom: 1px solid var(--line); font-size: .87rem; }
.kv dt { font-weight: 700; color: var(--muted); }
.kv dd { margin: 0; text-align: end; }
.stage-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.stage-list li { padding: 4px 7px; border-radius: 7px; background: #f1eee8; color: var(--muted); font-size: .75rem; }
.stage-list .current { background: var(--green-bg); color: var(--green); font-weight: 800; }
.status-bars { display: grid; gap: 8px; }
.table-wrap th[scope=row] { background: transparent; color: var(--ink); }
.table-wrap th[scope=row] small { display: block; font-weight: 500; }
.inline-form { align-items: end; }
.inline-form button { min-height: 37px; }
details[open] summary { margin-bottom: 8px; }

.brand { width: fit-content; border: 0; background: transparent; font-family: 'Manrope', 'DM Sans', sans-serif; font-size: 1.23rem; font-weight: 800; line-height: 1; text-align: left; letter-spacing: -.06em; }
.brand small { display: block; padding-top: 5px; font-family: 'DM Sans', sans-serif; font-size: .54rem; letter-spacing: .115em; line-height: 1.1; white-space: nowrap; }
.brand-accent { color: var(--orange); padding-left: 2px; }
.brand-mark { display: flex; align-items: center; justify-content: center; gap: 3px; }
.brand-mark i { width: 3px; height: 12px; border-radius: 5px; background: #fff1eb; }
.brand-mark i:nth-child(2) { height: 20px; }
.nav-icon { display: inline-grid; place-items: center; flex: 0 0 19px; width: 19px; color: #746a60; font-size: 1.03rem; line-height: 1; }
.nav-link.active .nav-icon { color: var(--orange); }
.sidebar-footer { display: flex; align-items: center; gap: 9px; padding: 13px 6px 0; border-top: 1px solid var(--line); margin-top: auto; margin-bottom: 1px; }
.sidebar-footer strong, .sidebar-footer small { display: block; font-size: .72rem; }
.sidebar-footer small { margin-top: 2px; color: var(--muted); }
.sidebar-nav { margin-bottom: 22px; }
.topbar .brand { padding: 0; }
.live-state, .hero-label { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: .75rem; font-weight: 800; }
.live-state { color: var(--green); padding: 5px 4px; }
.live-state i, .hero-label i { width: 7px; height: 7px; border-radius: 50%; background: #38825e; box-shadow: 0 0 0 3px #38825e14; }
.hero-label { color: #ffb79c; font-size: .68rem; letter-spacing: .13em; }
.hero-label i { background: #ff986d; box-shadow: 0 0 0 3px #ff986d30; }
.outlet-selector { display: flex; align-items: center; gap: 6px; color: var(--orange); }
.outlet-selector select { background-color: transparent; font-size: .875rem; font-weight: 800; }
.heading-actions, .inline-actions, .radio-buttons, .order-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.heading-actions:empty { display: none; }
.hero-visual { position: relative; z-index: 0; display: grid; align-items: center; justify-items: center; gap: 19px; flex: 0 0 41%; margin-right: 3%; min-width: 0; }
.hero-visual .waveform { width: 100%; height: clamp(62px, 9vw, 123px); }
.signal-label { color: #ffc8ad; font-size: .62rem; font-weight: 800; letter-spacing: .2em; }
.metric-head { display: flex; align-items: center; justify-content: space-between; gap: 5px; color: var(--muted); font-size: .81rem; }
.metric-head i { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 8px; color: var(--orange); background: var(--orange-bg); font-size: 1rem; font-style: normal; }
.metric:nth-child(2) .metric-head i { color: var(--green); background: var(--green-bg); }
.metric:nth-child(3) .metric-head i { color: var(--amber); background: var(--amber-bg); }
.metric:nth-child(4) .metric-head i { color: var(--red); background: var(--red-bg); }
.metric small { font-size: .72rem; }
.activity-list li { display: flex; gap: 8px; font-size: .85rem; line-height: 1.4; }
.activity-list small { display: block; color: var(--muted); padding-top: 3px; font-size: .72rem; }
.activity-marker { display: grid; place-items: center; align-self: start; flex: 0 0 23px; width: 23px; height: 23px; border-radius: 7px; color: var(--orange); background: var(--orange-bg); font-size: 1.25rem; line-height: 1; }
.outlet-grid, .tracking { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.outlet-card, .tracking article { display: grid; gap: 6px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: #fcfbf8; }
.outlet-card { display: flex; align-items: center; justify-content: space-between; }
.outlet-card p, .tracking small { color: var(--muted); font-size: .77rem; }
.tracking article header, .cart-total, .menu-card-footer, .receipt-items > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.inline-alert { padding: 7px 9px; border-radius: 8px; margin-bottom: 8px; background: #fff1e3; color: #774424; font-size: .86rem; }
.incident-card { display: grid; gap: 7px; margin-bottom: 12px; padding: 14px 17px; border: 1px solid #f0cabd; border-radius: 13px; background: #fff4ed; }
.incident-card .eyebrow { display: block; color: var(--red); margin-bottom: 4px; }
.incident-heading, .issue-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.issue-line { padding-top: 8px; border-top: 1px solid #f2d8cd; }
.rush-strip, .demo-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 11px 13px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.rush-strip > :first-child { margin-right: auto; }
.rush-strip p { color: var(--muted); font-size: .8rem; }
.demo-bar { margin: 12px clamp(16px, 3.2vw, 44px) 0; background: #fff5e8; }
.order-top { display: flex; align-items: center; justify-content: space-between; gap: 3px; }
.btn.bare, .btn.packing-check { background: transparent; border-color: transparent; justify-content: flex-start; padding-inline: 1px; }
.order-top .btn.bare { font-size: .94rem; font-weight: 800; letter-spacing: -.03em; min-height: 24px; }
.order-note { padding: 5px 6px; background: #fbf6e9; border-radius: 6px; color: var(--amber); font-size: .75rem; }
.order-meta { display: flex; flex-wrap: wrap; gap: 4px 7px; color: var(--muted); font-size: .71rem; }
.timer { color: var(--amber); }
.packing-list { display: grid; }
.btn.packing-check { white-space: normal; text-align: left; }
.stage-dot { width: 8px; height: 8px; border-radius: 50%; background: #b95538; }
.stage-dot.accepted { background: #716fbb; }
.stage-dot.preparing { background: #b57728; }
.stage-dot.ready, .stage-dot.completed { background: #47845f; }
.stage-count { padding: 2px 7px; border-radius: 6px; background: #e7e0d6; color: #62574b; margin-left: auto; }
.board-column > header h2 { font-size: .86rem; }
.voice-console { position: relative; isolation: isolate; overflow: hidden; display: grid; justify-items: center; gap: 12px; min-height: 375px; padding: 23px; border-radius: 18px; color: white; background: radial-gradient(ellipse at 50% 60%, #523022 0%, transparent 64%), #251f1a; box-shadow: var(--shadow); text-align: center; }
.voice-console h2 { font-size: clamp(1.4rem, 2.7vw, 2.1rem); letter-spacing: -.06em; }
.voice-console .waveform { height: 70px; width: min(260px,100%); }
.voice-console .hero-ghost { background: #fff1e40f; color: white; border-color: #6b5447; }
.voice-console .hero-ghost:hover { background: #fff1e42b; }
.voice-providers {
  display: flex;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.voice-providers li {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  width: 112px;
  max-width: 100%;
  min-height: 61px;
  padding: 7px;
  border: 1px solid #e9e2da;
  border-radius: 9px;
  background: #fff;
  color: #554c44;
  font-size: .7rem;
  font-weight: 600;
  text-align: center;
}
.voice-providers img { display: block; width: 92px; max-width: 100%; height: 20px; object-fit: contain; }
.radio-status, .live-transcript { color: #f6d0bb; font-size: .87rem; }
.radio-status { color: #b8e5ff; font-weight: 800; }
.live-transcript { max-width: 48ch; }
.radio-grid .command-list { margin-bottom: 14px; }
.radio-grid .inline-actions { margin-block: 8px; }
.microphone { position: relative; display: inline-grid; place-items: center; width: 62px; height: 62px; border: 0; border-radius: 50%; color: #341b13; background: #ff986e; box-shadow: 0 0 0 6px #ee6f4333, 0 6px 25px #ed603d5b; }
.microphone:hover { background: #ffb494; }
.microphone .mic-symbol { position: relative; display: block; width: 20px; height: 19px; margin-top: 1px; border: solid currentColor; border-width: 0 2px 2px; border-radius: 0 0 13px 13px; font-size: 0; }
.microphone .mic-symbol::before { content: ''; position: absolute; width: 8px; height: 17px; border: 2px solid currentColor; border-radius: 8px; left: 4px; bottom: 3px; }
.microphone .mic-symbol::after { content: ''; position: absolute; width: 2px; height: 5px; background: currentColor; left: 7px; bottom: -6px; }
.voice-console[data-voice-state=listening] .microphone { animation: mic-pulse 1.2s ease-in-out infinite alternate; }
.voice-dock {
  position: fixed;
  right: max(clamp(12px, 2.5vw, 32px), env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100vw - 24px);
  padding: 8px 8px 8px 15px;
  border: 1px solid #cadae7;
  border-radius: 22px;
  background: #fff;
  color: #132b40;
  box-shadow: 0 3px 8px #13354f14, 0 12px 24px #13354f26;
}
.voice-dock-copy { display: grid; gap: 3px; min-width: 0; }
.voice-dock-link {
  justify-self: start;
  padding: 4px 4px 4px 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: 800 .9rem Manrope, sans-serif;
}
.voice-dock-link span { margin-left: 4px; color: #08659f; }
.voice-dock-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.voice-dock-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; }
.voice-dock-meta img { object-fit: contain; display: block; }
.voice-dock-status {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-left: 8px;
  border-left: 1px solid #cadae7;
  color: #425a70;
  font-size: .75rem;
}
.voice-dock-status::before { content: ''; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: #748798; }
.voice-dock[data-phase=live] .voice-dock-status::before { background: #007bc4; }
.voice-dock[data-phase=connecting] .voice-dock-status::before,
.voice-dock[data-phase=reconnecting] .voice-dock-status::before,
.voice-dock[data-phase=cleanup] .voice-dock-status::before { background: #a56417; }
.voice-dock .voice-orb {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  color: #fff;
  background: #056cae;
  box-shadow: none;
}
.voice-dock .voice-orb:hover { background: #05598f; }
.voice-dock[data-phase=live] .voice-orb { background: #e9f5fd; color: #075d98; box-shadow: inset 0 0 0 1px #b6dbf2; }
.voice-stop-symbol { display: none; width: 13px; height: 13px; border-radius: 3px; background: currentColor; }
[data-voice-toggle][data-action=agora-leave] .mic-symbol { display: none; }
[data-voice-toggle][data-action=agora-leave] .voice-stop-symbol { display: block; }
.voice-dock ~ .toast { bottom: max(98px, calc(env(safe-area-inset-bottom) + 76px)); }
.app-shell:has(~ .voice-dock) .content { padding-bottom: 96px; }
@media (max-width: 480px) {
  .voice-dock { bottom: max(12px, env(safe-area-inset-bottom)); gap: 8px; }
}
.command-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 11px; }
.conversation { margin-top: 10px; }
.conversation article { display: grid; gap: 3px; padding: 9px 11px; border: 1px solid var(--line); background: #faf8f4; border-radius: 9px; }
.conversation article small { color: var(--muted); }
.toast:empty { display: none; }
.modal-scrim { position: fixed; z-index: 35; inset: 0; display: grid; place-items: center; padding: 15px; background: #251c1490; backdrop-filter: blur(3px); }
.modal .inline-actions, .modal .command-form { margin-block: 8px; }
.receipt-items { display: grid; gap: 5px; margin-block: 9px; padding: 8px 9px; background: #faf7f1; border-radius: 8px; }
.receipt-items > div:last-child { border-top: 1px solid var(--line); padding-top: 5px; }
.customer-shell { display: block; }
.customer-shell .content { width: min(100%, 1200px); }
.portal-toolbar { margin-bottom: 16px; }
.portal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .45fr); gap: 14px; align-items: start; }
.portal .categories { margin-bottom: 12px; }
.portal + .panel { margin-top: 18px; }
.portal .menu-card { display: flex; flex-direction: column; }
.portal .menu-card > div:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.portal .menu-card-footer { margin-top: auto; padding-top: 10px; flex-wrap: wrap; }
.customer-shell .topbar { padding-inline: max(clamp(16px, 3.2vw, 44px), calc((100% - 1200px) / 2 + 44px)); }
.cart .panel-header { margin-bottom: 2px; }
.menu-mark { display: grid; place-items: center; min-height: 74px; border-radius: 9px; background: radial-gradient(ellipse at center, #ffdcc7, #fff0e4); font-size: 2.3rem; }
.menu-card small { color: var(--orange); font-weight: 750; }
.menu-card h2 { font-size: 1.06rem; margin-block: 3px; }
.menu-card p { color: var(--muted); line-height: 1.4; font-size: .83rem; }
.menu-card-footer { margin-top: 8px; }
.cart-line { align-items: center; }
.cart-line > div { flex-shrink: 0; }

@media (max-width: 1120px) {
  :root { --nav-width: 195px; }
  .sidebar { padding-inline: 11px; }
  .metrics, .metric-grid, .stats-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .metric, .stat-card { padding-inline: 12px; }
}
@media (max-width: 960px) {
  .topbar { position: relative; }
  .app-shell:not(.customer-shell) .topbar {
    display: grid;
    grid-template-columns: repeat(3, max-content) minmax(max-content, 1fr);
    gap: 7px;
  }
  .app-shell:not(.customer-shell) .topbar .toolbar { display: contents; }
  .topbar .outlet-selector { grid-column: 1 / 3; }
  .app-shell:not(.customer-shell) .topbar .live-state { grid-column: 3 / -1; justify-self: end; }
  .topbar [data-action=portal] { justify-self: end; }
}
@media (max-width: 850px) {
  :root { --nav-width: 164px; }
  .sidebar { padding-inline: 8px; }
  .brand { padding-inline: 4px; gap: 7px; }
  .brand b, .brand strong, .brand-name { font-size: .98rem; }
  .brand-mark, .logo-mark { width: 32px; height: 32px; flex-basis: 32px; }
  .nav-link { padding-inline: 8px; gap: 7px; font-size: .81rem; }
  .metrics, .metric-grid, .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .portal-grid, .menu-layout, .dashboard-grid, .section-grid, .split-grid, .two-col { grid-template-columns: minmax(0,1fr); }
  .portal { grid-template-columns: minmax(0,1fr); }
  .cart { position: static; }
  .board { scroll-snap-type: x proximity; }
  .board-column { scroll-snap-align: start; }
}
@media (max-width: 640px) {
  .app-shell, .shell { display: block; }
  .sidebar { position: relative; top: auto; min-height: 0; max-height: none; padding: 8px 11px 7px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0 0 7px; }
  .sidebar nav, .sidebar-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; margin: 0 -11px; padding-inline: 11px; }
  .sidebar .nav-group { display: flex; gap: 4px; margin: 0; }
  .nav-label, .sidebar-footer { display: none; }
  .nav-link { min-height: 34px; }
  .topbar { min-height: 54px; padding-block: 9px; gap: 7px; }
  .topbar .btn, .topbar select { font-size: .74rem; min-height: 33px; }
  .topbar .btn { padding-inline: 7px; }
  .content, .main-content { padding-top: 19px; }
  .page-heading, .screen-head { align-items: start; flex-direction: column; gap: 12px; margin-bottom: 16px; }
  .radio-hero, .voice-hero, .hero { min-height: 210px; padding: 21px; gap: 3px; }
  .radio-hero h1, .radio-hero h2, .voice-hero h1, .voice-hero h2, .hero h1, .hero h2 { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .waveform, .signal-bars, .wave { max-width: 20%; min-width: 0; gap: 3px; padding-inline: 0; opacity: .78; }
  .waveform > :nth-child(n+10), .signal-bars > :nth-child(n+10), .wave > :nth-child(n+10) { display: none; }
  .hero-visual { flex-basis: 27%; margin-right: 0; gap: 5px; }
  .hero-visual .waveform, .voice-console .waveform { max-width: none; }
  .voice-console .waveform > :nth-child(n+10) { display: block; }
  .signal-label { font-size: .52rem; }
  .live-state { font-size: .68rem; }
  .panel { padding: 13px 12px; }
}
@media (max-width: 380px) {
  .app-shell:not(.customer-shell) .topbar { grid-template-columns: max-content max-content minmax(0, 1fr); }
  .app-shell:not(.customer-shell) .topbar .live-state { grid-column: 3; white-space: normal; }
  .topbar [data-action=demo-toggle] { justify-self: start; }
  .app-shell:not(.customer-shell) .topbar [data-action=portal] { grid-column: 1 / -1; width: 100%; }
  .customer-shell .topbar .toolbar { gap: 3px; }
}
@media (381px <= width <= 420px) {
  .topbar [data-action=demo-toggle] { max-width: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.service-hero{background:radial-gradient(ellipse at 84% 95%,#714029,transparent 48%),#27201a}
.service-ticket{width:min(43%,350px);color:#352c21;background:#fff2d8;padding:22px 24px 17px;transform:rotate(2deg);box-shadow:4px 8px 0 #160e0e55;border-radius:3px;position:relative}
.service-ticket:after{content:'';position:absolute;inset:auto 0 -5px;height:6px;background:linear-gradient(135deg,#fff2d8 25%,transparent 25%),linear-gradient(225deg,#fff2d8 25%,transparent 25%);background-size:10px 10px}
.service-ticket>small,.ticket-ids,.ticket-stub{font-family:ui-monospace,Consolas,monospace}
.service-ticket>small{font-weight:700;text-transform:uppercase;letter-spacing:.14em}
.service-ticket>strong{font-size:clamp(2rem,3.8vw,3.7rem);display:block;letter-spacing:-.065em}
.ticket-ids{font-size:.91rem;color:#624b32}
.ticket-stub{border-top:1px dashed #a68d69;display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:16px;padding-top:12px;font-size:.75rem}
.counter-link{font-weight:bold;text-underline-offset:3px}
@media(max-width:640px){.service-hero{display:grid;gap:20px}.service-ticket{width:100%;transform:none;padding:14px 18px}.service-ticket>strong{display:inline-block;margin:0 10px;font-size:1.45rem}.ticket-ids{display:inline;font-size:.75rem}.ticket-stub{margin-top:8px;padding-top:8px}}

.screen-head p{color:var(--muted);margin-top:.45rem}
.live-state[data-offline]{background:var(--amber-bg);color:var(--amber)}
.btn:active:not(:disabled){transform:translateY(1px)}
.loading{max-width:38rem;margin:12vh auto;padding:2rem;text-align:center}
.loading:before{content:'';display:block;height:3px;width:5rem;margin:0 auto 1rem;border-radius:2px;background:var(--accent);animation:dabba-load 1s ease-in-out infinite alternate}
@keyframes dabba-load{from{transform:scaleX(.3);opacity:.45}to{transform:scaleX(1);opacity:1}}
@media(prefers-reduced-motion:reduce){.loading:before{animation:none}}


.provider-pair { display:inline-flex; align-items:center; gap:7px; line-height:1; color:#667989; flex:none; }
.provider-pair img { display:block; object-fit:contain; width:49px; height:18px; }
.provider-pair img:last-child { width:56px; }
.provider-pair > span { font:500 12px system-ui,sans-serif; }
.workspace-providers { width:fit-content; margin:0 0 14px 10px; }
.voice-dock-meta .provider-pair { gap:4px; }
.voice-dock-meta .provider-pair img { width:38px; height:14px; }
.voice-dock-meta .provider-pair img:last-child { width:44px; }

.avatar-dialog {
  position: fixed;
  inset: auto max(16px, env(safe-area-inset-right)) max(102px, calc(env(safe-area-inset-bottom) + 82px)) auto;
  z-index: 34;
  width: min(350px, calc(100vw - 32px));
  max-height: calc(100dvh - 118px);
  overflow: auto;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 18px 48px #33230d26;
}
.avatar-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.avatar-stage { overflow: hidden; border-radius: 10px; background: #2a211d; }
.avatar-stage video { display: block; width: 100%; aspect-ratio: 16 / 10; max-height: 35dvh; object-fit: contain; }
.avatar-dialog [data-avatar-status] { min-height: 1.5em; margin-block: 10px; color: var(--muted); font-size: .875rem; }
.avatar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.customer-providers { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:10px; color:var(--muted); font-size:.78rem; padding:18px; border-top:1px solid var(--line); }
.voice-console .waveform i { background:linear-gradient(to top,#8aa4ff,#71d2ff); }
.voice-console .microphone { background:#89d5ff; color:#12334a; box-shadow:0 0 0 6px #65c7ff30; }
@media(max-width:640px) {
 .workspace-identity { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; }
 .workspace-providers { margin:0 2px 7px 0; }
}
.avatar-dialog [hidden] { display: none; }
