:root {
  --midnight: #0b1020;
  --midnight-2: #12192a;
  --midnight-3: #1a2438;
  --canvas: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f9fafc;
  --text: #151a25;
  --text-soft: #667085;
  --text-faint: #8a94a6;
  --border: #e2e7ef;
  --border-strong: #d4dbe7;
  --blue: #2f5bff;
  --blue-hover: #2448db;
  --blue-soft: #eef2ff;
  --mint: #16b98a;
  --mint-dark: #087e60;
  --mint-soft: #eafaf4;
  --warning: #b66a0a;
  --warning-soft: #fff6e8;
  --danger: #c93645;
  --danger-soft: #fff0f2;
  --shadow-float: 0 20px 60px rgba(11, 16, 32, 0.18);
  --font-display: "Instrument Sans", "Segoe UI", sans-serif;
  --font-ui: "Inter", "Segoe UI", sans-serif;
  --sidebar: 248px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--canvas); color: var(--text); font: 13px/1.5 var(--font-ui); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(47, 91, 255, 0.28); outline-offset: 2px; }
button:disabled { cursor: not-allowed; opacity: .55; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.025em; }
svg { display: block; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.hidden { display: none !important; }
.align-right { text-align: right !important; }
.positive { color: var(--mint-dark) !important; }
.negative { color: var(--danger) !important; }

.app-shell { min-height: 100dvh; }
.auth-loading .app-shell, .auth-required .app-shell { display: none; }
.auth-ready .auth-screen { display: none; }
.auth-screen { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 18% 12%, rgba(47,91,255,.14), transparent 34%), radial-gradient(circle at 82% 78%, rgba(22,185,138,.1), transparent 30%), #080d1a; }
.auth-card { width: min(100%, 430px); padding: 38px; border: 1px solid rgba(255,255,255,.1); border-radius: 24px; background: rgba(17,24,43,.94); box-shadow: 0 32px 80px rgba(0,0,0,.38); color: #f7f9ff; }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 34px; }
.auth-brand .signal-mark { width: 38px; height: 38px; }
.auth-brand > div:last-child { display: flex; align-items: baseline; gap: 4px; font-size: 22px; letter-spacing: -.04em; }
.auth-brand strong { font-family: var(--font-display); font-size: 25px; }
.auth-brand span { color: #6d88ff; font-weight: 700; }
.auth-card h1 { margin: 8px 0 10px; font: 700 30px/1.12 var(--font-display); letter-spacing: -.045em; }
.auth-card > p { margin: 0 0 26px; color: #aab4ca; font-size: 14px; }
.auth-card form { display: grid; gap: 15px; }
.auth-card label { display: grid; gap: 7px; color: #dce3f2; font-size: 12px; font-weight: 700; }
.auth-card input { width: 100%; height: 48px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 0 14px; background: #0d1425; color: #fff; outline: none; }
.auth-card input:focus { border-color: #6d88ff; box-shadow: 0 0 0 3px rgba(109,136,255,.14); }
.auth-card .primary { height: 48px; margin-top: 4px; }
.auth-error { min-height: 18px; margin: -4px 0 !important; color: #ff9da8 !important; font-size: 12px !important; }
.auth-security { display: flex; align-items: flex-start; gap: 9px; margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); color: #8793aa; font-size: 11px; }
.auth-security .icon { flex: 0 0 auto; color: #41d2a5; }
.integration-readiness { display: grid; gap: 8px; margin: 0 0 18px; }
.integration-readiness > div { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); }
.integration-readiness .live-dot { position: static; flex: 0 0 auto; }
.integration-readiness p { display: grid; gap: 2px; }
.integration-readiness strong { font-size: 12px; }
.integration-readiness small { color: var(--text-soft); font-size: 11px; }
.sidebar-footer { width: 100%; border: 0; text-align: left; color: inherit; cursor: pointer; }
.sidebar-footer:hover { background: rgba(255,255,255,.05); }
@media (max-width: 520px) { .auth-screen { padding: 14px; } .auth-card { padding: 28px 22px; border-radius: 20px; } .auth-card h1 { font-size: 26px; } }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; width: var(--sidebar); height: 100dvh; padding: 24px 16px 18px; background: var(--midnight); color: #fff; display: flex; flex-direction: column; overflow-y: auto; }
.main-content { min-width: 0; min-height: 100dvh; margin-left: var(--sidebar); overflow-x: clip; background: var(--canvas); }
.sidebar-scrim { display: none; position: fixed; inset: 0; z-index: 40; border: 0; background: rgba(11, 16, 32, .58); }

.brand-lockup { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 6px; }
.signal-mark { width: 40px; height: 38px; display: grid; place-items: center; }
.signal-mark svg { width: 38px; height: 38px; fill: none; stroke: #7790ff; stroke-width: 2.6; stroke-linecap: round; }
.signal-mark svg path:last-child { stroke: var(--mint); }
.brand-lockup > div:last-child { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 5px; }
.brand-lockup strong { font: 700 20px/1 var(--font-display); letter-spacing: -.04em; }
.brand-lockup span { color: #9eacf5; font: 600 11px/1 var(--font-display); letter-spacing: .02em; }
.brand-lockup small { grid-column: 1 / -1; margin-top: 6px; color: #6f7e99; font-size: 10px; font-weight: 700; letter-spacing: .14em; }

.workspace-switcher { width: 100%; margin: 24px 0 22px; padding: 11px; border: 1px solid #28344b; border-radius: 13px; background: var(--midnight-2); color: #fff; display: flex; align-items: center; gap: 10px; cursor: pointer; text-align: left; transition: border-color .18s, background .18s; }
.workspace-switcher:hover { border-color: #425274; background: #161f33; }
.workspace-logo { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #26334c; color: #b9c4ff; font: 700 11px var(--font-display); }
.workspace-copy { flex: 1; display: flex; min-width: 0; flex-direction: column; }
.workspace-copy small { color: #7f8da7; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.workspace-copy strong { margin-top: 1px; font: 600 13px var(--font-display); }
.workspace-switcher .icon { width: 15px; color: #7f8da7; transform: rotate(90deg); }

#main-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-label { padding: 0 12px 7px; color: #63718d; font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.nav-label-spaced { margin-top: 14px; }
.nav-item { position: relative; width: 100%; min-height: 43px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: #a9b5cb; display: flex; align-items: center; gap: 12px; cursor: pointer; text-align: left; font-size: 12px; font-weight: 500; transition: color .16s, background .16s; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.045); }
.nav-item.active { color: #fff; background: #1c2740; box-shadow: inset 3px 0 var(--blue); }
.nav-item.active .icon { color: #7f9aff; }
.nav-item .icon { width: 17px; color: #71809d; }
.nav-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 10px; }
.sidebar-footer { margin-top: auto; padding: 18px 7px 0; border-top: 1px solid #263249; display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #263654; color: #cbd5ff; font-size: 11px; font-weight: 700; }
.sidebar-footer > div:nth-child(2) { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.sidebar-footer strong { font-size: 11px; }
.sidebar-footer span:not(.live-dot) { color: #7685a1; font-size: 10px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(22, 185, 138, .12); }

.topbar { position: sticky; top: 0; z-index: 30; min-height: 88px; padding: 15px 32px; border-bottom: 1px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.page-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.page-heading h1 { margin-top: 2px; font-size: 25px; line-height: 1.1; }
.page-heading p { margin-top: 3px; color: var(--text-soft); font-size: 11px; }
.breadcrumb { display: flex; align-items: center; gap: 7px; color: var(--text-faint); font-size: 10px; font-weight: 600; }
.breadcrumb b { color: #bbc3d1; font-weight: 500; }
.breadcrumb span:last-child { color: var(--blue); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.mobile-menu { display: none !important; }
.search { min-height: 42px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); display: flex; align-items: center; gap: 8px; color: var(--text-faint); }
.search:focus-within { border-color: #9db0ff; box-shadow: 0 0 0 3px rgba(47,91,255,.08); background: #fff; }
.search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; }
.search input::placeholder { color: #909aac; }
.global-search { width: min(21vw, 260px); }
.period-button { min-height: 42px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; display: grid; grid-template-columns: 18px auto; column-gap: 7px; align-items: center; cursor: pointer; text-align: left; }
.period-button:hover { border-color: var(--border-strong); background: var(--surface-soft); }
.period-button .icon { grid-row: 1 / 3; color: var(--text-soft); }
.period-button span { font-size: 11px; font-weight: 600; line-height: 1.2; }
.period-button small { color: var(--text-faint); font-size: 9px; line-height: 1.2; }
.primary, .secondary, .text-button, .icon-button { border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: background .16s, border-color .16s, transform .16s; }
.primary { min-height: 42px; padding: 0 15px; border-radius: 10px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; box-shadow: 0 7px 18px rgba(47,91,255,.18); }
.primary:hover { background: var(--blue-hover); transform: translateY(-1px); }
.primary .icon, .secondary .icon { width: 16px; }
.primary.full { width: 100%; margin-top: 4px; }
.secondary { min-height: 40px; padding: 0 13px; border: 1px solid var(--border-strong); border-radius: 9px; background: #fff; color: #344054; font-size: 11px; font-weight: 600; box-shadow: none; }
.secondary:hover { background: var(--surface-soft); border-color: #bdc7d7; }
.secondary.small { min-height: 36px; }
.text-button { padding: 5px 0; background: transparent; color: var(--blue); font-size: 11px; font-weight: 700; }
.text-button:hover { color: var(--blue-hover); }
.text-button .icon { width: 15px; }
.icon-button { width: 40px; height: 40px; padding: 0; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--text-soft); }
.icon-button:hover { color: var(--text); background: var(--surface-soft); }

.view { display: none; width: 100%; min-width: 0; max-width: 100%; padding: 24px 32px 40px; animation: view-in .22s ease; }
.view.active { display: block; }
@keyframes view-in { from { opacity: .4; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.panel, .metric-strip { min-width: 0; max-width: 100%; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.panel { padding: 20px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.panel-head h2 { font-size: 17px; line-height: 1.25; }
.panel-head p { margin-top: 4px; color: var(--text-soft); font-size: 11px; }
.section-kicker { display: block; margin-bottom: 6px; color: var(--blue); font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.section-kicker.mint { color: var(--mint-dark); }
.count-badge { min-width: 27px; height: 27px; padding: 0 8px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-size: 11px; font-weight: 700; }

.signal-banner { min-height: 58px; margin-bottom: 16px; padding: 11px 14px; border: 1px solid #d6deff; border-radius: 13px; background: linear-gradient(100deg, #f1f4ff, #f8fbff 65%, #eefbf7); display: flex; align-items: center; gap: 11px; }
.signal-banner .signal-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--blue); color: #fff; display: grid; place-items: center; box-shadow: 0 7px 18px rgba(47,91,255,.18); }
.signal-banner .signal-icon .icon { width: 18px; }
.signal-banner .signal-copy { min-width: 0; flex: 1; }
.signal-banner strong { display: block; font: 700 12px var(--font-display); }
.signal-banner p { margin-top: 2px; color: #536078; font-size: 11px; }
.signal-banner .signal-actions { display: flex; align-items: center; gap: 8px; }
.signal-banner .signal-time { color: var(--text-faint); font-size: 10px; white-space: nowrap; }

.metric-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; overflow: hidden; }
.metric-item { position: relative; min-height: 116px; padding: 18px 19px; }
.metric-item + .metric-item { border-left: 1px solid var(--border); }
.metric-top { min-height: 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.metric-label { color: var(--text-soft); font-size: 10px; font-weight: 600; }
.metric-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.metric-pulse.mint { background: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }
.metric-pulse.warning { background: #e79a32; box-shadow: 0 0 0 4px var(--warning-soft); }
.metric-value { margin-top: 9px; font: 700 clamp(22px, 2vw, 28px)/1 var(--font-display); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.metric-note { margin-top: 9px; color: var(--text-soft); font-size: 10px; }
.metric-note strong { color: var(--mint-dark); font-weight: 700; }
.metric-note .down { color: var(--danger); }

.dashboard-grid { display: grid; gap: 16px; margin-bottom: 16px; }
.dashboard-primary { grid-template-columns: minmax(0, 1.45fr) minmax(320px, .8fr); }
.dashboard-secondary { grid-template-columns: minmax(300px, .76fr) minmax(0, 1.24fr); }
.pipeline-summary, .priorities-panel { min-height: 348px; }
.funnel-bars { display: flex; flex-direction: column; gap: 14px; }
.funnel-row { display: grid; grid-template-columns: 106px minmax(100px, 1fr) 78px 88px; align-items: center; gap: 12px; }
.funnel-label { font-size: 11px; font-weight: 600; }
.bar-track { position: relative; height: 7px; border-radius: 8px; background: #edf0f5; overflow: hidden; }
.bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #6b87ff); }
.funnel-count, .funnel-value { color: var(--text-soft); font-size: 10px; text-align: right; font-variant-numeric: tabular-nums; }
.funnel-value { color: var(--text); font-weight: 600; }
.priority-list { display: flex; flex-direction: column; }
.priority-item { min-height: 66px; padding: 11px 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; }
.priority-item:first-child { border-top: 0; padding-top: 0; }
.priority-symbol { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--warning-soft); color: var(--warning); }
.priority-symbol.blue { background: var(--blue-soft); color: var(--blue); }
.priority-symbol.mint { background: var(--mint-soft); color: var(--mint-dark); }
.priority-symbol .icon { width: 16px; }
.priority-copy strong { display: block; font-size: 11px; }
.priority-copy span { display: block; margin-top: 2px; color: var(--text-soft); font-size: 10px; }
.priority-item button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: var(--surface-soft); color: var(--blue); display: grid; place-items: center; cursor: pointer; }
.priority-item button .icon { width: 15px; }

.acquisition-panel { position: relative; min-height: 250px; overflow: hidden; background: var(--midnight-2); color: #fff; border-color: var(--midnight-2); }
.acquisition-panel::after { content: ""; position: absolute; right: -50px; bottom: -80px; width: 200px; height: 200px; border: 1px solid #3a54a5; border-radius: 50%; }
.acquisition-panel .section-kicker { color: #8ea3ff; }
.acquisition-panel h2 { max-width: 340px; font-size: 19px; line-height: 1.22; }
.acquisition-panel p { position: relative; z-index: 1; margin-top: 10px; max-width: 390px; color: #aeb9ce; font-size: 11px; }
.acquisition-stats { position: relative; z-index: 1; margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.acquisition-stats div { padding-left: 12px; border-left: 2px solid var(--blue); }
.acquisition-stats div:last-child { border-color: var(--mint); }
.acquisition-stats strong { display: block; font: 700 23px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.acquisition-stats span { display: block; margin-top: 5px; color: #9ba8bf; font-size: 10px; }
.task-preview-panel { min-height: 250px; }
.task-preview { min-height: 48px; padding: 8px 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 10px; }
.task-preview:first-child { border-top: 0; padding-top: 0; }
.task-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.task-dot.high { background: var(--danger); }
.task-dot.medium { background: #e79a32; }
.task-dot.low { background: var(--blue); }
.task-preview strong { display: block; font-size: 11px; }
.task-preview span { display: block; margin-top: 2px; color: var(--text-soft); font-size: 10px; }
.task-preview time { padding: 4px 7px; border-radius: 7px; background: var(--surface-soft); color: var(--text-soft); font-size: 9px; font-style: normal; }
.task-preview time.overdue { background: var(--danger-soft); color: var(--danger); font-weight: 700; }

.recent-panel { padding: 0; overflow: hidden; }
.recent-panel .panel-head { padding: 20px 20px 0; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { height: 40px; padding: 0 16px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-soft); color: #69758a; text-align: left; font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
td { height: 59px; padding: 9px 16px; border-bottom: 1px solid var(--border); color: #344054; font-size: 11px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcfe; }
.client-cell { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.avatar { width: 31px; height: 31px; border-radius: 10px; display: grid; place-items: center; background: #edf1f7; color: #53657f; font-size: 9px; font-weight: 700; }
.client-cell strong { display: block; color: var(--text); font-size: 11px; }
.client-cell span { display: block; margin-top: 1px; color: var(--text-faint); font-size: 9px; }
.stage-badge, .lead-status, .recommendation { display: inline-flex; align-ite…2114 tokens truncated…ht: calc(100dvh - 137px); min-height: 620px; padding: 0; overflow: hidden; display: grid; grid-template-columns: 296px minmax(400px, 1fr) 305px; }
.conversation-list { min-width: 0; border-right: 1px solid var(--border); background: #fbfcfe; overflow-y: auto; }
.inbox-list-head { min-height: 67px; padding: 13px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.inbox-list-head h2 { font-size: 16px; }
.inbox-list-head span { display: block; margin-top: 2px; color: var(--text-soft); font-size: 9px; }
.inbox-list-head .icon-button { width: 34px; height: 34px; }
.inbox-search { height: 38px; margin: 10px 12px 0; padding: 0 10px; border: 1px solid var(--border); border-radius: 9px; background: #fff; display: flex; align-items: center; gap: 7px; }
.inbox-search .icon { width: 15px; color: var(--text-faint); }
.inbox-search input { width: 100%; border: 0; outline: 0; font-size: 11px; }
.inbox-tabs { padding: 10px 11px; display: flex; gap: 2px; }
.inbox-tabs button { min-height: 30px; padding: 0 8px; font-size: 9px; }
.conversation-item { position: relative; width: 100%; min-height: 75px; padding: 11px 12px; border: 0; border-top: 1px solid #edf0f4; background: transparent; display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 9px; cursor: pointer; text-align: left; }
.conversation-item:hover { background: #f4f6fa; }
.conversation-item.active { background: var(--blue-soft); box-shadow: inset 3px 0 var(--blue); }
.conversation-avatar { position: relative; width: 39px; height: 39px; border-radius: 12px; display: grid; place-items: center; background: #e8edf5; color: #4d5e78; font-size: 10px; font-weight: 700; }
.channel-dot { position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; border: 2px solid #fff; border-radius: 50%; background: #1caf73; color: #fff; display: grid; place-items: center; font-size: 7px; font-style: normal; font-weight: 700; }
.conversation-copy { min-width: 0; }
.conversation-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.conversation-top strong { overflow: hidden; color: var(--text); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.conversation-top time { color: var(--text-faint); font-size: 8px; white-space: nowrap; }
.conversation-copy p { margin-top: 4px; overflow: hidden; color: var(--text-soft); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.unread-pill { min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 8px; font-weight: 700; }

.chat-pane { min-width: 0; background: #f4f6fa; display: flex; flex-direction: column; }
.chat-head { min-height: 67px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: #fff; display: flex; align-items: center; gap: 10px; }
.chat-head > div:nth-child(3) { min-width: 0; flex: 1; }
.chat-head strong { display: block; font-size: 11px; }
.chat-head span { display: block; margin-top: 2px; color: var(--text-soft); font-size: 9px; }
.chat-actions { margin-left: auto; display: flex; gap: 6px; }
.chat-actions button { min-height: 34px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text-soft); cursor: pointer; font-size: 9px; font-weight: 600; }
.chat-actions .profile-button { display: none; }
.chat-back { display: none; }
.messages { flex: 1; padding: 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 9px; }
.message { max-width: min(76%, 520px); padding: 10px 12px 8px; border: 1px solid var(--border); border-radius: 12px 12px 12px 3px; background: #fff; color: #2f394a; font-size: 11px; line-height: 1.55; box-shadow: 0 3px 12px rgba(11,16,32,.035); }
.message.out { align-self: flex-end; border-color: #d9e0ff; border-radius: 12px 12px 3px 12px; background: #edf1ff; }
.message time { display: block; margin-top: 4px; color: var(--text-faint); font-size: 8px; text-align: right; }
.ai-suggestion { margin: 0 14px 10px; padding: 10px; border: 1px solid #cdeee4; border-radius: 11px; background: var(--mint-soft); display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 9px; }
.ai-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--mint); color: #fff; display: grid; place-items: center; }
.ai-mark .icon { width: 15px; }
.ai-suggestion p { color: #3d6258; font-size: 9px; }
.ai-suggestion p strong { color: var(--mint-dark); }
.ai-suggestion button { min-height: 28px; padding: 0 8px; border: 0; border-radius: 7px; background: #fff; color: var(--mint-dark); cursor: pointer; font-size: 8px; font-weight: 700; }
.composer { min-height: 68px; padding: 10px 13px; border-top: 1px solid var(--border); background: #fff; display: grid; grid-template-columns: 1fr 38px; align-items: center; gap: 8px; }
.composer textarea { width: 100%; min-height: 43px; max-height: 100px; padding: 11px 12px; resize: none; border: 1px solid var(--border); border-radius: 10px; outline: 0; color: var(--text); font-size: 11px; }
.composer textarea:focus { border-color: #9db0ff; box-shadow: 0 0 0 3px rgba(47,91,255,.08); }
.composer button { width: 38px; height: 38px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; display: grid; place-items: center; cursor: pointer; }
.composer button:hover { background: var(--blue-hover); }
.composer button .icon { width: 17px; }

.contact-pane { min-width: 0; border-left: 1px solid var(--border); background: #fff; overflow-y: auto; }
.profile { padding: 17px; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.profile .conversation-avatar { grid-row: 1 / 3; }
.profile h3 { font-size: 12px; }
.profile p { color: var(--text-soft); font-size: 9px; }
.profile-close { display: none; grid-column: 3; grid-row: 1 / 3; width: 34px; height: 34px; }
.contact-section { padding: 16px; border-bottom: 1px solid var(--border); }
.contact-section h4 { margin: 0 0 11px; color: var(--text-faint); font-size: 8px; letter-spacing: .11em; }
.qualification-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.qualification-score { margin: 12px 0; padding: 12px; border-radius: 11px; background: var(--surface-soft); display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 10px; }
.qualification-score > strong { width: 46px; height: 46px; border: 4px solid var(--score-color, var(--blue)); border-radius: 50%; display: grid; place-items: center; font: 700 15px var(--font-display); }
.qualification-score span { color: var(--text-soft); font-size: 9px; }
.qualification-score span strong { display: block; margin-bottom: 2px; color: var(--text); font-size: 10px; }
.score-factors { margin-bottom: 12px; }
.score-factor { display: grid; grid-template-columns: 72px 1fr 25px; align-items: center; gap: 7px; margin-top: 7px; }
.score-factor span { color: var(--text-soft); font-size: 8px; }
.score-factor i { height: 4px; border-radius: 4px; background: #e8ecf2; overflow: hidden; }
.score-factor i::after { content: ""; display: block; width: var(--factor); height: 100%; border-radius: inherit; background: var(--blue); }
.score-factor b { color: var(--text-soft); font-size: 8px; text-align: right; }
.detail-row { min-height: 34px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.detail-row span { color: var(--text-soft); font-size: 9px; }
.detail-row strong { color: #344054; font-size: 9px; text-align: right; }
.source-card { margin-top: 11px; padding: 10px; border-radius: 9px; background: var(--blue-soft); }
.source-card span, .source-card strong { display: block; }
.source-card span { color: #6c7caa; font-size: 8px; }
.source-card strong { margin-top: 3px; color: var(--blue-hover); font-size: 9px; }
.qualification-actions { display: grid; grid-template-columns: 1fr auto; gap: 7px; margin-top: 11px; }
.qualification-actions button, .contact-action { min-height: 35px; border: 1px solid var(--border-strong); border-radius: 8px; background: #fff; color: #344054; cursor: pointer; font-size: 9px; font-weight: 600; }
.qualification-actions button:first-child { border-color: #bdcaff; color: var(--blue); }
.qualification-actions button.bad { color: var(--danger); }
.contact-action { width: 100%; margin-top: 7px; }
.contact-action.accent { border: 0; background: var(--blue); color: #fff; }
.integration-notice { margin: 14px; padding: 11px; border: 1px solid #cdeee4; border-radius: 9px; background: var(--mint-soft); color: #497165; font-size: 8px; }
.integration-notice strong { display: block; margin-bottom: 3px; color: var(--mint-dark); font-size: 9px; }

.large.search { width: min(460px, 100%); background: #fff; }
.task-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 16px; }
.task-row { min-height: 61px; padding: 9px 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: 29px 1fr auto; align-items: center; gap: 10px; }
.task-row:first-child { border-top: 0; }
.task-row.done { opacity: .58; }
.task-check { width: 27px; height: 27px; border: 1px solid var(--border-strong); border-radius: 8px; background: #fff; color: #fff; display: grid; place-items: center; cursor: pointer; }
.task-check.done { border-color: var(--mint); background: var(--mint); }
.task-check .icon { width: 14px; }
.task-info strong, .task-info span { display: block; }
.task-info strong { font-size: 11px; }
.task-info span { margin-top: 3px; color: var(--text-soft); font-size: 9px; }
.due { min-height: 25px; padding: 0 8px; border-radius: 7px; background: var(--surface-soft); color: var(--text-soft); display: inline-flex; align-items: center; font-size: 9px; font-weight: 600; }
.due.overdue { background: var(--danger-soft); color: var(--danger); }
.due.today { background: var(--warning-soft); color: var(--warning); }
.task-stats h2 { font-size: 16px; }
.task-stat-number { margin: 16px 0 5px; font: 700 38px/1 var(--font-display); letter-spacing: -.05em; }
.task-stat-caption { color: var(--text-soft); font-size: 10px; }
.progress-track { height: 8px; margin: 17px 0; border-radius: 8px; background: #e9edf3; overflow: hidden; }
.progress-track i { display: block; width: var(--progress); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--mint)); }
.legend-row { min-height: 38px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; color: var(--text-soft); font-size: 10px; }
.legend-row strong { color: var(--text); font-size: 10px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; padding: 20px; background: rgba(11,16,32,.58); backdrop-filter: blur(5px); display: none; align-items: center; justify-content: center; }
.modal-backdrop.open { display: flex; }
.modal { position: relative; width: min(520px, 100%); max-height: calc(100dvh - 40px); padding: 25px; border: 1px solid rgba(255,255,255,.3); border-radius: 18px; background: #fff; box-shadow: var(--shadow-float); overflow-y: auto; animation: modal-in .2s ease; }
.modal-wide { width: min(650px, 100%); }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 15px; right: 15px; width: 35px; height: 35px; }
.modal-head { padding-right: 36px; margin-bottom: 20px; }
.modal-head h2 { font-size: 23px; }
.modal-head p { margin-top: 5px; color: var(--text-soft); font-size: 11px; }
form { display: grid; gap: 13px; }
form label { color: #475467; display: grid; gap: 6px; font-size: 10px; font-weight: 600; }
input, select, textarea { min-width: 0; }
form input, form select { width: 100%; height: 43px; padding: 0 11px; border: 1px solid var(--border-strong); border-radius: 9px; outline: 0; background: #fff; color: var(--text); font-size: 11px; }
form input:focus, form select:focus { border-color: #96aaff; box-shadow: 0 0 0 3px rgba(47,91,255,.08); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.form-note { padding: 10px; border: 1px solid #cdeee4; border-radius: 9px; background: var(--mint-soft); color: #497165; display: flex; gap: 8px; font-size: 9px; }
.form-note .icon { width: 16px; color: var(--mint-dark); }
.setup-steps { margin: 2px 0 18px; }
.setup-steps > div { min-height: 61px; padding: 10px 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 10px; }
.setup-steps > div:first-child { border-top: 0; }
.setup-steps > div > span { width: 29px; height: 29px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-size: 9px; font-weight: 700; }
.setup-steps p { color: var(--text-soft); font-size: 10px; }
.setup-steps strong { display: block; margin-bottom: 2px; color: var(--text); font-size: 10px; }
.toast { position: fixed; z-index: 200; right: 22px; bottom: 22px; max-width: min(390px, calc(100vw - 32px)); padding: 12px 15px; border-radius: 10px; background: var(--midnight-2); color: #fff; box-shadow: var(--shadow-float); font-size: 10px; font-weight: 600; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: none; }
.empty { padding: 24px 10px; color: var(--text-soft); font-size: 11px; text-align: center; }

@media (max-width: 1260px) {
  .global-search { display: none; }
  .inbox-shell { grid-template-columns: 275px minmax(390px, 1fr); }
  .contact-pane { position: fixed; z-index: 70; top: 0; right: 0; bottom: 0; width: 330px; border-left: 1px solid var(--border); box-shadow: var(--shadow-float); transform: translateX(105%); transition: transform .22s ease; }
  body.contact-open .contact-pane { transform: none; }
  .chat-actions .profile-button { display: inline-flex; }
  .profile-close { display: inline-flex; }
  .dashboard-primary { grid-template-columns: minmax(0, 1.2fr) minmax(310px, .8fr); }
}

@media (max-width: 1050px) {
  .sidebar { transform: translateX(-105%); box-shadow: var(--shadow-float); transition: transform .22s ease; }
  .sidebar.open { transform: none; }
  .sidebar.open + .sidebar-scrim { display: block; }
  .main-content { margin-left: 0; }
  .mobile-menu { display: inline-flex !important; }
  .dashboard-primary, .dashboard-secondary, .media-grid, .media-grid.lower { grid-template-columns: 1fr; }
  .reason-panel { min-height: 0; }
  .task-layout { grid-template-columns: minmax(0,1fr) 280px; }
}

@media (max-width: 760px) {
  .topbar { min-height: 78px; padding: 11px 14px; }
  .topbar { gap: 8px; }
  .page-heading { min-width: 0; flex: 1; }
  .page-heading > div { min-width: 0; }
  .header-actions { flex: 0 0 auto; }
  .page-heading h1 { font-size: 21px; }
  .page-heading p { display: none; }
  .breadcrumb { font-size: 9px; }
  .period-button { display: none; }
  .primary { padding: 0 12px; }
  .header-actions .primary span { display: none; }
  .header-actions .primary { width: 40px; padding: 0; }
  .view { padding: 14px 14px 28px; }
  .signal-banner { align-items: flex-start; }
  .signal-banner .signal-actions { display: none; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .metric-item { min-height: 105px; padding: 15px; }
  .metric-item + .metric-item { border-left: 0; }
  .metric-item:nth-child(even) { border-left: 1px solid var(--border); }
  .metric-item:nth-child(n+3) { border-top: 1px solid var(--border); }
  .metric-value { font-size: 23px; }
  .panel { padding: 16px; }
  .panel-head { min-width: 0; margin-bottom: 15px; flex-wrap: wrap; }
  .panel-head > div { min-width: 0; }
  .pipeline-summary, .priorities-panel { min-height: 0; }
  .funnel-row { grid-template-columns: 80px minmax(80px,1fr) 55px; gap: 8px; }
  .funnel-value { display: none; }
  .recent-panel { padding: 0; }
  .view-toolbar { align-items: flex-start; flex-direction: column; }
  .view-toolbar .toolbar-total { padding-left: 4px; }
  .media-toolbar { flex-direction: row; align-items: center; }
  .toolbar-actions .demo-badge { display: none; }
  .integration-status span { max-width: 180px; }
  .task-layout { grid-template-columns: 1fr; }
  .task-stats { order: -1; }
  .field-grid { grid-template-columns: 1fr; }
  .modal { padding: 21px 17px; }
  .modal-head h2 { font-size: 20px; }
  .toast { right: 16px; bottom: 16px; }

  #inbox-view { padding: 0; }
  .inbox-shell { height: calc(100dvh - 78px); min-height: 0; border: 0; border-radius: 0; display: block; }
  .conversation-list, .chat-pane { width: 100%; height: 100%; }
  .chat-pane { display: none; }
  body.chat-open .conversation-list { display: none; }
  body.chat-open .chat-pane { display: flex; }
  .chat-back { display: inline-flex; width: 34px; height: 34px; }
  .chat-head { padding: 8px 10px; }
  .chat-head .conversation-avatar { width: 34px; height: 34px; }
  .chat-actions button:not(.profile-button) { display: none; }
  .chat-actions .profile-button { min-width: 34px; padding: 0 8px; }
  .messages { padding: 15px 12px; }
  .message { max-width: 88%; }
  .ai-suggestion { grid-template-columns: 27px 1fr; }
  .ai-suggestion button { grid-column: 2; justify-self: start; }
  .contact-pane { width: min(92vw, 340px); }
}

@media (max-width: 430px) {
  .metric-strip { grid-template-columns: 1fr; }
  .metric-item:nth-child(even) { border-left: 0; }
  .metric-item:nth-child(n+2) { border-top: 1px solid var(--border); }
  .metric-item { min-height: 92px; }
  .dashboard-grid { gap: 12px; margin-bottom: 12px; }
  .funnel-row { grid-template-columns: 72px minmax(60px,1fr); }
  .funnel-count { display: none; }
  .pipeline-summary .panel-head .text-button { display: none; }
  .media-toolbar .secondary { min-width: 40px; padding: 0 9px; }
  .filter-pills { width: 100%; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Piso de legibilidade: nenhuma informação operacional depende de microtexto. */
:where(
  .brand-lockup small,
  .workspace-copy small,
  .nav-label,
  .nav-count,
  .sidebar-footer span:not(.live-dot),
  .breadcrumb,
  .period-button small,
  .section-kicker,
  .signal-banner .signal-time,
  .metric-label,
  .metric-note,
  .funnel-count,
  .funnel-value,
  .priority-copy span,
  .acquisition-stats span,
  .task-preview span,
  .task-preview time,
  th,
  .avatar,
  .client-cell span,
  .stage-badge,
  .lead-status,
  .recommendation,
  .filter-pills button,
  .inbox-tabs button,
  .column-head div span,
  .column-head > span,
  .score-chip,
  .deal-card .interest,
  .deal-meta,
  .deal-footer > span,
  .integration-status span,
  .demo-badge,
  .connection-badge,
  .campaign-name strong,
  .campaign-name span,
  .reason-top,
  .reason-top strong,
  .reason-note,
  .event-row strong,
  .event-row div > span,
  .event-state,
  .insight-label,
  .insight-action,
  .inbox-list-head span,
  .conversation-avatar,
  .conversation-top strong,
  .conversation-top time,
  .conversation-copy p,
  .unread-pill,
  .chat-head span,
  .chat-actions button,
  .message time,
  .ai-suggestion p,
  .ai-suggestion button,
  .profile p,
  .contact-section h4,
  .qualification-score span,
  .qualification-score span strong,
  .score-factor span,
  .score-factor b,
  .detail-row span,
  .detail-row strong,
  .source-card span,
  .source-card strong,
  .qualification-actions button,
  .contact-action,
  .integration-notice,
  .integration-notice strong,
  .task-info span,
  .due,
  .task-stat-caption,
  .legend-row,
  .legend-row strong,
  form label,
  .form-note,
  .setup-steps > div > span,
  .setup-steps p,
  .setup-steps strong,
  .toast
) { font-size: 11px; }