/* VATSENIX Growth Hub dashboard.
   Colour roles follow the reference data-viz palette: categorical hues in a fixed order, one colour per entity (a product or a
   channel keeps its colour on every chart), status colours reserved for state and always paired with an icon and a label. */
:root {
  color-scheme: light;
  --page: #f9f9f7; --surface: #fcfcfb; --surface-2: #f3f3f0;
  --ink: #0b0b0b; --ink-2: #52514e; --muted: #767470;
  --grid: #e1e0d9; --axis: #c3c2b7; --border: rgba(11, 11, 11, 0.10);
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #008300; --s7: #4a3aa7; --s8: #e34948; --s-other: #a9a7a0;
  --seq-1: #86b6ef; --seq-2: #6da7ec; --seq-3: #3987e5; --seq-4: #2a78d6; --seq-5: #256abf; --seq-6: #1c5cab; --seq-7: #184f95;
  --good: #0ca30c; --good-text: #006300; --warning: #fab219; --warning-text: #8a5a00; --serious: #ec835a; --critical: #d03b3b;
  --accent: #2a78d6; --accent-ink: #ffffff; --accent-soft: #e6f0fc;
  --nav-bg: #0f2454; --nav-ink: #dbe6ff; --nav-muted: #93a7d6; --nav-active: #2a78d6;
  --shadow: 0 1px 2px rgba(11, 11, 11, 0.05);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0d0d0d; --surface: #1a1a19; --surface-2: #232321;
    --ink: #ffffff; --ink-2: #c3c2b7; --muted: #9b9990;
    --grid: #2c2c2a; --axis: #383835; --border: rgba(255, 255, 255, 0.10);
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767; --s-other: #6b6a64;
    --good-text: #0ca30c; --warning-text: #fab219; --accent-soft: #1a2a44; --nav-bg: #0a1330;
    --seq-1: #184f95; --seq-2: #1c5cab; --seq-3: #256abf; --seq-4: #2a78d6; --seq-5: #3987e5; --seq-6: #6da7ec; --seq-7: #86b6ef;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d; --surface: #1a1a19; --surface-2: #232321;
  --ink: #ffffff; --ink-2: #c3c2b7; --muted: #9b9990;
  --grid: #2c2c2a; --axis: #383835; --border: rgba(255, 255, 255, 0.10);
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767; --s-other: #6b6a64;
  --good-text: #0ca30c; --warning-text: #fab219; --accent-soft: #1a2a44; --nav-bg: #0a1330;
  --seq-1: #184f95; --seq-2: #1c5cab; --seq-3: #256abf; --seq-4: #2a78d6; --seq-5: #3987e5; --seq-6: #6da7ec; --seq-7: #86b6ef;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--page); color: var(--ink); font: 14px/1.5 var(--font); }
[hidden] { display: none !important; }
a { color: var(--accent); }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ------------------------------------------------------------------ sign-in */
.signin { min-height: 100%; display: grid; place-items: center; padding: 1rem; }
.signin-card { width: min(380px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.75rem; box-shadow: var(--shadow); display: grid; gap: 0.9rem; }
.signin-card h1 { font-size: 1.3rem; }
.signin-card p { color: var(--ink-2); }
.brand-mark { font-weight: 800; letter-spacing: 0.04em; }

/* -------------------------------------------------------------------- layout */
.app { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100%; }
.sidebar { background: var(--nav-bg); color: var(--nav-ink); position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 1rem 0.75rem; display: flex; flex-direction: column; gap: 0.25rem; }
.sidebar .logo { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.4rem 0.75rem 1rem; font-size: 1.15rem; color: #fff; }
.sidebar .logo small { color: var(--nav-muted); font-size: 0.8rem; }
.nav-link, .nav-group > button { display: flex; align-items: center; gap: 0.65rem; width: 100%; padding: 0.55rem 0.75rem; border: 0; border-radius: 10px; background: none; color: var(--nav-ink); text-align: left; text-decoration: none; cursor: pointer; }
.nav-link:hover, .nav-group > button:hover { background: rgba(255, 255, 255, 0.08); }
.nav-link[aria-current="page"] { background: var(--nav-active); color: #fff; font-weight: 600; }
.nav-group > button .chev { margin-left: auto; transition: transform 0.15s; }
.nav-group.open > button .chev { transform: rotate(180deg); }
.nav-sub { display: none; margin: 0.1rem 0 0.4rem 1.35rem; padding-left: 0.6rem; border-left: 1px solid rgba(255, 255, 255, 0.15); }
.nav-group.open .nav-sub { display: block; }
.nav-sub .nav-link { padding: 0.4rem 0.7rem; font-size: 0.9rem; color: var(--nav-muted); }
.nav-sub .nav-link[aria-current="page"] { color: #fff; background: rgba(42, 120, 214, 0.55); }
.sidebar-foot { margin-top: auto; padding: 0.9rem 0.75rem 0.2rem; color: var(--nav-muted); font-size: 0.78rem; border-top: 1px solid rgba(255, 255, 255, 0.12); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 1.25rem; background: color-mix(in srgb, var(--page) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.menu-btn { display: none; }
.searchbox { position: relative; flex: 1 1 320px; max-width: 460px; }
.searchbox input { width: 100%; padding: 0.55rem 0.8rem 0.55rem 2.3rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.searchbox .icon { position: absolute; left: 0.7rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.searchbox kbd { position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%); font-size: 0.72rem; color: var(--muted); border: 1px solid var(--border); border-radius: 5px; padding: 0 0.35rem; }
.dropdown { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14); z-index: 40; max-height: 70vh; overflow-y: auto; padding: 0.35rem; }
.dropdown .group { padding: 0.4rem 0.6rem 0.15rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.dropdown a, .dropdown button.item { display: flex; justify-content: space-between; gap: 0.75rem; width: 100%; padding: 0.5rem 0.6rem; border: 0; border-radius: 8px; background: none; color: var(--ink); text-decoration: none; text-align: left; cursor: pointer; }
.dropdown a:hover, .dropdown button.item:hover, .dropdown .active { background: var(--surface-2); }
.dropdown small { color: var(--muted); }
.spacer { flex: 1; }
.topbar select, .filters select, .field select, .field input, .field textarea {
  padding: 0.5rem 0.7rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); min-height: 38px;
}
.iconbtn { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; }
.iconbtn .badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--critical); color: #fff; font-size: 0.7rem; font-weight: 700; display: grid; place-items: center; }
.userchip { display: flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.5rem 0.25rem 0.3rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); cursor: pointer; }
.userchip .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.75rem; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14); padding: 0.35rem; z-index: 40; }
.menu-wrap { position: relative; }

.content { padding: 1.25rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-content: start; max-width: 1500px; width: 100%; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem; }
.page-head h1 { font-size: 1.45rem; }
.page-head p { color: var(--ink-2); margin-top: 0.15rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { padding: 0.4rem 0.85rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }

/* --------------------------------------------------------------------- cards */
.grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-32 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.cols-75 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.cols-23 { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.1rem; box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.75rem; }
.card-head h2 { font-size: 1rem; }
.card-head .sub { color: var(--muted); font-size: 0.85rem; font-weight: 400; }
.card-head a, .linkbtn { font-size: 0.85rem; color: var(--accent); text-decoration: none; background: none; border: 0; cursor: pointer; padding: 0; }
.linkbtn:hover, .card-head a:hover { text-decoration: underline; }
.scroll-x { overflow-x: auto; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.85rem; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0.85rem 1rem; display: grid; gap: 0.2rem; box-shadow: var(--shadow); }
.kpi-top { display: flex; align-items: center; gap: 0.5rem; color: var(--ink-2); font-size: 0.85rem; line-height: 1.25; }
.kpi-icon { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.kpi-value { font-size: 1.55rem; font-weight: 700; line-height: 1.2; }
.kpi-value .sub { font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.kpi-value.compact { font-size: 1.3rem; overflow-wrap: anywhere; }
.kpi-foot { font-size: 0.8rem; color: var(--muted); display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.delta { display: inline-flex; align-items: center; gap: 0.2rem; font-weight: 600; }
.delta.up { color: var(--good-text); }
.delta.down { color: var(--critical); }
.delta.flat, .delta.none { color: var(--muted); font-weight: 500; }

/* -------------------------------------------------------------------- tables */
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { text-align: left; padding: 0.55rem 0.5rem; border-bottom: 1px solid var(--grid); white-space: nowrap; vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: 0.78rem; white-space: normal; vertical-align: bottom; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.clickable { cursor: pointer; }
tbody tr.clickable:hover { background: var(--surface-2); }
.empty { color: var(--muted); padding: 1rem 0.25rem; }
.empty strong { color: var(--ink-2); }
.pill { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.1rem 0.6rem; border-radius: 999px; font-size: 0.76rem; font-weight: 600; border: 1px solid var(--border); background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.pill.good { color: var(--good-text); border-color: var(--good); }
.pill.warning { color: var(--warning-text); border-color: var(--warning); }
.pill.critical { color: var(--critical); border-color: var(--critical); }
.pill.info { color: var(--accent); border-color: var(--accent); }
.avatar-sm { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: inline-grid; place-items: center; font-size: 0.72rem; font-weight: 700; margin-right: 0.5rem; }

/* ------------------------------------------------------------------ controls */
button.btn, a.btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.95rem; min-height: 38px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; }
button.btn:hover, a.btn:hover { background: var(--surface-2); }
button.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
button.btn.primary:hover { filter: brightness(1.08); }
button.btn.danger { color: var(--critical); }
button.btn:disabled { opacity: 0.55; cursor: progress; }
.field { display: grid; gap: 0.25rem; font-size: 0.82rem; color: var(--ink-2); }
.field input, .field select, .field textarea { color: var(--ink); width: 100%; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0.75rem; align-items: end; }
.toolbar { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: end; }
.toolbar .field { min-width: 150px; }
.hint { color: var(--muted); font-size: 0.82rem; }
.notice { display: flex; gap: 0.6rem; padding: 0.75rem 0.9rem; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--ink-2); }
.notice.warning { border-color: var(--warning); }
.notice.critical { border-color: var(--critical); }
.notice.good { border-color: var(--good); }

/* -------------------------------------------------------------------- charts */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: var(--grid); stroke-width: 1; }
.chart .axis-line { stroke: var(--axis); stroke-width: 1; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .series { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .marker { stroke: var(--surface); stroke-width: 2; }
.chart .crosshair { stroke: var(--axis); stroke-width: 1; }
.tooltip { position: absolute; pointer-events: none; z-index: 5; min-width: 150px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0.5rem 0.65rem; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16); font-size: 0.82rem; }
.tooltip .t-head { font-weight: 700; margin-bottom: 0.25rem; }
.tooltip .t-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.tooltip .t-row span:first-child { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ink-2); }
.legend { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin-top: 0.5rem; font-size: 0.82rem; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.c1 { --c: var(--s1); } .c2 { --c: var(--s2); } .c3 { --c: var(--s3); } .c4 { --c: var(--s4); } .c5 { --c: var(--s5); } .c6 { --c: var(--s6); } .c7 { --c: var(--s7); } .c8 { --c: var(--s8); } .c-other { --c: var(--s-other); } .c-ink { --c: var(--ink); }
.dot { background: var(--c); }
svg .stroke-c { stroke: var(--c); }
svg .fill-c { fill: var(--c); }
.donut-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 1.25rem; align-items: center; }
.donut-wrap > .chart { flex: 0 0 170px; width: 170px; }
.donut-legend { display: grid; gap: 0.35rem; font-size: 0.86rem; flex: 1 1 200px; min-width: 200px; }
.donut-legend div { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; gap: 0.5rem; align-items: center; }
.donut-legend .v { font-variant-numeric: tabular-nums; }
.donut-legend .p { color: var(--muted); min-width: 2.6rem; text-align: right; font-variant-numeric: tabular-nums; }
.donut-center { font-size: 26px; font-weight: 700; fill: var(--ink) !important; }
.donut-sub { fill: var(--muted); }
.funnel { display: grid; gap: 0.35rem; }
.funnel-row { display: grid; grid-template-columns: minmax(110px, 30%) minmax(0, 1fr) 5.2rem; gap: 0.6rem; align-items: center; font-size: 0.85rem; }
.funnel-bar { height: 22px; border-radius: 4px; background: var(--seq-3); min-width: 3px; }
.funnel-row .v { text-align: right; font-variant-numeric: tabular-nums; }
.funnel-row .v small { color: var(--muted); }
.bar-cell { display: flex; align-items: center; gap: 0.5rem; }
.bar-track { flex: 1; min-width: 60px; height: 8px; border-radius: 4px; background: var(--grid); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; background: var(--seq-4); }
.spark { width: 110px; height: 34px; }
.heat { text-align: center; font-variant-numeric: tabular-nums; min-width: 56px; border-radius: 4px; border-bottom: 2px solid var(--surface) !important; }
.view-toggle { font-size: 0.8rem; }

/* ----------------------------------------------------------------- pipeline */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 0.75rem; overflow-x: auto; padding-bottom: 0.5rem; }
.column { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 0.6rem; display: flex; flex-direction: column; gap: 0.5rem; min-height: 200px; }
.column.over { outline: 2px dashed var(--accent); }
.column h3 { font-size: 0.85rem; display: flex; justify-content: space-between; align-items: center; }
.lead-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0.55rem 0.65rem; display: grid; gap: 0.2rem; cursor: grab; font-size: 0.85rem; }
.lead-card:active { cursor: grabbing; }
.lead-card .top { display: flex; justify-content: space-between; gap: 0.5rem; }
.lead-card .name { font-weight: 600; }
.lead-card small { color: var(--muted); }

/* ------------------------------------------------------------- drawer/modal */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.35); z-index: 60; display: flex; justify-content: flex-end; }
.overlay.center { justify-content: center; align-items: center; padding: 1rem; }
.drawer { width: min(520px, 100%); height: 100%; background: var(--surface); padding: 1.25rem; overflow-y: auto; display: grid; gap: 1rem; align-content: start; }
.modal { width: min(560px, 100%); max-height: 92vh; overflow-y: auto; background: var(--surface); border-radius: 16px; padding: 1.25rem; display: grid; gap: 1rem; }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.timeline { display: grid; gap: 0.6rem; }
.timeline div { display: grid; grid-template-columns: 8px 1fr; gap: 0.6rem; }
.timeline i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 0.4rem; }
.timeline small { color: var(--muted); display: block; }
.toasts { position: fixed; right: 1rem; bottom: 1rem; z-index: 80; display: grid; gap: 0.5rem; }
.toast { background: var(--ink); color: var(--page); padding: 0.6rem 0.9rem; border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); max-width: 360px; }
.toast.error { background: var(--critical); color: #fff; }
.loading { color: var(--muted); padding: 2rem 0; }
.skeleton { height: 90px; border-radius: 14px; background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1180px) { .cols-3, .cols-32, .cols-23, .cols-75 { grid-template-columns: minmax(0, 1fr); } .cols-2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; z-index: 70; left: 0; top: 0; width: 270px; transform: translateX(-105%); transition: transform 0.2s; }
  .sidebar.open { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, 0.4); }
  .menu-btn { display: inline-grid; }
  .content { padding: 0.9rem; }
  .donut-legend { width: 100%; }
  .userchip .name { display: none; }
  .topbar { flex-wrap: wrap; padding: 0.6rem 0.75rem; gap: 0.5rem; }
  .searchbox { order: 9; flex: 1 1 100%; max-width: none; }
  .searchbox kbd { display: none; }
}
@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .app { display: block; }
  .card, .kpi { box-shadow: none; break-inside: avoid; }
}
@media (forced-colors: active) { .funnel-bar, .bar-fill, .dot { forced-color-adjust: none; } }

/* Employee lead follow-up workspace. */
.emp-app { min-height: 100vh; display: grid; grid-template-columns: 228px minmax(0, 1fr); background: #f6f8fc; color: #0d1735; }
.emp-sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 10px 16px; color: #dce8ff; background: linear-gradient(155deg, #0f3471, #061f4f); display: flex; flex-direction: column; z-index: 20; }
.emp-logo { padding: 0 16px 28px; display: grid; line-height: 1.05; }
.emp-logo strong { color: #fff; font-size: 23px; letter-spacing: .04em; }
.emp-logo span { color: #b7cef5; font-size: 15px; }
.emp-sidebar nav { display: grid; gap: 6px; }
.emp-sidebar nav a { padding: 11px 14px; border-radius: 9px; color: #dce8ff; text-decoration: none; font-size: 14px; display: flex; align-items: center; gap: 12px; }
.emp-nav-icon { width: 20px; height: 20px; display: inline-grid; place-items: center; border: 1.5px solid currentColor; border-radius: 5px; line-height: 1; }
.emp-nav-icon::before { content: ""; width: 8px; height: 8px; border: 1.5px solid currentColor; border-radius: 2px; }
.emp-nav-icon.queue::before { width: 10px; height: 2px; border-width: 1.5px 0; border-radius: 0; box-shadow: 0 4px currentColor, 0 -4px currentColor; }
.emp-nav-icon.leads { border-radius: 50%; }.emp-nav-icon.leads::before { border-radius: 50%; }
.emp-nav-icon.follow::before { width: 9px; height: 9px; border-radius: 50%; }
.emp-nav-icon.activity::before { width: 10px; height: 10px; border: 0; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: skewY(-25deg); }
.emp-sidebar nav a:hover, .emp-sidebar nav a.active { color: #fff; background: rgba(57, 132, 240, .28); box-shadow: inset 3px 0 #4a9bff; }
.emp-sidebar-user { margin-top: auto; padding: 16px 12px 2px; border-top: 1px solid rgba(255,255,255,.14); display: grid; grid-template-columns: auto 1fr; gap: 9px; align-items: center; }
.emp-sidebar-user small { display: block; color: #9db8e8; }
.emp-sidebar-user button { grid-column: 1 / -1; border: 0; padding: 5px; background: none; color: #adc5ed; cursor: pointer; text-align: left; }
.emp-workspace { min-width: 0; }
.emp-topbar { height: 64px; padding: 10px 26px; border-bottom: 1px solid #dce2ec; background: #fff; display: flex; align-items: center; gap: 20px; position: sticky; top: 0; z-index: 15; }
.emp-search { flex: 1; max-width: 620px; color: transparent; position: relative; font-size: 0; }
.emp-search::before, .emp-inline-search::before { content: ""; position: absolute; left: 15px; top: 50%; width: 11px; height: 11px; border: 2px solid #405171; border-radius: 50%; transform: translateY(-60%); z-index: 1; }
.emp-search::after, .emp-inline-search::after { content: ""; position: absolute; left: 27px; top: 55%; width: 7px; height: 2px; background: #405171; transform: rotate(45deg); z-index: 1; }
.emp-search input, .emp-inline-search input { width: 100%; height: 42px; padding: 0 14px 0 42px; border: 1px solid #ccd5e4; border-radius: 8px; background: #f9fbfe; color: #14213d; }
.emp-date { margin-left: auto; white-space: nowrap; color: #253250; }
.emp-user { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; font-weight: 600; color: #17213b; cursor: pointer; }
.emp-avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: #e9e2fa; color: #1d315f; font-weight: 700; }
.emp-avatar.large { width: 58px; height: 58px; background: #dfeafb; font-size: 19px; }
.emp-main { padding: 20px 26px 24px; display: grid; gap: 14px; }
.emp-title { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.emp-title h1 { font-size: 28px; letter-spacing: -.025em; }
.emp-title p { margin-top: 2px; color: #66738e; font-size: 15px; }
.emp-kpis { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 12px; }
.emp-kpi { min-height: 106px; padding: 13px; border: 1px solid #dfe4ed; border-radius: 9px; background: #fff; display: flex; gap: 13px; align-items: flex-start; box-shadow: 0 2px 7px rgba(15, 30, 60, .03); }
.emp-kpi-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 18px; }
.emp-kpi-icon.blue { background: #e3f1ff; color: #136cdd; }.emp-kpi-icon.amber { background: #fff3d8; color: #c47c00; }.emp-kpi-icon.red { background: #ffe2e5; color: #df2337; }.emp-kpi-icon.green { background: #def7e7; color: #09853c; }
.emp-kpi span, .emp-kpi small { display: block; color: #65718b; }.emp-kpi strong { display: block; margin: 2px 0; color: #08132f; font-size: 28px; }.emp-kpi small { font-size: 11px; }
.emp-title-actions { display: flex; gap: 10px; }
.emp-insights { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, .85fr); gap: 14px; }
.emp-insight-card, .emp-priorities { border: 1px solid #dfe6f0; border-radius: 12px; background: #fff; box-shadow: 0 3px 12px rgba(20,45,85,.04); }
.emp-insight-card { padding: 15px 18px; min-height: 220px; }
.emp-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.emp-card-head h2 { font-size: 17px; color: #101d3c; }.emp-card-head p { color: #70809d; font-size: 12px; margin-top: 2px; }
.emp-legend { display: flex; gap: 14px; color: #50617d; font-size: 11px; }.emp-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: #b5c5dd; }.emp-legend .complete::before { background: #1473ef; }
.emp-week-chart { height: 145px; padding: 18px 8px 0; border-bottom: 1px solid #dfe6f1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; align-items: end; background: repeating-linear-gradient(to bottom, transparent 0 35px, #edf1f7 36px); }
.emp-day { height: 126px; display: grid; grid-template-rows: 1fr auto auto; justify-items: center; gap: 2px; color: #667793; font-size: 10px; }.emp-day > strong { color: #216fd6; font-size: 10px; }
.emp-bars { height: 95px; display: flex; gap: 4px; align-items: end; }.emp-bars i { display: block; width: 8px; min-height: 5px; border-radius: 5px 5px 1px 1px; background: #b9c8dd; }.emp-bars i.complete { background: linear-gradient(#1684ff,#1268df); }
.emp-bars .h1 { height: 10%; }.emp-bars .h2 { height: 20%; }.emp-bars .h3 { height: 30%; }.emp-bars .h4 { height: 40%; }.emp-bars .h5 { height: 50%; }.emp-bars .h6 { height: 60%; }.emp-bars .h7 { height: 70%; }.emp-bars .h8 { height: 80%; }.emp-bars .h9 { height: 90%; }.emp-bars .h10 { height: 100%; }
.emp-funnel { display: grid; gap: 7px; padding-top: 18px; }.emp-funnel-step { width: calc(100% - (var(--cut, 0) * 12%)); margin-inline: auto; padding: 9px 12px; border-radius: 8px; display: grid; grid-template-columns: 1fr auto 42px; align-items: center; gap: 10px; color: #15315d; background: #d8eaff; font-size: 12px; }.emp-funnel-step.step-2 { --cut: 1; background: #d4ecfb; }.emp-funnel-step.step-3 { --cut: 2; background: #d4f2f1; }.emp-funnel-step.step-4 { --cut: 3; background: #d8f6e8; }.emp-funnel-step span { font-weight: 700; }.emp-funnel-step strong { font-size: 15px; }.emp-funnel-step small { text-align: right; color: #55708e; }
.emp-queue-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; align-items: start; }
.emp-priorities { padding: 16px; display: grid; gap: 10px; }
.emp-goal { padding: 12px 0 16px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid #e2e8f1; }.emp-goal > div:last-child { display: grid; }.emp-goal span,.emp-goal small { color: #71809b; font-size: 11px; }.emp-goal > div > strong { color: #166ddd; font-size: 22px; }
.emp-goal-ring { --progress: 0deg; width: 74px; height: 74px; border-radius: 50%; background: conic-gradient(#1176ed var(--progress), #e3edf9 0); display: grid; place-items: center; position: relative; }.emp-goal-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }.emp-goal-ring strong { position: relative; z-index: 1; font-size: 17px; }
.emp-goal-ring.p1 { --progress: 36deg; }.emp-goal-ring.p2 { --progress: 72deg; }.emp-goal-ring.p3 { --progress: 108deg; }.emp-goal-ring.p4 { --progress: 144deg; }.emp-goal-ring.p5 { --progress: 180deg; }.emp-goal-ring.p6 { --progress: 216deg; }.emp-goal-ring.p7 { --progress: 252deg; }.emp-goal-ring.p8 { --progress: 288deg; }.emp-goal-ring.p9 { --progress: 324deg; }.emp-goal-ring.p10 { --progress: 360deg; }
.emp-priority-task { width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid #e6ebf2; background: none; display: grid; grid-template-columns: auto 1fr auto; gap: 9px; align-items: center; text-align: left; color: #17305a; cursor: pointer; }.emp-priority-task i { width: 20px; height: 20px; border: 2px solid #b5c4d9; border-radius: 50%; }.emp-priority-task i.done { border-color: #1476ed; background: #1476ed; box-shadow: inset 0 0 0 4px #fff; }.emp-priority-task span { display: grid; }.emp-priority-task small { color: #78869d; }
.emp-table-card { border: 1px solid #e0e5ee; border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 3px 12px rgba(15, 30, 60, .04); }
.emp-tabs { display: flex; gap: 18px; padding: 0 14px; border-bottom: 1px solid #e2e6ee; overflow-x: auto; }
.emp-tabs button { padding: 14px 4px 11px; border: 0; border-bottom: 3px solid transparent; background: none; color: #26324f; white-space: nowrap; cursor: pointer; }
.emp-tabs button[aria-pressed="true"] { color: #0766dc; border-bottom-color: #1673e8; font-weight: 700; }
.emp-filters { padding: 12px; display: grid; grid-template-columns: minmax(220px, 1fr) 130px 130px 130px; gap: 10px; }
.emp-inline-search { position: relative; }
.emp-filters select { min-height: 42px; padding: 0 12px; border: 1px solid #ccd5e4; border-radius: 8px; background: #fff; color: #26324f; }
.emp-table th { background: #f8fafe; color: #34415d; padding: 9px 12px; }.emp-table td { padding: 8px 12px; }
.emp-table tbody tr { cursor: pointer; }.emp-table tbody tr:hover, .emp-table tbody tr.selected { background: #eaf3ff; }
.emp-person { display: flex; align-items: center; gap: 9px; min-width: 190px; }.emp-person small, .emp-table td > small { display: block; color: #71809c; }
.source-label { display: block; font-weight: 500; }.text-critical { color: #c91f32; }
.priority { display: inline-block; min-width: 62px; padding: 3px 9px; border-radius: 15px; text-align: center; font-size: 12px; font-weight: 600; }
.priority.high { color: #c82337; background: #ffdce1; }.priority.medium { color: #8a5a00; background: #fff0c7; }.priority.low { color: #1459a6; background: #dcecff; }
.registration { display: inline-block; min-width: 72px; padding: 3px 10px; border-radius: 14px; text-align: center; font-size: 12px; font-weight: 600; }
.registration.pending { color: #8a5a00; background: #fff0c7; }.registration.registered { color: #08783a; background: #d4f5df; }.muted-dash { color: #7b879d; }
.emp-actions { display: flex; gap: 6px; }.emp-actions .btn { min-height: 34px; padding: 5px 10px; }
.emp-action-icon { min-width: 36px; height: 32px; padding: 0 7px; border: 1px solid #cbd8eb; border-radius: 7px; background: #f7fbff; color: #1568d1; display: inline-grid; place-items: center; font: 700 10px/1 Arial,sans-serif; text-decoration: none; cursor: pointer; }.emp-action-icon:hover { border-color: #1473e6; background: #eaf4ff; }.emp-action-icon.whatsapp { color: #087b38; }.emp-action-icon.email { color: #6c45b6; }
.emp-table-foot { padding: 10px 14px; display: flex; justify-content: space-between; color: #6b7891; font-size: 12px; border-top: 1px solid #e4e8ef; }
.emp-detail { position: fixed; z-index: 40; top: 0; right: 0; width: min(410px, 100%); height: 100vh; padding: 18px 20px 28px; overflow-y: auto; background: #fff; border-left: 1px solid #dfe4ed; box-shadow: -12px 0 35px rgba(20, 40, 75, .13); transform: translateX(105%); transition: transform .2s ease; display: grid; gap: 15px; align-content: start; }
.emp-detail.open { transform: none; }.emp-detail-head { display: flex; align-items: center; justify-content: space-between; }.emp-detail-head h2 { font-size: 18px; }
.emp-profile { display: grid; grid-template-columns: auto 1fr; gap: 13px; align-items: center; }.emp-profile h3 { font-size: 20px; }.emp-profile p { color: #66738e; margin: 2px 0 5px; }
.emp-contact { display: grid; gap: 8px; padding: 12px 0; border-block: 1px solid #e5e8ef; }.emp-contact a, .emp-contact span { color: #33415e; text-decoration: none; }
.emp-contact-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }.emp-contact-actions .btn { justify-content: center; }.btn.whatsapp { color: #fff; background: #119b45; border-color: #119b45; }
.emp-contact-actions .btn:disabled,.emp-message-actions .btn:disabled { opacity: .55; cursor: not-allowed; }
.emp-communications { padding: 13px; border: 1px solid #dce5f0; border-radius: 10px; background: #f8fbff; display: grid; gap: 10px; }
.emp-comm-head { display: flex; justify-content: space-between; gap: 10px; align-items: start; }.emp-comm-head div { display: grid; gap: 2px; }.emp-comm-head small { color: #718096; line-height: 1.35; }
.connection-status { white-space: nowrap; border-radius: 999px; padding: 4px 8px; font-size: 11px; color: #8b5c00; background: #fff0c7; }.connection-status.connected { color: #08753a; background: #d9f7e6; }
.emp-communications textarea { width: 100%; resize: vertical; padding: 10px; border: 1px solid #cbd7e7; border-radius: 8px; background: #fff; }
.emp-chat-thread { max-height: 240px; overflow-y: auto; padding: 10px; border: 1px solid #dce5f0; border-radius: 9px; background: #eef4f1; display: grid; gap: 8px; }
.emp-chat-bubble { width: fit-content; max-width: 84%; padding: 8px 10px; border-radius: 10px 10px 10px 3px; background: #fff; box-shadow: 0 1px 3px rgba(20,40,70,.08); }.emp-chat-bubble.outbound { justify-self: end; border-radius: 10px 10px 3px 10px; background: #d9f7e6; }
.emp-chat-bubble p { font-size: 13px; color: #25324a; white-space: pre-wrap; }.emp-chat-bubble small { color: #748098; font-size: 10px; }.emp-chat-empty { color: #748098; font-size: 12px; text-align: center; }
.emp-message-actions { display: flex; justify-content: flex-end; gap: 8px; }
.emp-detail-tabs { display: flex; border-bottom: 1px solid #e1e6ee; }
.emp-detail-tabs button { flex: 1; padding: 10px 3px; border: 0; border-bottom: 2px solid transparent; background: none; color: #67738b; cursor: pointer; }
.emp-detail-tabs button.active { color: #0867da; border-bottom-color: #1673e8; font-weight: 700; }
.emp-tab-pane { display: none; gap: 12px; }.emp-tab-pane.active { display: grid; }
.emp-overview-cards { display: grid; gap: 9px; }
.emp-overview-cards > div { padding: 11px 12px; border: 1px solid #e0e5ed; border-radius: 8px; display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; }
.emp-overview-cards span:first-child { color: #3f4a63; font-size: 12px; }.emp-overview-cards strong { font-size: 13px; }.emp-overview-cards small { grid-column: 1 / -1; color: #78849a; }
.emp-detail-card { padding: 13px; border: 1px solid #dde3ed; border-radius: 9px; display: grid; gap: 11px; }.emp-detail-card textarea { resize: vertical; padding: 9px; border: 1px solid #ccd5e4; border-radius: 8px; }.btn.full { justify-content: center; width: 100%; }
.email-composer input,.email-composer textarea { width: 100%; padding: 9px; border: 1px solid #cbd7e7; border-radius: 8px; background: #fff; }.emp-template-row { display: flex; flex-wrap: wrap; gap: 6px; }.emp-template-row .btn { min-height: 30px; padding: 4px 8px; font-size: 11px; }.emp-email-history { padding: 9px 0; border-bottom: 1px solid #e6eaf0; display: grid; gap: 3px; }.emp-email-history small { color: #77849b; }.emp-email-history p { color: #4f5d75; white-space: pre-wrap; font-size: 12px; }
.emp-section-title { display: flex; justify-content: space-between; align-items: center; }.emp-section-title span { color: #75829b; font-size: 12px; }
.emp-activity { display: grid; gap: 12px; }.emp-activity-item { display: grid; grid-template-columns: 10px 1fr; gap: 9px; }.emp-activity-item i { width: 9px; height: 9px; border-radius: 50%; background: #2479e6; margin-top: 5px; }.emp-activity-item small { margin-left: 6px; color: #8290a8; }.emp-activity-item p { color: #65718a; font-size: 12px; }
.emp-progress { padding: 10px 14px; border: 1px solid #e0e5ed; border-radius: 9px; background: #fff; display: grid; grid-template-columns: 170px minmax(180px, 1fr) 45px 130px; gap: 14px; align-items: center; font-size: 12px; color: #64718a; }
.emp-progress-title { display: grid; }.emp-progress-title strong { color: #1e2b48; font-size: 13px; }.emp-progress-track { width: 100%; height: 9px; border: 0; border-radius: 5px; overflow: hidden; background: #e7ebf2; }.emp-progress-track::-webkit-progress-bar { background: #e7ebf2; border-radius: 5px; }.emp-progress-track::-webkit-progress-value { background: #1771df; border-radius: 5px; }.emp-progress-track::-moz-progress-bar { background: #1771df; border-radius: 5px; }
@media (min-width: 1200px) { .emp-app:has(.emp-detail.open) .emp-workspace { padding-right: 410px; }.emp-detail { top: 0; box-shadow: none; } }
@media (max-width: 1250px) { .emp-queue-layout { grid-template-columns: 1fr; }.emp-priorities { grid-template-columns: repeat(3, 1fr); }.emp-priorities .emp-card-head,.emp-priorities .emp-goal { grid-column: 1 / -1; } }
@media (max-width: 1100px) { .emp-kpis { grid-template-columns: repeat(2, 1fr); }.emp-date { display: none; }.emp-insights { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .emp-app { grid-template-columns: 1fr; }.emp-sidebar { display: none; }.emp-topbar { height: auto; padding: 10px 12px; flex-wrap: wrap; }.emp-topbar .emp-search { order: 3; flex-basis: 100%; max-width: none; }.emp-user { margin-left: auto; }
  .emp-main { padding: 15px 12px 28px; }.emp-title { align-items: flex-start; }.emp-title h1 { font-size: 23px; }.emp-title .btn { padding-inline: 10px; }
  .emp-kpis { grid-template-columns: repeat(2, 1fr); }.emp-kpi { min-height: 100px; padding: 11px; }.emp-kpi-icon { width: 38px; height: 38px; }.emp-kpi strong { font-size: 23px; }
  .emp-filters { grid-template-columns: 1fr 1fr; }.emp-inline-search { grid-column: 1 / -1; }.emp-table { min-width: 940px; }.emp-detail { width: 100%; }.emp-table-foot { gap: 10px; }.emp-priorities { grid-template-columns: 1fr; }.emp-priorities .emp-card-head,.emp-priorities .emp-goal { grid-column: auto; }.emp-week-chart { gap: 5px; padding-inline: 0; }.emp-insight-card { padding: 12px; }.emp-title-actions { flex-direction: column-reverse; }
  .emp-progress { grid-template-columns: 1fr; gap: 7px; }
}
@media (max-width: 430px) { .emp-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }.emp-kpi { display: grid; grid-template-columns: auto 1fr; }.emp-kpi small { grid-column: 1 / -1; }.emp-contact-actions { grid-template-columns: 1fr 1fr; } }

/* Connect-an-ad-account steps and the snippet to copy. */
.steps { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.code { font: 0.82rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 0.4rem 0.6rem; overflow-wrap: anywhere; min-width: 0; }
.modal textarea { width: 100%; font: 0.8rem/1.4 ui-monospace, Consolas, monospace; background: var(--surface-2); color: var(--ink); border: 1px solid var(--border); border-radius: 8px; padding: 0.5rem; }
