/* Parcelfern: a working seller dashboard demo (concept project, fictional sample data only). */
:root {
  --bg: #f3f4ef; --surface: #ffffff; --surface-2: #f7f8f3; --surface-3: #eef0e7; --border: #e2e5da; --border-2: #d1d6c7;
  --text: #11150f; --text-2: #383f33; --muted: #687062; --faint: #9aa293;
  --lime: #c4f042; --lime-2: #a8d82b; --lime-3: #84cc16; --lime-ink: #142106; --lime-soft: #f0fad0; --lime-ring: rgba(132, 204, 22, .3);
  --accent: #4b7a0b; --ink: #12160f; --ink-text: #ffffff;
  --green: #15803d; --green-soft: #e6f6ec; --amber: #b45309; --amber-soft: #fef1d8; --red: #d92d20; --red-soft: #fdecea;
  --blue: #1d5bd8; --blue-soft: #e7eefd; --violet: #6d3ee0; --violet-soft: #efe9fd; --sky: #0369a1; --sky-soft: #e0f2fe;
  --c-web: #84cc16; --c-haat: #7c3aed; --c-baz: #0ea5e9; --c-loom: #f59e0b;
  --side: #0d120e; --side-2: #172019; --side-3: #212b23; --side-text: #c9d2c3; --side-muted: #7d887a;
  --shadow-sm: 0 1px 2px rgba(17, 21, 15, .06);
  --shadow: 0 1px 2px rgba(17, 21, 15, .05), 0 6px 20px rgba(17, 21, 15, .05);
  --shadow-lg: 0 28px 70px rgba(17, 21, 15, .24);
  --r: 14px; --r-sm: 10px;
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Display", Roboto, Arial, sans-serif;
  --numf: "Bahnschrift", "DIN Alternate", "Segoe UI Variable Display", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Cascadia Mono", ui-monospace, Consolas, "SF Mono", monospace;
  --emoji: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0a0d0a; --surface: #121712; --surface-2: #171d17; --surface-3: #1e251d; --border: #242c23; --border-2: #323c30;
  --text: #edf2e8; --text-2: #ced6c7; --muted: #96a08f; --faint: #646e5d;
  --lime-soft: rgba(196, 240, 66, .12); --lime-ring: rgba(196, 240, 66, .3);
  --accent: #c4f042; --ink: #edf2e8; --ink-text: #11150f;
  --green: #4ade80; --green-soft: rgba(74, 222, 128, .12); --amber: #fbbf24; --amber-soft: rgba(251, 191, 36, .13);
  --red: #f87171; --red-soft: rgba(248, 113, 113, .14); --blue: #8fb2ff; --blue-soft: rgba(96, 140, 255, .16);
  --violet: #b9a2ff; --violet-soft: rgba(167, 139, 250, .16); --sky: #7dd3fc; --sky-soft: rgba(56, 189, 248, .14);
  --c-haat: #a78bfa; --c-baz: #38bdf8; --c-loom: #fbbf24; --c-web: #a3e635;
  --side: #060906; --side-2: #121812; --side-3: #1b231b;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 26px rgba(0, 0, 0, .35);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
.i { flex: none; display: block; }
.emoji { font-family: var(--emoji); line-height: 1; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
:focus-visible { outline: 3px solid var(--lime-ring); outline-offset: 2px; border-radius: 8px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--side); color: var(--side-text); display: flex; flex-direction: column; padding: 18px 12px 14px; gap: 14px; }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px; }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand b { display: block; color: #fff; font: 700 17px/1.1 var(--display); letter-spacing: -.015em; }
.brand small { color: var(--side-muted); font-size: 12px; }
.store-sw { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: var(--side-2); border: 1px solid var(--side-3); }
.store-sw .em { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #3a2a14; font-size: 16px; }
.store-sw b { display: block; color: #fff; font-size: 13px; }
.store-sw small { color: var(--side-muted); font-size: 11.5px; }
.nav { display: flex; flex-direction: column; gap: 1px; overflow-y: auto; margin: 0 -4px; padding: 0 4px; scrollbar-width: none; }
.nav-sec { font: 700 10.5px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--side-muted); padding: 12px 12px 6px; }
.nav-i { display: flex; align-items: center; gap: 11px; padding: 8px 11px; border-radius: 10px; color: var(--side-text); font-weight: 600; font-size: 13.5px; position: relative; }
.nav-i:hover { background: var(--side-2); color: #fff; }
.nav-i.on { background: var(--side-3); color: #fff; }
.nav-i.on::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--lime); }
.nav-i.on .i { color: var(--lime); }
.nav-i .lock { margin-left: auto; color: var(--side-muted); }
.nb { margin-left: auto; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 10px; background: var(--lime); color: var(--lime-ink); font: 700 11px/20px var(--font); text-align: center; }
.nb.warn { background: #3b2d12; color: #fbbf24; }
.nb.red { background: #3d1714; color: #fca5a5; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.sync { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--side-muted); padding: 9px 11px; border-radius: 10px; background: var(--side-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(196, 240, 66, .16); flex: none; }
.me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; }
.me b { display: block; color: #fff; font-size: 13.5px; }
.me small { color: var(--side-muted); font-size: 12px; }
.me .role-btn { border: 0; background: none; padding: 0; color: var(--lime); font: 650 12px var(--font); }
.me .icon-btn { margin-left: auto; color: var(--side-muted); border-color: transparent; background: transparent; box-shadow: none; }
.me .icon-btn:hover { color: #fff; background: var(--side-2); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--font); color: #fff; flex: none; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.lg { width: 52px; height: 52px; font-size: 18px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 28px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.top-brand { display: none; align-items: center; gap: 9px; font: 700 16px var(--display); letter-spacing: -.01em; }
.top-brand svg { width: 30px; height: 30px; }
.search-trigger { flex: 1; max-width: 440px; height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); text-align: left; box-shadow: var(--shadow-sm); }
.search-trigger span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
kbd { font: 600 11px var(--font); padding: 3px 7px; border-radius: 6px; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--muted); }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 8px; position: relative; }
.clock { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; padding: 0 6px; white-space: nowrap; }
.clock b { color: var(--text); font-weight: 700; }
.live-chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 999px; background: var(--lime-soft); color: var(--accent); font: 700 12px var(--font); white-space: nowrap; }
.live-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime-3); box-shadow: 0 0 0 3px rgba(132, 204, 22, .25); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(132, 204, 22, 0); } }
.icon-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); box-shadow: var(--shadow-sm); flex: none; }
.icon-btn:hover { border-color: var(--border-2); color: var(--text); }
.icon-btn.sm { width: 32px; height: 32px; border-radius: 9px; }
.icon-btn.m-only { display: none; }
.dot-badge { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; border-radius: 10px; background: var(--red); color: #fff; font: 700 10.5px/15px var(--font); font-style: normal; text-align: center; padding: 0 5px; border: 2px solid var(--bg); }
.page { padding: 24px 28px 56px; min-width: 0; }
.tabbar { display: none; }

/* ---------- common ---------- */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.ph h1 { font: 700 26px/1.15 var(--display); letter-spacing: -.025em; }
.ph p { color: var(--muted); margin-top: 5px; }
.ph-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 20px; min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-h h3 { font: 700 15px var(--display); letter-spacing: -.01em; }
.card-h small { color: var(--muted); display: block; margin-top: 1px; }
.card-h .r { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.g3-2 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.mt { margin-top: 16px; }
.btn { height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 650; white-space: nowrap; box-shadow: var(--shadow-sm); }
.btn:hover { border-color: var(--border-2); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--lime); border-color: var(--lime-2); color: var(--lime-ink); box-shadow: 0 6px 16px rgba(132, 204, 22, .3), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-primary:hover { background: #b9ea2f; border-color: #93c41b; }
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--ink-text); }
.btn-soft { background: var(--lime-soft); border-color: transparent; color: var(--accent); box-shadow: none; }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-danger { background: var(--red-soft); color: var(--red); border-color: transparent; box-shadow: none; }
.btn-sm { height: 32px; padding: 0 11px; border-radius: 9px; font-size: 13px; gap: 6px; }
.btn-lg { height: 50px; font-size: 15px; border-radius: 13px; }
.w100 { width: 100%; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip { height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 600; font-size: 13px; white-space: nowrap; }
.chip:hover { border-color: var(--border-2); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--ink-text); }
.chip b { font-weight: 700; opacity: .6; }
.chip .cd { width: 8px; height: 8px; border-radius: 50%; }
.seg { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--surface-3); border: 1px solid var(--border); gap: 2px; max-width: 100%; }
.seg button { height: 32px; padding: 0 12px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); font-weight: 650; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); }
.input, select.input, textarea.input { height: 40px; width: 100%; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); padding: 0 12px; outline: none; min-width: 0; }
textarea.input { height: auto; padding: 10px 12px; resize: vertical; }
.input:focus { border-color: var(--lime-3); box-shadow: 0 0 0 4px var(--lime-ring); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field .lab { font-weight: 650; font-size: 13px; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--muted); }
.search { position: relative; min-width: 0; }
.search .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search .input { padding-left: 38px; }
.tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.tools .search { flex: 1; min-width: 200px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-weight: 700; font-size: 12px; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.nd::before { display: none; }
.p-green { background: var(--green-soft); color: var(--green); }
.p-amber { background: var(--amber-soft); color: var(--amber); }
.p-red { background: var(--red-soft); color: var(--red); }
.p-blue { background: var(--blue-soft); color: var(--blue); }
.p-violet { background: var(--violet-soft); color: var(--violet); }
.p-sky { background: var(--sky-soft); color: var(--sky); }
.p-lime { background: var(--lime-soft); color: var(--accent); }
.p-gray { background: var(--surface-3); color: var(--muted); }
.chb { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 12.5px; white-space: nowrap; color: var(--text-2); }
.chb i { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.chdots { display: inline-flex; gap: 4px; }
.chdots i { width: 9px; height: 9px; border-radius: 3px; display: block; }
.chdots i.off { background: var(--border-2) !important; }
.switch { position: relative; width: 40px; height: 23px; border-radius: 12px; background: var(--border-2); border: 0; flex: none; transition: background .2s; padding: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch.on { background: var(--lime-3); }
.switch.on::after { transform: translateX(17px); }
.toggle-line { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 13px; color: var(--text-2); background: none; border: 0; padding: 0; }
.empty { display: grid; place-items: center; gap: 8px; text-align: center; padding: 34px 16px; color: var(--muted); }
.empty .emoji { font-size: 38px; }
.empty b { color: var(--text); }
.bar { height: 8px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 6px; background: var(--lime-3); }
.bar.a > i { background: #f59e0b; } .bar.r > i { background: var(--red); } .bar.g > i { background: var(--green); }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.check input, input.cb { width: 17px; height: 17px; accent-color: #65a30d; margin: 0; cursor: pointer; }
.note-box { display: flex; gap: 9px; align-items: flex-start; padding: 10px 12px; border-radius: 11px; background: var(--amber-soft); color: var(--amber); font-size: 12.5px; font-weight: 600; }
.note-box.lime { background: var(--lime-soft); color: var(--accent); }
.note-box.blue { background: var(--blue-soft); color: var(--blue); }
.alert { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--amber-soft); color: var(--amber); font-weight: 600; margin-bottom: 14px; flex-wrap: wrap; }
.alert .grow { min-width: 180px; }
.alert .btn { margin-left: auto; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kv > div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; padding: 10px 12px; min-width: 0; }
.kv small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.kv b { font-size: 14.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv.k3 { grid-template-columns: repeat(3, 1fr); }
.sec-t { font: 700 13.5px var(--display); margin: 4px 0 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* tables */
.tbl-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 10px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.t td { padding: 11px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.t tbody tr:last-child td { border-bottom: 0; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td, table.t tr.sel td { background: var(--surface-2); }
table.t tr.sel td { background: var(--lime-soft); }
table.t td.r, table.t th.r { text-align: right; }
table.t td.c, table.t th.c { text-align: center; }
table.t th.cbx, table.t td.cbx { width: 34px; padding-right: 0; }
table.t tfoot td { font-weight: 750; border-top: 2px solid var(--border-2); border-bottom: 0; }
.cell-main { font-weight: 650; }
table.t.tight th, table.t.tight td { padding: 8px 5px; }
table.t.tight .inl { width: 78px; }
table.t.tight .inl.sm { width: 60px; }

.cell-sub { color: var(--muted); font-size: 12.5px; }
.chdot { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 6px; }
.m-inline { display: none; }
.clip { max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 10px; flex-wrap: wrap; }
.pager > div { display: flex; gap: 8px; }

/* ---------- KPIs and charts ---------- */
.kpi { position: relative; overflow: hidden; }
.kpi .lbl { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 650; font-size: 13px; }
.kpi .lbl .ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); }
.kpi .val { font: 600 30px/1.1 var(--numf); letter-spacing: -.01em; margin-top: 12px; }
.kpi .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; min-height: 30px; }
.kpi.hl { background: var(--side); border-color: var(--side); color: #fff; }
.kpi.hl .lbl { color: #b5c0ae; } .kpi.hl .lbl .ico { background: rgba(196, 240, 66, .14); color: var(--lime); }
.kpi.hl .muted { color: #8f9a8a; }
.delta { font-weight: 700; font-size: 12.5px; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.delta.up { color: var(--green); } .delta.down { color: var(--red); }
.kpi.hl .delta.up { color: var(--lime); }
.delta .muted { font-weight: 600; }
.spark { width: 104px; height: 32px; flex: none; }
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font: 11px var(--font); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.share { display: flex; flex-direction: column; gap: 14px; }
.share-r { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; }
.share-r > i { width: 12px; height: 12px; border-radius: 4px; }
.share-r b { font-size: 13.5px; }
.share-r .v { font: 600 15px var(--numf); text-align: right; }
.share-r .bar { grid-column: 2 / 4; height: 6px; }
.share-r small { color: var(--muted); font-size: 12px; }
.donut-wrap { display: flex; align-items: center; gap: 20px; }
.donut-wrap svg { width: 150px; height: 150px; flex: none; }

/* overview feed */
.feed { display: flex; flex-direction: column; }
.feed-i { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 8px; margin: 0 -8px; border-radius: 11px; border-bottom: 1px dashed var(--border); cursor: pointer; }
.feed-i:last-child { border-bottom: 0; }
.feed-i:hover { background: var(--surface-2); }
.feed-i.fresh { animation: fresh 2.6s ease-out; }
@keyframes fresh { 0% { background: var(--lime-soft); transform: translateY(-6px); opacity: 0; } 12% { opacity: 1; transform: none; } 70% { background: var(--lime-soft); } 100% { background: transparent; } }
.feed-i .ft { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; position: relative; }
.feed-i .ft i { position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; border-radius: 5px; border: 2px solid var(--surface); }
.feed-i b { font-size: 13.5px; }
.feed-i .meta { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-i .amt { text-align: right; font: 600 15px var(--numf); }
.feed-i .amt small { display: block; font: 600 11.5px var(--font); color: var(--muted); }
.new-tag { display: inline-flex; height: 18px; padding: 0 6px; border-radius: 6px; background: var(--lime); color: var(--lime-ink); font: 800 10px/18px var(--font); letter-spacing: .04em; vertical-align: 1px; margin-left: 6px; }
.todo { display: flex; flex-direction: column; }
.todo-i { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); width: 100%; border-left: 0; border-right: 0; border-top: 0; background: none; text-align: left; }
.todo-i:last-child { border-bottom: 0; }
.todo-i .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.todo-i .n { font: 600 20px var(--numf); min-width: 34px; text-align: right; }
.todo-i small { display: block; color: var(--muted); font-size: 12px; }
.todo-i:hover b { text-decoration: underline; }
.tp { display: flex; align-items: center; gap: 11px; padding: 8px 0; }
.ptile { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 21px; flex: none; }
.ptile.lg { width: 56px; height: 56px; border-radius: 15px; font-size: 30px; }
.ptile.xl { width: 100%; height: 120px; border-radius: 12px; font-size: 54px; }
.cat-Ceramics { background: linear-gradient(135deg, #ffe7d9, #fbd0b8); }
.cat-Candles { background: linear-gradient(135deg, #fff5cf, #fde7a0); }
.cat-Textiles { background: linear-gradient(135deg, #ece6ff, #d9cffd); }
.cat-Brass { background: linear-gradient(135deg, #fbefd2, #f1d79c); }
.cat-Bath { background: linear-gradient(135deg, #ddf7ea, #bfeed6); }
.cat-Bags { background: linear-gradient(135deg, #f0eadf, #e1d5c1); }
[data-theme="dark"] .cat-Ceramics { background: linear-gradient(135deg, #3b2418, #2a1a12); }
[data-theme="dark"] .cat-Candles { background: linear-gradient(135deg, #3a3113, #29220e); }
[data-theme="dark"] .cat-Textiles { background: linear-gradient(135deg, #2a2240, #1e1830); }
[data-theme="dark"] .cat-Brass { background: linear-gradient(135deg, #3a2f15, #2a2210); }
[data-theme="dark"] .cat-Bath { background: linear-gradient(135deg, #15322a, #10251e); }
[data-theme="dark"] .cat-Bags { background: linear-gradient(135deg, #332c22, #241f18); }

/* ---------- orders ---------- */
.bulkbar { position: sticky; bottom: 18px; z-index: 40; margin: 14px auto 0; width: max-content; max-width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-radius: 16px; background: var(--side); color: #fff; box-shadow: var(--shadow-lg); flex-wrap: wrap; animation: pop .18s ease-out; }
.bulkbar b { margin-right: 6px; font-size: 13.5px; }
.bulkbar .btn { background: var(--side-3); border-color: transparent; color: #fff; box-shadow: none; }
.bulkbar .btn:hover { background: #2c382d; }
.bulkbar .btn-primary { background: var(--lime); color: var(--lime-ink); }
.bulkbar .btn-primary:hover { background: #b9ea2f; }
.ord-no { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.items-mini { display: flex; align-items: center; gap: 4px; }
.items-mini .e { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-size: 14px; }
.items-mini small { color: var(--muted); font-weight: 650; margin-left: 4px; }
.line { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.line:last-child { border-bottom: 0; }
.line b { display: block; font-size: 13.5px; }
.line .sub { color: var(--muted); font-size: 12.5px; }
.sumbox { border: 1px solid var(--border); border-radius: 13px; background: var(--surface-2); padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; }
.sum { display: flex; justify-content: space-between; gap: 10px; color: var(--text-2); font-size: 13.5px; }
.sum.total { font: 700 17px var(--display); color: var(--text); padding-top: 7px; border-top: 1px dashed var(--border-2); }
.timeline { display: flex; flex-direction: column; margin-top: 4px; }
.tl-i { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.tl-i::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 2px; background: var(--border); }
.tl-i.done::before { background: var(--lime-2); }
.tl-i:last-child::before { display: none; }
.tl-i > i { width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-2); margin-top: 3px; flex: none; }
.tl-i.done > i { background: var(--lime-3); border-color: var(--lime-3); box-shadow: 0 0 0 4px var(--lime-soft); }
.tl-i.now > i { background: var(--surface); border-color: var(--lime-3); box-shadow: 0 0 0 4px var(--lime-soft); }
.tl-i.bad > i { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.tl-i b { font-size: 13.5px; }
.tl-i small { display: block; color: var(--muted); }
.cust-mini { display: flex; gap: 12px; align-items: center; }
.cust-mini b { display: block; }
.addr { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.labels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.label { background: #fff; color: #111; border: 1.5px solid #1a1a1a; border-radius: 8px; padding: 12px; font-size: 11.5px; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.label .lh { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1.5px solid #1a1a1a; padding-bottom: 6px; }
.label .lh b { font: 800 12px var(--font); letter-spacing: .04em; }
.label .cod { font: 800 11px var(--font); padding: 2px 6px; border: 1.5px solid #111; border-radius: 4px; }
.label .to { font-size: 12px; line-height: 1.4; }
.label .to b { font-size: 13px; }
.label svg { width: 100%; height: 44px; display: block; }
.label .awb { font: 700 11px var(--mono); text-align: center; letter-spacing: .12em; }
.label .lf { display: flex; justify-content: space-between; gap: 6px; border-top: 1px dashed #777; padding-top: 6px; font-size: 10.5px; color: #333; }

/* ---------- products ---------- */
.prod-cell { display: flex; gap: 12px; align-items: center; min-width: 0; }
.prod-cell .grow b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exp { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; color: var(--muted); padding: 0; flex: none; }
.exp.on { transform: rotate(90deg); }
tr.vrow td { background: var(--surface-2); padding-top: 8px; padding-bottom: 8px; }
tr.vrow td:first-child { border-left: 3px solid var(--lime-2); }
.vlabel { display: flex; align-items: center; gap: 10px; padding-left: 38px; }
.vlabel .sw { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); flex: none; }
.inl { width: 92px; height: 34px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); padding: 0 9px; text-align: right; font: 600 13.5px var(--numf); outline: none; }
.inl:hover { border-color: var(--border-2); }
.inl:focus { border-color: var(--lime-3); box-shadow: 0 0 0 3px var(--lime-ring); }
.inl.sm { width: 70px; }
.inl-wrap { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; }
.stk { display: inline-flex; gap: 8px; align-items: center; }
.exp-sp { width: 26px; flex: none; }
.stock-n { font: 600 14px var(--numf); }
.lowtag { color: var(--red); font-weight: 700; font-size: 12px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.pcard { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-sm); text-align: left; position: relative; transition: transform .15s, box-shadow .15s; }
.pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pcard .pb { padding: 0 4px 4px; display: flex; flex-direction: column; gap: 6px; }
.pcard .pb b { font-size: 14px; line-height: 1.3; }
.pcard .pr { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pcard .pr strong { font: 600 16px var(--numf); }
.pcard .badge { position: absolute; top: 18px; left: 18px; }
.steps { display: flex; gap: 6px; padding: 0 24px; }
.steps button { flex: 1; display: flex; flex-direction: column; gap: 7px; border: 0; background: none; padding: 0; text-align: left; color: var(--muted); font: 650 12px var(--font); min-width: 0; }
.steps button::before { content: ""; height: 4px; border-radius: 3px; background: var(--border); display: block; }
.steps button.done::before, .steps button.on::before { background: var(--lime-3); }
.steps button.on { color: var(--text); }
.steps button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emoji-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.emoji-grid button { height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 19px; padding: 0; }
.emoji-grid button.on { border-color: var(--lime-3); background: var(--lime-soft); box-shadow: 0 0 0 3px var(--lime-ring); }
.vals { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; min-height: 40px; padding: 5px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.vals span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px 0 11px; border-radius: 8px; background: var(--lime-soft); color: var(--accent); font-weight: 700; font-size: 13px; }
.vals span button { width: 20px; height: 20px; border: 0; border-radius: 6px; background: transparent; display: grid; place-items: center; color: inherit; padding: 0; }
.vals input { flex: 1; min-width: 120px; border: 0; outline: none; background: none; height: 28px; padding: 0 6px; }
.review { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start; }
.chan-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.chan-pick > button { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 13px; border: 1px solid var(--border); background: var(--surface); text-align: left; min-width: 0; }
.chan-pick > button.on { border-color: var(--lime-3); background: var(--lime-soft); }
.chan-pick .cl { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font: 800 13px var(--font); flex: none; }
.chan-pick b { display: block; font-size: 13.5px; }
.chan-pick small { color: var(--muted); font-size: 12px; }

/* ---------- inventory ---------- */
.wh { display: flex; flex-direction: column; gap: 12px; }
.wh-h { display: flex; align-items: center; gap: 12px; }
.wh-h .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--lime-soft); color: var(--accent); flex: none; }
.wh-h b { display: block; font: 700 15px var(--display); }
.wh-h small { color: var(--muted); }
.wh-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wh-stats div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; padding: 9px 11px; }
.wh-stats small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 650; }
.wh-stats b { font: 600 19px var(--numf); }
.adj { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--border); border-radius: 9px; padding: 2px; background: var(--surface); }
.adj button { width: 24px; height: 24px; border-radius: 7px; border: 0; background: var(--surface-3); display: grid; place-items: center; color: var(--text-2); padding: 0; }
.adj b { min-width: 30px; text-align: center; font: 600 13.5px var(--numf); }
.adj.low b { color: var(--red); }
.xfer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.xfer:last-child { border-bottom: 0; }
.xfer .route { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; flex-wrap: wrap; }
.xfer .route .i { color: var(--muted); }
.xfer .xs { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.xfer .xa { display: flex; gap: 6px; align-items: center; justify-content: flex-start; flex-wrap: wrap; }
.xfer .xa:empty { display: none; }

/* ---------- returns ---------- */
.reasons { display: flex; flex-direction: column; gap: 12px; }
.photos { display: flex; gap: 8px; }
.photos span { width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center; font-size: 28px; border: 1px solid var(--border); }
.refund-art { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); }
.refund-amt { font: 600 38px var(--numf); letter-spacing: -.01em; text-align: center; }
.card-art { width: 220px; height: 132px; border-radius: 15px; background: linear-gradient(135deg, #182017, #3e4a38); color: #fff; padding: 15px; text-align: left; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow); }
.card-art .chip-art { width: 32px; height: 24px; border-radius: 6px; background: linear-gradient(135deg, #e4fb9a, #84cc16); }
.upi-art { width: 220px; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 15px; background: var(--surface); border: 1px solid var(--border); text-align: left; }
.upi-art .u { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--lime-soft); color: var(--accent); flex: none; }

/* ---------- customers ---------- */
.segs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.segc { text-align: left; border: 1px solid var(--border); background: var(--surface); border-radius: var(--r); padding: 15px 16px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.segc.on { border-color: var(--lime-3); box-shadow: 0 0 0 3px var(--lime-ring); }
.segc .t { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; }
.segc .t i { width: 10px; height: 10px; border-radius: 50%; }
.segc .n { font: 600 26px var(--numf); }
.segc small { color: var(--muted); font-size: 12px; }
.notes { display: flex; flex-direction: column; gap: 8px; }
.note { background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; padding: 10px 12px; font-size: 13.5px; }
.note small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 4px; }
.ltv-big { font: 600 32px var(--numf); }

/* ---------- discounts ---------- */
.code { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 8px; border: 1.5px dashed var(--border-2); background: var(--surface-2); font: 700 13px var(--mono); letter-spacing: .04em; white-space: nowrap; }
.code.big { height: 40px; font-size: 18px; padding: 0 14px; }
.use { display: flex; flex-direction: column; gap: 5px; min-width: 110px; }
.use span { font-size: 12.5px; color: var(--muted); }
.use .bar { height: 6px; }

/* ---------- payouts ---------- */
.fee-bar { display: flex; height: 26px; border-radius: 8px; overflow: hidden; background: var(--surface-3); }
.fee-bar i { display: block; height: 100%; }
.fee-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 96px; gap: 12px; align-items: center; padding: 8px 0; }
.fee-row b { font-size: 13.5px; }
.fee-row .v { text-align: right; font: 600 15px var(--numf); }
.payout-next { display: flex; align-items: center; gap: 14px; }
.lock-box { display: grid; place-items: center; text-align: center; gap: 12px; padding: 60px 20px; }
.lock-box .ic { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }

/* ---------- analytics ---------- */
.funnel { display: flex; flex-direction: column; gap: 10px; }
.fn { display: grid; grid-template-columns: 150px minmax(0, 1fr) 70px; gap: 12px; align-items: center; }
.fn .lab b { display: block; font-size: 13.5px; }
.fn .lab small { color: var(--muted); font-size: 12px; }
.fn .track { height: 34px; border-radius: 9px; background: var(--surface-3); position: relative; overflow: hidden; }
.fn .track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 9px; background: linear-gradient(90deg, #a3e635, #65a30d); display: flex; align-items: center; padding-left: 10px; color: var(--lime-ink); font: 600 13px var(--numf); white-space: nowrap; min-width: 52px; }
.fn .pct { text-align: right; font: 600 15px var(--numf); }
.fn .drop { grid-column: 2 / 4; margin-top: -6px; font-size: 12px; color: var(--red); font-weight: 650; }
.cohort { border-collapse: separate; border-spacing: 3px; width: 100%; font-size: 12.5px; }
.cohort th { font-weight: 700; color: var(--muted); font-size: 11.5px; text-align: center; padding: 4px; }
.cohort th:first-child, .cohort td:first-child { text-align: left; }
.cohort td { text-align: center; padding: 8px 4px; border-radius: 7px; font: 600 12.5px var(--numf); }
.cohort td.lab { font: 650 12.5px var(--font); color: var(--text-2); white-space: nowrap; }
.cohort td.lab small { display: block; color: var(--muted); font-weight: 600; font-size: 11px; }
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 18px; align-items: start; }
.hexmap { width: 100%; height: auto; display: block; }
.hexmap .hx { cursor: pointer; transition: opacity .15s; }
.hexmap .hx:hover path { stroke: var(--text); stroke-width: 2; }
.hexmap .hx.on path { stroke: var(--text); stroke-width: 2.5; }
.hexmap text { font: 700 10px var(--font); pointer-events: none; }
.state-card { display: flex; flex-direction: column; gap: 10px; }
.state-card .big { font: 600 28px var(--numf); }
.ramp { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.ramp i { width: 22px; height: 10px; border-radius: 3px; display: block; }

/* ---------- notifications and settings ---------- */
.ntf { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.ntf:last-child { border-bottom: 0; }
.ntf .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); flex: none; }
.ntf.unread .ico { background: var(--lime-soft); color: var(--accent); }
.ntf.unread b.t::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime-3); margin-left: 7px; vertical-align: 2px; }
.ntf small { color: var(--muted); }
.ntf .grow > div { font-size: 13.5px; }
.ntf-page .ntf { padding: 14px 18px; cursor: pointer; }
.ntf-page .ntf:hover { background: var(--surface-2); }
.settings { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; align-items: start; }
.set-nav { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; }
.set-nav a { padding: 9px 12px; border-radius: 10px; font-weight: 650; color: var(--text-2); }
.set-nav a:hover { background: var(--surface-3); }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.set-row:last-child { border-bottom: 0; }
.set-row b { display: block; }
.set-row small { color: var(--muted); }
.set-row .ctl { flex: none; display: flex; gap: 8px; align-items: center; }
.chan-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.chan-row:last-child { border-bottom: 0; }
.chan-row .cl { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; font: 800 14px var(--font); flex: none; }
.chan-row .grow b { display: block; }
.chan-row .grow small { color: var(--muted); }
.chan-row .ctl { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.sc { display: grid; grid-template-columns: 1fr auto; gap: 10px 20px; font-size: 13.5px; }

/* ---------- overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(9, 13, 9, .45); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; animation: fade .15s ease-out; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; overflow-x: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); animation: pop .18s ease-out; }
.modal.wide { width: min(760px, 100%); }
.modal-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 8px; }
.modal-h h2 { font: 700 19px var(--display); letter-spacing: -.015em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.modal-h p { color: var(--muted); margin-top: 4px; font-size: 13.5px; }
.modal-b { padding: 12px 22px; display: flex; flex-direction: column; gap: 14px; }
.modal-f { padding: 12px 22px 20px; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.modal-f .lft { margin-right: auto; }
.overlay.side-panel { place-items: stretch end; padding: 0; }
.overlay.side-panel .modal { width: min(500px, 100%); max-height: none; height: 100vh; border-radius: 20px 0 0 20px; animation: slide .2s ease-out; display: flex; flex-direction: column; }
.overlay.side-panel .modal-b { flex: 1; }
.overlay.side-panel .modal-f { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--border); padding-top: 14px; }
.overlay.top-panel { place-items: start center; padding-top: 12vh; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.pal-in input { flex: 1; border: 0; outline: none; background: none; font-size: 16px; height: 34px; min-width: 0; }
.pal-list { max-height: 400px; overflow-y: auto; padding: 8px; }
.pal-g { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); padding: 10px 10px 6px; }
.pal-i { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 11px; border: 0; background: none; text-align: left; min-width: 0; }
.pal-i > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-i.on { background: var(--lime-soft); }
.pal-i .k { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.pal-i .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); font-size: 16px; flex: none; }
.pop { position: absolute; top: 50px; right: 0; width: 370px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); z-index: 60; overflow: hidden; animation: pop .15s ease-out; }
.pop-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.pop-h b { font: 700 15px var(--display); }
.pop-f { padding: 10px 16px; border-top: 1px solid var(--border); text-align: center; }
#toasts { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 13px; background: var(--side); color: #fff; box-shadow: var(--shadow-lg); font-weight: 600; animation: pop .18s ease-out; max-width: 380px; }
.toast .i { color: var(--lime); }
.toast.warn .i { color: #fbbf24; }
.toast.out { opacity: 0; transform: translateY(6px); transition: all .3s; }
[data-theme="dark"] .toast { background: #edf2e8; color: #11150f; }
[data-theme="dark"] .toast .i { color: #4d7c0f; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.08fr 1fr; }
.login-art { position: relative; overflow: hidden; background: #0b100c; color: #fff; padding: 46px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.login-art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(196, 240, 66, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(196, 240, 66, .06) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%); }
.login-art::after { content: ""; position: absolute; width: 620px; height: 620px; right: -220px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(196, 240, 66, .42), rgba(196, 240, 66, 0) 66%); }
.login-art > * { position: relative; z-index: 1; }
.login-art .brand b { font-size: 20px; }
.login-art h2 { font: 700 46px/1.05 var(--display); letter-spacing: -.035em; max-width: 540px; }
.login-art h2 em { font-style: normal; color: var(--lime); }
.login-art p.lead { color: #c8d0c2; font-size: 16px; max-width: 470px; margin-top: 16px; }
.feat { display: flex; flex-direction: column; gap: 11px; margin-top: 26px; }
.feat div { display: flex; align-items: center; gap: 12px; color: #e3e9de; font-weight: 600; }
.feat .i { color: var(--lime); }
.floaters { position: relative; height: 190px; max-width: 520px; }
.fl { position: absolute; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13); backdrop-filter: blur(10px); border-radius: 15px; padding: 13px 15px; box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }
.fl small { color: #aab4a4; font-size: 12px; display: flex; align-items: center; gap: 6px; }
.fl small i { width: 8px; height: 8px; border-radius: 3px; display: block; }
.fl b { display: block; font: 600 22px var(--numf); }
.login-form { display: grid; place-items: center; padding: 40px 24px; background: var(--bg); }
.login-box { width: min(410px, 100%); display: flex; flex-direction: column; gap: 16px; }
.login-box h1 { font: 700 30px var(--display); letter-spacing: -.025em; }
.login-box > p { color: var(--muted); margin-top: -8px; }
.role-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.role-chips button { border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 11px 12px; display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 13px; color: var(--text-2); text-align: left; }
.role-chips button small { display: block; font-weight: 600; font-size: 11.5px; color: var(--muted); }
.role-chips button.on { border-color: var(--lime-3); background: var(--lime-soft); color: var(--text); box-shadow: 0 0 0 3px var(--lime-ring); }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; font-weight: 650; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.demo-note { font-size: 12.5px; color: var(--muted); text-align: center; }
.m-brand { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1320px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1100px) {
  .g2-1, .g1-2, .g2, .g3, .g3-2, .settings { grid-template-columns: minmax(0, 1fr); }
  .segs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .m-brand { display: flex; }
  .set-nav { display: none; }
  .clock { display: none; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .top { padding: 0 14px; height: 60px; gap: 8px; }
  .top-brand { display: flex; }
  .search-trigger, .live-chip, .top .btn-primary { display: none; }
  .icon-btn.m-only { display: grid; }
  .page { padding: 18px 14px 110px; }
  .ph { margin-bottom: 16px; }
  .ph h1 { font-size: 22px; }
  .ph-actions { width: 100%; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .delta { white-space: normal; display: inline; line-height: 1.35; }
  .kpi .lbl { font-size: 12.5px; }
  .grid { gap: 12px; }
  .card { padding: 15px; }
  .kpi .val { font-size: 23px; }
  .kpi .foot { min-height: 0; }
  .kpi .spark { display: none; }
  .tools .search { min-width: 100%; }
  .tools .seg { overflow-x: auto; }
  .tbl-wrap { margin: 0 -15px; padding: 0 15px; }
  table.t th, table.t td { padding: 10px 6px; }
  .hide-m { display: none !important; }
  .m-inline { display: inline; }
  div.m-inline { display: block; margin-top: 4px; }
  .clip { max-width: 140px; }
  .prod-cell { gap: 8px; }
  .prod-cell .grow b { white-space: normal; overflow: visible; line-height: 1.25; }
  .prod-cell .grow .cell-sub { display: block; font-size: 11.5px; }

  .prod-cell .ptile { width: 32px; height: 32px; font-size: 16px; border-radius: 9px; }
  .exp { width: 22px; height: 22px; }
  .exp-sp { width: 22px; }
  .vlabel { padding-left: 0; gap: 7px; }
  .vlabel .pill { display: none; }
  .inl { width: 64px; height: 32px; padding: 0 6px; font-size: 13px; }
  .inl.sm { width: 46px; }
  .stk { flex-direction: column; gap: 4px; align-items: flex-end; }
  td.r .num.cell-main { white-space: normal; }

  .bulkbar { position: fixed; left: 12px; right: 12px; bottom: 76px; width: auto; justify-content: center; padding: 8px; gap: 6px; }
  .bulkbar b { width: 100%; text-align: center; margin: 0; }
  .bulkbar .btn { flex: 1; padding: 0 8px; font-size: 12.5px; }
  .bulkbar .btn[data-act="bulk-clear"] { flex: 0 0 52px; }

  .labels { grid-template-columns: minmax(0, 1fr); }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ptile.xl { height: 96px; font-size: 44px; }
  .two, .three { grid-template-columns: minmax(0, 1fr); }
  .kv.k3 { grid-template-columns: 1fr 1fr; }
  .segs { gap: 10px; }
  .segc { padding: 12px; }
  .segc .n { font-size: 22px; }
  .fn { grid-template-columns: 96px minmax(0, 1fr) 52px; gap: 8px; }
  .fee-row { grid-template-columns: 84px minmax(0, 1fr) 80px; gap: 8px; }
  .emoji-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .chan-pick { grid-template-columns: minmax(0, 1fr); }
  .review { grid-template-columns: minmax(0, 1fr); }
  .steps { padding: 0 18px; }
  .steps button span { font-size: 0; }
  .steps button.on span { font-size: 12px; }
  .modal-h { padding: 18px 18px 6px; } .modal-b { padding: 12px 18px; } .modal-f { padding: 12px 18px 18px; }
  .overlay { padding: 12px; }
  .overlay.side-panel .modal { border-radius: 18px 18px 0 0; height: 92vh; margin-top: auto; animation: rise .22s ease-out; }
  .overlay.side-panel { place-items: end stretch; }
  .overlay.top-panel { padding-top: 70px; }
  .pop { position: fixed; top: 66px; left: 10px; right: 10px; width: auto; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--surface); border-top: 1px solid var(--border); padding: 7px 4px calc(7px + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 650; color: var(--muted); border: 0; background: none; padding: 4px 0; position: relative; }
  .tabbar .on { color: var(--text); }
  .tabbar .on .i { color: var(--accent); }
  .tabbar .tb-n { position: absolute; top: 0; left: calc(50% + 6px); min-width: 17px; height: 17px; border-radius: 9px; background: var(--lime); color: var(--lime-ink); font: 800 10px/17px var(--font); padding: 0 4px; }
  #toasts { left: 14px; right: 14px; bottom: 80px; align-items: stretch; }
  .toast { max-width: none; }
  .donut-wrap { gap: 14px; }
  .donut-wrap svg { width: 120px; height: 120px; }

  .wh-stats b { font-size: 17px; }
  .settings { gap: 14px; }
  .set-row { flex-wrap: wrap; }
  .chan-row .ctl { width: 100%; justify-content: flex-end; }
  .cohort { font-size: 11px; border-spacing: 2px; }
  .cohort td { padding: 7px 2px; font-size: 11px; }
  .cohort .hide-m { display: none; }
}
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
@media print {
  body * { visibility: hidden !important; }
  .labels, .labels * { visibility: visible !important; }
  .labels { position: absolute; left: 0; top: 0; width: 100%; }
}
