/* ---------- Design tokens ---------- */
:root {
  --teal-50:#effdf6; --teal-100:#d0f7e4; --teal-500:#02a56e; --teal-600:#029360; --teal-700:#02925F; --teal-800:#015B45;
  --bg:#eef1f5; --surface:#ffffff; --surface-2:#f6f8fa; --border:#e6e9ee;
  --text:#101725; --muted:#697586; --primary:#017250; --primary-ink:#ffffff;
  --green:#16a34a; --red:#dc2626; --amber:#d97706; --blue:#2563eb;
  --shadow-sm:0 1px 2px rgba(16,24,40,.05);
  --shadow:0 1px 2px rgba(16,24,40,.04), 0 4px 14px rgba(16,24,40,.06);
  --shadow-lg:0 4px 12px rgba(16,24,40,.06), 0 18px 40px rgba(16,24,40,.12);
  --ring:0 0 0 3px color-mix(in srgb,var(--primary) 22%,transparent);
  --radius:16px; --radius-sm:11px; --radius-lg:22px;
  --nav-w:238px;
  font-synthesis:none;
}
:root[data-theme="dark"] {
  --bg:#0a0f14; --surface:#141b24; --surface-2:#1a222c; --border:#263241;
  --text:#e8eef5; --muted:#93a1b1; --primary:#2FB57C; --primary-ink:#013825;
  --shadow-sm:0 1px 2px rgba(0,0,0,.4);
  --shadow:0 1px 2px rgba(0,0,0,.4), 0 6px 22px rgba(0,0,0,.35);
  --shadow-lg:0 8px 24px rgba(0,0,0,.45), 0 24px 56px rgba(0,0,0,.5);
  --ring:0 0 0 3px color-mix(in srgb,var(--primary) 30%,transparent);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:#0a0f14; --surface:#141b24; --surface-2:#1a222c; --border:#263241;
    --text:#e8eef5; --muted:#93a1b1; --primary:#2FB57C; --primary-ink:#013825;
    --shadow-sm:0 1px 2px rgba(0,0,0,.4);
    --shadow:0 1px 2px rgba(0,0,0,.4), 0 6px 22px rgba(0,0,0,.35);
    --shadow-lg:0 8px 24px rgba(0,0,0,.45), 0 24px 56px rgba(0,0,0,.5);
    --ring:0 0 0 3px color-mix(in srgb,var(--primary) 30%,transparent);
  }
}

/* ---------- Accent themes ----------
   Each theme overrides the brand hue (buttons, active nav, brand tiles,
   login gate gradient — all driven by --primary / --teal-700 / --teal-800).
   Light variant first, then its dark-mode primary (explicit + auto dark). */
:root[data-accent="teal"]     { --primary:#0f766e; --teal-700:#0f766e; --teal-800:#115e59; }
:root[data-accent="ocean"]    { --primary:#0369a1; --teal-700:#0369a1; --teal-800:#075985; }
:root[data-accent="indigo"]   { --primary:#4f46e5; --teal-700:#4f46e5; --teal-800:#3730a3; }
:root[data-accent="violet"]   { --primary:#7c3aed; --teal-700:#7c3aed; --teal-800:#5b21b6; }
:root[data-accent="rose"]     { --primary:#db2777; --teal-700:#db2777; --teal-800:#9d174d; }
:root[data-accent="crimson"]  { --primary:#dc2626; --teal-700:#dc2626; --teal-800:#991b1b; }
:root[data-accent="sunset"]   { --primary:#ea580c; --teal-700:#ea580c; --teal-800:#9a3412; }
:root[data-accent="gold"]     { --primary:#b45309; --teal-700:#b45309; --teal-800:#78350f; }
:root[data-accent="emerald"]  { --primary:#059669; --teal-700:#059669; --teal-800:#065f46; }
:root[data-accent="graphite"] { --primary:#334155; --teal-700:#334155; --teal-800:#1e293b; }

:root[data-theme="dark"][data-accent="teal"]     { --primary:#2dd4bf; --primary-ink:#04201c; }
:root[data-theme="dark"][data-accent="ocean"]    { --primary:#38bdf8; --primary-ink:#082f49; }
:root[data-theme="dark"][data-accent="indigo"]   { --primary:#818cf8; --primary-ink:#1e1b4b; }
:root[data-theme="dark"][data-accent="violet"]   { --primary:#a78bfa; --primary-ink:#2e1065; }
:root[data-theme="dark"][data-accent="rose"]     { --primary:#f472b6; --primary-ink:#500724; }
:root[data-theme="dark"][data-accent="crimson"]  { --primary:#f87171; --primary-ink:#450a0a; }
:root[data-theme="dark"][data-accent="sunset"]   { --primary:#fb923c; --primary-ink:#431407; }
:root[data-theme="dark"][data-accent="gold"]     { --primary:#fbbf24; --primary-ink:#451a03; }
:root[data-theme="dark"][data-accent="emerald"]  { --primary:#34d399; --primary-ink:#022c22; }
:root[data-theme="dark"][data-accent="graphite"] { --primary:#94a3b8; --primary-ink:#0f172a; }

* { box-sizing:border-box; }
/* The hidden attribute must always win over class display rules
   (.gate/.shell set display:grid, which otherwise overrides it). */
[hidden] { display:none !important; }
html,body { height:100%; }
body {
  margin:0; background:var(--bg); color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:14px; line-height:1.5; -webkit-font-smoothing:antialiased;
}
h1,h2,h3 { margin:0; font-weight:650; letter-spacing:-.01em; }
.muted { color:var(--muted); }
button { font-family:inherit; }
a { color:var(--primary); }

/* ---------- Gate ---------- */
/* Calm brand backdrop: one soft top glow over the diagonal brand gradient. */
.gate { position:fixed; inset:0; display:grid; place-items:center; padding:20px; z-index:50;
  background:radial-gradient(130% 90% at 50% -12%, color-mix(in srgb,var(--teal-700) 80%, #fff 20%), transparent 55%), linear-gradient(160deg,var(--teal-700),var(--teal-800)); }
.gate-card { background:var(--surface); border-radius:20px; padding:34px 30px; width:100%; max-width:340px; text-align:center; box-shadow:0 20px 60px rgba(0,0,0,.3); }
.gate-card h1 { font-size:26px; margin-top:14px; color:var(--primary); letter-spacing:-.02em; }
.gate-card p { margin:4px 0 20px; }
.gate-card .gate-tag { margin:4px 0 0; }
.gate-card .gate-sub { font-size:12.5px; margin:0 0 18px; }
.gate-card input { width:100%; text-align:center; font-size:22px; letter-spacing:6px; padding:12px; margin-bottom:14px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface-2); color:var(--text); }
.gate-card label { display:block; text-align:left; font-size:12px; color:var(--muted); margin-bottom:6px; }
.gate-msg { color:var(--red); font-size:13px; min-height:18px; margin:10px 0 0; }

/* gold sparkle divider under the tagline */
.gate-divider { display:flex; align-items:center; justify-content:center; gap:10px; margin:14px 0 12px; }
.gate-divider i { height:1px; width:52px; background:linear-gradient(90deg,transparent,var(--border)); }
.gate-divider i:last-child { background:linear-gradient(90deg,var(--border),transparent); }
.gate-divider b { width:7px; height:7px; background:#FEC808; transform:rotate(45deg); border-radius:1px; box-shadow:0 0 0 3px color-mix(in srgb,#FEC808 20%,transparent); }

/* text inputs on the gate (email / business name) — normal type, not the
   big spaced passcode style */
.gate-card input.gate-text { font-size:15px; letter-spacing:0; text-align:left; padding:11px 12px; margin-bottom:10px; }

/* password field with show/hide eye */
.gate-pass-wrap { position:relative; margin-bottom:14px; }
.gate-pass-wrap input { margin-bottom:0; padding-right:46px; }
.gate-eye { position:absolute; right:7px; top:50%; transform:translateY(-50%); display:flex; align-items:center; justify-content:center; padding:7px; border:none; background:none; color:var(--muted); cursor:pointer; border-radius:9px; transition:color .15s, background .15s; }
.gate-eye:hover { color:var(--text); background:var(--surface-2); }
.gate-eye .eye-off { display:none; }
.gate-eye.on .eye-open { display:none; }
.gate-eye.on .eye-off { display:block; }

/* gradient Unlock button (scoped to the gate; app buttons stay flat) */
.gate-card .btn-primary { background:linear-gradient(180deg, color-mix(in srgb,var(--primary) 92%, #fff 8%), color-mix(in srgb,var(--primary) 86%, #000 14%)); padding-top:13px; padding-bottom:13px; box-shadow:0 6px 18px color-mix(in srgb,var(--primary) 32%,transparent); }

/* shield divider above the build stamp */
.gate-sec { display:flex; align-items:center; justify-content:center; gap:10px; margin:16px 0 6px; color:var(--muted); opacity:.7; }
.gate-sec i { height:1px; flex:1; max-width:72px; background:var(--border); }

/* platform signature — always shown, even when a business logo owns the tile */
.gate-powered { display:flex; align-items:center; justify-content:center; gap:6px; font-size:11.5px; color:var(--muted); margin:4px 0 2px; }
.gate-powered img { border-radius:4px; display:block; }
.gate-powered b { font-weight:750; color:var(--primary); letter-spacing:-.01em; }
.gate-powered b em { font-style:normal; color:#DFA100; }

.brand-mark { width:56px; height:56px; border-radius:16px; background:var(--teal-700); color:#fff; display:grid; place-items:center; font-weight:800; font-size:30px; margin:0 auto; box-shadow:var(--shadow); }
.brand-mark.sm { width:38px; height:38px; font-size:20px; border-radius:11px; margin:0; }
/* uploaded business logo replaces the letter tile */
.brand-mark.has-logo { background:#fff; padding:5px; }
.brand-mark.has-logo img { max-width:100%; max-height:100%; object-fit:contain; border-radius:8px; display:block; }

/* ---------- Shell ---------- */
.shell { display:grid; grid-template-columns:var(--nav-w) 1fr; height:100vh; }
.sidebar { background:var(--surface); border-right:1px solid var(--border); display:flex; flex-direction:column; padding:16px 12px; gap:6px; }
.sidebar-head { display:flex; align-items:center; gap:10px; padding:6px 8px 14px; }
.brand-text { display:flex; flex-direction:column; line-height:1.2; overflow:hidden; }
.brand-text strong { font-size:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.brand-text span { font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nav { display:flex; flex-direction:column; gap:2px; flex:1; overflow-y:auto; }
.nav-item { display:flex; align-items:center; gap:11px; padding:9px 11px; border-radius:10px; color:var(--muted); cursor:pointer; border:none; background:none; text-align:left; font-size:13.5px; width:100%; font-weight:500; transition:background .16s ease, color .16s ease, box-shadow .16s ease; }
.nav-item:hover { background:var(--surface-2); color:var(--text); }
.nav-item.active { background:var(--primary); color:var(--primary-ink); font-weight:600; box-shadow:0 3px 10px color-mix(in srgb,var(--primary) 34%,transparent); }
.nav-item .ico { width:20px; text-align:center; font-size:15px; }
.nav-sep { font-size:10.5px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); padding:12px 11px 4px; font-weight:700; }
.sidebar-foot { display:flex; gap:6px; padding-top:10px; border-top:1px solid var(--border); }

.main { display:flex; flex-direction:column; overflow:hidden; }
.topbar { display:flex; align-items:center; gap:12px; padding:14px 22px; border-bottom:1px solid var(--border); background:var(--surface); }
.topbar h2 { font-size:18px; flex:1; }
.topbar-actions { display:flex; gap:8px; flex-wrap:wrap; }
.menu-btn { display:none; font-size:18px; }
.view { padding:22px; overflow-y:auto; flex:1; }
.view > * { animation:view-in .32s cubic-bezier(.22,.61,.36,1) both; }
@keyframes view-in { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce) { .view > *, .stat, .btn, .nav-item { animation:none !important; transition:none !important; } }

/* ---------- Buttons ---------- */
.btn { border:1px solid var(--border); background:var(--surface); color:var(--text); padding:8px 14px; border-radius:10px; cursor:pointer; font-size:13.5px; font-weight:550; display:inline-flex; align-items:center; gap:7px; transition:transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, filter .18s ease; white-space:nowrap; }
.btn:hover { border-color:var(--muted); box-shadow:var(--shadow-sm); }
.btn:active { transform:translateY(1px); box-shadow:none; }
.btn:focus-visible { outline:none; box-shadow:var(--ring); }
.btn-primary { background:var(--primary); border-color:var(--primary); color:var(--primary-ink); box-shadow:0 1px 2px color-mix(in srgb,var(--primary) 40%,transparent); }
.btn-primary:hover { filter:brightness(1.06); box-shadow:0 4px 14px color-mix(in srgb,var(--primary) 38%,transparent); transform:translateY(-1px); }
.btn-primary:active { transform:translateY(0); }
.btn-ghost { border-color:transparent; background:transparent; color:var(--muted); }
.btn-ghost:hover { background:var(--surface-2); color:var(--text); box-shadow:none; }
.btn-danger { color:var(--red); border-color:transparent; background:transparent; }
.btn-danger:hover { background:color-mix(in srgb, var(--red) 12%, transparent); box-shadow:none; }
.btn-sm { padding:6px 10px; font-size:12.5px; }
.btn-block { width:100%; justify-content:center; }
.btn:disabled { opacity:.5; cursor:not-allowed; }
.btn:disabled:hover { box-shadow:none; transform:none; }

/* ---------- Cards / grid ---------- */
.grid { display:grid; gap:16px; }
.cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:14px; }
.card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:20px; box-shadow:var(--shadow); }
.card-h { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.card-h h3 { font-size:15px; }
.stat { position:relative; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:17px 19px; box-shadow:var(--shadow); transition:transform .18s ease, box-shadow .18s ease; overflow:hidden; }
.stat::before { content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--primary); opacity:0; transition:opacity .18s ease; }
.stat:hover { transform:translateY(-2px); box-shadow:var(--shadow-lg); }
.stat:hover::before { opacity:.9; }
.stat .label { font-size:11.5px; color:var(--muted); font-weight:650; text-transform:uppercase; letter-spacing:.05em; }
.stat .value { font-size:27px; font-weight:750; margin-top:6px; letter-spacing:-.025em; }
.stat .delta { font-size:12.5px; margin-top:4px; }
.pos-plus { color:var(--green); } .neg { color:var(--red); } .pos { color:var(--green); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x:auto; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); }

/* Activity log rows: columns on desktop; on phones the description drops to
   its own full-width line so nothing spills out of the card. */
.audit-row { display:flex; gap:12px; align-items:baseline; padding:9px 0; border-bottom:1px solid var(--border); font-size:13.5px; }
.audit-row .a-when { flex:0 0 150px; font-size:12px; color:var(--muted); }
.audit-row .a-role { flex:0 0 auto; min-width:64px; font-size:11px; font-weight:700; letter-spacing:.04em; }
.audit-row .a-what { flex:1; min-width:0; overflow-wrap:anywhere; }
@media (max-width:560px) {
  .audit-row { flex-wrap:wrap; gap:2px 10px; }
  .audit-row .a-when, .audit-row .a-role { flex:0 0 auto; }
  .audit-row .a-what { flex:1 1 100%; }
}
table.tbl { width:100%; border-collapse:collapse; font-size:13px; min-width:520px; }
.tbl th { text-align:left; padding:11px 14px; color:var(--muted); font-weight:650; font-size:11.5px; text-transform:uppercase; letter-spacing:.04em; border-bottom:1px solid var(--border); background:var(--surface-2); position:sticky; top:0; }
.tbl td { padding:10px 14px; border-bottom:1px solid var(--border); }
.tbl tr:last-child td { border-bottom:none; }
.tbl tbody tr { transition:background .14s ease; }
.tbl tbody tr:hover { background:var(--surface-2); }
.tbl .num { text-align:right; font-variant-numeric:tabular-nums; }
.tbl .row-actions { text-align:right; white-space:nowrap; }
.empty { text-align:center; padding:40px 20px; color:var(--muted); }
.empty .big { font-size:34px; margin-bottom:8px; }

/* ---------- Forms ---------- */
.field { display:flex; flex-direction:column; gap:5px; margin-bottom:12px; }
.field label { font-size:12.5px; color:var(--muted); font-weight:600; }
.field input, .field select, .field textarea {
  padding:9px 11px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface-2); color:var(--text); font-size:14px; font-family:inherit; width:100%; transition:border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline:none; border-color:var(--primary); background:var(--surface); box-shadow:var(--ring); }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.form-row-3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; }

/* ---------- Modal ---------- */
/* z-index 55: above the login gate (50) so the password-recovery modal is
   clickable on the gate; below toasts (60). */
.modal-back { position:fixed; inset:0; background:rgba(8,12,16,.46); backdrop-filter:blur(3px); -webkit-backdrop-filter:blur(3px); display:grid; place-items:center; z-index:55; padding:16px; animation:fade-in .16s ease both; }
.modal { background:var(--surface); border-radius:var(--radius-lg); box-shadow:var(--shadow-lg); width:100%; max-width:520px; max-height:90vh; overflow:auto; animation:modal-pop .22s cubic-bezier(.22,.61,.36,1) both; }
@keyframes fade-in { from { opacity:0; } to { opacity:1; } }
@keyframes modal-pop { from { opacity:0; transform:translateY(12px) scale(.98); } to { opacity:1; transform:none; } }
.modal-h { display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-bottom:1px solid var(--border); position:sticky; top:0; background:var(--surface); }
.modal-h h3 { font-size:16px; }
.modal-b { padding:20px; }
.modal-f { display:flex; gap:10px; justify-content:flex-end; padding:14px 20px; border-top:1px solid var(--border); position:sticky; bottom:0; background:var(--surface); }

/* ---------- Badges / pills ---------- */
.badge { display:inline-flex; align-items:center; gap:5px; font-size:11.5px; font-weight:650; padding:3px 9px; border-radius:999px; }
.badge.in { background:color-mix(in srgb,var(--green) 15%,transparent); color:var(--green); }
.badge.out { background:color-mix(in srgb,var(--red) 15%,transparent); color:var(--red); }
.badge.grey { background:var(--surface-2); color:var(--muted); }
.badge.amber { background:color-mix(in srgb,var(--amber) 16%,transparent); color:var(--amber); }
.badge.blue { background:color-mix(in srgb,var(--blue) 15%,transparent); color:var(--blue); }

/* ---------- Toast ---------- */
.toast { position:fixed; bottom:22px; left:50%; transform:translateX(-50%); background:var(--text); color:var(--bg); padding:11px 18px; border-radius:10px; font-size:13.5px; font-weight:550; z-index:60; box-shadow:0 8px 30px rgba(0,0,0,.3); }

/* ---------- POS ---------- */
.pos-wrap { display:grid; grid-template-columns:1fr 360px; gap:16px; height:calc(100vh - 120px); }
.pos-catalog { overflow-y:auto; padding-right:4px; }
.pos-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:11px; }
.prod-tile { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-sm); padding:13px; cursor:pointer; text-align:left; transition:.1s; box-shadow:var(--shadow); }
.prod-tile:hover { border-color:var(--primary); transform:translateY(-2px); }
.prod-tile:active { transform:translateY(0); }
.prod-tile .pt-name { font-weight:600; font-size:13px; line-height:1.3; margin-bottom:8px; min-height:34px; }
.prod-tile .pt-price { font-weight:700; color:var(--primary); }
.prod-tile .pt-stock { font-size:11px; color:var(--muted); margin-top:3px; }
.prod-tile.oos { opacity:.5; }
.cart { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); display:flex; flex-direction:column; box-shadow:var(--shadow); overflow:hidden; }
.cart-h { padding:14px 16px; border-bottom:1px solid var(--border); font-weight:650; display:flex; justify-content:space-between; align-items:center; }
.cart-items { flex:1; overflow-y:auto; padding:6px; }
.cart-line { display:flex; align-items:center; gap:8px; padding:8px; border-radius:8px; }
.cart-line:hover { background:var(--surface-2); }
.cart-line .cl-name { flex:1; font-size:13px; }
.cart-line .cl-name small { display:block; color:var(--muted); }
.qty { display:flex; align-items:center; gap:6px; }
.qty button { width:26px; height:26px; border-radius:7px; border:1px solid var(--border); background:var(--surface); cursor:pointer; font-size:15px; line-height:1; color:var(--text); }
.qty span { min-width:20px; text-align:center; font-variant-numeric:tabular-nums; }
.cart-foot { border-top:1px solid var(--border); padding:14px 16px; }
.cart-total-row { display:flex; justify-content:space-between; margin-bottom:6px; font-size:13.5px; }
.cart-total-row.grand { font-size:19px; font-weight:750; margin:8px 0 12px; }
.pay-methods { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin-bottom:10px; }
.pay-methods button { padding:8px; border:1px solid var(--border); border-radius:8px; background:var(--surface); cursor:pointer; font-size:12px; color:var(--text); }
.pay-methods button.sel { background:var(--primary); color:var(--primary-ink); border-color:var(--primary); }

/* receipt */
.receipt { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12.5px; }
.receipt .r-line { display:flex; justify-content:space-between; }
.receipt hr { border:none; border-top:1px dashed var(--border); margin:8px 0; }

/* chart */
.bars { display:flex; align-items:flex-end; gap:10px; height:150px; padding-top:10px; }
.bar-col { flex:1; display:flex; flex-direction:column; align-items:center; gap:6px; height:100%; justify-content:flex-end; }
.bar { width:100%; max-width:38px; border-radius:6px 6px 0 0; background:var(--primary); min-height:2px; transition:.3s; }
.bar.neg-bar { background:var(--red); }
.bar-label { font-size:11px; color:var(--muted); }

.two-col { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.sec-title { font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); font-weight:700; margin:2px 0 10px; }
.report-line { display:flex; justify-content:space-between; padding:7px 0; border-bottom:1px solid var(--border); }
.report-line.total { font-weight:750; border-bottom:2px solid var(--text); border-top:1px solid var(--border); margin-top:4px; }
.report-line .lbl.indent { padding-left:16px; color:var(--muted); }
.pill-row { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px; }

/* ---------- Responsive ---------- */
@media (max-width:900px) {
  .pos-wrap { grid-template-columns:1fr; height:auto; }
  .two-col { grid-template-columns:1fr; }
  .form-row, .form-row-3 { grid-template-columns:1fr; }
}
@media (max-width:760px) {
  .shell { grid-template-columns:1fr; }
  .sidebar { position:fixed; inset:0 auto 0 0; width:var(--nav-w); z-index:30; transform:translateX(-100%); transition:.2s; box-shadow:var(--shadow); }
  .sidebar.open { transform:translateX(0); }
  .menu-btn { display:inline-flex; }
  .sidebar-backdrop { position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:29; }
}
@media print {
  .sidebar,.topbar { display:none !important; }
  .shell { grid-template-columns:1fr; }
  .view { padding:0; overflow:visible; }
  body { background:#fff; }
}
