:root, [data-theme="dark"] {
  --bg: #07090F; --bg2: #0B0E16; --card: #10131C; --card2: #151926; --chip: #1B2030;
  --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.12); --ov: 255,255,255;
  --text: #F2F4F8; --t1: #D9DCE6; --t2: #A8AEC0; --t3: #8D94A8; --t4: #6B7389;
  --lime: #D4FF5A; --lime-rgb: 212,255,90; --on-lime: #07090F;
  --violet: #9B8CFF; --violet-rgb: 155,140,255; --violet2: #B4A9FF;
  --coral: #FF8A7A; --red: #FF6B6B; --red-rgb: 255,107,107;
  --amber: #FFC24B; --amber-rgb: 255,194,75; --orange: #FF9F5A;
  --mint: #3DDC97; --mint-rgb: 61,220,151; --sky: #5CC8FF; --sky-rgb: 92,200,255; --pink: #FF7AB6;
  --inv: #F2F4F8; --on-inv: #07090F;
  --glow1: rgba(155,140,255,.16); --glow2: rgba(212,255,90,.06);
  --shadow: 0 20px 50px rgba(0,0,0,.45);
  --ai-bg: #121024; --ai-line: rgba(155,140,255,.24);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #F4F5F0; --bg2: #FFFFFF; --card: #FFFFFF; --card2: #F7F8F4; --chip: #EEF0F4;
  --line: rgba(16,22,40,.08); --line2: rgba(16,22,40,.14); --ov: 16,22,40;
  --text: #0E1220; --t1: #232838; --t2: #4B5266; --t3: #646B80; --t4: #8A90A2;
  --lime: #4A860C; --lime-rgb: 74,134,12; --on-lime: #FFFFFF;
  --violet: #6A55EA; --violet-rgb: 106,85,234; --violet2: #5A46D8;
  --coral: #D63E2E; --red: #E04848; --red-rgb: 224,72,72;
  --amber: #C47F00; --amber-rgb: 196,127,0; --orange: #E2680F;
  --mint: #0E9A5E; --mint-rgb: 14,154,94; --sky: #0A82C4; --sky-rgb: 10,130,196; --pink: #D6337F;
  --inv: #0E1220; --on-inv: #FFFFFF;
  --glow1: rgba(106,85,234,.10); --glow2: rgba(74,134,12,.06);
  --shadow: 0 18px 44px rgba(16,22,40,.16);
  --ai-bg: #F3F0FF; --ai-line: rgba(106,85,234,.22);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(1100px 520px at 88% -12%, var(--glow1), transparent 62%), radial-gradient(800px 480px at 8% 18%, var(--glow2), transparent 60%), var(--bg);
  background-attachment: fixed;
  color: var(--text); font-family: 'Geist', system-ui, -apple-system, Segoe UI, sans-serif; font-size: 14px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
}
a { color: var(--lime); text-decoration: none; }
button { font: inherit; color: inherit; }
input, select { font: inherit; color: inherit; }
.mono { font-family: 'Geist Mono', ui-monospace, monospace; }
.disp { font-family: 'Bricolage Grotesque', 'Geist', sans-serif; letter-spacing: -.03em; }
.muted { color: var(--t3); }
.boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--lime); color: var(--on-lime); display: inline-flex; align-items: center; justify-content: center; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 19px; flex: 0 0 auto; }
.boot .logo-mark { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.88); opacity: .6; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- layout ---------- */
.shell { display: flex; min-height: 100vh; }
.side { width: 248px; flex: 0 0 248px; position: sticky; top: 0; height: 100vh; overflow-y: auto; background: rgba(var(--ov),.015); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.brand b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.tag { font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 6px; background: var(--violet); color: #07090F; letter-spacing: .04em; }
.co-switch { position: relative; }
.co-btn { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 12px; background: rgba(var(--ov),.04); border: 1px solid var(--line); }
.co-btn:hover { border-color: var(--line2); }
.av { width: 32px; height: 32px; border-radius: 10px; background: var(--chip); color: var(--violet2); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: 0 0 auto; }
.co-btn .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.co-btn .nm b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-btn .nm span { font-size: 11px; color: var(--t3); }
.menu { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 6px); background: var(--card2); border: 1px solid var(--line2); border-radius: 14px; padding: 6px; box-shadow: var(--shadow); animation: rise .15s ease; }
.menu button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; padding: 9px 10px; border-radius: 10px; font-size: 13px; }
.menu button:hover, .menu button.on { background: rgba(var(--ov),.06); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav .sec { font-size: 10px; font-weight: 700; color: var(--t4); padding: 12px 12px 6px; letter-spacing: .12em; }
.nav a { display: flex; align-items: center; gap: 11px; color: var(--t2); padding: 9px 12px; border-radius: 10px; font-size: 13px; font-weight: 500; transition: background .15s, color .15s; }
.nav a:hover { background: rgba(var(--ov),.05); color: var(--text); }
.nav a.on { background: var(--lime); color: var(--on-lime); font-weight: 700; }
.nav a .cnt { margin-left: auto; font-size: 11px; color: var(--t3); }
.nav a.on .cnt { color: var(--on-lime); }
.nav a .badge { margin-left: auto; font-size: 10px; font-weight: 700; background: var(--violet); color: #07090F; padding: 2px 6px; border-radius: 5px; }
.sync-card { margin-top: auto; border-radius: 14px; padding: 12px 14px; background: rgba(var(--mint-rgb),.08); border: 1px solid rgba(var(--mint-rgb),.22); display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.sync-card b { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--mint); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(var(--mint-rgb),.18); flex: 0 0 auto; display: inline-block; }
.main { flex: 1; min-width: 0; padding: 22px 30px 60px; display: flex; flex-direction: column; gap: 18px; }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; }
.top-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ask-bar { display: flex; align-items: center; gap: 10px; height: 42px; width: 320px; max-width: 100%; padding: 0 6px 0 14px; border-radius: 12px; background: rgba(var(--ov),.04); border: 1px solid var(--line2); cursor: text; }
.ask-bar input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 13px; }
.kbd { font-size: 11px; color: var(--t3); font-family: 'Geist Mono', monospace; border: 1px solid var(--line2); border-radius: 6px; padding: 2px 6px; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(var(--ov),.04); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text); position: relative; flex: 0 0 auto; }
.icon-btn:hover { border-color: var(--t4); }
.user-btn { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; position: relative; }
.user-btn .av { background: var(--violet); color: #07090F; }
.page-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.eyebrow { font-size: 12px; color: var(--t3); font-family: 'Geist Mono', monospace; letter-spacing: .05em; text-transform: uppercase; }
.h1 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 34px; font-weight: 700; letter-spacing: -.035em; line-height: 1.05; margin: 4px 0 6px; }
.sub { color: var(--t2); font-size: 14px; margin: 0; }
.hot { color: var(--coral); font-weight: 600; }
.ca-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px; background: rgba(var(--violet-rgb),.1); border: 1px solid var(--ai-line); font-size: 13px; }
.ca-banner b { color: var(--violet2); }

/* ---------- atoms ---------- */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(var(--ov),.04); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { border: 0; background: transparent; color: var(--t2); height: 32px; padding: 0 13px; border-radius: 9px; cursor: pointer; font-size: 12px; font-weight: 500; white-space: nowrap; }
.seg button.on { background: var(--inv); color: var(--on-inv); font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line2); background: rgba(var(--ov),.04); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: transform .1s, background .15s; }
.btn:hover { background: rgba(var(--ov),.08); }
.btn:active { transform: scale(.97); }
.btn.sm { height: 30px; padding: 0 11px; font-size: 12px; border-radius: 9px; }
.btn.pri { background: var(--lime); color: var(--on-lime); border-color: transparent; }
.btn.inv { background: var(--inv); color: var(--on-inv); border-color: transparent; }
.btn.wa { background: rgba(var(--mint-rgb),.12); color: var(--mint); border-color: rgba(var(--mint-rgb),.35); }
.btn.vio { background: var(--violet); color: #07090F; border-color: transparent; }
.btn[disabled] { opacity: .5; cursor: default; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; font-family: 'Geist Mono', monospace; white-space: nowrap; }
.p-good { background: rgba(var(--mint-rgb),.13); color: var(--mint); }
.p-bad { background: rgba(var(--red-rgb),.13); color: var(--coral); }
.p-warn { background: rgba(var(--amber-rgb),.14); color: var(--amber); }
.p-vio { background: rgba(var(--violet-rgb),.15); color: var(--violet2); }
.p-sky { background: rgba(var(--sky-rgb),.13); color: var(--sky); }
.p-mut { background: rgba(var(--ov),.06); color: var(--t2); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: inset 0 1px 0 rgba(var(--ov),.03); min-width: 0; animation: rise .35s ease both; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.card-h .t { font-size: 13px; color: var(--t2); font-weight: 500; }
.card-h .tt { font-family: 'Bricolage Grotesque', sans-serif; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.big { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.grid { display: grid; gap: 14px; }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr)); }
.row2 { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.row2 > .wide { flex: 2 1 560px; min-width: 0; }
.row2 > .narrow { flex: 1 1 330px; min-width: 0; }
.kpi { display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: transform .15s, border-color .15s; }
.kpi:hover { transform: translateY(-2px); border-color: var(--line2); }
.kpi .l { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--t2); }
.kpi .v { font-size: 34px; }
.kpi .s { font-size: 12px; color: var(--t3); }
.kpi.hero { background: var(--lime); color: var(--on-lime); border-color: transparent; }
.kpi.hero .l, .kpi.hero .s { color: var(--on-lime); opacity: .8; }
.kpi.hero .v { font-size: 40px; }
.kpi.hero .pill { background: var(--on-lime); color: var(--lime); }
.spark { width: 100%; height: 44px; display: block; }
.ai-card { background: radial-gradient(420px 260px at 100% 0%, rgba(var(--violet-rgb),.22), transparent 70%), var(--ai-bg); border-color: var(--ai-line); }
.ai-ic { width: 32px; height: 32px; border-radius: 10px; background: var(--violet); color: #07090F; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ins { border-radius: 16px; padding: 12px 14px; background: rgba(var(--ov),.04); border: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; transition: opacity .3s; }
.ins .k { font-size: 10px; font-weight: 700; letter-spacing: .08em; font-family: 'Geist Mono', monospace; }
.ins .tx { font-size: 13px; line-height: 1.5; color: var(--t1); }
.ins .ttl { font-size: 13px; font-weight: 600; color: var(--text); }
.ins.done { opacity: .55; }
.sev { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: 0 0 auto; }
.sev.high { background: var(--red); box-shadow: 0 0 0 4px rgba(var(--red-rgb),.18); }
.sev.med { background: var(--amber); box-shadow: 0 0 0 4px rgba(var(--amber-rgb),.18); }
.sev.low { background: var(--mint); box-shadow: 0 0 0 4px rgba(var(--mint-rgb),.18); }
.bar-track { height: 6px; border-radius: 3px; background: rgba(var(--ov),.07); display: flex; overflow: hidden; }
.bar-track > span { height: 100%; border-radius: 3px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.stack { display: flex; gap: 4px; height: 40px; }
.stack > span { border-radius: 10px; transition: flex .5s; min-width: 4px; cursor: pointer; }
.legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.legend > div { display: flex; flex-direction: column; gap: 2px; }
.legend .k { font-size: 11px; color: var(--t3); display: flex; align-items: center; gap: 6px; }
.sq { width: 8px; height: 8px; border-radius: 2px; display: inline-block; flex: 0 0 auto; }
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--t4); padding: 11px 10px; border-bottom: 1px solid var(--line); text-transform: uppercase; white-space: nowrap; cursor: pointer; user-select: none; }
.tbl th.r, .tbl td.r { text-align: right; }
.tbl td { padding: 11px 10px; border-bottom: 1px solid rgba(var(--ov),.04); white-space: nowrap; }
.tbl td.r { font-family: 'Geist Mono', monospace; font-size: 12.5px; }
.tbl tr.f-b td { font-weight: 700; background: rgba(var(--ov),.025); }
.tbl tr.f-g td:last-child { color: var(--mint); font-weight: 600; }
.tbl tr.f-r td:last-child { color: var(--coral); font-weight: 600; }
.tbl tr.f-g.tot td { font-weight: 700; background: rgba(var(--mint-rgb),.06); }
.tbl tbody tr:hover td { background: rgba(var(--ov),.03); }
.tbl tr.click { cursor: pointer; }
.chart-box { position: relative; }
.tip { position: fixed; z-index: 200; pointer-events: none; background: var(--inv); color: var(--on-inv); border-radius: 12px; padding: 8px 12px; font-size: 12px; box-shadow: var(--shadow); white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); }
.tip b { font-family: 'Geist Mono', monospace; }
.tip .tl { font-size: 11px; opacity: .7; margin-bottom: 2px; }
.toasts { position: fixed; z-index: 300; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { background: var(--inv); color: var(--on-inv); padding: 11px 16px; border-radius: 12px; font-size: 13px; font-weight: 500; box-shadow: var(--shadow); animation: rise .25s ease; max-width: 360px; }
.empty { padding: 30px; text-align: center; color: var(--t3); }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(var(--ov),.15); border-top-color: var(--lime); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
.skel { background: linear-gradient(90deg, rgba(var(--ov),.04), rgba(var(--ov),.08), rgba(var(--ov),.04)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 22px; }
@keyframes shimmer { to { background-position: -200% 0; } }
input.inp { height: 40px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line2); background: rgba(var(--ov),.04); outline: none; font-size: 13px; width: 100%; }
input.inp:focus { border-color: var(--lime); }
.search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(var(--ov),.04); min-width: 220px; }
.search input { border: 0; outline: none; background: transparent; flex: 1; min-width: 0; font-size: 13px; }

/* ---------- reports ---------- */
.rep-wrap { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.rep-list { flex: 0 0 260px; position: sticky; top: 16px; display: flex; flex-direction: column; gap: 10px; }
.rep-list .grp { font-size: 10px; font-weight: 700; color: var(--t4); letter-spacing: .12em; padding: 6px 8px 2px; }
.rep-item { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid transparent; }
.rep-item:hover { background: rgba(var(--ov),.04); }
.rep-item.on { background: rgba(var(--ov),.07); border-color: var(--line2); }
.rep-tag { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; font-family: 'Geist Mono', monospace; flex: 0 0 auto; }
.rep-item b { font-size: 13px; font-weight: 600; display: block; }
.rep-item span.s { font-size: 11px; color: var(--t3); }
.rep-main { flex: 1 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ai-line { border-radius: 16px; padding: 13px 16px; background: radial-gradient(400px 120px at 0% 0%, rgba(var(--violet-rgb),.2), transparent 70%), var(--ai-bg); border: 1px solid var(--ai-line); display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--t1); }
.hbar { display: grid; grid-template-columns: minmax(110px, 220px) minmax(0, 1fr) 96px; gap: 14px; align-items: center; padding: 3px 0; cursor: default; }
.hbar .n { font-size: 13px; color: var(--t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar .tr { height: 24px; background: rgba(var(--ov),.04); border-radius: 8px; overflow: hidden; display: flex; }
.hbar .tr > span { height: 100%; border-radius: 8px; transition: width .7s cubic-bezier(.2,.8,.2,1); }
.hbar .v { font-size: 13px; font-weight: 600; text-align: right; font-family: 'Geist Mono', monospace; }
.hbar:hover .tr > span { filter: brightness(1.15); }
.donut-wrap { display: flex; flex-wrap: wrap; gap: 30px; align-items: center; }
.donut-leg { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; }
.donut-leg > div { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 50px; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 10px; cursor: default; }
.donut-leg > div:hover, .donut-leg > div.on { background: rgba(var(--ov),.06); }

/* ---------- paisa ---------- */
.party { display: grid; grid-template-columns: 40px minmax(0, 1.6fr) minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 6px; border-bottom: 1px solid rgba(var(--ov),.05); }
.party:last-child { border-bottom: 0; }
.party .acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.auto-card { background: var(--lime); color: var(--on-lime); border: 0; }
.auto-card .muted { color: var(--on-lime); opacity: .7; }
.toggle { width: 50px; height: 28px; border-radius: 14px; border: 0; padding: 3px; cursor: pointer; display: flex; background: rgba(0,0,0,.2); transition: background .2s; flex: 0 0 auto; }
.toggle > span { width: 22px; height: 22px; border-radius: 11px; background: #fff; transition: transform .2s; }
.toggle.on > span { transform: translateX(22px); }
.auto-card .toggle.on { background: var(--on-lime); }
.auto-card .toggle.on > span { background: var(--lime); }

/* ---------- modal / drawer ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(4,6,12,.55); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: rise .15s ease; }
.modal { width: 520px; max-width: 100%; max-height: 90vh; overflow-y: auto; background: var(--card); border: 1px solid var(--line2); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); }
.drawer-ov { justify-content: flex-end; padding: 0; align-items: stretch; }
.drawer { width: 560px; max-width: 100%; background: var(--card); border-left: 1px solid var(--line2); padding: 22px; overflow-y: auto; animation: slidein .25s ease; }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } }
.wa-phone { background: #0B141A; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
[data-theme="light"] .wa-phone { background: #EFE7DD; }
.wa-msg { align-self: flex-end; max-width: 88%; background: #005C4B; color: #E9EDEF; padding: 10px 12px 6px; border-radius: 12px 12px 4px 12px; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; animation: rise .3s ease; }
[data-theme="light"] .wa-msg { background: #D9FDD3; color: #111B21; }
.wa-msg .meta { text-align: right; font-size: 10.5px; opacity: .7; margin-top: 4px; }
.call-line { display: flex; gap: 10px; align-items: flex-start; animation: rise .3s ease both; }
.call-line .who { font-size: 10px; font-weight: 700; font-family: 'Geist Mono', monospace; padding: 3px 7px; border-radius: 6px; flex: 0 0 auto; margin-top: 2px; }
.call-line .w-ai { background: var(--violet); color: #07090F; }
.call-line .w-c { background: rgba(var(--ov),.1); color: var(--t1); }
.typing span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--t3); margin-right: 3px; animation: blink 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }

/* ---------- ask ---------- */
.ask-page { max-width: 860px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.ask-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 0 4px; }
.ask-hero .orb { width: 60px; height: 60px; border-radius: 18px; background: var(--violet); color: #07090F; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px rgba(var(--violet-rgb),.12), 0 0 60px rgba(var(--violet-rgb),.55); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { border: 1px solid rgba(var(--violet-rgb),.3); background: rgba(var(--violet-rgb),.09); color: var(--violet2); border-radius: 12px; padding: 8px 12px; font-size: 13px; cursor: pointer; text-align: left; }
.chip:hover { background: rgba(var(--violet-rgb),.16); }
.msgs { display: flex; flex-direction: column; gap: 14px; }
.m-user { align-self: flex-end; max-width: 80%; background: var(--inv); color: var(--on-inv); padding: 11px 15px; border-radius: 18px 18px 6px 18px; font-size: 14px; animation: rise .2s ease; }
.m-ai { align-self: flex-start; width: 100%; background: var(--card); border: 1px solid var(--line); padding: 16px; border-radius: 18px 18px 18px 6px; display: flex; flex-direction: column; gap: 12px; animation: rise .25s ease; }
.m-ai .ans { font-size: 14.5px; line-height: 1.6; color: var(--t1); }
.m-ai .ans b { color: var(--text); }
.m-rows { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.m-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; font-size: 13px; border-bottom: 1px solid rgba(var(--ov),.05); }
.m-rows > div:last-child { border-bottom: 0; }
.m-rows b { font-family: 'Geist Mono', monospace; font-weight: 600; }
.composer { position: sticky; bottom: 14px; display: flex; gap: 8px; align-items: center; padding: 8px; border-radius: 18px; background: var(--card2); border: 1px solid var(--line2); box-shadow: var(--shadow); }
.composer input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 15px; padding: 0 10px; height: 44px; }
.mic.rec { background: var(--red) !important; color: #fff !important; animation: pulse 1s infinite; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: flex; flex-wrap: wrap; }
.login-l { flex: 1 1 520px; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; position: relative; overflow: hidden; }
.login-r { flex: 1 1 420px; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-card { width: 420px; max-width: 100%; background: var(--card); border: 1px solid var(--line2); border-radius: 28px; padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.hero-t { font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(40px, 5.2vw, 68px); font-weight: 700; letter-spacing: -.045em; line-height: .98; margin: 0; }
.hero-t em { font-style: normal; color: var(--lime); }
.feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.feat > div { border: 1px solid var(--line); background: rgba(var(--ov),.03); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--t2); }
.feat b { color: var(--text); font-size: 14px; }
.demo-btn { all: unset; cursor: pointer; box-sizing: border-box; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; border: 1px solid var(--line2); background: rgba(var(--ov),.03); transition: border-color .15s, transform .15s; }
.demo-btn:hover { border-color: var(--lime); transform: translateY(-1px); }
.demo-btn .ic { width: 42px; height: 42px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.or { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--t4); letter-spacing: .1em; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line2); }
.err { color: var(--coral); font-size: 13px; }

/* ---------- mobile ---------- */
.bnav { display: none; }
.mob-co { display: none; min-width: 0; flex: 1 1 auto; max-width: 260px; }
.mob-co .co-btn { padding: 6px 10px; }
@media (max-width: 900px) {
  .side { display: none; }
  .main { padding: 16px 14px 120px; gap: 14px; }
  .h1 { font-size: 28px; }
  .ask-bar { display: none; }
  .bnav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; position: fixed; z-index: 50; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); padding: 6px; border-radius: 22px; background: var(--card2); border: 1px solid var(--line2); box-shadow: var(--shadow); }
  .bnav a { height: 48px; border-radius: 16px; color: var(--t2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; font-weight: 600; }
  .bnav a.on { background: var(--lime); color: var(--on-lime); }
  .rep-list { position: static; flex: 1 1 100%; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .rep-list .grp { display: none; }
  .rep-item { flex: 0 0 auto; border: 1px solid var(--line); }
  .rep-item span.s { display: none; }
  .kpi .v { font-size: 30px; }
  .party { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .party .mid { display: none; }
  .hbar { grid-template-columns: minmax(90px, 130px) minmax(0, 1fr) 76px; gap: 8px; }
  .login-l { padding: 32px 22px; }
  .toasts { left: 12px; right: 12px; bottom: 96px; align-items: stretch; }
  .composer { bottom: 92px; }
  .top .mob-hide, .mob-hide { display: none; }
  .mob-co { display: block; }
  .top-r .icon-btn#notif { display: none; }
}
@media print {
  body { background: #fff !important; color: #000; }
  .side, .bnav, .top, .rep-list, .no-print, .toasts { display: none !important; }
  .main { padding: 0; }
  .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
}
