/* Erudite Shop admin — light theme design system. */
:root {
  color-scheme: light;
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e4e8ef;
  --border-strong: #cfd6e0;
  --text: #172033;
  --text-2: #4b5567;
  --muted: #7b8496;
  --primary: #2a78d6;
  --primary-600: #2063b5;
  --primary-50: #edf4fd;
  --primary-100: #d6e7fb;
  --success: #138a4c; --success-50: #e8f6ee;
  --warning: #b56a00; --warning-50: #fff4e0;
  --danger: #d03b3b; --danger-50: #fdecec;
  --teal: #0f8c84; --teal-50: #e3f5f3;
  --violet: #6250d6; --violet-50: #efedfc;
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --series-4: #eda100;
  --series-5: #e87ba4; --series-6: #008300; --series-7: #6250d6; --series-8: #e34948;
  --seq-1: #d9e8fb; --seq-2: #b1d0f6; --seq-3: #7fb1ef; --seq-4: #4a8fe5; --seq-5: #2a78d6; --seq-6: #1c5aa5; --seq-7: #103e75;
  --grid: #e9edf2;
  --radius: 14px; --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 10px 30px rgba(16, 24, 40, .12);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14.5px/1.5 var(--font); }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; color: var(--text); }
h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.2rem; font-weight: 650; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin: 0 0 .6rem; }
small, .small-text { font-size: .82rem; }
code { font: .85em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: .1rem .35rem; border-radius: 5px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1rem 0; }
.i { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.i.lg { width: 22px; height: 22px; }
.i.xl { width: 30px; height: 30px; }
.i.sm { width: 15px; height: 15px; vertical-align: -2px; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.num, .money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.num { text-align: right; }
.nowrap { white-space: nowrap; }
.ok-text { color: var(--success); } .warn-text { color: var(--warning); } .bad-text { color: var(--danger); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 1rem .8rem; }
.brand { display: flex; align-items: center; gap: .7rem; padding: .3rem .5rem 1rem; color: var(--text); }
.brand:hover { text-decoration: none; color: var(--text); }
.brand-logo { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #2a78d6, #6250d6); box-shadow: 0 4px 12px rgba(42, 120, 214, .35); }
.brand-logo .i { width: 22px; height: 22px; }
.brand b { display: block; font-size: 1rem; }
.brand small { color: var(--muted); font-size: .75rem; }
.nav-group { margin-top: .8rem; }
.nav-title { font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 0 .7rem .35rem; }
.nav a { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 10px; color: var(--text-2); font-weight: 500; }
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a[aria-current] { background: var(--primary-50); color: var(--primary); font-weight: 650; }
.nav a[aria-current] .i { color: var(--primary); }
.nav .i { color: var(--muted); }
.nav .count { margin-left: auto; background: var(--danger); color: #fff; font-size: .72rem; font-weight: 700; min-width: 22px;
  height: 20px; border-radius: 999px; display: grid; place-items: center; padding: 0 6px; }
.side-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: .5rem; }
.me { display: flex; align-items: center; gap: .6rem; padding: .3rem .4rem; }
.me b { display: block; font-size: .88rem; line-height: 1.2; }
.me small { color: var(--muted); }
.side-links { display: flex; flex-direction: column; gap: .1rem; }
.side-links a, .side-links button { display: flex; align-items: center; gap: .6rem; padding: .45rem .7rem; border-radius: 9px; color: var(--text-2);
  font: inherit; font-size: .88rem; background: none; border: 0; cursor: pointer; width: 100%; text-align: left; }
.side-links a:hover, .side-links button:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.side-links form { margin: 0; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(244, 246, 250, .88); backdrop-filter: blur(8px);
  display: flex; align-items: center; gap: 1rem; padding: .8rem 2rem; border-bottom: 1px solid transparent; }
.topbar.scrolled { border-bottom-color: var(--border); }
.global-search { flex: 1; max-width: 460px; position: relative; margin: 0; }
.global-search .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.global-search input { padding-left: 38px; background: var(--surface); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.menu-toggle { display: none; }
.content { padding: 1rem 2rem 3rem; max-width: 1480px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: .3rem 0 1.3rem; }
.page-head .sub { color: var(--muted); margin-top: .25rem; }
.page-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.back { display: inline-flex; align-items: center; gap: .35rem; color: var(--text-2); font-weight: 500; margin-bottom: .4rem; }
.back:hover { color: var(--primary); text-decoration: none; }

/* ---------- cards & grids ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem 1.3rem; min-width: 0; }
.card + .card { margin-top: 1rem; }
.grid > .card, .kpis > .card, .stack > .card, .split > * > .card:first-child { margin-top: 0; }
.grid > .card.section-gap { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; flex-wrap: wrap; }
.card-head h2, .card-head h3 { display: flex; align-items: center; gap: .55rem; }
.card-head h2 .i, .card-head h3 .i { color: var(--muted); }
.card-sub { color: var(--muted); font-size: .85rem; margin-top: -.6rem; margin-bottom: 1rem; }
.card.flat { box-shadow: none; }
.grid { display: grid; gap: 1rem; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 1rem; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.sticky-col { position: sticky; top: 84px; }
.section-gap { margin-top: 1.5rem; }

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.kpi { position: relative; overflow: hidden; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.kpi-label { color: var(--text-2); font-weight: 550; font-size: .88rem; }
.kpi-value { font-size: clamp(1.25rem, 1.55vw, 1.65rem); white-space: nowrap; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi-value small { font-size: .9rem; font-weight: 600; color: var(--text-2); }
.kpi-foot { margin-top: .5rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.chip-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.chip-icon.blue { background: var(--primary-50); color: var(--primary); }
.chip-icon.green { background: var(--success-50); color: var(--success); }
.chip-icon.amber { background: var(--warning-50); color: var(--warning); }
.chip-icon.red { background: var(--danger-50); color: var(--danger); }
.chip-icon.teal { background: var(--teal-50); color: var(--teal); }
.chip-icon.violet { background: var(--violet-50); color: var(--violet); }
.chip-icon.gray { background: var(--surface-2); color: var(--text-2); }
.delta { display: inline-flex; align-items: center; gap: .15rem; font-weight: 650; font-size: .78rem; border-radius: 999px; padding: .1rem .5rem; }
.delta.up { background: var(--success-50); color: var(--success); }
.delta.down { background: var(--danger-50); color: var(--danger); }
.delta.flat { background: var(--surface-2); color: var(--muted); }

/* ---------- attention strip ---------- */
.attention { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.att { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.att:hover { text-decoration: none; color: var(--text); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.att b { font-size: 1.35rem; display: block; line-height: 1.1; }
.att span { color: var(--text-2); font-size: .85rem; }
.att .go { margin-left: auto; color: var(--muted); }
.att.urgent { border-color: #f3c3c3; background: linear-gradient(0deg, var(--danger-50), #fff 70%); }
.all-good { display: flex; align-items: center; gap: .8rem; padding: .9rem 1.1rem; border-radius: var(--radius); background: var(--success-50);
  color: var(--success); font-weight: 600; margin-bottom: 1rem; border: 1px solid #c8ead6; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; height: 38px; padding: 0 1rem; border-radius: 10px;
  border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; white-space: nowrap; line-height: 1;
  background: var(--primary); color: #fff; transition: background .12s, border-color .12s, box-shadow .12s; text-decoration: none; }
.btn:hover { background: var(--primary-600); color: #fff; text-decoration: none; }
.btn:focus-visible, .icon-btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--primary-100); outline-offset: 1px; }
.btn.secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn.secondary:hover { background: var(--surface-2); border-color: #b9c3d1; color: var(--text); }
.btn.ghost { background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #b32f2f; }
.btn.danger-outline { background: var(--surface); color: var(--danger); border-color: #f0b8b8; }
.btn.danger-outline:hover { background: var(--danger-50); color: var(--danger); }
.btn.success { background: var(--success); }
.btn.success:hover { background: #0f7540; }
.btn.lg { height: 46px; padding: 0 1.3rem; font-size: 1rem; border-radius: 12px; }
.btn.sm { height: 32px; padding: 0 .75rem; font-size: .82rem; border-radius: 8px; }
.btn.block { width: 100%; }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; display: inline-grid; place-items: center; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); cursor: pointer; padding: 0; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn.danger:hover { background: var(--danger-50); color: var(--danger); border-color: #f0b8b8; }
.icon-btn:disabled { opacity: .35; cursor: default; }
form.inline { display: inline-flex; margin: 0; }

/* ---------- forms ---------- */
label { display: block; font-weight: 550; font-size: .86rem; color: var(--text-2); margin-bottom: .9rem; }
label > input, label > select, label > textarea, label > .input-group { margin-top: .35rem; }
input, select, textarea { width: 100%; font: inherit; font-size: .92rem; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 10px; padding: .55rem .75rem; min-height: 40px; transition: border-color .12s; }
input:hover, select:hover, textarea:hover { border-color: #b3bdcb; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
textarea { resize: vertical; line-height: 1.45; }
select { appearance: none; padding-right: 2rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237b8496' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .6rem center; }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; accent-color: var(--primary); }
input[type=file] { padding: .4rem; }
input.invalid, select.invalid { border-color: var(--danger); background: var(--danger-50); }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; margin-top: .3rem; }
.field-error { display: block; color: var(--danger); font-weight: 500; font-size: .8rem; margin-top: .3rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 1rem; }
.input-group { display: flex; align-items: stretch; }
.input-group input { border-radius: 10px 0 0 10px; }
.input-group .addon { display: grid; place-items: center; padding: 0 .8rem; border: 1px solid var(--border-strong); border-left: 0;
  border-radius: 0 10px 10px 0; background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: .85rem; }
.money-input { font-size: 1.15rem; font-weight: 700; }

/* switch (checkbox styled as a toggle) */
.switch { display: flex; align-items: center; gap: .7rem; cursor: pointer; margin-bottom: .9rem; color: var(--text); font-weight: 550; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 42px; height: 24px; border-radius: 999px; background: #cdd4de; position: relative; flex: none; transition: background .15s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch input:checked + .track { background: var(--success); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 3px solid var(--primary-100); }
.switch .label small { display: block; color: var(--muted); font-weight: 400; }
.switch.compact { margin: 0; }

/* segmented control & tabs */
.segmented { display: inline-flex; background: #e8ecf2; border-radius: 11px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.segmented a, .segmented button { border: 0; background: transparent; padding: .42rem .85rem; border-radius: 8px; font: inherit; font-size: .86rem;
  font-weight: 600; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.segmented a:hover, .segmented button:hover { color: var(--text); text-decoration: none; }
.segmented [aria-current], .segmented .on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; overflow-x: auto; scrollbar-width: thin; }
.tabs a { display: inline-flex; align-items: center; gap: .45rem; padding: .7rem .9rem; color: var(--text-2); font-weight: 600; border-bottom: 2px solid transparent;
  margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a[aria-current] { color: var(--primary); border-bottom-color: var(--primary); }
.tabs .pill { background: var(--surface-2); color: var(--text-2); border-radius: 999px; padding: .05rem .5rem; font-size: .75rem; font-weight: 700; }
.tabs a[aria-current] .pill { background: var(--primary-50); color: var(--primary); }
.tabs .pill.hot { background: var(--danger); color: #fff; }
.lang-tabs { display: inline-flex; gap: .3rem; margin-bottom: .8rem; }
.lang-tabs button { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--border); background: var(--surface); border-radius: 9px;
  padding: .35rem .7rem; font: inherit; font-size: .85rem; font-weight: 600; color: var(--text-2); cursor: pointer; }
.lang-tabs button.on { border-color: var(--primary); background: var(--primary-50); color: var(--primary); }
.lang-tabs .dot { display: inline-block; flex: none; width: 7px; height: 7px; padding: 0; border-radius: 50%; background: var(--success); }
.lang-tabs .dot.missing { background: var(--warning); }
.lang-pane[hidden] { display: none; }

/* chips */
.chips { display: flex; gap: .45rem; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  padding: .35rem .75rem; border-radius: 999px; font-size: .84rem; font-weight: 550; white-space: nowrap; }
.chip:hover { border-color: var(--border-strong); color: var(--text); text-decoration: none; }
.chip[aria-current] { background: var(--text); border-color: var(--text); color: #fff; }
.chip .n { color: var(--muted); font-weight: 600; }
.chip[aria-current] .n { color: #c9d1dd; }
.chip.warn { border-color: #f3d39b; background: var(--warning-50); color: var(--warning); }

/* badges */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 999px; font-size: .76rem; font-weight: 650; white-space: nowrap; line-height: 1.3; }
.badge .i { width: 13px; height: 13px; }
.st-awaiting_payment { background: #eef0f4; color: #5b6475; }
.st-new { background: var(--primary-50); color: var(--primary); }
.st-accepted { background: var(--warning-50); color: var(--warning); }
.st-ready { background: var(--teal-50); color: var(--teal); }
.st-delivered { background: var(--success-50); color: var(--success); }
.st-cancelled { background: var(--danger-50); color: var(--danger); }
.badge.gray { background: #eef0f4; color: #5b6475; }
.badge.blue { background: var(--primary-50); color: var(--primary); }
.badge.green { background: var(--success-50); color: var(--success); }
.badge.amber { background: var(--warning-50); color: var(--warning); }
.badge.red { background: var(--danger-50); color: var(--danger); }
.badge.violet { background: var(--violet-50); color: var(--violet); }
.badge.outline { background: transparent; border: 1px solid var(--border-strong); color: var(--text-2); }
.stock { display: inline-flex; align-items: center; gap: .35rem; font-weight: 650; font-size: .82rem; white-space: nowrap; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.stock.ok { color: var(--success); } .stock.ok::before { background: var(--success); }
.stock.low { color: var(--warning); } .stock.low::before { background: #f0a419; }
.stock.out { color: var(--danger); } .stock.out::before { background: var(--danger); }

/* avatars */
.avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: .8rem; flex: none; color: #fff; }
.avatar.lg { width: 56px; height: 56px; font-size: 1.15rem; }
.avatar.sm { width: 28px; height: 28px; font-size: .7rem; }
.av-0 { background: #2a78d6; } .av-1 { background: #eb6834; } .av-2 { background: #1baf7a; }
.av-3 { background: #6250d6; } .av-4 { background: #d55181; } .av-5 { background: #0f8c84; }
.person { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.person b { display: block; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person small { color: var(--muted); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -1.3rem; }
.table-wrap.flush { margin: 0; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700;
  padding: .6rem .9rem; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
td { padding: .75rem .9rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
th:first-child, td:first-child { padding-left: 1.3rem; }
th:last-child, td:last-child { padding-right: 1.3rem; }
tr.click { cursor: pointer; }
tr.click:hover td { background: #f7faff; }
tfoot td, tfoot th { background: var(--surface-2); font-weight: 650; text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--text); }
.order-no { font-weight: 700; color: var(--text); }
a.order-no:hover { color: var(--primary); }
table.compact td { padding: .55rem .9rem; }

/* ---------- pager ---------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; color: var(--muted); font-size: .85rem; flex-wrap: wrap; }
.pager .btns { display: flex; gap: .4rem; }

/* ---------- toolbar ---------- */
.toolbar { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.toolbar > input, .toolbar > select { width: auto; }
.toolbar .search { position: relative; flex: 1 1 260px; max-width: 380px; }
.toolbar .search .i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.toolbar .search input { padding-left: 36px; }
.toolbar select { min-width: 150px; }
.toolbar input[type=date] { width: 150px; }
.reset { color: var(--muted); font-size: .85rem; display: inline-flex; align-items: center; gap: .3rem; }

/* ---------- empty states ---------- */
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty .bubble-ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin: 0 auto .9rem; background: var(--surface-2); color: var(--muted); }
.empty .bubble-ico .i { width: 30px; height: 30px; }
.empty h3 { color: var(--text); margin-bottom: .3rem; }
.empty p { max-width: 420px; margin: 0 auto 1rem; }

/* ---------- toasts ---------- */
.toasts { position: fixed; top: 16px; right: 16px; z-index: 100; display: flex; flex-direction: column; gap: .5rem; max-width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: .65rem; background: #172033; color: #fff; padding: .8rem 1rem; border-radius: 12px; box-shadow: var(--shadow-lg);
  font-weight: 500; animation: toast-in .2s ease-out; }
.toast .i { color: #6ee7a8; margin-top: 1px; }
.toast.warn .i { color: #fbbf5c; }
.toast button { margin-left: auto; background: none; border: 0; color: #9aa6b8; cursor: pointer; padding: 0 0 0 .5rem; font-size: 1.1rem; line-height: 1; }
.toast.hide { opacity: 0; transform: translateY(-6px); transition: all .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- notices ---------- */
.notice { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 12px; background: var(--warning-50); color: #7a4a00; border: 1px solid #f4dcae; margin-bottom: 1rem; }
.notice.info { background: var(--primary-50); color: #1d4f8f; border-color: var(--primary-100); }
.notice.error { background: var(--danger-50); color: #8f2626; border-color: #f3c3c3; }
.notice .i { margin-top: 1px; }

/* ---------- charts ---------- */
.chart-box { position: relative; height: 270px; }
.chart-box.short { height: 220px; }
.twin { margin-top: .6rem; font-size: .84rem; }
.twin summary { color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; }
.twin table { margin-top: .5rem; }
.twin td, .twin th { padding: .35rem .6rem; }
.segbar { display: flex; height: 30px; border-radius: 8px; overflow: hidden; gap: 2px; margin: .3rem 0 .8rem; }
.segbar span { display: flex; align-items: center; justify-content: center; color: #fff; font-size: .76rem; font-weight: 700; min-width: 4px; }
.legend { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.legend li { display: flex; align-items: center; gap: .5rem; font-size: .88rem; }
.legend li .v { margin-left: auto; font-weight: 650; font-variant-numeric: tabular-nums; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.seg-new, .seg-payme, .seg-pickup { background: var(--series-1); }
.seg-awaiting_payment { background: #9aa3b2; }
.seg-accepted { background: var(--series-4); }
.seg-ready, .seg-cash { background: var(--series-3); }
.seg-delivered { background: var(--series-6); }
.seg-cancelled { background: var(--series-8); }
.seg-click, .seg-delivery { background: var(--series-2); }
.bars { display: grid; gap: .65rem; }
.bar-row .top { display: flex; justify-content: space-between; font-size: .86rem; margin-bottom: .25rem; gap: .5rem; }
.bar-row .track { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar-row .fill { height: 100%; background: var(--primary); border-radius: 999px; width: 0; }
.progress { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.progress .fill { height: 100%; background: var(--success); width: 0; border-radius: 999px; }
.progress .fill.warn { background: #f0a419; } .progress .fill.bad { background: var(--danger); }
.heat-wrap { overflow-x: auto; }
table.heat { border-collapse: separate; border-spacing: 3px; width: auto; }
table.heat th, table.heat td { padding: 0; border: 0; background: none; font-size: .68rem; color: var(--muted); text-transform: none; letter-spacing: 0; text-align: center; font-weight: 600; }
table.heat th:first-child { padding-right: .4rem; text-align: right; }
table.heat td { width: 18px; height: 20px; border-radius: 4px; background: var(--grid); }
table.heat td.seq-1 { background: var(--seq-1); } table.heat td.seq-2 { background: var(--seq-2); } table.heat td.seq-3 { background: var(--seq-3); }
table.heat td.seq-4 { background: var(--seq-4); } table.heat td.seq-5 { background: var(--seq-5); } table.heat td.seq-6 { background: var(--seq-6); } table.heat td.seq-7 { background: var(--seq-7); }
.heat-legend { display: flex; align-items: center; gap: .3rem; font-size: .75rem; color: var(--muted); margin-top: .6rem; }
.heat-legend i { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }

/* ---------- best seller ---------- */
.hero { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1rem; color: #fff;
  background: linear-gradient(120deg, #2a78d6 0%, #6250d6 100%); box-shadow: 0 8px 24px rgba(42, 120, 214, .25); }
.hero img, .hero .ph { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: rgba(255, 255, 255, .2); flex: none; display: grid; place-items: center; }
.hero small { opacity: .85; display: block; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; }
.hero b { font-size: 1.15rem; display: block; }
.hero .stats { margin-left: auto; display: flex; gap: 1.5rem; text-align: right; }
.hero .stats b { font-size: 1.3rem; }

/* ---------- lists ---------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--border); color: var(--text); }
.list-item:last-child { border-bottom: 0; }
a.list-item:hover { text-decoration: none; background: #f7faff; margin: 0 -1.3rem; padding-left: 1.3rem; padding-right: 1.3rem; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .right { margin-left: auto; text-align: right; }

/* ---------- order detail ---------- */
.stepper { display: flex; align-items: flex-start; margin: .2rem 0 .3rem; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; font-size: .82rem; color: var(--muted); }
.step::before { content: ""; position: absolute; top: 17px; left: -50%; right: 50%; height: 3px; background: var(--border); z-index: 0; }
.step:first-child::before { display: none; }
.step .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--border-strong);
  color: var(--muted); position: relative; z-index: 1; margin-bottom: .4rem; }
.step.done { color: var(--text); font-weight: 600; }
.step.done .dot { background: var(--success); border-color: var(--success); color: #fff; }
.step.done::before { background: var(--success); }
.step.current .dot { box-shadow: 0 0 0 5px var(--success-50); }
.step time { display: block; color: var(--muted); font-weight: 400; font-size: .75rem; }
.cancelled-banner { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border-radius: 12px; background: var(--danger-50); color: #8f2626; }
.next-action { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: 1rem; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--border-strong); margin-top: 1rem; }
.next-action .txt { flex: 1; min-width: 200px; color: var(--text-2); font-size: .9rem; }
.item-row { display: flex; align-items: center; gap: .9rem; padding: .75rem 0; border-bottom: 1px solid var(--border); }
.item-row:last-child { border-bottom: 0; }
.item-row img, .item-row .ph { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--surface-2); flex: none; display: grid; place-items: center; color: var(--muted); }
.item-row .grow { flex: 1; min-width: 0; }
.item-row .grow b { display: block; }
.totals { margin-top: .6rem; border-top: 1px solid var(--border); padding-top: .7rem; display: grid; gap: .35rem; }
.totals div { display: flex; justify-content: space-between; color: var(--text-2); }
.totals .grand { color: var(--text); font-size: 1.15rem; font-weight: 750; padding-top: .3rem; }
.info-line { display: flex; align-items: flex-start; gap: .65rem; padding: .45rem 0; color: var(--text); }
.info-line .i { color: var(--muted); margin-top: 2px; }
.info-line .lbl { color: var(--muted); font-size: .78rem; display: block; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 1rem 2.3rem; }
.timeline li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline .tdot { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.timeline .tdot .i { width: 14px; height: 14px; }
.timeline b { font-weight: 600; }
.timeline small { display: block; color: var(--muted); }
.copy-btn { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px; border-radius: 6px; }
.copy-btn:hover { color: var(--primary); background: var(--primary-50); }
details.cancel-box summary { list-style: none; }
details.cancel-box summary::-webkit-details-marker { display: none; }
details.cancel-box[open] .cancel-form { margin-top: .8rem; }

/* ---------- product grid ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.pcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.pcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.pcard.off { opacity: .72; }
.pcard .pimg { aspect-ratio: 1 / 1; background: var(--surface-2); position: relative; display: block; }
.pcard .pimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard .pimg .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); text-align: center; font-size: .8rem; }
.pcard .pimg .noimg .i { width: 34px; height: 34px; display: block; margin: 0 auto .4rem; }
.pcard .flags { position: absolute; top: 8px; left: 8px; display: flex; gap: .3rem; flex-wrap: wrap; }
.pcard .pbody { padding: .8rem .9rem .9rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.pcard .pname { font-weight: 650; color: var(--text); line-height: 1.3; }
.pcard .pname:hover { color: var(--primary); }
.pcard .pcat { color: var(--muted); font-size: .8rem; }
.pcard .pprice { font-size: 1.15rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.pcard .pfoot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .5rem; border-top: 1px solid var(--border); }
.sizes { display: flex; flex-wrap: wrap; gap: .25rem; }
.sizes span { font-size: .72rem; font-weight: 650; padding: .1rem .4rem; border-radius: 6px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.sizes span.out { text-decoration: line-through; color: #a8b0bd; background: transparent; }
.sizes span.low { background: var(--warning-50); color: var(--warning); border-color: #f3d39b; }
.thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--surface-2); display: inline-grid; place-items: center; color: var(--muted); }

/* ---------- product editor ---------- */
.size-table td { padding: .5rem .6rem; }
.size-table input { min-height: 36px; padding: .35rem .6rem; }
.stepper-input { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; background: var(--surface); }
.stepper-input button { width: 34px; height: 36px; border: 0; background: var(--surface-2); color: var(--text-2); cursor: pointer; font-size: 1rem; }
.stepper-input button:hover { background: var(--primary-50); color: var(--primary); }
.stepper-input input { width: 70px; border: 0; border-radius: 0; text-align: center; min-height: 36px; font-weight: 650; }
.stepper-input input.zero { color: var(--danger); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.photo { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); aspect-ratio: 1 / 1; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .main-flag { position: absolute; top: 8px; left: 8px; }
.photo .ph-actions { position: absolute; inset: auto 0 0 0; display: flex; gap: .3rem; justify-content: flex-end; padding: .5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .55)); opacity: 0; transition: opacity .15s; }
.photo:hover .ph-actions, .photo:focus-within .ph-actions { opacity: 1; }
.photo .ph-actions .icon-btn { background: rgba(255, 255, 255, .92); border: 0; }
.dropzone { border: 2px dashed var(--border-strong); border-radius: 14px; padding: 1.5rem; text-align: center; background: var(--surface-2); cursor: pointer; transition: all .15s; display: block; color: var(--text-2); font-weight: 500; margin: 0; }
.dropzone:hover, .dropzone.over { border-color: var(--primary); background: var(--primary-50); color: var(--primary); }
.dropzone .i { width: 34px; height: 34px; display: block; margin: 0 auto .5rem; color: var(--primary); }
.dropzone input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.previews { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; justify-content: center; }
.previews img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.save-bar { position: sticky; bottom: 1rem; z-index: 15; margin: 1rem 0 0; padding: .7rem .9rem .7rem 1.1rem; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px);
  border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); display: flex; align-items: center; gap: .8rem; justify-content: flex-end; }
.save-bar .dirty-note { margin-right: auto; color: var(--warning); font-weight: 600; display: none; align-items: center; gap: .4rem; }
.save-bar.dirty .dirty-note { display: inline-flex; }
.save-bar.dirty { box-shadow: 0 -6px 20px rgba(16, 24, 40, .08); }

/* telegram preview */
.tg-preview { background: #c8dcea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='20' cy='20' r='1.2' fill='%23b2cadb'/%3E%3C/svg%3E"); border-radius: 16px; padding: 1rem; }
.tg-msg { background: #fff; border-radius: 14px 14px 14px 4px; overflow: hidden; max-width: 320px; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.tg-msg .tg-img { aspect-ratio: 1 / 1; background: #e8eef3; display: grid; place-items: center; color: #9db0c0; }
.tg-msg .tg-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tg-msg .tg-text { padding: .6rem .75rem .5rem; font-size: .86rem; line-height: 1.45; color: #000; white-space: pre-line; word-break: break-word; }
.tg-msg .tg-text b { font-weight: 700; }
.tg-btns { display: grid; gap: 4px; margin-top: 4px; max-width: 320px; }
.tg-btns .r { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.tg-btns span { background: rgba(70, 105, 140, .55); color: #fff; text-align: center; border-radius: 8px; padding: .4rem .3rem; font-size: .8rem; font-weight: 600; }
.tg-caption { font-size: .78rem; color: var(--muted); margin-top: .6rem; display: flex; gap: .3rem; align-items: center; }

/* ---------- categories ---------- */
.cat-card { display: flex; align-items: center; gap: 1rem; }
.cat-emoji { width: 52px; height: 52px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; font-size: 1.6rem; flex: none; border: 1px solid var(--border); }
.cat-card .grow { flex: 1; min-width: 0; }
.cat-card details summary { list-style: none; cursor: pointer; }
.cat-card details summary::-webkit-details-marker { display: none; }
.cat-edit { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.cat-list .card { padding: 1rem 1.2rem; }
.order-arrows { display: flex; flex-direction: column; gap: .2rem; }
.order-arrows .icon-btn { width: 28px; height: 24px; }

/* ---------- settings ---------- */
.settings-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.settings-nav { position: sticky; top: 84px; display: flex; flex-direction: column; gap: .15rem; }
.settings-nav a { display: flex; align-items: center; gap: .6rem; padding: .55rem .75rem; border-radius: 10px; color: var(--text-2); font-weight: 550; }
.settings-nav a:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.settings-nav a.on { background: var(--surface); color: var(--primary); box-shadow: var(--shadow); }
.settings-section { scroll-margin-top: 90px; }
.settings-section .card-head { margin-bottom: .4rem; }
.days { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.days label { margin: 0; }
.days input { position: absolute; opacity: 0; width: 0; }
.days span { display: inline-grid; place-items: center; width: 44px; height: 38px; border-radius: 10px; border: 1px solid var(--border-strong); font-weight: 650; color: var(--text-2); cursor: pointer; background: var(--surface); }
.days input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.pay-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .7rem; margin-bottom: 1rem; }
.pay-option { display: flex; align-items: center; gap: .7rem; padding: .8rem .9rem; border: 1px solid var(--border-strong); border-radius: 12px; cursor: pointer; margin: 0; color: var(--text); }
.pay-option input { width: 18px; height: 18px; }
.pay-option:has(input:checked) { border-color: var(--primary); background: var(--primary-50); }

/* ---------- chat transcript ---------- */
.chat { display: flex; flex-direction: column; gap: .8rem; padding: .3rem; }
.msg { display: flex; gap: .6rem; align-items: flex-end; max-width: 80%; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg .bub { padding: .65rem .9rem; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); white-space: pre-wrap; word-break: break-word; }
.msg.user .bub { background: var(--primary); color: #fff; border-color: var(--primary); border-bottom-right-radius: 4px; }
.msg.assistant .bub { border-bottom-left-radius: 4px; }
.msg small { display: block; color: var(--muted); font-size: .72rem; margin-top: .2rem; }
.msg.user small { text-align: right; }
.bot-av { width: 30px; height: 30px; border-radius: 50%; background: var(--violet-50); color: var(--violet); display: grid; place-items: center; flex: none; }
.tool-line { font-size: .8rem; font-weight: 600; color: var(--violet); background: var(--violet-50); border-radius: 8px; padding: .25rem .6rem; display: table; margin: 0 0 .35rem; cursor: help; }
.msg .bub + .tool-line, .msg .tool-line + .bub { margin-top: .35rem; }

/* ---------- login ---------- */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.login-brand { background: linear-gradient(140deg, #1f5fb0 0%, #2a78d6 45%, #6250d6 100%); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.login-brand .brand-logo { background: rgba(255, 255, 255, .18); box-shadow: none; width: 48px; height: 48px; }
.login-brand h1 { color: #fff; font-size: 2.1rem; margin: 1.5rem 0 .8rem; }
.login-brand p { opacity: .9; font-size: 1.05rem; max-width: 440px; }
.login-brand ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.login-brand li { display: flex; gap: .7rem; align-items: center; opacity: .95; }
.login-brand li .i { background: rgba(255, 255, 255, .18); padding: 6px; width: 32px; height: 32px; border-radius: 9px; }
.login-form { display: grid; place-items: center; padding: 2rem; background: var(--surface); }
.login-box { width: 100%; max-width: 380px; }
.login-box h2 { font-size: 1.5rem; margin-bottom: .3rem; }
.pw-wrap { position: relative; }
.pw-wrap .icon-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; }

/* ---------- misc ---------- */
.danger-zone { border-color: #f3c3c3; }
.danger-zone h3 { color: var(--danger); }
.kbd { font: .75rem ui-monospace, monospace; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; padding: 0 .3rem; color: var(--muted); background: var(--surface); }
.desc-list { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 0; }
.desc-list dt { color: var(--muted); }
.desc-list dd { margin: 0; font-weight: 550; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.mini-stats div { background: var(--surface-2); border-radius: 10px; padding: .6rem .7rem; }
.mini-stats b { display: block; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.mini-stats small { color: var(--muted); }
.search-section h2 { display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .split { grid-template-columns: 1fr; }
  .sticky-col { position: static; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .g2, .g3 { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { position: static; flex-direction: row; overflow-x: auto; }
  .login-page { grid-template-columns: 1fr; }
  .login-brand { display: none; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 50; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(15, 23, 42, .35); z-index: 40; }
  .menu-toggle { display: inline-grid; }
  .topbar, .content { padding-left: 1rem; padding-right: 1rem; }
  .table-wrap { margin: 0 -1.3rem; }
  .hero { flex-wrap: wrap; } .hero .stats { margin-left: 0; text-align: left; }
  .mini-stats { grid-template-columns: 1fr 1fr; }
}
.w-date { width: 160px; }
.field-title { font-weight: 550; font-size: .86rem; color: var(--text-2); }
.lang-field { margin-bottom: .9rem; }
.lang-field .lang-tabs { margin-bottom: .35rem; }
.lang-field input, .lang-field textarea { margin-top: 0; }
.narrow-card { max-width: 520px; } .narrow-form { max-width: 440px; }
.heat-legend i.hl.seq-1{background:var(--seq-1)} .heat-legend i.hl.seq-3{background:var(--seq-3)} .heat-legend i.hl.seq-5{background:var(--seq-5)} .heat-legend i.hl.seq-7{background:var(--seq-7)}
.timeline .tdot.st-new{background:var(--primary-50)} details.cancel-box > summary.btn{display:inline-flex}
.w-small { width: 110px; } .w-mid { width: 240px; } .size-table .w-small { width: 90px; }
.big-name { font-size: 1.25rem; } .small-kpi { font-size: 1.15rem; }
.input-group .addon.addon-left { border-left: 1px solid var(--border-strong); border-right: 0; border-radius: 10px 0 0 10px; }
.input-group .addon-left + input { border-radius: 0 10px 10px 0; }
.admin-card { display: flex; flex-direction: column; gap: .9rem; }
.admin-card.off { opacity: .7; }
.admin-card .who { display: flex; align-items: center; gap: .8rem; }
.admin-card .who .grow { min-width: 0; }
.admin-card .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-card details summary { cursor: pointer; color: var(--primary); font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: .35rem; }
.admin-card details summary::-webkit-details-marker { display: none; }
.admin-card details[open] summary { margin-bottom: .8rem; }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.role-grid .item { border: 1px solid var(--border); border-radius: 12px; padding: .8rem .9rem; background: var(--surface-2); }
.role-grid .item b { display: flex; align-items: center; gap: .4rem; margin-bottom: .25rem; }
.role-grid .item ul { margin: 0; padding-left: 1.1rem; color: var(--text-2); font-size: .88rem; }
@media (max-width: 720px) { .role-grid { grid-template-columns: 1fr; } }
.btn.busy, .switch.busy { opacity: .6; pointer-events: none; cursor: progress; }
.copy-btn.ok { color: var(--success); }
.dropzone.has-files { border-style: solid; border-color: var(--primary); background: var(--primary-50); }
.item-row small b, .item-row small { display: inline; }
.item-row .grow small { display: block; }
.item-row .grow small b { display: inline; color: var(--text); }
input.w-small, input.w-mid { display: block; }
.save-bar.dirty { border-color: #f5c26b; }
input::placeholder, textarea::placeholder { font-weight: 400; color: #98a2b3; opacity: 1; }
@media (max-width: 720px) { .hide-sm { display: none; } }
