/* ListingPulse UI */
:root {
  --bg: #f4f6fb; --bg2: #eef1f8; --card: #ffffff; --card2: #f8f9fd; --line: #e3e7f0; --text: #141a2a; --muted: #6b7489; --soft: #9aa3b8;
  --brand: #6d4aff; --brand2: #00c2a8; --brand-soft: rgba(109,74,255,.1);
  --good: #12a150; --bad: #e5484d; --warn: #f59e0b; --info: #3b82f6;
  --amazon: #ff9900; --flipkart: #2874f0; --website: #10b981; --meesho: #f43397; --other: #8b5cf6;
  --shadow: 0 1px 2px rgba(20,26,42,.04), 0 6px 24px rgba(20,26,42,.06);
  --radius: 16px; --side: 232px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0c0f1a; --bg2: #11152a; --card: #151a2e; --card2: #1a2038; --line: #252c47; --text: #e8ebf5; --muted: #98a1bb; --soft: #6b7491;
  --brand-soft: rgba(139,111,255,.16); --brand: #8b6fff; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 30px rgba(0,0,0,.25); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0c0f1a; --bg2: #11152a; --card: #151a2e; --card2: #1a2038; --line: #252c47; --text: #e8ebf5; --muted: #98a1bb; --soft: #6b7491;
  --brand-soft: rgba(139,111,255,.16); --brand: #8b6fff; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 30px rgba(0,0,0,.25); color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 Inter, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
code { background: var(--bg2); padding: 1px 6px; border-radius: 6px; font-size: 12.5px; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.01em; }
.muted { color: var(--muted); } .soft { color: var(--soft); } .small { font-size: 12px; } .num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

/* ---------- auth / install ---------- */
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(109,74,255,.25), transparent 60%), radial-gradient(900px 500px at 110% 110%, rgba(0,194,168,.22), transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.auth-card.wide { max-width: 720px; }
.brand-lg { font-size: 24px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.brand-lg small { font-weight: 500; color: var(--muted); font-size: 14px; }
.logo-dot { width: 26px; height: 26px; border-radius: 8px; background: conic-gradient(from 200deg, var(--brand), var(--brand2), var(--brand)); box-shadow: 0 0 0 4px var(--brand-soft); display: inline-block; flex: none; }
.checks { display: flex; flex-wrap: wrap; gap: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.form-grid h3 { grid-column: 1 / -1; font-size: 15px; margin-top: 8px; }
.span2 { grid-column: 1 / -1; }
label { display: grid; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--text); background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; outline: none; width: 100%; min-width: 0; }
textarea { resize: vertical; min-height: 120px; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--brand); }
.alert { padding: 10px 14px; border-radius: 10px; font-size: 13px; }
.alert.ok { background: rgba(18,161,80,.12); color: var(--good); } .alert.bad { background: rgba(229,72,77,.12); color: var(--bad); }
.alert.warn { background: rgba(245,158,11,.13); color: #b45309; } .alert.info { background: rgba(59,130,246,.12); color: var(--info); }

/* ---------- buttons / chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--card); color: var(--text);
  padding: 8px 14px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; transition: .15s; }
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn.primary { background: linear-gradient(135deg, var(--brand), #9b5cff); color: #fff; border-color: transparent; box-shadow: 0 6px 18px rgba(109,74,255,.3); }
.btn.primary:hover { filter: brightness(1.08); color: #fff; }
.btn.danger { color: var(--bad); } .btn.danger:hover { border-color: var(--bad); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bg2); color: var(--muted); border: 1px solid transparent; white-space: nowrap; }
.chip.ok { background: rgba(18,161,80,.12); color: var(--good); } .chip.bad { background: rgba(229,72,77,.12); color: var(--bad); }
.chip.warn { background: rgba(245,158,11,.15); color: #c27803; } .chip.info { background: rgba(59,130,246,.12); color: var(--info); }
.chip.brand { background: var(--brand-soft); color: var(--brand); }
button.chip { cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; }
button.chip.on { background: var(--brand); color: #fff; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 20px 14px; border-right: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; gap: 6px; z-index: 30; }
.side .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; padding: 4px 8px 18px; }
.side .brand small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); }
.nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.nav a svg { width: 18px; height: 18px; flex: none; }
.nav a:hover { background: var(--bg2); color: var(--text); }
.nav a.active { background: var(--brand-soft); color: var(--brand); }
.side .foot { margin-top: auto; padding: 12px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); font-size: 12.5px; }
.side .foot .who { font-weight: 700; } .side .foot .row { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.main { min-width: 0; padding: 0 28px 48px; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 0 14px; background: linear-gradient(var(--bg) 70%, transparent); }
.topbar h1 { font-size: 22px; font-weight: 800; margin-right: auto; display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters select, .filters input { width: auto; padding: 7px 10px; font-size: 13px; background: var(--card); }
.filters .dates { display: flex; gap: 6px; align-items: center; }
.period { font-size: 12.5px; color: var(--muted); }

/* ---------- grid / cards ---------- */
.grid { display: grid; gap: 16px; }
.g-kpi { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } .g-12 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.mt { margin-top: 16px; } .mt2 { margin-top: 26px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card .head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card .sub { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.chart-box { position: relative; height: 280px; } .chart-box.sm { height: 220px; } .chart-box.lg { height: 340px; }

.hero { position: relative; overflow: hidden; border-radius: 20px; padding: 22px 24px; color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
  background: radial-gradient(500px 200px at 85% 0%, rgba(255,255,255,.18), transparent 70%), linear-gradient(120deg, #5b3df5, #8a4dff 45%, #00b49c); box-shadow: 0 14px 40px rgba(91,61,245,.28); }
.hero h2 { font-size: 22px; font-weight: 800; } .hero p { margin: 4px 0 0; opacity: .88; }
.hero .big { display: flex; gap: 26px; } .hero .big div { text-align: right; } .hero .big b { display: block; font-size: 30px; line-height: 1.1; font-weight: 800; }
.hero .big span { font-size: 12px; opacity: .85; text-transform: uppercase; letter-spacing: .06em; }

.kpi { position: relative; overflow: hidden; }
.kpi .lbl { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; display: flex; align-items: center; gap: 8px; }
.kpi .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; background: var(--brand-soft); }
.kpi .val { font-size: 28px; font-weight: 800; margin-top: 10px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .foot { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.delta { font-weight: 700; font-size: 12px; padding: 1px 7px; border-radius: 999px; }
.delta.up { color: var(--good); background: rgba(18,161,80,.12); } .delta.down { color: var(--bad); background: rgba(229,72,77,.12); } .delta.flat { color: var(--muted); background: var(--bg2); }

.mk { position: relative; overflow: hidden; }
.mk::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--c, var(--brand)); }
.mk .name { font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.mk .acc { font-size: 12px; color: var(--muted); }
.mk .val { font-size: 32px; font-weight: 800; margin: 8px 0 2px; }
.mk .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.mk .stats div { background: var(--card2); border-radius: 10px; padding: 7px 9px; } .mk .stats b { display: block; font-size: 15px; } .mk .stats span { font-size: 11px; color: var(--muted); }
.bar { height: 8px; background: var(--bg2); border-radius: 99px; overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; background: var(--c, var(--brand)); }

.insights { display: grid; gap: 10px; }
.ins { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); }
.ins .i { font-size: 18px; line-height: 1.2; } .ins p { margin: 0; font-size: 13.5px; }
.ins.good { border-left: 3px solid var(--good); } .ins.warn { border-left: 3px solid var(--warn); } .ins.action { border-left: 3px solid var(--brand); } .ins.info { border-left: 3px solid var(--info); }
.ins a { font-size: 12px; font-weight: 700; white-space: nowrap; margin-left: auto; }

/* ---------- tables ---------- */
.table-wrap { overflow: auto; border-radius: 12px; border: 1px solid var(--line); max-height: 560px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { position: sticky; top: 0; background: var(--card2); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; white-space: nowrap; z-index: 1; }
th.sort { cursor: pointer; } th.sort:hover { color: var(--brand); }
tbody tr:hover { background: var(--bg2); }
tr.clickable { cursor: pointer; }
td.r, th.r { text-align: right; } td.c, th.c { text-align: center; }
td .sku { font-family: ui-monospace, Consolas, monospace; font-size: 12px; font-weight: 600; }
.tick { color: var(--good); font-weight: 800; } .miss { color: var(--bad); opacity: .65; }
tr.row-dup td { background: rgba(245,158,11,.06); } tr.row-bad td { background: rgba(229,72,77,.07); } tr.row-skip td { opacity: .45; text-decoration: line-through; }
.medal { font-size: 16px; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; }

/* ---------- heatmap ---------- */
.heat { overflow-x: auto; }
.heat table { width: auto; border-collapse: separate; border-spacing: 3px; }
.heat td, .heat th { border: 0; padding: 0; }
.heat th { position: static; background: none; font-size: 10.5px; text-transform: none; letter-spacing: 0; padding: 0 2px 4px; text-align: center; }
.heat td.name { padding-right: 10px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.heat .cell { width: 30px; height: 26px; border-radius: 6px; background: var(--bg2); display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: transparent; }
.heat .cell:hover { color: var(--text); outline: 2px solid var(--brand); }
.heat .cell[data-l="1"] { background: rgba(109,74,255,.18); } .heat .cell[data-l="2"] { background: rgba(109,74,255,.38); }
.heat .cell[data-l="3"] { background: rgba(109,74,255,.6); color: #fff; } .heat .cell[data-l="4"] { background: rgba(109,74,255,.9); color: #fff; }

/* ---------- team ---------- */
.g-team { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.emp { cursor: pointer; transition: .15s; } .emp:hover { transform: translateY(-2px); border-color: var(--brand); }
.emp .top { display: flex; gap: 12px; align-items: center; }
.avatar { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; background: linear-gradient(135deg, var(--brand), var(--brand2)); }
.emp .nm { font-weight: 800; font-size: 15px; } .emp .tm { font-size: 12px; color: var(--muted); }
.emp .ring { margin-left: auto; }
.emp .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 14px 0 10px; text-align: center; }
.emp .stats b { display: block; font-size: 16px; } .emp .stats span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.spark { width: 100%; height: 38px; display: block; }

/* ---------- upload ---------- */
.drop { border: 2px dashed var(--line); border-radius: 18px; padding: 38px 20px; text-align: center; background: var(--card); cursor: pointer; transition: .15s; }
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop .big { font-size: 40px; } .drop h3 { font-size: 17px; margin: 8px 0 4px; justify-content: center; }
.map-list { display: flex; flex-wrap: wrap; gap: 6px; }
.preview .sum { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.preview .sum .chip { font-size: 12.5px; padding: 5px 12px; }

/* ---------- modal / toast ---------- */
.overlay { position: fixed; inset: 0; background: rgba(8,10,20,.55); backdrop-filter: blur(3px); z-index: 100; display: flex; justify-content: flex-end; }
.overlay.center { justify-content: center; align-items: center; padding: 16px; }
.drawer { width: min(860px, 100%); height: 100%; overflow-y: auto; background: var(--bg); padding: 22px; box-shadow: -10px 0 40px rgba(0,0,0,.2); animation: slide .2s ease-out; }
.modal { width: min(560px, 100%); max-height: 92vh; overflow-y: auto; background: var(--card); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); animation: pop .15s ease-out; }
.modal h3 { font-size: 17px; margin-bottom: 14px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } } @keyframes pop { from { transform: scale(.97); opacity: 0; } }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: grid; gap: 8px; }
.toast { background: var(--text); color: var(--bg); padding: 11px 16px; border-radius: 12px; font-weight: 600; font-size: 13px; box-shadow: var(--shadow); animation: pop .2s; max-width: 360px; }
.toast.bad { background: var(--bad); color: #fff; } .toast.ok { background: var(--good); color: #fff; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty .big { font-size: 42px; }
.loading { display: grid; place-items: center; min-height: 260px; color: var(--muted); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tabs { display: flex; gap: 4px; background: var(--bg2); padding: 4px; border-radius: 12px; width: fit-content; flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs button.on { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.hbar { display: grid; gap: 9px; }
.hbar .r { display: grid; grid-template-columns: 120px 1fr 48px; gap: 10px; align-items: center; font-size: 12.5px; }
.hbar .r .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.hbar .r b { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- catalog ---------- */
.g-prod { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.pcard { padding: 0; overflow: hidden; cursor: pointer; transition: .15s; position: relative; }
.pcard:hover { border-color: var(--brand); transform: translateY(-2px); }
.pcard .ph { aspect-ratio: 1 / 1; background: var(--bg2) center/contain no-repeat; display: grid; place-items: center; font-size: 34px; color: var(--soft); }
.pcard .pb { padding: 12px 14px; display: grid; gap: 6px; }
.pcard .pt { font-weight: 700; font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 35px; }
.pcard .sel { position: absolute; top: 10px; left: 10px; width: 20px; height: 20px; z-index: 2; }
.pcard .stt { position: absolute; top: 10px; right: 10px; }
.pills { display: flex; gap: 4px; flex-wrap: wrap; }
.pill { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--bg2); color: var(--muted); }
.pill.live { background: rgba(18,161,80,.15); color: var(--good); } .pill.submitted { background: rgba(59,130,246,.15); color: var(--info); }
.pill.ready { background: var(--brand-soft); color: var(--brand); } .pill.error { background: rgba(229,72,77,.15); color: var(--bad); } .pill.skip { opacity: .45; text-decoration: line-through; }
.imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.imgs .im { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg2); cursor: grab; }
.imgs .im img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; display: block; background: #fff; }
.imgs .im .meta { font-size: 10.5px; padding: 4px 6px; color: var(--muted); display: flex; justify-content: space-between; }
.imgs .im .x { position: absolute; top: 4px; right: 4px; border: 0; background: rgba(0,0,0,.6); color: #fff; border-radius: 6px; width: 22px; height: 22px; cursor: pointer; }
.imgs .im .main { position: absolute; top: 4px; left: 4px; }
.imgs .im.drag { opacity: .4; }
.ed-sec { margin-top: 16px; } .ed-sec h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.counter { font-size: 11px; color: var(--soft); text-align: right; } .counter.over { color: var(--bad); font-weight: 700; }
.chk-list { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; } .chk-list li.e { color: var(--bad); } .chk-list li.w { color: #c27803; }
.quick { border-radius: 16px; padding: 16px 18px; background: linear-gradient(120deg, var(--brand-soft), rgba(0,194,168,.12)); border: 1px solid var(--line); margin-bottom: 14px; }
.quick ol { list-style: none; margin: 6px 0 10px; padding-left: 0; display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; }
.req { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.req .chip.ok::before { content: "✓ "; } .req .chip.bad::before { content: "○ "; }
.req .chip { cursor: pointer; }
.sku-hint { font-size: 12px; margin-top: 4px; color: var(--muted); font-weight: 500; }
.sku-hint.bad { color: var(--bad); } .sku-hint.ok { color: var(--good); }
details.card > summary { cursor: pointer; list-style: none; font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 8px; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform .15s; }
details.card:not([open]) > summary::after { transform: rotate(-90deg); }
details.card > summary .sub { font-weight: 500; }
.savebar { position: sticky; bottom: -22px; margin: 18px -22px -22px; padding: 12px 22px; background: var(--card); border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; align-items: center; z-index: 5; box-shadow: 0 -6px 20px rgba(0,0,0,.06); }
.savebar .grow { margin-right: auto; }
.ed-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 1000px) { .ed-grid { grid-template-columns: 1fr; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .g-3 { grid-template-columns: 1fr 1fr; } .g-21, .g-12 { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: transform .2s; box-shadow: 10px 0 30px rgba(0,0,0,.2); }
  .side.open { transform: none; }
  .menu-btn { display: inline-flex; }
  .main { padding: 0 16px 40px; }
  .g-2, .g-3 { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; } .hero .big div { text-align: left; }
  .form-grid { grid-template-columns: 1fr; }
  .topbar h1 { font-size: 19px; }
  .g-kpi { grid-template-columns: 1fr 1fr; }
  .kpi .val { font-size: 22px; }
  .auth-card { padding: 22px; }
}
