@font-face {
  font-family: Inter;
  src: url("../assets/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --space-indigo: #22223b;
  --dusty-grape: #4a4e69;
  --almond-silk: #c9ada7;
  --parchment: #f2e9e4;
  --lilac-ash: #9a8c98;

  --bg1: var(--parchment);
  --glass: #fcf8f6;
  --glass2: #eae0df;
  --pn: var(--glass);
  --bd: #dacdd2;
  --gb: var(--bd);
  --tx: var(--space-indigo);
  --mu: var(--dusty-grape);
  --ac: var(--dusty-grape);
  --ac2: #665a76;
  --signal: var(--almond-silk);
  --ink: var(--space-indigo);
  --primary: var(--space-indigo);
  --primary-hover: var(--dusty-grape);
  --primary-text: var(--parchment);
  --positive-text: #414763;
  --warning-text: #694b4c;
  --danger-text: #743e53;
  --info-text: #514565;
  --positive-surface: #e4e3eb;
  --warning-surface: #ead8d2;
  --danger-surface: #eedce4;
  --info-surface: #e9e1eb;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --ease: cubic-bezier(.2,.7,.25,1);
}
html.dark {
  color-scheme: dark;
  --bg1: var(--space-indigo);
  --glass: #2d2d48;
  --glass2: #393950;
  --bd: #54536c;
  --tx: var(--parchment);
  --mu: #cbc0ca;
  --ac: var(--almond-silk);
  --ac2: #d3bac9;
  --primary: var(--almond-silk);
  --primary-hover: #dac1bb;
  --primary-text: var(--space-indigo);
  --positive-text: #e0dff1;
  --warning-text: #ead0c9;
  --danger-text: #f2c7d8;
  --info-text: #e7d5ed;
  --positive-surface: #41445e;
  --warning-surface: #4b3947;
  --danger-surface: #53354c;
  --info-surface: #453a57;
}
[hidden], .hidden { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg1);
  color: var(--tx);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--ac2); outline-offset: 3px; }
#view:focus { outline: none; }
::selection { color: var(--ink); background: var(--signal); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--bd); border-radius: 8px; }
.noscroll { scrollbar-width: thin; }
.icon { width: 19px; height: 19px; flex: none; vertical-align: middle; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-size: 21px; font-weight: 680; letter-spacing: -.085em; white-space: nowrap; }
.wordmark-ai { margin-left: 2px; font-weight: 520; color: var(--mu); }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 8px; background: var(--signal); color: var(--ink); }
.brand-mark svg { width: 23px; height: 23px; }
.status-dot { display: inline-block; width: 7px; height: 7px; flex: none; background: var(--dusty-grape); border-radius: 50%; }
.dark .status-dot { background: var(--signal); }

.card { min-width: 0; position: relative; background: var(--glass); border: 1px solid var(--gb); border-radius: 13px; }
.eyebrow, .micro-label { font: 600 11px/1.5 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--mu); }
.grad { color: var(--ac); }
html .text-gray-400, html .text-gray-500 { color: var(--mu); }
html .text-gray-600 { color: var(--mu); }
.view-enter { animation: view-in 330ms var(--ease) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.lift, .prod { transition: background-color 160ms ease, border-color 160ms ease; }
button.lift:hover, .prod:hover { border-color: var(--ac2); background-color: var(--glass2); }
.prod { min-width: 0; }
button.prod { cursor: pointer; }
.kpi, .td, .number { font-variant-numeric: tabular-nums; }

.btn, .ibtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms var(--ease);
}
.btn { min-height: 34px; font-size: 13px; font-weight: 620; padding: 9px 13px; white-space: nowrap; }
.ibtn { width: 36px; height: 36px; position: relative; color: var(--tx); flex: none; }
.btn:active, .ibtn:active { transform: translateY(1px); }
.btn .arr { transition: transform 180ms var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { background: var(--primary); color: var(--primary-text); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { border-color: var(--bd); background: var(--glass); color: var(--tx); }
.btn-ghost:hover, .ibtn:hover { background: var(--glass2); border-color: var(--bd); }
.btn-confirm { background: var(--primary); color: var(--primary-text); }
.btn-confirm:hover { background: var(--primary-hover); }
.btn-red { background: var(--danger-surface); color: var(--danger-text); }
.btn:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.badge { position: absolute; top: -1px; right: -3px; min-width: 16px; padding: 0 3px; border-radius: 5px; background: #743e53; color: #fff; font: 600 10px/16px var(--mono); }
.theme-ic { position: relative; width: 19px; height: 19px; }
.theme-ic svg { position: absolute; inset: 0; transition: opacity 180ms ease, transform 220ms var(--ease); }
.theme-ic .sun { opacity: 1; }
.theme-ic .moon { opacity: 0; transform: rotate(-35deg); }
.dark .theme-ic .sun { opacity: 0; transform: rotate(35deg); }
.dark .theme-ic .moon { opacity: 1; transform: none; }
.seg { display: flex; align-items: center; padding: 3px; border: 1px solid var(--bd); background: var(--glass2); border-radius: 8px; }
.seg button { color: var(--mu); border-radius: 5px; padding: 6px 10px; font-size: 12px; font-weight: 580; }
.seg button.on { background: var(--glass); color: var(--tx); box-shadow: 0 0 0 1px var(--bd); }
.inp { min-width: 0; width: 100%; border: 1px solid var(--bd); border-radius: 7px; padding: 10px 11px; background: var(--glass); color: var(--tx); font-size: 14px; }
#cartbox input[type="number"] { background: var(--glass); color: var(--tx); }
.inp::placeholder { color: var(--mu); opacity: .86; }
.inp:focus { outline: 2px solid var(--ac2); outline-offset: -1px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 5px; font-size: 11px; font-weight: 590; }
.th { padding: 11px 13px; text-align: left; white-space: nowrap; color: var(--mu); font: 600 11px/1.4 var(--mono); text-transform: uppercase; }
.td { padding: 10px 13px; border-top: 1px solid var(--bd); font-size: 13px; vertical-align: middle; }

#login { max-width: 1460px; min-height: 100svh; padding: 0 clamp(24px,5vw,78px); margin-inline: auto; }
.entry-bar, .entry-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.entry-bar { min-height: 76px; border-bottom: 1px solid var(--bd); }
.entry-edition, .entry-local { display: flex; align-items: center; gap: 8px; color: var(--mu); font-size: 12px; }
.entry-edition:hover { color: var(--tx); }
.entry-grid { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(300px, 1fr); align-items: center; gap: clamp(28px, 6vw, 96px); padding: clamp(42px,6vh,88px) 0 38px; }
.entry-story, .entry-access { animation: view-in 520ms var(--ease) both; }
.entry-access { animation-delay: 90ms; }
.entry-index span { color: var(--ac); margin-right: 6px; }
.entry-story h1, .entry-access h2, .overview-title, .page-title { font-weight: 480; letter-spacing: -.068em; line-height: 1.01; }
.entry-story h1 { font-size: clamp(44px,5.25vw,83px); margin: 13px 0 15px; }
.entry-story h1 span { color: var(--ac); }
.entry-story > p { max-width: 420px; color: var(--mu); font-size: 15px; line-height: 1.6; }
.receipt-stage { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; min-height: clamp(220px,31vh,310px); margin-top: 27px; border-radius: 13px; background: var(--space-indigo); color: var(--parchment); }
.receipt-stage::before { content: ""; position: absolute; inset: 14px; z-index: -1; border: 1px solid var(--dusty-grape); background-image: radial-gradient(#55536c 1px, transparent 1px); background-size: 15px 15px; }
.stage-label, .stage-footer, .stage-coordinate { position: absolute; z-index: 1; font: 600 9px/1.5 var(--mono); letter-spacing: .1em; }
.stage-label, .stage-footer { inset-inline: 25px; display: flex; justify-content: space-between; }
.stage-label { top: 22px; }
.stage-footer { bottom: 21px; }
.stage-coordinate { left: 28px; top: 41%; color: var(--almond-silk); }
.receipt-slot { transform: rotate(-8deg); width: min(57%, 256px); filter: drop-shadow(10px 13px 9px #13132780); }
.stage-receipt { padding: 15px 16px 18px; background: var(--parchment); color: var(--space-indigo); clip-path: polygon(0 0,100% 0,100% 97%,97% 100%,94% 97%,91% 100%,88% 97%,85% 100%,82% 97%,79% 100%,76% 97%,73% 100%,70% 97%,67% 100%,64% 97%,61% 100%,58% 97%,55% 100%,52% 97%,49% 100%,46% 97%,43% 100%,40% 97%,37% 100%,34% 97%,31% 100%,28% 97%,25% 100%,22% 97%,19% 100%,16% 97%,13% 100%,10% 97%,7% 100%,4% 97%,0 100%); font: 500 clamp(8px,1vw,11px)/1.5 var(--mono); animation: ticket-feed 900ms 180ms var(--ease) both; }
@keyframes ticket-feed { from { opacity: 0; transform: translateY(-32px); clip-path: inset(82% 0 0); } to { opacity: 1; transform: none; } }
.stage-ticket-title, .stage-ticket-row, .stage-ticket-total { display: flex; justify-content: space-between; gap: 6px; }
.stage-ticket-title { border-bottom: 1px dashed var(--lilac-ash); padding-bottom: 7px; margin-bottom: 6px; font-weight: 700; }
.stage-ticket-total { border-top: 1px dashed var(--lilac-ash); margin-top: 7px; padding-top: 6px; align-items: baseline; }
.stage-ticket-total strong { font-size: 23px; letter-spacing: -.07em; }
.stage-barcode { width: 52%; height: 15px; background: repeating-linear-gradient(90deg,var(--dusty-grape) 0 1px,transparent 1px 3px,var(--dusty-grape) 3px 5px,transparent 5px 6px,var(--dusty-grape) 6px 7px,transparent 7px 10px); margin-top: 4px; }
.stage-stamp { position: absolute; top: 55%; left: 66%; display: flex; align-items: center; gap: 8px; padding: 8px 10px; transform: rotate(9deg); border: 1px solid var(--space-indigo); background: var(--signal); color: var(--ink); font: 700 9px/1.1 var(--mono); letter-spacing: .08em; animation: stamp-in 520ms 720ms var(--ease) both; }
@keyframes stamp-in { from { opacity: 0; transform: rotate(17deg) scale(1.25); } }
.entry-features { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 13px; }
.entry-features span { border-top: 1px solid var(--bd); padding-top: 11px; font-size: 12px; }
.entry-features b { margin-right: 5px; color: var(--mu); font: 500 10px var(--mono); }
.entry-access { padding: clamp(24px,3vw,44px); }
.entry-access h2 { font-size: clamp(36px,4vw,56px); margin: 10px 0 13px; }
.entry-help { font-size: 13px; line-height: 1.6; color: var(--mu); margin-bottom: 21px; }
.entry-button { min-height: 45px; justify-content: space-between; padding-inline: 14px; }
.entry-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--mu); font-size: 11px; }
.entry-divider::before, .entry-divider::after { content: ""; flex: 1; border-top: 1px solid var(--bd); }
.entry-form { display: grid; gap: 12px; }
.entry-form label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 5px; }
#lerr:empty { display: none; }
.password-toggle { position: absolute; right: 7px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 30px; height: 30px; color: var(--mu); border-radius: 4px; }
.password-toggle:hover { background: var(--glass2); }
.password-toggle svg { width: 17px; height: 17px; }
.entry-demo { display: flex; justify-content: space-between; gap: 8px; padding-top: 12px; margin-top: 16px; border-top: 1px solid var(--bd); font-size: 12px; color: var(--mu); }
.entry-demo button { color: var(--ac); font-weight: 650; }
.entry-local { margin-top: 16px; line-height: 1.4; }
.entry-footer { border-top: 1px solid var(--bd); padding: 15px 0 22px; color: var(--mu); font: 500 9px/1.4 var(--mono); letter-spacing: .09em; }

.gh { position: sticky; top: 0; z-index: 30; background: var(--pn); border-bottom: 1px solid var(--bd); }
.workspace-bar { min-height: 65px; display: flex; align-items: center; gap: 18px; padding-inline: 22px; }
.workspace-bar .wordmark { min-width: 181px; }
.workspace-context { display: flex; align-items: center; gap: 10px; border-left: 1px solid var(--bd); padding-left: 18px; color: var(--mu); font-size: 13px; }
.workspace-context strong { color: var(--tx); font-weight: 600; }
.workspace-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.role-mobile { display: none; }
.workspace-layout { display: flex; }
#side { position: sticky; top: 65px; align-self: flex-start; flex-direction: column; flex: 0 0 224px; min-height: min(660px,calc(100vh - 65px)); max-height: calc(100vh - 65px); overflow: auto; padding: 15px 12px 14px; }
.sidebar-store { display: flex; align-items: center; gap: 9px; padding: 8px 8px 15px; border-bottom: 1px solid var(--bd); margin-bottom: 8px; font-size: 13px; }
.sidebar-avatar { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--bd); background: var(--glass); border-radius: 6px; font: 600 11px var(--mono); }
.sidebar-store small { display: block; color: var(--mu); font-size: 11px; }
.nav-lbl { padding: 14px 9px 5px; font: 600 10px var(--mono); letter-spacing: .09em; color: var(--mu); }
.nav-btn { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 39px; border: 1px solid transparent; border-radius: 7px; padding: 6px 8px; font-size: 13px; font-weight: 560; text-align: left; color: var(--mu); }
.nav-btn .icon { width: 17px; height: 17px; }
.nav-btn:hover, #bnav button:hover { background: var(--glass2); color: var(--tx); }
.nav-btn.active, #bnav button.active { background: var(--signal); color: var(--ink); }
.nav-btn.locked { opacity: .78; }
.nav-btn .lock-icon { width: 13px; height: 13px; }
.nav-text { flex: 1; }
#sideinfo { margin-top: auto; padding: 13px 8px 3px; color: var(--mu); font-size: 11px; }
.sidebar-status { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--bd); padding-top: 11px; }
#view { flex: 1; min-width: 0; min-height: calc(100vh - 65px); border-left: 1px solid var(--bd); padding: clamp(24px,3.2vw,47px); }
#view > .view-enter { max-width: 1450px; margin-inline: auto; }
#bnav { position: fixed; z-index: 40; inset: auto 0 0; background: var(--pn); border-top: 1px solid var(--bd); padding: 5px 6px max(6px,env(safe-area-inset-bottom)); display: flex; justify-content: space-around; }
#bnav button { flex: 1; display: grid; justify-items: center; gap: 3px; color: var(--mu); border-radius: 7px; font-size: 10px; padding: 5px 3px; }
#bnav .icon { width: 17px; height: 17px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 25px; }
.page-title { font-size: clamp(34px,4vw,53px); margin: 4px 0 7px; }
.page-subtitle { max-width: 65ch; font-size: 14px; color: var(--mu); line-height: 1.5; }
.page-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.overview-top { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-bottom: 24px; }
.overview-top .eyebrow { display: flex; align-items: center; gap: 8px; }
.overview-title { margin: 7px 0 8px; font-size: clamp(43px,5vw,69px); }
.overview-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.overview-actions .btn { min-height: 40px; }
.overview-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-bottom: 16px; }
.overview-stat { text-align: left; min-width: 0; padding: clamp(13px,1.5vw,22px); border-left: 1px solid var(--bd); }
.overview-stat:first-child { border-left: 0; }
.overview-stat:hover { background: var(--glass2); border-radius: 10px; }
.stat-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.stat-head .icon { width: 17px; height: 17px; color: var(--ac); }
.stat-value { margin-top: 10px; font-size: clamp(20px,2.6vw,36px); font-weight: 520; letter-spacing: -.055em; line-height: 1.06; white-space: nowrap; }
.stat-note { color: var(--mu); font-size: 12px; margin-top: 5px; }
.overview-body { display: grid; grid-template-columns: minmax(0,1.76fr) minmax(265px,1fr); gap: 16px; }
.overview-trend { padding: 19px 20px 12px; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.section-title { font-size: 20px; font-weight: 580; letter-spacing: -.045em; margin-top: 3px; line-height: 1.2; }
.section-head .chip { color: var(--mu); border: 1px solid var(--bd); white-space: nowrap; }
.overview-chart { height: 237px; margin-top: 11px; }
.overview-advisor, .hero-grad { background: var(--space-indigo); color: var(--parchment); border-color: var(--dusty-grape); }
.overview-advisor { padding: 19px 20px; display: flex; flex-direction: column; }
.overview-advisor .micro-label { color: var(--almond-silk); }
.overview-advisor .section-title { font-size: 23px; }
.advisor-detail { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 17px 0; }
.advisor-detail p { flex: 1 1 130px; font-size: 13px; line-height: 1.55; color: #e8d9df; }
.overview-advisor .btn { align-self: flex-start; margin-top: auto; background: var(--almond-silk); color: var(--space-indigo); }
.overview-advisor .btn:hover { background: #dac1bb; }
.ring-bg { stroke: #ffffff36; }
.ring-fg { transition: stroke-dashoffset 850ms var(--ease); }
.overview-shortcuts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.overview-link { display: flex; align-items: center; text-align: left; gap: 10px; padding: 13px; }
.overview-link .icon { width: 18px; height: 18px; }
.shortcut-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; background: var(--glass2); border-radius: 7px; color: var(--ac); }
.overview-link strong, .overview-link small { display: block; }
.overview-link strong { font-size: 13px; }
.overview-link small { font-size: 11px; color: var(--mu); }
.overview-link .arr { margin-left: auto; }

.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 12px; }
.backdrop { position: absolute; inset: 0; background: #22223ba8; animation: fade-in 170ms ease both; }
@keyframes fade-in { from { opacity: 0; } }
.panel { position: relative; width: 100%; max-height: 92dvh; overflow: auto; overscroll-behavior: contain; color: var(--tx); background: var(--pn); border: 1px solid var(--gb); border-radius: 14px; box-shadow: 0 16px 65px #0003; animation: view-in 230ms var(--ease) both; }
#toasts { position: fixed; z-index: 80; right: 12px; bottom: 12px; display: grid; gap: 6px; pointer-events: none; }
.toast { max-width: min(340px,calc(100vw - 24px)); border: 1px solid var(--dusty-grape); border-radius: 8px; padding: 11px 14px; background: var(--space-indigo); color: #fff; font-size: 13px; animation: view-in 200ms var(--ease) both; }
.toast.warn { background: #694b4c; }
.toast.err { background: #743e53; }
.tip { position: fixed; z-index: 95; max-width: calc(100vw - 16px); padding: 8px 12px; border: 1px solid var(--gb); border-radius: 7px; background: var(--pn); color: var(--tx); font-size: 12px; pointer-events: none; }
.mic { display: grid; place-items: center; flex: none; position: relative; width: 51px; height: 51px; border-radius: 10px; background: var(--signal); color: var(--ink); }
.mic .icon { width: 24px; height: 24px; }
.wave { display: flex; gap: 3px; align-items: center; height: 24px; opacity: .4; overflow: hidden; }
.wave i { width: 3px; flex: 0 0 3px; height: 5px; background: var(--ac2); border-radius: 1px; }
.listening .wave { opacity: 1; }
.listening .wave i { animation: wave 850ms ease-in-out infinite alternate; }
@keyframes wave { to { height: 23px; } }
.paper { white-space: pre; overflow-x: auto; background: var(--parchment); color: var(--space-indigo); padding: 16px; font: 12px/1.4 var(--mono); border-radius: 4px; }
.printing { animation: view-in 320ms var(--ease) both; }
.scanbox { position: relative; overflow: hidden; }
.scanline { position: absolute; height: 2px; inset-inline: 0; background: var(--ac2); animation: scan 1.25s linear infinite; }
@keyframes scan { from { top: 0; } to { top: 100%; } }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.soundbox { animation: view-in 260ms var(--ease) both; }
.spin { width: 21px; height: 21px; flex: none; border: 2px solid var(--bd); border-top-color: var(--ac2); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.drop { border: 1px dashed var(--ac2); border-radius: 10px; background: var(--glass2); }
.drop.over { outline: 2px solid var(--ac2); outline-offset: 3px; }
.shake { animation: shake 330ms ease; }
@keyframes shake { 25%,75% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }
.alert-banner { background: var(--warning-surface); color: var(--warning-text); border: 1px solid var(--bd); }

html .bg-gray-50, html .bg-gray-100, html .bg-gray-200 { background-color: var(--glass2); }
html .border-gray-100, html .border-gray-200, html .border { border-color: var(--bd); }
html .text-gray-900, html .text-gray-800, html .text-gray-700 { color: var(--tx); }
html.dark .bg-white, html.dark .bg-white\/90 { background-color: var(--glass); }
html .text-brand-700, html .text-brand-600, html .text-brand-500 { color: var(--ac); }
html .bg-brand-50, html .bg-brand-100 { background-color: var(--info-surface); }
html .bg-brand-600.text-white, html .bg-brand-500.text-white { background-color: var(--primary); color: var(--primary-text); }
html .border-brand-100, html .border-brand-200 { border-color: var(--bd); }
.bg-positive { background-color: var(--positive-surface); }
.bg-warning { background-color: var(--warning-surface); }
.bg-danger { background-color: var(--danger-surface); }
.bg-info { background-color: var(--info-surface); }
.text-positive { color: var(--positive-text); }
.text-warning { color: var(--warning-text); }
.text-danger { color: var(--danger-text); }
.text-info { color: var(--info-text); }
html .border-positive { border-color: var(--positive-text); }
html .border-warning { border-color: var(--warning-text); }
html .border-danger { border-color: var(--danger-text); }
html .border-info { border-color: var(--bd); }
.bg-positive-strong { background-color: var(--positive-text); }
.bg-warning-strong { background-color: var(--lilac-ash); }
.bg-danger-strong { background-color: #8d5870; }
.bg-info-strong { background-color: var(--dusty-grape); }
.accent-palette { accent-color: var(--ac); }
.payment-header, .soundbox-confirmation { background-color: var(--space-indigo); color: var(--parchment); }

@media (max-width: 1023px) {
  #view { padding-bottom: 83px; border-left: 0; }
  #toasts { bottom: calc(63px + env(safe-area-inset-bottom)); }
  .workspace-bar .wordmark { min-width: 0; }
  .workspace-context { padding-left: 12px; }
}
@media (min-width: 1024px) { #bnav { display: none; } }
@media (max-width: 780px) {
  .entry-grid { grid-template-columns: 1fr; align-items: start; gap: 25px; padding-top: 28px; }
  .entry-access { grid-row: 2; }
  .receipt-stage { min-height: 215px; }
  .entry-story h1 { font-size: clamp(42px,8vw,67px); }
  .stage-receipt { font-size: 10px; }
  .overview-body { grid-template-columns: 1fr; }
  .workspace-context { display: none; }
}
@media (max-width: 639px) {
  #login { padding-inline: 17px; }
  .entry-bar { min-height: 60px; }
  .entry-features { margin-top: 9px; }
  .receipt-stage { min-height: 197px; margin-top: 16px; }
  .receipt-slot { width: min(58%,185px); }
  .stage-stamp { top: 69%; left: 69%; padding: 6px 8px; }
  .stage-receipt { padding: 10px 12px 13px; font-size: 9px; }
  .stage-label, .stage-footer { inset-inline: 19px; font-size: 8px; }
  .stage-label { top: 15px; }
  .stage-footer { bottom: 12px; }
  .receipt-stage::before { inset: 9px; }
  .entry-access h2 br { display: none; }
  .workspace-bar { min-height: 54px; gap: 5px; padding-inline: 10px; }
  .workspace-bar .brand-mark { width: 29px; height: 29px; }
  .workspace-bar .brand-mark svg { width: 19px; height: 19px; }
  .workspace-bar .wordmark { font-size: 18px; gap: 5px; }
  .workspace-actions { gap: 2px; }
  .workspace-actions .ibtn, .drawer-button { width: 34px; height: 36px; padding: 0; }
  .role-desktop { display: none; }
  .role-mobile { display: block; padding: 0 10px 6px; }
  #view { padding-inline: 12px; }
  .overview-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .overview-stat:nth-child(3) { border-left: 0; }
  .overview-stat:nth-child(n+3) { border-top: 1px solid var(--bd); }
  .overview-shortcuts { grid-template-columns: 1fr; gap: 7px; }
  .overview-chart { height: 200px; }
  .micro-label { font-size: 10px; }
  .inp { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

#side { display: flex; }
.icon, .brand-mark svg, .password-toggle svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#view .grid > *, .panel .grid > * { min-width: 0; }
#view .overflow-x-auto, .panel .overflow-x-auto { max-width: 100%; }
.pos-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(300px,.66fr);
  align-items: start;
  gap: 14px;
}
.pos-catalog, #voice, .pos-recent { grid-column: 1; }
#cartbox { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 83px; }
.pos-cart-jump { display: none; }
.feature-icon .icon { width: 30px; height: 30px; }
.chip .icon { width: 14px; height: 14px; }
.prod-mark .icon { width: 22px; height: 22px; color: var(--ac); }
.prod-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 7px; background: var(--glass2); font-size: 20px; }
#catchips { max-width: 100%; }
#voice .chip { white-space: normal; text-align: left; }
@media (max-width: 1023px) {
  #side { display: none; }
}
@media (max-width: 860px) {
  .pos-layout { grid-template-columns: minmax(0,1fr); }
  #cartbox { grid-column: 1; grid-row: auto; position: relative; top: auto; scroll-margin-top: 110px; }
  .pos-cart-jump { display: inline-flex; }
}
@media (max-width: 370px) {
  .workspace-actions .sound-button { display: none; }
  .stat-head .icon { display: none; }
}

.modal-open { overflow: hidden; }
.panel:focus { outline: none; }
#voice { scroll-margin-top: 110px; }
#chatlog { overflow-wrap: anywhere; }
