:root {
  --ink: #1d2723;
  --muted: #66736d;
  --subtle: #8b9691;
  --line: #e2e7e4;
  --panel: #ffffff;
  --canvas: #f5f7f5;
  --sidebar: #16221e;
  --green: #247a55;
  --green-light: #e1f1e8;
  --amber: #b66d19;
  --amber-light: #fff0db;
  --red: #b64848;
  --blue: #3971b8;
  --radius: 8px;
  font-family: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 14px; }
body.auth-checking .app-shell { visibility: hidden; }
button, input, select { font: inherit; }
button { cursor: pointer; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }
.auth-gate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: #edf1ee; }
.auth-panel { width: min(390px, 100%); padding: 30px; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 22px 60px #15231d1f; }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 36px; }
.auth-brand > span:last-child { display: flex; flex-direction: column; }
.auth-brand strong { font: 700 16px Manrope; }.auth-brand small { color: var(--subtle); font-size: 9px; text-transform: uppercase; }
.auth-heading h1 { margin: 7px 0 4px; font: 700 24px Manrope; }.auth-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.auth-panel form { margin-top: 24px; display: grid; gap: 14px; }
.auth-panel form label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 600; }
.auth-panel form input { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 6px; padding: 0 11px; outline: 0; color: var(--ink); background: white; }
.auth-panel form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px #247a5515; }
.auth-panel form .primary-button { width: 100%; height: 42px; margin-top: 3px; }
.auth-error { margin: 0; color: var(--red); font-size: 10px; }
.auth-footnote { display: block; text-align: center; color: var(--subtle); margin-top: 20px; font-size: 9px; }
.app-shell { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100vh; }

.sidebar { position: sticky; top: 0; height: 100vh; padding: 20px 14px 14px; color: #dbe3df; background: var(--sidebar); display: flex; flex-direction: column; z-index: 30; }
.brand { padding: 0 8px 22px; display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; color: var(--sidebar); background: #b9e168; border-radius: 6px; font: 700 17px Manrope; }
.brand div:last-child { display: flex; flex-direction: column; }
.brand strong { color: white; font: 700 16px Manrope; }
.brand span { color: #8fa199; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.workspace-switcher { width: 100%; border: 1px solid #34443e; border-radius: 7px; background: #1e2d28; color: white; padding: 9px; display: grid; grid-template-columns: 30px 1fr 16px; gap: 9px; text-align: left; align-items: center; }
.workspace-switcher small, .workspace-switcher strong { display: block; }
.workspace-switcher small { color: #91a29a; font-size: 10px; }
.workspace-switcher strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; margin-top: 1px; }
.workspace-switcher svg { width: 15px; }
.partner-avatar { width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; color: #173127; font-size: 10px; font-weight: 700; flex: none; }
.partner-avatar.all { background: #b9e168; }
.workspace-menu { position: absolute; top: 117px; left: 14px; width: 200px; z-index: 10; padding: 5px; background: white; border: 1px solid var(--line); box-shadow: 0 12px 30px #07130e33; border-radius: 7px; color: var(--ink); }
.workspace-option { border: 0; width: 100%; background: transparent; border-radius: 5px; padding: 8px; display: flex; align-items: center; gap: 9px; text-align: left; color: var(--ink); }
.workspace-option:hover { background: #f1f4f2; }
.workspace-option strong { font-size: 12px; }
nav { margin-top: 18px; }
.nav-item { width: 100%; height: 38px; border: 0; color: #9fb0a8; background: transparent; display: flex; align-items: center; gap: 11px; padding: 0 10px; border-radius: 6px; margin: 2px 0; font-size: 13px; }
.nav-item:hover { color: white; background: #1d2c27; }
.nav-item.active { color: white; background: #2b3c36; box-shadow: inset 3px 0 #b9e168; }
.nav-item svg { width: 17px; }
.nav-count { margin-left: auto; min-width: 22px; padding: 1px 6px; border-radius: 10px; background: #3c4c46; color: #c9d3ce; font-size: 10px; text-align: center; }
.intelligence-count { background: #b9e168; color: #203127; }
.nav-label { padding: 21px 10px 7px; color: #64786f; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.sidebar-footer { margin-top: auto; border-top: 1px solid #2c3d36; padding-top: 12px; }
.profile { border: 0; background: transparent; color: white; display: grid; grid-template-columns: 32px 1fr 18px; align-items: center; gap: 9px; width: 100%; padding: 6px; text-align: left; }
.profile-avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #d6a14a; color: #392b13; font-size: 10px; font-weight: 700; }
.profile strong, .profile small { display: block; }
.profile strong { font-size: 12px; }.profile small { color: #81958c; font-size: 10px; margin-top: 2px; }

main { min-width: 0; }
.topbar { height: 68px; padding: 0 28px; background: white; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; }
.breadcrumb span, .breadcrumb strong { display: block; }
.breadcrumb span { color: var(--subtle); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.breadcrumb strong { font: 700 16px Manrope; margin-top: 2px; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.search { width: 310px; height: 36px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 6px; padding: 0 9px; color: var(--subtle); }
.search input { width: 100%; border: 0; outline: 0; color: var(--ink); font-size: 12px; }
.search kbd { border: 1px solid var(--line); border-radius: 4px; padding: 2px 5px; color: var(--subtle); background: #f7f8f7; font: 10px inherit; white-space: nowrap; }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; background: white; border: 1px solid var(--line); border-radius: 6px; color: #53615a; position: relative; }
.notification-wrap { position: relative; }
.notification-count { position: absolute; min-width: 16px; height: 16px; padding: 0 4px; display: grid; place-items: center; background: var(--red); color: white; border-radius: 8px; right: -6px; top: -6px; border: 2px solid white; font-size: 8px; font-weight: 700; }
.notification-panel { position: absolute; top: 44px; right: 0; width: 330px; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 40px rgba(20,38,31,.16); overflow: hidden; z-index: 50; }
.notification-panel header { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.notification-panel header strong, .notification-panel header small { display: block; }
.notification-panel header small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.notification-item { width: 100%; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); background: white; display: grid; grid-template-columns: 7px 1fr; gap: 10px; text-align: left; }
.notification-item > span { width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: var(--green); }
.notification-item.read > span { background: #cbd4cf; }
.notification-item strong, .notification-item small { display: block; }
.notification-item strong { font-size: 11px; }.notification-item small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.notification-empty { padding: 25px 16px; color: var(--muted); font-size: 10px; text-align: center; }
.primary-button, .secondary-button { height: 36px; border-radius: 6px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 600; font-size: 12px; }
.primary-button { background: var(--green); color: white; border: 1px solid var(--green); }
.primary-button:hover { background: #1b6848; }
.secondary-button { border: 1px solid var(--line); color: var(--ink); background: white; }
.mobile-menu { display: none; }
.content { padding: 24px 28px 40px; max-width: 1600px; margin: auto; }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.page-heading h1 { margin: 0; font: 700 23px Manrope; }
.page-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.heading-actions, .filter-row { display: flex; gap: 8px; align-items: center; }
.select-control { height: 34px; border: 1px solid var(--line); background: white; border-radius: 6px; padding: 0 30px 0 10px; color: #4b5952; font-size: 11px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: white; border-radius: var(--radius); margin-bottom: 20px; }
.metric { min-height: 114px; padding: 18px 20px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric-label { color: var(--muted); font-size: 11px; display: flex; align-items: center; justify-content: space-between; }
.metric-label svg { width: 15px; color: var(--subtle); }
.metric strong { display: block; font: 700 24px Manrope; margin: 10px 0 6px; }
.metric small { color: var(--subtle); font-size: 10px; }
.delta { color: var(--green); font-weight: 700; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .7fr); gap: 18px; }
.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel + .panel { margin-top: 18px; }
.panel-header { min-height: 57px; padding: 0 17px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-header h2 { margin: 0; font: 700 14px Manrope; }
.panel-header p { margin: 3px 0 0; font-size: 10px; color: var(--muted); }
.text-button { background: none; color: var(--green); font-weight: 700; border: 0; font-size: 11px; padding: 6px; }

.pipeline-bars { padding: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 15px; min-height: 223px; align-items: end; }
.pipeline-bars.single { grid-template-columns: minmax(150px, 220px); }
.bar-column { min-width: 0; height: 180px; display: flex; flex-direction: column; justify-content: end; gap: 8px; }
.bar-track { height: 130px; background: #f0f3f1; border-radius: 4px 4px 2px 2px; display: flex; align-items: end; overflow: hidden; }
.bar-fill { width: 100%; min-height: 8px; border-radius: 4px 4px 0 0; transition: height .4s ease; }
.bar-info { display: flex; gap: 6px; align-items: center; }
.bar-info .partner-avatar { width: 24px; height: 24px; }
.bar-info strong, .bar-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-info strong { font-size: 10px; }.bar-info small { font-size: 9px; color: var(--muted); }

.deal-table { width: 100%; border-collapse: collapse; }
.deal-table th { background: #f8faf8; color: var(--subtle); text-transform: uppercase; font-size: 9px; letter-spacing: .06em; text-align: left; padding: 9px 14px; }
.deal-table td { border-top: 1px solid #edf0ee; padding: 11px 14px; font-size: 11px; vertical-align: middle; }
.deal-table tbody tr { cursor: pointer; }
.deal-table tbody tr:hover { background: #f8faf8; }
.account-cell strong, .account-cell small { display: block; }
.account-cell strong { font-size: 11px; }.account-cell small { color: var(--subtle); margin-top: 2px; font-size: 9px; }
.partner-chip, .stage-chip, .score-chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.partner-dot { width: 7px; height: 7px; border-radius: 2px; }
.stage-chip { border: 1px solid var(--line); border-radius: 10px; padding: 3px 7px; font-size: 9px; }
.stage-chip.pilot-\/-proposal, .stage-chip.commercial { color: var(--amber); background: var(--amber-light); border-color: #f0d4ad; }
.stage-chip.discovery, .stage-chip.qualified { color: var(--blue); background: #eaf2fc; border-color: #ccddf2; }
.stage-chip.solution-fit { color: var(--green); background: var(--green-light); border-color: #c5e0d1; }
.owner { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #e8edef; font-size: 8px; font-weight: 700; }

.task-list { padding: 5px 16px 9px; }
.task { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: start; padding: 12px 0; border-bottom: 1px solid #edf0ee; }
.task:last-child { border-bottom: 0; }
.task-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 6px; background: #eef4f0; color: var(--green); }
.task-icon svg { width: 14px; }
.task strong, .task small { display: block; }
.task strong { font-size: 10px; line-height: 1.4; }.task small { color: var(--subtle); font-size: 9px; margin-top: 3px; }
.due { font-size: 9px; font-weight: 700; color: var(--red); white-space: nowrap; }
.due.normal { color: var(--muted); }
.insight { margin: 15px; padding: 13px; background: #f3f7e9; border-left: 3px solid #96bd4c; border-radius: 4px; }
.insight-label { font-size: 9px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: #57732d; }
.insight strong { display: block; font-size: 11px; margin: 6px 0 4px; }
.insight p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }

.intel-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .62fr); gap: 18px; align-items: start; }
.intel-list { display: grid; gap: 12px; }
.recommendation-card { background: white; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.recommendation-card.accepted { border-color: #a9d0b9; }
.recommendation-card.snoozed { opacity: .72; }
.recommendation-main { padding: 17px 18px; }
.recommendation-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.recommendation-route { display: flex; align-items: center; gap: 9px; min-width: 0; }
.recommendation-route svg { color: var(--subtle); width: 16px; flex: none; }
.recommendation-route .account-head { min-width: 0; }
.recommendation-route .company-logo { width: 34px; height: 34px; flex: none; }
.recommendation-route h3 { margin: 0; font: 700 13px Manrope; }
.recommendation-route p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.match-score { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex: none; background: conic-gradient(var(--green) calc(var(--score) * 1%), #e7ece9 0); position: relative; }
.match-score::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: white; }
.match-score span { position: relative; z-index: 1; font: 700 13px Manrope; }
.recommendation-copy { margin: 15px 0 13px; color: #495750; font-size: 11px; line-height: 1.55; }
.reason-list { display: flex; flex-wrap: wrap; gap: 6px; }
.reason-pill { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #dce5df; background: #f5f8f6; border-radius: 12px; padding: 4px 8px; color: #4d6157; font-size: 9px; }
.reason-pill svg { width: 11px; color: var(--green); }
.recommendation-meta { margin-top: 15px; padding-top: 13px; border-top: 1px solid #edf0ee; display: grid; grid-template-columns: repeat(3, 1fr); }
.recommendation-meta span { border-right: 1px solid #edf0ee; padding-right: 12px; margin-right: 12px; }
.recommendation-meta span:last-child { border-right: 0; }
.recommendation-meta strong, .recommendation-meta small { display: block; }
.recommendation-meta strong { font-size: 10px; }.recommendation-meta small { color: var(--subtle); font-size: 8px; margin-top: 2px; }
.recommendation-actions { min-height: 53px; background: #f8faf8; border-top: 1px solid var(--line); padding: 8px 18px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.recommendation-actions > div { display: flex; gap: 7px; }
.status-label { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 10px; font-weight: 700; }
.status-label.snoozed { color: var(--amber); }
.score-breakdown { padding: 5px 17px 14px; }
.score-factor { padding: 10px 0; border-bottom: 1px solid #edf0ee; }
.score-factor:last-child { border-bottom: 0; }
.factor-label { display: flex; justify-content: space-between; font-size: 9px; margin-bottom: 6px; }
.factor-label span { color: var(--muted); }
.factor-bar { height: 5px; border-radius: 3px; background: #e9eeeb; overflow: hidden; }
.factor-bar span { display: block; height: 100%; border-radius: 3px; background: var(--green); }
.signal-list { padding: 7px 17px 13px; }
.signal-row { display: grid; grid-template-columns: 28px 1fr; gap: 9px; padding: 10px 0; border-bottom: 1px solid #edf0ee; }
.signal-row:last-child { border-bottom: 0; }
.signal-row .task-icon { width: 27px; height: 27px; }
.signal-row strong, .signal-row small { display: block; }
.signal-row strong { font-size: 10px; }.signal-row small { color: var(--subtle); font-size: 8px; margin-top: 3px; line-height: 1.4; }
.buying-signal { display: grid; gap: 5px; min-width: 230px; max-width: 430px; line-height: 1.4; }
.buying-signal small { color: var(--subtle); font-size: 9px; }
.live-signal-detail { margin: 0 17px 15px; padding: 14px; border: 1px solid #dfe6e2; background: #f7faf8; border-radius: 6px; display: grid; gap: 11px; }
.live-signal-detail > div { display: grid; gap: 6px; }
.live-signal-detail strong { font-size: 11px; line-height: 1.5; }
.live-signal-detail small { color: var(--subtle); font-size: 9px; line-height: 1.45; }
.live-signal-detail ul { margin: 0; padding-left: 17px; display: grid; gap: 7px; }
.live-signal-detail li { font-size: 10px; }
.live-signal-detail li small { display: block; margin-top: 2px; }
.live-signal-detail a { color: var(--accent); }
.live-signal-detail details { border-top: 1px solid #dfe6e2; padding-top: 9px; font-size: 9px; }
.live-signal-detail details p { color: var(--subtle); line-height: 1.45; }
.live-signal-detail.muted { background: #fbfcfb; }
.signal-status { color: #176b45; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.cross-sell-empty { padding: 55px 25px; text-align: center; border: 1px dashed #bfcac4; border-radius: 8px; background: #fafbfa; }
.cross-sell-empty h3 { margin: 0 0 5px; font: 700 14px Manrope; }.cross-sell-empty p { color: var(--muted); font-size: 10px; margin: 0; }
.fit-map-metrics .metric { min-height: 96px; }
.fit-map-toolbar { display: flex; align-items: end; gap: 12px; margin-bottom: 14px; }
.fit-map-toolbar label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 700; }
.fit-search input { width: 220px; height: 34px; border: 1px solid var(--line); border-radius: 6px; padding: 0 10px; font: inherit; color: var(--ink); outline: 0; }
.fit-search input:focus { border-color: var(--green); box-shadow: 0 0 0 3px #247a5515; }
.fit-legend { display: flex; gap: 12px; align-items: center; margin-left: auto; padding-bottom: 8px; }
.fit-legend span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; }
.fit-legend i { width: 10px; height: 10px; border-radius: 2px; }
.fit-legend .excellent, .fit-cell.excellent { background: #cdebd8; color: #155d3e; }
.fit-legend .good, .fit-cell.good { background: #d9e8f7; color: #285e91; }
.fit-legend .possible, .fit-cell.possible { background: #f8e7c8; color: #8b5b13; }
.fit-legend .weak, .fit-cell.weak { background: #edf0ee; color: #66736d; }
.fit-map-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.fit-map-panel { min-width: 0; }
.fit-map-scroll { overflow: auto; max-height: calc(100vh - 310px); }
.fit-map-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; }
.fit-map-table th, .fit-map-table td { border-bottom: 1px solid #edf0ee; padding: 7px; text-align: center; }
.fit-map-table thead th { position: sticky; top: 0; z-index: 2; background: #f8faf8; color: var(--muted); font-size: 9px; }
.fit-map-table thead th:first-child { left: 0; z-index: 4; text-align: left; min-width: 210px; }
.fit-map-table thead small { display: block; margin-top: 2px; font-size: 7px; font-weight: 500; }
.fit-map-table tbody th { position: sticky; left: 0; z-index: 1; background: white; text-align: left; min-width: 210px; }
.fit-map-table tbody tr:hover th { background: #f8faf8; }
.fit-map-table tbody th strong, .fit-map-table tbody th small { display: block; }
.fit-map-table tbody th strong { font-size: 10px; }.fit-map-table tbody th small { color: var(--subtle); font-size: 8px; margin-top: 2px; }
.fit-cell { width: 66px; min-height: 44px; border: 1px solid transparent; border-radius: 5px; display: inline-grid; place-content: center; gap: 1px; }
.fit-cell:hover, .fit-cell:focus { border-color: currentColor; outline: 0; }
.fit-cell strong { font: 700 13px Manrope; }.fit-cell small { font-size: 7px; text-transform: uppercase; }
.fit-cell.owned { box-shadow: inset 0 -3px currentColor; }
.fit-cell.unavailable { background: transparent; color: #aab4af; }
.fit-map-empty { padding: 45px !important; color: var(--muted); font-size: 10px; }
.fit-map-detail.empty { min-height: 190px; display: grid; place-items: center; padding: 25px; text-align: center; }
.fit-map-detail.empty h2 { margin: 0; font: 700 14px Manrope; }.fit-map-detail.empty p { color: var(--muted); font-size: 10px; line-height: 1.5; }
.fit-detail-score { color: var(--green); font: 700 19px Manrope; }
.fit-detail-body { padding: 15px; display: grid; gap: 16px; }
.fit-detail-body h3 { margin: 0 0 6px; font: 700 10px Manrope; }
.fit-detail-body p, .fit-detail-body li { font-size: 9px; line-height: 1.5; }
.fit-detail-body p { margin: 0 0 5px; }.fit-detail-body ul { margin: 0; padding-left: 16px; }
.fit-detail-body > div > small { color: var(--subtle); font-size: 8px; }
.fit-detail-meta { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 5px; }
.fit-detail-meta span { padding: 9px; }.fit-detail-meta span + span { border-left: 1px solid var(--line); }
.fit-detail-meta small, .fit-detail-meta strong { display: block; }.fit-detail-meta small { color: var(--subtle); font-size: 8px; }.fit-detail-meta strong { font-size: 10px; margin-top: 3px; }
.fit-source-list { display: grid; gap: 5px; }
.fit-source-list a { color: var(--green); }

.kanban { display: grid; grid-template-columns: repeat(5, minmax(230px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 12px; }
.kanban-column { min-height: 580px; background: #eef1ef; border-radius: 7px; padding: 10px; }
.kanban-header { display: flex; align-items: center; justify-content: space-between; padding: 3px 2px 10px; }
.kanban-header strong { font-size: 11px; }.kanban-header span { color: var(--muted); font-size: 9px; }
.deal-card { background: white; border: 1px solid var(--line); border-radius: 7px; padding: 13px; margin-bottom: 9px; box-shadow: 0 1px 1px #17241f0a; }
.deal-card:hover { border-color: #b8c4bd; }
.deal-card .partner-chip { font-size: 9px; color: var(--muted); }
.deal-card h3 { font: 700 12px Manrope; margin: 10px 0 3px; }
.deal-card .company { color: var(--subtle); font-size: 9px; }
.deal-value { margin: 13px 0 10px; font: 700 15px Manrope; }
.deal-stage-label { display: grid; gap: 4px; margin: 0 0 10px; color: var(--muted); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.deal-stage-select { width: 100%; height: 32px; border: 1px solid var(--line); border-radius: 5px; padding: 0 7px; background: #f8faf8; color: var(--ink); font-size: 10px; text-transform: none; }
.deal-stage-select:focus { border-color: var(--green); outline: 0; box-shadow: 0 0 0 3px #247a5515; }
.deal-meta { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #edf0ee; padding-top: 10px; color: var(--subtle); font-size: 9px; }

.account-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.account-card { background: white; border: 1px solid var(--line); border-radius: 7px; padding: 16px; cursor: pointer; }
.account-card:hover { border-color: #9fb0a7; }
.account-head { display: flex; align-items: center; gap: 10px; }
.company-logo { width: 38px; height: 38px; border-radius: 7px; display: grid; place-items: center; background: #edf1ef; color: #3f5149; font: 700 12px Manrope; }
.account-head h3 { margin: 0; font: 700 13px Manrope; }.account-head p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.account-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.account-stats strong, .account-stats small { display: block; }.account-stats strong { font-size: 11px; }.account-stats small { color: var(--subtle); font-size: 8px; margin-top: 2px; }
.partner-dots { margin-top: 13px; display: flex; gap: 5px; }
.partner-dots span { width: 20px; height: 20px; border-radius: 4px; display: grid; place-items: center; font-size: 7px; font-weight: 700; color: white; }

.score { width: 38px; height: 7px; background: #e8ece9; border-radius: 4px; overflow: hidden; display: inline-block; margin-right: 5px; }
.score span { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.priority { font-size: 9px; border-radius: 9px; padding: 3px 7px; font-weight: 700; }
.priority.high { background: #fce7e5; color: var(--red); }.priority.medium { background: var(--amber-light); color: var(--amber); }.priority.low { background: #edf1ef; color: var(--muted); }

.partner-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.partner-card { background: white; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.partner-stripe { height: 5px; }
.partner-card-body { padding: 18px; }
.partner-title { display: flex; align-items: center; gap: 11px; }
.partner-title .partner-avatar { width: 40px; height: 40px; }
.partner-title h3 { margin: 0; font: 700 14px Manrope; }.partner-title p { color: var(--muted); font-size: 9px; margin: 3px 0 0; }
.partner-card .account-stats { margin-bottom: 14px; }
.partner-commercial, .product-list { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0; }
.partner-commercial span, .product-list span { padding: 4px 7px; border-radius: 4px; background: #f2f5f3; color: #526159; font-size: 9px; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.product-config { border-top: 1px solid var(--line); padding-top: 14px; }
.toggle-label { display: flex !important; align-items: center; gap: 9px; padding-top: 21px; }
.toggle-label input { width: 16px; height: 16px; accent-color: var(--green); }
.progress-label { display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); margin-bottom: 6px; }
.progress { height: 6px; background: #edf0ee; border-radius: 3px; overflow: hidden; }.progress span { display: block; height: 100%; }

.empty-state { border: 1px dashed #bdc8c2; border-radius: 8px; padding: 70px 20px; text-align: center; color: var(--muted); background: #fafbfa; }
.empty-state svg { width: 32px; height: 32px; margin-bottom: 10px; color: var(--subtle); }
.empty-state h3 { margin: 0 0 5px; color: var(--ink); }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: #0b1712aa; display: grid; place-items: center; padding: 20px; }
.modal { width: min(620px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 8px; background: white; box-shadow: 0 25px 70px #0005; }
.modal-header { padding: 19px 21px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 3px 0 0; font: 700 18px Manrope; }.eyebrow { color: var(--green); text-transform: uppercase; font-size: 9px; letter-spacing: .08em; font-weight: 700; }
.form-grid { padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid label { display: grid; gap: 6px; font-size: 10px; color: var(--muted); font-weight: 600; }
.form-grid label.full { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea { border: 1px solid var(--line); border-radius: 6px; padding: 0 10px; color: var(--ink); outline: 0; background: white; font: inherit; }
.form-grid input, .form-grid select { height: 39px; }
.form-grid textarea { padding: 10px; resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px #247a5515; }
.partner-fieldset { border: 0; padding: 0; margin: 0; }
.partner-fieldset legend { margin-bottom: 8px; font-size: 10px; color: var(--muted); font-weight: 600; }
.partner-checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.partner-check { min-height: 40px; display: flex !important; grid-template-columns: none !important; align-items: center; gap: 8px !important; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink) !important; cursor: pointer; }
.partner-check input { width: 15px; height: 15px; accent-color: var(--green); }
.account-card { position: relative; }
.account-edit { position: absolute; top: 14px; right: 14px; }
.account-open { width: 100%; margin-top: 14px; }
.work-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: 16px; }
.work-item-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.work-type { min-width: 58px; text-align: center; padding: 4px 7px; border-radius: 5px; background: #edf4ef; color: var(--green); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.task.completed strong { text-decoration: line-through; color: var(--muted); }
.task.completed { opacity: .7; }
.compact-modal { width: min(520px, 100%); }
.account-detail-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 16px; }
.account-detail-stack { display: grid; gap: 16px; align-content: start; }
.contact-list { display: grid; }
.contact-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 13px 16px; border-top: 1px solid var(--line); }
.contact-row:first-child { border-top: 0; }
.contact-row strong, .contact-row small { display: block; }
.contact-row small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.contact-role { padding: 4px 7px; border-radius: 5px; background: #edf4ef; color: var(--green); font-size: 9px; font-weight: 700; }
.timeline-list { display: grid; padding: 2px 16px 12px; }
.timeline-entry { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.timeline-entry:last-child { border-bottom: 0; }
.timeline-entry strong, .timeline-entry small { display: block; }
.timeline-entry small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.chase-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.row-actions { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.fit-list { display: grid; max-height: 620px; overflow-y: auto; }
.fit-row { display: grid; gap: 7px; padding: 13px 16px; border-top: 1px solid var(--line); }
.fit-row:first-child { border-top: 0; }
.fit-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.fit-row > small { color: var(--muted); font-size: 9px; }
.fit-row ul { margin: 0; padding-left: 16px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.fit-row .secondary-button { justify-self: start; min-height: 32px; }
.fit-existing { color: var(--green); font-size: 9px; font-weight: 700; }
.icp-editor { display: grid; }
.icp-criterion { display: grid; grid-template-columns: minmax(0, 1fr) 68px; gap: 10px; align-items: center; padding: 13px 16px; border-top: 1px solid var(--line); }
.icp-criterion:first-child { border-top: 0; }
.icp-criterion strong, .icp-criterion small { display: block; }
.icp-criterion small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.icp-criterion input { width: 100%; height: 34px; border: 1px solid var(--line); border-radius: 5px; padding: 0 7px; text-align: right; }
.icp-total { display: flex; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 10px; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 16px; align-items: start; }
.member-row { display: grid; grid-template-columns: minmax(180px, 1fr) 150px 130px; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.member-row:first-child { border-top: 0; }
.member-row strong, .member-row small { display: block; }
.member-row small { color: var(--muted); margin-top: 2px; font-size: 9px; }
.member-row select { height: 34px; border: 1px solid var(--line); border-radius: 5px; padding: 0 7px; background: white; }
.audit-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); }
.audit-row:first-child { border-top: 0; }
.audit-row strong, .audit-row small { display: block; }
.audit-row small { color: var(--muted); margin-top: 3px; font-size: 9px; }
.import-preview { padding: 13px; border: 1px solid var(--line); border-radius: 6px; background: #f7f9f7; }
.import-preview strong, .import-preview small { display: block; }
.import-preview small { color: var(--muted); margin-top: 4px; font-size: 9px; }
.import-preview.valid { border-color: #a8d2b7; background: #f1f8f3; }
.import-preview.invalid { border-color: #e5b2ad; background: #fff5f4; }
.report-table td:last-child, .report-table th:last-child { text-align: right; }
.hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.inline-editor { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.inline-editor input, .inline-editor select { min-width: 0; height: 36px; border: 1px solid var(--line); border-radius: 5px; padding: 0 9px; background: white; }
.inline-editor .primary-button { justify-self: start; }
.content-list { display: grid; }
.content-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.content-row:first-child { border-top: 0; }
.content-row strong, .content-row small { display: block; }
.content-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.modal-actions { padding: 14px 20px; background: #f7f9f7; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.toast { position: fixed; z-index: 120; right: 22px; bottom: 22px; background: #17251f; color: white; border-radius: 7px; box-shadow: 0 12px 30px #0003; padding: 12px 16px; display: flex; align-items: center; gap: 11px; }
.toast > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #b9e168; color: #1c3329; font-weight: 700; }
.toast strong, .toast small { display: block; }.toast strong { font-size: 11px; }.toast small { color: #aab8b1; font-size: 9px; margin-top: 2px; }

@media (max-width: 1050px) {
  .metrics { grid-template-columns: 1fr 1fr; }.metric:nth-child(2) { border-right: 0; }.metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .dashboard-grid { grid-template-columns: 1fr; }.account-grid, .partner-cards { grid-template-columns: 1fr 1fr; }
  .search { width: 230px; }
  .intel-layout { grid-template-columns: 1fr; }
  .fit-map-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }.sidebar { position: fixed; left: -240px; width: 228px; transition: left .2s ease; }.sidebar.open { left: 0; box-shadow: 10px 0 40px #0004; }
  .topbar { padding: 0 15px; }.mobile-menu { display: grid; place-items: center; width: 34px; height: 34px; border: 0; background: transparent; }.breadcrumb { margin-right: auto; margin-left: 8px; }
  .search, .top-actions .icon-button { display: none; }.content { padding: 18px 14px 30px; }
  .metrics { grid-template-columns: 1fr 1fr; }.metric { padding: 14px; min-height: 100px; }.metric strong { font-size: 20px; }
  .dashboard-grid, .dashboard-grid > *, .panel { min-width: 0; max-width: 100%; }
  .dashboard-grid > div { overflow: hidden; }
  .pipeline-bars { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; }.page-heading { align-items: flex-start; gap: 12px; }.page-heading h1 { font-size: 20px; }
  .bar-info { min-width: 0; }.bar-info > span:last-child { min-width: 0; }
  .account-grid, .partner-cards { grid-template-columns: 1fr; }.form-grid { grid-template-columns: 1fr; }.form-grid label.full { grid-column: auto; }.partner-checks { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .account-detail-grid { grid-template-columns: 1fr; }
  .chase-layout { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .hub-grid { grid-template-columns: 1fr; }
  .inline-editor { grid-template-columns: 1fr; }
  .fit-map-toolbar { align-items: stretch; flex-direction: column; }
  .fit-search input { width: 100%; }
  .fit-legend { margin-left: 0; flex-wrap: wrap; padding-bottom: 0; }
  .fit-map-scroll { max-height: 560px; }
  .member-row { grid-template-columns: 1fr; }
  .recommendation-top { align-items: center; }.recommendation-route { flex-wrap: wrap; }.recommendation-meta { grid-template-columns: 1fr 1fr; gap: 12px; }.recommendation-meta span { border: 0; }
  .recommendation-actions { align-items: stretch; flex-direction: column-reverse; }.recommendation-actions > div { display: grid; grid-template-columns: 1fr 1fr; }.recommendation-actions .primary-button { width: 100%; }
  .table-wrap { overflow-x: auto; }.deal-table { min-width: 720px; }
}
