/* ================= BUSINESS CONTROL PRO — tokens & base =================
   Vendor brand: night navy + saffron, the daily-report receipt as the signature object.
   Store designs live in 5-themes.css: Luxury (gold id), Premium (emerald id), Elite (ocean id). */
:root, [data-design="brand"] {
  --bg: #0F1630; --bg2: #131C3B; --surface: #18224A; --surface2: #1F2B58; --line: rgba(160, 176, 230, .16);
  --text: #EEF1FA; --muted: #9DA8CC; --primary: #FFC53D; --primary2: #FFE08A; --on-primary: #1D1503; --accent: #7CC6FF;
  --ok: #3DD68C; --bad: #FF6B6B; --warn: #FFB547; --info: #7CC6FF;
  --role-owner: #FFC53D; --role-admin: #7DA2FF; --role-cashier: #F2A93B; --role-seller: #EC6AA4;
  --paper: #FFFDF6; --ink: #1B2242;
  --radius: 12px; --radius-lg: 20px; --shadow: 0 14px 34px rgba(3, 6, 22, .35); --shadow-sm: 0 4px 14px rgba(3, 6, 22, .25);
  --font-d: 'Unbounded', 'Onest', system-ui, sans-serif; --font-b: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --card-bg: var(--surface); --glass: none; --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; height: 100%; }
body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font: 400 15px/1.55 var(--font-b); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; transition: background-color .5s ease, color .3s ease; }
@media (min-width: 900px) { body { font-size: 16px; } }
body.modal-open { overflow: hidden; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--primary) 35%, transparent); }
.ic { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.muted { color: var(--muted); }
.grow { flex: 1; }
.center { text-align: center; justify-self: center; }
.wrap { width: min(1160px, 100%); margin: 0 auto; padding: 0 18px; }
.stack { display: grid; gap: 14px; }
.stack-s { display: grid; gap: 6px; }
.row-gap { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 60ch; }
.lead-sm { color: var(--muted); }
.hint { color: var(--muted); font-size: .8rem; }
.bad-t { color: var(--bad); }

/* ---------- buttons ---------- */
.btn { --b-bg: var(--surface2); --b-fg: var(--text); position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: var(--radius); border: 1px solid transparent; background: var(--b-bg); color: var(--b-fg); font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; transition: transform .18s var(--ease), box-shadow .25s ease, background-color .2s ease, filter .2s ease; -webkit-tap-highlight-color: transparent; user-select: none; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn .ic { width: 18px; height: 18px; }
.btn.primary { --b-bg: var(--primary); --b-fg: var(--on-primary); box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 32%, transparent); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { --b-bg: transparent; border-color: var(--line); }
.btn.ghost:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.btn.soft { --b-bg: color-mix(in srgb, var(--primary) 12%, var(--surface)); --b-fg: var(--text); border-color: color-mix(in srgb, var(--primary) 18%, transparent); }
.btn.soft:hover { --b-bg: color-mix(in srgb, var(--primary) 18%, var(--surface)); }
.btn.danger { --b-bg: var(--bad); --b-fg: #fff; }
.btn.danger-soft { --b-bg: color-mix(in srgb, var(--bad) 13%, transparent); --b-fg: var(--bad); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.btn.wa { --b-bg: #1FAF5A; --b-fg: #fff; box-shadow: 0 8px 22px rgba(31, 175, 90, .3); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: .84rem; border-radius: 10px; }
.btn.lg { min-height: 52px; padding: 0 24px; font-size: 1rem; border-radius: 14px; }
.btn.block { width: 100%; }
.btn.busy .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.link { background: none; border: 0; padding: 0; color: var(--primary); font-weight: 600; text-decoration: none; cursor: pointer; }
.link:hover { text-decoration: underline; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--muted); transition: background-color .2s, color .2s; text-decoration: none; }
.icon-btn:hover { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
.icon-btn:disabled { opacity: .35; pointer-events: none; }
.icon-btn.danger:hover { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .22; transform: scale(0); animation: ripple .7s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .flabel { font-size: .84rem; font-weight: 600; color: var(--muted); }
.req { color: var(--bad); margin-left: 3px; font-weight: 700; }
:where(input:not([type=checkbox]):not([type=radio]):not([type=file])), :where(textarea, select) { width: 100%; min-height: 46px; padding: 11px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 55%, var(--surface)); color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s, background-color .2s; }
textarea { min-height: 0; resize: vertical; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
input.invalid, textarea.invalid, .has-err input, .has-err textarea { border-color: var(--bad) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 18%, transparent); }
.has-err .flabel, .has-err > label { color: var(--bad); }
.has-err .seg { box-shadow: 0 0 0 2px var(--bad); }
input[type=date], input[type=time] { min-height: 46px; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer; }
.select .ic { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; pointer-events: none; color: var(--muted); }
.select.sm select { min-height: 40px; padding-top: 8px; padding-bottom: 8px; font-size: .88rem; }
.input-btn { display: flex; gap: 6px; }
.input-btn input { flex: 1; }
.input-btn .icon-btn { border: 1px solid var(--line); height: 46px; width: 46px; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 50px; font-variant-numeric: tabular-nums; }
.input-suffix span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .85rem; pointer-events: none; }
.ro { min-height: 46px; display: flex; align-items: center; padding: 0 14px; border-radius: var(--radius); border: 1px dashed var(--line); color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
.grid3, .grid4 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid2 .span2 { grid-column: 1 / -1; } .grid3 { grid-template-columns: repeat(3, 1fr); } .grid4 { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: color-mix(in srgb, var(--bg) 55%, var(--surface)); border: 1px solid var(--line); }
.seg-i { position: relative; flex: 1 1 auto; }
.seg-i input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.seg-i span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 10px; font-size: .86rem; font-weight: 600; color: var(--muted); white-space: nowrap; transition: background-color .25s var(--ease), color .2s, box-shadow .25s; }
.seg-i span .ic { width: 16px; height: 16px; }
.seg-i input:checked + span { background: var(--primary); color: var(--on-primary); box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 30%, transparent); }
.seg-i input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.seg.roles3, .field > .seg { display: flex; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw-track { position: relative; width: 46px; height: 28px; border-radius: 99px; background: color-mix(in srgb, var(--muted) 35%, transparent); transition: background-color .25s; flex: none; }
.sw-thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .3s var(--ease); }
.switch input:checked + .sw-track { background: var(--primary); }
.switch input:checked + .sw-track .sw-thumb { transform: translateX(18px); }
.switch input:focus-visible + .sw-track { outline: 2px solid var(--primary); outline-offset: 2px; }
.sw-l { font-size: .92rem; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .92rem; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--primary); flex: none; }
.check.dis { opacity: .55; }
.check small { color: var(--muted); }
.days { display: flex; flex-wrap: wrap; gap: 6px; }
.day input { position: absolute; opacity: 0; }
.day span { display: grid; place-items: center; width: 44px; height: 40px; border-radius: 11px; border: 1px solid var(--line); font-weight: 600; font-size: .86rem; color: var(--muted); cursor: pointer; transition: all .2s var(--ease); }
.day input:checked + span { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.day input:focus-visible + span { outline: 2px solid var(--primary); }
.file-btn { cursor: pointer; }
.file-btn input { display: none; }
.search { position: relative; display: flex; align-items: center; flex: 1 1 220px; min-width: 0; }
.search .ic { position: absolute; left: 13px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input { padding-left: 40px; min-height: 40px; font-size: .9rem; }

/* ---------- chips, badges, avatars ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 2px 10px; border-radius: 99px; font-size: .76rem; font-weight: 600; background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--muted); white-space: nowrap; text-decoration: none; }
.chip .ic { width: 14px; height: 14px; }
.chip.hot { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); }
.st-bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 13%, transparent); }
.st-warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 15%, transparent); }
.st-info { color: var(--info); background: color-mix(in srgb, var(--info) 14%, transparent); }
.st-muted { color: var(--muted); }
.role-owner { --rc: var(--role-owner); } .role-admin { --rc: var(--role-admin); } .role-cashier { --rc: var(--role-cashier); } .role-seller { --rc: var(--role-seller); }
.chip.role { color: var(--rc); background: color-mix(in srgb, var(--rc) 14%, transparent); }
.badge { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--bad); color: #fff; font-size: .68rem; font-weight: 800; line-height: 1; }
.badge.dot { min-width: 9px; width: 9px; height: 9px; padding: 0; }
.avatar { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; font-weight: 700; font-size: .84rem; color: var(--rc, var(--primary)); background: color-mix(in srgb, var(--rc, var(--primary)) 16%, transparent); border: 1px solid color-mix(in srgb, var(--rc, var(--primary)) 28%, transparent); letter-spacing: .02em; }
.avatar.lg { width: 48px; height: 48px; border-radius: 15px; font-size: 1rem; }
.avatar.xl { width: 84px; height: 84px; border-radius: 26px; font-size: 1.7rem; }
.logo-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; font-weight: 800; font-family: var(--font-d); color: var(--on-primary); background: linear-gradient(135deg, var(--primary2), var(--primary)); box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 30%, transparent); overflow: hidden; font-size: .9rem; }
.logo-mark.img { background: var(--surface2); }
.logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.logo-mark.sm { width: 34px; height: 34px; border-radius: 10px; font-size: .78rem; }
.logo-mark.xl { width: 76px; height: 76px; border-radius: 22px; font-size: 1.5rem; }
.brand-mark { display: inline-block; width: 38px; height: 38px; flex: none; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-mark .bm-bg { fill: #FFC53D; }
.brand-mark .bm-frame { fill: none; stroke: #141B3D; stroke-width: 46; }
.brand-mark .bm-knock { fill: none; stroke: #FFC53D; stroke-width: 86; stroke-linecap: round; }
.brand-mark .bm-check { fill: none; stroke: #141B3D; stroke-width: 46; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark.sm { width: 32px; height: 32px; }
.brand-mark.lg { width: 64px; height: 64px; }

/* ---------- cards, alerts ---------- */
.card { position: relative; background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2 { font-size: 1.02rem; font-weight: 700; font-family: var(--font-b); }
.sub-h { font-size: .92rem; margin: 18px 0 8px; }
.alert { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid; text-decoration: none; font-size: .92rem; }
.alert > .ic:first-child { width: 22px; height: 22px; }
.alert > span { flex: 1; min-width: 0; }
.alert.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.alert.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); background: color-mix(in srgb, var(--bad) 9%, transparent); }
.alert.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: color-mix(in srgb, var(--ok) 9%, transparent); }
.alert.info { color: var(--info); border-color: color-mix(in srgb, var(--info) 30%, transparent); background: color-mix(in srgb, var(--info) 9%, transparent); }
.alert span b { color: inherit; }
.alert span { color: var(--text); }
.alert span b:first-child { color: inherit; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--info) 10%, transparent); border: 1px solid color-mix(in srgb, var(--info) 22%, transparent); font-size: .88rem; }
.note .ic { color: var(--info); margin-top: 1px; }
.note.warn { background: color-mix(in srgb, var(--warn) 10%, transparent); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.note.warn .ic { color: var(--warn); }
.note.ok { background: color-mix(in srgb, var(--ok) 10%, transparent); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.note.ok .ic { color: var(--ok); }
.empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 34px 18px; color: var(--muted); }
.empty > .ic { width: 46px; height: 46px; padding: 10px; border-radius: 16px; color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); margin-bottom: 4px; }
.empty h4 { color: var(--text); font-size: 1rem; }
.empty p { max-width: 42ch; font-size: .9rem; }
.empty .btn, .empty .row-gap { margin-top: 8px; }

/* ---------- data viz ---------- */
.ring { position: relative; display: inline-grid; place-items: center; flex: none; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring-bg { fill: none; stroke: color-mix(in srgb, var(--text) 10%, transparent); }
.ring-fg { fill: none; stroke: var(--primary); stroke-linecap: round; transition: stroke-dashoffset .8s var(--ease); }
.ring.good .ring-fg { stroke: var(--ok); } .ring.mid .ring-fg { stroke: var(--warn); } .ring.low .ring-fg { stroke: var(--bad); }
.ring-t { position: relative; font-weight: 800; font-size: .8rem; font-variant-numeric: tabular-nums; }
.ring.big .ring-t { font-size: 1.15rem; font-family: var(--font-d); }
.pbar { display: inline-block; width: 100%; min-width: 50px; height: 7px; border-radius: 9px; background: color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; vertical-align: middle; }
.pbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--primary2)); transition: width .7s var(--ease); }
.pbar.warn i { background: var(--warn); }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; align-items: end; height: 180px; padding-top: 4px; }
.bars.dense { gap: 3px; }
.bar { display: grid; grid-template-rows: auto 1fr auto; height: 100%; gap: 6px; text-align: center; min-width: 0; }
.bar-v { font-size: .72rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-t { position: relative; display: flex; align-items: flex-end; border-radius: 9px; background: color-mix(in srgb, var(--text) 5%, transparent); overflow: hidden; }
.bar-t i { display: block; width: 100%; border-radius: 9px 9px 4px 4px; background: linear-gradient(180deg, var(--primary2), var(--primary)); transform-origin: bottom; }
.bar-t i.good { background: linear-gradient(180deg, color-mix(in srgb, var(--ok) 70%, #fff), var(--ok)); }
.bar-t i.mid { background: linear-gradient(180deg, color-mix(in srgb, var(--warn) 70%, #fff), var(--warn)); }
.bar-t i.low { background: linear-gradient(180deg, color-mix(in srgb, var(--bad) 70%, #fff), var(--bad)); }
.bar-l { font-size: .74rem; color: var(--muted); min-height: 1.2em; }
.bar-l.now { color: var(--text); font-weight: 800; }
.area { display: grid; gap: 8px; }
.area-plot { position: relative; }
.area-plot svg { width: 100%; height: 100%; display: block; overflow: visible; }
.area .grid { stroke: color-mix(in srgb, var(--text) 9%, transparent); stroke-width: 1; stroke-dasharray: 3 4; }
.area .line { fill: none; stroke: var(--primary); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.area-dot { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 25%, transparent); }
.area-max { position: absolute; top: -2px; left: 0; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.area-x { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); }
.area-x .now { color: var(--text); font-weight: 800; }
.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.donut { position: relative; width: 150px; height: 150px; flex: none; }
.donut svg { width: 100%; height: 100%; }
.donut-empty { stroke: color-mix(in srgb, var(--text) 10%, transparent); }
.donut-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-c b { font-size: 1.35rem; font-family: var(--font-d); }
.donut-c span { font-size: .76rem; color: var(--muted); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; min-width: 160px; }
.legend li { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; font-size: .9rem; }
.legend i { width: 12px; height: 12px; border-radius: 4px; }
.legend b { font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; margin: 0 -6px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font-size: .76rem; font-weight: 600; color: var(--muted); padding: 8px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 8px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td small { display: block; color: var(--muted); font-size: .78rem; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .num .pbar { width: 60px; margin-right: 6px; }
@media (max-width: 560px) { .tbl .num .pbar { display: none; } }
.tbl .who { display: flex; align-items: center; gap: 10px; }
.tbl .who small { display: block; }
.tbl .place { font-weight: 800; color: var(--muted); width: 32px; }
.tbl .place.p1 { color: var(--primary); } .tbl .place.p2, .tbl .place.p3 { color: var(--text); }

/* ---------- modal & toast ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 7, 18, .55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s ease; }
.modal { position: relative; width: min(560px, 100%); max-height: min(88vh, 900px); display: flex; flex-direction: column; background: var(--bg2); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); transform: translateY(16px) scale(.97); opacity: 0; transition: transform .32s var(--ease), opacity .25s ease; }
.modal.sm { width: min(430px, 100%); }
.modal.md { width: min(620px, 100%); }
.modal-wrap.open .modal { transform: none; opacity: 1; }
.modal-wrap.open .modal-backdrop { opacity: 1; }
.modal-wrap.closing .modal { transform: translateY(16px) scale(.97); opacity: 0; }
.modal-grab { display: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 18px 8px 22px; }
.modal-head h3 { font-size: 1.1rem; font-family: var(--font-d); font-weight: 700; }
.modal-body { padding: 8px 22px 18px; overflow-y: auto; display: grid; gap: 14px; overscroll-behavior: contain; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding: 14px 22px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .modal-wrap { place-items: end stretch; padding: 0; }
  .modal, .modal.sm, .modal.md { width: 100%; max-height: 92vh; border-radius: 26px 26px 0 0; transform: translateY(100%); }
  .modal-wrap.open .modal { transform: none; }
  .modal-wrap.closing .modal { transform: translateY(100%); }
  .modal-grab { display: block; width: 42px; height: 5px; border-radius: 9px; background: color-mix(in srgb, var(--text) 20%, transparent); margin: 9px auto 0; }
  .modal-head { padding-top: 8px; }
  .modal-foot .btn { flex: 1; white-space: normal; line-height: 1.2; text-align: center; }
  .modal-foot .grow { display: none; }
}
#toast-root { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 1200; display: grid; gap: 8px; width: min(440px, calc(100% - 28px)); pointer-events: none; }
@media (min-width: 1024px) { #toast-root { bottom: 28px; } }
.toast { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--text); color: var(--bg); font-weight: 600; font-size: .9rem; box-shadow: 0 14px 34px rgba(0, 0, 0, .35); transform: translateY(14px) scale(.96); opacity: 0; transition: transform .3s var(--ease), opacity .25s; }
.toast.show { transform: none; opacity: 1; }
.toast.t-err .ic { color: var(--bad); } .toast.t-ok .ic { color: var(--ok); } .toast.t-info .ic { color: var(--info); }
@keyframes spin { to { transform: rotate(360deg); } }
/* ================= Public: landing ================= */
.pub { position: relative; overflow: hidden; }
.pub::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 900px; background: radial-gradient(60% 50% at 85% 10%, rgba(124, 198, 255, .14), transparent 70%), radial-gradient(50% 45% at 10% 0%, rgba(255, 197, 61, .12), transparent 70%); pointer-events: none; }
.pub-head { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.ph-row { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-wm { display: block; height: 32px; width: 105px; flex: none; color: var(--text); }
.brand-wm .wm-s { fill: var(--wm-sub, #FFC53D); }
.brand-wm .wm-c { fill: currentColor; }
.brand-wm .wm-b { fill: #FFC53D; }
.brand-wm .wm-p { fill: #141B3D; }
.pub-nav { display: none; gap: 22px; margin-left: 12px; }
.pub-nav .link { color: var(--muted); font-weight: 500; }
.pub-nav .link:hover { color: var(--text); text-decoration: none; }
.ph-cta { margin-left: auto; display: flex; gap: 8px; }
@media (min-width: 900px) { .pub-nav { display: flex; } }
@media (max-width: 420px) { .ph-cta .btn.primary { display: none; } .brand-wm { height: 28px; width: 92px; } }
.hero { display: grid; gap: 34px; padding-top: 42px; padding-bottom: 30px; align-items: center; }
@media (min-width: 960px) { .hero { grid-template-columns: 1.08fr .92fr; padding-top: 70px; padding-bottom: 60px; gap: 56px; } }
.hero-title { font-family: 'Unbounded', var(--font-b); font-weight: 700; font-size: clamp(1.9rem, 1.2rem + 3.2vw, 3.35rem); line-height: 1.08; letter-spacing: -.02em; max-width: 15ch; }
.hero-lead { margin-top: 18px; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: var(--muted); max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .9rem; }
.hero-points li { display: flex; align-items: center; gap: 6px; }
.hero-points .ic { width: 16px; height: 16px; color: var(--ok); }
.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; inset: 8% 4% 0; background: radial-gradient(closest-side, rgba(255, 197, 61, .22), transparent); filter: blur(10px); }

/* receipt printer — the signature object */
.printer { position: relative; width: min(370px, 100%); margin: 0 auto; }
.printer-body { position: relative; z-index: 3; display: flex; align-items: center; gap: 10px; height: 62px; padding: 0 18px; border-radius: 20px 20px 12px 12px; background: linear-gradient(180deg, #2B3769, #1A2350); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 22px 44px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .12); color: #DCE3FF; }
.printer-led { width: 9px; height: 9px; border-radius: 50%; background: #3DD68C; box-shadow: 0 0 10px #3DD68C; animation: led .5s steps(2) 7 .3s; }
.printer-name { font-weight: 700; font-size: .9rem; }
.printer-time { margin-left: auto; font-variant-numeric: tabular-nums; color: #9FB0E8; font-size: .85rem; }
.printer-slot { position: relative; z-index: 3; height: 10px; margin: -3px 20px 0; border-radius: 0 0 8px 8px; background: #060A1A; box-shadow: inset 0 3px 6px rgba(0, 0, 0, .6); }
.paper-clip { position: relative; z-index: 2; overflow: hidden; margin: -6px 28px 0; padding-bottom: 16px; }
.receipt { position: relative; background: var(--paper); color: var(--ink); padding: 18px 18px 22px; border-radius: 3px 3px 0 0; box-shadow: 0 16px 34px rgba(0, 0, 0, .28); font-size: .86rem; }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: linear-gradient(45deg, transparent 33.333%, var(--paper) 33.333%, var(--paper) 66.667%, transparent 66.667%), linear-gradient(-45deg, transparent 33.333%, var(--paper) 33.333%, var(--paper) 66.667%, transparent 66.667%); background-size: 12px 24px; background-position: 0 -12px; }
.rc-print { padding-bottom: 66px; animation: printOut 3.4s .5s cubic-bezier(.35, .1, .25, 1) both; }
@keyframes printOut { 0% { transform: translateY(-101%); } 14% { transform: translateY(-86%); } 20% { transform: translateY(-86%); } 36% { transform: translateY(-63%); } 42% { transform: translateY(-63%); } 58% { transform: translateY(-40%); } 64% { transform: translateY(-40%); } 82% { transform: translateY(-14%); } 87% { transform: translateY(-14%); } 100% { transform: translateY(0); } }
@keyframes led { to { opacity: .2; } }
.rc-head { display: grid; justify-items: center; text-align: center; gap: 2px; padding-bottom: 12px; border-bottom: 1px dashed rgba(27, 34, 66, .3); margin-bottom: 10px; }
.rc-head b { font-size: 1rem; font-family: var(--font-d); }
.rc-head span { font-size: .78rem; color: #5A6285; }
.rc-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.rc-items li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: start; line-height: 1.35; }
.rc-items i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; color: #fff; background: #1E9E62; }
.rc-items li.no i { background: #D64545; }
.rc-items li.open i { background: #9AA1B8; }
.rc-items i .ic { width: 13px; height: 13px; stroke-width: 3; }
.rc-items em { display: block; font-style: normal; font-size: .76rem; color: #B23B3B; margin-top: 2px; }
.rc-items li.open em { color: #7A8099; }
.rc-sep { border-top: 1px dashed rgba(27, 34, 66, .3); margin: 12px 0; }
.rc-sum { margin: 0; display: grid; gap: 4px; }
.rc-sum div { display: flex; justify-content: space-between; gap: 10px; }
.rc-sum dt { color: #5A6285; }
.rc-sum dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.rc-sum .rc-total { padding: 6px 0; margin: 4px 0; border-top: 1px solid rgba(27, 34, 66, .2); border-bottom: 1px solid rgba(27, 34, 66, .2); font-size: 1rem; }
.rc-sum .rc-total dt { color: var(--ink); font-weight: 700; }
.rc-stamp { position: absolute; right: 16px; bottom: 16px; transform: rotate(-14deg); border: 3px solid #1E9E62; color: #1E9E62; font-weight: 800; padding: 4px 12px; border-radius: 9px; text-transform: uppercase; letter-spacing: .08em; font-size: .95rem; opacity: 0; animation: stamp .5s 4.1s cubic-bezier(.2, 1.6, .4, 1) forwards; pointer-events: none; mix-blend-mode: multiply; }
@keyframes stamp { from { opacity: 0; transform: rotate(-14deg) scale(2.3); } to { opacity: .88; transform: rotate(-14deg) scale(1); } }

.sec { padding-top: 56px; padding-bottom: 8px; }
.sec-head { margin-bottom: 22px; display: grid; gap: 8px; }
.sec-head h2 { font-family: 'Unbounded', var(--font-b); font-size: clamp(1.35rem, 1rem + 1.4vw, 2rem); font-weight: 700; letter-spacing: -.01em; }
.sec-head p { color: var(--muted); max-width: 60ch; }
.row-between { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.roles { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .roles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .roles { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.role-card { position: relative; display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.role-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--rc); }
.role-card.role-owner { background: linear-gradient(160deg, rgba(255, 197, 61, .16), transparent 60%), var(--surface); }
.rc-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--rc); background: color-mix(in srgb, var(--rc) 15%, transparent); }
.role-card h3 { font-size: 1.02rem; margin-top: 4px; }
.role-card b { color: var(--rc); font-size: .9rem; }
.role-card p { color: var(--muted); font-size: .9rem; }
.day { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
@media (min-width: 900px) { .day { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.day li { position: relative; display: grid; grid-template-columns: 82px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .day li { grid-template-columns: 1fr; border-bottom: 0; border-top: 2px solid var(--line); padding-top: 18px; } .day li:first-child { border-top-color: var(--primary); } }
.day time { font-family: 'Unbounded', var(--font-b); font-weight: 700; color: var(--primary); font-size: 1.05rem; }
.day h3 { font-size: 1rem; margin-bottom: 4px; }
.day p { color: var(--muted); font-size: .9rem; }
.feats { display: grid; gap: 1px; grid-template-columns: 1fr; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
@media (min-width: 640px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .feats { grid-template-columns: repeat(3, 1fr); } }
.feat { background: var(--bg); padding: 22px; display: grid; gap: 8px; align-content: start; }
.f-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.feat h3 { font-size: 1rem; }
.feat p { color: var(--muted); font-size: .9rem; }
.designs { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .designs { grid-template-columns: repeat(3, 1fr); } }
.design-card { display: grid; gap: 8px; align-content: start; }
.design-card h3 { font-size: 1rem; margin-top: 6px; }
.design-card p { color: var(--muted); font-size: .88rem; }
.dc-prev { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: 22px; overflow: hidden; text-align: left; cursor: pointer; }
.dc-play { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #111; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); transition: transform .25s var(--ease); }
.dc-prev:hover .dc-play { transform: scale(1.1); }
.design-card.pick { position: relative; cursor: pointer; padding: 10px; border-radius: 26px; border: 2px solid var(--line); background: var(--surface); transition: border-color .25s, transform .25s var(--ease); }
.design-card.pick input { position: absolute; opacity: 0; pointer-events: none; }
.design-card.pick.sel { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.design-card.pick .dc-prev { cursor: inherit; border-radius: 18px; }
.dc-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 4px 4px 0; }
.dc-row b { display: block; font-size: .95rem; }
.dc-row small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.design-card.pick .btn { justify-self: start; margin: 2px 4px 4px; }
.t-check { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid var(--line); color: transparent; transition: all .25s var(--ease); }
.t-check .ic { width: 15px; height: 15px; stroke-width: 3; }
.sel .t-check { background: var(--primary); border-color: var(--primary); color: var(--on-primary); transform: scale(1.08); }
.designs.small { margin-bottom: 14px; }
@media (min-width: 700px) { .designs.small .dmini { aspect-ratio: 16 / 11; } }

/* design mini previews: each one carries its own design tokens */
.dmini { position: relative; aspect-ratio: 4 / 4.2; overflow: hidden; border-radius: 18px; background: var(--bg); color: var(--text); padding: 14px; display: grid; gap: 9px; align-content: start; font-family: var(--font-b); border: 1px solid var(--line); isolation: isolate; }
.dm-fx { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.dm-fx i { position: absolute; border-radius: 50%; }
.dm-top { display: flex; align-items: center; gap: 8px; font-size: .78rem; }
.dm-top b { font-family: var(--font-d); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-logo { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; flex: none; background: linear-gradient(135deg, var(--primary2), var(--primary)); color: var(--on-primary); font-weight: 800; font-size: .64rem; }
.dm-hero { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--card-bg); border: 1px solid var(--line); backdrop-filter: var(--glass); }
.dm-hero b { display: block; font-size: .76rem; }
.dm-hero span { font-size: .68rem; color: var(--muted); }
.dm-ring { position: relative; width: 42px; height: 42px; flex: none; display: grid; place-items: center; }
.dm-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.dm-ring circle { fill: none; stroke-width: 4.5; }
.dm-ring .bg { stroke: color-mix(in srgb, var(--text) 12%, transparent); }
.dm-ring .fg { stroke: var(--primary); stroke-linecap: round; stroke-dasharray: 100.5; stroke-dashoffset: 22; animation: dmRing 3.2s ease-in-out infinite alternate; }
.dm-ring span { font-size: .6rem; font-weight: 800; }
@keyframes dmRing { from { stroke-dashoffset: 70; } to { stroke-dashoffset: 18; } }
.dm-list { display: grid; gap: 5px; }
.dm-list span { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 9px; background: color-mix(in srgb, var(--text) 5%, transparent); font-size: .66rem; }
.dm-list i { width: 12px; height: 12px; border-radius: 4px; border: 1.5px solid var(--muted); flex: none; }
.dm-list .ok i { background: var(--ok); border-color: var(--ok); }
.dm-bars { display: flex; align-items: flex-end; gap: 5px; height: 34px; }
.dm-bars i { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--primary2), var(--primary)); transform-origin: bottom; animation: dmBar 2.6s ease-in-out infinite alternate; }
.dm-bars i:nth-child(2n) { animation-delay: .4s; } .dm-bars i:nth-child(3n) { animation-delay: .8s; }
@keyframes dmBar { from { transform: scaleY(.55); } to { transform: scaleY(1); } }

.tariffs { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .tariffs { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.tariff { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.tariff.pop { border-color: color-mix(in srgb, var(--primary) 55%, transparent); background: linear-gradient(170deg, color-mix(in srgb, var(--primary) 12%, transparent), transparent 55%), var(--surface); box-shadow: 0 18px 40px color-mix(in srgb, var(--primary) 14%, transparent); }
.t-badge { position: absolute; top: -11px; left: 22px; padding: 3px 11px; border-radius: 99px; background: var(--primary); color: var(--on-primary); font-size: .74rem; font-weight: 800; }
.tariff h3 { font-size: 1.15rem; font-family: var(--font-d); }
.t-price { display: flex; align-items: baseline; gap: 6px; }
.t-price b { font-family: 'Unbounded', var(--font-d); font-size: 1.9rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.t-price span { color: var(--muted); font-size: .9rem; }
.t-sub { color: var(--muted); font-size: .84rem; margin-top: -6px; }
.t-limits { display: flex; flex-wrap: wrap; gap: 8px; }
.t-limits span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 10px; background: color-mix(in srgb, var(--text) 6%, transparent); font-size: .82rem; font-weight: 600; }
.t-limits .ic { width: 15px; height: 15px; color: var(--primary); }
.tariff ul { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 7px; flex: 1; }
.tariff li { display: flex; gap: 8px; font-size: .9rem; }
.tariff li .ic { width: 17px; height: 17px; color: var(--ok); margin-top: 2px; }
.tariff.pick { cursor: pointer; border-width: 2px; transition: border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.tariff.pick input { position: absolute; opacity: 0; pointer-events: none; }
.tariff.pick .t-check { position: absolute; top: 18px; right: 18px; }
.tariff.pick.sel { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.tariff.pick:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 3px; }
.pay-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 860px) { .pay-steps { grid-template-columns: repeat(4, 1fr); } }
.pay-steps li { counter-increment: s; position: relative; display: grid; gap: 4px; padding: 18px 18px 18px 60px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.pay-steps li::before { content: counter(s); position: absolute; left: 16px; top: 16px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--primary); color: var(--on-primary); font-weight: 800; font-family: 'Unbounded', var(--font-b); font-size: .85rem; }
.pay-steps span { color: var(--muted); font-size: .88rem; }
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .25s var(--ease); color: var(--muted); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 18px 16px; color: var(--muted); }
.cta-final { display: grid; gap: 18px; padding-top: 60px; padding-bottom: 50px; }
@media (min-width: 860px) { .cta-final { grid-template-columns: 1fr auto; align-items: center; } }
.cta-final h2 { font-family: 'Unbounded', var(--font-b); font-size: clamp(1.3rem, 1rem + 1.2vw, 1.8rem); }
.cta-final p { color: var(--muted); margin-top: 6px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pub-foot { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); margin-top: 20px; }
.pf-row { display: grid; gap: 18px; }
@media (min-width: 860px) { .pf-row { grid-template-columns: 1fr auto; align-items: center; } }
.pf-row p { margin-top: 8px; font-size: .88rem; }
.pf-small { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .82rem; grid-column: 1 / -1; }
.pf-contacts { display: grid; gap: 8px; width: max-content; max-width: 100%; }

/* ================= Auth & registration ================= */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .auth { grid-template-columns: minmax(380px, 0.9fr) 1.1fr; } .auth.solo { grid-template-columns: 1fr; } }
.auth-aside { display: none; position: relative; overflow: hidden; padding: 48px; background: radial-gradient(80% 60% at 20% 10%, rgba(255, 197, 61, .2), transparent 60%), linear-gradient(180deg, #121B3D, #0B1128); border-right: 1px solid var(--line); }
@media (min-width: 1000px) { .auth-aside { display: block; } }
.aa-inner { position: sticky; top: 48px; display: grid; gap: 14px; max-width: 440px; }
.auth-aside h2 { font-family: 'Unbounded', var(--font-b); font-size: 1.6rem; line-height: 1.2; }
.auth-aside p { color: var(--muted); }
.aa-receipt { margin-top: 16px; }
.auth-main { display: grid; align-content: start; justify-items: center; gap: 22px; padding: calc(24px + env(safe-area-inset-top)) 16px calc(32px + env(safe-area-inset-bottom)); }
@media (min-width: 640px) { .auth-main { padding-top: 48px; } }
.auth-card { width: min(440px, 100%); display: grid; gap: 16px; padding: 24px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.auth-card.wide { width: min(860px, 100%); }
.auth-card h1 { font-family: 'Unbounded', var(--font-b); font-size: 1.45rem; }
.tabs2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 15px; background: var(--bg); border: 1px solid var(--line); }
.tabs2 button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-weight: 700; font-size: .9rem; transition: all .25s var(--ease); }
.tabs2 button.on { background: var(--primary); color: var(--on-primary); box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 30%, transparent); }
.tabs2 .ic { width: 17px; height: 17px; }
.auth-alt { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; font-size: .9rem; color: var(--muted); }
.auth-alt a { color: var(--primary); font-weight: 700; text-decoration: none; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.demo-hint { font-size: .8rem; color: var(--muted); text-align: center; }
.demo-hint b { color: var(--text); }
.steps { list-style: none; margin: 0 0 4px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.steps li { position: relative; display: grid; justify-items: center; gap: 6px; font-size: .74rem; color: var(--muted); text-align: center; }
.steps li::before { content: ""; position: absolute; top: 15px; left: calc(-50% + 18px); right: calc(50% + 18px); height: 2px; background: var(--line); }
.steps li:first-child::before { display: none; }
.steps li.done::before, .steps li.on::before { background: var(--primary); }
.steps span { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); font-weight: 800; font-size: .84rem; transition: all .3s var(--ease); }
.steps .ic { width: 16px; height: 16px; stroke-width: 3; }
.steps li.on span { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent); }
.steps li.done span { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.steps li.on b { color: var(--text); }
.reg-body { display: grid; gap: 18px; }
.reg-body h2 { font-family: 'Unbounded', var(--font-b); font-size: 1.2rem; }
.reg-period { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.reg-period > span { font-weight: 600; color: var(--muted); font-size: .88rem; }
.reg-nav { position: sticky; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 14px 0 calc(4px + env(safe-area-inset-bottom)); margin-top: 4px; background: linear-gradient(180deg, transparent, var(--surface) 30%); border-top: 1px solid var(--line); }
.reg-total { margin: 0 auto; display: grid; text-align: center; line-height: 1.2; }
.reg-total span { font-size: .74rem; color: var(--muted); }
.reg-total b { font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .reg-total { display: none; } .reg-nav .btn.primary { flex: 1; } .reg-nav .btn.ghost { flex: none; padding: 0 14px; } }
.reg-body .check { scroll-margin-bottom: 110px; }
.summary { display: grid; gap: 1px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.summary > div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 14px; background: var(--surface2); font-size: .92rem; }
.summary span { color: var(--muted); }
.summary b { text-align: right; }
.sum-total b, .summary .sum-total b { font-size: 1.15rem; color: var(--primary); font-variant-numeric: tabular-nums; }
.sum-total.big { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--primary) 10%, transparent); }
.paybox { display: grid; gap: 14px; padding: 18px; border-radius: 20px; background: linear-gradient(150deg, color-mix(in srgb, var(--ok) 14%, transparent), transparent 60%), var(--surface2); border: 1px solid color-mix(in srgb, var(--ok) 25%, var(--line)); }
.pb-head { display: flex; justify-content: space-between; align-items: center; }
.pb-bank { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.05rem; }
.pb-bank::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: #1FAF5A; box-shadow: 0 0 0 4px rgba(31, 175, 90, .2); }
.pb-amount { font-family: 'Unbounded', var(--font-b); font-weight: 700; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.pb-num { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-radius: 14px; background: var(--bg); border: 1px dashed var(--line); flex-wrap: wrap; }
.pb-num small { display: block; color: var(--muted); font-size: .76rem; }
.pb-num b { display: block; font-size: 1.25rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.pb-num span { font-size: .84rem; color: var(--muted); }
.pb-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); font-size: .9rem; }
.pb-steps b { color: var(--text); }

/* ================= Gates & loading ================= */
.gate { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: calc(24px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); overflow: hidden; }
.gate-card { position: relative; z-index: 1; width: min(520px, 100%); display: grid; gap: 16px; padding: 26px; border-radius: 28px; background: var(--card-bg); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: var(--glass); text-align: center; }
.gate-card > * { text-align: initial; }
.gate-card h1, .gate-card .lead { text-align: center; justify-self: center; }
.gate-card h1 { font-family: var(--font-d); font-size: 1.55rem; }
.gate-store { display: flex; align-items: center; gap: 12px; justify-self: center; }
.gate-store small { display: block; color: var(--muted); font-size: .8rem; }
.gate-icon { justify-self: center; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 24px; color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, transparent); }
.gate-icon .ic { width: 36px; height: 36px; }
.gate-icon.bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 13%, transparent); }
.gate-icon.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.spin-slow .ic { animation: hourglass 2.4s ease-in-out infinite; }
@keyframes hourglass { 0%, 40% { transform: rotate(0); } 50%, 90% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }
.gate-row { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.loading-screen { min-height: 100vh; min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 16px; color: var(--muted); }
.spin-in { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.9); opacity: .7; } }

/* ================= App shell ================= */
.shell { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr; }
.bg-fx { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg-fx i { position: absolute; border-radius: 50%; }
.side { display: none; position: sticky; top: 0; height: 100vh; height: 100dvh; z-index: 5; flex-direction: column; gap: 12px; padding: 18px 14px; border-right: 1px solid var(--line); background: var(--surface); background: color-mix(in srgb, var(--bg2) 82%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.main { position: relative; z-index: 1; min-width: 0; display: flex; flex-direction: column; }
@media (min-width: 1024px) { .shell { grid-template-columns: 268px minmax(0, 1fr); } .side { display: flex; } .tabbar { display: none !important; } }
.side-brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 14px; border-bottom: 1px solid var(--line); }
.side-brand b { display: block; font-family: var(--font-d); font-size: .98rem; line-height: 1.2; overflow-wrap: anywhere; }
.side-brand small { display: block; font-size: .6rem; letter-spacing: .14em; color: var(--muted); margin-top: 3px; }
.side-nav { display: grid; gap: 3px; overflow-y: auto; align-content: start; flex: 1; }
.nav-i { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 0; background: transparent; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; text-align: left; width: 100%; transition: background-color .2s, color .2s; }
.nav-i:hover { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); }
.nav-i.on { color: var(--text); background: color-mix(in srgb, var(--primary) 15%, transparent); }
.nav-i.on::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--primary); }
.nav-i.on .ic { color: var(--primary); }
.nav-i .badge { margin-left: auto; }
.side-foot { display: grid; gap: 10px; }
.plan-mini { position: relative; overflow: hidden; display: grid; gap: 6px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--primary) 8%, transparent); text-align: left; color: var(--text); }
.plan-mini span { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: .88rem; }
.plan-mini span .ic { width: 16px; height: 16px; color: var(--primary); }
.plan-mini small { color: var(--muted); font-size: .78rem; }
.me-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px 0 8px; border-top: 1px solid var(--line); }
.me-row > div { flex: 1; min-width: 0; padding-top: 6px; }
.me-row b { display: block; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-row small { color: var(--muted); font-size: .74rem; }
.me-row .avatar { margin-top: 6px; }
.top { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 60px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px 16px; background: var(--bg); background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.top-l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.top-t { min-width: 0; }
.top-t b { display: block; font-family: var(--font-d); font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-t small { display: block; color: var(--muted); font-size: .74rem; }
.top-r { display: flex; align-items: center; gap: 2px; }
.bell .badge { position: absolute; top: 3px; right: 2px; }
@media (min-width: 1024px) { .top { padding-left: 28px; padding-right: 20px; } .top-l .logo-mark, .top-l .brand-mark { display: none; } .top-t b { font-family: var(--font-b); font-size: .8rem; color: var(--muted); font-weight: 600; } .top-t small { font-size: 1rem; color: var(--text); font-weight: 700; } }
.view { position: relative; width: 100%; max-width: 1180px; margin: 0 auto; padding: 20px 16px calc(100px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .view { padding: 28px 28px 60px; } }
.view > .stagger { display: grid; gap: 18px; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--bg2); background: color-mix(in srgb, var(--bg2) 86%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
.tab { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 54px; border: 0; border-radius: 14px; background: transparent; color: var(--muted); text-decoration: none; font-size: .68rem; font-weight: 700; -webkit-tap-highlight-color: transparent; transition: color .2s; }
.tab .ic { width: 22px; height: 22px; transition: transform .3s var(--ease); }
.tab.on { color: var(--primary); }
.tab.on .ic { transform: translateY(-1px) scale(1.08); }
.tab.on::before { content: ""; position: absolute; top: 4px; left: 50%; width: 44px; height: 30px; margin-left: -22px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 15%, transparent); z-index: -1; animation: tabPill .35s var(--ease); }
@keyframes tabPill { from { transform: scale(.4); opacity: 0; } }
.tab .badge { position: absolute; top: 4px; left: calc(50% + 6px); }
.demo-pill { position: fixed; z-index: 9; right: 14px; bottom: calc(80px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent); background: var(--bg2); color: var(--text); font-weight: 700; font-size: .82rem; box-shadow: var(--shadow); overflow: hidden; }
.demo-pill .ic { width: 17px; height: 17px; color: var(--primary); }
@media (min-width: 1024px) { .demo-pill { bottom: 22px; right: 22px; } }

/* ================= Page building blocks ================= */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px 18px; flex-wrap: wrap; }
.ph-text h1 { font-family: var(--font-d); font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.05rem); font-weight: 700; letter-spacing: -.01em; }
.ph-text p { color: var(--muted); margin-top: 5px; font-size: .92rem; }
.ph-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) { .ph-actions { width: 100%; } .ph-actions > .btn { flex: 1; } .ph-actions > .seg { width: 100%; } }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar .select { flex: 1 1 140px; min-width: 130px; max-width: 280px; }
.kpis { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, 1fr); } .kpis.compact { grid-template-columns: repeat(3, 1fr); } }
.kpis.compact { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kpi { position: relative; display: grid; gap: 3px; align-content: start; padding: 15px 16px; border-radius: 18px; background: var(--card-bg); border: 1px solid var(--line); overflow: hidden; backdrop-filter: var(--glass); min-width: 0; }
.kpi::before { content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 2px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--primary), transparent); opacity: .7; }
.kpi.attn::before { background: linear-gradient(90deg, var(--warn), transparent); opacity: 1; }
.kpi-l { font-size: .78rem; font-weight: 600; color: var(--muted); }
.kpi-v { font-family: var(--font-d); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; white-space: nowrap; }
.kpi-v small { font-size: .55em; font-weight: 600; color: var(--muted); font-family: var(--font-b); }
.kpi-s { font-size: .78rem; color: var(--muted); }
.kpi.with-ring .ring { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.kpi.with-ring { padding-right: 76px; }
.grid-dash { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid-dash { grid-template-columns: 300px 1fr 1fr; } }
.grid-2col { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid-2col { grid-template-columns: 1fr 1fr; } }
.team-roles { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.team-roles li { display: block; }
.team-roles li.role-owner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 8px 10px; }
.tr-btn { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 12px; border: 0; background: transparent; text-align: left; transition: background-color .2s; }
.tr-btn:hover { background: color-mix(in srgb, var(--rc) 10%, transparent); }
.tr-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: var(--rc); background: color-mix(in srgb, var(--rc) 15%, transparent); }
.tr-ic .ic { width: 18px; height: 18px; }
.team-roles b { font-family: var(--font-d); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.rep-list, .hist, .mini-list, .pick-list, .fail-list, .cmp, .pay-hist { list-style: none; margin: 0; padding: 0; }
.rep-list { display: grid; }
.rep-list li + li { border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.rep-row, .hist-row { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "av main st" "av prog st"; align-items: center; gap: 2px 12px; width: 100%; padding: 11px 6px; border: 0; border-radius: 12px; background: transparent; text-align: left; transition: background-color .2s; }
.rep-row:hover, .hist-row:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.rep-row .avatar { grid-area: av; }
.rr-main { grid-area: main; min-width: 0; }
.rr-main b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .92rem; line-height: 1.25; overflow-wrap: anywhere; }
.rr-main small { color: var(--muted); font-size: .78rem; }
.rr-prog { grid-area: prog; display: flex; align-items: center; gap: 8px; max-width: 220px; }
.rr-prog small { color: var(--muted); font-size: .74rem; white-space: nowrap; }
.rep-row .chip.st { grid-area: st; }
.rr-go { display: none; color: var(--muted); }
@media (min-width: 720px) { .rep-row { grid-template-columns: auto minmax(0, 1.4fr) minmax(120px, 1fr) auto auto; grid-template-areas: "av main prog st go"; } .rr-go { display: block; grid-area: go; width: 18px; height: 18px; } }
.hist-row { grid-template-columns: 1fr auto; grid-template-areas: "date st" "prog m"; padding: 12px 6px; }
.hr-date { grid-area: date; }
.hr-date b { display: block; }
.hr-date small { color: var(--muted); font-size: .76rem; }
.hr-prog { grid-area: prog; display: flex; align-items: center; gap: 8px; max-width: 240px; }
.hr-prog small { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.hr-m { grid-area: m; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; font-size: .88rem; }
.hist-row .chip { grid-area: st; justify-self: end; }
.hist li + li { border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
@media (min-width: 720px) { .hist-row { grid-template-columns: 160px 1fr 120px auto 18px; grid-template-areas: "date prog m st go"; } .hist-row .rr-go { display: block; } }
.fchips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.fchips::-webkit-scrollbar { display: none; }
.fchip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-weight: 600; font-size: .84rem; white-space: nowrap; transition: all .2s var(--ease); }
.fchip b { font-size: .74rem; padding: 1px 7px; border-radius: 99px; background: color-mix(in srgb, var(--text) 9%, transparent); }
.fchip.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.fchip.on b { background: color-mix(in srgb, var(--on-primary) 18%, transparent); }
.datenav { display: flex; align-items: center; gap: 4px; padding: 3px; border-radius: 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 55%, var(--surface)); }
.datepick { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 12px; min-height: 36px; font-weight: 700; font-size: .9rem; cursor: pointer; }
.datepick .ic { width: 17px; height: 17px; color: var(--primary); }
.datepick input { position: absolute; inset: 0; opacity: 0; min-height: 0 !important; padding: 0 !important; cursor: pointer; }
.datenav .icon-btn { width: 36px; height: 36px; }
.role-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.role-tabs::-webkit-scrollbar { display: none; }
.rt { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 600; font-size: .86rem; white-space: nowrap; transition: all .2s var(--ease); }
.rt .ic { width: 17px; height: 17px; color: var(--rc, var(--muted)); }
.rt b { font-family: var(--font-d); color: var(--text); font-size: .95rem; }
.rt.on { border-color: var(--rc, var(--primary)); background: color-mix(in srgb, var(--rc, var(--primary)) 14%, var(--surface)); color: var(--text); }
.emp-grid, .branch-grid, .sa-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .emp-grid, .branch-grid, .sa-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .emp-grid { grid-template-columns: repeat(3, 1fr); } }
.emp-card, .branch-card, .sa-store { display: grid; gap: 12px; align-content: start; padding: 16px; border-radius: 20px; background: var(--card-bg); border: 1px solid var(--line); backdrop-filter: var(--glass); min-width: 0; }
.emp-card.off { opacity: .62; }
.ec-top { display: flex; align-items: center; gap: 12px; }
.ec-name { min-width: 0; display: grid; gap: 4px; justify-items: start; }
.ec-name h3 { font-size: 1rem; overflow-wrap: anywhere; }
.ec-meta, .bc-meta { margin: 0; display: grid; gap: 6px; font-size: .86rem; color: var(--muted); }
.ec-meta div, .bc-meta div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ec-meta dd, .bc-meta dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.ec-meta .ic, .bc-meta .ic { width: 16px; height: 16px; }
.ec-meta a, .bc-meta a { color: var(--text); text-decoration: none; }
.ec-meta b { color: var(--text); }
.ec-today { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--text) 4%, transparent); font-size: .8rem; color: var(--muted); }
.ec-today small { font-variant-numeric: tabular-nums; }
.ec-actions, .bc-actions, .ss-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.bc-head { display: flex; gap: 12px; align-items: flex-start; }
.bc-ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); }
.bc-head h3 { font-size: 1.05rem; font-family: var(--font-d); }
.bc-head p { display: flex; align-items: flex-start; gap: 5px; color: var(--muted); font-size: .86rem; margin-top: 3px; }
.bc-head p .ic { width: 15px; height: 15px; margin-top: 3px; }
.bc-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bc-roles span { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border-radius: 13px; background: color-mix(in srgb, var(--rc) 10%, transparent); color: var(--rc); }
.bc-roles b { font-family: var(--font-d); font-size: 1.2rem; color: var(--text); }
.bc-roles small { font-size: .72rem; color: var(--muted); }
.bc-roles .ic { width: 17px; height: 17px; }
.bc-today { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--text) 4%, transparent); }
.bc-today div { display: grid; font-size: .84rem; color: var(--muted); }
.bc-today b { color: var(--text); font-size: .9rem; }
.task-list { display: grid; gap: 10px; }
.task-card { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 14px 14px 14px 18px; border-radius: 18px; background: var(--card-bg); border: 1px solid var(--line); overflow: hidden; backdrop-filter: var(--glass); }
.task-card::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: color-mix(in srgb, var(--muted) 45%, transparent); }
.task-card.prio-high::before { background: var(--bad); }
.task-card.prio-low::before { background: color-mix(in srgb, var(--muted) 25%, transparent); }
.task-card.paused, .task-card.fin { opacity: .58; }
.tc-main { min-width: 0; display: grid; gap: 6px; }
.tc-main h3 { font-size: .98rem; overflow-wrap: anywhere; }
.tc-main p { color: var(--muted); font-size: .86rem; }
.tc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.tc-today { display: grid; justify-items: end; line-height: 1.1; }
.tc-today b { font-family: var(--font-d); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.tc-today b small { font-size: .7em; color: var(--muted); }
.tc-today span { font-size: .7rem; color: var(--muted); }
.tc-actions { display: flex; gap: 2px; }
.tc-actions .icon-btn { width: 36px; height: 36px; }
@media (max-width: 520px) { .task-card { grid-template-columns: 1fr; } .tc-side { flex-direction: row; align-items: center; } }
.tpl { display: grid; gap: 14px; }
.tpl fieldset { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin: 0; display: grid; gap: 10px; }
.tpl legend { display: flex; align-items: center; gap: 6px; padding: 0 6px; font-weight: 700; font-size: .9rem; }
.tpl legend .ic { width: 17px; height: 17px; color: var(--primary); }
.mini-list { display: grid; gap: 6px; }
.mini-list li { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; }
.mini-list li > span { flex: 1; min-width: 0; }
.mini-list b { display: block; font-size: .92rem; }
.mini-list small { color: var(--muted); font-size: .78rem; }
.creds { display: grid; gap: 1px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.creds div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface2); }
.creds span { color: var(--muted); font-size: .86rem; }
.creds b { font-size: 1.15rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; user-select: all; }
.news-list { display: grid; gap: 12px; }
.news { display: grid; gap: 10px; padding: 16px 18px; border-radius: 20px; background: var(--card-bg); border: 1px solid var(--line); backdrop-filter: var(--glass); }
.news.pinned { border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.news.unread { box-shadow: inset 4px 0 0 var(--warn); }
.nw-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.nw-head h3 { display: flex; align-items: center; gap: 6px; font-size: 1rem; }
.nw-head h3 .ic { width: 16px; height: 16px; color: var(--primary); }
.nw-head .muted { font-size: .78rem; white-space: nowrap; }
.news p { color: color-mix(in srgb, var(--text) 85%, var(--muted)); font-size: .92rem; }
.nw-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .8rem; }
.nw-foot .read { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.nw-foot .read .ic { width: 15px; height: 15px; }
.nw-foot .icon-btn { width: 34px; height: 34px; }
.fail-list { display: grid; gap: 4px; }
.fail-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.fail-list li:last-child { border-bottom: 0; }
.fail-list b { font-size: .9rem; }
.fail-list small { grid-column: 1 / -1; color: var(--muted); font-size: .78rem; }
.cmp { display: grid; gap: 12px; }
.cmp li { display: grid; grid-template-columns: minmax(90px, 160px) 1fr 50px; align-items: center; gap: 4px 12px; }
.cmp-n { font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp b { text-align: right; font-variant-numeric: tabular-nums; }
.cmp small { grid-column: 2 / -1; color: var(--muted); font-size: .78rem; }
.logo-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 14px; border-radius: 16px; border: 1px dashed color-mix(in srgb, var(--primary) 45%, transparent); background: color-mix(in srgb, var(--primary) 8%, transparent); flex-wrap: wrap; }
.code-box span { display: block; color: var(--muted); font-size: .8rem; }
.code-box b { font-family: var(--font-d); font-size: 1.5rem; letter-spacing: .12em; }
.plan { display: grid; gap: 2px; margin-bottom: 14px; }
.plan b { font-family: var(--font-d); font-size: 1.5rem; }
.plan span { color: var(--muted); font-size: .9rem; }
.usage { display: grid; gap: 12px; margin-bottom: 16px; }
.usage div { display: grid; grid-template-columns: 100px 1fr auto; gap: 12px; align-items: center; font-size: .86rem; }
.usage span { color: var(--muted); }
.usage b { font-variant-numeric: tabular-nums; }
.pay-hist { display: grid; gap: 2px; }
.pay-hist li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); font-size: .88rem; }
.pay-hist li:last-child { border-bottom: 0; }
.pay-hist small { display: block; color: var(--muted); font-size: .76rem; }
.pay-hist .chip { grid-column: 2; justify-self: end; }
.tariff-mini { display: grid; gap: 8px; }
.tm { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); cursor: pointer; transition: border-color .2s; }
.tm input { position: absolute; opacity: 0; }
.tm span { flex: 1; }
.tm b { display: block; }
.tm small { color: var(--muted); font-size: .78rem; }
.tm em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; font-size: .9rem; }
.tm.sel { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, transparent); }
.inst-block { display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--text) 4%, transparent); }
.inst-block h4 { display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.inst-block h4 .ic { color: var(--primary); width: 18px; height: 18px; }
.inst-block ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: .88rem; display: grid; gap: 3px; }
.more-list { display: grid; gap: 4px; }
.more-i { display: flex; align-items: center; gap: 14px; min-height: 50px; padding: 0 12px; border-radius: 14px; border: 0; background: transparent; color: var(--text); text-decoration: none; font-weight: 600; text-align: left; width: 100%; }
.more-i .ic { color: var(--muted); }
.more-i.on { background: color-mix(in srgb, var(--primary) 14%, transparent); }
.more-i.on .ic { color: var(--primary); }
.more-i.danger { color: var(--bad); }
.more-i.danger .ic { color: var(--bad); }
.more-i .badge { margin-left: auto; }
.pick-list { display: grid; gap: 6px; }
.pick-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: transparent; text-align: left; position: relative; overflow: hidden; }
.pick-row > span:nth-child(2) { flex: 1; }
.pick-row b { display: block; }
.pick-row small { color: var(--muted); font-size: .8rem; }
.pick-row > .ic { color: var(--muted); }

/* staff: today */
.today-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; border-radius: 24px; background: linear-gradient(150deg, color-mix(in srgb, var(--primary) 16%, transparent), transparent 65%), var(--card-bg); border: 1px solid var(--line); backdrop-filter: var(--glass); }
.th-text { min-width: 0; display: grid; gap: 6px; }
.th-date { color: var(--muted); font-size: .86rem; }
.today-hero h1 { font-family: var(--font-d); font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.9rem); }
.th-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.todo-i { position: relative; display: grid; gap: 10px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 35%, transparent); transition: border-color .3s, background-color .3s; overflow: hidden; }
.todo-i.prio-high { box-shadow: inset 3px 0 0 var(--bad); }
.todo-i.is-done { border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 8%, transparent); }
.todo-i.is-fail { border-color: color-mix(in srgb, var(--bad) 40%, transparent); background: color-mix(in srgb, var(--bad) 6%, transparent); }
.todo-i.err { border-color: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 18%, transparent); }
.ti-main h3 { font-size: .98rem; font-weight: 700; font-family: var(--font-b); }
.todo-i.is-done .ti-main h3 { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ok) 70%, transparent); text-decoration-thickness: 2px; }
.ti-main p { color: var(--muted); font-size: .86rem; margin-top: 3px; }
.ti-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; font-size: .78rem; color: var(--muted); }
.ti-meta span { display: inline-flex; align-items: center; gap: 4px; }
.ti-meta .ic { width: 14px; height: 14px; }
.ti-meta .hot { color: var(--bad); font-weight: 700; }
.ti-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tb { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; border-radius: 13px; border: 1.5px solid var(--line); background: transparent; color: var(--muted); font-weight: 700; font-size: .88rem; transition: all .22s var(--ease); -webkit-tap-highlight-color: transparent; }
.tb .ic { width: 19px; height: 19px; stroke-width: 2.4; }
.tb:active:not(:disabled) { transform: scale(.96); }
.tb:disabled { cursor: default; }
.tb.ok.on { background: var(--ok); border-color: var(--ok); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--ok) 35%, transparent); }
.tb.no.on { background: var(--bad); border-color: var(--bad); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--bad) 30%, transparent); }
.tb:not(.on):disabled { opacity: .45; }
.todo.compact .ti-main p { display: none; }
.ti-why textarea { min-height: 64px; }
.ti-why p { font-size: .86rem; color: var(--muted); }
.ti-err { color: var(--bad); font-size: .8rem; font-weight: 700; }
@media (min-width: 720px) { .todo-i { grid-template-columns: 1fr 300px; align-items: center; } .ti-why, .ti-err { grid-column: 1 / -1; } }
.cta-sticky { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 4; }
@media (min-width: 1024px) { .cta-sticky { position: static; } }
.submit-bar { position: sticky; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 12px 12px 18px; border-radius: 20px; background: var(--bg2); border: 1px solid var(--line); box-shadow: var(--shadow); flex-wrap: wrap; }
.submit-bar b { display: block; font-size: .92rem; }
.submit-bar small { color: var(--muted); font-size: .78rem; }
@media (max-width: 520px) { .submit-bar .btn { width: 100%; } }
@media (min-width: 1024px) { .submit-bar { bottom: 18px; } }
.cash-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 16px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.cash-sum div { display: grid; gap: 2px; padding: 12px; background: var(--surface2); }
.cash-sum span { font-size: .74rem; color: var(--muted); }
.cash-sum b { font-variant-numeric: tabular-nums; font-size: .95rem; }
.cash-sum .ok b { color: var(--ok); } .cash-sum .bad b { color: var(--bad); } .cash-sum .warn b { color: var(--warn); }
@media (max-width: 480px) { .cash-sum { grid-template-columns: 1fr 1fr; } .cash-sum div:last-child { grid-column: 1 / -1; } }
.receipt .cash-sum { border-color: rgba(27, 34, 66, .15); background: rgba(27, 34, 66, .15); }
.receipt .cash-sum div { background: #F6F4EC; }
.receipt .cash-sum span { color: #5A6285; }
.receipt .cash-sum .ok b { color: #13834F; } .receipt .cash-sum .bad b { color: #C23434; } .receipt .cash-sum .warn b { color: #A86A05; }
.receipt.big { font-size: .92rem; padding: 22px 20px 30px; margin-bottom: 10px; }
.receipt.big .rc-stamp { animation-delay: .25s; bottom: auto; top: 90px; }
.rc-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; font-size: .8rem; }
.receipt .chip { background: rgba(27, 34, 66, .07); }
.receipt .chip.st-ok { color: #13834F; background: rgba(19, 131, 79, .12); } .receipt .chip.st-bad { color: #C23434; background: rgba(194, 52, 52, .1); }
.receipt .chip.st-warn { color: #A86A05; background: rgba(168, 106, 5, .12); } .receipt .chip.st-info { color: #2C66C2; background: rgba(44, 102, 194, .1); }
.receipt .chip.st-muted, .receipt .muted { color: #6A7193; }
.rc-h { font-size: .84rem; margin: 0 0 10px; color: #3A4268; font-family: var(--font-b); }
.rc-note { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #F4F2EA; }
.rc-note b { display: block; font-size: .78rem; color: #5A6285; margin-bottom: 3px; }
.rc-note p { white-space: pre-wrap; }
.rc-review { margin-top: 14px; padding: 10px 12px; border-radius: 10px; border-left: 4px solid #1E9E62; background: rgba(30, 158, 98, .08); }
.rc-review.return { border-left-color: #D64545; background: rgba(214, 69, 69, .08); }
.rc-review b { font-size: .82rem; }
.profile-card { display: grid; justify-items: center; gap: 8px; padding: 26px 18px; border-radius: 24px; background: linear-gradient(170deg, color-mix(in srgb, var(--primary) 14%, transparent), transparent 70%), var(--card-bg); border: 1px solid var(--line); text-align: center; }
.profile-card h1 { font-family: var(--font-d); font-size: 1.4rem; }
.profile-card p { color: var(--muted); }
.kv { margin: 0; display: grid; gap: 0; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

/* super admin */
.pay-list { display: grid; gap: 10px; }
.pay-row { display: grid; gap: 12px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 40%, transparent); }
.pay-row.pending { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); background: color-mix(in srgb, var(--warn) 6%, transparent); }
@media (min-width: 800px) { .pay-row { grid-template-columns: 1fr auto; align-items: center; } }
.pr-main h3 { font-size: 1.02rem; }
.pr-main p { color: var(--muted); font-size: .88rem; margin-top: 2px; }
.pr-main a { color: var(--text); text-decoration: none; }
.pr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pr-note { color: var(--bad) !important; }
.pr-side { display: grid; gap: 10px; justify-items: start; }
@media (min-width: 800px) { .pr-side { justify-items: end; } }
.pr-amount { font-family: var(--font-d); font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.pr-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.ss-head { display: flex; align-items: center; gap: 12px; }
.ss-t { flex: 1; min-width: 0; }
.ss-t h3 { font-size: 1rem; overflow-wrap: anywhere; }
.ss-t p { color: var(--muted); font-size: .84rem; }
.ss-t a { color: var(--text); text-decoration: none; }
.ss-meta { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--text) 4%, transparent); }
.ss-meta dt { font-size: .74rem; color: var(--muted); }
.ss-meta dd { margin: 0; font-weight: 600; font-size: .86rem; }
.sec-t { font-size: 1rem; margin: 4px 0 10px; }
.tariff-edit .switch { margin-top: 4px; }

.chart-empty { display: grid; place-content: center; justify-items: center; gap: 8px; min-height: 150px; padding: 16px; color: var(--muted); font-size: .88rem; text-align: center; border: 1px dashed var(--line); border-radius: 14px; }
.chart-empty .ic { width: 28px; height: 28px; color: var(--primary); }
.onboard { border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
.onboard .pbar { margin-bottom: 14px; }
.ob-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ob-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--text) 4%, transparent); }
.ob-t { flex: 1; min-width: 0; }
.ob-list b { display: block; font-size: .92rem; }
.ob-list small { display: block; color: var(--muted); font-size: .8rem; }
.ob-n { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; border: 2px solid var(--line); font-weight: 800; font-size: .84rem; }
.ob-n .ic { width: 15px; height: 15px; stroke-width: 3; }
.ob-list li.ok .ob-n { background: var(--ok); border-color: var(--ok); color: #fff; }
.ob-list li.ok b { text-decoration: line-through; color: var(--muted); }
@media (max-width: 799px) { .pr-side, .pr-actions { width: 100%; } .pr-actions .btn.primary { order: -1; flex: 1 1 100%; } .pr-actions .btn:not(.primary) { flex: 1; } }
/* ================= Living backgrounds per design ================= */
[data-design="brand"] .bg-fx i:nth-child(1) { width: 60vmax; height: 60vmax; right: -20vmax; top: -25vmax; background: radial-gradient(circle, rgba(124, 198, 255, .12), transparent 65%); animation: drift1 26s ease-in-out infinite alternate; }
[data-design="brand"] .bg-fx i:nth-child(2) { width: 50vmax; height: 50vmax; left: -20vmax; bottom: -25vmax; background: radial-gradient(circle, rgba(255, 197, 61, .09), transparent 65%); animation: drift2 30s ease-in-out infinite alternate; }

@keyframes drift1 { to { transform: translate(8vmax, 6vmax) scale(1.08); } }
@keyframes drift2 { to { transform: translate(-7vmax, -5vmax) scale(1.12); } }
@keyframes drift3 { to { transform: translate(5vmax, -8vmax) scale(.92); } }

/* ================= Page transitions & micro-motion ================= */
.nav-in > * { animation: fadeIn .45s ease both; }
.page-enter .stagger > * { animation: rise .6s var(--ease) both; }
.page-enter .stagger > :nth-child(2) { animation-delay: 50ms; } .page-enter .stagger > :nth-child(3) { animation-delay: 100ms; }
.page-enter .stagger > :nth-child(4) { animation-delay: 150ms; } .page-enter .stagger > :nth-child(5) { animation-delay: 200ms; }
.page-enter .stagger > :nth-child(6) { animation-delay: 250ms; } .page-enter .stagger > :nth-child(7) { animation-delay: 300ms; }
.page-enter .stagger > :nth-child(n+8) { animation-delay: 340ms; }
.page-enter .kpis > .kpi { animation: rise .6s var(--ease) both; }
.page-enter .kpis > .kpi:nth-child(2) { animation-delay: 70ms; } .page-enter .kpis > .kpi:nth-child(3) { animation-delay: 140ms; } .page-enter .kpis > .kpi:nth-child(4) { animation-delay: 210ms; }
.page-enter .bar-t i { animation: barGrow .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + 150ms); }
.bar { --i: 0; }
.page-enter .ring-fg { animation: ringIn 1.1s var(--ease) both .15s; }
.page-enter .pbar i { animation: barW 1s var(--ease) both .2s; }
.page-enter .area .line { stroke-dasharray: 1400; animation: lineDraw 1.6s ease both .2s; }
.page-enter .emp-grid > *, .page-enter .branch-grid > *, .page-enter .task-list > *, .page-enter .news-list > *, .page-enter .sa-grid > *, .page-enter .pay-list > * { animation: rise .55s var(--ease) both; }
.page-enter .emp-grid > :nth-child(2), .page-enter .branch-grid > :nth-child(2), .page-enter .task-list > :nth-child(2), .page-enter .news-list > :nth-child(2), .page-enter .sa-grid > :nth-child(2) { animation-delay: 60ms; }
.page-enter .emp-grid > :nth-child(3), .page-enter .branch-grid > :nth-child(3), .page-enter .task-list > :nth-child(3), .page-enter .news-list > :nth-child(3), .page-enter .sa-grid > :nth-child(3) { animation-delay: 120ms; }
.page-enter .emp-grid > :nth-child(n+4), .page-enter .branch-grid > :nth-child(n+4), .page-enter .task-list > :nth-child(n+4), .page-enter .news-list > :nth-child(n+4), .page-enter .sa-grid > :nth-child(n+4) { animation-delay: 170ms; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes riseScale { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes barGrow { from { transform: scaleY(0); } }
@keyframes ringIn { from { stroke-dashoffset: var(--c); } }
@keyframes barW { from { width: 0; } }
@keyframes lineDraw { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
.todo-i.flash { animation: doneFlash .9s ease; }
.todo-i.flash .tb.ok.on .ic path { stroke-dasharray: 24; animation: tick .45s ease both; }
.todo-i.flash::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--ok) 28%, transparent) 50%, transparent 70%); transform: translateX(-100%); animation: sweepX .8s ease forwards; pointer-events: none; }
@keyframes doneFlash { 30% { transform: scale(1.012); } }
@keyframes tick { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
@keyframes sweepX { to { transform: translateX(100%); } }

/* success burst */
.burst { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; background: rgba(4, 7, 18, .45); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
.burst.show { opacity: 1; }
.burst-card { display: grid; justify-items: center; gap: 6px; padding: 28px 34px; border-radius: 28px; background: var(--bg2); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; transform: scale(.85); transition: transform .45s var(--ease); }
.burst.show .burst-card { transform: none; }
.burst-art { position: relative; width: 110px; height: 110px; }
.burst-art svg { width: 100%; height: 100%; }
.b-c { fill: none; stroke: var(--ok); stroke-width: 5; stroke-dasharray: 315; stroke-dashoffset: 315; animation: drawC .6s .1s ease forwards; }
.b-k { fill: none; stroke: var(--ok); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; animation: drawC .4s .6s ease forwards; }
.burst-art i { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 3px; background: var(--primary); opacity: 0; transform: rotate(var(--a)) translateY(0); animation: confetti .9s calc(.55s + var(--d)) ease-out forwards; }
.burst-art i:nth-child(3n) { background: var(--ok); } .burst-art i:nth-child(3n+1) { background: var(--accent); }
.burst-card h3 { font-family: var(--font-d); font-size: 1.25rem; margin-top: 6px; }
.burst-card p { color: var(--muted); font-size: .9rem; }
@keyframes drawC { to { stroke-dashoffset: 0; } }
@keyframes confetti { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-78px) scale(.4); } }

/* ================= Splash screens ================= */
#splash-root:empty { display: none; }
.splash { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; overflow: hidden; cursor: pointer; text-align: center; }
.splash.out { pointer-events: none; }
.sp-title { position: relative; max-width: 92vw; font-size: clamp(1.7rem, 1rem + 4vw, 3.2rem); line-height: 1.15; overflow-wrap: anywhere; }
.sp-sub { font-size: .7rem; letter-spacing: .34em; font-weight: 700; opacity: 0; animation: fadeUp .8s 1.75s ease forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: .8; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .bg-fx i, .bg-fx::before, .bg-fx::after { animation: none !important; }
  .rc-stamp { opacity: 1 !important; transform: none !important; filter: none !important; }
}
/* ================= Warehouse, finance, attendance ================= */
.ok-t { color: var(--ok); } .warn-t { color: var(--warn); }
.card.pad0 { padding: 6px 0; }
.card.pad0 > .empty { padding: 34px 18px; }
.card.pad0 .table-wrap { margin: 0; }
.sum-total:empty { display: none; }
.pr-br b { font-weight: 650; color: var(--text); }
.kpi.good::before { background: linear-gradient(90deg, var(--ok), transparent); opacity: 1; }
.kpi-link { color: inherit; text-decoration: none; }
.kpi-link:hover { color: var(--primary); }
.datepick.static { cursor: default; }
.seg .ic { width: 16px; height: 16px; margin-right: 2px; vertical-align: -3px; }
.seg.wrap5 { display: flex; flex-wrap: wrap; }
.seg.wrap5 .seg-i { flex: 1 1 auto; }

/* ---------- product list ---------- */
.prod-list { list-style: none; margin: 0; padding: 0; }
.prod { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main qty" "price act"; gap: 8px 12px; align-items: center; padding: 13px 18px; }
.prod + .prod { border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.prod.is-low { background: linear-gradient(90deg, color-mix(in srgb, var(--warn) 9%, transparent), transparent 60%); }
.prod .pr-main { grid-area: main; min-width: 0; }
.prod .pr-main > b { display: block; font-weight: 650; overflow-wrap: anywhere; }
.prod .pr-main small, .prod .pr-qty small { display: block; color: var(--muted); font-size: .76rem; margin-top: 2px; }
.prod .pr-qty { grid-area: qty; text-align: right; }
.qty { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 10px; border-radius: 99px; font-weight: 700; font-variant-numeric: tabular-nums; font-size: .86rem; white-space: nowrap; color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.qty.low { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.qty.zero { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.prod .pr-price { grid-area: price; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; font-variant-numeric: tabular-nums; font-size: .9rem; }
.prod .pr-price span { white-space: nowrap; }
.prod .pr-price small { color: var(--muted); font-size: .72rem; margin-right: 5px; }
.pr-m { font-size: .76rem; font-weight: 700; color: var(--ok); }
.pr-m.thin { color: var(--warn); }
.prod .pr-act { grid-area: act; display: flex; gap: 2px; justify-self: end; }
.prod .pr-act .icon-btn { width: 40px; height: 40px; }
.catalog .prod { grid-template-areas: "main qty" "price price"; }
.catalog .prod .pr-price b { font-size: 1.05rem; }
@media (min-width: 900px) {
  .prod { grid-template-columns: minmax(0, 1.6fr) 150px minmax(0, 1.4fr) auto; grid-template-areas: "main qty price act"; }
  .catalog .prod { grid-template-columns: minmax(0, 1.6fr) 150px minmax(0, 1fr); grid-template-areas: "main qty price"; }
  .prod .pr-price { justify-content: flex-end; }
}
.mv-have { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--text) 5%, transparent); font-size: .9rem; }
.mv-have .ic { color: var(--primary); width: 20px; height: 20px; flex: none; }
.mv-have:empty { display: none; }

/* ---------- stock movements ---------- */
.mv-day + .mv-day { margin-top: 16px; }
.mv-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.mv-h .chip { margin-left: auto; }
.mv-list { list-style: none; margin: 0; padding: 0; }
.mv { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; }
.mv + .mv { border-top: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.mv-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; }
.mv-ic .ic { width: 19px; height: 19px; }
.mv-in .mv-ic { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.mv-out .mv-ic { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.mv-adj .mv-ic { color: var(--info); background: color-mix(in srgb, var(--info) 14%, transparent); }
.mv-main { min-width: 0; }
.mv-main b { display: block; overflow-wrap: anywhere; }
.mv-main small { display: block; color: var(--muted); font-size: .76rem; overflow-wrap: anywhere; }
.mv-q { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mv-q small { display: block; color: var(--muted); font-size: .76rem; }
.mv-in .mv-q b { color: var(--ok); } .mv-out .mv-q b { color: var(--bad); }

/* ---------- finance ---------- */
.fin-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fin-rows li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-areas: "ic n v" "ic bar p"; gap: 2px 10px; align-items: center; padding: 8px 0; }
.fr-ic { grid-area: ic; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); }
.fr-ic .ic { width: 18px; height: 18px; }
.fr-purchase .fr-ic { color: var(--info); background: color-mix(in srgb, var(--info) 14%, transparent); }
.fr-n { grid-area: n; font-weight: 600; font-size: .92rem; }
.fr-bar { grid-area: bar; }
.fr-bar .pbar { display: block; width: 100%; }
.fin-rows b { grid-area: v; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fin-rows small { grid-area: p; color: var(--muted); font-size: .76rem; text-align: right; min-width: 34px; }
.kv3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kv3 div { display: grid; gap: 4px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--text) 4%, transparent); }
.kv3 span { color: var(--muted); font-size: .78rem; }
.kv3 b { font-size: 1.02rem; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .kv3 { grid-template-columns: 1fr; } }
.exp-list { list-style: none; margin: 0; padding: 0; }
.exp-list li + li { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.exp-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ic main a" "ic main d"; gap: 2px 12px; align-items: center; width: 100%; padding: 11px 4px; border: 0; background: none; color: inherit; text-align: left; font: inherit; cursor: pointer; border-radius: 12px; position: relative; overflow: hidden; }
.exp-row:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.exp-ic { grid-area: ic; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.exp-ic .ic { width: 19px; height: 19px; }
.exp-ic.c-salary { color: var(--role-admin); background: color-mix(in srgb, var(--role-admin) 15%, transparent); }
.exp-ic.c-tax { color: var(--warn); background: color-mix(in srgb, var(--warn) 15%, transparent); }
.exp-ic.c-utility { color: var(--info); background: color-mix(in srgb, var(--info) 15%, transparent); }
.exp-ic.c-other { color: var(--muted); background: color-mix(in srgb, var(--text) 8%, transparent); }
.exp-main { grid-area: main; min-width: 0; }
.exp-main b { display: block; }
.exp-main small { display: block; color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.exp-a { grid-area: a; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.exp-d { grid-area: d; text-align: right; color: var(--muted); font-size: .76rem; }
.fin-note { display: flex; gap: 8px; align-items: flex-start; }
.fin-note .ic { width: 16px; height: 16px; flex: none; margin-top: 2px; }

/* ---------- settings: modules, fieldsets ---------- */
.mods { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.mods li { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.mods li .ic { width: 18px; height: 18px; color: var(--ok); }
.mods li.off { color: var(--muted); }
.mods li.off .ic { color: var(--muted); }
.mods li small { margin-left: auto; font-size: .74rem; }
.mod-switches { display: grid; gap: 8px; }
.sw-l .ic { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; color: var(--primary); }
.geo-set { display: grid; gap: 12px; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.geo-set legend { display: flex; align-items: center; gap: 6px; padding: 0 6px; font-weight: 700; font-size: .92rem; }
.geo-set legend .ic { width: 18px; height: 18px; color: var(--primary); }
.geo-set .hint { margin: -4px 0 0; }
.geo-now { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--warn) 10%, transparent); }
.geo-now .ic { width: 22px; height: 22px; flex: none; color: var(--warn); }
.geo-now b { display: block; font-variant-numeric: tabular-nums; }
.geo-now small { display: block; color: var(--muted); font-size: .78rem; }
.geo-now.set { background: color-mix(in srgb, var(--ok) 10%, transparent); }
.geo-now.set .ic { color: var(--ok); }
.geo-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- owner: attendance board ---------- */
.att-list { list-style: none; margin: 0; padding: 0; }
.att-list li + li { border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.att-row { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "av main main" "av t st"; gap: 4px 12px; align-items: center; width: 100%; padding: 12px 6px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 12px; }
.att-row:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.att-row > .avatar, .att-row > .att-ph, .att-row > .ph-none { grid-area: av; }
.ar-main { grid-area: main; min-width: 0; }
.ar-main b { display: block; overflow-wrap: anywhere; }
.ar-main small { display: block; color: var(--muted); font-size: .76rem; }
.ar-t { grid-area: t; display: flex; flex-wrap: wrap; gap: 3px 12px; min-width: 0; font-variant-numeric: tabular-nums; font-size: .88rem; }
.ar-t span { display: inline-flex; align-items: center; gap: 4px; }
.ar-t .ic { width: 15px; height: 15px; color: var(--muted); }
.ar-t .late { color: var(--warn); font-weight: 650; }
.ar-t em { font-style: normal; font-size: .72rem; padding: 0 5px; border-radius: 99px; background: color-mix(in srgb, var(--warn) 16%, transparent); }
.ar-t .ar-h { font-weight: 700; color: var(--text); }
.att-dev { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--text) 5%, transparent); font-size: .82rem; color: var(--muted); }
.att-dev > .ic { width: 18px; height: 18px; flex: none; }
.att-dev .btn { flex: none; }
.att-row > .chip { grid-area: st; justify-self: end; }
.ar-risk { position: absolute; left: 36px; top: 8px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; background: var(--bad); box-shadow: 0 0 0 2px var(--bg); }
.ar-risk .ic { width: 12px; height: 12px; stroke-width: 2.4; }
@media (min-width: 760px) {
  .att-row { grid-template-columns: auto minmax(0, 1.3fr) minmax(230px, 1fr) auto; grid-template-areas: "av main t st"; }
}
.att-ph { display: block; object-fit: cover; background: color-mix(in srgb, var(--text) 8%, transparent); }
.att-ph.thumb { width: 42px; height: 42px; border-radius: 50%; }
.att-ph.big { width: 100%; aspect-ratio: 3 / 4; max-height: 340px; border-radius: 16px; cursor: zoom-in; }
.att-ph.loading { background: linear-gradient(100deg, color-mix(in srgb, var(--text) 6%, transparent) 30%, color-mix(in srgb, var(--text) 14%, transparent) 50%, color-mix(in srgb, var(--text) 6%, transparent) 70%); background-size: 300% 100%; animation: shimmer 1.2s linear infinite; }
.att-ph.gone { opacity: .5; }
@keyframes shimmer { to { background-position: -150% 0; } }
.ph-none { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--muted); background: color-mix(in srgb, var(--text) 7%, transparent); }
.ph-none .ic { width: 18px; height: 18px; }
.att-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.att-head b, .att-head small { display: block; }
.att-head small { color: var(--muted); font-size: .8rem; }
.att-sum { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 0 4px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--text) 5%, transparent); font-size: .9rem; }
.att-sum span { display: inline-flex; align-items: center; gap: 6px; }
.att-sum .ic { width: 17px; height: 17px; }
.mk-grid { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 560px) { .mk-grid { grid-template-columns: 1fr 1fr; } }
.mk { display: grid; gap: 10px; align-content: start; padding: 14px; border-radius: 16px; border: 1px solid var(--line); }
.mk h4 { display: flex; justify-content: space-between; align-items: baseline; font-size: .9rem; color: var(--muted); }
.mk h4 b { font-family: var(--font-d); font-size: 1.4rem; color: var(--text); font-variant-numeric: tabular-nums; }
.mk.empty { justify-items: start; }
.mk-kv { margin: 0; display: grid; gap: 4px; font-size: .84rem; }
.mk-kv div { display: flex; justify-content: space-between; gap: 10px; }
.mk-kv dt { color: var(--muted); }
.mk-kv dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.mk-map { display: flex; gap: 8px; flex-wrap: wrap; }
.mk-flags { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mk-flags li { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; font-size: .82rem; }
.mk-flags .ic { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.mk-flags .fl-bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 11%, transparent); }
.mk-flags .fl-warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.mk-flags .fl-info { color: var(--info); background: color-mix(in srgb, var(--info) 11%, transparent); }
.mk-flags span { color: var(--text); }
.mk-clean { display: flex; align-items: center; gap: 6px; color: var(--ok); font-size: .84rem; font-weight: 600; }
.mk-clean .ic { width: 17px; height: 17px; }
.mk-manual { display: flex; gap: 8px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--info) 10%, transparent); font-size: .88rem; }
.mk-manual .ic { width: 17px; height: 17px; color: var(--info); flex: none; margin-top: 2px; }
.mk-manual small { display: block; color: var(--muted); margin-top: 2px; }
.zoom-ph { display: block; width: 100%; border-radius: 16px; }

/* ---------- owner: timesheet ---------- */
.tsheet-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tsheet { border-collapse: separate; border-spacing: 0; font-size: .78rem; font-variant-numeric: tabular-nums; }
.tsheet th, .tsheet td { padding: 6px 4px; text-align: center; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); white-space: nowrap; }
.tsheet thead th { position: sticky; top: 0; z-index: 1; background: var(--surface); color: var(--muted); font-weight: 600; }
.tsheet thead th b { display: block; color: var(--text); font-size: .82rem; }
.tsheet thead th small { font-size: .66rem; }
.tsheet thead th.we small, .tsheet thead th.we b { color: var(--bad); }
.tsheet thead th.now { box-shadow: inset 0 -2px 0 var(--primary); }
.tsheet .tn { position: sticky; left: 0; z-index: 2; min-width: 150px; max-width: 190px; padding-left: 14px; text-align: left; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
.tsheet thead .tn { z-index: 3; }
.tsheet .tn b { display: block; font-size: .84rem; overflow: hidden; text-overflow: ellipsis; }
.tsheet .tn small { color: var(--muted); }
.tsheet .tt { padding: 6px 10px; font-weight: 700; }
.tc { min-width: 38px; border-radius: 6px; }
td.tc { font-weight: 600; }
.tc.ok { color: var(--ok); }
.tc.late { color: var(--warn); }
.tc.abs { color: var(--bad); font-weight: 800; }
.tc.off, .tc.fut { color: color-mix(in srgb, var(--muted) 60%, transparent); }
.tc.man::after { content: "*"; color: var(--info); }
.ts-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ts-legend .tc { display: inline-block; min-width: 0; padding: 1px 6px; font-weight: 700; background: color-mix(in srgb, var(--text) 5%, transparent); }
.ts-legend .tc + * { margin-right: 8px; }

/* ---------- staff: check-in ---------- */
.ck-hero { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 22px; padding: 28px 20px 30px; border-radius: 28px; text-align: center; background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 62%), var(--card-bg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.ck-state { display: grid; gap: 6px; max-width: 34ch; }
.ck-k { font-size: .8rem; font-weight: 700; color: var(--primary); }
.ck-state h1 { font-family: var(--font-d); font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); line-height: 1.15; }
.ck-state p { color: var(--muted); font-size: .92rem; }
.ck-timer { font-variant-numeric: tabular-nums; }
.ck-btn { position: relative; display: grid; place-items: center; align-content: center; gap: 2px; width: 172px; height: 172px; border-radius: 50%; border: 0; cursor: pointer; color: var(--on-primary); background: radial-gradient(circle at 35% 28%, color-mix(in srgb, #fff 30%, var(--primary)), var(--primary) 58%, color-mix(in srgb, #000 18%, var(--primary))); box-shadow: 0 18px 40px color-mix(in srgb, var(--primary) 38%, transparent), inset 0 2px 0 rgba(255, 255, 255, .35); font: inherit; transition: transform .2s var(--ease); -webkit-tap-highlight-color: transparent; }
.ck-btn:active { transform: scale(.96); }
.ck-btn .ic { width: 44px; height: 44px; stroke-width: 1.6; }
.ck-btn b { font-family: var(--font-d); font-size: 1.12rem; }
.ck-btn small { font-size: .74rem; font-weight: 600; opacity: .8; }
.ck-btn.out { color: #fff; background: radial-gradient(circle at 35% 28%, color-mix(in srgb, #fff 25%, var(--accent)), var(--accent) 58%, color-mix(in srgb, #000 22%, var(--accent))); box-shadow: 0 18px 40px color-mix(in srgb, var(--accent) 35%, transparent), inset 0 2px 0 rgba(255, 255, 255, .3); }
.ck-btn:disabled { cursor: not-allowed; filter: grayscale(.85); opacity: .55; }
.ck-ring { position: absolute; inset: -10px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--primary) 55%, transparent); animation: ckPulse 2.4s ease-out infinite; pointer-events: none; }
.ck-btn.out .ck-ring { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.ck-btn:disabled .ck-ring { display: none; }
@keyframes ckPulse { 0% { transform: scale(.94); opacity: .9; } 100% { transform: scale(1.22); opacity: 0; } }
.ck-done { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.ck-done .ic { width: 46px; height: 46px; stroke-width: 2; }
.ck-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; }
.ck-note .ic { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.kv dd small { display: block; color: var(--muted); font-weight: 400; font-size: .78rem; }
.kv dd .link { display: inline-flex; align-items: center; gap: 4px; }
.kv dd .link .ic { width: 15px; height: 15px; }
.ck-hist { list-style: none; margin: 0; padding: 0; }
.ck-hist li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "date t h" "date st st"; gap: 2px 12px; align-items: center; padding: 11px 2px; }
.ck-hist li + li { border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.ck-hist .hr-date { grid-area: date; }
.ckh-t { grid-area: t; font-variant-numeric: tabular-nums; font-weight: 600; }
.ckh-h { grid-area: h; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; min-width: 40px; }
.ck-hist .chip { grid-area: st; justify-self: end; }
@media (min-width: 640px) { .ck-hist li { grid-template-columns: minmax(0, 1fr) 140px 60px 120px; grid-template-areas: "date t h st"; } }

/* ---------- check-in flow modal ---------- */
.cf { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 4px 0; }
.cf-h { font-family: var(--font-d); font-size: 1.15rem; }
.cf-live { min-height: 2.8em; font-variant-numeric: tabular-nums; }
.cf-foot { display: flex; gap: 10px; width: 100%; flex-wrap: wrap; }
.cf-foot > .btn { flex: 1 1 140px; }
.radar { position: relative; width: 150px; height: 150px; display: grid; place-items: center; margin: 6px 0 4px; }
.radar i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--primary) 60%, transparent); opacity: 0; animation: radar 2.4s ease-out infinite; }
.radar i:nth-child(2) { animation-delay: .8s; } .radar i:nth-child(3) { animation-delay: 1.6s; }
.radar-dot { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: var(--on-primary); background: var(--primary); box-shadow: 0 10px 28px color-mix(in srgb, var(--primary) 40%, transparent); }
.radar-dot .ic { width: 32px; height: 32px; }
@keyframes radar { 0% { transform: scale(.35); opacity: .95; } 100% { transform: scale(1.1); opacity: 0; } }
.cf-ok { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 14px; text-align: left; color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); font-weight: 650; font-size: .92rem; }
.cf-ok .ic { width: 22px; height: 22px; flex: none; }
.cf-ok span { color: var(--text); }
.cf-ok small { display: block; color: var(--muted); font-weight: 500; font-size: .78rem; }
.cam { position: relative; width: min(100%, 300px); aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; background: #000; }
.cam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cam-oval { position: absolute; left: 50%; top: 46%; width: 62%; height: 64%; transform: translate(-50%, -50%); border-radius: 50%; box-shadow: 0 0 0 999px rgba(0, 0, 0, .38); border: 2px dashed rgba(255, 255, 255, .75); pointer-events: none; }
.cf-tip { font-size: .86rem; }
.cf-shot { width: min(100%, 300px); aspect-ratio: 3 / 4; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-sm); }
.cf-problem { display: grid; justify-items: center; gap: 8px; padding: 6px 0; }
.cf-pic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.cf-pic .ic { width: 32px; height: 32px; }
.cf-problem h3 { font-family: var(--font-d); font-size: 1.12rem; }
.cf-problem p { color: var(--muted); font-size: .9rem; max-width: 38ch; }
.cf-problem p b { color: var(--text); }
.cf-wait { display: flex; align-items: center; gap: 10px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .ck-ring, .radar i { animation: none !important; opacity: .4; } }

/* ---------- security center (service panel) ---------- */
.note.bad { background: color-mix(in srgb, var(--bad) 10%, transparent); border-color: color-mix(in srgb, var(--bad) 28%, transparent); }
.note.bad .ic { color: var(--bad); }
.sec-score { display: flex; align-items: center; gap: 18px; }
.sec-score h2 { font-size: 1.08rem; margin-bottom: 4px; }
.sec-score .ring-t { font-size: 1.35rem; font-weight: 700; }
.sec-score .ring-t small { font-size: .62em; font-weight: 600; color: var(--muted); }
.sec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sec-i { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.sec-i:last-child { border-bottom: 0; }
.sec-i b { display: block; font-weight: 650; margin-bottom: 2px; }
.sec-i p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.sec-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: color-mix(in srgb, var(--info) 14%, transparent); color: var(--info); }
.sec-ic .ic { width: 18px; height: 18px; }
.sec-i.ok .sec-ic { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.sec-i.warn .sec-ic { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
.sec-i.bad .sec-ic { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--bad); }
.sec-act { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.sec-auto { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.sec-auto li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.sec-auto .ic { flex: none; width: 18px; height: 18px; color: var(--ok); margin-top: 1px; }
.sec-steps { margin: 0; padding: 0 0 0 1.4em; display: grid; gap: 14px; }
.sec-steps li { padding-left: 4px; }
.sec-steps li::marker { font-weight: 700; color: var(--primary); }
.sec-steps b { display: block; margin-bottom: 2px; }
.sec-steps p { margin: 0 0 8px; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.sec-steps p b { display: inline; margin: 0; color: var(--text); }
.key-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin: 6px 0; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--primary) 45%, var(--line)); background: color-mix(in srgb, var(--primary) 6%, transparent); }
.key-box code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; letter-spacing: .04em; overflow-wrap: anywhere; user-select: all; }
.key-box .btn { flex: none; }
@media (max-width: 560px) { .sec-score { align-items: flex-start; } .key-box { flex-direction: column; align-items: stretch; } }
/* ---------- days off ---------- */
.do-box { display: grid; gap: 10px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.do-box-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.do-box-h .btn { flex: none; }
.do-box-t { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; font-size: .95rem; line-height: 1.25; }
.do-box-t .ic { flex: none; }
.do-box-t .ic, .do-when .ic, .do-ic .ic { color: var(--accent); }
.do-box .do-list { margin: 0 -6px; }
.do-all { display: inline-flex; align-items: center; gap: 4px; justify-self: start; font-size: .86rem; }
.do-all .ic { width: 16px; height: 16px; }
.do-list { list-style: none; margin: 0; padding: 0; }
.do-list > li + li { border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.do-row { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "av main n" "av when n" "av by by"; gap: 3px 12px; align-items: center; width: 100%; padding: 11px 6px; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; text-align: left; }
button.do-row { cursor: pointer; transition: background-color .2s; -webkit-tap-highlight-color: transparent; }
button.do-row:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.do-row > .avatar, .do-row > .do-ic { grid-area: av; align-self: start; }
.do-main { grid-area: main; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.do-main b { font-weight: 650; overflow-wrap: anywhere; }
.do-main small { color: var(--muted); font-size: .76rem; }
.do-main .chip { min-height: 22px; padding: 1px 8px; font-size: .7rem; align-self: center; }
.do-when { grid-area: when; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .88rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.do-when .ic { width: 15px; height: 15px; }
.do-when .chip { min-height: 22px; padding: 1px 8px; font-size: .7rem; }
.do-by { grid-area: by; color: var(--muted); font-size: .76rem; overflow-wrap: anywhere; }
.do-n { grid-area: n; justify-self: end; align-self: start; display: grid; justify-items: center; min-width: 54px; padding: 6px 8px; border-radius: 12px; line-height: 1.05; background: color-mix(in srgb, var(--accent) 13%, transparent); }
.do-n b { font-family: var(--font-d); font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.do-n small { font-size: .68rem; color: var(--muted); font-weight: 600; }
.do-row.now .do-n { background: color-mix(in srgb, var(--ok) 15%, transparent); }
.do-row.now .do-n b { color: var(--ok); }
.do-row.past { opacity: .6; }
.do-row.mine { grid-template-areas: "av main n" "av by n"; }
.do-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.do-ic .ic { width: 20px; height: 20px; }
@media (min-width: 760px) {
  .view .do-row { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.15fr) auto; grid-template-areas: "av main when n" "av by by n"; }
  .view .do-row.mine { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "av main n" "av by n"; }
}
.do-lab { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.do-cnt { font-size: .8rem; color: var(--accent); }
.do-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.do-tools .select { flex: 1 1 150px; }
.do-emps { display: grid; gap: 6px; max-height: min(320px, 42vh); overflow-y: auto; overscroll-behavior: contain; padding: 2px; margin: 0 -2px; border-radius: 14px; }
.do-emps.need { box-shadow: 0 0 0 2px var(--bad); }
.do-emp { position: relative; display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 35%, var(--surface)); cursor: pointer; transition: border-color .2s, background-color .2s; -webkit-tap-highlight-color: transparent; user-select: none; }
.do-emp input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.do-ck { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; border: 1.6px solid color-mix(in srgb, var(--muted) 55%, transparent); color: transparent; transition: background-color .2s, border-color .2s, color .2s; }
.do-ck .ic { width: 15px; height: 15px; stroke-width: 3; }
.do-emp.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, var(--surface)); }
.do-emp.on .do-ck { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.do-emp input:focus-visible ~ .do-ck { outline: 2px solid var(--primary); outline-offset: 2px; }
.do-emp .avatar { width: 34px; height: 34px; border-radius: 11px; font-size: .78rem; }
.do-emp-t { min-width: 0; }
.do-emp-t b { display: block; font-size: .92rem; font-weight: 600; overflow-wrap: anywhere; }
.do-emp-t small { display: block; color: var(--muted); font-size: .76rem; }
.do-emp-t em { display: block; font-style: normal; font-size: .74rem; font-weight: 600; color: var(--warn); }
.do-none { padding: 10px; text-align: center; }
.do-fixed { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); }
.do-fixed b, .do-fixed small { display: block; }
.do-fixed small { color: var(--muted); font-size: .78rem; }
.do-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.do-quick .fchip { min-height: 32px; padding: 0 12px; font-size: .8rem; }
.do-step { display: flex; align-items: center; gap: 6px; }
.do-step input { width: 72px; flex: none; text-align: center; font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; padding-left: 6px; padding-right: 6px; }
.do-step input::-webkit-outer-spin-button, .do-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.do-step .icon-btn { flex: none; width: 46px; height: 46px; border: 1px solid var(--line); color: var(--text); }
.do-step span { color: var(--muted); font-weight: 600; font-size: .9rem; }
.do-until { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 11%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent); }
.do-until > .ic { width: 24px; height: 24px; flex: none; color: var(--accent); }
.do-until b { display: block; font-variant-numeric: tabular-nums; }
.do-until small { display: block; color: var(--muted); font-size: .8rem; }
.do-eff { display: flex; gap: 8px; align-items: flex-start; }
.do-eff .ic { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.do-sum { list-style: none; margin: 0; padding: 0; display: grid; }
.do-sum li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 4px; }
.do-sum li + li { border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.do-sum b, .do-sum small { display: block; }
.do-sum span small { color: var(--muted); font-size: .76rem; }
.do-sum em { font-style: normal; text-align: right; font-family: var(--font-d); font-size: 1.2rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.do-sum em small { font-family: var(--font-b); font-size: .7rem; color: var(--muted); font-weight: 600; }
.do-rec { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 11%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent); }
.do-rec > .ic { width: 22px; height: 22px; flex: none; color: var(--accent); }
.do-rec > span { flex: 1; min-width: 0; }
.do-rec b, .do-rec small { display: block; }
.do-rec small { color: var(--muted); font-size: .8rem; }
.do-mark { margin-top: 12px; }
.do-today { display: flex; align-items: center; gap: 8px; margin: -4px 0 10px; padding: 9px 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 10%, transparent); font-size: .86rem; }
.do-today .ic { width: 17px; height: 17px; color: var(--accent); flex: none; }
.tc.do { color: var(--accent); font-weight: 800; background: color-mix(in srgb, var(--accent) 13%, transparent); }
.tc.do.do-plan { opacity: .7; }
.tsheet .tt.do-t { color: var(--accent); }
.ck-off { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; color: var(--accent); background: color-mix(in srgb, var(--accent) 15%, transparent); }
.ck-off .ic { width: 46px; height: 46px; }
.ec-today.do-ec { color: var(--text); background: color-mix(in srgb, var(--accent) 11%, transparent); }
.ec-today.do-ec .ic { width: 17px; height: 17px; color: var(--accent); }
/* ================= Store designs =================
   The ids stay gold / emerald / ocean, because each store has one saved; the looks are new.
   Luxury  (gold)    black carbon, warm gold light, black marble; display type Lora (italic headings)
   Premium (emerald) white and silver, gold ribbons, white marble; display type Lora
   Elite   (ocean)   deep navy, blue light ribbons, silver; display type Inter Display
   Text everywhere inside a store: Inter. All faces are served from the site itself (f-*.woff),
   so they look the same on every phone, load fast and work offline.
   Each design has one picture (th-*.webp) shared by the splash and the app. */
@font-face { font-family: 'BCP Inter'; src: url("icons/f-inter-400.woff") format("woff"); font-weight: 100 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'BCP Inter'; src: url("icons/f-inter-600.woff") format("woff"); font-weight: 501 650; font-style: normal; font-display: swap; }
@font-face { font-family: 'BCP Inter'; src: url("icons/f-inter-700.woff") format("woff"); font-weight: 651 1000; font-style: normal; font-display: swap; }
@font-face { font-family: 'BCP Inter Display'; src: url("icons/f-interd-600.woff") format("woff"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: 'BCP Lora'; src: url("icons/f-lora.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'BCP Lora'; src: url("icons/f-lora-i.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }
:root { --carbon: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAIAAADajyQQAAAVXUlEQVR42mV70bIkO44bSCqr7o7fvWH7wd7//72JmFspkfADKGX27OmIjtPVVVkpiQQBkGn/9//9l5lFBAAzBwDAzMxgZoABIGlm5sYiQf1nVZn1/7o7Sf2+/2YVAZpZZRGs4pz35/P5fL7uri/1CFBfAgPMvTLXWmutOWdmznmD/P71l3tcn2vEiDHcjKS5mxnItRbJInOtteZaed+/cV2fiDAzM3N3rSYienGEGbhXC1KLMfdc6e4EAbCot1eRIIswVFVmAqysrAxirQntiJtrE0kC1jdpJKvqtUGlb66qMS6D6fUiM/MbYeZZCegm6O5mDqSZDXfX/o1x6VjcDNZ/98m5kYT+ADqf8NALelexADhJsjJ1AuGRucIjKrSve4PQ10GvjtRN090z0xQt2kRdv6qqIsIAADo0GKHb1Iep64HkcHcdrrnpVgi6+4hhZjCwaO4AzdzdK5MkDW6ma7lZkR8f+mfmiojKMi9WkVGV2j4AZh3YBIrUrsFAlrmbea0kCQNB60Qokh5+Vmjm2iI3z1onI7QorW3sbHI3jxERQTJi6CojosiI0C6CNIU4aDBlkvUdW2USUF4lEgW4e3BNpBKSIGE7o0i6G6sU6MMjK3VotfJ5k6IxKzx6U1jm5m4rl7nnWn1RQCFsZiPG8PDwMLeIcA/FJqB/+uUOmMJvnzn0y8EM7KPjDlQztzQSuVaMYZmVif72DUj7w2YOsFjWe07AWCTZCNYf3KkOKxaJEUM7npmKYZIGY9Vw9zHGdX10PjGGYsbdAYvoECKHu2VW590OKq22StESCtQ5Z0REeGYBCLI83nfW2eLeoQjbyGgEFIEeXqv+DaUpsAHdHYasFNgYIJRWssBsjDHCI4RKD5AMbYzKgLvr85/vcHOAumN3r8oirxgwVBaNQH2/37WWMsLd11p7pzuy9maRKG2/m+7WT1B0vmgd5MZGYT1A5soxRlmhzxWNqCCAkWu5+X3fn++XbOQRgkUMssysyjIzYqw13UO3Z4a1CKCKEe4ee1Mx5zSzqsysyqyqzFXkO247Icwy09x1+5nZYcDKLIEKYNyfLZJruQdZMZwsVikCi9V7JfAgUJUxrsxFhlnp/67rAxDwfQO+U6sAZJY3VFqjRS4tQTu9cpEUMLBKX+fmJDPTw8NCG6w3pNE3pu9lsLJeqMCqElapdg2gik/+NTIZKbg3jzEUe/oRZkSEGdxDZ+iuROrIhC3flcbMATPzMbzKM5eFmdua0yOockxHolhj1/0DRSflyI7552jtWVKEoqOTXBtk7qw6NX3vS5H0jmIQQLxCXO/RhapqrVVVO00qPADz8MwyN1KL9z4xHbISCVBauummRUdwDkeBtDJ1Y7tes1GR1IlU9Uv6VImw7VUdfvfUsczytUB6BElbK8ZYa17j6ppvboaqUl4JyseItZbqm6eTFEIAyExWrcz+nZUri5zzPgyhKs1MkSj+sbmUvqiqqslaf4B0Vpa7ArwaIffPPihkpsJhZC5ljrPCQ2yjlwF4xB9QRhY5YsxZa85094g55+G+h+xpeVmpM6ms5x1PqFE7IpAUKaummyShM90Ukdhkcsc/3hCqTwljlYGoSnNDlbuLibt5ZR6k7nzQ6bNUKAyYa1muqjJYjCEwPFl+1qni1lxsr4usiENqN2QbqrIDsYodhxTin0oFmM5cpTkzn9jdP0PvzrXKvLLcndQSVdkMRFa6uTJxV0m6B8hmdIb1W5mp3dWegUgt+3w98AokAGlGM5BwN7L5zZ+n+uCHmZFGimi9kq1/pRmU5AaMtVZVijTZ68c9ihWbSSm9IARzL71IZtXRAye5zZzoI9LFFZz7FrmLSpgJkCAqmrkOuNW+mnTLSarMtau9kggCOe4VV2aR475vN0MrlWaAbwXZEZIVEVV5xChBkGatVCLGhtM8xWSj1w6wjdaZjfJvvu/mZzHnNJp+kJV1pEzDWNHcd+g+ua2IHHPe3+/38/mOMbSSiKHfd+jjnhPBtVZmmfH3+9tgtk9YiqZqvnLayXK3Ko8QLQ4z+37/whHML5J1sCQQok4H7Vica34/33GNMa6IiDFAukdEeHiuVUXxAZC/3y9z3fc9bCs5rUplkWxsUnpILzbFrAQR1zBDxNAxRgzdqCqsu6t0Yp+I6XUz/a82WEAvQq24Pcf4oiC1culN2g7vopwvP6KEiYr2FppPhd88wiDNXMWCmZmvNc++CjkiQoaCfnF3j9BGHBtD18pU9PJF7k0UVCRQ76xKAX1VU75mgFV41RK85MuRXwA8Itc6SQSyZe/5sVNf0Plz5Pr7itd1mdl1XSrfe1Vubu7hW9Jn5ef7VT3YJP2I/eYTuwgPFbTM1GIiRlbu0mJHfrBKMkVXqiqYUXxg8x6YDR3l+aoix76trhUR2jxsddyg6RFjhGspMhTCAHMb42JVjCG2bpupdZSaVSWJ2DFJQJKkqkaMrFxzudPK1gP3jNHCRMTy0SkCKBU8A4sghnwBXXeLYnjYrmk7AAzuXiygDHYNidJhsOu62s9o6txbm5mfz+ctLl9Z8ci8I6XEQjLTI9yDVVgTb6VJ7AKtb3MAcDSldHf3OVOqdcBghpP0MDM3BQ/ZPAhm+tUApUFECDkihpjXlqlKt0Fye5XCA9M2C6zHiBP8ETFn85sxhtSgu9/3r72W5uiEAZtDESyWd/EEAAXt2btTfEprCzM2Xu0r7PLRqhyEIavca81VVeFBwAwjhqDvrS/eLmrE6OJbuf0Fn3MJnDbrT8DmvHMtVeniFjIEqyDPU6wMJcLBVAUvsswcQsUTr3LFNgR17vFdK/t15logzO1jH139uq6VaQZ61O/Xm1dUDO/tuxtUMsNj5Tr4ruuutUpkNFMbsE407vI+xpB1Q8CIIkGI1p6tN/NxSqH70B0bzMNfOw0diOoKIDPQ3e26PjDEiO3/WNdNd32mTHIud7q3sSXHSkHrbvd9i53FGKp3yvZ532OMRx+LX2bKcnNzOAyoI9G3eVyVw9pRgDiYSDBpmSm3VdqwilUplUTQzWIM7V9byGbCA70oxqh/ul+ZJerkHlX5+X6ll2X4KQk9c+WiGRIjBoD01UFcZNsiR8+UtrgJ5FpE67iTY0ditGsCWGU2wXW3p9DBgGxf8elCCLuv6zqHvNYCQaQq+I615koqXyoMayU5HzL53BsPaRZqUVLIHqDWO/U2tT4exScz5+yEwQhmLm4ljyfl+nv1rzlvs4/4WVbKNpLZWlWCBeHbnFNVrmWSitt2rg/oq4PBbRZ0AQDq8A9vHX34h4IC0lxVDVc7XQca/nTTruDeq+Jhbm8GvWO9jk/KYpnFQGV6OGButq1Fa1NNXDlTX6iElGAja87p5llpsB31ApE+Nznqb1WqpkSHG84Z9q0OtiNCAwv5LpoillsI1d6LOnTTdq2k0d3z9/NwT1cTw+0xwM2sSPfaRQhpZrY2JpBkVmZlrnS3NzBir8dZmWvYpb3o/lI3qwCIXkKts7F5ZAdGI9bua5wPiL/xnYukNWdNMwABs8oqlIeDKC9tpbnpC8p9t7w2KzZIhlUWDJUpm/nYNf29RRrXyus6rPUPM+dctioFImPL0pJKBwLIiNiJ/upQspqKtDLPR1MdcxibebE5h7lZtqlQa4JQx6P7oywzV+RFeB5fZGdXM8wQYql8n14FTtugSv3GOhpkvFZs2zlou7c7tLY1xbaPquq+b3c3W6c192pl/NF5eHRDZwVOiO5m1z5/QxX3i20lSBALkFjE0HsAgqFq+RZvPL/Y//rf/+f7/ev7/aMvLLuqpJpIue+1zfjf70dSontcQzXn3Kj6abZPc875+/3Iuu/78/mKmz/MVrYEHnZiL0/7fSyv9Z/T5tveFYNiqlhTXRV2d/TYdNzt0C2Bd8PlT7HXLu9p0TVRFleOcO54VgxLBxwpYGaxu9469KaUAhklpzBUYsTAYowQparcF29Y62Iol1Yk+LGoOimN5par9PI87QX21vr+xKFnp9W0U8uV87KJiNJmKWjPnEJEHAFiZuoSA3Ydo3e3Tt2NIsHANa4i6Y03Mr+zMmJkSq1yGOxdhYEyC3HfGKFXw12J7O5rza3TzqcqxmC9WkRKF8C7jy4D75BDdzcFvA7cw8e4BIAqg4quUI8CkI2GLftVPACutQw2zFYuZ3NuyzSzoUTaNlv/xtpa5vD9tpAb6/9Nd6Mt1MbibsS0WC61WiW9Pp8PDNd1bSbt7t4BuX9k0b5T48CYmbHo4ZnpHmvNpixo1Bkc9/1z986xtdb1+eAQue3q4HFlXrm7I/ABt50Yx8Fw7yEXdxdHk8/TNY2IaOOlZVnTZd/DDOPPJqhhG8wxgsQYl6LuUX1VMKxaLVVP3LcZpNPcYHXsZa1Qzb63K9i9cbOUG6Fv6gZP+t6cdmOLys/z8hjjrb51PfkLp/yoEmhHlIEqaEcBNUt0N1dxYkloqsQB3Wpp2a3662FGA/jq259QfPoLZ3Jh8yOlEF8VhsXrc6l94WbjujS00ClkHuEHTorFbfFHhOrqGON0Use4dIeMADDnrEogwokBGKTHus8rNCvBRtsb+W7DvfqoOOBxrM/awxzC5WKekYn+SJV/hpmN6xImaaN100+OAQ5HeFXtSRy9Xt/v15peg/QxZNdlx3Atj2ih3fp/t3OCRhbLDoVv2oKnr/HS80Xa0RI9S9IOCsxjh/GjoDLTzSd4XZ97zg/gCBALU6JT/kfEULdxrbyua0/jVOYNIMKrMOdjNEhobk1clendL2y62bdwegIqR/336QbsUBQUY/c4+DrPrMq1NkPfuxYRHk18q67r0pW9p0kMwLiuiBCeudsYY63cFq9tq9eqcoxxXVfrrIie6vJusPimsOrF9BK53fPKLFaudWwFNfVe+VYvXfz8qPm3wwibejMryUaeP2zz3jJ1CVHFI6BOl2brw6bUANbqaMcf17G236oSGJrzefv6x+LkXreSDRvfZMKacdtGNMOZbQFRqJfY50ZU5lp2jffCJMkPj6mib4jbvTXLTOFHtpkLIf68b3nYUrFKcheO1+vATkPgv/sCZPe8d+/0ETVqNB+J3QJkn3NTK/NjYB0LX9xqjHEGj0jKUZV9Etsy6xkRt5fX0vmSVe49fihXZzR5QU+MHBaiW5RZp3nKozLfswevZsWzC89EEaH+lVB1zilrJFiZy22aW2xxII/9MPpjdf5+NcZg3WY2q6pqXJck3JkZkA2x2mhgZo2qqmZkahw3098qd2uz4gm/d1PYXdxtc/puSQo5e3Kme5Ss+/5lxhhjrm7LuBnx06Hd92si12CnyWR2/3qQsKpgsN9PTUHNEp7Gp8yVlauyxqlHGhMoEPVHk1sfhqFe8yMiRdJ88gy75Ld3vXs3xd38t2PmTk3sOFeuiIB8ZWBc19EQ5qb7sZftxV6zHer3KiQsVo92FDNzKLvVWWpl2dNPu0Um/Vz5DJTskuAO7aAQdnssB5FLLbKzHWtlBAHzSpGsNedhUpoXObf+bwz4PbD4huU3EzrDOyTH//zP/zzdxqPeQbz1/Pn9eBK/39/f7/e6Pofs4fUG7bTm7/7++1/amd/vd9+/z+dzXR+Nfqr+GJCl2RkhW1XlyrzvXxXXmt/vX22T2OGK1iCMx3RyH7GXYO7jH//4Hy/8b/vlsGEJuDMQJPspM+/7mQ/s3d3T3czU6XkMosyNSRatZ2bsjMF1d8osulQoX7tXZObk3C2rOJvVHAzQgHbmco/GQ/ZSBUVDNaHZmFLCzWBZyeJl15oLhsz08pf98DjQzYR39LNNxZNdPca0mwZ8ht03drdFuQvZ7i/baSye25WaELdk8fP5R7uO5ll1hnPHf/zHP44pKVn5zIIzCGZWRICYa8qCm/fcbVs/ca5UOfY1FDw4BXALO0iP1Bkm7TmPjnYHs1/sZj80nnE0qZmFR8f/niNQFEiw6bLjGpe/KqCmQro6ZJIM3z0Lw5qLRcWCVvXMqL1MX40LmhvL9iTDnk58jf8c7t8TpoZWpS9PVh/x8BHjjCfsCfOh0IjdH9VSRYP8WIWCKbxEq7ljuwuKseaaTVj3OPdLdL79MM11P/P+m4Jwf9CsHyjwx8Z5bY03WvieZz/V/3RrXzNzf1RXMxufz+cM6wjJInybMZv4wCbXe1ce+CXcrIoefmZl95SjSU10wh+wLVr0LJnDbY8Fa6teDV6cebbwODYWQN+TMp/PR3JGtOtEQWbJVYYeVHEP9cXV/hORG2MQGCPGuMwEjNyeFN/TnW4OO4Rrd/J3//u05233E/3lgT6c5YT0PiXs50usB/qKgKDyjHHJfdDEgQwVCSE9YKE7kNddLdGr29A9IcNzsDIkdocJrMzMxTMwtG905WrnXAB49gJ6fEKdFBqgvim2zXYenGGpZ2CVOcaQs5GZLB4BqjHjphO5qjhOBwzocYi15yl7xqAjxNeazxAo/pzoqTwe2+mUV49v8nQC0Ioue1SuXYse3+iJ9jO4WY/k7fwB15xjDK08evq11CvVHs3ZMPvv0/6sOv3sqoq+Cs/TFXIMNffzmhcFDmbsduHLD/TnfcRur/RQzXm0KHdL8j1BYY3mPM88HQvwjIL3hMrWOxLIW11HsAgwYmRmTzG7CxsiBrDMou7SA1pi/TI8DiTuuO2oOxVZEKKUrP3MwhviNDctQ+G0TgC+zLt+XOrz/YoK92wCjhEEwlll5t/vF4DnykM6X/l2YIPoq0QVY4S5mTlMbKPHtl+jk6nT0Dh726+bXpwEO7JaM0bnIocuZ88pFIHwsN1dWHMWqZhSHW+ip7eZV/YY6CiWla3MI1VO22Z7Hj1ScqRO7qnHMyn/PKsE8AUwT+d/P1f3MhT6EaIe3XiN8ez2ZDt23ezPvns3u38/c9fQhXBfroFk1O/vn4ePf/3rX3LVG/esn8jbfb7qJyB3qzYzpS/4aGpmLiWSTsNeEwdPvu0qrxDez348z29oHKUeS6mEob/7d41rrTViiIU/nRqVyzO4vJ0CAOP3+zs81pxv5aP77oeyVgq9noH6cwKUO1BnBlBneB6JMkBt8tdQSJk5KvUM137gCG5OkFm7i18Pq8ianBFxZ16fz1HW9XRFTA+aHGbn7qMy9biXTul0CWTv5I4TvMzGXmGlA5k4zye10CQsujNR5JF2rVOeZyl5Rpn1QJ9mDWoPU53iWZVmKHm4dz9uEWPY7iBoMPLR1xpP/+c//2n2emTQekz6rV5PvWlbV4JfE/q1iaUEH5sJmUGmfz+79lKray3ZpufZMM3WGvUEgCy0x06fc2aWm9hZT6/i/u1mKp8p3M30q+r/A1CtGKpAD+TGAAAAAElFTkSuQmCC"); --marble: url("icons/marble.webp"); }

[data-design="gold"] {
  --bg: #0B0907; --bg2: #110E0B; --surface: rgba(18, 15, 12, .86); --surface2: rgba(32, 27, 22, .92); --line: rgba(245, 180, 81, .18);
  --text: #F3EBDD; --muted: #AB9D88; --primary: #EDB55A; --primary2: #FFD992; --on-primary: #1A1006; --accent: #B9C6D6;
  --ok: #6FCF97; --bad: #F0776B; --warn: #F2B653; --info: #D2BC8E;
  --role-owner: #EDB55A; --role-admin: #9CB0E8; --role-cashier: #E8A94E; --role-seller: #D88BB0;
  --font-b: 'BCP Inter', 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --font-d: 'BCP Lora', Georgia, serif;
  --card-bg: linear-gradient(180deg, rgba(255, 210, 140, .06), rgba(255, 210, 140, 0) 38%), var(--surface);
  --shadow: 0 18px 44px rgba(0, 0, 0, .55); --shadow-sm: 0 6px 18px rgba(0, 0, 0, .42);
  --metal: linear-gradient(135deg, #FFF0C8 0%, #F5B451 38%, #B07326 62%, #FFD98A 100%);
  color-scheme: dark; font-synthesis: none;
}
[data-design="emerald"] {
  --bg: #F4F3F5; --bg2: #FAFAFB; --surface: rgba(255, 255, 255, .88); --surface2: #F5F4F7; --line: #E4E2E7;
  --text: #1E1D21; --muted: #6D6A72; --primary: #1E1D21; --primary2: #46434C; --on-primary: #FBF7EE; --accent: #B48A45;
  --ok: #3E8A5F; --bad: #B9483A; --warn: #A6721C; --info: #77706A;
  --role-owner: #B48A45; --role-admin: #4E6BAE; --role-cashier: #B07A22; --role-seller: #A8476F;
  --paper: #FFFFFF; --font-b: 'BCP Inter', 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --font-d: 'BCP Lora', Georgia, serif;
  --card-bg: var(--surface); --glass: blur(10px); --shadow: 0 14px 36px rgba(40, 36, 46, .12); --shadow-sm: 0 4px 14px rgba(40, 36, 46, .08);
  --metal: linear-gradient(135deg, #F6DDA6 0%, #E2B464 40%, #A87C3F 66%, #F0CF8A 100%);
  color-scheme: light; font-synthesis: none;
}
[data-design="ocean"] {
  --bg: #020D1D; --bg2: #04142B; --surface: rgba(5, 20, 42, .8); --surface2: rgba(10, 32, 62, .86); --line: rgba(110, 185, 255, .16);
  --text: #EAF3FF; --muted: #8FA6C4; --primary: #3AA8FF; --primary2: #8FD0FF; --on-primary: #031326; --accent: #9FD8FF;
  --ok: #4FD69C; --bad: #FF7B7B; --warn: #FFB547; --info: #8FD0FF;
  --role-owner: #6CC4FF; --role-admin: #9AA8FF; --role-cashier: #F2A93B; --role-seller: #EC7AAE;
  --font-b: 'BCP Inter', 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --font-d: 'BCP Inter Display', 'BCP Inter', system-ui, sans-serif;
  --card-bg: linear-gradient(180deg, rgba(120, 190, 255, .06), rgba(120, 190, 255, 0) 40%), var(--surface);
  --glass: blur(12px) saturate(130%); --shadow: 0 18px 44px rgba(0, 4, 14, .6); --shadow-sm: 0 6px 18px rgba(0, 4, 14, .45);
  --metal: linear-gradient(135deg, #FFFFFF 0%, #CFE8FF 38%, #6DB8F2 64%, #E6F4FF 100%);
  color-scheme: dark;
}

/* ---------- typography inside a store ---------- */
[data-design="gold"], [data-design="emerald"], [data-design="ocean"] { font-feature-settings: "ss01", "cv11"; letter-spacing: -.003em; }
.kpi-v, .t-price b, .pr-amount { font-feature-settings: "ss01", "tnum"; }
/* Luxury: italic Lora for titles, upright Lora for figures */
[data-design="gold"] .ph-text h1, [data-design="gold"] .today-hero h1, [data-design="gold"] .gate-card h1, [data-design="gold"] .ck-state h1, [data-design="gold"] .modal-head h3, [data-design="gold"] .top-t b, [data-design="gold"] .profile-card h1 { font-style: italic; font-weight: 600; letter-spacing: 0; }
[data-design="gold"] .ph-text h1 { font-size: clamp(1.65rem, 1.2rem + 1.6vw, 2.3rem); }
[data-design="gold"] .today-hero h1 { font-size: clamp(1.55rem, 1.15rem + 1.4vw, 2.1rem); }
[data-design="gold"] .kpi-v { font-weight: 600; letter-spacing: 0; }
[data-design="gold"] .top-t b { font-size: 1.04rem; }
/* Premium: calm upright Lora */
[data-design="emerald"] .ph-text h1, [data-design="emerald"] .today-hero h1, [data-design="emerald"] .gate-card h1, [data-design="emerald"] .ck-state h1, [data-design="emerald"] .modal-head h3, [data-design="emerald"] .top-t b, [data-design="emerald"] .profile-card h1 { font-weight: 500; letter-spacing: .005em; }
[data-design="emerald"] .ph-text h1 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem); }
[data-design="emerald"] .kpi-v { font-weight: 500; letter-spacing: 0; }
[data-design="emerald"] .top-t b { font-size: 1.02rem; }
/* Elite: tight Inter Display */
[data-design="ocean"] .ph-text h1, [data-design="ocean"] .today-hero h1, [data-design="ocean"] .gate-card h1, [data-design="ocean"] .ck-state h1, [data-design="ocean"] .modal-head h3, [data-design="ocean"] .profile-card h1 { font-weight: 600; letter-spacing: -.02em; }
[data-design="ocean"] .kpi-v { font-weight: 600; letter-spacing: -.01em; }
[data-design="ocean"] .top-t b { font-weight: 600; letter-spacing: -.01em; }
@media (min-width: 1024px) { [data-design="gold"] .top-t b, [data-design="emerald"] .top-t b, [data-design="ocean"] .top-t b { font-family: var(--font-b); font-style: normal; font-size: .8rem; font-weight: 600; letter-spacing: 0; } }

/* ---------- the store monogram ---------- */
.logo-mark.mono b { display: block; line-height: 1; }
[data-design="gold"] .logo-mark, [data-design="emerald"] .logo-mark, [data-design="ocean"] .logo-mark { font-weight: 400; }
[data-design="gold"] .logo-mark.mono b, [data-design="emerald"] .logo-mark.mono b { font-size: 1.5em; font-style: normal; font-weight: 600; transform: translateY(.02em); }
[data-design="emerald"] .logo-mark.mono b { font-weight: 500; }
[data-design="gold"] .logo-mark { clip-path: polygon(28% 0, 72% 0, 100% 28%, 100% 72%, 72% 100%, 28% 100%, 0 72%, 0 28%); border-radius: 0; box-shadow: none; color: #F5C877; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23FFF0C8'/%3E%3Cstop offset='.4' stop-color='%23F5B451'/%3E%3Cstop offset='.65' stop-color='%23A86A22'/%3E%3Cstop offset='1' stop-color='%23FFD98A'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23g)'%3E%3Cpath stroke-width='1.4' d='M11.2 .7H28.8L39.3 11.2V28.8L28.8 39.3H11.2L.7 28.8V11.2Z'/%3E%3Cpath stroke-width='.55' opacity='.7' d='M12.5 3.4H27.5L36.6 12.5V27.5L27.5 36.6H12.5L3.4 27.5V12.5Z'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat, radial-gradient(120% 90% at 30% 12%, rgba(255, 220, 160, .14), transparent 55%), var(--carbon) 0 0 / 12px 12px, #0E0C0A; }
[data-design="gold"] .logo-mark.mono b, [data-design="ocean"] .logo-mark.mono b { background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-design="emerald"] .logo-mark { border-radius: 14%; color: #26221C; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23F6DDA6'/%3E%3Cstop offset='.42' stop-color='%23E2B464'/%3E%3Cstop offset='.68' stop-color='%23A87C3F'/%3E%3Cstop offset='1' stop-color='%23F0CF8A'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23g)'%3E%3Crect x='.6' y='.6' width='38.8' height='38.8' rx='5' stroke-width='1.2'/%3E%3Crect x='3.3' y='3.3' width='33.4' height='33.4' rx='2.8' stroke-width='.5'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat, linear-gradient(rgba(255, 255, 255, .3), rgba(255, 255, 255, .3)), var(--marble) 38% 22% / 300px auto, #F7F6F8; box-shadow: 0 4px 12px rgba(40, 36, 46, .16), 0 0 0 .5px rgba(40, 36, 46, .14); }
[data-design="emerald"] .logo-mark.mono b { color: #24222A; text-shadow: 0 1px 0 rgba(255, 255, 255, .9), 0 -1px 0 rgba(40, 36, 46, .22); }
[data-design="ocean"] .logo-mark { border-radius: 50%; color: #CFE8FF; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none'%3E%3Ccircle cx='20' cy='20' r='19.3' stroke='%23D8EEFF' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='20' r='17.2' stroke='%236CC4FF' stroke-width='1.8' stroke-dasharray='.62 .9' opacity='.85'/%3E%3Ccircle cx='20' cy='20' r='15.1' stroke='%23B5E0FF' stroke-width='.45' opacity='.8'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat, radial-gradient(circle at 34% 28%, #13406F, #082447 58%, #031026); box-shadow: 0 4px 16px rgba(0, 0, 0, .45), 0 0 14px rgba(58, 168, 255, .22); }
[data-design="ocean"] .logo-mark.mono b { font-size: 1.3em; font-weight: 600; letter-spacing: -.02em; transform: none; }
[data-design="gold"] .logo-mark.img, [data-design="emerald"] .logo-mark.img, [data-design="ocean"] .logo-mark.img { background: var(--surface2); }

/* ---------- design cards (landing, registration, settings) ---------- */
.dc-name { letter-spacing: .005em; }
.design-card h3.dc-name { font-size: 1.45rem; margin-top: 4px; }
.dc-row b.dc-name { font-size: 1.2rem; }
.dmini .logo-mark.dm { width: 26px; height: 26px; border-radius: 8px; font-size: .62rem; }
.dmini[data-design="gold"] .logo-mark.dm { border-radius: 0; box-shadow: none; }
.dmini[data-design="ocean"] .logo-mark.dm { border-radius: 50%; }
.dmini[data-design="emerald"] .logo-mark.dm { border-radius: 4px; }
.dmini[data-design="gold"] .dm-fx, .dmini[data-design="emerald"] .dm-fx, .dmini[data-design="ocean"] .dm-fx { background: url("icons/th-mini.webp") 0 50% / 300% auto no-repeat; }
.dmini[data-design="gold"] .dm-fx { background-color: #0B0907; }
.dmini[data-design="emerald"] .dm-fx { background-position: 50% 50%; background-color: #F4F3F5; }
.dmini[data-design="ocean"] .dm-fx { background-position: 100% 50%; background-color: #020D1D; }
.dmini[data-design="gold"] .dm-fx::before { content: ""; position: absolute; inset: 0; background: rgba(6, 5, 4, .22); }
.dmini[data-design="gold"] .dm-fx i:nth-child(1) { top: -20%; bottom: -20%; left: -50%; width: 45%; border-radius: 0; background: linear-gradient(100deg, transparent, rgba(255, 220, 160, .12), transparent); transform: skewX(-12deg); animation: dmSheen 6s ease-in-out infinite; }
@keyframes dmSheen { 0%, 30% { transform: translateX(0) skewX(-12deg); } 80%, 100% { transform: translateX(400%) skewX(-12deg); } }
.dmini[data-design="emerald"] .dm-bars i { background: linear-gradient(180deg, #E6C27E, #B48A45); }
.dmini[data-design="emerald"] .dm-ring .fg { stroke: #B48A45; }
.dmini[data-design="ocean"] .dm-hero { backdrop-filter: blur(6px); }

/* ---------- living backgrounds: the picture, fixed behind the app ---------- */
[data-design="gold"] .bg-fx { background: url("icons/th-luxury.webp") 50% 50% / cover no-repeat, #0B0907; }
[data-design="emerald"] .bg-fx { background: url("icons/th-premium.webp") 50% 50% / cover no-repeat, #F4F3F5; }
[data-design="ocean"] .bg-fx { background: url("icons/th-elite.webp") 50% 50% / cover no-repeat, #020D1D; }
[data-design="gold"] .bg-fx::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 5, 4, .42) 0%, rgba(6, 5, 4, .16) 24%, rgba(6, 5, 4, 0) 42%), radial-gradient(120% 90% at 50% 45%, rgba(6, 5, 4, .28), rgba(6, 5, 4, .12) 70%); }
[data-design="emerald"] .bg-fx::before { content: ""; position: absolute; inset: 0; background: radial-gradient(110% 80% at 50% 45%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 70%); }
[data-design="ocean"] .bg-fx::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2, 8, 20, .45) 0%, rgba(2, 8, 20, .18) 24%, rgba(2, 8, 20, 0) 42%), radial-gradient(110% 80% at 50% 45%, rgba(2, 8, 20, .25), rgba(2, 8, 20, 0) 70%); }
[data-design="gold"] .bg-fx i, [data-design="emerald"] .bg-fx i, [data-design="ocean"] .bg-fx i { display: none; }
/* page titles sit straight on the picture: give them a halo so a bright streak never eats the words */
[data-design="gold"] .ph-text h1, [data-design="ocean"] .ph-text h1 { filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .8)); }
[data-design="gold"] .ph-text p, [data-design="ocean"] .ph-text p { color: var(--text); opacity: .82; text-shadow: 0 1px 3px rgba(0, 0, 0, .95), 0 0 14px rgba(0, 0, 0, .75); }
[data-design="emerald"] .ph-text h1, [data-design="emerald"] .ph-text p { text-shadow: 0 0 2px rgba(255, 255, 255, .9), 0 0 14px rgba(255, 255, 255, .95); }
/* a slow travelling light across the picture */
[data-design="gold"] .bg-fx i:nth-child(1), [data-design="ocean"] .bg-fx i:nth-child(1), [data-design="emerald"] .bg-fx i:nth-child(1) { display: block; top: -20%; bottom: -20%; left: -60%; width: 60%; border-radius: 0; transform: skewX(-12deg); animation: bgSheen 18s cubic-bezier(.5, 0, .3, 1) infinite; }
[data-design="gold"] .bg-fx i:nth-child(1) { background: linear-gradient(105deg, transparent 20%, rgba(255, 214, 150, .05) 44%, rgba(255, 214, 150, .085) 50%, rgba(255, 214, 150, .05) 56%, transparent 80%); }
[data-design="emerald"] .bg-fx i:nth-child(1) { background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, .28) 50%, transparent 80%); }
[data-design="ocean"] .bg-fx i:nth-child(1) { background: linear-gradient(105deg, transparent 20%, rgba(120, 200, 255, .05) 44%, rgba(120, 200, 255, .085) 50%, rgba(120, 200, 255, .05) 56%, transparent 80%); }
@keyframes bgSheen { 0%, 40% { transform: translateX(0) skewX(-12deg); } 80%, 100% { transform: translateX(300%) skewX(-12deg); } }

/* ---------- Luxury components ---------- */
[data-design="gold"] .ph-text h1, [data-design="gold"] .today-hero h1, [data-design="gold"] .gate-card h1, [data-design="gold"] .ck-state h1 { background: linear-gradient(100deg, #F5C877 0%, #FFF1CF 45%, #EDB55A 60%, #FFD992 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-design="gold"] .page-enter .ph-text h1, [data-design="gold"] .page-enter .today-hero h1 { animation: goldSweepText 1.6s .2s ease-out both; }
@keyframes goldSweepText { from { background-position: 100% 0; } to { background-position: 0 0; } }
[data-design="gold"] .btn.primary { background: linear-gradient(135deg, #FFE3A3, #F2B24E 52%, #B97A2A); color: #1A1006; box-shadow: 0 8px 24px rgba(245, 180, 81, .28), inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(100, 60, 15, .35); }
[data-design="gold"] .btn.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s ease; }
[data-design="gold"] .btn.primary:hover::after { transform: translateX(120%); }
[data-design="gold"] .kpi-v { color: #FFE2AE; }
[data-design="gold"] .card, [data-design="gold"] .kpi, [data-design="gold"] .emp-card, [data-design="gold"] .branch-card, [data-design="gold"] .task-card { box-shadow: inset 0 1px 0 rgba(255, 210, 140, .1), var(--shadow-sm); }
[data-design="gold"] .side { background: linear-gradient(180deg, rgba(245, 180, 81, .06), transparent 30%), rgba(10, 8, 6, .86); }
[data-design="gold"] .nav-i.on::before, [data-design="ocean"] .nav-i.on::before { background: var(--metal); }

/* ---------- Premium components ---------- */
[data-design="emerald"] .card, [data-design="emerald"] .kpi, [data-design="emerald"] .emp-card, [data-design="emerald"] .branch-card, [data-design="emerald"] .task-card, [data-design="emerald"] .news { box-shadow: var(--shadow-sm); }
[data-design="emerald"] .card:hover, [data-design="emerald"] .emp-card:hover, [data-design="emerald"] .branch-card:hover { box-shadow: var(--shadow); }
[data-design="emerald"] .btn.primary { background: linear-gradient(180deg, #2F2D33, #121115); color: #FBF7EE; box-shadow: inset 0 0 0 1px rgba(214, 172, 98, .6), 0 8px 22px rgba(24, 22, 30, .22); }
[data-design="emerald"] .btn.primary .ic { color: #EAC77F; }
[data-design="emerald"] .ring-fg, [data-design="emerald"] .area .line { stroke: #B48A45; }
[data-design="emerald"] .area-plot stop { stop-color: #C49A55 !important; }
[data-design="emerald"] .area-dot { background: #B48A45; box-shadow: 0 0 0 4px rgba(180, 138, 69, .22); }
[data-design="emerald"] .pbar i { background: linear-gradient(90deg, #9C7638, #DDB56D); }
[data-design="emerald"] .bar-t i:not(.good):not(.mid):not(.low) { background: linear-gradient(180deg, #E6C27E, #B48A45); }
[data-design="emerald"] .nav-i.on { background: rgba(180, 138, 69, .12); }
[data-design="emerald"] .nav-i.on::before { background: var(--metal); }
[data-design="emerald"] .nav-i.on .ic, [data-design="emerald"] .tab.on { color: #8E6A2E; }
[data-design="emerald"] .tab.on::before { background: rgba(180, 138, 69, .16); }
[data-design="emerald"] .side, [data-design="emerald"] .top, [data-design="emerald"] .tabbar { background: rgba(255, 255, 255, .82); }
[data-design="emerald"] input:not([type=checkbox]):not([type=radio]), [data-design="emerald"] textarea, [data-design="emerald"] select { background: #fff; }
[data-design="emerald"] .seg, [data-design="emerald"] .datenav { background: var(--surface2); }
[data-design="emerald"] .todo-i { background: #fff; }
[data-design="emerald"] .receipt { box-shadow: 0 10px 30px rgba(40, 36, 46, .12); border: 1px solid #ECEAEE; }
[data-design="emerald"] .modal-wrap .receipt { background: #FFFDF8; }
[data-design="emerald"] .submit-bar, [data-design="emerald"] .burst-card { background: #fff; }
[data-design="emerald"] .modal-backdrop { background: rgba(30, 28, 36, .32); }
[data-design="emerald"] .modal { background: #FCFCFD; }
[data-design="emerald"] .toast { background: #1E1D21; color: #FBF7EE; }
[data-design="emerald"] .brand-wm { --wm-sub: #141B3D; }

/* ---------- Elite components ---------- */
[data-design="ocean"] .btn.primary { background: linear-gradient(135deg, #A6DEFF, #3AA8FF 50%, #1E78D8); color: #031326; box-shadow: 0 8px 26px rgba(50, 167, 251, .35), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(5, 40, 90, .35); }
[data-design="ocean"] .btn.primary:hover { box-shadow: 0 8px 30px rgba(50, 167, 251, .5), inset 0 1px 0 rgba(255, 255, 255, .6); }
[data-design="ocean"] .kpi-v { color: #D6ECFF; }
[data-design="ocean"] .ph-text h1, [data-design="ocean"] .today-hero h1, [data-design="ocean"] .gate-card h1 { color: #EEF6FF; text-shadow: 0 0 22px rgba(50, 167, 251, .25); }
[data-design="ocean"] .card, [data-design="ocean"] .kpi, [data-design="ocean"] .emp-card, [data-design="ocean"] .branch-card, [data-design="ocean"] .task-card { box-shadow: inset 0 1px 0 rgba(150, 210, 255, .1), var(--shadow-sm); }
[data-design="ocean"] .ring-fg { filter: drop-shadow(0 0 4px rgba(58, 168, 255, .55)); }
[data-design="ocean"] .side { background: linear-gradient(180deg, rgba(58, 168, 255, .06), transparent 30%), rgba(2, 10, 24, .86); }
[data-design="ocean"] .page-enter .stagger > * { animation-name: riseScale; }

/* ================= Splash screens ================= */
.splash .sp-sub { animation: none; font-family: 'BCP Inter', 'Onest', system-ui, sans-serif; font-weight: 600; }
.splash.go .sp-sub { animation: fadeUp .8s 2.75s ease forwards; }
.sp-img { display: block; object-fit: cover; }
@keyframes fadeTo1 { to { opacity: 1; } }
@keyframes fadeTo0 { to { opacity: 0; } }
@keyframes dash0 { to { stroke-dashoffset: 0; } }
@keyframes clipOpen { to { clip-path: inset(0 0 0 0); } }
@keyframes ruleIn { to { transform: scaleX(1); } }
@keyframes glintX { to { transform: translateX(420%) skewX(-18deg); } }
@keyframes sweepX3 { to { transform: translateX(340%) skewX(-14deg); } }
/* every opening sits on its design's picture; at the end only the splash fades, the app shows the same picture */
.sp-lux, .sp-prm, .sp-eli { background-position: 50% 50%; background-size: cover; background-repeat: no-repeat; transition: opacity .9s ease .15s; }
.sp-lux { background-image: url("icons/th-luxury.webp"); background-color: #0B0907; }
.sp-prm { background-image: url("icons/th-premium.webp"); background-color: #F4F3F5; }
.sp-eli { background-image: url("icons/th-elite.webp"); background-color: #020D1D; }
.sp-veil { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sp-lux .sp-veil { background: #050403; }
.sp-prm .sp-veil { background: #FCFCFD; }
.sp-eli .sp-veil { background: #01060F; }
.splash.go .sp-veil { animation: fadeTo0 1.3s .3s cubic-bezier(.4, 0, .2, 1) forwards; }
.sp-sheen { position: absolute; z-index: 1; top: -20%; bottom: -20%; left: -70%; width: 55%; transform: skewX(-14deg); pointer-events: none; }
.sp-lux .sp-sheen { background: linear-gradient(100deg, transparent 15%, rgba(255, 214, 150, .07) 42%, rgba(255, 224, 170, .16) 50%, rgba(255, 214, 150, .07) 58%, transparent 85%); }
.sp-prm .sp-sheen { background: linear-gradient(100deg, transparent 15%, rgba(255, 255, 255, .55) 50%, transparent 85%); mix-blend-mode: overlay; }
.sp-eli .sp-sheen { background: linear-gradient(100deg, transparent 15%, rgba(120, 200, 255, .07) 42%, rgba(150, 215, 255, .15) 50%, rgba(120, 200, 255, .07) 58%, transparent 85%); mix-blend-mode: screen; }
.splash.go .sp-sheen { animation: sweepX3 1.6s 1.2s cubic-bezier(.45, 0, .25, 1) forwards; }
.sp-lux.out, .sp-prm.out, .sp-eli.out { opacity: 0; }

/* the picture's own light lines ignite: a bright head runs along each, leaving a glowing trace that melts into the picture */
.sp-lights { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.sp-lights path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.lt-line, .lt-glow { stroke-dasharray: 1 2; stroke-dashoffset: 1.01; }
.lt-head, .lt-hglow { stroke-dasharray: .05 2; stroke-dashoffset: .05; opacity: 0; }
.lt-line { stroke-width: 1.4; }
.lt-glow { stroke-width: 7; opacity: .32; }
.lt-head { stroke-width: 2.6; }
.lt-hglow { stroke-width: 13; }
.splash.go .lt-line, .splash.go .lt-glow { animation: dash0 var(--du) var(--dl) cubic-bezier(.55, 0, .25, 1) forwards, ltOut 1s calc(var(--dl) + var(--du) + .4s) ease forwards; }
.splash.go .lt-head, .splash.go .lt-hglow { animation: ltRun var(--du) var(--dl) cubic-bezier(.55, 0, .25, 1) forwards; }
@keyframes ltRun { 0% { stroke-dashoffset: .05; opacity: 0; } 10% { opacity: 1; } 82% { opacity: 1; } 100% { stroke-dashoffset: -1; opacity: 0; } }
@keyframes ltOut { to { opacity: 0; } }
.sp-lux .lt-line { stroke: #FFD58A; }
.sp-lux .lt-glow { stroke: #F5B451; }
.sp-lux .lt-head { stroke: #FFF6E0; }
.sp-lux .lt-hglow { stroke: rgba(255, 196, 110, .5); }
.sp-prm .lt-line { stroke: #E2B868; }
.sp-prm .lt-glow { stroke: #F1D193; opacity: .5; }
.sp-prm .lt-head { stroke: #FFFFFF; }
.sp-prm .lt-hglow { stroke: rgba(236, 192, 110, .55); }
.sp-eli .lt-line { stroke: #8FD6FF; }
.sp-eli .lt-glow { stroke: #2F9BFF; opacity: .42; }
.sp-eli .lt-head { stroke: #F2FAFF; }
.sp-eli .lt-hglow { stroke: rgba(80, 175, 255, .55); }

/* Luxury: the gold edges ignite, the crown flares, the floor glows; then the octagon and the letter are engraved in gold */
.sp-lux { color: #F3E7CC; font-family: 'BCP Lora', Georgia, serif; }
.lx-crown, .lx-floor { transform-box: fill-box; transform-origin: center; opacity: 0; }
.lx-crown { transform: scale(.2); }
.splash.go .lx-crown { animation: lxCrown 1.5s 1.1s ease-out forwards; }
@keyframes lxCrown { 0% { opacity: 0; transform: scale(.2) rotate(0); } 30% { opacity: 1; transform: scale(1) rotate(8deg); } 100% { opacity: 0; transform: scale(1.45) rotate(22deg); } }
.lx-floor { transform: scaleX(.2); }
.splash.go .lx-floor { animation: lxFloor 1.7s .75s ease-out forwards; }
@keyframes lxFloor { 0% { opacity: 0; transform: scaleX(.2); } 35% { opacity: .95; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(1.15); } }
.lx-core { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 20px; transition: opacity .45s ease, transform .9s ease; }
.lx-emblem { position: relative; width: 168px; height: 168px; }
.lx-emblem::before { content: ""; position: absolute; inset: 6%; clip-path: polygon(28% 0, 72% 0, 100% 28%, 100% 72%, 72% 100%, 28% 100%, 0 72%, 0 28%); background: radial-gradient(circle at 50% 40%, rgba(20, 16, 12, .55), rgba(8, 6, 4, .8)); opacity: 0; }
.sp-lux.go .lx-emblem::before { animation: fadeTo1 .8s 1s ease forwards; }
.lx-emblem svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lx-emblem .o1, .lx-emblem .o2 { fill: none; stroke: url(#lxg); stroke-dasharray: 1 2; stroke-dashoffset: 1.01; }
.lx-emblem .o1 { stroke-width: 2.4; }
.lx-emblem .o2 { stroke-width: .9; opacity: .7; }
.sp-lux.go .lx-emblem .o1 { animation: dash0 1s .95s cubic-bezier(.6, .1, .2, 1) forwards; }
.sp-lux.go .lx-emblem .o2 { animation: dash0 1s 1.15s cubic-bezier(.6, .1, .2, 1) forwards; }
.lx-l { font-family: 'BCP Lora', Georgia, serif; font-weight: 600; font-size: 118px; fill: url(#lxg); fill-opacity: 0; stroke: url(#lxg); stroke-width: 1.1; stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.sp-lux.go .lx-l { animation: dash0 1.3s 1.4s ease-in-out forwards, lxFill .8s 2.05s ease forwards; }
@keyframes lxFill { to { fill-opacity: 1; stroke-opacity: .35; } }
.lx-emblem .sp-img { position: absolute; inset: 17%; width: 66%; height: 66%; clip-path: polygon(28% 0, 72% 0, 100% 28%, 100% 72%, 72% 100%, 28% 100%, 0 72%, 0 28%); opacity: 0; }
.sp-lux.go .lx-emblem .sp-img { animation: fadeTo1 .8s 1.7s ease forwards; }
.lx-glint { position: absolute; inset: 0; overflow: hidden; clip-path: polygon(28% 0, 72% 0, 100% 28%, 100% 72%, 72% 100%, 28% 100%, 0 72%, 0 28%); pointer-events: none; }
.lx-glint::before { content: ""; position: absolute; top: -10%; bottom: -10%; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 240, 205, .5), transparent); transform: skewX(-18deg); }
.sp-lux.go .lx-glint::before { animation: glintX .9s 2.75s ease-in-out forwards; }
.lx-rule { position: absolute; top: 50%; width: min(30vw, 260px); height: 1px; transform: scaleX(0); }
.lx-rule.l { right: calc(100% + 16px); transform-origin: 100% 50%; background: linear-gradient(90deg, rgba(245, 180, 81, 0), rgba(255, 210, 140, .9)); }
.lx-rule.r { left: calc(100% + 16px); transform-origin: 0 50%; background: linear-gradient(270deg, rgba(245, 180, 81, 0), rgba(255, 210, 140, .9)); }
.sp-lux.go .lx-rule { animation: ruleIn .9s 1.55s cubic-bezier(.2, .8, .2, 1) forwards; }
.sp-lux .sp-title { font-family: 'BCP Lora', Georgia, serif; font-style: italic; font-weight: 600; font-size: clamp(2rem, 1.1rem + 4.4vw, 3.5rem); line-height: 1.08; letter-spacing: .24em; color: transparent; background: linear-gradient(180deg, #FFF6DC 0%, #F5C877 55%, #B97A2A 100%); -webkit-background-clip: text; background-clip: text; filter: blur(6px) drop-shadow(0 2px 10px rgba(0, 0, 0, .6)); opacity: 0; }
.sp-lux.go .sp-title { animation: lxTitle 1.15s 1.95s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes lxTitle { to { letter-spacing: .01em; opacity: 1; filter: blur(0) drop-shadow(0 2px 10px rgba(0, 0, 0, .6)); } }
.sp-lux .sp-sub { color: #E2B66A; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.sp-lux.out .lx-core { opacity: 0; transform: scale(1.06); }

/* Premium: the gold ribbons are drawn in light, a soft bloom opens the centre, a marble plaque is carved and gilded */
.sp-prm { color: #1E1D21; font-family: 'BCP Lora', Georgia, serif; }
.pr-bloom { position: absolute; z-index: 1; left: 50%; top: 46%; width: 130vmin; height: 130vmin; transform: translate(-50%, -50%) scale(.55); background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(255, 255, 255, .55) 30%, rgba(255, 255, 255, 0) 62%); opacity: 0; pointer-events: none; }
.sp-prm.go .pr-bloom { animation: prBloom 1.6s .95s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes prBloom { to { opacity: .8; transform: translate(-50%, -50%) scale(1); } }
.pr-core { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 20px; transition: opacity .45s ease, transform .9s ease; }
.pr-emblem { position: relative; display: grid; place-items: center; width: 150px; height: 150px; overflow: hidden; background: var(--marble) 18% 64% / 720px auto, #F7F6F8; box-shadow: 0 18px 40px rgba(40, 36, 46, .2), 0 2px 6px rgba(40, 36, 46, .12), inset 0 0 0 1px rgba(255, 255, 255, .6); opacity: 0; transform: translateY(14px) scale(.96); }
.sp-prm.go .pr-emblem { animation: prRise .9s 1.05s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes prRise { to { opacity: 1; transform: none; } }
.pr-emblem svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pr-emblem .f1, .pr-emblem .f2 { fill: none; stroke: url(#prg); stroke-dasharray: 1 2; stroke-dashoffset: 1.01; }
.pr-emblem .f1 { stroke-width: 2.4; }
.pr-emblem .f2 { stroke-width: 1; opacity: .8; }
.sp-prm.go .pr-emblem .f1 { animation: dash0 1.1s 1.2s cubic-bezier(.6, .1, .2, 1) forwards; }
.sp-prm.go .pr-emblem .f2 { animation: dash0 1.1s 1.4s cubic-bezier(.6, .1, .2, 1) forwards; }
.pr-carve, .pr-gild { grid-area: 1 / 1; font-family: 'BCP Lora', Georgia, serif; font-weight: 500; font-size: 96px; line-height: 1; }
.pr-carve { color: rgba(50, 44, 40, .16); text-shadow: 0 1.5px 1px rgba(255, 255, 255, .95), 0 -1px 1px rgba(30, 26, 22, .35); clip-path: inset(0 0 100% 0); }
.pr-gild { color: transparent; background: linear-gradient(160deg, #FAE6B6 0%, #E2B464 40%, #9C7436 62%, #F0CF8A 100%); -webkit-background-clip: text; background-clip: text; clip-path: inset(100% 0 0 0); }
.sp-prm.go .pr-carve { animation: clipOpen .6s 1.6s ease forwards; }
.sp-prm.go .pr-gild { animation: clipOpen .85s 2.15s cubic-bezier(.5, 0, .3, 1) forwards; }
.pr-emblem .sp-img { position: absolute; inset: 16%; width: 68%; height: 68%; opacity: 0; }
.sp-prm.go .pr-emblem .sp-img { animation: fadeTo1 .8s 1.7s ease forwards; }
.pr-glint { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.pr-glint::before { content: ""; position: absolute; top: -10%; bottom: -10%; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent); transform: skewX(-18deg); }
.sp-prm.go .pr-glint::before { animation: glintX .9s 2.9s ease-in-out forwards; }
.sp-prm .sp-title { font-family: 'BCP Lora', Georgia, serif; font-weight: 500; font-size: clamp(1.9rem, 1.1rem + 4.2vw, 3.3rem); line-height: 1.1; letter-spacing: .03em; color: #1E1D21; -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 55%); mask-image: linear-gradient(90deg, #000 45%, transparent 55%); -webkit-mask-size: 260% 100%; mask-size: 260% 100%; -webkit-mask-position: 100% 0; mask-position: 100% 0; }
.sp-prm.go .sp-title { animation: wipeIn 1.1s 2.25s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes wipeIn { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
.sp-prm .sp-sub { color: #94753F; }
.sp-prm.out .pr-core { opacity: 0; transform: scale(1.05); }

/* Elite: the blue ribbons light up, two rings of light close around the seal, a flare crosses it as it lands */
.sp-eli { color: #EAF3FF; font-family: 'BCP Inter Display', 'BCP Inter', system-ui, sans-serif; }
.el-core { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 12px; transition: transform .9s cubic-bezier(.7, 0, .3, 1), opacity .7s ease; }
.el-mark { position: relative; display: grid; place-items: center; width: 220px; height: 220px; }
.el-rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); }
.el-rings circle { fill: none; vector-effect: non-scaling-stroke; }
.el-rings .r1, .el-rings .r2 { stroke-dasharray: 1 2; stroke-dashoffset: 1.01; }
.el-rings .r1 { stroke: #7FD0FF; stroke-width: 1.2; opacity: .75; }
.el-rings .r2 { stroke: #3AA8FF; stroke-width: 1; opacity: .6; }
.el-rings .r3 { stroke: #F2FAFF; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: .1 .9; stroke-dashoffset: 0; opacity: 0; filter: drop-shadow(0 0 4px rgba(80, 180, 255, .9)); }
.sp-eli.go .el-rings .r1 { animation: dash0 1s 1s cubic-bezier(.6, .1, .2, 1) forwards; }
.sp-eli.go .el-rings .r2 { animation: dash0 1s 1.15s cubic-bezier(.6, .1, .2, 1) forwards; }
.sp-eli.go .el-rings .r3 { animation: elComet 1.7s 1s cubic-bezier(.3, 0, .2, 1) forwards; }
@keyframes elComet { 0% { opacity: 0; stroke-dashoffset: 0; } 12% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; stroke-dashoffset: -2; } }
.el-flare { position: absolute; left: 50%; top: 50%; width: min(130vw, 760px); height: 2px; border-radius: 2px; transform: translate(-50%, -50%) scaleX(0); background: linear-gradient(90deg, transparent, rgba(150, 215, 255, .9) 44%, #FFFFFF 50%, rgba(150, 215, 255, .9) 56%, transparent); box-shadow: 0 0 18px rgba(80, 180, 255, .8); opacity: 0; pointer-events: none; }
.sp-eli.go .el-flare { animation: elFlare .95s 1.5s ease-out forwards; }
@keyframes elFlare { 0% { opacity: 0; transform: translate(-50%, -50%) scaleX(0); } 35% { opacity: 1; transform: translate(-50%, -50%) scaleX(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scaleX(1.1); } }
.el-seal { position: relative; display: grid; place-items: center; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #164A80, #0A2850 58%, #03122A); box-shadow: 0 0 0 1px rgba(160, 215, 255, .3), 0 20px 50px rgba(0, 0, 0, .6), 0 0 40px rgba(58, 168, 255, .28), inset 0 0 30px rgba(0, 0, 0, .45); opacity: 0; transform: scale(1.7) rotate(-14deg); }
.sp-eli.go .el-seal { animation: elStamp .62s 1.3s cubic-bezier(.3, 1.4, .5, 1) forwards; }
@keyframes elStamp { 0% { opacity: 0; transform: scale(1.7) rotate(-14deg); } 60% { opacity: 1; transform: scale(.94) rotate(2deg); } 100% { opacity: 1; transform: none; } }
.el-seal svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.el-seal circle { fill: none; }
.el-seal .s1 { stroke: #D8EEFF; stroke-width: 2.4; }
.el-seal .s2 { stroke: #6CC4FF; stroke-width: 6; stroke-dasharray: 1.6 2.6; opacity: .8; }
.el-seal .s3 { stroke: #B5E0FF; stroke-width: 1; opacity: .75; }
.el-l { position: relative; font-family: 'BCP Inter Display', 'BCP Inter', system-ui, sans-serif; font-weight: 600; font-size: 70px; line-height: 1; letter-spacing: -.02em; color: transparent; background: linear-gradient(160deg, #FFFFFF 0%, #D2EAFF 40%, #6DB8F2 68%, #EAF6FF 100%); -webkit-background-clip: text; background-clip: text; }
.el-seal .sp-img { width: 62%; height: 62%; border-radius: 50%; }
.el-pulse { position: absolute; inset: -2px; border-radius: 50%; border: 1.5px solid rgba(140, 210, 255, .9); opacity: 0; pointer-events: none; }
.sp-eli.go .el-pulse { animation: elPulse 1s 1.6s ease-out forwards; }
@keyframes elPulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.3); } }
.el-glint { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; pointer-events: none; }
.el-glint::before { content: ""; position: absolute; top: -10%; bottom: -10%; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(230, 245, 255, .5), transparent); transform: skewX(-18deg); }
.sp-eli.go .el-glint::before { animation: glintX .9s 2.5s ease-in-out forwards; }
.sp-eli .sp-title { font-weight: 600; font-size: clamp(1.8rem, 1rem + 4vw, 3.1rem); line-height: 1.1; letter-spacing: -.015em; color: #EEF6FF; text-shadow: 0 0 4px #020D1D, 0 0 14px #020D1D, 0 0 26px rgba(50, 167, 251, .35); opacity: 0; transform: translateY(10px); }
.sp-eli.go .sp-title { animation: elRise .9s 1.95s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes elRise { to { opacity: 1; transform: none; } }
.el-orn { display: flex; align-items: center; gap: 10px; }
.el-orn i { width: 84px; height: 1px; background: linear-gradient(90deg, transparent, #8FD0FF); transform: scaleX(0); transform-origin: 100% 50%; }
.el-orn i:last-child { background: linear-gradient(270deg, transparent, #8FD0FF); transform-origin: 0 50%; }
.el-orn b { width: 7px; height: 7px; background: #8FD0FF; box-shadow: 0 0 8px rgba(80, 180, 255, .8); transform: rotate(45deg) scale(0); }
.sp-eli.go .el-orn i { animation: ruleIn .8s 2.25s cubic-bezier(.2, .8, .2, 1) forwards; }
.sp-eli.go .el-orn b { animation: elDiamond .5s 2.2s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes elDiamond { to { transform: rotate(45deg) scale(1); } }
.sp-eli .sp-sub { color: #8FD0FF; }
.sp-eli.out .el-core { transform: scale(2.4); opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .sp-lux .sp-title, .sp-prm .sp-title, .sp-eli .sp-title { letter-spacing: .01em; filter: none; opacity: 1; transform: none; -webkit-mask-image: none; mask-image: none; }
  .sp-veil, .sp-lights { opacity: 0; }
  .lx-l { fill-opacity: 1; stroke-dashoffset: 0; }
  .pr-carve, .pr-gild { clip-path: none; }
  .pr-emblem, .el-seal, .sp-sub, .lx-emblem::before { opacity: 1; transform: none; }
}

/* ===== v1.9: customer debts, payroll ===== */
.role-client { --rc: var(--info); }
.avatar.sm { width: 30px; height: 30px; border-radius: 10px; font-size: .72rem; }
.btn.ok-soft { --b-bg: color-mix(in srgb, var(--ok) 14%, transparent); --b-fg: var(--ok); border-color: color-mix(in srgb, var(--ok) 28%, transparent); }
.btn.soft.wa, .btn.wa.soft { --b-bg: #1FAF5A; --b-fg: #fff; border-color: transparent; }
.icon-btn.ok { color: var(--ok); }
.icon-btn.ok:hover { background: color-mix(in srgb, var(--ok) 12%, transparent); }
.icon-btn.wa { color: #1FAF5A; }
.icon-btn.wa:hover { background: rgba(31, 175, 90, .12); }
.seg.wrap4 { display: flex; flex-wrap: wrap; }
.seg.wrap4 .seg-i { flex: 1 1 auto; }
.seg .seg-i b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 99px; font-size: .72rem; background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); }
.input-suffix.big input { font-size: 1.5rem; font-weight: 700; min-height: 56px; }
.card-head.sm { margin: 16px 0 8px; }
.card-head.sm h2 { font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.card-head h2 .ic { width: 19px; height: 19px; color: var(--primary); }

.debt-list { list-style: none; margin: 0; padding: 0; }
.debt-list > li { display: flex; align-items: center; gap: 4px; padding: 4px 10px 4px 4px; }
.debt-list > li + li { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.debt.is-over { background: linear-gradient(90deg, color-mix(in srgb, var(--bad) 7%, transparent), transparent 65%); }
.db-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 8px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 12px; position: relative; overflow: hidden; }
.db-main:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.db-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.db-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-t small { color: var(--muted); font-size: .78rem; display: flex; align-items: center; gap: 4px; overflow-wrap: anywhere; }
.db-t small.bad-t { color: var(--bad); font-weight: 600; }
.db-t small .ic { width: 14px; height: 14px; flex: none; }
.db-bal { display: grid; justify-items: end; gap: 1px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.db-bal small { color: var(--muted); font-size: .72rem; }
.debt.is-zero .db-t b { color: var(--muted); }
.db-act { display: flex; gap: 2px; flex: none; }
@media (max-width: 520px) { .debt-list > li { flex-wrap: wrap; padding: 2px 6px 8px; } .db-act { width: 100%; justify-content: flex-end; margin-top: -6px; } }

.cl-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.cl-head > div { flex: 1; min-width: 0; }
.cl-head h4 { font-size: 1.1rem; margin: 0 0 2px; }
.cl-head p { margin: 0; font-size: .85rem; }
.cl-bal { display: grid; gap: 4px; padding: 16px 18px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); background: color-mix(in srgb, var(--text) 4%, transparent); }
.cl-bal > span { color: var(--muted); font-size: .82rem; }
.cl-bal > b { font-size: 1.9rem; font-variant-numeric: tabular-nums; line-height: 1.15; }
.cl-bal small { color: var(--muted); font-size: .8rem; display: flex; align-items: center; gap: 6px; }
.cl-bal small .ic { width: 15px; height: 15px; }
.cl-bal.debt > b { color: var(--bad); }
.cl-bal.over { border-color: color-mix(in srgb, var(--bad) 40%, transparent); background: color-mix(in srgb, var(--bad) 8%, transparent); }
.cl-bal.over > b, .cl-bal.over small:first-of-type { color: var(--bad); }
.cl-bal.zero > b { color: var(--ok); }
.cl-actions { justify-content: flex-start; margin-top: 14px; }
.cl-foot { justify-content: flex-start; margin-top: 16px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.dop-list { list-style: none; margin: 0; padding: 0; }
.dop { display: flex; align-items: center; gap: 12px; padding: 10px 2px; }
.dop + .dop { border-top: 1px solid color-mix(in srgb, var(--line) 50%, transparent); }
.dop-ic { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 11px; color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.dop-pay .dop-ic, .dop-ic.c-ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); }
.dop-ic.c-bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.dop-ic.c-info { color: var(--info); background: color-mix(in srgb, var(--info) 13%, transparent); }
.dop-ic .ic { width: 18px; height: 18px; }
.dop-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.dop-main small { color: var(--muted); font-size: .76rem; overflow-wrap: anywhere; }
.dop-a { white-space: nowrap; font-variant-numeric: tabular-nums; }

.pay-list { list-style: none; margin: 0; padding: 0; }
.pay-list li + li { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.pay-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; position: relative; overflow: hidden; }
.pay-row:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.py-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.py-main small { color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.py-main small.warn-t { color: var(--warn); }
.py-sum { display: grid; justify-items: end; gap: 3px; text-align: right; font-variant-numeric: tabular-nums; }
.py-sum b { font-size: 1.02rem; white-space: nowrap; }
.py-sum small { color: var(--muted); font-size: .74rem; white-space: nowrap; }
.pay-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pay-lines li { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed color-mix(in srgb, var(--line) 70%, transparent); }
.pay-lines li > span { display: grid; gap: 1px; min-width: 0; }
.pay-lines li small { color: var(--muted); font-size: .78rem; }
.pay-lines .pl-v { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pay-lines .pl-minus .pl-v { color: var(--bad); }
.pay-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0 4px; font-weight: 700; }
.pay-total b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pay-total.big { margin-top: 10px; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--primary) 12%, transparent); }
.pay-total.big b { font-size: 1.45rem; }
.pay-total.paid { background: color-mix(in srgb, var(--ok) 13%, transparent); }
.pay-total.paid b { color: var(--ok); }
.pay-days { margin-top: 14px; }
.pay-days summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--primary); }
.pay-days ul { list-style: none; margin: 8px 0 0; padding: 0; }
.pay-days li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 2px 12px; padding: 7px 0; font-size: .86rem; border-bottom: 1px solid color-mix(in srgb, var(--line) 45%, transparent); }
.pay-days li small { grid-column: 1 / -1; font-size: .76rem; }
.pay-days li.abs { color: var(--muted); }
.pay-days li b { font-variant-numeric: tabular-nums; }
.my-pay .pay-lines { margin-bottom: 4px; }
.help-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.help-list li { display: flex; gap: 12px; align-items: flex-start; }
.help-list li > .ic { width: 22px; height: 22px; flex: none; color: var(--primary); margin-top: 1px; }

/* ===== v2.0: barcode scanner, shelf life, orders ===== */
.search-scan { display: flex; gap: 6px; align-items: center; flex: 1 1 260px; min-width: 0; }
.search-scan .search { flex: 1; min-width: 0; }
.scan-btn { flex: none; border: 1px solid var(--line); width: 42px; height: 42px; color: var(--primary); }
.input-btn.sel .select { flex: 1; min-width: 0; }
.scan-modal .modal-body { display: grid; gap: 10px; }
.scan-box { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: #000; }
.scan-box video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; inset: 18% 8%; border-radius: 16px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .38); border: 2px solid rgba(255, 255, 255, .85); pointer-events: none; }
.scan-frame i { position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; background: #ff4d4d; box-shadow: 0 0 12px #ff4d4d; animation: scanline 1.8s ease-in-out infinite; }
@keyframes scanline { 0%, 100% { transform: translateY(-38px); } 50% { transform: translateY(38px); } }
@media (prefers-reduced-motion: reduce) { .scan-frame i { animation: none; } }
.scan-msg { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 8px; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, .62); color: #fff; font-size: .85rem; text-align: center; }
.scan-msg .ic { width: 18px; height: 18px; flex: none; }
.scan-msg.warn { background: rgba(160, 60, 20, .85); }
.scan-manual { display: flex; gap: 8px; }
.scan-manual input { flex: 1; min-width: 0; }
#sc-torch.on { color: var(--warn); }
.hint.center { text-align: center; }
.exp-b { display: inline-flex; align-items: center; gap: 4px; width: fit-content; max-width: 100%; margin-top: 4px; padding: 3px 9px; border-radius: 11px; font-size: .74rem; font-weight: 600; line-height: 1.25; }
.exp-b .ic { width: 13px; height: 13px; }
.exp-b.exp-over { color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); }
.exp-b.exp-soon { color: var(--warn); background: color-mix(in srgb, var(--warn) 15%, transparent); }
.exp-b.exp-ok { color: var(--muted); background: color-mix(in srgb, var(--text) 7%, transparent); }
button.alert { width: 100%; font: inherit; text-align: left; cursor: pointer; }
.ph-actions .btn .badge { position: static; margin-left: 2px; }
.ord-group .card-head h2 { display: flex; align-items: center; gap: 8px; }
.ord-list { list-style: none; margin: 0 0 6px; padding: 0; }
.ord-i { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.ord-i + .ord-i { border-top: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.ord-on input { width: 20px; height: 20px; accent-color: var(--primary); }
.ord-on span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ord-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ord-main small { color: var(--muted); font-size: .78rem; }
.ord-q { display: flex; align-items: center; gap: 6px; }
.ord-q input { width: 74px; min-height: 40px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; padding: 6px; }
.ord-q small { color: var(--muted); font-size: .78rem; min-width: 22px; }
.ord-actions { display: flex; gap: 8px; }
.ord-actions .btn { flex: 1; }
.ord-actions .ord-copy { flex: none; width: 46px; height: 46px; border: 1px solid var(--line); }
.scan-res { display: grid; gap: 10px; }
.sr-price { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--primary) 12%, transparent); }
.sr-price span { color: var(--muted); }
.sr-price b { font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.sr-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 2px; border-bottom: 1px dashed color-mix(in srgb, var(--line) 70%, transparent); }
.sr-row > span { color: var(--muted); font-size: .9rem; }
.sr-row .exp-b { margin: 0; }
.kpi-tap { color: inherit; text-decoration: none; cursor: pointer; transition: border-color .2s ease, transform .18s var(--ease); -webkit-tap-highlight-color: transparent; }
.kpi-tap > .ic { position: absolute; top: 14px; right: 12px; width: 18px; height: 18px; color: var(--muted); }
.kpi-tap .kpi-s { color: var(--primary); font-weight: 600; }
.kpi-tap:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.kpi-tap:active { transform: scale(.98); }
.kpi-tap:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.sr-acts { flex: 1 1 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sr-acts .btn { min-width: 0; }
.exp-slot { display: block; }
.exp-slot:empty { display: none; }
.exp-slot .exp-b { margin: 2px 0 6px; }

/* ===== v2.1: presence checks during a shift ===== */
.chk-bar { position: fixed; z-index: 890; left: 50%; top: calc(10px + env(safe-area-inset-top)); transform: translateX(-50%); width: min(520px, calc(100% - 20px)); display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 18px; background: color-mix(in srgb, var(--info, #3b82f6) 22%, var(--surface, #15151a)); border: 1px solid color-mix(in srgb, var(--info, #3b82f6) 55%, transparent); color: var(--text); box-shadow: 0 14px 40px rgba(0, 0, 0, .45); backdrop-filter: blur(14px); animation: chkIn .45s var(--ease) both; }
.chk-bar > .ic { width: 24px; height: 24px; flex: none; color: var(--info, #60a5fa); }
.chk-bar > span { flex: 1; min-width: 0; display: grid; gap: 1px; }
.chk-bar b { font-size: .92rem; }
.chk-bar small { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.chk-bar .btn { flex: none; }
.chk-bar[data-st="far"] { background: color-mix(in srgb, var(--bad) 20%, var(--surface, #15151a)); border-color: color-mix(in srgb, var(--bad) 50%, transparent); }
.chk-bar[data-st="far"] > .ic { color: var(--bad); }
@keyframes chkIn { from { opacity: 0; transform: translate(-50%, -16px); } }
@media (prefers-reduced-motion: reduce) { .chk-bar { animation: none; } }
.chk-alert { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 4px 0 2px; }
.chk-alert .chk-ic { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--primary); box-shadow: 0 0 0 10px color-mix(in srgb, var(--primary) 7%, transparent); animation: chkPulse 1.6s ease-in-out infinite; }
.chk-alert .chk-ic .ic { width: 36px; height: 36px; }
@keyframes chkPulse { 50% { box-shadow: 0 0 0 18px color-mix(in srgb, var(--primary) 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { .chk-alert .chk-ic { animation: none; } }
.chk-alert h3 { font-size: 1.15rem; }
.chk-alert p { color: var(--muted); font-size: .92rem; max-width: 34ch; }
.chk-left { margin-top: 4px; padding: 8px 16px; border-radius: 12px; background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--muted); }
.chk-left b { color: var(--text); font-size: 1.25rem; font-variant-numeric: tabular-nums; margin-left: 4px; }
.cf-ok.far { color: var(--warn); }
.chk-sec { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.chk-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.chk-h h4 { display: flex; align-items: center; gap: 8px; font-size: .98rem; }
.chk-h h4 .ic { width: 18px; height: 18px; color: var(--primary); }
.chk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.chk-i { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.chk-i + .chk-i { border-top: 1px dashed color-mix(in srgb, var(--line) 70%, transparent); }
.chk-dot { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--muted); }
.chk-dot .ic { width: 18px; height: 18px; }
.chk-ok .chk-dot { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.chk-bad .chk-dot { color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); }
.chk-warn .chk-dot { color: var(--warn); background: color-mix(in srgb, var(--warn) 15%, transparent); }
.chk-info .chk-dot { color: var(--info, #60a5fa); background: color-mix(in srgb, var(--info, #60a5fa) 15%, transparent); }
.att-ph.mini { flex: none; width: 40px; height: 40px; border-radius: 12px; object-fit: cover; cursor: zoom-in; }
.chk-m { min-width: 0; display: grid; gap: 2px; }
.chk-m b { font-size: .9rem; font-weight: 650; }
.chk-m b em { font-style: normal; font-weight: 500; color: var(--muted); font-size: .8rem; }
.chk-ok .chk-m b { color: var(--ok); }
.chk-bad .chk-m b { color: var(--bad); }
.chk-warn .chk-m b { color: var(--warn); }
.chk-m small { color: var(--muted); font-size: .8rem; }
.chk-empty { font-size: .88rem; }
.ar-chk { flex: none; display: inline-flex; align-items: center; gap: 3px; padding: 3px 7px; border-radius: 99px; font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ar-chk .ic { width: 13px; height: 13px; }
.ar-chk.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); }
.ar-chk.bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); }
.ar-chk.info { color: var(--info, #60a5fa); background: color-mix(in srgb, var(--info, #60a5fa) 14%, transparent); }
.chk-own { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card-bg); backdrop-filter: var(--glass); }
.chk-own > span { display: flex; align-items: center; gap: 10px; min-width: 0; }
.chk-own > span > .ic { width: 22px; height: 22px; flex: none; color: var(--primary); }
.chk-own > span > span { display: grid; gap: 1px; }
.chk-own small { color: var(--muted); font-size: .8rem; }
.chk-own .btn { flex: none; }
.chk-set { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px 14px; display: grid; gap: 10px; }
.chk-set legend { display: flex; align-items: center; gap: 6px; padding: 0 6px; font-weight: 650; }
.chk-set legend .ic { width: 16px; height: 16px; color: var(--primary); }
.chk-set .hint .ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.chk-mine .chk-tip { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; }
.chk-mine .chk-tip .ic { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.ar-t .ar-chk { gap: 3px; }
.ar-t .ar-chk .ic { width: 13px; height: 13px; color: currentColor; }

/* ===== v2.2: free trial, promo codes, invite a friend, QR for payments ===== */
.promo-box { display: grid; gap: 6px; }
.promo-box > label { font-size: .86rem; font-weight: 600; }
.promo-box > label small { color: var(--muted); font-weight: 400; }
.promo-box input { text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.promo-box input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; }
.promo-box .input-btn input { flex: 1; min-width: 0; }
.promo-res { display: flex; align-items: flex-start; gap: 6px; font-size: .86rem; margin: 2px 0 0; }
.promo-res .ic { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.promo-res.ok { color: var(--ok); }
.promo-res.bad { color: var(--bad); }
s { color: var(--muted); font-weight: 500; text-decoration-thickness: 1.5px; }
.sum-total b s, .pb-amount s, .pr-amount s { font-size: .78em; margin-right: 4px; }
.trial-note b { color: var(--text); }
.trial-bar { width: 100%; font: inherit; text-align: left; cursor: pointer; }
.trial-bar > .ic:first-child { width: 22px; height: 22px; flex: none; }
.trial-bar > .ic:last-child { margin-left: auto; flex: none; }
.pb-promo { display: flex; align-items: center; gap: 6px; margin: -4px 0 8px; color: var(--ok); font-size: .86rem; font-weight: 600; }
.pb-promo .ic { width: 16px; height: 16px; }
.pb-qr { display: flex; align-items: center; gap: 14px; margin: 4px 0 12px; padding: 12px; border-radius: 16px; background: color-mix(in srgb, var(--text) 5%, transparent); }
.pb-qr img { flex: none; width: 132px; height: 132px; object-fit: contain; border-radius: 12px; background: #fff; padding: 6px; }
.pb-qr span { display: grid; gap: 4px; font-size: .86rem; color: var(--muted); }
.pb-qr span b:first-child { color: var(--text); font-size: .95rem; }
.pb-qr span b { color: var(--text); }
@media (max-width: 420px) { .pb-qr { flex-direction: column; text-align: center; } .pb-qr img { width: 180px; height: 180px; } }
.t-trial { display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin-top: 2px; padding: 4px 10px; border-radius: 99px; font-size: .8rem; font-weight: 700; color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); }
.t-trial .ic { width: 15px; height: 15px; }
.card-head h2 > .ic { width: 20px; height: 20px; margin-right: 8px; vertical-align: -3px; color: var(--primary); }
.ref-card .code-box { margin: 12px 0; }
.ref-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.ref-stats > div { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; background: color-mix(in srgb, var(--text) 5%, transparent); text-align: center; }
.ref-stats b { font-family: var(--font-d); font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.ref-stats span { color: var(--muted); font-size: .74rem; }
.ref-log { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.ref-log li { display: flex; align-items: center; gap: 8px; font-size: .86rem; }
.ref-log li .ic { flex: none; width: 16px; height: 16px; color: var(--ok); }
.ref-log li small { margin-left: auto; color: var(--muted); white-space: nowrap; }
.promo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.promo-b { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.promo-b:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.promo-code { flex: none; padding: 6px 10px; border-radius: 10px; border: 1px dashed color-mix(in srgb, var(--primary) 50%, transparent); background: color-mix(in srgb, var(--primary) 9%, transparent); font-family: var(--font-d); font-weight: 700; letter-spacing: .06em; font-size: .9rem; }
.promo-m { flex: 1; min-width: 0; display: grid; gap: 2px; }
.promo-m small { color: var(--muted); font-size: .78rem; }
.promo-b .chip { flex: none; }
.sa-qr { display: block; width: 200px; height: 200px; object-fit: contain; margin: 10px 0 12px; border-radius: 16px; background: #fff; padding: 8px; }
.sa-qr.none { display: grid; place-items: center; align-content: center; gap: 6px; background: color-mix(in srgb, var(--text) 5%, transparent); color: var(--muted); border: 1px dashed var(--line); }
.sa-qr.none .ic { width: 34px; height: 34px; }
.ord-group .card-head h2 > .ic { margin-right: 0; }

/* ===== v2.3: the «7 Days» trial tariff ===== */
.t-badge.trial { background: color-mix(in srgb, var(--ok) 85%, #000); color: #fff; }

/* ===== v2.3: KG / RU ===== */
.lang-btn { flex: none; display: inline-grid; place-items: center; min-width: 40px; height: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text); font: 700 .78rem/1 var(--font-b); letter-spacing: .06em; cursor: pointer; }
.lang-btn:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--line)); color: var(--primary); }
.lang-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.lang-btn.lb-top { height: 36px; min-width: 38px; padding: 0 8px; }
.auth-main { position: relative; }
.lang-btn.lb-auth { position: absolute; z-index: 3; top: calc(22px + env(safe-area-inset-top)); right: 16px; }
.ph-cta { align-items: center; }

/* ===== Phones sector (Телефоны): IMEI rows, sale screen, installments, repairs, inventory ===== */
.info-t { color: var(--info); }
.phx-mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.phx-ic { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); }
.phx-ic .ic { width: 20px; height: 20px; }
.phx-ic.lg { width: 48px; height: 48px; border-radius: 14px; }
.phx-ic.lg .ic { width: 24px; height: 24px; }
.phx-no { font-size: .74rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.phx-ic.lg.phx-no { font-size: .9rem; }
.debt.is-ready { background: linear-gradient(90deg, color-mix(in srgb, var(--ok) 8%, transparent), transparent 65%); }
.db-t small .chip { min-height: 20px; padding: 0 8px; font-size: .7rem; }
.db-t small .ok-t, .db-t small .warn-t, .db-t small .bad-t, .db-t small .info-t { display: inline-flex; align-items: center; gap: 3px; }
.phx-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.phx-head > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.phx-head > div b { font-size: 1.02rem; overflow-wrap: anywhere; }
.phx-head > div small { color: var(--muted); font-size: .8rem; }
.phx-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.phx-acts .btn { flex: 1 1 auto; }
.phx-gsi { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--text) 4%, transparent); }
.phx-gsi > span { flex: 1 1 100%; font-size: .84rem; color: var(--muted); }
.phx-hist { list-style: none; margin: 0; padding: 0; display: grid; }
.phx-hist li { display: grid; gap: 1px; padding: 9px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); font-size: .88rem; }
.phx-hist li:last-child { border-bottom: 0; }
.phx-hist li small { color: var(--muted); font-size: .78rem; }
.phx-hist li b .ic { width: 16px; height: 16px; margin-right: 4px; vertical-align: -3px; }
.phx-hist li.ok b { color: var(--ok); }
.phx-hist li.warn b { color: var(--warn); }
.phx-hist .link { text-align: left; padding: 0; }
.phx-note { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 10px; padding: 12px 14px; margin: 0 0 12px; border-radius: 14px; font-size: .86rem; background: color-mix(in srgb, var(--info) 10%, transparent); }
.phx-note > .ic { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--info); }
.phx-note > span { flex: 1; min-width: 200px; }
.phx-note small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.phx-note.warn { background: color-mix(in srgb, var(--warn) 12%, transparent); }
.phx-note.warn > .ic { color: var(--warn); }
.phx-note.bad { background: color-mix(in srgb, var(--bad) 10%, transparent); }
.phx-note.bad > .ic { color: var(--bad); }
.phx-note.ok { background: color-mix(in srgb, var(--ok) 10%, transparent); }
.phx-note.ok > .ic { color: var(--ok); }
.phx-scanrow { display: flex; gap: 6px; align-items: flex-start; }
.phx-scanrow textarea { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; }
.phx-scanrow .icon-btn { border: 1px solid var(--line); height: 46px; width: 46px; flex: none; }
.phx-pick { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); cursor: pointer; }
.phx-pick small { color: var(--muted); font-size: .78rem; }
.phx-pick input { accent-color: var(--primary); }
.phx-pick.on { border-color: color-mix(in srgb, var(--primary) 55%, var(--line)); background: color-mix(in srgb, var(--primary) 7%, transparent); cursor: default; }
.phx-pick > b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.phx-up { display: grid; gap: 6px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 14%, transparent), color-mix(in srgb, var(--primary2, var(--primary)) 6%, transparent)); border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--line)); }
.phx-up > b { display: flex; align-items: center; gap: 6px; }
.phx-up > b .ic { width: 18px; height: 18px; color: var(--primary); }
.phx-up > small { color: var(--muted); font-size: .8rem; }
.phx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.phx-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: .84rem; cursor: pointer; }
.phx-chip .ic { width: 15px; height: 15px; color: var(--primary); }
.phx-chip b { font-variant-numeric: tabular-nums; }
.phx-chip s { color: var(--muted); font-weight: 400; }
.phx-chip:hover { border-color: var(--primary); }
.phx-items { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; }
.phx-items li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); font-size: .88rem; }
.phx-items li > span:first-child { flex: 1; min-width: 0; display: grid; }
.phx-items li small { color: var(--muted); font-size: .76rem; }
.phx-items li > b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.phx-qty { display: inline-flex; align-items: center; gap: 2px; }
.phx-qty .icon-btn { width: 32px; height: 32px; }
.phx-qty b { min-width: 42px; text-align: center; font-variant-numeric: tabular-nums; }
.phx-svcs { display: grid; gap: 6px; }
.phx-svc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); }
.phx-svc .check { flex: 1 1 160px; align-items: center; }
.phx-svc > small { color: var(--muted); font-size: .8rem; }
.phx-svc.on { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.input-suffix.sm input { min-height: 38px; padding-top: 6px; padding-bottom: 6px; max-width: 130px; }
.phx-svc .select.sm select, .phx-svc .input-suffix.sm input { min-height: 38px; }
.phx-plan { display: grid; gap: 12px; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--text) 4%, transparent); }
.phx-total { display: grid; gap: 6px; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--primary) 8%, transparent); border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--line)); }
.phx-total > div { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.phx-total > div b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.phx-total .tot { padding-top: 8px; border-top: 1px dashed var(--line); font-size: 1.12rem; }
.phx-total .pl { color: var(--primary); font-weight: 600; }
.phx-done { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 8px 0 4px; }
.phx-done > .ic { width: 52px; height: 52px; padding: 12px; border-radius: 50%; color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.phx-done > b { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.phx-done small { color: var(--muted); font-size: .84rem; }
.phx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 0 0 12px; }
.phx-stats > div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--card-bg); border: 1px solid var(--line); }
.phx-stats span { color: var(--muted); font-size: .78rem; }
.phx-stats b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.phx-sched { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.phx-sched li { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--text) 4%, transparent); font-size: .88rem; }
.phx-sched li b { font-variant-numeric: tabular-nums; }
.phx-sched li small { grid-column: 1 / -1; color: var(--muted); font-size: .76rem; }
.phx-sched li.ok { background: color-mix(in srgb, var(--ok) 10%, transparent); }
.phx-sched li.ok small { color: var(--ok); }
.phx-sched li.bad { background: color-mix(in srgb, var(--bad) 10%, transparent); }
.phx-sched li.bad small { color: var(--bad); font-weight: 600; }
.phx-chk { display: grid; gap: 12px; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--text) 4%, transparent); }
.phx-dc { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); align-items: center; }
.phx-dc span { display: grid; gap: 1px; }
.phx-inv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 12px; }
.phx-inv > div { display: grid; justify-items: center; gap: 2px; padding: 12px 8px; border-radius: 14px; background: color-mix(in srgb, var(--ok) 10%, transparent); }
.phx-inv > div b { font-size: 1.5rem; font-variant-numeric: tabular-nums; color: var(--ok); }
.phx-inv > div span { font-size: .76rem; color: var(--muted); }
.phx-inv > div.bad { background: color-mix(in srgb, var(--bad) 10%, transparent); }
.phx-inv > div.bad b { color: var(--bad); }
.phx-inv > div.warn { background: color-mix(in srgb, var(--warn) 12%, transparent); }
.phx-inv > div.warn b { color: var(--warn); }
#iv-form { margin-bottom: 8px; }
.phx-svedit { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.phx-svedit li { display: grid; grid-template-columns: 1fr 120px 86px 40px; gap: 6px; align-items: center; }
.phx-svedit li .input-suffix.sm input { max-width: none; }
.phx-part { display: grid; grid-template-columns: 1fr 70px auto; gap: 6px; margin-top: 10px; }
.phx-part input { min-height: 46px; text-align: center; }
.phx-lines .pl-total { border-top: 1px dashed var(--line); font-size: 1.02rem; }
.phx-mform { padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
@media (max-width: 520px) {
  .phx-svedit li { grid-template-columns: 1fr 1fr 40px; }
  .phx-svedit li .sv-n { grid-column: 1 / -1; }
  .phx-items li { flex-wrap: wrap; }
  .phx-items li > span:first-child { flex-basis: 100%; }
  .phx-acts .btn { flex: 1 1 calc(50% - 8px); }
}
.seg.phx-tabs { display: flex; flex-wrap: nowrap; flex: 0 1 auto; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.seg.phx-tabs::-webkit-scrollbar { display: none; }
.seg.phx-tabs .seg-i { flex: 1 0 auto; }
.phx-pick > .t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.phx-pick > .ic { width: 18px; height: 18px; flex: none; color: var(--primary); }
.phx-pick > .phx-ic { width: 34px; height: 34px; }
.phx-chips { display: grid; }
.phx-chip { width: 100%; justify-content: space-between; text-align: left; border-radius: 14px; padding: 8px 12px; }
.phx-chip span { flex: 1; min-width: 0; }
.phx-chip b { white-space: nowrap; }
.phx-acts.col { flex-direction: column; margin-top: 16px; }
@media (max-width: 520px) { .phx-hm { display: none; } }
/* three header buttons: they wrap by their real width instead of squeezing past the screen edge */
@media (max-width: 560px) {
  .phx-page .ph-actions > .btn { flex: 1 1 auto; }
  .phx-page .ph-actions > .btn[data-act="phFind"] { flex: 0 0 auto; padding: 0 14px; }
}
.stagger.phx-page { grid-template-columns: minmax(0, 1fr); }
.phx-pick { min-width: 0; }
.phx-pick > .t b, .phx-pick > .t small { overflow-wrap: anywhere; }

/* ================= v2.5: two editions — Business MARKET and AZORA ================= */
/* registration: 5 steps */
.steps.s5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 420px) { .steps.s5 b { font-size: .64rem; } .steps.s5 li::before { left: calc(-50% + 16px); right: calc(50% + 16px); } }

/* the AZORA wordmark */
.azr-wm { display: block; height: auto; overflow: visible; }
.azr-wm-xl { width: min(300px, 80%); filter: drop-shadow(0 0 18px rgba(139, 92, 255, .5)); }
.azr-wm-lg { width: 220px; filter: drop-shadow(0 0 14px rgba(139, 92, 255, .45)); }
.azr-wm-sm { width: 92px; }
.ed-azr { width: 128px; filter: drop-shadow(0 0 10px rgba(139, 92, 255, .45)); }

/* gradient buttons that work on any page */
.btn.azr-btn { --b-bg: linear-gradient(100deg, #179FD0 0%, #7C4DFF 52%, #E0479F 100%); --b-fg: #fff; border: 0; box-shadow: 0 10px 26px rgba(124, 77, 255, .38), inset 0 1px 0 rgba(255, 255, 255, .3); text-shadow: 0 1px 2px rgba(30, 0, 70, .35); }
.btn.azr-btn:hover { filter: brightness(1.08) saturate(1.05); }
.btn.azr-ghost { --b-bg: rgba(255, 255, 255, .04); --b-fg: #F2EFFF; border: 1px solid rgba(170, 150, 255, .4); }
.btn.azr-ghost:hover { --b-bg: rgba(139, 92, 255, .16); }
.azr-link { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; color: #9FEFFF; font: inherit; font-weight: 600; cursor: pointer; }
.azr-link .ic { width: 17px; height: 17px; }
.azr-link:hover { color: #fff; }

/* ---------- the AZORA design inside a store ---------- */
[data-design="azora"] {
  --bg: #06060C; --bg2: #0C0A18; --surface: rgba(17, 15, 36, .76); --surface2: rgba(28, 24, 56, .86); --line: rgba(168, 150, 255, .16);
  --text: #F2EFFF; --muted: #A39EC6; --primary: #8F63FF; --primary2: #3DE3FF; --on-primary: #FFFFFF; --accent: #3DE3FF;
  --ok: #34E8A6; --bad: #FF6B8E; --warn: #FFC15C; --info: #6FE3FF;
  --role-owner: #3DE3FF; --role-admin: #A88BFF; --role-cashier: #FFC15C; --role-seller: #FF7AD0;
  --font-d: 'Unbounded', 'Onest', system-ui, sans-serif; --font-b: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --card-bg: linear-gradient(155deg, rgba(139, 92, 255, .11), rgba(61, 227, 255, .035) 42%, rgba(255, 92, 200, .045)), var(--surface);
  --glass: blur(18px) saturate(160%); --shadow: 0 22px 54px rgba(0, 0, 0, .62); --shadow-sm: 0 8px 24px rgba(0, 0, 0, .42);
  --azg: linear-gradient(100deg, #3DE3FF 0%, #8B5CFF 52%, #FF5CC8 100%);
  --metal: var(--azg);
  color-scheme: dark;
}
[data-design="azora"] .bg-fx { background: radial-gradient(120% 70% at 50% -10%, #171238 0%, #07060E 58%), #06060C; }
[data-design="azora"] .bg-fx::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(150, 130, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(150, 130, 255, .055) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(75% 60% at 50% 0%, #000 25%, transparent 80%); mask-image: radial-gradient(75% 60% at 50% 0%, #000 25%, transparent 80%); }
[data-design="azora"] .bg-fx i { filter: blur(60px); mix-blend-mode: screen; opacity: .6; }
[data-design="azora"] .bg-fx i:nth-child(1) { width: 62vmax; height: 34vmax; left: -20vmax; top: -14vmax; background: radial-gradient(closest-side, rgba(61, 227, 255, .5), transparent); animation: azDrift1 18s ease-in-out infinite alternate; }
[data-design="azora"] .bg-fx i:nth-child(2) { width: 54vmax; height: 40vmax; right: -22vmax; top: 6vmax; background: radial-gradient(closest-side, rgba(139, 92, 255, .55), transparent); animation: azDrift2 22s ease-in-out infinite alternate; }
[data-design="azora"] .bg-fx i:nth-child(3) { width: 48vmax; height: 30vmax; left: 12vmax; bottom: -18vmax; background: radial-gradient(closest-side, rgba(255, 92, 200, .36), transparent); animation: azDrift3 20s ease-in-out infinite alternate; }
@keyframes azDrift1 { to { transform: translate(8vmax, 4vmax) rotate(8deg) scale(1.1); } }
@keyframes azDrift2 { to { transform: translate(-6vmax, 5vmax) rotate(-10deg) scale(1.15); } }
@keyframes azDrift3 { to { transform: translate(5vmax, -6vmax) scale(.92); } }
[data-design="azora"] .btn.primary { --b-bg: var(--azg); --b-fg: #fff; border: 0; box-shadow: 0 10px 26px rgba(139, 92, 255, .42), inset 0 1px 0 rgba(255, 255, 255, .3); text-shadow: 0 1px 2px rgba(30, 0, 70, .35); }
[data-design="azora"] .btn.primary:hover { filter: brightness(1.08) saturate(1.06); box-shadow: 0 12px 32px rgba(139, 92, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .35); }
[data-design="azora"] .btn.soft { --b-bg: rgba(139, 92, 255, .12); border-color: rgba(170, 150, 255, .22); }
[data-design="azora"] .btn.soft:hover { --b-bg: rgba(139, 92, 255, .2); }
[data-design="azora"] .card, [data-design="azora"] .kpi, [data-design="azora"] .emp-card, [data-design="azora"] .branch-card, [data-design="azora"] .task-card { box-shadow: inset 0 1px 0 rgba(210, 200, 255, .08), var(--shadow-sm); }
[data-design="azora"] .side { background: linear-gradient(180deg, rgba(139, 92, 255, .12), transparent 34%), rgba(8, 7, 18, .88); }
[data-design="azora"] .nav-i.on { background: linear-gradient(100deg, rgba(61, 227, 255, .12), rgba(139, 92, 255, .22)); }
[data-design="azora"] .nav-i.on::before { background: var(--azg); box-shadow: 0 0 12px rgba(139, 92, 255, .8); }
[data-design="azora"] .nav-i.on .ic, [data-design="azora"] .tab.on { color: #BCA6FF; }
[data-design="azora"] .tab.on::before { background: linear-gradient(100deg, rgba(61, 227, 255, .16), rgba(139, 92, 255, .28)); }
[data-design="azora"] .logo-mark { border-radius: 13px; background: var(--azg); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 6px 18px rgba(139, 92, 255, .45); }
[data-design="azora"] .logo-mark.img { background: var(--surface2); }
[data-design="azora"] .ph-text h1 { background: linear-gradient(100deg, #FFFFFF 0%, #DCD3FF 55%, #B4F3FF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-design="azora"] .kpi-v { color: #EEE9FF; }
[data-design="azora"] .modal { background: linear-gradient(180deg, rgba(139, 92, 255, .09), transparent 140px), var(--bg2); border-color: rgba(170, 150, 255, .2); }
[data-design="azora"] .seg { background: rgba(10, 8, 22, .7); }
[data-design="azora"] .page-enter .stagger > * { animation-name: riseScale; }

/* the cabinet's own blocks: today's figures and quick actions */
.azr-hero { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 14px; padding: 16px; border-radius: 24px; background: linear-gradient(150deg, rgba(61, 227, 255, .10), rgba(139, 92, 255, .16) 45%, rgba(255, 92, 200, .10)), var(--surface); border: 1px solid rgba(170, 150, 255, .24); box-shadow: var(--shadow-sm); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); min-width: 0; }
.azr-hero::before { content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; right: -90px; top: -130px; border-radius: 50%; background: radial-gradient(closest-side, rgba(139, 92, 255, .45), transparent); filter: blur(18px); }
.azr-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.azr-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .azr-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.azr-stat { display: grid; gap: 2px; justify-items: start; min-width: 0; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .035); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: transform .2s var(--ease), border-color .2s, background .2s; }
.azr-stat:hover { transform: translateY(-2px); border-color: rgba(170, 150, 255, .45); background: rgba(139, 92, 255, .08); }
.azr-stat:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.azr-stat small, .azr-stat span { max-width: 100%; font-size: .74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.azr-stat b { max-width: 100%; font-family: var(--font-d); font-size: clamp(1.05rem, .85rem + 1vw, 1.28rem); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.azr-stat span.warn-t { color: var(--warn); }
.azr-stat b i { font-style: normal; font-family: var(--font-b); font-size: .6em; font-weight: 600; color: var(--muted); }
.azr-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.azr-quick .btn { flex: 1 1 auto; }
.azr-hero.compact { gap: 12px; }

/* ---------- a picture of the AZORA cabinet ---------- */
.dmini[data-design="azora"] { background: #07060F; }
.dmini[data-design="azora"] .dm-fx { background: radial-gradient(120% 70% at 50% 0%, #1A1440, #07060F 60%); }
.dmini[data-design="azora"] .dm-fx i { filter: blur(16px); mix-blend-mode: screen; }
.dmini[data-design="azora"] .dm-fx i:nth-child(1) { width: 90%; height: 45%; left: -30%; top: -12%; background: radial-gradient(closest-side, rgba(61, 227, 255, .45), transparent); animation: azDrift1 10s ease-in-out infinite alternate; }
.dmini[data-design="azora"] .dm-fx i:nth-child(2) { width: 80%; height: 55%; right: -30%; top: 20%; background: radial-gradient(closest-side, rgba(139, 92, 255, .55), transparent); animation: azDrift2 12s ease-in-out infinite alternate; }
.dmini[data-design="azora"] .dm-fx i:nth-child(3) { width: 80%; height: 40%; left: 0; bottom: -15%; background: radial-gradient(closest-side, rgba(255, 92, 200, .35), transparent); animation: azDrift3 11s ease-in-out infinite alternate; }
.dmini[data-design="azora"] .logo-mark.dm { border-radius: 9px; }
.dmini[data-design="azora"] .dm-bars i { background: linear-gradient(180deg, #3DE3FF, #8B5CFF 60%, #FF5CC8); }
.am-sale { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 14px; background: var(--card-bg); border: 1px solid var(--line); min-width: 0; }
.am-dev { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 9px; background: rgba(139, 92, 255, .22); color: #D3C4FF; }
.am-dev .ic { width: 16px; height: 16px; }
.am-t { display: grid; flex: 1; min-width: 0; }
.am-t b, .am-t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-t b { font-size: .72rem; }
.am-t small { font-size: .58rem; color: var(--muted); }
.am-p { flex: none; font-family: var(--font-d); font-size: .7rem; background: var(--azg); -webkit-background-clip: text; background-clip: text; color: transparent; }
.am-up { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 11px; background: linear-gradient(100deg, rgba(61, 227, 255, .14), rgba(255, 92, 200, .12)); border: 1px dashed rgba(170, 150, 255, .38); font-size: .62rem; }
.am-up span { display: flex; align-items: center; gap: 5px; min-width: 0; white-space: nowrap; }
.am-up .ic { width: 12px; height: 12px; color: #7DEBFF; }
.am-up b { color: #FF97DB; }
.am-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.am-kpis span { display: grid; gap: 1px; min-width: 0; padding: 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, .045); border: 1px solid var(--line); }
.am-kpis small { font-size: .52rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-kpis b { font-family: var(--font-d); font-size: .78rem; }
/* the same picture inside a phone */
.azr-phone { position: relative; width: min(290px, 100%); margin-inline: auto; padding: 9px; border-radius: 42px; background: linear-gradient(160deg, #2C2554, #0C0A1C 42%, #1B1538); box-shadow: 0 0 0 1px rgba(190, 170, 255, .28), 0 30px 70px rgba(40, 14, 110, .5), inset 0 1px 0 rgba(255, 255, 255, .16); }
.azr-phone::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: linear-gradient(140deg, #3DE3FF, #8B5CFF 50%, #FF5CC8); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .75; pointer-events: none; }
.azr-notch { position: absolute; z-index: 2; top: 17px; left: 50%; width: 70px; height: 20px; margin-left: -35px; border-radius: 12px; background: #04030A; }
.azr-phone .dmini { aspect-ratio: 9 / 17; border-radius: 34px; padding: 44px 14px 18px; align-content: start; gap: 10px; }
.azr-phone.sm { width: min(230px, 100%); }

/* ---------- landing: the AZORA block ---------- */
.azr-promo { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 28px; padding: clamp(22px, 4vw, 48px); border-radius: 32px; background: #07060F; color: #F2EFFF; border: 1px solid rgba(160, 140, 255, .24); box-shadow: 0 30px 80px rgba(20, 8, 60, .45); }
.azr-promo-fx { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.azr-promo-fx i { position: absolute; border-radius: 50%; filter: blur(50px); mix-blend-mode: screen; }
.azr-promo-fx i:nth-child(1) { width: 60%; height: 50%; left: -15%; top: -18%; background: radial-gradient(closest-side, rgba(61, 227, 255, .42), transparent); animation: azDrift1 16s ease-in-out infinite alternate; }
.azr-promo-fx i:nth-child(2) { width: 55%; height: 60%; right: -18%; top: 10%; background: radial-gradient(closest-side, rgba(139, 92, 255, .55), transparent); animation: azDrift2 19s ease-in-out infinite alternate; }
.azr-promo-fx i:nth-child(3) { width: 50%; height: 40%; left: 20%; bottom: -15%; background: radial-gradient(closest-side, rgba(255, 92, 200, .32), transparent); animation: azDrift3 17s ease-in-out infinite alternate; }
.azr-promo-fx::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(150, 130, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(150, 130, 255, .06) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(80% 70% at 30% 20%, #000 20%, transparent 75%); mask-image: radial-gradient(80% 70% at 30% 20%, #000 20%, transparent 75%); }
.azr-promo-copy { display: grid; gap: 16px; align-content: start; justify-items: start; min-width: 0; }
.azr-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: #CFF7FF; background: rgba(61, 227, 255, .12); border: 1px solid rgba(61, 227, 255, .32); }
.azr-badge .ic { width: 14px; height: 14px; }
.azr-lead { margin: 0; max-width: 52ch; color: #CBC6EC; font-size: 1.02rem; line-height: 1.6; }
.azr-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.azr-promo-visual { display: grid; place-items: center; min-width: 0; }
.azr-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.azr-feats li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-content: start; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(170, 150, 255, .15); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.azr-fic { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: linear-gradient(140deg, rgba(61, 227, 255, .22), rgba(139, 92, 255, .3)); color: #E0D7FF; }
.azr-fic .ic { width: 20px; height: 20px; }
.azr-feats b { font-size: .95rem; color: #F6F3FF; }
.azr-feats small { color: #ABA5D2; font-size: .84rem; line-height: 1.45; }
@media (min-width: 640px) { .azr-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .azr-promo { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; } .azr-feats { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- registration: choosing the edition ---------- */
.ed-pick { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin-top: 4px; }
@media (min-width: 760px) { .ed-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ed-card { position: relative; display: grid; gap: 10px; align-content: start; min-width: 0; padding: 14px; border-radius: 24px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.ed-card:hover { transform: translateY(-2px); }
.ed-card input { position: absolute; opacity: 0; pointer-events: none; }
.ed-card:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 3px; }
.ed-card.sel { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.ed-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; }
.ed-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ed-name .brand-mark { width: 36px; height: 36px; flex: none; }
.ed-mk { font-family: 'Unbounded', var(--font-b); font-size: 1.02rem; font-weight: 700; white-space: nowrap; }
.ed-mk i { font-style: normal; color: var(--primary); }
.ed-sub { color: var(--muted); font-size: .86rem; margin-top: -4px; }
.ed-prev { display: block; overflow: hidden; border-radius: 18px; }
.ed-prev .dmini { aspect-ratio: 16 / 11; }
.ed-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .86rem; }
.ed-feats li { display: flex; align-items: flex-start; gap: 8px; }
.ed-feats .ic { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--ok); stroke-width: 3; }
.ed-play { justify-self: start; }
.ed-card.ed-azora { color: #F2EFFF; background: radial-gradient(90% 60% at 100% 0%, rgba(139, 92, 255, .28), transparent 65%), radial-gradient(70% 50% at 0% 100%, rgba(61, 227, 255, .14), transparent 60%), #0A0918; border-color: rgba(150, 130, 255, .28); }
.ed-card.ed-azora .ed-sub { color: #A9A3CF; }
.ed-card.ed-azora .ed-feats .ic { color: #5CEBFF; }
.ed-card.ed-azora.sel { border-color: transparent; background: radial-gradient(90% 60% at 100% 0%, rgba(139, 92, 255, .3), transparent 65%) padding-box, radial-gradient(70% 50% at 0% 100%, rgba(61, 227, 255, .16), transparent 60%) padding-box, linear-gradient(#0A0918, #0A0918) padding-box, linear-gradient(120deg, #3DE3FF, #8B5CFF 50%, #FF5CC8) border-box; box-shadow: 0 0 0 4px rgba(139, 92, 255, .22), 0 18px 44px rgba(139, 92, 255, .28); }
.ed-card.ed-azora.sel .t-check { background: linear-gradient(120deg, #3DE3FF, #8B5CFF 50%, #FF5CC8); border-color: transparent; color: #fff; }
.ed-card.ed-azora .btn.soft { --b-bg: rgba(139, 92, 255, .16); --b-fg: #F2EFFF; border-color: rgba(170, 150, 255, .3); }
.auth-aside.azr-aside { color: #F2EFFF; background: radial-gradient(70% 45% at 15% 5%, rgba(61, 227, 255, .24), transparent 60%), radial-gradient(60% 50% at 95% 35%, rgba(139, 92, 255, .34), transparent 60%), radial-gradient(60% 45% at 40% 100%, rgba(255, 92, 200, .22), transparent 60%), #07060F; }
.auth-aside.azr-aside p { color: #BDB7E2; }
.auth-aside.azr-aside .azr-phone { margin: 10px 0 0; }

/* ---------- the AZORA opening: aurora, a phone that draws itself, the IMEI scan, the store's letter, the wordmark ---------- */
.sp-azr { background: #05050B; color: #F3F0FF; transition: opacity .9s ease .15s; }
.sp-azr.out { opacity: 0; }
.az-sky { position: absolute; inset: -10%; z-index: 0; opacity: 0; filter: blur(40px) saturate(140%); }
.splash.go .az-sky { animation: fadeTo1 1.4s .1s ease forwards; }
.az-au { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.az-au.a1 { width: 70vmax; height: 40vmax; left: -15vmax; top: -6vmax; background: radial-gradient(closest-side, rgba(61, 227, 255, .55), transparent); animation: azDrift1 9s ease-in-out infinite alternate; }
.az-au.a2 { width: 60vmax; height: 45vmax; right: -18vmax; top: 6vmax; background: radial-gradient(closest-side, rgba(139, 92, 255, .62), transparent); animation: azDrift2 11s ease-in-out infinite alternate; }
.az-au.a3 { width: 55vmax; height: 35vmax; left: 8vmax; bottom: -14vmax; background: radial-gradient(closest-side, rgba(255, 92, 200, .42), transparent); animation: azDrift3 10s ease-in-out infinite alternate; }
.az-au.a4 { width: 30vmax; height: 30vmax; left: 38%; top: 28%; background: radial-gradient(closest-side, rgba(80, 120, 255, .35), transparent); animation: azDrift2 7s ease-in-out infinite alternate-reverse; }
.az-floor { position: absolute; z-index: 0; left: 50%; bottom: 6%; width: min(560px, 92vw); height: 140px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(139, 92, 255, .38), transparent); filter: blur(14px); opacity: 0; }
.splash.go .az-floor { animation: fadeTo1 1.2s .9s ease forwards; }
.az-core { position: relative; z-index: 2; display: grid; justify-items: center; gap: 14px; transition: opacity .6s ease, transform .9s ease; }
.sp-azr.out .az-core { opacity: 0; transform: scale(1.05); }
.az-dev { position: relative; width: clamp(112px, 30vw, 138px); aspect-ratio: 124 / 236; opacity: 0; transform: translateY(18px) scale(.94); }
.splash.go .az-dev { animation: azDevIn 1s .15s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes azDevIn { to { opacity: 1; transform: none; } }
.az-frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 10px rgba(139, 92, 255, .6)); }
.az-frame .f1 { fill: none; stroke: url(#azfg); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; }
.az-frame .f2 { fill: none; stroke: rgba(170, 150, 255, .35); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.az-frame .nt { fill: rgba(255, 255, 255, .14); opacity: 0; }
.splash.go .az-frame .f1 { animation: dash0 1.1s .25s cubic-bezier(.55, 0, .25, 1) forwards; }
.splash.go .az-frame .f2 { animation: dash0 1s .5s cubic-bezier(.55, 0, .25, 1) forwards; }
.splash.go .az-frame .nt { animation: fadeTo1 .4s 1.2s ease forwards; }
.az-screen { position: absolute; left: 7.3%; right: 7.3%; top: 3.8%; bottom: 3.8%; overflow: hidden; display: grid; place-items: center; border-radius: 17% / 9%; background: radial-gradient(120% 80% at 50% 0%, rgba(139, 92, 255, .38), transparent 60%), linear-gradient(180deg, #0E0B24, #07061A); opacity: 0; }
.splash.go .az-screen { animation: fadeTo1 .6s 1s ease forwards; }
.az-beam { position: absolute; left: 0; right: 0; top: -20%; height: 18%; background: linear-gradient(180deg, transparent, rgba(61, 227, 255, .5) 80%, rgba(210, 250, 255, .95)); box-shadow: 0 6px 18px rgba(61, 227, 255, .6); opacity: 0; }
.splash.go .az-beam { animation: azBeam 1.05s 1.1s cubic-bezier(.45, 0, .55, 1) 2 alternate forwards; }
@keyframes azBeam { 0% { opacity: 0; transform: translateY(0); } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; transform: translateY(680%); } }
.az-mark { position: relative; z-index: 1; display: grid; place-items: center; width: 58%; aspect-ratio: 1; overflow: hidden; border-radius: 30%; background: linear-gradient(140deg, rgba(61, 227, 255, .26), rgba(139, 92, 255, .38) 55%, rgba(255, 92, 200, .3)); border: 1px solid rgba(190, 170, 255, .45); box-shadow: 0 0 30px rgba(139, 92, 255, .6), inset 0 1px 0 rgba(255, 255, 255, .25); opacity: 0; transform: scale(.6); filter: blur(6px); }
.splash.go .az-mark { animation: azMark .8s 1.55s cubic-bezier(.2, 1.4, .4, 1) forwards; }
@keyframes azMark { to { opacity: 1; transform: none; filter: none; } }
.az-l { font: 800 clamp(1.7rem, 7vw, 2.3rem)/1 'Unbounded', 'Onest', system-ui, sans-serif; background: linear-gradient(120deg, #FFFFFF, #C9F6FF 45%, #DCCBFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.az-mark .sp-img { width: 100%; height: 100%; }
.az-imei { position: absolute; left: 6%; right: 6%; bottom: 9%; display: grid; justify-items: center; gap: 2px; overflow: hidden; font: 600 .45rem/1.2 'Onest', system-ui, sans-serif; letter-spacing: .03em; color: rgba(205, 242, 255, .9); white-space: nowrap; opacity: 0; }
.az-imei span { font-size: .42rem; letter-spacing: .3em; color: rgba(165, 155, 225, .85); }
.az-imei b { font-variant-numeric: tabular-nums; font-weight: 700; }
.splash.go .az-imei { animation: azImei .9s 1.3s linear forwards; }
@keyframes azImei { 0% { opacity: 0; } 20% { opacity: .9; } 32% { opacity: .2; } 50% { opacity: 1; } 62% { opacity: .45; } 100% { opacity: 1; } }
.az-word { width: min(64vw, 290px); margin-top: 6px; filter: drop-shadow(0 0 12px rgba(139, 92, 255, .55)); }
.sp-azr .az-word path, .sp-azr .az-word circle { stroke-dasharray: 1; stroke-dashoffset: 1; }
.splash.go .az-word .l1 { animation: dash0 .75s 1.85s cubic-bezier(.6, 0, .2, 1) forwards; }
.splash.go .az-word .l2 { animation: dash0 .75s 1.97s cubic-bezier(.6, 0, .2, 1) forwards; }
.splash.go .az-word .l3 { animation: dash0 .75s 2.09s cubic-bezier(.6, 0, .2, 1) forwards; }
.splash.go .az-word .l4 { animation: dash0 .75s 2.21s cubic-bezier(.6, 0, .2, 1) forwards; }
.splash.go .az-word .l5 { animation: dash0 .75s 2.33s cubic-bezier(.6, 0, .2, 1) forwards; }
.splash.go .az-word { animation: azGlow 1.4s 2.9s ease forwards; }
@keyframes azGlow { 40% { filter: drop-shadow(0 0 22px rgba(139, 92, 255, .95)) drop-shadow(0 0 6px rgba(61, 227, 255, .8)); } 100% { filter: drop-shadow(0 0 12px rgba(139, 92, 255, .55)); } }
.sp-azr .sp-title { font-family: 'Unbounded', 'Onest', system-ui, sans-serif; font-weight: 700; font-size: clamp(1.2rem, .85rem + 2.6vw, 2.1rem); letter-spacing: .01em; color: #F6F3FF; opacity: 0; transform: translateY(10px); filter: blur(6px); }
.splash.go.sp-azr .sp-title { animation: azTitle .9s 2.45s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes azTitle { to { opacity: 1; transform: none; filter: none; } }
.sp-azr .sp-sub { color: rgba(190, 180, 238, .88); letter-spacing: .36em; font-size: .62rem; }
.az-veil { position: absolute; inset: 0; z-index: 3; background: #05050B; pointer-events: none; }
.splash.go .az-veil { animation: fadeTo0 .9s .05s ease forwards; }
@media (prefers-reduced-motion: reduce) {
  .sp-azr .az-word path, .sp-azr .az-word circle, .az-frame .f1, .az-frame .f2 { stroke-dashoffset: 0; }
  .az-veil, .az-beam { opacity: 0; }
  .az-sky, .az-floor, .az-dev, .az-screen, .az-mark, .az-imei, .az-frame .nt, .sp-azr .sp-title, .sp-azr .sp-sub { opacity: 1; transform: none; filter: none; }
}

/* ---------- AZORA tariffs on the landing page ---------- */
.azr-tariffs { grid-column: 1 / -1; display: grid; gap: 10px; min-width: 0; }
.azr-tariffs h3 { margin: 6px 0 0; font-family: 'Unbounded', var(--font-b); font-size: 1.15rem; color: #F6F3FF; }
.azr-tariffs > p { margin: 0; color: #ABA5D2; font-size: .9rem; }
.azr-tariffs .tariffs { margin-top: 6px; }
.azr-tariffs .tariff { --t-bg: rgba(255, 255, 255, .04); background: rgba(14, 12, 30, .72); border-color: rgba(170, 150, 255, .2); color: #F2EFFF; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.azr-tariffs .tariff.pop { border-color: transparent; background: linear-gradient(rgba(16, 13, 36, .92), rgba(16, 13, 36, .92)) padding-box, linear-gradient(120deg, #3DE3FF, #8B5CFF 50%, #FF5CC8) border-box; box-shadow: 0 18px 50px rgba(139, 92, 255, .3); }
.azr-tariffs .tariff h3 { font-family: 'Unbounded', var(--font-b); letter-spacing: .04em; color: #fff; }
.azr-tariffs .tariff .t-price b { background: linear-gradient(100deg, #7DEBFF, #B99BFF 55%, #FF8FD8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.azr-tariffs .tariff .t-sub, .azr-tariffs .tariff .t-limits, .azr-tariffs .tariff li { color: #C3BDE6; }
.azr-tariffs .tariff li .ic { color: #5CEBFF; }
.azr-tariffs .tariff .t-badge { background: linear-gradient(100deg, #3DE3FF, #8B5CFF 55%, #FF5CC8); color: #fff; }
.azr-tariffs .tariff .btn.primary { --b-bg: linear-gradient(100deg, #179FD0, #7C4DFF 52%, #E0479F); --b-fg: #fff; border: 0; }
.azr-tariffs .tariff .btn.ghost { --b-fg: #F2EFFF; border-color: rgba(170, 150, 255, .4); }
.ed-chip { font-size: .66rem; vertical-align: middle; margin-left: 6px; }
.ed-chip.azora { color: #fff; background: linear-gradient(100deg, #179FD0, #7C4DFF 52%, #E0479F); border-color: transparent; }

/* ---------- the owner's AZORA panel ---------- */
.azr-panel { display: grid; gap: 14px; min-width: 0; padding: 16px; border-radius: 24px; background: var(--card-bg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); }
.azr-ph { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.azr-ph h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--font-d); font-size: 1.05rem; }
.azr-ph h2 .ic { width: 20px; height: 20px; color: var(--accent); }
.azr-ph span { font-size: .8rem; color: var(--muted); }
.azr-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .azr-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .azr-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.azr-k { display: grid; gap: 2px; min-width: 0; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.azr-k small, .azr-k span { font-size: .72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.azr-k small { white-space: nowrap; }
.azr-k b { font-family: var(--font-d); font-size: clamp(1rem, .85rem + .8vw, 1.22rem); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.azr-k b i { font-style: normal; font-family: var(--font-b); font-size: .6em; font-weight: 600; color: var(--muted); }
.azr-k.pos b { color: var(--ok); }
.azr-k.neg b { color: var(--bad); }
.azr-mix { display: grid; gap: 10px; }
.azr-bar { display: flex; height: 10px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .06); }
.azr-bar i { display: block; height: 100%; min-width: 0; transition: width .6s var(--ease); }
.azr-mix .m1 { background: linear-gradient(90deg, #3DE3FF, #5FB8FF); }
.azr-mix .m2 { background: linear-gradient(90deg, #8B5CFF, #B58BFF); }
.azr-mix .m3 { background: linear-gradient(90deg, #FF5CC8, #FF8FA8); }
.azr-mix .m4 { background: var(--muted); }
.azr-mix ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); font-size: .82rem; }
.azr-mix li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0 8px; min-width: 0; }
.azr-mix li > i { width: 10px; height: 10px; border-radius: 3px; }
.azr-mix li span { color: var(--muted); }
.azr-mix li small { grid-column: 2 / -1; color: var(--muted); font-size: .7rem; }
.azr-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .azr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .azr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.azr-box { display: grid; align-content: start; gap: 8px; min-width: 0; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.azr-box h3 { margin: 0; font-size: .92rem; }
.azr-box .kv { margin: 0; }
.azr-box p { margin: 0; font-size: .86rem; display: flex; align-items: center; gap: 6px; }
.azr-box p .ic { width: 16px; height: 16px; }
.azr-rank, .azr-last, .azr-att, .azr-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.azr-rank li, .azr-last button { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 2px; }
.azr-last button { width: 100%; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 10px; }
.azr-last button:hover { background: rgba(255, 255, 255, .04); }
.azr-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; font-size: .78rem; font-weight: 800; background: rgba(139, 92, 255, .2); color: #D3C4FF; }
.azr-rank li:first-child .azr-n { background: linear-gradient(120deg, #3DE3FF, #8B5CFF 50%, #FF5CC8); color: #fff; }
.azr-who { display: grid; min-width: 0; }
.azr-who b, .azr-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.azr-who b { font-size: .86rem; }
.azr-who small { font-size: .72rem; color: var(--muted); }
.azr-rank li > b, .azr-last b:last-child { font-size: .86rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.azr-t { font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 40px; }
.azr-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; }
.azr-bars li i { grid-column: 1 / -1; display: block; height: 6px; width: var(--w); min-width: 4px; border-radius: 99px; background: linear-gradient(90deg, #3DE3FF, #8B5CFF 60%, #FF5CC8); }
.azr-bn { display: grid; min-width: 0; font-size: .86rem; }
.azr-bn small { font-size: .72rem; color: var(--muted); }
.azr-bars b { font-size: .86rem; white-space: nowrap; }
.azr-att button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--text); font: inherit; font-size: .84rem; text-align: left; cursor: pointer; }
.azr-att button:hover { border-color: rgba(170, 150, 255, .4); }
.azr-att button > .ic:first-child { width: 18px; height: 18px; color: var(--warn); flex: none; }
.azr-att button span { flex: 1; min-width: 0; }
.azr-att button > .ic:last-child { width: 16px; height: 16px; color: var(--muted); flex: none; }

/* ---------- AZORA clients ---------- */
.cl-ava { font-weight: 800; font-size: .95rem; background: linear-gradient(140deg, rgba(61, 227, 255, .22), rgba(139, 92, 255, .3)); color: #E6DEFF; }
.cl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.cl-head > span { display: flex; align-items: center; gap: 6px; font-weight: 600; margin-right: auto; }
.cl-head > span .ic { width: 16px; height: 16px; color: var(--muted); }
.cl-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.cl-kpis > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); }
.cl-kpis small { font-size: .72rem; color: var(--muted); }
.cl-kpis b { font-size: 1rem; font-variant-numeric: tabular-nums; }
.cl-h { margin: 4px 0 6px; font-size: .9rem; }
.cl-ph { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cl-ph li > button, .cl-ph li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cl-ph li > button { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface2); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.cl-ph li:not(:has(button)) { padding: 8px; border: 1px solid var(--line); border-radius: 14px; }
.cl-ph .db-t { flex: 1; min-width: 0; display: grid; gap: 2px; justify-items: start; }
.cl-ph .db-t b, .cl-ph .db-t small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-ph .db-t .chip { margin-top: 2px; }
.cl-ph .chip { flex: none; }
.cl-acc { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }

/* ---------- the AZORA sign-up: violet accents, gradient buttons, aurora behind the form ---------- */
.auth.reg.reg-az { --primary: #A386FF; --on-primary: #FFFFFF; --accent: #3DE3FF; background: radial-gradient(60% 40% at 0% 0%, rgba(61, 227, 255, .13), transparent 60%), radial-gradient(50% 40% at 100% 18%, rgba(139, 92, 255, .2), transparent 60%), radial-gradient(60% 40% at 50% 100%, rgba(255, 92, 200, .1), transparent 60%), var(--bg); }
.reg-az .btn.primary { --b-bg: linear-gradient(100deg, #179FD0 0%, #7C4DFF 52%, #E0479F 100%); --b-fg: #fff; border: 0; box-shadow: 0 10px 26px rgba(124, 77, 255, .38), inset 0 1px 0 rgba(255, 255, 255, .3); text-shadow: 0 1px 2px rgba(30, 0, 70, .35); }
.reg-az .tariff.pick.sel { border-color: #A386FF; box-shadow: 0 0 0 4px rgba(139, 92, 255, .22), 0 16px 40px rgba(139, 92, 255, .22); }
.reg-az .t-badge:not(.trial) { background: linear-gradient(100deg, #179FD0, #7C4DFF 52%, #E0479F); color: #fff; }
.reg-az .tariff .t-price b { background: linear-gradient(100deg, #7DEBFF, #B99BFF 55%, #FF8FD8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.reg-az .steps li.done span, .reg-az .tariff.pick.sel .t-check { background: linear-gradient(120deg, #3DE3FF, #8B5CFF 50%, #FF5CC8); border-color: transparent; color: #fff; }

/* ================= v2.6: AZORA team & money ================= */
.role-keeper { --rc: var(--role-keeper, #34C98E); } .role-master { --rc: var(--role-master, #FF9F5A); }
[data-design="azora"] { --role-keeper: #34E8A6; --role-master: #FFB86B; }
.team-roles li > span small, .team-roles .tr-btn > span small { display: block; font-size: .72rem; color: var(--muted); font-weight: 500; }
/* the shop's shift */
.az-shift { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; min-width: 0; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--card-bg); box-shadow: var(--shadow-sm); }
.az-shift.az-sh-none { border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: linear-gradient(100deg, color-mix(in srgb, var(--warn) 12%, transparent), transparent 70%), var(--surface); }
.az-shift.az-sh-open { border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.az-sh-ic { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: color-mix(in srgb, var(--primary) 18%, transparent); color: var(--primary); }
.az-sh-none .az-sh-ic { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.az-sh-open .az-sh-ic { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.az-sh-ic .ic { width: 20px; height: 20px; }
.az-sh-t { display: grid; flex: 1 1 200px; min-width: 0; gap: 2px; }
.az-sh-t b { font-size: .92rem; }
.az-sh-t small { font-size: .78rem; color: var(--muted); }
.az-shift .btn { flex: none; }
.az-shift.multi { display: grid; gap: 8px; }
.az-sh-head { display: flex; align-items: center; gap: 8px; }
.az-sh-head .ic { width: 18px; height: 18px; color: var(--primary); }
.az-sh-head b { flex: 1; }
.az-shift.multi ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.az-shift.multi li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.az-shift.multi li.az-sh-none { border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.az-sh-b { font-weight: 700; min-width: 90px; }
.az-mini { list-style: none; margin: 4px 0 0; padding: 8px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 4px; font-size: .82rem; }
.az-mini li { display: flex; justify-content: space-between; gap: 8px; }
.az-exp { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); }
.az-exp span { color: var(--muted); font-size: .86rem; }
.az-exp b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.az-diff:empty { display: none; }
.az-mix .hint { margin: 4px 0 0; }
.az-inc { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.az-inc span { flex: 1 1 220px; }
.az-tr-path { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 1rem; }
.az-tr-path .ic { width: 18px; height: 18px; color: var(--muted); }
.az-pick { display: grid; gap: 4px; max-height: 260px; overflow: auto; margin-top: 8px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; }
.az-pick .check { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; }
.az-pick .check:hover { background: rgba(255, 255, 255, .04); }
.az-pick .check span { display: grid; min-width: 0; }
.az-pick .check small { font-size: .74rem; color: var(--muted); }
.az-add { display: grid; grid-template-columns: minmax(0, 1fr) 90px auto; gap: 8px; align-items: end; }
.az-add .field { margin: 0; }
.az-credit { display: flex; align-items: flex-end; }
.az-audit { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.az-audit li { display: grid; grid-template-columns: 48px minmax(90px, 150px) minmax(0, 1fr); gap: 4px 12px; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: .86rem; align-items: start; }
.az-au-t { color: var(--muted); font-variant-numeric: tabular-nums; }
.az-au-w { display: grid; min-width: 0; }
.az-au-w b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.az-au-w small { color: var(--muted); font-size: .74rem; }
.az-au-x { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .az-audit li { grid-template-columns: 44px minmax(0, 1fr); } .az-au-x { grid-column: 2; } }

/* ===== v2.6: language chooser RU / KG / EN ===== */
.lang-list { display: grid; gap: 10px; }
.lang-opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); background: transparent; color: var(--text); font: 600 1rem/1.2 var(--font-b); text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.lang-opt b { flex: none; display: inline-grid; place-items: center; min-width: 46px; height: 32px; border-radius: 9px; border: 1px solid var(--line); font-size: .78rem; letter-spacing: .06em; }
.lang-opt span { flex: 1; }
.lang-opt svg { flex: none; width: 20px; height: 20px; color: var(--primary); }
.lang-opt:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--line)); }
.lang-opt.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, transparent); }
.lang-opt.on b { border-color: var(--primary); color: var(--primary); }
.lang-opt:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ===== v2.7: smooth scrolling on every phone =====
   The picture behind the pages stands still and has its own layer, nothing is blurred under moving content,
   and rows of long lists that are far off screen are not drawn until they come close. */
.bg-fx { transform: translateZ(0); will-change: transform; contain: strict; }
.bg-fx i, .bg-fx::before, .bg-fx::after { animation: none !important; }
[data-design="azora"] .bg-fx {
  background:
    radial-gradient(62vmax 36vmax at 8% 6%, rgba(61, 227, 255, .24), rgba(61, 227, 255, 0) 70%),
    radial-gradient(56vmax 42vmax at 94% 32%, rgba(139, 92, 255, .30), rgba(139, 92, 255, 0) 70%),
    radial-gradient(50vmax 32vmax at 46% 102%, rgba(255, 92, 200, .18), rgba(255, 92, 200, 0) 70%),
    radial-gradient(120% 70% at 50% -10%, #171238 0%, #07060E 58%), #06060C;
}
[data-design="azora"] .bg-fx i, [data-design="gold"] .bg-fx i, [data-design="emerald"] .bg-fx i, [data-design="ocean"] .bg-fx i { display: none !important; }
:root, [data-design] { --glass: none; }
.card, .kpi, .emp-card, .branch-card, .sa-store, .task-card, .news, .dm-hero, .chk-own, .gate-card, .azr-feats li, .azr-tariffs .tariff, .azr-panel,
.top, .tabbar, .side, .pub-head { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.top, .pub-head { background: color-mix(in srgb, var(--bg) 95%, transparent); }
.tabbar { background: color-mix(in srgb, var(--bg2) 97%, transparent); }
[data-design="emerald"] .side, [data-design="emerald"] .top, [data-design="emerald"] .tabbar { background: rgba(255, 255, 255, .96); }
[data-design="azora"] { --surface: rgba(17, 15, 36, .86); }
[data-design="ocean"] { --surface: rgba(5, 20, 42, .88); }
.debt, .mv, .task-card, .emp-card, .branch-card, .news, .rep-row, .att-row, .exp-row, .pay-row, .do-row, .hist-row, .sr-row, .sa-store { content-visibility: auto; }
.debt, .mv, .att-row, .exp-row, .pay-row, .do-row, .hist-row, .sr-row { contain-intrinsic-size: auto 88px; }
.task-card, .emp-card, .branch-card, .news, .rep-row, .sa-store { contain-intrinsic-size: auto 180px; }

/* v2.8 Android APK: download block in «Установить приложение»; inside the app the install buttons are hidden */
.inst-apk .btn { justify-content: center; gap: 8px; }
.inst-apk .btn small { opacity: .72; font-weight: 600; font-size: .78rem; }
.inst-block > .btn.sm { justify-self: start; margin-top: 4px; }
.in-app [data-act="install"], .in-app .inst-apk { display: none !important; }

/* v2.9 — write-off with photo, transfers, dead stock, cash journal, training, anomalies */
.mv-tr .mv-ic { color: var(--info); background: color-mix(in srgb, var(--info) 14%, transparent); }
.mv.mv-r-writeoff { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.mv-r-staff .mv-ic, .mv-r-owner .mv-ic { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.att-ph.mv-ph, .att-ph.co-ph { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; cursor: zoom-in; }
.mv-extra { display: grid; gap: 12px; padding: 12px; border-radius: 14px; border: 1px dashed var(--line); background: color-mix(in srgb, var(--bg) 40%, var(--surface)); }
.mv-extra[hidden] { display: none; }
p.mv-extra { display: flex; gap: 8px; align-items: flex-start; }

.ds .card-head { flex-wrap: wrap; gap: 10px; }
.ds-list, .co-list, .anom-list, .lr-list { list-style: none; margin: 8px 0 0; padding: 0; }
.ds-i, .co, .lr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.ds-i:first-child, .co:first-child, .lr:first-child { border-top: 0; }
.ds-i:has(.ds-n) { grid-template-columns: auto minmax(0, 1fr) auto; }
.ds-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; font-weight: 800; background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--primary); }
.ds-main, .co-main, .lr-main { display: grid; gap: 3px; min-width: 0; }
.ds-main small, .co-main small, .lr-main small { color: var(--muted); }
.ds-v { display: grid; justify-items: end; gap: 2px; }
.ds-v small { color: var(--muted); }
.co { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.co-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.fin-cash .card-head, .fin-goods .card-head { flex-wrap: wrap; gap: 10px; }
.lr { grid-template-columns: auto minmax(0, 1fr) auto; }

.les-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.les { display: grid; gap: 12px; align-content: start; }
.les-h { display: flex; gap: 12px; align-items: center; }
.les-h > div { display: grid; gap: 3px; min-width: 0; }
.les-h small { color: var(--muted); }
.les-ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; color: var(--primary); background: color-mix(in srgb, var(--primary) 15%, transparent); }
.les-ok .les-ic { color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, transparent); }
.les-st { margin: 0; color: var(--muted); }
.les-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.les-act .btn { margin-right: auto; }
.les-text { line-height: 1.55; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--bg) 40%, var(--surface)); }
.qz { display: grid; gap: 14px; }
.qz h3 { margin: 4px 0 0; }
.qz-q { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 8px; }
.qz-q legend { padding: 0 6px; font-weight: 600; line-height: 1.4; }
.qz-o { display: flex; gap: 10px; align-items: center; padding: 10px 12px; min-height: 44px; border-radius: 12px; cursor: pointer; background: color-mix(in srgb, var(--bg) 35%, var(--surface)); }
.qz-o:has(input:checked) { outline: 2px solid var(--primary); }
.qz-o input, .qz-opt input[type="radio"] { width: 20px; height: 20px; flex: none; accent-color: var(--primary); }
.qz-ed { display: grid; gap: 8px; padding: 12px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 14px; }
.qz-ed-h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.qz-ed-h > b { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 8px; border-radius: 10px; background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--primary); }
.qz-opt { display: flex; gap: 10px; align-items: center; }
.qz-opt input[type="text"] { flex: 1; min-width: 0; }

.anom { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.anom .card-head h2 { color: var(--bad); }
.anom-i { padding: 10px 0; border-top: 1px solid var(--line); line-height: 1.5; }
.anom-i:first-child { border-top: 0; }
.anom-i small { color: var(--muted); margin: 0 4px; }
.st-cash { margin-top: 2px; }

/* v3.0 — landing: one page that adapts to the visitor's business */
.home3.ed-market .only-a, .home3.ed-azora .only-m, .home3.ed-azora [data-h3="m"] { display: none !important; }
.home3 .h3-cta { display: contents; }
.home3 .h3-hero { position: relative; z-index: 0; }
.home3 .h3-glow { position: absolute; z-index: -1; left: -24px; right: -24px; top: -40px; height: 760px; border-radius: 40px; pointer-events: none; background: radial-gradient(55% 55% at 72% 34%, rgba(242, 193, 78, .14), rgba(242, 193, 78, 0) 70%); transition: opacity .5s; }
.home3.ed-azora .h3-glow { background: radial-gradient(55% 55% at 72% 34%, rgba(143, 123, 255, .30), rgba(143, 123, 255, 0) 70%), radial-gradient(40% 40% at 18% 70%, rgba(51, 225, 255, .14), rgba(51, 225, 255, 0) 70%); }
.h3-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 22px; }
.h3-sw-lab { font-size: 14px; font-weight: 600; opacity: .72; }
.h3-sw { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.h3-sw button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: rgba(255, 255, 255, .78); font: inherit; font-weight: 700; font-size: 15px; white-space: nowrap; cursor: pointer; transition: color .3s; }
.h3-sw button svg { width: 18px; height: 18px; flex: none; }
.h3-sw button.on { color: #1A1205; }
.home3.ed-azora .h3-sw button.on { color: #fff; }
.h3-sw button:focus-visible { outline: 2px solid #FFE29A; outline-offset: 2px; }
.h3-sw-ind { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: linear-gradient(180deg, #FFE7A0, #F2C14E 55%, #DDA21F); box-shadow: 0 8px 24px rgba(242, 193, 78, .35); transition: transform .45s cubic-bezier(.2, .8, .2, 1), background .45s, box-shadow .45s; }
.home3.ed-azora .h3-sw-ind { transform: translateX(100%); background: linear-gradient(90deg, #33E1FF, #8F7BFF 55%, #FF5CC8); box-shadow: 0 8px 26px rgba(143, 123, 255, .45); }
.h3-kick { margin-bottom: 14px; }
.h3-kicker { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(242, 193, 78, .45); background: rgba(242, 193, 78, .08); color: #F6D27A; font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.h3-azwm { width: min(200px, 60%); filter: drop-shadow(0 0 16px rgba(139, 92, 255, .5)); }
.h3-steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.h3-steps-list li { position: relative; padding: 22px 20px 20px; border-radius: 22px; background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .1); }
.h3-n { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 12px; border-radius: 14px; font-weight: 800; font-size: 20px; color: #1A1205; background: linear-gradient(180deg, #FFE7A0, #F2C14E 55%, #DDA21F); box-shadow: 0 8px 20px rgba(242, 193, 78, .3); }
.home3.ed-azora .h3-n { color: #fff; background: linear-gradient(135deg, #33E1FF, #8F7BFF 55%, #FF5CC8); box-shadow: 0 8px 22px rgba(143, 123, 255, .4); }
.h3-steps-list b { display: block; margin-bottom: 6px; font-size: 18px; }
.h3-steps-list small { display: block; font-size: 14px; line-height: 1.5; opacity: .72; }
.h3-steps-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.home3.ed-azora .f-ic { color: #fff !important; background: linear-gradient(135deg, #33E1FF, #8F7BFF 55%, #FF5CC8) !important; }
@media (min-width: 760px) {
  .h3-steps-list { grid-template-columns: repeat(3, 1fr); }
  .h3-steps-list li:not(:last-child)::after { content: ""; position: absolute; top: 43px; right: -14px; width: 14px; height: 2px; background: rgba(242, 193, 78, .6); }
  .home3.ed-azora .h3-steps-list li:not(:last-child)::after { background: rgba(143, 123, 255, .7); }
}
@media (max-width: 560px) {
  .h3-switch { flex-direction: column; align-items: stretch; }
  .h3-sw { width: 100%; border-radius: 22px; }
  .h3-sw-ind { border-radius: 18px; }
  .h3-sw button { min-height: 54px; padding: 6px 12px; border-radius: 18px; font-size: 14px; line-height: 1.15; white-space: normal; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .h3-sw-ind, .h3-sw button { transition: none; } }

/* v3.1 — online showcase (owner page, photos), AZORA contracts and commission */
.shp-phs { display: flex; flex-wrap: wrap; gap: 8px; }
.shp-ph { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--surface2); border: 1px solid var(--line); }
.shp-ph img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.shp-x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .62); color: #fff; display: grid; place-items: center; padding: 0; cursor: pointer; }
.shp-x .ic { width: 14px; height: 14px; }
.shp-main { position: absolute; left: 4px; bottom: 4px; font-style: normal; font-size: 11px; font-weight: 700; background: var(--primary); color: var(--on-primary); border-radius: 8px; padding: 1px 6px; }
.shp-add { width: 84px; height: 84px; border-radius: 12px; border: 1.5px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: .72rem; line-height: 1.15; color: var(--muted); cursor: pointer; text-align: center; padding: 6px; }
.shp-add:hover { border-color: var(--primary); color: var(--primary); }
.shp-add.busy { opacity: .5; pointer-events: none; }
.pr-shop { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
.pr-shop-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pr-shop-t { display: inline-flex; align-items: center; gap: 8px; }
.pr-shop-t .ic { color: var(--primary); }
.shp-top-h { display: flex; align-items: center; gap: 12px; }
.shp-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface2); color: var(--muted); flex: none; }
.shp-top.is-on .shp-ic { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.shp-top-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.shp-top-t small { color: var(--muted); }
.shp-url { margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); overflow-wrap: anywhere; }
.shp-url code { font-size: .9rem; }
.shp-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.shp-safe { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; font-size: .82rem; color: var(--muted); }
.shp-safe .ic { color: var(--ok); flex: none; }
.shp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .shp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shp-stat { background: var(--card-bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; min-width: 0; }
.shp-stat b { font-size: 1.3rem; font-family: var(--font-d); overflow-wrap: anywhere; }
.shp-stat small { color: var(--muted); font-size: .78rem; }
.shp-stat.warn b { color: var(--warn); }
.shp-pre { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.shp-pre span { display: flex; align-items: center; padding: 0 10px; background: var(--surface2); color: var(--muted); font-size: .85rem; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.shp-pre input { flex: 1; min-width: 0; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.shp-save { display: flex; justify-content: flex-end; }
.shp-cats, .shp-plist, .shp-brl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.shp-cats li, .shp-brl li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.shp-cats li:last-child, .shp-brl li:last-child, .shp-pr:last-child { border-bottom: 0; }
.shp-cn { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; overflow-wrap: anywhere; }
.shp-cn small { color: var(--muted); }
.shp-ca { display: flex; gap: 2px; flex: none; }
.shp-ca .icon-btn.up .ic { transform: rotate(180deg); }
.shp-pr { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.shp-pr.off .shp-pb { opacity: .55; }
.shp-pb { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px 0; border: 0; background: none; text-align: left; color: inherit; cursor: pointer; font: inherit; }
.shp-th { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: none; background: var(--surface2); }
.shp-th.none { display: grid; place-items: center; color: var(--muted); }
.shp-pt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.shp-pt b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shp-pt small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shp-wa { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; white-space: nowrap; }
@media (max-width: 560px) { .shp-brl li { flex-wrap: wrap; } .shp-wa { order: 3; width: 100%; } }
.phx-ctr { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
.phx-ctr[hidden] { display: none; }
.phx-ctr-h { margin: 0; font-size: .9rem; }
.phx-who-d summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 600; list-style: none; }
.phx-who-d summary::-webkit-details-marker { display: none; }
.phx-who-d summary .ic { color: var(--primary); }
.phx-who-d:not([open]) { gap: 0; }
.phx-com-top { display: flex; flex-direction: column; gap: 10px; }
.phx-com-top .shp-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.phx-clist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.phx-crow { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card-bg); color: inherit; text-align: left; cursor: pointer; font: inherit; }
.phx-ct { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.phx-ct b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phx-ct small { color: var(--muted); font-size: .8rem; }
.phx-term { color: var(--muted); white-space: nowrap; }
.ctr-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ctr-paper { background: #fff; color: #000; border: 1px solid var(--line); border-radius: 12px; padding: 20px 18px; max-height: 58vh; overflow: auto; }
.ctr { font: 12.5px/1.5 'Times New Roman', Times, serif; color: #000; max-width: 740px; margin: 0 auto; }
.ctr h2 { text-align: center; font-size: 16px; margin: 0 0 2px; letter-spacing: .3px; color: #000; font-family: inherit; }
.ctr .ctr-c { text-align: center; margin: 0 0 12px; font-style: italic; }
.ctr .ctr-row { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.ctr h3 { font-size: 13px; margin: 12px 0 4px; color: #000; font-family: inherit; }
.ctr p { margin: 4px 0; text-align: justify; color: #000; }
.ctr-t { width: 100%; border-collapse: collapse; margin: 6px 0; }
.ctr-t th, .ctr-t td { border: 1px solid #000; padding: 4px 8px; text-align: left; font-size: 12px; vertical-align: top; color: #000; }
.ctr-t th { width: 34%; font-weight: 600; background: #f3f3f3; }
.ctr-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 22px; }
.ctr-sign div { display: flex; flex-direction: column; gap: 4px; }
.ctr-sign i { font-size: 11.5px; }
.ctr-l { margin-top: 14px; }
.ctr-copy img { max-width: 100%; max-height: 120mm; margin: 8px 0; border: 1px solid #ccc; }
#print-area { display: none; }
@media print {
  body.printing > *:not(#print-area) { display: none !important; }
  body.printing #print-area { display: block !important; }
  body.printing { background: #fff !important; }
  .ctr-copy { break-before: page; page-break-before: always; }
  @page { size: A4; margin: 14mm; }
}
