/* Blue Pulse — light theme (original design) */
:root {
  --bg: #F4F6FB;
  --card: #FFFFFF;
  --line: #E4E9F2;
  --line-2: #EFF2F7;
  --ink: #0B1B3F;
  --ink-2: #33415C;
  --muted: #687896;
  --navy: #0B1F4B;
  --navy-2: #0A1838;
  --blue: #2563EB;
  --blue-d: #1D4ED8;
  --blue-s: #EAF1FF;
  --green: #16A34A;
  --green-s: #E7F7EE;
  --amber: #D97706;
  --amber-s: #FEF3DC;
  --red: #DC2626;
  --red-s: #FDECEC;
  --purple: #7C3AED;
  --purple-s: #F1ECFF;
  --orange: #EA580C;
  --wa: #22A45D;
  --google: #1A73E8;
  --meta: #7B61FF;
  --tiktok: #111827;
  --r: 14px;
  --shadow: 0 1px 2px rgba(11, 27, 63, .04), 0 2px 10px rgba(11, 27, 63, .04);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh; }
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
.ic { width: 16px; height: 16px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: linear-gradient(180deg, var(--navy), var(--navy-2)); color: #C7D2EA; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 14px 18px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 26px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand svg.wave { width: 38px; height: 28px; flex: none; }
.b1 { font-weight: 800; font-size: 17px; letter-spacing: .02em; color: #fff; line-height: 1.1; }
.b2 { font-size: 11px; color: #9FB0D3; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-i { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px; color: #C7D2EA; font-weight: 500; font-size: 13.5px; }
.nav-i:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
.nav-i.on { background: var(--blue); color: #fff; box-shadow: 0 4px 14px rgba(37, 99, 235, .35); }
.nav-i .ic { width: 18px; height: 18px; }
.nav-n { margin-left: auto; background: rgba(255, 255, 255, .14); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 0 7px; line-height: 18px; }
.nav-i.on .nav-n { background: rgba(255, 255, 255, .25); }
.nav-sep { height: 1px; background: rgba(255, 255, 255, .08); margin: 12px 8px; }
.side-foot { margin-top: auto; padding: 16px 10px 0; font-size: 11.5px; color: #8FA0C4; }
.side-foot b { color: #fff; font-weight: 600; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 12px 28px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 900; }
.city { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--ink); font-size: 13.5px; }
.city .ic { color: var(--blue); }
.tagline { color: var(--muted); font-size: 12.5px; font-style: italic; padding-left: 14px; border-left: 1px solid var(--line); }
.topbar .sp { flex: 1; }
.demo-pill { background: var(--blue-s); color: var(--blue-d); font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 5px 12px; border-radius: 7px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; cursor: pointer; border: 0; }
.content { padding: 24px 28px 60px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ph h1 { font-size: 28px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.ph p { color: var(--muted); margin-top: 4px; font-size: 14.5px; }
.ph-r { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumb { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.crumb:hover { color: var(--ink); text-decoration: none; }
.foot-note { text-align: right; font-size: 11.5px; color: var(--muted); padding-top: 6px; border-top: 1px solid var(--line); }

/* ---------- Controls ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; justify-content: center; border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 8px 14px; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; color: var(--ink); transition: background .15s, border-color .15s, box-shadow .15s; }
.btn:hover { border-color: #C7D0E0; background: #FAFBFD; text-decoration: none; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.sm { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.btn.icon { padding: 7px; }
.btn.wide { width: 100%; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); border-color: var(--blue-d); }
.btn-outline { border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue-s); border-color: var(--blue); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: #F1F4F9; border-color: transparent; }
.btn-danger { color: var(--red); }
.btn-danger:hover { background: var(--red-s); border-color: #F5C2C2; }
.btn-go { background: var(--green); border-color: var(--green); color: #fff; }
.btn-go:hover { background: #12833C; border-color: #12833C; }
.seg { display: inline-flex; background: #EEF1F6; border-radius: 9px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 7px; font-weight: 600; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > span { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--muted); font-size: 11.5px; }
.inp { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.inp:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
textarea.inp { resize: vertical; min-height: 64px; line-height: 1.45; }
select.inp { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
.inp.sm { padding: 6px 28px 6px 10px; font-size: 12.5px; width: auto; }
input.inp.sm { padding: 6px 10px; }
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; user-select: none; }
.chk input { accent-color: var(--blue); width: 16px; height: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; }
.card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-h h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.card-h p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.card-h .link { font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.g-main { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); }
.g-main-r { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-q { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.empty { background: #F8FAFD; border: 1px dashed #D5DCE8; border-radius: 12px; padding: 18px; color: var(--muted); font-size: 13px; text-align: center; }
.empty.big { padding: 44px 24px; }
.empty h3 { color: var(--ink); font-size: 17px; margin-bottom: 6px; }
.empty .btn { margin-top: 12px; }
.foot { display: flex; gap: 7px; align-items: flex-start; font-size: 12px; color: var(--muted); margin-top: 12px; }
.foot .ic { width: 14px; height: 14px; margin-top: 2px; }

/* KPI cards with icon circle */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpis.k6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; min-width: 0; }
.kpi.plain { display: block; }
.kpi-i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--blue-s); color: var(--blue); }
.kpi-i .ic { width: 22px; height: 22px; }
.kpi-i.green { background: var(--green-s); color: var(--green); }
.kpi-i.amber { background: var(--amber-s); color: var(--amber); }
.kpi-i.purple { background: var(--purple-s); color: var(--purple); }
.kpi-b { min-width: 0; flex: 1; }
.kpi-l { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.kpi-v { font-size: 26px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-v.txt { font-size: 18px; padding: 4px 0; }
.kpi-s { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-d { display: inline-flex; flex-direction: column; align-items: flex-end; font-size: 12px; font-weight: 700; line-height: 1.2; }
.kpi-d small { font-weight: 500; color: var(--muted); font-size: 10.5px; }
.up { color: var(--green); }
.down { color: var(--red); }
.flat { color: var(--muted); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 6px; white-space: nowrap; background: #EEF1F6; color: var(--ink-2); }
.badge.blue, .k-question { background: var(--blue-s); color: var(--blue-d); }
.badge.green, .k-suggestion, .st-approved, .st-live, .st-connected { background: var(--green-s); color: var(--green); }
.badge.amber, .k-opportunity, .st-review, .st-submitted, .st-partial { background: var(--amber-s); color: var(--amber); }
.badge.red, .k-complaint, .st-changes, .st-missing { background: var(--red-s); color: var(--red); }
.badge.purple, .k-praise { background: var(--purple-s); color: var(--purple); }
.st-draft, .k-other, .st-completed, .st-closed { background: #EEF1F6; color: var(--ink-2); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #F1F4F9; color: var(--ink-2); border: 1px solid var(--line); }
.chip .ic { width: 14px; height: 14px; }
.chip.wa .ic { color: var(--wa); }
.chip.sv .ic { color: var(--purple); }
.chip.cm .ic { color: var(--blue); }
.chip.eq .ic { color: var(--orange); }
.fchip { display: inline-flex; align-items: center; gap: 6px; background: var(--blue-s); color: var(--blue-d); border-radius: 999px; padding: 4px 6px 4px 11px; font-weight: 600; font-size: 12.5px; }
.fchip button { border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; padding: 2px; border-radius: 50%; color: inherit; }
.fchip .ic { width: 13px; height: 13px; }

/* Channel avatars */
.cav { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; }
.cav .ic { width: 17px; height: 17px; }
.cav.whatsapp { background: var(--wa); }
.cav.survey { background: var(--purple); }
.cav.community { background: var(--blue); }
.cav.enquiry { background: var(--orange); }
.cav.webform, .cav.email, .cav.other { background: #64748B; }

/* ---------- Map ---------- */
.lmap { height: 460px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #E8EEF5; position: relative; z-index: 0; }
.lmap.tall { height: 520px; }
.leaflet-container { font-family: var(--font) !important; }
.leaflet-tooltip.bp-tip, .leaflet-popup-content-wrapper { border-radius: 10px !important; box-shadow: 0 8px 24px rgba(11, 27, 63, .16) !important; border: 1px solid var(--line); }
.leaflet-tooltip.bp-tip { font-size: 12px; padding: 7px 10px; color: var(--ink); }
.leaflet-popup-content { margin: 12px 14px !important; font-size: 12.5px; color: var(--ink); min-width: 170px; }
.pop b { display: block; font-size: 14px; margin-bottom: 2px; }
.pop span { display: block; color: var(--muted); }
.pop a { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-weight: 600; }
.mk { position: relative; width: 0; height: 0; cursor: pointer; }
.mk-dot { position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s); transform: translate(-50%, -50%); border-radius: 50%; background: var(--c); border: 2.5px solid #fff; display: grid; place-items: center; font: 800 12px/1 var(--font); color: #fff; box-shadow: 0 3px 10px rgba(11, 27, 63, .3); transition: transform .15s; }
.mk:hover .mk-dot { transform: translate(-50%, -50%) scale(1.1); }
.mk.sel .mk-dot { box-shadow: 0 0 0 4px rgba(37, 99, 235, .3), 0 3px 10px rgba(11, 27, 63, .3); }
.mk-l { position: absolute; white-space: nowrap; font-size: 11.5px; font-weight: 700; color: var(--ink); pointer-events: none; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 6px #fff; }
.mk-l.r { left: calc(var(--s) / 2 + 5px); top: 0; transform: translateY(-50%); }
.mk-l.l { right: calc(var(--s) / 2 + 5px); top: 0; transform: translateY(-50%); }
.mk-l.t { left: 0; bottom: calc(var(--s) / 2 + 3px); transform: translateX(-50%); }
.mk-l.b { left: 0; top: calc(var(--s) / 2 + 3px); transform: translateX(-50%); }
.mk.empty .mk-dot { background: #CBD5E1; width: 10px; height: 10px; border-width: 2px; font-size: 0; box-shadow: none; }
.mk.empty .mk-l { color: var(--muted); font-weight: 500; font-size: 10.5px; }
.legend { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--ink-2); margin-top: 10px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.map-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.map-chips button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.map-chips button i { width: 9px; height: 9px; border-radius: 50%; }
.map-chips button.off { opacity: .45; }

/* ---------- Lists & bars ---------- */
.bars { display: flex; flex-direction: column; gap: 11px; }
.bar-r { display: grid; grid-template-columns: minmax(110px, 40%) 1fr 64px; align-items: center; gap: 12px; font-size: 13px; }
.bar-l { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-t { height: 9px; background: #EEF1F6; border-radius: 99px; overflow: hidden; }
.bar-t i { display: block; height: 100%; background: var(--blue); border-radius: 99px; transition: width .4s; }
.bar-r b { text-align: right; font-variant-numeric: tabular-nums; }
.bar-r b small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.bar-r.lead .bar-l { color: var(--ink); font-weight: 600; }
.fbars { display: flex; flex-direction: column; gap: 10px; }
.fbar { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; font-size: 13.5px; font-weight: 600; }
.fbar div { display: flex; align-items: center; gap: 10px; }
.fbar i { display: block; height: 30px; border-radius: 4px; background: var(--blue); min-width: 4px; transition: width .5s; }
.fbar b { font-size: 14px; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 9px 12px; background: #F6F8FC; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl .strong { font-weight: 600; }
.tbl.edit td { padding: 4px 6px; }
.tbl.edit input { width: 100%; min-width: 70px; border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 6px 8px; text-align: right; font-variant-numeric: tabular-nums; }
.tbl.edit input:hover { border-color: var(--line); }
.tbl.edit input:focus { border-color: var(--blue); background: #fff; outline: none; }
.lb { display: flex; flex-direction: column; gap: 3px; max-height: 460px; overflow-y: auto; }
.lb-r { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 9px; cursor: pointer; border: 1px solid transparent; }
.lb-r:hover { background: #F6F8FC; }
.lb-r.on { border-color: var(--blue); background: var(--blue-s); }
.lb-n { font-size: 11px; color: var(--muted); font-weight: 700; }
.lb-b b { font-weight: 600; font-size: 13px; }
.lb-t { height: 5px; background: #EEF1F6; border-radius: 9px; margin-top: 5px; overflow: hidden; }
.lb-t i { display: block; height: 100%; border-radius: 9px; background: var(--blue); }
.lb-v { font-weight: 800; font-size: 14px; text-align: right; }
.lb-v small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); }

/* ---------- Inbox ---------- */
.ib { display: flex; flex-direction: column; }
.ib-r { display: flex; gap: 12px; align-items: flex-start; padding: 12px 4px; border-bottom: 1px solid var(--line-2); }
.ib-r:last-child { border-bottom: 0; }
.ib-r.new .ib-t { font-weight: 600; }
.ib-b { flex: 1; min-width: 0; }
.ib-m { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ib-m b { color: var(--ink); font-weight: 700; }
.ib-t { font-size: 13.5px; color: var(--ink); margin-top: 1px; }
.ib-a { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.ib-a select { font-size: 12px; padding: 4px 26px 4px 8px; border-radius: 7px; }
.newdot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); display: inline-block; }
.ib-r .side-b { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

/* ---------- Radar ---------- */
.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.topic { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; cursor: pointer; text-align: left; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.topic:hover { border-color: #BFD0F5; }
.topic.on { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.topic b { display: block; font-size: 14px; }
.topic span.s { font-size: 12.5px; color: var(--muted); }
.topic > .ic.go { margin-left: auto; color: var(--muted); }
.ti { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ti .ic { width: 20px; height: 20px; }
.ti.c0 { background: #E3F6EF; color: #0F9D76; }
.ti.c1 { background: var(--amber-s); color: var(--amber); }
.ti.c2 { background: var(--blue-s); color: var(--blue); }
.ti.c3 { background: var(--purple-s); color: var(--purple); }
.ti.c4 { background: #FDEBF3; color: #DB2777; }
.big-n { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.big-n span { font-size: 20px; font-weight: 700; }
.ev-conf { display: flex; gap: 12px; align-items: flex-start; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); }
.ev-conf .ic { width: 26px; height: 26px; color: var(--amber); }
.kit { display: flex; gap: 12px; align-items: center; }
.kit b { display: block; font-size: 14px; }
.kit span { font-size: 12.5px; color: var(--muted); }
.kit .edit { margin-left: auto; }

/* ---------- Charts ---------- */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.grid-l { stroke: #EDF0F5; }
.ch-x { font-size: 10.5px; fill: var(--muted); text-anchor: middle; }
.ch-y { font-size: 10.5px; fill: var(--muted); text-anchor: end; }
.ln { fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.ln.prev { stroke: #9DB5EF; stroke-dasharray: 4 4; stroke-width: 1.8; }
.area { fill: rgba(37, 99, 235, .1); }
.pt { fill: #fff; stroke: var(--blue); stroke-width: 2; }
.spark { display: block; }
.leg2 { display: flex; flex-direction: column; gap: 6px; font-size: 12px; min-width: 120px; }
.leg2 span { display: flex; align-items: center; gap: 8px; }
.leg2 i { width: 9px; height: 9px; border-radius: 50%; }
.leg2 b { margin-left: auto; font-size: 13px; }

/* ---------- Decisions ---------- */
.stepper { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.step { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }
.step i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; border: 1.5px solid #CBD5E1; color: var(--muted); background: #fff; }
.step.done i { background: var(--green); border-color: var(--green); color: #fff; }
.step.cur { color: var(--ink); }
.step.cur i { background: var(--blue); border-color: var(--blue); color: #fff; }
.step-arr { color: #A6B3C9; }
.fit-r { display: grid; grid-template-columns: minmax(170px, 1.1fr) 1fr 1fr; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.fit-r + .fit-r { margin-top: 10px; }
.fit-ch { display: flex; align-items: center; gap: 10px; }
.fit-ch b { display: block; font-size: 14px; }
.ch-logo { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 15px; }
.ch-logo.google { background: #EAF1FE; color: var(--google); }
.ch-logo.meta { background: #EFEBFF; color: var(--meta); }
.ch-logo.tiktok { background: #EEF0F3; color: var(--tiktok); }
.fit-c { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--ink-2); }
.fit-c .ic { color: var(--blue); margin-top: 2px; }
.fit-c b { display: block; color: var(--ink); font-size: 12.5px; }
.alloc { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(120px, 2fr) auto 44px; gap: 12px; align-items: center; padding: 8px 0; }
.alloc-l { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 13px; }
.alloc-n { display: flex; align-items: center; gap: 4px; }
.alloc-n input { width: 96px; text-align: right; padding: 6px 8px; }
.alloc-p { font-size: 12.5px; color: var(--muted); font-weight: 600; text-align: right; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 9px; background: #E2E8F0; outline: none; cursor: pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; }
.sim-o { background: #F1F6FF; border-radius: 10px; padding: 14px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 14px; }
.sim-o div span { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.sim-o div b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.sim-o .full { grid-column: 1 / -1; border-top: 1px solid #DCE6FA; padding-top: 10px; }
.rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rules li { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.rules li i { width: 22px; height: 22px; border-radius: 50%; background: var(--blue-s); color: var(--blue-d); display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; flex: none; }
.rules li input { flex: 1; }

/* ---------- Pipeline & kanban ---------- */
.pipe { display: flex; align-items: flex-start; gap: 0; }
.pipe-s { flex: 1; text-align: left; position: relative; padding-right: 10px; }
.pipe-s::before { content: ""; position: absolute; left: 30px; right: 0; top: 14px; height: 2px; background: #D8E0EC; }
.pipe-s:last-child::before { display: none; }
.pipe-s.done::before { background: var(--blue); }
.pipe-s i { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 12px; background: #EEF1F6; color: var(--muted); border: 2px solid #fff; box-shadow: 0 0 0 1px #D8E0EC; }
.pipe-s.done i, .pipe-s.cur i { background: var(--blue); color: #fff; box-shadow: none; }
.pipe-s b { display: block; font-size: 13px; margin-top: 8px; }
.pipe-s span { font-size: 12px; color: var(--muted); display: block; }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 14px; align-items: start; }
.kcol { background: #EEF2F8; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
.kcol h4 { font-size: 12.5px; display: flex; align-items: center; justify-content: space-between; padding: 2px 4px; color: var(--ink-2); }
.kcard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.kcard:hover { border-color: #BFD0F5; }
.kcard b { font-size: 13.5px; }
.kcard p { font-size: 12.5px; color: var(--muted); }
.brief-row { display: flex; gap: 12px; align-items: center; }
.brief-ic { width: 38px; height: 38px; border-radius: 9px; background: var(--blue-s); color: var(--blue); display: grid; place-items: center; flex: none; }

/* ---------- Sources ---------- */
.srcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.src { display: flex; flex-direction: column; gap: 8px; border-top: 3px solid var(--green); }
.src.s-partial { border-top-color: var(--amber); }
.src.s-missing { border-top-color: #CBD5E1; }
.src-h { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.src-h h3 { font-size: 14.5px; }
.src p { font-size: 12.5px; color: var(--ink-2); }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: #F4F6FA; border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; word-break: break-all; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 4px; flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; padding: 9px 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--blue); border-bottom-color: var(--blue); }

/* ---------- Drawer, modal, toast ---------- */
.drawer-bg { position: fixed; inset: 0; background: rgba(11, 27, 63, .3); z-index: 1500; animation: fade .2s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); background: #fff; z-index: 1510; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(11, 27, 63, .2); animation: slide .25s ease-out; }
.drawer-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-h h2 { font-size: 18px; }
.drawer-b { padding: 16px 20px; overflow-y: auto; flex: 1; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.modal-bg { position: fixed; inset: 0; background: rgba(11, 27, 63, .35); z-index: 2000; display: grid; place-items: center; padding: 20px; animation: fade .15s; }
.modal { width: min(640px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; border-radius: 16px; padding: 22px 24px; box-shadow: 0 30px 80px rgba(11, 27, 63, .3); animation: pop .2s; }
.modal.wide { width: min(820px, 100%); }
.modal-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.modal-h h2 { font-size: 20px; letter-spacing: -.01em; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.x { border: 0; background: transparent; cursor: pointer; padding: 6px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.x:hover { background: #F1F4F9; color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 3000; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: 0 16px 40px rgba(11, 27, 63, .35); font-weight: 600; font-size: 13px; animation: pop .2s; display: flex; gap: 8px; align-items: center; }
.toast .ic { color: #4ADE80; }
.toast.bad .ic { color: #F87171; }
.menu { position: relative; }
.menu-p { position: absolute; right: 0; top: calc(100% + 6px); z-index: 1000; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 6px; box-shadow: 0 16px 40px rgba(11, 27, 63, .18); display: flex; flex-direction: column; }
.menu-p button { text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: 7px; cursor: pointer; display: flex; gap: 9px; align-items: center; font-size: 13px; }
.menu-p button:hover { background: #F4F6FA; }
.menu-p hr { border: 0; border-top: 1px solid var(--line); margin: 5px 0; }

/* ---------- Surveys ---------- */
.camps { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
.camp { display: flex; flex-direction: column; gap: 12px; cursor: pointer; transition: border-color .15s; }
.camp:hover { border-color: #BFD0F5; }
.camp h3 { font-size: 16px; line-height: 1.3; }
.camp-desc { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.camp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.camp-stats div { background: #F6F8FC; border-radius: 9px; padding: 8px 10px; }
.camp-stats b { display: block; font-size: 18px; }
.camp-stats span { font-size: 11px; color: var(--muted); }
.camp-f { display: flex; gap: 6px; flex-wrap: wrap; border-top: 1px solid var(--line-2); padding-top: 10px; }
.tpls { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tpl { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; cursor: pointer; display: flex; flex-direction: column; gap: 5px; }
.tpl:hover { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.tpl b { font-size: 14.5px; }
.tpl span { font-size: 12.5px; color: var(--muted); }
.tpl .ic { width: 22px; height: 22px; color: var(--blue); margin-bottom: 4px; }
.qmeta { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.big-stat { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.big-stat b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; color: var(--blue-d); line-height: 1; }
.big-stat span { color: var(--muted); font-size: 12.5px; }
.nps-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; gap: 2px; margin: 4px 0 8px; }
.nps-bar i { display: block; }
.nps-leg { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); gap: 8px; }
.nps-leg b { color: var(--ink); }
.dist { display: flex; align-items: flex-end; gap: 6px; height: 110px; margin-top: 6px; }
.dist div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.dist i { width: 100%; border-radius: 6px 6px 2px 2px; background: var(--blue); min-height: 3px; }
.dist span { font-size: 11px; color: var(--muted); }
.dist em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--ink-2); }
.texts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow-y: auto; }
.texts li { background: #F6F8FC; border-radius: 4px 12px 12px 12px; padding: 9px 12px; font-size: 13px; color: var(--ink-2); }
.texts li small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.ans { display: grid; grid-template-columns: minmax(140px, 36%) 1fr; gap: 4px 14px; font-size: 12.5px; margin-top: 8px; }
.ans dt { color: var(--muted); }
.ans dd { margin: 0; }
.geo-m { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.geo-device { background: var(--blue-s); color: var(--blue-d); }
.geo-suburb { background: var(--purple-s); color: var(--purple); }
.geo-ip, .geo-none { background: #EEF1F6; color: var(--ink-2); }
.banner { display: flex; gap: 10px; align-items: center; border-radius: 12px; padding: 11px 15px; font-size: 13.5px; color: var(--ink-2); flex-wrap: wrap; }
.banner > .ic { width: 18px; height: 18px; }
.banner.info { background: var(--blue-s); border: 1px solid #CFDDFB; }
.banner.info > .ic { color: var(--blue); }
.banner.warn { background: var(--amber-s); border: 1px solid #F6DDAA; }
.banner.warn > .ic { color: var(--amber); }
.builder { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.qed { border: 1px solid var(--line); border-radius: 12px; background: #FBFCFE; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.qed:focus-within { border-color: #BFD0F5; }
.qed-h { display: flex; align-items: center; gap: 8px; }
.qed-n { width: 26px; height: 26px; border-radius: 7px; background: var(--blue-s); color: var(--blue-d); display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.qed-h .sp { flex: 1; }
.phone { position: sticky; top: 80px; width: 100%; aspect-ratio: 9 / 18.5; max-height: calc(100vh - 110px); border-radius: 36px; padding: 11px; background: var(--navy); box-shadow: 0 24px 60px rgba(11, 27, 63, .3); }
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 27px; background: #fff; }
.dirty { font-size: 12px; color: var(--amber); display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.dirty i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.share { display: grid; grid-template-columns: 1fr 170px; gap: 20px; align-items: start; }
.copyrow { display: flex; gap: 8px; }
.copyrow .inp { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.copyrow > span.inp { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); width: auto; }
.qr { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.qr canvas { width: 100%; height: auto; display: block; image-rendering: pixelated; }
.chan { display: flex; flex-wrap: wrap; gap: 6px; }
.chan button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.chan button.on { border-color: var(--blue); color: var(--blue-d); background: var(--blue-s); }
.livebadge { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.livebadge i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); } 70% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-l { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.login-l h2 { font-size: 34px; line-height: 1.15; letter-spacing: -.02em; max-width: 420px; }
.login-l p { color: #B7C4E0; margin-top: 12px; max-width: 420px; }
.login-r { display: grid; place-items: center; padding: 24px; }
.login-card { width: min(380px, 100%); }
.login-card h1 { font-size: 26px; letter-spacing: -.02em; }
.login-card p { color: var(--muted); margin: 6px 0 22px; }
.login-card form { display: flex; flex-direction: column; gap: 14px; }
.err { color: var(--red); font-size: 13px; min-height: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .kpis.k6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kanban { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}
@media (max-width: 1100px) {
  .g-main, .g-main-r, .g-2, .g-3, .builder { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topics { grid-template-columns: 1fr; }
  .phone { position: static; max-width: 340px; margin: 0 auto; }
  .fit-r { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; align-items: center; gap: 6px; padding: 10px 12px; overflow-x: auto; }
  .brand { padding: 0 6px 0 0; }
  .brand .b2, .nav-sep, .side-foot, .nav-i span, .nav-n { display: none; }
  .nav { flex-direction: row; }
  .topbar { padding: 10px 16px; position: static; }
  .tagline { display: none; }
  .content { padding: 18px 16px 48px; }
  .ph h1 { font-size: 23px; }
  .kpis, .kpis.k6 { grid-template-columns: 1fr 1fr; }
  .kpi { flex-direction: column; align-items: flex-start; gap: 8px; }
  .lmap, .lmap.tall { height: 380px; }
  .two, .three, .share { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: 1fr; }
  .alloc { grid-template-columns: 1fr auto; }
  .alloc input[type=range] { grid-column: 1 / -1; order: 3; }
  .login { grid-template-columns: 1fr; }
  .login-l { display: none; }
  .pipe { flex-direction: column; gap: 12px; }
  .pipe-s::before { display: none; }
}

/* =====================================================================
   Modern theme layer (charcoal sidebar, soft rounded cards, pill controls)
   ===================================================================== */
:root {
  --bg: #EEF1F6;
  --side: #1D2230;
  --side-2: #161A25;
  --blue: #2F7CF6;
  --blue-d: #1F66DB;
  --blue-s: #E8F1FF;
  --green: #22B55B;
  --green-s: #E3F7EA;
  --orange: #FF8A30;
  --amber: #F59E0B;
  --r: 22px;
  --shadow: 0 10px 30px rgba(22, 32, 60, .06), 0 1px 2px rgba(22, 32, 60, .04);
  --font: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body { font-size: 14px; letter-spacing: -.005em; }

/* Sidebar */
.side { background: var(--side); padding: 26px 16px 20px; box-shadow: 1px 0 0 rgba(255, 255, 255, .03); }
.brand { padding: 0 10px 30px; }
.b1 { font-size: 18px; letter-spacing: .04em; }
.b2 { color: #8C94A8; }
.nav::before { content: "MENU"; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; color: #6B7389; padding: 0 12px 8px; }
.nav-i { color: #A9B0C2; border-radius: 12px; padding: 11px 12px; font-weight: 600; }
.nav-i:hover { background: rgba(255, 255, 255, .05); }
.nav-i.on { background: #2A3040; color: #fff; box-shadow: none; }
.nav-i.on .ic { color: var(--blue); }
.nav-n, .nav-i.on .nav-n { background: var(--blue); color: #fff; border-radius: 6px; padding: 0 7px; font-size: 10.5px; }
.nav-sep { background: rgba(255, 255, 255, .06); }
.side-foot { color: #7A8298; }

/* Canvas & top bar */
.topbar { background: transparent; border-bottom: 0; padding: 18px 32px 0; position: static; }
.city { background: #fff; border-radius: 999px; padding: 7px 14px; box-shadow: var(--shadow); }
.tagline { border-left: 0; padding-left: 4px; }
.demo-pill { border-radius: 999px; background: #fff; color: var(--blue); box-shadow: var(--shadow); }
.avatar { width: 38px; height: 38px; background: linear-gradient(135deg, var(--blue), #6AA8FF); box-shadow: 0 6px 16px rgba(47, 124, 246, .35); }
.content { padding: 22px 32px 60px; gap: 22px; }
.ph h1 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.ph p { font-size: 14px; }

/* Cards */
.card, .kpi, .topic, .kcard { border: 0; border-radius: var(--r); box-shadow: var(--shadow); }
.card { padding: 22px 24px; }
.card-h h3 { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.kpi { padding: 18px 20px; border-radius: 20px; }
.kpi-i { width: 48px; height: 48px; }
.kpi-v { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.kpi-d { padding: 3px 8px; border-radius: 999px; background: #F3F5F9; font-size: 11.5px; }
.kpi-d.up { background: var(--green-s); }
.kpi-d.down { background: #FFF0E6; color: var(--orange); }
.kpi-d small { display: none; }
.empty { border-radius: 18px; background: #F7F9FC; border: 1.5px dashed #D9E0EB; }

/* Pill controls (like "Monthly ▾" and "Filter") */
.btn { border-radius: 12px; font-weight: 700; }
.btn.sm, .inp.sm, select.inp.sm { border-radius: 999px; }
.inp.sm, select.inp.sm { background-color: #fff; border-color: #E3E8F0; font-weight: 600; box-shadow: 0 1px 2px rgba(22, 32, 60, .04); }
.btn-primary { background: var(--blue); border-color: var(--blue); box-shadow: 0 8px 18px rgba(47, 124, 246, .28); }
.btn-primary:hover { background: var(--blue-d); border-color: var(--blue-d); }
.btn-go { background: var(--green); border-color: var(--green); box-shadow: 0 8px 18px rgba(34, 181, 91, .25); }
.seg { border-radius: 999px; background: #E9EDF3; padding: 4px; }
.seg button { border-radius: 999px; }
.inp { border-radius: 12px; }
.badge { border-radius: 999px; padding: 3px 10px; font-weight: 700; }
.chip { background: #fff; }
.tabs { border-bottom: 0; background: #fff; border-radius: 999px; padding: 5px; display: inline-flex; box-shadow: var(--shadow); align-self: flex-start; }
.tabs button { border-radius: 999px; border-bottom: 0; margin: 0; padding: 8px 16px; }
.tabs button.on { background: var(--blue); color: #fff; }

/* Map */
.lmap { border: 0; border-radius: 18px; }
.mk-dot { border-width: 3px; }

/* Bars as rounded pills */
.bar-t { height: 10px; background: #EEF2F7; }
.bar-t i { background: linear-gradient(90deg, var(--blue), #62A3FF); }
.fbar i { border-radius: 999px; height: 26px; }
.lb-r { border-radius: 14px; }
.lb-t i { background: linear-gradient(90deg, var(--blue), #62A3FF); }
.dist i { border-radius: 999px; background: linear-gradient(180deg, #62A3FF, var(--blue)); }
.tbl th { background: transparent; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.tbl tbody tr:hover { background: #F8FAFD; }

/* Charts */
.ln { stroke: var(--blue); stroke-width: 3; }
.ln.green { stroke: var(--green); }
.area { fill: url(#bpArea); }
.pt { stroke: var(--blue); stroke-width: 2.5; }
.donut { display: block; }
.donut .d-bg { fill: none; stroke: #E6EEFB; }
.donut .d-fg { fill: none; stroke-linecap: round; transition: stroke-dasharray .6s; }
.donut text { font: 800 17px var(--font); fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.donut-row { display: flex; gap: 18px; align-items: center; }

/* Gradient hero cards */
.card.hero-blue { background: linear-gradient(145deg, #3B8BFF, #1F66DB); color: #fff; position: relative; overflow: hidden; }
.card.hero-blue::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .09); right: -80px; top: -90px; }
.card.hero-blue::after { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .07); left: -60px; bottom: -70px; }
.card.hero-blue > * { position: relative; z-index: 1; }
.card.hero-blue .muted, .card.hero-blue .small { color: rgba(255, 255, 255, .82); }
.card.hero-blue .card-h h3 { color: #fff; }
.card.hero-blue .badge { background: rgba(255, 255, 255, .18); color: #fff; }
.card.hero-blue .btn { background: #fff; border-color: #fff; color: var(--blue-d); box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.card.hero-blue .btn.ghosty { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: #fff; box-shadow: none; }
.card.hero-blue [style*="border-top"] { border-color: rgba(255, 255, 255, .2) !important; }

/* Decisions & pipeline */
.fit-r { border: 0; background: #F7F9FC; border-radius: 16px; }
.sim-o { border-radius: 18px; background: linear-gradient(145deg, #EEF5FF, #E6F0FF); }
.kcol { border-radius: 20px; background: #E6EAF1; }
.step.done i { background: var(--green); border-color: var(--green); }
.pipe-s.done i, .pipe-s.cur i { background: var(--blue); }
.pipe-s.done::before { background: var(--blue); }
.src { border-top: 0; position: relative; overflow: hidden; }
.src::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--green); }
.src.s-partial::before { background: var(--amber); }
.src.s-missing::before { background: #CBD5E1; }
.modal, .drawer { border-radius: 24px; }
.drawer { border-radius: 24px 0 0 24px; }
.login-l { background: var(--side); }
@media (max-width: 820px) { .topbar { padding: 12px 16px 0; } .content { padding: 16px 16px 48px; } .tabs { display: flex; border-radius: 16px; } }
.kpi-vr { display: flex; align-items: center; gap: 10px; min-width: 0; }
.kpi-vr .kpi-v { min-width: 0; }
.kpi-vr .spark { margin-left: auto; }
.ib-a select.inp { width: auto; max-width: 200px; }

/* Social platforms */
.cav.facebook { background: #1877F2; }
.cav.instagram { background: radial-gradient(circle at 30% 110%, #FFD776 0%, #F77737 25%, #E1306C 55%, #C13584 75%, #833AB4 100%); }
.cav.tiktok { background: #111827; }
.chip.fb .ic { color: #1877F2; } .chip.ig .ic { color: #E1306C; } .chip.tt .ic { color: #111827; }
.sent { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.sent::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sent.positive { background: var(--green-s); color: var(--green); }
.sent.neutral { background: #EEF1F6; color: var(--ink-2); }
.sent.negative { background: #FFECE8; color: #E5484D; }
.sbars { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 8px; }
.sbars .d { flex: 1; display: flex; flex-direction: column-reverse; gap: 2px; height: 100%; min-width: 6px; position: relative; }
.sbars .d i { display: block; border-radius: 999px; min-height: 0; }
.sbars .d .p { background: var(--green); } .sbars .d .n { background: #CBD5E1; } .sbars .d .x { background: #F0616D; }
.sbars-x { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-top: 6px; }
.mixbar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: #EEF1F6; gap: 2px; min-width: 80px; }
.mixbar i { display: block; } .mixbar .p { background: var(--green); } .mixbar .n { background: #CBD5E1; } .mixbar .x { background: #F0616D; }
.post-r { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line-2); }
.post-r:last-child { border-bottom: 0; }
.post-r .t { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-r .m { font-size: 12px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
.connect { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.connect .cav { width: 44px; height: 44px; }
.connect .cav .ic { width: 22px; height: 22px; }
.alert-bar { display: flex; gap: 12px; align-items: center; background: linear-gradient(90deg, #FFF1EE, #FFF8F6); border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow); flex-wrap: wrap; }
.alert-bar .ic { color: #E5484D; width: 20px; height: 20px; }
.cav.linkedin { background: #0A66C2; }
.chip.li .ic { color: #0A66C2; }

.chip.nw .ic { color: #475569; }
.cav.news { background: #475569; }
#print-head { display: none; }
@media print {
  @page { size: A4 landscape; margin: 12mm; }
  body { background: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .side, .topbar, .ph-r, .btn, .seg, select, .menu, .toast, .leaflet-control-zoom, [data-noprint] { display: none !important; }
  .shell { display: block; }
  .content { padding: 0 !important; gap: 12px; }
  .card, .kpi { box-shadow: none !important; border: 1px solid #E4E9F2 !important; break-inside: avoid; page-break-inside: avoid; }
  .grid { gap: 10px; }
  .lmap { height: 340px !important; }
  #print-head { display: block; }
  .ph-print { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: #33415C; border-bottom: 2px solid #2F7CF6; padding-bottom: 6px; margin-bottom: 10px; }
  .ph-print b { color: #0B1B3F; letter-spacing: .06em; }
  a { color: inherit; text-decoration: none; }
}
.band { fill: rgba(47, 124, 246, .12); }
.ln.fc { stroke: #FF8A30; stroke-dasharray: 5 4; }
.hotbar { display: grid; grid-template-columns: 26px minmax(120px, 1.2fr) 2fr 70px 70px; gap: 10px; align-items: center; padding: 9px 8px; border-radius: 12px; cursor: pointer; font-size: 13px; }
.hotbar:hover { background: #F6F8FC; }
.hotbar.on { background: var(--blue-s); }
.hotbar .n { color: var(--muted); font-weight: 700; font-size: 11px; }
.hotbar .b { height: 9px; background: #EEF2F7; border-radius: 99px; overflow: hidden; }
.hotbar .b i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #FF8A30, #F0616D); }
.chg { font-weight: 700; font-size: 12px; text-align: right; }
.chg.up { color: #E5484D; } .chg.down { color: var(--green); }
.src-note { font-size: 11.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.src-note .ic { width: 13px; height: 13px; }
.quad text { font-size: 11px; fill: var(--muted); font-weight: 700; }
.quad .bub { stroke: #fff; stroke-width: 2; }
.quad .lab { font-size: 11px; fill: var(--ink); font-weight: 700; }

/* Brand logo */
.brand { padding: 0 6px 26px; }
.logo-img { display: block; width: 190px; height: auto; }
@media (max-width: 820px) { .logo-img { width: auto; height: 34px; } }
