/* Base rules (design 1.6) */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: var(--fw-regular) var(--fs-14)/var(--lh-body) var(--font-ui); overflow-x: hidden; }
button, [role="button"], a, label[for], .tile, .pm-tile, .key { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.num, .money, .qty, td.num, th.num { font-family: var(--font-num); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
td.num, th.num { text-align: end; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.code { font-family: var(--font-mono); font-size: .95em; }
.muted { color: var(--text-3); }
.is-neg { color: var(--negative); }
.is-pos { color: var(--positive); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
:root[lang="ar"] .caps, :root[lang="ckb"] .caps { text-transform: none; letter-spacing: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; } }
.pos-app { overscroll-behavior: contain; user-select: none; }
.pos-app input, .pos-app textarea { user-select: text; }
@media (max-width: 860px) { body { font-size: var(--fs-16); } }

a { color: var(--link); }
h1, h2, h3, p { margin: 0; }
.ic { width: 18px; height: 18px; flex: none; vertical-align: middle; }
:root[dir="rtl"] .ic--flip { transform: scaleX(-1); }
.boot { min-height: 100vh; display: grid; place-items: center; background: var(--carbon-800); }
.boot-mark { width: 48px; height: 48px; border-radius: var(--r-lg); background: var(--brand); animation: pulse 1.2s var(--ease-in-out) infinite alternate; }
@keyframes pulse { from { opacity: .4; } to { opacity: 1; } }
#print-root { display: none; }
.cur { font-size: .85em; color: var(--text-3); }
.dual { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.dual-usd { font-size: var(--fs-12); color: var(--text-3); }
.stack { display: grid; gap: var(--sp-4); }
.row { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.end { margin-inline-start: auto; }
