: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; min-width: 0; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; position: relative; overflow: hidden; }
.login-r { flex: 1 1 420px; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-card { width: 100%; max-width: 420px; 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; }

/* ---------- day plan ---------- */
.t-ic { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.plan-h { margin-bottom: 12px; }
.plan-h .seg { display: flex; width: 100%; box-sizing: border-box; flex-wrap: nowrap; }
.plan-h .seg button { flex: 1 1 0; padding: 0 6px; }
.plan-sum { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ring { width: 52px; height: 52px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; position: relative; transition: background .4s; }
.ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--card); }
.ring span { position: relative; font-family: 'Geist Mono', monospace; font-size: 12px; font-weight: 700; display: flex; }
.ai-card .ring::before { background: var(--ai-bg); }
.tasks { display: flex; flex-direction: column; gap: 8px; }
.task { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: rgba(var(--ov),.03); border: 1px solid var(--line); transition: opacity .25s, background .2s; animation: rise .3s ease both; }
.task.kal, .task:not(:has(.chk)) { grid-template-columns: auto minmax(0, 1fr) auto; }
.task:hover { background: rgba(var(--ov),.055); }
.task.done { opacity: .5; }
.task.done .tt b { text-decoration: line-through; }
.chk { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line2); background: transparent; color: var(--on-lime); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; flex: 0 0 auto; transition: background .2s, border-color .2s, transform .1s; }
.chk:active { transform: scale(.88); }
.task.done .chk { background: var(--lime); border-color: var(--lime); }
.tt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tt b { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--text); }
.tt > span { font-size: 11.5px; color: var(--t3); line-height: 1.35; }
.go { height: 28px; min-width: 28px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line2); background: rgba(var(--ov),.05); color: var(--text); font-size: 11.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.go:hover { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
.eod { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.eod > div { padding: 10px; border-radius: 14px; background: rgba(var(--ov),.035); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.eod .k { font-size: 11px; color: var(--t3); }
.eod .v { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 17px; letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eod .s { font-size: 10.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; padding: 12px; border-radius: 14px; background: rgba(var(--violet-rgb),.08); border: 1px solid rgba(var(--violet-rgb),.18); }
.hl > div { display: flex; gap: 8px; font-size: 12.5px; line-height: 1.45; color: var(--t1); }
.hl > div svg { color: var(--violet2); flex: 0 0 auto; margin-top: 2px; }

.more { height: 36px; border-radius: 12px; border: 1px dashed var(--line2); background: transparent; color: var(--t2); font-size: 12px; font-weight: 600; cursor: pointer; }
.more:hover { color: var(--text); background: rgba(var(--ov),.04); }

/* ---------- mobile home ---------- */
.m-home { display: flex; flex-direction: column; gap: 12px; }
.m-greet { display: flex; flex-direction: column; gap: 2px; }
.m-greet h1 { font-size: 24px; margin: 0; font-weight: 700; }
.m-seg .seg { display: flex; width: 100%; box-sizing: border-box; flex-wrap: nowrap; }
.m-seg .seg button { flex: 1 1 0; }
.m-hero { display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 12px; border-radius: 22px; background: var(--lime); color: var(--on-lime); position: relative; overflow: hidden; animation: rise .35s ease both; }
.m-hero .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.m-hero .lb { font-size: 12px; font-weight: 500; opacity: .75; }
.m-hero .lb b { font-weight: 700; opacity: 1; }
.m-hero .v { font-size: 34px; }
.m-hero .pill { background: rgba(0,0,0,.14); color: var(--on-lime); }
[data-theme="light"] .m-hero .pill { background: rgba(255,255,255,.2); }
.m-hero svg { display: block; width: 100%; height: 38px; margin-top: 2px; }
.m-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); min-width: 0; color: var(--text); animation: rise .35s ease both; transition: transform .1s; }
.tile:active, .m-quick a:active, .m-sc a:active { transform: scale(.97); }
.tile-h { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tile .lb { font-size: 11.5px; color: var(--t2); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .v { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -.035em; line-height: 1.05; white-space: nowrap; }
.tile .s { font-size: 10.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 12px 6px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.m-quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--t1); transition: transform .1s; }
.m-quick a > span { width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.m-card { padding: 14px; border-radius: 20px; }
.plan-card { padding: 14px; border-radius: 20px; }
.m-leg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.m-leg span { display: flex; flex-direction: column; gap: 2px; font-size: 10.5px; color: var(--t3); }
.m-leg i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-bottom: 2px; }
.m-leg b { font-family: 'Geist Mono', monospace; font-size: 11.5px; color: var(--text); font-weight: 600; }
.m-sec { display: flex; justify-content: space-between; align-items: center; padding: 4px 2px 0; }
.m-sec .t { font-family: 'Bricolage Grotesque', sans-serif; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.m-sec a { font-size: 12px; color: var(--lime); font-weight: 600; }
.m-sc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.m-sc a { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--text); transition: transform .1s; min-width: 0; }
.m-sc b { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ---------- 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: 22px; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .g4 > .card { padding: 14px; border-radius: 18px; }
  .card { padding: 16px; border-radius: 20px; }
  .eod { gap: 6px; }
  .eod > div { padding: 9px 8px; }
  .eod .v { font-size: 15.5px; }
  .task { padding: 9px; gap: 9px; }
  .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 18px; }
  .login-r { padding: 8px 14px 40px; }
  .login-card { padding: 20px; border-radius: 22px; }
  .demo-btn { padding: 12px; }
  .demo-btn .ic { width: 38px; height: 38px; }
  .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; }
}
/* phone "Menu" sheet — Gateway of Tally */
.msheet { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.5); display: flex; align-items: flex-end; }
.msheet-in { width: 100%; max-height: 86vh; overflow-y: auto; background: var(--card); border-top: 1px solid var(--line2); border-radius: 22px 22px 0 0; padding: 14px 14px calc(20px + env(safe-area-inset-bottom)); }
.msheet-h { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 8px; }
.msheet-h b { font-size: 16px; }
.msheet-s { margin-top: 10px; }
.msheet-s .sec { display: block; font-size: 10.5px; letter-spacing: .1em; color: var(--t3); font-weight: 700; padding: 0 4px 6px; }
.msheet-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.msheet-g a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; min-height: 72px; padding: 8px 4px; border-radius: 14px; border: 1px solid var(--line); background: rgba(var(--ov), .03); color: var(--text); font-size: 11.5px; font-weight: 600; line-height: 1.2; text-decoration: none; }
.msheet-g a:active { background: var(--lime); color: var(--on-lime); }
/* Tally status chip + offline banner */
.tchip { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(var(--ov), .03); color: var(--text); font-size: 12.5px; font-weight: 700; white-space: nowrap; text-decoration: none; }
.tchip .d { width: 9px; height: 9px; border-radius: 50%; background: var(--t3); flex: none; }
.tchip.ok .d { background: var(--mint, #3DDC97); box-shadow: 0 0 0 4px rgba(61,220,151,.18); animation: tpulse 2s infinite; }
.tchip.warn { border-color: rgba(255,184,77,.45); } .tchip.warn .d { background: var(--amber, #FFB84D); }
.tchip.bad { border-color: rgba(var(--red-rgb), .5); background: rgba(var(--red-rgb), .1); color: var(--coral, #FF6B6B); } .tchip.bad .d { background: var(--coral, #FF6B6B); }
@keyframes tpulse { 50% { box-shadow: 0 0 0 7px rgba(61,220,151,0); } }
.tbanner { margin: 0 0 16px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(var(--red-rgb), .45); background: rgba(var(--red-rgb), .08); font-size: 13.5px; }
.tbanner .tb-h { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.tbanner .tb-h .d { width: 10px; height: 10px; border-radius: 50%; background: var(--coral, #FF6B6B); flex: none; }
.tbanner .tb-s { color: var(--t2); margin: 6px 0 0 20px; }
.tbanner ol { margin: 8px 0 12px 20px; padding-left: 18px; color: var(--t1, var(--text)); } .tbanner li { margin: 3px 0; }
@media (max-width: 900px) {
  .tchip { height: 36px; padding: 0 10px; font-size: 11.5px; max-width: 46vw; overflow: hidden; }
  .tchip .tx { overflow: hidden; text-overflow: ellipsis; }
  .tbanner { margin: 0 0 12px; }
}
/* Gateway of Tally tiles */
.gw { margin: 0 0 16px; }
.gw-h { font-size: 10.5px; letter-spacing: .12em; font-weight: 700; color: var(--t3); text-transform: uppercase; margin: 0 2px 8px; }
.gw-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.gw-g a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); text-decoration: none; min-width: 0; }
.gw-g a:hover { border-color: var(--lime); }
.gw-g a svg { flex: none; color: var(--lime); }
.gw-g b { display: block; font-size: 13px; } .gw-g small { display: block; font-size: 11px; color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gw-g span { min-width: 0; }
@media (max-width: 900px) { .gw-g { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gw-g a { padding: 10px; } }
@media (max-width: 900px) { .tchip .tsn { display: none; } }
.page-h + .gw { margin-top: 4px; }
.tbanner.tb-c { display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 14px; margin: 0 0 12px; border-radius: 12px; color: var(--text); text-decoration: none; }
.tbanner.tb-c .d { width: 9px; height: 9px; border-radius: 50%; background: var(--coral, #FF6B6B); flex: none; }
.tbanner.tb-c .tb-go { margin-left: auto; font-weight: 700; color: var(--coral, #FF6B6B); white-space: nowrap; font-size: 12.5px; }
@media (max-width: 900px) { .tbanner.tb-c { font-size: 12.5px; } }
/* Ledger Vouchers */
.lv-tbl .lv-ob td { background: rgba(var(--ov), .03); }
.lv-tbl .lv-tot td { border-top: 1px solid var(--line2); }

/* ================= Field Sales module ================= */
.new-tag { margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: var(--lime); color: var(--on-lime); font-size: 9px; letter-spacing: .06em; vertical-align: 1px; }
.fs-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; }
.fs-tabs a { padding: 8px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--t2); }
.fs-tabs a.on { background: var(--lime); color: var(--on-lime); }
/* entrance: cards rise in, one after another */
.fs-anim .card, .fs-anim .fs-live, .fs-anim .fs-tabs { animation: fsUp .55s cubic-bezier(.2,.8,.2,1) both; }
.fs-anim .card:nth-of-type(2) { animation-delay: .06s } .fs-anim .card:nth-of-type(3) { animation-delay: .12s } .fs-anim .card:nth-of-type(4) { animation-delay: .18s }
.fs-anim .fs-kpis .card:nth-child(1) { animation-delay: .04s } .fs-anim .fs-kpis .card:nth-child(2) { animation-delay: .1s } .fs-anim .fs-kpis .card:nth-child(3) { animation-delay: .16s } .fs-anim .fs-kpis .card:nth-child(4) { animation-delay: .22s }
@keyframes fsUp { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
/* LIVE strip */
.fs-live { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 12px; border-radius: 14px; border: 1px solid rgba(var(--mint-rgb), .3); background: linear-gradient(90deg, rgba(var(--mint-rgb), .12), rgba(var(--mint-rgb), .02) 60%); font-size: 13px; overflow: hidden; }
.fs-live > b { color: var(--mint); letter-spacing: .14em; font-size: 11px; }
.fs-live #fstick { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--t1, var(--text)); }
.fs-live #fstick.flash { animation: fsTick .6s ease; }
@keyframes fsTick { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.fs-live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(var(--mint-rgb), .6); animation: fsDot 1.6s infinite; flex: none; }
@keyframes fsDot { 0% { box-shadow: 0 0 0 0 rgba(var(--mint-rgb), .55); } 70% { box-shadow: 0 0 0 9px rgba(var(--mint-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--mint-rgb), 0); } }
/* KPIs */
.fs-kpi { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; position: relative; overflow: hidden; }
.fs-kpi b { font: 700 28px/1.1 'Geist', system-ui, sans-serif; letter-spacing: -.02em; transition: color .3s; }
.fs-kpi small { color: var(--t3); font-size: 12px; }
.fs-kpi.hero { background: linear-gradient(135deg, var(--lime), #b8f03c); color: var(--on-lime); border-color: transparent; }
.fs-kpi.hero .muted, .fs-kpi.hero small { color: rgba(7,9,15,.65); }
.fs-kpi.bump b, .fs-tm-g span.bump b { animation: fsBump .7s ease; }
@keyframes fsBump { 30% { transform: scale(1.08); color: var(--lime); } }
.fs-kpi.hero.bump b { animation: none; }
.fs-kpi::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.08) 50%, transparent 70%); transform: translateX(-100%); animation: fsShine 6s ease-in-out infinite; pointer-events: none; }
@keyframes fsShine { 0%, 80% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
/* layout */
.fs-2col { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.fs-2col > .card, .fs-side > .card { margin: 0; }
.fs-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
/* map */
.fs-map { width: 100%; height: auto; display: block; border-radius: 14px; }
.fs-map-bg { fill: rgba(var(--ov), .03); stroke: var(--line); }
.fs-road { fill: none; stroke: rgba(var(--ov), .12); stroke-width: 7; stroke-linecap: round; }
.fs-creek { fill: none; stroke: rgba(92,200,255,.22); stroke-width: 10; stroke-linecap: round; }
.fs-area { font: 700 9px 'Geist Mono', monospace; letter-spacing: .12em; fill: var(--t3); text-anchor: middle; }
.fs-dot { transition: transform 1s ease; } .fs-dot circle { animation: fsPop .5s cubic-bezier(.3,1.6,.5,1) both; transform-box: fill-box; transform-origin: center; }
@keyframes fsPop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.fs-pin { transition: transform 3.2s cubic-bezier(.45,0,.2,1); filter: drop-shadow(0 4px 8px rgba(0,0,0,.45)); }
.fs-pin-t { font: 800 9px 'Geist', sans-serif; fill: #07090F; }
.fs-pulse { opacity: .5; animation: fsPulse 2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes fsPulse { from { transform: scale(.4); opacity: .55; } to { transform: scale(2.6); opacity: 0; } }
.fs-route-bg { fill: none; stroke: rgba(var(--ov), .1); stroke-width: 6; stroke-linejoin: round; }
.fs-route { fill: none; stroke-width: 2.5; stroke-dasharray: 7 6; stroke-linejoin: round; animation: fsDash 1.2s linear infinite; }
@keyframes fsDash { to { stroke-dashoffset: -26; } }
.fs-seq { font: 700 10px 'Geist Mono', monospace; fill: var(--text); }
/* feed */
.fs-feed { display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow: hidden; }
.fs-fi { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.35; }
.fs-fi.new { animation: fsFeed .55s cubic-bezier(.2,.8,.2,1); }
.fs-fi .muted { font-size: 11px; margin-top: 2px; }
.fs-fi-i { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; color: #07090F; font-weight: 800; font-size: 12px; flex: none; }
@keyframes fsFeed { from { opacity: 0; transform: translateY(-12px); max-height: 0; } to { opacity: 1; transform: none; max-height: 80px; } }
/* approvals / alerts */
.fs-ap { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.fs-ap:last-child { border-bottom: 0; }
.fs-ap-b { display: flex; gap: 6px; flex-wrap: wrap; }
.fs-al { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; flex-wrap: wrap; }
/* team */
.fs-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.fs-tm { padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(var(--ov), .02); display: flex; flex-direction: column; gap: 10px; transition: transform .2s, border-color .2s; }
.fs-tm:hover { transform: translateY(-2px); border-color: var(--line2); }
.fs-tm-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; font-size: 11px; color: var(--t3); }
.fs-tm-g b { display: block; color: var(--text); font-size: 13px; }
.fs-tm-f { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.fs-g-t { font: 700 15px 'Geist', sans-serif; fill: var(--text); }
.fs-garc { animation: fsArc 1.2s cubic-bezier(.2,.8,.2,1) both; transition: stroke-dashoffset .8s; }
@keyframes fsArc { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: var(--to); } }
/* beat */
.fs-stop { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); animation: fsUp .4s both; }
.fs-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #07090F; font-weight: 800; font-size: 12px; flex: none; }
.fs-today { background: rgba(var(--ov), .06); font-weight: 700; }
/* phone simulator */
.fs-appwrap { display: grid; grid-template-columns: 390px minmax(0, 1fr); gap: 18px; align-items: start; }
.fs-phone { width: 100%; max-width: 390px; height: 720px; border-radius: 38px; border: 10px solid #1a1d26; background: var(--bg); box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.06); display: flex; flex-direction: column; overflow: hidden; animation: fsUp .6s both; }
.fs-ph-top { padding: 14px 16px 8px; display: flex; flex-direction: column; gap: 2px; background: linear-gradient(180deg, rgba(var(--ov), .06), transparent); font-size: 13px; }
.fs-net { font-size: 11px; color: var(--mint); }
.fs-ph-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; padding: 0 8px 8px; }
.fs-ph-tabs button { border: 0; border-radius: 9px; padding: 7px 2px; font: 600 10.5px 'Geist', sans-serif; background: rgba(var(--ov), .05); color: var(--t2); cursor: pointer; transition: background .2s; }
.fs-ph-tabs button.on { background: var(--lime); color: var(--on-lime); }
.fs-ph-body { flex: 1; overflow-y: auto; padding: 4px 12px 14px; display: flex; flex-direction: column; gap: 8px; animation: fsUp .35s both; }
.fs-ph-h { font-weight: 700; font-size: 14px; padding: 4px 2px; }
.fs-ph-card { padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font-size: 13px; animation: fsUp .35s both; }
.fs-ph-card.on { border-color: var(--lime); }
.fs-ci { display: flex; gap: 8px; align-items: center; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.fs-qty { display: flex; align-items: center; gap: 6px; } .fs-qty span { min-width: 18px; text-align: center; font-weight: 700; }
.fs-qty button { width: 28px; height: 28px; border-radius: 9px; border: 1px solid var(--line2); background: rgba(var(--ov), .05); color: var(--text); font-size: 16px; cursor: pointer; transition: transform .1s; } .fs-qty button:active { transform: scale(.9); }
.fs-cart { position: sticky; bottom: -14px; margin: 6px -12px -14px; padding: 10px 12px 14px; background: var(--card2); border-top: 1px solid var(--line2); font-size: 13px; }
.fs-led { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .fs-led > div { padding: 10px; border-radius: 12px; background: rgba(var(--ov), .04); font-size: 11.5px; } .fs-led b { display: block; font-size: 15px; margin-top: 2px; }
.fs-shelf { position: relative; border-radius: 12px; overflow: hidden; cursor: pointer; } .fs-shelf svg { display: block; filter: grayscale(.9) brightness(.7); transition: filter .5s; } .fs-shelf.shot svg { filter: none; }
.fs-shelf span { position: absolute; inset: auto 0 0; padding: 6px; background: rgba(0,0,0,.55); color: #fff; font-size: 11.5px; text-align: center; }
.fs-l { display: grid; gap: 3px; font-size: 11.5px; color: var(--t2); }
.fs-howto ol { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.7; }
.fs-aud { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; } .fs-au { font-size: 13px; } .fs-au svg { border-radius: 10px; margin-bottom: 6px; }
@media (max-width: 1100px) { .fs-2col, .fs-appwrap { grid-template-columns: 1fr; } .fs-phone { margin: 0 auto; height: 680px; } }
@media (max-width: 600px) { .fs-tm-g { grid-template-columns: repeat(2, 1fr); } .fs-kpi b { font-size: 22px; } .fs-phone { border-width: 6px; border-radius: 26px; } }
@media (prefers-reduced-motion: reduce) { .fs-anim *, .fs-pin, .fs-route, .fs-pulse, .fs-live-dot, .fs-kpi::after { animation: none !important; transition: none !important; } }
.fs-grid { stroke: rgba(var(--ov), .05); stroke-width: 1; }

/* SmartFind dropdown under the top search bar */
.ask-bar .sf{left:0;right:auto;width:min(460px,92vw);max-height:min(70vh,520px);overflow:auto;padding:6px}
.sf-r{display:flex;gap:10px;align-items:flex-start;padding:8px 10px;border-radius:10px;text-decoration:none;color:inherit}
.sf-r:hover,.sf-r.on{background:rgba(var(--ov),.07)}
.sf-k{flex:none;min-width:64px;font-size:11px;color:var(--t3);padding-top:2px;text-transform:uppercase;letter-spacing:.04em}
.sf-t{display:flex;flex-direction:column;min-width:0}.sf-t b{font-weight:600;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sf-t small{color:var(--t3);font-size:12px}
.sf-none{padding:8px 10px;font-size:12.5px;color:var(--t3)}

/* ---- customizable live dashboard (12-col grid, drag-drop) ---- */
.dtools { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; flex-wrap: wrap; font-size: 12px; }
.dlive { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mint); }
.dlive i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(var(--mint-rgb),.6); animation: dpulse 1.8s infinite; }
@keyframes dpulse { 0% { box-shadow: 0 0 0 0 rgba(var(--mint-rgb),.55); } 70% { box-shadow: 0 0 0 8px rgba(var(--mint-rgb),0); } 100% { box-shadow: 0 0 0 0 rgba(var(--mint-rgb),0); } }
.dtray { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; margin: 0 0 12px; border: 1px dashed var(--line2); border-radius: 14px; background: rgba(var(--ov),.02); }
.dtray[hidden] { display: none; }
.dgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; grid-auto-flow: dense; margin-bottom: 16px; }
.dcell { min-width: 0; display: flex; flex-direction: column; position: relative; }
.dcell[hidden] { display: none; }
.dcell.s3 { grid-column: span 3; } .dcell.s4 { grid-column: span 4; } .dcell.s6 { grid-column: span 6; } .dcell.s8 { grid-column: span 8; } .dcell.s12 { grid-column: span 12; }
.dcell > .card, .dcell > .kpi, .dcell > a.kpi { flex: 1 1 auto; margin: 0; width: auto; max-width: none; }
.dctl { display: none; align-items: center; gap: 6px; font-size: 12px; padding: 6px 8px; margin-bottom: 6px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line2); }
.dctl b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dctl button { all: unset; cursor: pointer; min-width: 26px; height: 24px; padding: 0 6px; box-sizing: border-box; text-align: center; border-radius: 7px; border: 1px solid var(--line2); font-size: 11px; font-weight: 700; line-height: 22px; }
.dctl button:hover { background: rgba(var(--ov),.06); }
.dh { cursor: grab; font-size: 16px; color: var(--t3); user-select: none; }
.dgrid.editing .dctl { display: flex; }
.dgrid.editing .dcell { outline: 1px dashed var(--line2); outline-offset: 4px; border-radius: 22px; cursor: grab; }
.dgrid.editing .dcell > .card, .dgrid.editing .dcell > .kpi, .dgrid.editing .dcell > a.kpi { pointer-events: none; }
.dcell.dragging { opacity: .4; }
@media (max-width: 1200px) { .dcell.s3, .dcell.s4 { grid-column: span 6; } .dcell.s8 { grid-column: span 12; } }
@media (max-width: 760px) { .dgrid { gap: 12px; } .dcell.s3, .dcell.s4, .dcell.s6, .dcell.s8, .dcell.s12 { grid-column: span 12; } }

/* team · live */
.tm-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.tm-row:last-child { border-bottom: 0; }
.tm-row:hover { background: rgba(var(--ov),.025); }
.tm-av { position: relative; width: 36px; height: 36px; border-radius: 12px; }
.tm-av i { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--t4); border: 2px solid var(--card); }
.tm-av i.on { background: var(--mint); }
.tm-n { display: flex; flex-direction: column; min-width: 140px; flex: 0 1 230px; gap: 2px; }
.tm-n small { font-size: 11.5px; }
.tm-st { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; justify-content: flex-end; }
.tm-st > span { display: inline-flex; flex-direction: column; align-items: flex-end; padding: 5px 9px; border-radius: 10px; background: rgba(var(--ov),.04); border: 1px solid var(--line); }
.tm-st b { font-size: 13px; }
.tm-st small { font-size: 10px; color: var(--t3); text-transform: uppercase; letter-spacing: .06em; }
.tf { display: flex; flex-direction: column; gap: 2px; max-height: 420px; overflow-y: auto; }
.tf-i { display: flex; align-items: flex-start; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.tf-i:last-child { border-bottom: 0; }
.tf-t { flex: 1 1 auto; min-width: 0; line-height: 1.4; }
.tf-a { font-size: 11px; white-space: nowrap; }
.tq-l { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; font-size: 13px; }
.tq-l:last-child { border-bottom: 0; }
.tq-l:hover b { text-decoration: underline; }
@media (max-width: 760px) { .tm-row { flex-wrap: wrap; } .tm-st { justify-content: flex-start; } }
.dtools .btn[hidden], .dtools [hidden] { display: none !important; }
.tbanner.tb-c .tb-x { all: unset; cursor: pointer; flex: none; width: 24px; height: 24px; border-radius: 7px; text-align: center; line-height: 24px; font-size: 12px; color: var(--t3); }
.tbanner.tb-c .tb-x:hover { background: rgba(var(--ov),.08); color: var(--text); }
.tbanner.tb-c .tb-go { text-decoration: none; }

/* customer demo accounts */
.demo-bn { background: linear-gradient(90deg, rgba(var(--violet-rgb),.14), rgba(var(--violet-rgb),.05)); }
.demo-bn.demo-end { background: rgba(255,170,60,.12); border-color: rgba(255,170,60,.45); }
.demo-tour { display: grid; gap: 8px; }
.demo-step { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--line, rgba(0,0,0,.1)); border-radius: 12px; text-decoration: none; color: inherit; text-align: left; transition: background .15s, border-color .15s; }
.demo-step:hover { background: rgba(var(--violet-rgb),.07); border-color: var(--ai-line); }
.demo-step svg { flex: none; margin-top: 2px; color: var(--violet2); }
.demo-step b { display: block; font-size: 14px; }
.demo-step small { display: block; font-size: 12px; opacity: .72; margin-top: 2px; line-height: 1.4; }
@media (min-width: 720px) { .demo-tour { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .demo-bn { flex-wrap: nowrap; padding: 8px 10px; gap: 8px; } .demo-bn .demo-long { display: none; } .demo-bn > svg { display: none; } .demo-bn .btn { white-space: nowrap; } }

/* MunimIQ wordmark */
.iq { color: var(--violet2, #9b8cff); margin-left: 1px; font-weight: 800; letter-spacing: -.01em; }
/* extra fields set up by the MunimIQ team for this company */
.x-block { border: 1px dashed var(--line, rgba(255,255,255,.14)); border-radius: 14px; padding: 12px; margin: 6px 0 10px; }
.x-h { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--t3, #8a92a6); margin-bottom: 8px; font-weight: 600; }
.x-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.x-g label { display: grid; gap: 4px; font-size: 12.5px; color: var(--t2, #b7bdcc); }
.x-g .inp { height: 40px; }
.x-line{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:12.5px;margin:0 2px 8px;color:var(--t2,#9aa3b2)}
.x-line b{font-weight:600;color:var(--t1,inherit)}
th.x-col,td.x-col{white-space:nowrap}
