/* APEX AI – trang dùng thử cho Ban giám khảo
   Gradient thương hiệu chỉ dùng cho một điểm nhấn: nút micro. Phần còn lại giữ yên tĩnh. */
:root {
  --ink: #1c1745;
  --ink-2: #4b4672;
  --ink-3: #77729a;
  --paper: #f6f5fb;
  --surface: #ffffff;
  --line: #e3e0f0;
  --line-strong: #cbc6e2;
  --violet: #6d28d9;
  --indigo: #4f46e5;
  --blue: #2563eb;
  --grad: linear-gradient(140deg, #7c3aed 0%, #4f46e5 48%, #2563eb 100%);
  --ok: #0f7a55;
  --ok-bg: #e2f4ec;
  --warn: #a5520a;
  --warn-bg: #fdf0db;
  --bad: #b8183a;
  --bad-bg: #fce6ea;
  --calm: #4f46e5;
  --calm-bg: #ecebfc;
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 24px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --tabbar: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
:focus-visible { outline: 3px solid rgba(79, 70, 229, 0.55); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover:not(:disabled) { background: #2d2766; }
.btn--accent { background: var(--indigo); color: #fff; }
.btn--accent:hover:not(:disabled) { background: #4338ca; }
.btn--ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover:not(:disabled) { border-color: var(--ink-3); }
.btn--small { min-height: 34px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn--block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; color: var(--ink);
}
.icon-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
input, select, textarea {
  min-height: 44px; width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--surface);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(79,70,229,.18); }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.stack { display: grid; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px;
  padding: 8px 14px; font-size: 14px; line-height: 1.35; cursor: pointer; text-align: left; color: var(--ink);
}
.chip:hover { border-color: var(--indigo); color: var(--indigo); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand-mark {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: var(--grad); color: #fff; font-size: 17px; font-weight: 800;
}
.brand--large { font-size: 22px; }
.brand--large .brand-mark { width: 40px; height: 40px; border-radius: 11px; font-size: 21px; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: min(520px, 100%); display: grid; gap: 22px; }
.login-title { font-size: clamp(30px, 7vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; }
.login-lead { color: var(--ink-2); font-size: 17px; max-width: 46ch; }
.role-picks { display: grid; gap: 12px; }
.role-pick {
  display: grid; gap: 4px; text-align: left; padding: 18px 20px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-m);
}
.role-pick strong { font-size: 18px; }
.role-pick span { color: var(--ink-3); font-size: 14px; }
.role-pick:hover { border-color: var(--indigo); }
.role-pick:first-child { border-color: var(--ink); box-shadow: inset 4px 0 0 var(--indigo); }
.login-manual summary { cursor: pointer; color: var(--ink-2); font-weight: 600; }
.login-manual form { margin-top: 14px; }
.login-foot { font-size: 13px; color: var(--ink-3); }

/* ---------- shell ---------- */
.shell { min-height: 100vh; padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px; background: rgba(246, 245, 251, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.store-picker { flex: 1 1 200px; min-width: 0; }
.store-picker select { min-height: 38px; padding: 6px 10px; font-weight: 600; font-size: 14px; }
.who { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.who-name { font-weight: 600; }
.who-role { padding: 2px 8px; border-radius: 999px; background: var(--calm-bg); color: var(--indigo); font-size: 12px; font-weight: 700; }
@media (max-width: 560px) {
  .who-name { display: none; }
  .topbar { flex-wrap: nowrap; gap: 8px; padding: 8px 12px; }
  .brand-text { display: none; }
  .who-role { display: none; }
}

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface); border-top: 1px solid var(--line);
}
.tabs button {
  display: grid; justify-items: center; align-content: center; gap: 2px; border: 0; background: none; cursor: pointer;
  color: var(--ink-3); font-size: 12px; font-weight: 600;
}
.tabs button svg { width: 24px; height: 24px; }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-selected="true"] svg { color: var(--indigo); }
.content { width: min(880px, 100%); margin: 0 auto; padding: 20px 16px 32px; }
.panel { display: grid; gap: 22px; }
.panel-head { display: grid; gap: 8px; }
.panel-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.panel-head p { color: var(--ink-2); max-width: 64ch; }
.owner-only-note { padding: 14px 16px; border-radius: var(--r-m); background: var(--warn-bg); color: var(--warn); font-weight: 600; }

@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 236px 1fr; grid-template-rows: auto 1fr; padding-bottom: 0; }
  .topbar { grid-column: 1 / -1; padding: 12px 24px; }
  .tabs {
    position: sticky; top: 62px; align-self: start; height: auto; grid-template-columns: 1fr; gap: 4px;
    padding: 20px 12px; background: none; border: 0;
  }
  .tabs button {
    display: flex; justify-content: flex-start; gap: 12px; padding: 12px 14px; border-radius: 12px; font-size: 15px;
  }
  .tabs button:hover { background: var(--surface); }
  .tabs button[aria-selected="true"] { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
  .content { margin: 0; padding: 28px 32px 48px; }
}

/* ---------- voice POS ---------- */
.voice-stage { display: grid; justify-items: center; gap: 18px; text-align: center; padding: 12px 0 4px; }
.voice-hint { color: var(--ink-3); font-weight: 600; font-size: 15px; }
.utterance {
  font-size: clamp(26px, 6.2vw, 40px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15;
  max-width: 20ch; min-height: 2.3em; display: grid; align-items: center;
}
.utterance.is-live { color: var(--indigo); }
.utterance.is-placeholder { color: var(--ink); }
.mic {
  position: relative; width: 96px; height: 96px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: var(--grad);
  box-shadow: 0 14px 30px -12px rgba(79, 70, 229, .75);
}
.mic svg { width: 40px; height: 40px; }
.mic::before, .mic::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(99, 77, 235, .45); opacity: 0;
}
.mic[aria-pressed="true"]::before { animation: ripple 1.6s ease-out infinite; }
.mic[aria-pressed="true"]::after { animation: ripple 1.6s ease-out .8s infinite; }
.mic.is-busy { opacity: .7; cursor: progress; }
@keyframes ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(1.75); opacity: 0; } }
.mic-status { font-size: 14px; color: var(--ink-3); min-height: 1.4em; }
.switch { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 13px; color: var(--ink-3); max-width: 42ch; text-align: left; cursor: pointer; }
.switch input { width: 18px; height: 18px; min-height: 0; margin-top: 2px; accent-color: var(--indigo); }
.try-row { display: grid; gap: 10px; justify-items: start; }
.try-label { font-weight: 700; font-size: 15px; }
.type-instead { display: flex; gap: 8px; }
.type-instead input { flex: 1; }

/* hóa đơn in nhiệt */
.receipt-wrap { display: grid; justify-items: center; gap: 14px; }
.receipt {
  width: min(430px, 100%); background: var(--surface); color: #1d1b2c; font-family: var(--mono); font-size: 14px;
  padding: 22px 20px 30px; position: relative; box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(28, 23, 69, .6);
  --zig: 10px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--zig) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--zig) 100%;
}
.receipt h3 { font-family: var(--mono); font-size: 15px; font-weight: 600; text-align: center; letter-spacing: 0; }
.receipt .r-sub { text-align: center; color: #5d5a73; font-size: 12.5px; margin-top: 2px; }
.receipt .r-rule { border: 0; border-top: 1.5px dashed #b9b6c9; margin: 14px 0; }
.receipt .r-said { font-size: 13px; color: #4b4864; }
.r-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 8px 0; border-bottom: 1px dotted #d9d6e5; }
.r-line:last-child { border-bottom: 0; }
.r-name { font-weight: 600; }
.r-name small { display: block; font-weight: 400; color: #6a6782; font-size: 12px; }
.r-amount { text-align: right; font-weight: 600; white-space: nowrap; }
.r-meta { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid #cfcbe0; border-radius: 8px; overflow: hidden; }
.qty button { width: 30px; height: 30px; border: 0; background: #f1f0f7; cursor: pointer; font-family: var(--mono); font-size: 16px; }
.qty input { width: 52px; min-height: 30px; height: 30px; border: 0; border-radius: 0; text-align: center; padding: 0 2px; font-family: var(--mono); }
.r-line select { min-height: 32px; padding: 4px 8px; font-family: var(--font); font-size: 13px; width: auto; max-width: 100%; }
.r-x { margin-left: auto; border: 0; background: none; color: #8b88a0; cursor: pointer; font-size: 13px; text-decoration: underline; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-family: var(--font); font-size: 12px; font-weight: 700; }
.tag--ok { background: var(--ok-bg); color: var(--ok); }
.tag--warn { background: var(--warn-bg); color: var(--warn); }
.tag--bad { background: var(--bad-bg); color: var(--bad); }
.tag--calm { background: var(--calm-bg); color: var(--indigo); }
.r-totals { display: grid; gap: 4px; }
.r-totals div { display: flex; justify-content: space-between; gap: 12px; }
.r-totals .r-grand { font-size: 19px; font-weight: 600; padding-top: 6px; }
.r-section { display: grid; gap: 10px; margin-top: 16px; font-family: var(--font); }
.r-section label { font-family: var(--font); }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pay-methods label { display: block; cursor: pointer; }
.pay-methods input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pay-methods span {
  display: grid; place-items: center; min-height: 42px; border-radius: 10px; border: 1px solid #cfcbe0;
  font-size: 13.5px; font-weight: 700; color: var(--ink-2); text-align: center; padding: 4px;
}
.pay-methods input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pay-methods input:focus-visible + span { outline: 3px solid rgba(79,70,229,.55); outline-offset: 2px; }
.cash-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.cash-quick button { border: 1px solid #cfcbe0; background: #fff; border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: 13px; }
.customer-pill { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.warnings { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-family: var(--font); font-size: 13.5px; }
.warnings li { padding: 8px 10px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); }
.engine-note { font-family: var(--font); font-size: 12px; color: var(--ink-3); text-align: center; }
.pay-step { display: grid; gap: 12px; justify-items: center; text-align: center; font-family: var(--font); }
.pay-step .big { font-size: 22px; font-weight: 800; }
.qr { width: 196px; height: 196px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.qr svg, .qr img { width: 100%; height: 100%; }
.done-mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }
.done-mark svg { width: 30px; height: 30px; }

/* ---------- invoice ---------- */
.upload {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 18px; border-radius: var(--r-l);
  border: 1.5px dashed var(--line-strong); background: var(--surface);
}
.upload-btn { cursor: pointer; }
.upload-note { flex-basis: 100%; font-size: 13px; color: var(--ink-3); }
.doc-head { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: start; }
.doc-head img { width: 112px; height: 140px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.doc-head dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; }
.doc-head dt { color: var(--ink-3); }
.doc-head dd { margin: 0; font-weight: 600; }
.inv-lines { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.inv-line {
  display: grid; gap: 10px; padding: 14px; border-radius: var(--r-m); background: var(--surface);
  border: 1px solid var(--line); border-left: 4px solid var(--ok);
}
.inv-line.is-new { border-left-color: var(--indigo); }
.inv-line.is-off { opacity: .5; }
.inv-top { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.inv-raw { font-weight: 700; }
.inv-conv { font-size: 13.5px; color: var(--ink-2); }
.inv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.inv-grid .wide { grid-column: 1 / -1; }
.inv-grid label { font-size: 12.5px; }
.inv-grid input, .inv-grid select { min-height: 38px; padding: 6px 10px; font-size: 14px; }
.inv-note { font-size: 12.5px; color: var(--ink-3); }
@media (min-width: 700px) {
  .inv-grid { grid-template-columns: 2fr 1fr 1fr; }
  .inv-grid .wide { grid-column: auto; }
}
.sum-bar {
  position: sticky; bottom: calc(var(--tabbar) + 10px); z-index: 5; display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  justify-content: space-between; padding: 12px 14px; border-radius: var(--r-m); background: var(--ink); color: #fff;
  box-shadow: 0 16px 34px -18px rgba(28,23,69,.8);
}
.sum-bar .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.sum-bar .btn--accent { background: #fff; color: var(--ink); }
.sum-bar strong { font-size: 17px; }
.sum-bar label { color: #d8d5ee; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.sum-bar label input { width: 18px; height: 18px; min-height: 0; accent-color: #fff; }
@media (min-width: 900px) { .sum-bar { bottom: 16px; } }
@media (max-width: 699px) { .sum-bar { position: static; } }

/* ---------- chat ---------- */
.panel--chat { gap: 0; min-height: calc(100vh - 140px - var(--tabbar)); grid-template-rows: 1fr auto; }
.thread { display: grid; align-content: start; gap: 18px; padding-bottom: 16px; }
.msg { display: grid; gap: 10px; max-width: 100%; }
.msg--user { justify-self: end; max-width: 85%; padding: 10px 14px; border-radius: 18px 18px 4px 18px; background: var(--ink); color: #fff; }
.msg--ai { padding: 4px 0; }
.msg--ai .ai-text { font-size: 16px; }
.ai-text p + p, .ai-text ul, .ai-text ol { margin-top: 8px; }
.ai-text ul, .ai-text ol { padding-left: 20px; margin-bottom: 0; }
.ai-text li + li { margin-top: 4px; }
.ai-text strong { font-weight: 700; }
.ai-text h4 { font-size: 16px; margin-top: 10px; }
.ai-by { font-size: 12px; color: var(--ink-3); }
.chart-box { position: relative; height: 240px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.chart-box--tall { height: 300px; }
.chart-title { font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.data-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table caption { text-align: left; padding: 10px 12px 4px; font-weight: 700; }
.data-table th, .data-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.data-table th { color: var(--ink-3); font-weight: 600; font-size: 12.5px; }
.data-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table tr:last-child td { border-bottom: 0; }
.typing { display: inline-flex; gap: 5px; padding: 10px 0; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); animation: blink 1.2s infinite both; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.composer {
  position: sticky; bottom: calc(var(--tabbar) + 8px); display: flex; gap: 8px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 30px -20px rgba(28,23,69,.5);
}
.composer input { border: 0; box-shadow: none; }
.composer input:focus { box-shadow: none; }
@media (min-width: 900px) { .composer { bottom: 16px; } .panel--chat { min-height: calc(100vh - 120px); } }

/* ---------- stock ---------- */
.stock-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.stock-controls .btn { grid-column: 1 / -1; }
@media (min-width: 700px) { .stock-controls { grid-template-columns: 1fr 1fr auto; } .stock-controls .btn { grid-column: auto; } }
.health { display: grid; gap: 10px; }
.health-bar { display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: var(--line); }
.health-bar span { display: block; height: 100%; }
.health-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.health-legend li { display: flex; align-items: center; gap: 6px; }
.health-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.health-legend b { font-variant-numeric: tabular-nums; }
.ai-note { padding: 16px 18px; border-radius: var(--r-m); background: var(--calm-bg); border: 1px solid #d7d4f7; }
.ai-note h3 { font-size: 15px; margin-bottom: 6px; color: var(--indigo); }
.stock-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.stock-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.stock-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 6px 12px; align-items: start; padding: 12px 14px;
  border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line);
}
.stock-item input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; margin-top: 2px; accent-color: var(--indigo); }
.stock-name { font-weight: 700; }
.stock-reason { grid-column: 2 / -1; font-size: 13px; color: var(--ink-2); }
.stock-side { display: grid; justify-items: end; gap: 4px; }
.stock-side input { width: 92px; min-height: 34px; padding: 4px 8px; text-align: right; font-size: 14px; }
.stock-side small { font-size: 12px; color: var(--ink-3); }
.cover { grid-column: 2 / -1; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); }
.cover-track { flex: 1; max-width: 260px; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.cover-track span { display: block; height: 100%; border-radius: 99px; }

/* ---------- misc ---------- */
.loading { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 600; padding: 12px 0; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--indigo); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { padding: 22px; border-radius: var(--r-m); border: 1px dashed var(--line-strong); color: var(--ink-2); text-align: center; }
.error-box { padding: 14px 16px; border-radius: var(--r-m); background: var(--bad-bg); color: var(--bad); font-weight: 600; }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar) + 18px); transform: translateX(-50%); z-index: 50;
  max-width: min(92vw, 520px); padding: 12px 16px; border-radius: 12px; background: var(--ink); color: #fff;
  font-size: 14.5px; box-shadow: 0 16px 30px -16px rgba(0,0,0,.5);
}
.toast.is-error { background: var(--bad); }
@media (min-width: 900px) { .toast { bottom: 24px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* tính năng chỉ dành cho chủ cửa hàng */
.panel.is-locked > :not(.panel-head):not(.owner-only-note) { display: none !important; }
