/* All rules are scoped to Commercial. The private Sales Agent is unchanged. */
.commercial-theme { --fm-surface:#24223e; --fm-panel:#1e1b35; --fm-line:#45425f; --fm-text:#f2f3ff; --fm-muted:#b9b9d0; --fm-blue:#80acff; --fm-green:#61dcaf; --fm-amber:#f7c46c; --fm-purple:#bb9efa; --fm-soft:#302b4e; }
html[data-theme="light"] .commercial-theme { --fm-surface:#fff; --fm-panel:#f5f7fb; --fm-line:#dfe5ee; --fm-text:#18283d; --fm-muted:#58697d; --fm-blue:#2563d8; --fm-green:#087b57; --fm-amber:#946200; --fm-purple:#7544c5; --fm-soft:#edf3ff; background:#f5f7fb; color:var(--fm-text); }
.commercial-theme .sidebar { display:flex; flex-direction:column; height:100dvh; overflow:auto; }
.commercial-theme .sidebar nav { display:flex; flex-direction:column; flex:1; gap:4px; }
.commercial-theme .sidebar-foot { position:static; flex-shrink:0; margin:12px 8px 0; }
.commercial-theme .fm-nav-bottom { margin-top:auto; padding-top:24px; display:grid; gap:4px; }
.commercial-theme .fm-nav-bottom .nav-item { min-height:42px; }
.commercial-theme .nav-logout { margin:0; }
.commercial-theme .fm-nav-button { border:1px solid var(--fm-line); border-radius:10px; margin:3px 0; background:var(--fm-soft); width:100%; text-align:left; }
.commercial-theme .fm-search { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 18px; margin:0 0 20px; border:1px solid var(--fm-line); border-left:4px solid var(--fm-blue); border-radius:12px; background:var(--fm-surface); color:var(--fm-text); }
.commercial-theme .fm-search p { margin:5px 0 0; color:var(--fm-muted); font-size:13px; }
.commercial-theme .fm-search strong { font-size:12px; letter-spacing:.035em; }
.commercial-theme .fm-search[data-status="RUNNING"] { border-left-color:var(--fm-green); }
.commercial-theme .fm-search[data-status="FAILED"], .commercial-theme .fm-search[data-status="UNCONFIRMED"] { border-left-color:var(--fm-amber); }
.commercial-theme .fm-search[data-status="RUNNING"] strong::before { content:""; display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--fm-green); margin-right:8px; animation:fm-search-dot-pulse 1.2s ease-in-out infinite; }
@keyframes fm-search-dot-pulse { 50% { opacity:.2; } }
@media (prefers-reduced-motion: reduce) { .commercial-theme .fm-search[data-status="RUNNING"] strong::before { animation:none; } }
.commercial-theme .fm-search a { flex-shrink:0; }
.commercial-theme .fm-search-actions { display:flex; flex-wrap:wrap; gap:8px; flex-shrink:0; }
.commercial-theme .fm-search-actions form { margin:0; }
.commercial-theme .fm-search-diagnostics { margin:-8px 0 20px; padding:10px 16px; border:1px solid var(--fm-line); border-radius:10px; background:var(--fm-surface); color:var(--fm-text); font-size:13px; }
.commercial-theme .fm-search-diagnostics[hidden] { display:none; }
.commercial-theme .fm-search-diagnostics summary { cursor:pointer; font-weight:700; }
.commercial-theme .fm-search-diagnostics p { margin:8px 0; color:var(--fm-muted); }
.commercial-theme .fm-search-diagnostics ul { margin:6px 0 0; padding-left:20px; }
.commercial-theme form[action="/commercial/agent/run"] button:disabled { opacity:.5; cursor:not-allowed; }
.commercial-theme .fm-insights [hidden] { display:none !important; }
.commercial-theme .fm-mail-status { display:inline-block; padding:4px 9px; border:1px solid var(--fm-line); border-radius:8px; color:var(--fm-text); font-size:12px; }
.commercial-theme .fm-mail-status[data-health="PAUSED"], .commercial-theme .fm-mail-status[data-health="WATCH"] { color:var(--fm-amber); }
.commercial-theme .field-grid > .fm-help { grid-column:1 / -1; margin:0; }
.commercial-theme .fm-insights { background:var(--fm-surface); color:var(--fm-text); border:1px solid var(--fm-line); border-radius:16px; padding:24px; margin:0 0 24px; box-shadow:0 6px 22px #10182b08; }
.commercial-theme .fm-insights h2 { margin:5px 0 7px; font-size:25px; line-height:1.25; }
.commercial-theme .fm-insights p, .commercial-theme .fm-help { color:var(--fm-muted); line-height:1.6; font-size:13px; }
.commercial-theme .fm-eyebrow { color:var(--fm-blue); font-weight:700; font-size:11px; letter-spacing:.09em; }
.commercial-theme .fm-tabs { display:flex; gap:8px; border-bottom:1px solid var(--fm-line); margin:22px 0 16px; overflow-x:auto; padding-bottom:9px; }
.commercial-theme .fm-tabs button { white-space:nowrap; padding:10px 13px; background:transparent; border:1px solid transparent; border-radius:9px; color:var(--fm-muted); font:inherit; cursor:pointer; }
.commercial-theme .fm-tabs button[aria-selected="true"] { background:var(--fm-soft); border-color:var(--fm-blue); color:var(--fm-blue); font-weight:650; }
.commercial-theme .fm-tabs button:focus-visible, .commercial-theme .fm-insights select:focus-visible { outline:3px solid var(--fm-blue); outline-offset:3px; }
.commercial-theme .fm-filters { display:flex; flex-wrap:wrap; gap:14px; align-items:start; margin-bottom:16px; }
.commercial-theme .fm-filters label { display:grid; gap:5px; color:var(--fm-muted); font-size:12px; min-width:135px; }
.commercial-theme .fm-filters select { padding:9px 11px; background:var(--fm-panel); border:1px solid var(--fm-line); border-radius:8px; color:var(--fm-text); width:100%; }
.commercial-theme .fm-currency-picker { display:grid; gap:7px; min-width:0; align-content:start; }
.commercial-theme .fm-filters > .fm-currency-picker { flex:1 1 260px; max-width:420px; }
.commercial-theme .fm-currency-picker label { display:grid; gap:5px; min-width:0; font-size:12px; color:var(--fm-muted); }
.commercial-theme .fm-currency-picker select { min-width:0; width:100%; box-sizing:border-box; padding:9px 11px; background:var(--fm-panel); border:1px solid var(--fm-line); border-radius:8px; color:var(--fm-text); }
.commercial-theme .fm-currency-picker small { color:var(--fm-muted); font-size:11px; line-height:1.5; overflow-wrap:anywhere; }
.commercial-theme .fm-currency-picker select:focus-visible { outline:3px solid var(--fm-blue); outline-offset:2px; }
.commercial-theme .fm-period { margin-left:auto; font-size:12px; color:var(--fm-muted); text-align:right; }
.commercial-theme .fm-panel { min-height:345px; }
.commercial-theme .fm-chart-scroll { width:100%; overflow-x:auto; }
.commercial-theme .fm-chart { display:block; width:100%; min-width:530px; max-height:390px; }
.commercial-theme .fm-chart text { fill:var(--fm-muted); font-family:inherit; font-size:12px; }
.commercial-theme .fm-chart .fm-chart-label { fill:var(--fm-text); font-size:14px; font-weight:600; }
.commercial-theme .fm-chart .fm-gridline { stroke:var(--fm-line); stroke-width:1; }
.commercial-theme .fm-legend { display:flex; gap:18px; flex-wrap:wrap; font-size:12px; color:var(--fm-muted); margin:10px 0; }
.commercial-theme .fm-legend span::before { content:""; width:18px; height:3px; margin-right:7px; display:inline-block; vertical-align:middle; background:var(--fm-blue); }
.commercial-theme .fm-legend span.fm-forecast-legend::before { background:var(--fm-purple); }
.commercial-theme .fm-kpi-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin:16px 0; }
.commercial-theme .fm-kpi-grid article { border:1px solid var(--fm-line); border-radius:12px; padding:17px; background:var(--fm-panel); min-width:0; }
.commercial-theme .fm-kpi-grid small { display:block; color:var(--fm-muted); font-size:12px; line-height:1.5; }
.commercial-theme .fm-kpi-grid b { display:block; font-size:25px; line-height:1.25; margin:10px 0; color:var(--fm-text); font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.commercial-theme .fm-kpi-grid article[data-risk="low"] { border-top:3px solid var(--fm-green); }
.commercial-theme .fm-kpi-grid article[data-risk="medium"] { border-top:3px solid var(--fm-amber); }
.commercial-theme .fm-kpi-grid article[data-risk="high"] { border-top:3px solid #d86774; }
.commercial-theme .fm-kpi-grid article[data-risk="unavailable"] { border-top:3px solid var(--fm-line); }
.commercial-theme .fm-kpi-grid article[data-risk="unavailable"] b { font-size:18px; color:var(--fm-muted); }
.commercial-theme .fm-empty { padding:45px 20px; text-align:center; border:1px dashed var(--fm-line); border-radius:12px; color:var(--fm-muted); margin:18px 0; }
.commercial-theme .fm-table-wrap { overflow-x:auto; width:100%; }
.commercial-theme table.fm-table { width:100%; border-collapse:collapse; table-layout:auto; margin:8px 0; color:var(--fm-text); }
.commercial-theme table.fm-table th, .commercial-theme table.fm-table td { text-align:left !important; vertical-align:top; padding:12px 14px; border-bottom:1px solid var(--fm-line); font-size:13px; font-variant-numeric:tabular-nums; }
.commercial-theme table.fm-table th { background:var(--fm-panel); color:var(--fm-muted); font-size:11px; font-weight:650; text-transform:uppercase; letter-spacing:.025em; }
.commercial-theme table.fm-table td small { display:block; color:var(--fm-muted); margin-top:5px; overflow-wrap:anywhere; }
.commercial-theme table.fm-table td a { color:var(--fm-blue); text-decoration:none; }
.commercial-theme table.fm-table td a:hover { text-decoration:underline; }
.commercial-theme table.fm-table tbody tr:hover { background:var(--fm-panel); }
.commercial-theme .fm-insights details { border-top:1px solid var(--fm-line); margin-top:20px; padding-top:13px; }
.commercial-theme .fm-insights summary { cursor:pointer; font-size:13px; color:var(--fm-blue); }
.commercial-theme .fm-source-note { padding-top:13px; border-top:1px solid var(--fm-line); margin-bottom:0; font-size:11px !important; }
.commercial-theme .fm-warning { padding:10px 13px; background:var(--fm-panel); border-left:3px solid var(--fm-amber); border-radius:6px; margin:8px 0; }
.commercial-theme .fm-settings-intro { margin-bottom:22px; }
.commercial-theme .fm-settings-grid { display:grid; gap:20px; grid-template-columns:repeat(2,minmax(0,1fr)); margin-bottom:22px; }
.commercial-theme .fm-settings-grid .card { margin:0; }
.commercial-theme .fm-summary { display:grid; gap:14px; grid-template-columns:repeat(3,minmax(0,1fr)); }
.commercial-theme .fm-summary div { border:1px solid var(--fm-line); padding:15px; border-radius:10px; }
.commercial-theme .fm-summary b { display:block; font-size:20px; margin-top:8px; }
.commercial-theme .fm-summary small { color:var(--fm-muted); }
.commercial-theme .fm-save-footer { display:flex; justify-content:flex-end; padding:14px 0 24px; }
.commercial-theme .fm-threshold { margin:18px 0; }
.commercial-theme .fm-threshold summary { cursor:pointer; color:var(--fm-blue); font-weight:600; }
.commercial-theme .fm-threshold p { line-height:1.65; }
.commercial-theme .fm-cca-sources { display:grid; gap:7px; margin:10px 0 0; padding:12px 0 0; border-top:1px solid var(--fm-line); list-style:none; }
.commercial-theme .fm-cca-sources a { color:var(--fm-blue); overflow-wrap:anywhere; }
.commercial-theme .fm-cca-sources small { color:var(--fm-muted); }
.commercial-theme .cca-request-status[hidden] { display:none !important; }
.commercial-theme .cca-request-status { border-left:3px solid var(--fm-blue); padding:10px 12px; background:var(--fm-panel); }
html[data-theme="light"] .commercial-theme .cca-hero h2,
html[data-theme="light"] .commercial-theme .cca-layout h3,
html[data-theme="light"] .commercial-theme .cca-layout .cca-quick b,
html[data-theme="light"] .commercial-theme .cca-online strong { color:var(--fm-text); }
html[data-theme="light"] .commercial-theme .cca-layout .cca-quick,
html[data-theme="light"] .commercial-theme .cca-layout .cca-bubble,
html[data-theme="light"] .commercial-theme .cca-online { background:var(--fm-panel); border:1px solid var(--fm-line); color:var(--fm-text); }
html[data-theme="light"] .commercial-theme .cca-layout .cca-user .cca-bubble { background:#edf3ff; color:var(--fm-text); }
html[data-theme="light"] .commercial-theme .cca-layout .cca-quick small,
html[data-theme="light"] .commercial-theme .cca-layout .cca-bubble small,
html[data-theme="light"] .commercial-theme .cca-online small { color:var(--fm-muted); opacity:1; }
html[data-theme="light"] .commercial-theme .cca-layout .cca-ok { color:var(--fm-green); }
html[data-theme="light"] .commercial-theme .cca-layout .cca-warn { color:var(--fm-amber); }
html[data-theme="light"] .commercial-theme .cca-layout .cca-avatar { color:#fff; }
html[data-theme="light"] .commercial-theme .sidebar { background:#fff; color:var(--fm-text); border-right:1px solid var(--fm-line); }
html[data-theme="light"] .commercial-theme .main { background:#f5f7fb; }
html[data-theme="light"] .commercial-theme .topbar { background:#f5f7fb; border-bottom:1px solid var(--fm-line); }
html[data-theme="light"] .commercial-theme .card,
html[data-theme="light"] .commercial-theme .settings-section,
html[data-theme="light"] .commercial-theme .client-metrics article,
html[data-theme="light"] .commercial-theme .crm-kpis article { background:#fff; border:1px solid var(--fm-line); box-shadow:0 4px 18px #10182b05; color:var(--fm-text); }
html[data-theme="light"] .commercial-theme .nav-item { color:#43516b; }
html[data-theme="light"] .commercial-theme .nav-item.active { background:#eaf1ff; color:#245bc1; border-color:#cbdafa; }
html[data-theme="light"] .commercial-theme .nav-label,
html[data-theme="light"] .commercial-theme .muted,
html[data-theme="light"] .commercial-theme .hint { color:var(--fm-muted); }
html[data-theme="light"] .commercial-theme input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="light"] .commercial-theme select,
html[data-theme="light"] .commercial-theme textarea { background:#fff; color:var(--fm-text); border-color:#ccd5e2; }
html[data-theme="light"] .commercial-theme input::placeholder,
html[data-theme="light"] .commercial-theme textarea::placeholder { color:#6c798b; }
html[data-theme="light"] .commercial-theme .btn:not(.primary) { color:#284873; background:#f1f5fb; border-color:var(--fm-line); }
html[data-theme="light"] .commercial-theme .btn.primary { background:#2865d4; border-color:#2865d4; color:#fff; }
html[data-theme="light"] .commercial-theme .crm-deal,
html[data-theme="light"] .commercial-theme .crm-stage,
html[data-theme="light"] .commercial-theme .crm-task,
html[data-theme="light"] .commercial-theme .message-card,
html[data-theme="light"] .commercial-theme .sales-reply-card { background:var(--fm-panel); border-color:var(--fm-line); color:var(--fm-text); }
html[data-theme="light"] .commercial-theme .crm-deal small,
html[data-theme="light"] .commercial-theme .dash-status-lines span { color:var(--fm-muted); }
.commercial-theme .crm-opportunity-board { overflow-x:auto; padding-bottom:12px; align-items:start; }
.commercial-theme .crm-stage { min-width:150px; }
@media (max-width:1100px) { .commercial-theme .fm-kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .commercial-theme .fm-settings-grid { grid-template-columns:1fr; } }
@media (max-width:700px) { .commercial-theme .fm-insights { padding:16px; } .commercial-theme .fm-search { align-items:flex-start; flex-direction:column; } .commercial-theme .fm-period { margin:0; text-align:left; flex-basis:100%; } .commercial-theme .fm-summary { grid-template-columns:1fr; } .commercial-theme .fm-kpi-grid { gap:9px; } .commercial-theme .fm-kpi-grid b { font-size:21px; } .commercial-theme .sidebar { height:auto; max-height:none; } }

.commercial-theme .client-metrics { grid-template-columns:repeat(4,minmax(0,1fr)); }
@media(max-width:900px) { .commercial-theme .client-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.commercial-theme .commercial-data-table .data-head > *, .commercial-theme .commercial-data-table .data-row > * { text-align:left; min-width:0; }

/* UI5: long translated lead statuses stay inside real table columns. */
.commercial-theme table.fm-leads-table { table-layout:fixed; min-width:1100px; }
.commercial-theme .fm-leads-table .fm-col-company { width:24%; }
.commercial-theme .fm-leads-table .fm-col-industry { width:23%; }
.commercial-theme .fm-leads-table .fm-col-location { width:19%; }
.commercial-theme .fm-leads-table .fm-col-fit { width:6%; }
.commercial-theme .fm-leads-table .fm-col-status { width:14%; }
.commercial-theme .fm-leads-table .fm-col-contact { width:14%; }
.commercial-theme table.fm-leads-table th,
.commercial-theme table.fm-leads-table td { overflow-wrap:anywhere; line-height:1.55; }
.commercial-theme table.fm-leads-table b { color:var(--fm-text); }
.commercial-theme table.fm-leads-table b.green { color:var(--fm-green) !important; }
.commercial-theme table.fm-leads-table td small { font-size:12px; opacity:1; }
.commercial-theme table.fm-leads-table .map-match-badge { color:var(--fm-muted); }
html[data-theme="light"] .commercial-theme { --ink:var(--fm-text); --muted:var(--fm-muted); }
html[data-theme="light"] .commercial-theme .topbar h1,
html[data-theme="light"] .commercial-theme .dash-card-head h3,
html[data-theme="light"] .commercial-theme .fm-search strong,
html[data-theme="light"] .commercial-theme .lead-quality-explanation b { color:var(--fm-text); }
html[data-theme="light"] .commercial-theme .eyebrow { color:var(--fm-purple); }
html[data-theme="light"] .commercial-theme .language-switcher,
html[data-theme="light"] .commercial-theme .sidebar-foot { color:var(--fm-muted); }
html[data-theme="light"] .commercial-theme .lead-quality-explanation { background:var(--fm-panel); border-color:var(--fm-line); }
html[data-theme="light"] .commercial-theme .lead-quality-explanation p { color:var(--fm-muted); }

/* 057: Dashboard light-theme values. Keep dark surfaces and action buttons intact. */
html[data-theme="light"] .commercial-theme .client-metrics b,
html[data-theme="light"] .commercial-theme .dashboard-main-grid .dash-table b,
html[data-theme="light"] .commercial-theme .dashboard-effectiveness .effectiveness-step b,
html[data-theme="light"] .commercial-theme .dashboard-effectiveness .effectiveness-footer b {
  color:var(--fm-text) !important;
}
html[data-theme="light"] .commercial-theme .dashboard-effectiveness .effectiveness-step > span,
html[data-theme="light"] .commercial-theme .dashboard-effectiveness .effectiveness-arrow {
  color:var(--fm-purple) !important;
}
html[data-theme="light"] .commercial-theme .dashboard-filters .text-link,
html[data-theme="light"] .commercial-theme .dashboard-main-grid .text-link,
html[data-theme="light"] .commercial-theme .pipeline-strip .text-link {
  color:var(--fm-blue) !important;
}

/* 059: readable Commercial settings, account, campaigns and pipeline surfaces. */
.commercial-theme.fm-contrast-pages .price-card .plan-kicker,
.commercial-theme.fm-contrast-pages .price-card h3 small,
.commercial-theme.fm-contrast-pages .price-card .price-tax,
.commercial-theme.fm-contrast-pages .price-card ul {
  color:var(--fm-muted);
}
.commercial-theme.fm-contrast-pages .text-link {
  color:var(--fm-blue) !important;
}
.commercial-theme.fm-contrast-pages .reply-tag {
  color:#eee8ff;
  white-space:normal;
  overflow-wrap:anywhere;
  max-width:100%;
  box-sizing:border-box;
}
.commercial-theme.fm-contrast-pages .reply-tag.interested,
.commercial-theme.fm-contrast-pages .reply-tag.meeting { color:#70e3a8; }
.commercial-theme.fm-contrast-pages .reply-tag.not_interested,
.commercial-theme.fm-contrast-pages .reply-tag.unsubscribe { color:#ff9ca8; }
html[data-theme="light"] .commercial-theme.fm-contrast-pages .main :is(h2,h3,h4,b,strong,label,th) {
  color:var(--fm-text) !important;
}
html[data-theme="light"] .commercial-theme.fm-contrast-pages .main :is(.legal-check span,.toggle-label span) {
  color:var(--fm-text);
}
html[data-theme="light"] .commercial-theme.fm-contrast-pages :is(.price-card,.connected-mail-row,.pipeline-column,.pipeline-column section,.compliance-critical) {
  background:var(--fm-panel) !important;
  color:var(--fm-text);
  border-color:var(--fm-line) !important;
}
html[data-theme="light"] .commercial-theme.fm-contrast-pages .pricing-grid .price-card {
  background:var(--fm-panel) !important;
}
html[data-theme="light"] .commercial-theme.fm-contrast-pages :is(.connected-mail-row small,.pipeline-column section > small,.price-tax) {
  color:var(--fm-muted);
}
html[data-theme="light"] .commercial-theme.fm-contrast-pages .vat-note {
  color:var(--fm-purple);
  background:#f4f3ff;
}
html[data-theme="light"] .commercial-theme.fm-contrast-pages .pipeline-column > header span {
  background:var(--fm-soft);
  color:var(--fm-text);
}
html[data-theme="light"] .commercial-theme.fm-contrast-pages .pipeline-column section > span {
  color:var(--fm-green);
}
html[data-theme="light"] .commercial-theme.fm-contrast-pages .reply-tag {
  color:#493076;
  background:#eee8f7;
}
html[data-theme="light"] .commercial-theme.fm-contrast-pages :is(.reply-tag.interested,.reply-tag.meeting) {
  color:#087b57;
  background:#e8f7ef;
}
html[data-theme="light"] .commercial-theme.fm-contrast-pages :is(.reply-tag.not_interested,.reply-tag.unsubscribe) {
  color:#a3293e;
  background:#fdebf0;
}
/* These intentionally dark notices keep a light foreground in both themes. */
html[data-theme="light"] .commercial-theme.fm-contrast-pages :is(.safety-box,.ksef-note,.subscription-chip,.flash-success) {
  --fm-text:#f2f3ff;
}
html[data-theme="light"] .commercial-theme.fm-contrast-pages .main :is(.status-dot.ok b,.status-dot.ok strong) {
  color:#067647 !important;
}
html[data-theme="light"] .commercial-theme.fm-contrast-pages .main :is(.status-dot:not(.ok) b,.status-dot:not(.ok) strong) {
  color:#b42318 !important;
}
html[data-theme="light"] .commercial-theme.fm-contrast-pages .main :is(.btn.primary b,.btn.primary strong,.best-value b,.best-value strong) {
  color:#fff !important;
}
html[data-theme="light"] .commercial-theme.fm-contrast-pages .main :is(.flash-info b,.flash-info strong) { color:#175cd3 !important; }
html[data-theme="light"] .commercial-theme.fm-contrast-pages .main :is(.flash-error b,.flash-error strong) { color:#b42318 !important; }
.commercial-theme.fm-contrast-pages .dash-status-lines a { color:var(--fm-blue); }
.commercial-theme.fm-contrast-pages .pipeline-column section > b { font-size:13px; overflow-wrap:anywhere; }
.commercial-theme.fm-contrast-pages .pipeline-column section > small,
.commercial-theme.fm-contrast-pages .pipeline-column section > span,
.commercial-theme.fm-contrast-pages .pipeline-column > header,
.commercial-theme.fm-contrast-pages .reply-tag { font-size:12px; line-height:1.4; }

/* 060: company detail card; list and other screens retain their layout. */
.commercial-theme .lead-detail-card {
  color:var(--fm-text);
  padding:24px;
  line-height:1.6;
}
.commercial-theme .lead-detail-card :is(h2,h3,b) { color:var(--fm-text) !important; }
.commercial-theme .lead-detail-card .dash-card-head {
  align-items:flex-start;
  flex-wrap:wrap;
  gap:16px;
  margin-bottom:16px;
}
.commercial-theme .lead-detail-card #lead-detail-title {
  font-size:24px;
  line-height:1.3;
  margin:6px 0 0;
  overflow-wrap:anywhere;
}
.commercial-theme .lead-detail-card h3 { font-size:15px; line-height:1.45; margin:0 0 10px; }
.commercial-theme .lead-detail-card .lead-detail-overview {
  grid-template-columns:minmax(220px,280px) minmax(0,1fr);
  gap:24px;
  align-items:start;
  margin-top:22px;
}
.commercial-theme .lead-detail-card .lead-detail-facts {
  padding:18px;
  background:var(--fm-panel);
  border:1px solid var(--fm-line);
  border-radius:12px;
}
.commercial-theme .lead-detail-card dl { margin:0; }
.commercial-theme .lead-detail-card dt { opacity:1; font-size:12px; color:var(--fm-muted); }
.commercial-theme .lead-detail-card dd { margin:3px 0 14px; font-size:14px; line-height:1.5; }
.commercial-theme .lead-detail-card dd:last-child { margin-bottom:0; }
.commercial-theme .lead-detail-card .lead-detail-copy {
  font-size:14px;
  line-height:1.65;
  margin:0;
  overflow-wrap:anywhere;
}
.commercial-theme .lead-detail-card .lead-detail-narrative h3:not(:first-child) { margin-top:24px; }
.commercial-theme .lead-detail-card .lead-detail-topics {
  grid-template-columns:minmax(0,1fr);
  gap:12px;
  margin-top:24px;
}
.commercial-theme .lead-detail-card .lead-detail-topic {
  display:grid;
  grid-template-columns:minmax(170px,1fr) minmax(0,3fr);
  gap:16px;
  padding:16px;
  border:1px solid var(--fm-line);
  border-radius:12px;
  background:var(--fm-panel);
}
.commercial-theme .lead-detail-card .lead-detail-topic h3 { margin:0; }
.commercial-theme .lead-detail-card .lead-detail-section {
  border-top:1px solid var(--fm-line);
  margin-top:24px;
  padding-top:20px;
}
.commercial-theme .lead-detail-card ul.lead-detail-copy { white-space:normal; padding-left:22px; }
.commercial-theme .lead-detail-card li { margin:7px 0; white-space:pre-wrap; }
.commercial-theme .lead-detail-card .lead-detail-contact { border-color:var(--fm-line); }
.commercial-theme .lead-detail-card .lead-detail-contact dl { margin-top:10px; }
.commercial-theme .lead-detail-card .lead-detail-section > p { font-size:14px; color:var(--fm-muted); }
@media(max-width:850px) {
  .commercial-theme .lead-detail-card .lead-detail-overview { grid-template-columns:minmax(0,1fr); }
  .commercial-theme .lead-detail-card .lead-detail-topic { grid-template-columns:minmax(0,1fr); gap:8px; }
}
@media(max-width:520px) {
  .commercial-theme .lead-detail-card { padding:16px; }
  .commercial-theme .lead-detail-card #lead-detail-title { font-size:21px; }
}

/* 061: compact facts and spacing on the company detail card. */
.commercial-theme .lead-detail-card .lead-detail-overview { grid-template-columns:minmax(300px,340px) minmax(0,1fr); gap:20px; margin-top:16px; }
.commercial-theme .lead-detail-card .lead-detail-facts { padding:14px; }
.commercial-theme .lead-detail-card .lead-detail-facts dl { display:grid; grid-template-columns:100px minmax(0,1fr); column-gap:12px; row-gap:8px; align-items:baseline; }
.commercial-theme .lead-detail-card .lead-detail-facts dt,
.commercial-theme .lead-detail-card .lead-detail-facts dd { margin:0; overflow-wrap:anywhere; line-height:1.45; }
.commercial-theme .lead-detail-card .lead-detail-narrative h3:not(:first-child) { margin-top:18px; }
.commercial-theme .lead-detail-card .lead-detail-topics { gap:8px; margin-top:18px; }
.commercial-theme .lead-detail-card .lead-detail-topic { padding:12px 14px; }
.commercial-theme .lead-detail-card .lead-detail-section { margin-top:18px; padding-top:14px; }
.commercial-theme .lead-detail-card li { margin:5px 0; }
@media(max-width:850px) {
 .commercial-theme .lead-detail-card .lead-detail-overview { grid-template-columns:minmax(0,1fr); gap:18px; }
 .commercial-theme .lead-detail-card .lead-detail-facts dl { grid-template-columns:minmax(100px,160px) minmax(0,1fr); }
}
@media(max-width:520px) {
 .commercial-theme .lead-detail-card .lead-detail-facts dl { grid-template-columns:100px minmax(0,1fr); column-gap:10px; }
}
