@font-face{font-family:'Inter Variable';font-style:normal;font-weight:100 900;font-display:swap;src:url('fonts/inter-latin-ext-wght-normal.woff2') format('woff2');unicode-range:U+0100-02FF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter Variable';font-style:normal;font-weight:100 900;font-display:swap;src:url('fonts/inter-latin-wght-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root {
  color-scheme: light;
  --ink: #252a34;
  --muted: #626b79;
  --line: #e5e8ed;
  --surface: #fff;
  --subtle: #f7f8fa;
  --canvas: #fff;
  --accent: #303846;
  --accent-dark: #1d2430;
  --accent-soft: #edf0f5;
  --nav: #f8f9fb;
  --nav-text: #626b79;
  --radius: 12px;
  --sidebar: 232px;
  --gutter: 36px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: .875rem/1.55 "Inter Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; font-optical-sizing: auto; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: var(--accent-dark); }
::selection { color: #252a34; background: #dce5f2; }
input, textarea { caret-color: var(--accent); }
:where(button, a, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
:where(h1, h2, h3, p, strong, small, a) { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: 1.5rem; font-weight: 650; line-height: 1.25; letter-spacing: -.035em; text-wrap: balance; }
h2 { margin: 0 0 8px; font-size: 1.125rem; font-weight: 650; letter-spacing: -.25px; line-height: 1.4; }
h3 { margin: 0 0 8px; font-size: 0.9375rem; font-weight: 650; line-height: 1.5; }
p { color: var(--muted); margin: 8px 0 0; max-width: 72ch; }
small { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 400; line-height: 1.6; }
label, legend { color: #505b6b; font-size: 0.8125rem; font-weight: 550; }
.ui-icon, .icon svg, .icon-button svg { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* One persistent navigation rail; the same destinations become a mobile drawer. */
#sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--sidebar); padding: 28px 16px 24px; background: var(--nav); color: #fff; display: flex; flex-direction: column; overflow-y: auto; }
.brand-row { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 12px; color: #fff; text-decoration: none; font-size: 29px; white-space: nowrap; line-height: 1.2; font-weight: 700; letter-spacing: -1.2px; }
.brand:hover { color: #fff; }
.brand-sub { display: block; margin-top: 5px; color: #626b79; font-size: 9px; letter-spacing: 3px; line-height: 1.2; font-weight: 550; }
.mark { display: grid; place-items: center; width: 40px; height: 44px; border-radius: 12px; background: #303846; color: #fff; }
.mark svg { width: 28px; height: 28px; }
.workspace { display: flex; align-items: center; gap: 10px; padding: 12px; margin: 30px 0 22px; border: 1px solid #e5e8ed; border-radius: 10px; font-size: 0.75rem; color: #303846; }
.workspace > b { display: grid; place-content: center; flex-shrink: 0; width: 32px; height: 34px; border: 1px solid #d9dee6; border-radius: 7px; background: #edf0f5; color: #505b6b; font-size: 0.6875rem; }
.workspace small { margin-top: 1px; color: #626b79; font-size: 0.6875rem; }
.workspace-dot { width: 6px; height: 6px; flex-shrink: 0; margin-left: auto; background: #237954; border-radius: 50%; }
#sidebar nav { display: grid; gap: 3px; }
.nav-label { padding: 16px 12px 8px; color: #707887; font-size: 0.625rem; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; }
.nav-label:first-child { padding-top: 0; }
#sidebar nav button { display: flex; align-items: center; gap: 12px; min-height: 46px; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--nav-text); text-align: left; font-size: 0.8125rem; transition: background 160ms ease, color 160ms ease; }
#sidebar nav button:hover { color: #fff; background: #edf0f5; }
#sidebar nav button.active { background: #e5eaf1; color: #252a34; font-weight: 650; }
#sidebar nav button.active::after { content: ""; width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: currentColor; }
#sidebar :focus-visible { outline-color: #e5eaf1; }
.icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; flex-shrink: 0; }
.foot { margin-top: auto; padding: 44px 12px 0; }
.foot-title { font-size: 0.8125rem; line-height: 1.6; color: #505b6b; max-width: 180px; }
.foot small { font-size: 0.6875rem; color: #626b79; margin-top: 6px; }
.workspace-label { display: block; padding-top: 16px; margin-top: 22px; border-top: 1px solid #e5e8ed; color: #626b79; font-size: 0.625rem; letter-spacing: 1.2px; }
main { min-width: 0; margin-left: var(--sidebar); min-height: 100dvh; }
header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding: 12px var(--gutter); background: var(--surface); border-bottom: 1px solid var(--line); }
.header-left, .header-actions { display: flex; align-items: center; gap: 16px; min-width: 0; }
.breadcrumb { color: var(--muted); font-size: 0.75rem; }
.breadcrumb span { margin: 0 12px; color: #8b94a1; }
.breadcrumb b { font-weight: 550; color: var(--ink); }
.region { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 0.75rem; }
.region i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.user-avatar { display: grid; place-content: center; width: 34px; height: 34px; background: #edf0f5; border: 1px solid var(--line); border-radius: 50%; color: #505b6b; font-size: 0.6875rem; font-weight: 650; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: #505b6b; }
.icon-button:hover { background: var(--accent-soft); }
#menu-toggle, #menu-close { display: none; }
#page { width: 100%; max-width: 1440px; margin: auto; padding: 36px var(--gutter) 64px; }
#page:focus { outline: none; }
.preview-banner { padding: 10px var(--gutter); border-bottom: 1px solid #d9e1ec; background: var(--accent-soft); color: #505b6b; font-size: .75rem; }
.intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.intro > div { min-width: 0; }
.intro p { margin-top: 10px; font-size: 0.875rem; }
.intro > .btn { flex-shrink: 0; }
.intro > .actions { margin: 0; flex-shrink: 0; }
.row, .tools, .actions { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.row > div, .row > strong, .row > h2 { min-width: 0; }
.actions { justify-content: flex-start; flex-wrap: wrap; margin: 20px 0; }
.actions h2 { margin: 0 auto 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; max-width: 100%; padding: 10px 16px; border: 1px solid #d9dee6; border-radius: 8px; background: var(--surface); color: #3f4a5a; font-size: 0.8125rem; font-weight: 600; line-height: 1.5; text-decoration: none; transition: background 160ms ease, border-color 160ms ease; }
.btn:hover { background: var(--subtle); border-color: #b3bdca; }
.btn:active { background: #e8ecf1; }
.btn .ui-icon { width: 17px; height: 17px; }
.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.primary:hover, .primary:active { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.pill, .badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--subtle); color: #626b79; font-size: 0.6875rem; font-weight: 550; line-height: 1.5; }
.badge { text-transform: capitalize; }
.badge.success { background: #eaf4ec; border-color: #d4e6d7; color: #296240; }
.badge.warning { background: #fcf4e4; border-color: #ecdfbd; color: #77561b; }
.badge.neutral { background: #f2f4f7; border-color: #e1e5eb; color: #626b79; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
/* Real workspace totals stay compact, leaving records as the primary content. */
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.metric { min-width: 0; padding: 20px 24px; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric label { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 500; }
.metric strong { display: inline-block; margin-top: 4px; font-size: 1.6875rem; line-height: 1.4; font-weight: 650; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.metric small { display: inline; margin-left: 10px; font-size: 0.75rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.sectionhead { padding: 20px 24px; }
.sectionhead h2 { font-size: 1rem; margin: 0; }
.sectionhead small { margin-top: 3px; }
.tools { padding: 16px 24px; justify-content: flex-start; flex-wrap: wrap; background: var(--subtle); border-block: 1px solid var(--line); gap: 10px; }
.tools input { flex: 1; min-width: 180px; }
.tools label { display: grid; gap: 5px; }
input, select, textarea { width: 100%; min-width: 0; max-width: 100%; min-height: 46px; border: 1px solid #d5dbe4; border-radius: 8px; padding: 10px 12px; color: var(--ink); background: var(--surface); font-size: 0.875rem; line-height: 1.6; }
input::placeholder, textarea::placeholder { opacity: 1; color: #6d7786; }
input:hover, select:hover, textarea:hover { border-color: #a0acbd; }
input[type=checkbox] { min-height: 0; accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; margin: 0; }
input[type=file] { padding: 9px; font-size: 0.75rem; }
input[type=file]::file-selector-button { margin-right: 10px; border: 0; border-radius: 5px; padding: 5px 10px; color: var(--ink); background: #edf0f5; font: inherit; }
textarea { resize: vertical; min-height: 108px; }
select { cursor: pointer; }
.tools select { width: auto; max-width: 220px; }
.scroll { overflow-x: auto; border-radius: 0 0 var(--radius) var(--radius); }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.8125rem; }
td, th { padding: 15px 20px; border-bottom: 1px solid #edf0f5; }
th { background: var(--subtle); color: #626b79; font-size: 0.6875rem; font-weight: 550; white-space: nowrap; }
td { color: var(--muted); }
tbody tr[data-id] { cursor: pointer; }
tbody tr:hover { background: #f8f9fb; }
tbody tr:last-child td { border-bottom: 0; }
.name { display: flex; gap: 12px; align-items: center; min-width: 220px; max-width: 360px; }
.name b { display: block; color: var(--ink); font-size: 0.8125rem; font-weight: 600; line-height: 1.5; }
.company-link { border: 0; background: transparent; color: var(--ink); font-weight: 600; text-align: left; padding: 6px 0; margin: -6px 0; min-height: 44px; line-height: 1.5; }
.company-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.name small { font-size: 0.6875rem; margin-top: 2px; }
.avatar { display: grid; place-content: center; flex-shrink: 0; width: 38px; height: 40px; border-radius: 9px; color: #505b6b; background: var(--bg, #f0f2f6); font-size: 0.75rem; font-weight: 600; }
.score { display: inline-block; font-variant-numeric: tabular-nums; font-size: 0.75rem; font-weight: 650; color: #2c6042; background: #eaf3e8; border-radius: 5px; padding: 4px 9px; }
.profile-open { width: 44px; padding: 10px; }
.end { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.75rem; }
.end > div { display: flex; gap: 8px; }
.end .btn { min-width: 44px; }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-height: 220px; padding: 36px 24px; text-align: center; color: var(--muted); }
.empty > .ui-icon { box-sizing: content-box; width: 24px; height: 24px; margin-bottom: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; color: #626b79; background: var(--subtle); }
.empty h3 { color: var(--ink); margin: 0; }
.empty p { max-width: 48ch; margin-top: 6px; font-size: 0.8125rem; }
.empty small { margin-top: 8px; }
.cards { padding: 0 24px; }
.card { padding: 24px 0; border-top: 1px solid var(--line); }
.card:first-child { border-top: none; }
.card strong { display: block; font-size: 0.875rem; color: var(--ink); }
.card small { margin-top: 5px; }
.card small > .ui-icon { width: 14px; height: 14px; }
.card p { font-size: 0.8125rem; }
.card .row { align-items: flex-start; }
.card .actions { margin-bottom: 0; }
.card .pill, .card .badge { flex-shrink: 0; }
.note { margin-top: 24px; color: var(--muted); font-size: 0.75rem; }
.sub { font-size: 0.75rem; color: var(--muted); }
form { display: grid; gap: 20px; }
form label { display: grid; gap: 8px; }
form .profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
form > .btn { justify-self: start; }
.check-label { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 0; font-weight: 400; }
.check-label input { margin-top: 3px; }
/* Discovery follows the work: brief on the left, evidence sources beside it. */
.discovery-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin: -6px 0 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.75rem; }
.discovery-summary strong { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.discovery-summary small { margin-left: auto; font-size: 0.75rem; }
.discovery { padding: 0; gap: 0; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); }
.discovery-main { min-width: 0; }
.discovery section { padding: 24px 28px; }
.discovery-main section + section { border-top: 1px solid var(--line); }
.discovery section h2 { font-size: 1rem; }
.discovery section > p { margin: 5px 0 0; font-size: 0.8125rem; }
.discovery .profile-grid { margin-top: 20px; }
.discovery-sources { border-left: 1px solid var(--line); background: #fafbfc; border-radius: 0 var(--radius) 0 0; }
.source-picks { display: grid; gap: 10px; margin: 20px 0 14px; }
.source-picks label { display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); cursor: pointer; transition: border-color 160ms ease, background 160ms ease; }
.source-picks label:hover { border-color: #b4bfcd; }
.source-picks label:has(input:checked) { background: #f0f3f8; border-color: #a6b3c4; }
.source-picks span { font-size: 0.8125rem; font-weight: 600; }
.source-picks small { font-size: 0.6875rem; margin-top: 2px; color: #626b79; }
.source-picks input { width: 17px; height: 17px; }
@media (pointer: coarse) { .discovery .actions button.pill { min-height: 44px; } }
.discovery section > small { font-size: 0.75rem; }
.suggestion-label { display: block; margin-top: 20px; color: var(--muted); font-size: 0.75rem; }
.discovery .actions { margin: 8px 0 0; gap: 7px; }
.discovery .actions .pill { min-height: 36px; padding: 7px 10px; cursor: pointer; background: var(--surface); color: #505b6b; }
.discovery .actions .pill:hover { color: var(--accent-dark); border-color: var(--accent); background: var(--accent-soft); }
.discovery-automation { grid-column: 1 / -1; padding: 20px 28px; border-top: 1px solid var(--line); }
summary { cursor: pointer; font-size: 0.8125rem; font-weight: 600; color: #505b6b; min-height: 44px; padding: 10px 0; }
summary small { display: block; margin-left: 16px; font-weight: 400; }
details[open] > summary { margin-bottom: 12px; }
.discovery-automation > .profile-grid { margin-top: 8px; }
.discovery-automation > .check-label { margin: 16px 0; }
.discovery-automation > small { margin-top: 10px; }
.discovery-submit { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 20px 28px; border-top: 1px solid var(--line); background: var(--subtle); border-radius: 0 0 var(--radius) var(--radius); }
.discovery-submit .primary { min-width: 180px; }
.discovery-submit small { max-width: 38ch; }
#discovery-results { margin-top: 28px; scroll-margin-top: 90px; }
#discovery-results .panel + .panel { margin-top: 16px; }
.research-summary { padding: 20px 24px; background: var(--accent-soft); }
.research-summary strong { color: #3f4a5a; }
.research-summary p, .research-summary small { color: #505b6b; }
.research-query { margin-top: 8px; }
.source-scope { margin: 14px 0 0; font-size: .8125rem; color: var(--ink); }
.research-summary h2 { margin-bottom: 12px; }
.research-summary p + p { margin-top: 16px; }
.research-source-detail { display: block; margin-top: 4px; max-width: 75ch; }
.research-summary details { margin-top: 14px; }
.research-summary ul { padding-inline-start: 20px; margin: 10px 0 0; }
.research-summary li + li { margin-top: 8px; }
.research-summary li, .research-source-detail { overflow-wrap: anywhere; }
.discovery-recovery { padding: 0 24px 24px; }
.discovery-recovery p { max-width: 70ch; margin: 0 0 20px; }
.discovery-recovery .actions { gap: 12px; margin-bottom: 0; }
.catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0 0 28px; }
.source-card { display: flex; flex-direction: column; padding: 24px; }
.source-card .source-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.source-monogram { display: grid; place-content: center; flex-shrink: 0; width: 42px; height: 44px; border-radius: 9px; border: 1px solid var(--line); background: #f0f2f6; color: #505b6b; font-size: 0.875rem; font-weight: 650; }
.source-card h2 { font-size: 1rem; margin-bottom: 3px; }
.source-card .badge { font-size: 0.625rem; }
.source-card p { font-size: 0.8125rem; margin-top: 0; }
.source-card > small { margin-top: 12px; }
.source-card form { margin-top: 20px; gap: 12px; }
.source-card form .btn { justify-self: start; }
.source-card details { margin-top: 20px; padding-top: 10px; border-top: 1px solid var(--line); }
.sync-result { margin-top: 14px; overflow-wrap: anywhere; font-size: 0.8125rem; }
.sync-result:empty { display: none; }
/* Pipeline and campaign records share the same task and state vocabulary. */
#pipeline-filters { grid-template-columns: 2fr 1fr 1fr auto; padding: 20px; margin-bottom: 24px; gap: 12px; align-items: end; }
#pipeline-filters .btn { min-height: 46px; }
#pipeline-rows > .cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0; }
#pipeline-rows .card { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); min-width: 0; }
#pipeline-rows .company-link { font-size: 0.9375rem; font-weight: 600; }
#pipeline-rows .row { gap: 16px; }
#pipeline-rows .card p { white-space: pre-line; }
#pipeline-rows .empty { grid-column: 1 / -1; }
.pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.pagination .actions { margin: 0; }
#campaign-feed { padding: 0 24px; }
#campaign-feed .card { padding: 24px 0; }
#campaign-feed h2 { font-size: 1.0625rem; margin: 0; }
.campaign-stats { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 14px 0; margin-top: 12px; border-block: 1px solid var(--line); }
.campaign-stats span { color: var(--muted); font-size: 0.75rem; }
.campaign-stats strong { display: inline; margin-right: 5px; color: var(--ink); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.campaign-detail:not(:empty) { margin-top: 20px; padding: 20px; background: var(--subtle); border: 1px solid var(--line); border-radius: 10px; }
.campaign-edit label { display: grid; }
.campaign-edit .check-label { display: flex; }
.warning-note { color: #77561b !important; background: #fcf4e4; padding: 10px 12px; border-radius: 7px; font-size: 0.75rem; }
.history-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.history-row small { grid-column: 1 / -1; }
/* Status rows keep source configuration distinct from a provider response. */
#ops { padding: 0; }
.ops-section { padding: 24px; border-top: 1px solid var(--line); }
.ops-section:first-child { border: 0; }
.ops-section h2 { margin-bottom: 16px; font-size: 1rem; }
.ops-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid #edf0f5; }
.ops-row:last-child { border: 0; padding-bottom: 0; }
.ops-row strong { display: block; font-size: 0.8125rem; font-weight: 550; }
.ops-row small { margin-top: 4px; }
.ops-queue { display: flex; flex-wrap: wrap; gap: 16px 32px; }
.ops-queue > div { min-width: 80px; }
.ops-queue strong { display: block; font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.ops-queue small { text-transform: capitalize; }
.ops-footer { padding: 20px 24px; border-top: 1px solid var(--line); background: var(--subtle); border-radius: 0 0 var(--radius) var(--radius); }
dialog { width: min(780px, calc(100vw - 40px)); max-height: calc(100dvh - 48px); overflow: hidden; border: 0; border-radius: 16px; padding: 0; color: var(--ink); background: var(--surface); box-shadow: 0 24px 90px #00000040; }
dialog[open] { display: flex; flex-direction: column; }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-shrink: 0; padding: 24px 28px; border-bottom: 1px solid var(--line); }
#dialog-heading { min-width: 0; }
#modal { padding: 24px 28px 28px; overflow-y: auto; min-height: 0; }
dialog::backdrop { background: #161c2b70; }
dialog h2 { margin: 0; font-size: 1.5rem; letter-spacing: -.025em; }
dialog .close { width: 44px; height: 44px; margin: -4px -8px -4px 0; }
#modal > p { margin-bottom: 24px; }
#modal > .profile-reference { margin-bottom: 16px; }
.profile-actions { margin: 16px 0 24px; }
.profile-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, .6fr); gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); font-size: 0.8125rem; }
.profile-summary h3 { font-size: 0.8125rem; margin-bottom: 8px; }
.profile-summary summary { padding-top: 0; }
.profile-summary summary .score { margin-left: 6px; }
.contact-record { padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-record:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-record:first-of-type { padding-top: 0; }
.contact-record strong { display: block; overflow-wrap: anywhere; font-weight: 550; }
.contact-record > a { display: inline-block; margin-top: 5px; }
.profile-signals summary { padding: 0; }
.profile-signals summary .pill { margin-left: 8px; }
#modal form { margin-top: 20px; }
#modal .pill { white-space: normal; }
.block { padding: 24px 0; border-top: 1px solid var(--line); font-size: 0.8125rem; }
.block h3 { font-size: 0.875rem; margin-bottom: 10px; }
.block p { margin-top: 10px; }
.block .actions { margin-bottom: 0; }
#enrichment-status { margin: 4px 0 24px; padding: 16px; border: 1px solid #d9e1ec; border-radius: 9px; background: var(--accent-soft); color: #505b6b; }
#website-editor { display: grid; gap: 16px; }
#website-editor > .btn { justify-self: start; }
#toast { position: fixed; bottom: 24px; left: calc(50% + var(--sidebar) / 2); transform: translateX(-50%); z-index: 100; display: none; max-width: min(560px, 90vw); padding: 14px 20px; border-radius: 10px; color: #fff; background: #303846; box-shadow: 0 8px 28px #00000026; font-size: 0.8125rem; }
.loading { display: flex; flex-direction: column; justify-content: center; gap: 20px; min-height: 200px; padding: 32px 24px; color: var(--muted); font-size: 0.8125rem; }
.loading-lines { display: grid; gap: 12px; width: min(100%, 520px); }
.loading-lines i { display: block; height: 13px; border-radius: 4px; background: #edf0f5; animation: pulse 1.3s ease-in-out infinite alternate; }
.loading-lines i:nth-child(2) { width: 86%; }
.loading-lines i:nth-child(3) { width: 65%; }
@keyframes pulse { to { opacity: .45; } }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 200; background: var(--surface); padding: 12px; border-radius: 8px; }
.skip-link:focus { top: 10px; }
.sidebar-backdrop { display: none; }
.contact-count { display: flex; gap: 6px; flex-wrap: wrap; }
.contact-count .badge { white-space: nowrap; }
.auth-panel { max-width: 500px; margin: 8vh auto 0; padding: 36px; }
.auth-panel .auth-icon { display: grid; place-content: center; width: 52px; height: 52px; margin-bottom: 24px; border-radius: 12px; color: var(--accent); background: var(--accent-soft); }
.auth-panel h1 { font-size: 1.625rem; }
.auth-panel p { margin-top: 12px; font-size: 0.875rem; }
.auth-panel form { margin-top: 28px; }
.auth-panel .primary { width: 100%; }
.auth-panel .auth-note { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.inline-error { color: #922f2f; background: #fceeee; padding: 12px; border-radius: 8px; font-size: 0.8125rem; }
@media (min-width: 1700px) { :root { --gutter: 48px; } }
@media (max-width: 1200px) {
  :root { --sidebar: 220px; --gutter: 28px; }
  .discovery { grid-template-columns: 1fr; }
  .discovery-sources { border-left: 0; border-top: 1px solid var(--line); border-radius: 0; }
  .source-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { padding: 20px; }
  .metric small { display: block; margin: 0; }
  #pipeline-filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  :root { --sidebar: 232px; --gutter: 24px; }
  main { margin-left: 0; }
  #sidebar { transform: translateX(-100%); visibility: hidden; transition: transform 180ms ease, visibility 180ms; width: min(var(--sidebar), calc(100vw - 56px)); }
  body.nav-open { overflow: hidden; }
  body.nav-open #sidebar { transform: translateX(0); visibility: visible; }
  #menu-toggle, #menu-close { display: inline-flex; }
  #menu-close { width: 44px; height: 44px; background: transparent; color: #505b6b; border-color: #d9dee6; }
  .brand { gap: 10px; padding-left: 6px; font-size: 27px; }
  .mark { width: 36px; height: 40px; }
  .brand-sub { font-size: 8px; }
  .region { display: none; }
  body.nav-open .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 35; background: #161c2b70; border: 0; }
  #toast { left: 50%; }
  #page { padding-top: 28px; }
}
@media (max-width: 680px) {
  :root { --gutter: 20px; }
  body { font-size: 0.875rem; }
  header { min-height: 64px; padding-block: 10px; }
  .header-left, .header-actions { gap: 10px; }
  .breadcrumb { font-size: 0.75rem; }
  .breadcrumb span { margin: 0 7px; }
  h1 { font-size: 1.625rem; letter-spacing: -.65px; }
  .intro { align-items: flex-start; flex-wrap: wrap; gap: 20px; margin-bottom: 24px; }
  .intro p { font-size: 0.875rem; }
  .intro > .btn { min-height: 44px; }
  input, select, textarea { font-size: 1rem; }
  .metrics { margin-bottom: 24px; }
  .metric { padding: 16px 12px; }
  .metric label { font-size: 0.6875rem; line-height: 1.4; }
  .metric strong { margin-top: 8px; font-size: 1.5rem; }
  .metric small { font-size: 0.6875rem; }
  .tools, .sectionhead { padding: 16px; }
  .discovery-recovery { padding: 0 16px 16px; }
  .tools input { flex-basis: 100%; }
  .tools select { flex: 1; min-width: 100px; max-width: none; }
  .tools .btn { padding-inline: 12px; }
  .tools label { width: 100%; }
  .tools label input { width: 100%; }
  .discovery section, .discovery-automation, .discovery-submit { padding: 22px 20px; }
  .discovery .profile-grid { gap: 18px; }
  .discovery .actions .pill { min-height: 44px; }
  .source-picks { grid-template-columns: 1fr; }
  .discovery-submit { flex-direction: column; align-items: stretch; }
  .discovery-submit .primary { width: 100%; }
  .discovery-summary { gap: 6px 20px; }
  .discovery-summary small { margin: 4px 0 0; width: 100%; }
  .catalog { grid-template-columns: 1fr; gap: 16px; }
  .source-card { padding: 22px 20px; }
  form .profile-grid, #pipeline-filters { grid-template-columns: 1fr; }
  #pipeline-filters { padding: 18px; }
  #pipeline-filters .btn { width: 100%; }
  #pipeline-rows > .cards { grid-template-columns: 1fr; }
  #pipeline-rows .card { padding: 20px; }
  .cards, #campaign-feed { padding-inline: 20px; }
  .row { flex-wrap: wrap; }
  .card .row { gap: 10px; }
  .ops-section { padding: 22px 20px; }
  .ops-row { gap: 12px; flex-wrap: wrap; }
  .ops-footer { padding: 20px; }
  .ops-queue { gap: 16px 24px; }
  .end { padding: 16px; }
  dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 14px; }
  .dialog-header { padding: 22px 20px; gap: 12px; }
  #modal { padding: 20px; }
  dialog h2 { font-size: 1.375rem; }
  .block { padding: 22px 0; }
  .profile-summary { grid-template-columns: 1fr; gap: 16px; }
  .auth-panel { padding: 28px 22px; margin-top: 24px; }
  .user-avatar { display: none; }
  /* Preserve table semantics while presenting each company as a labelled record. */
  .scroll { overflow: visible; }
  table, tbody { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; padding: 20px 16px; border-bottom: 1px solid var(--line); position: relative; }
  tbody tr:last-child { border-bottom: 0; }
  td { display: block; min-width: 0; padding: 0; border: 0; font-size: 0.75rem; }
  td[data-label]::before { display: block; content: attr(data-label); color: #626b79; font-size: 0.6875rem; margin-bottom: 6px; }
  td:first-child { grid-column: 1 / -1; padding-right: 38px; }
  td:last-child { position: absolute; top: 20px; right: 12px; }
  td .name { min-width: 0; max-width: none; align-items: flex-start; }
  td .name b { font-size: 0.875rem; }
  td .name small { overflow-wrap: anywhere; }
  .company-link { min-height: 44px; padding: 0 0 6px; margin: 0; }
  .profile-open { border: 0; background: transparent; }
}
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .breadcrumb { font-size: 0.6875rem; }
  .metric { padding: 14px 8px; }
  .metric label { font-size: 0.625rem; }
  .metric small { font-size: 0.625rem; }
  .intro > .btn { width: 100%; }
  .discovery section, .discovery-automation, .discovery-submit { padding-inline: 16px; }
  .card .row { display: block; }
  .card .row > .badge { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .btn, .badge, .pill, .panel, .source-picks label { border-color: CanvasText; }
  #sidebar nav button.active, .source-picks label:has(input:checked) { outline: 2px solid Highlight; }
}
/* Public evidence and reviewed outreach extend the existing workspace patterns. */
/* Connection editors and the source library share the existing control system. */
[hidden] { display:none !important; }
.connection-layout { display:grid; grid-template-columns:240px minmax(0,1fr); gap:24px; align-items:start; }
.connection-menu { padding:8px; }
.connection-menu button { display:block; text-align:left; width:100%; padding:14px 16px; border:0; background:transparent; border-radius:8px; color:var(--ink); cursor:pointer; }
.connection-menu button small { display:block; margin-top:4px; }
.connection-menu button.selected { background:var(--accent-soft); }
.connection-editor { padding:28px; scroll-margin-top:90px; }
.connection-editor h2 { margin:0 0 12px; }
.connection-editor > p { max-width:65ch; margin-bottom:24px; }
.settings-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin:24px 0; }
.setting-field { min-width:0; }
.setting-field > small { display:block; margin-top:8px; }
.setting-origin { color:var(--muted); }
.remove-secret { margin:12px 0 0; }
.settings-notice { padding:24px; margin-bottom:24px; }
.source-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 24px; }
.source-record-filters { padding:24px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-bottom:24px; }
.source-record-filters .btn { grid-column:1/-1; justify-self:start; }
.source-excerpt { max-width:75ch; display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }
.evidence-link { display:inline-flex;align-items:center;gap:4px; }
.evidence-link .ui-icon { width:14px;height:14px; }
#source-auth-fields { display:grid; gap:16px; margin:24px 0; }
#research-source-form > label { margin:16px 0; }
@media(max-width:1100px){.settings-fields,.source-record-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.connection-layout{grid-template-columns:210px minmax(0,1fr);gap:20px}}
@media(max-width:760px){.connection-layout{grid-template-columns:1fr}.connection-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.connection-menu button{padding:12px}.connection-editor{padding:22px}.settings-fields,.source-record-filters{grid-template-columns:1fr}.source-record-filters{padding:20px}.source-tabs>.btn{flex:1 1 auto}}
.prospect-tabs { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:20px; }
.people-filters { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; padding:20px; margin-bottom:24px; }
.people-filters > .btn { grid-column:1/-1; }
.outreach-connection,.outreach-create { padding:24px; margin-bottom:24px; }
.outreach-connection h2 { margin:0; font-size:1rem; }
.outreach-connection > small { margin-top:12px; }
.outreach-create form { margin-top:16px; }
#outreach-messages { margin-top:24px; scroll-margin-top:90px; }
.message-subject { margin-top:20px; }
.message-preview { white-space:pre-wrap; }
#review-outreach textarea { min-height:220px; }
@media(max-width:1100px){.people-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.people-filters{grid-template-columns:1fr;padding:18px}.outreach-connection,.outreach-create{padding:20px}}

/* Natural-language discovery extends the operational search vocabulary. */
.lead-search{margin:24px 0 28px;padding:28px 0 30px;border-bottom:1px solid var(--line,#e5e8ed)}
.lead-search form{display:block}
.lead-search label{font-size:1.375rem;font-weight:650;color:var(--ink,#252a34);margin-bottom:16px}
.lead-search-field{display:flex;gap:12px;align-items:center;padding:8px 8px 8px 18px;background:#fff;border:1px solid #c8d1de;border-radius:14px}
.lead-search-field>svg{width:24px;height:24px;flex:none;color:#303846}
.lead-search-field input{flex:1;min-width:0;border:0;padding:10px 0;font-size:1.125rem;background:transparent;box-shadow:none}
.lead-search-field:focus-within{outline:2px solid #303846;outline-offset:3px}
.lead-search-field input:focus-visible{outline:2px solid #303846;outline-offset:2px}
.lead-search-field .btn{min-height:50px;flex:none}
.lead-search p{max-width:75ch;font-size:.8125rem;line-height:1.65;margin:12px 0;color:#626b79}
.search-examples{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:16px 0}
.search-examples>span{font-size:.8125rem;color:#626b79}
.search-examples .pill{min-height:36px;white-space:normal;text-align:left}
#search-interpretation:not(:empty){margin:20px 0 12px;font-weight:600;line-height:1.65}
.lead-search #search-error:not(:empty){color:#9c3026;margin-top:14px;max-width:75ch;line-height:1.6}
.text-action{background:none;border:0;text-decoration:underline;text-underline-offset:3px;color:#1d2430;cursor:pointer;min-height:44px;padding:8px;font:inherit;font-weight:600}
.search-refinements>summary{font-weight:600;min-height:48px;padding:12px 0;cursor:pointer}
.search-refinements .discovery{margin-top:14px}
.discovery-filters{padding:24px;display:grid;gap:12px;border-top:1px solid #e5e8ed}
.discovery-filters h2{font-size:1.125rem;margin:0 0 4px}
.discovery-filters>label:not(.check-label){max-width:220px}
.business-facts{display:grid;gap:6px;margin:12px 0}
.business-facts small{overflow-wrap:anywhere}
@media(max-width:680px){.lead-search{padding:12px 0 24px;margin-top:12px}.lead-search label{font-size:1.25rem}.lead-search-field{flex-wrap:wrap;gap:8px;padding:12px}.lead-search-field input{font-size:1rem;min-height:46px;width:calc(100% - 40px)}.lead-search-field .btn{width:100%}.search-examples .pill{min-height:44px}.discovery-filters{padding:20px}}

.coverage-progress{margin:20px 0;padding:24px}
.coverage-progress h2{font-size:1.125rem;margin:0}
.coverage-progress p{max-width:75ch;line-height:1.65;margin:12px 0}
.coverage-progress .coverage-state{font-weight:600;color:#1d2430;margin:6px 0 0}
.coverage-progress .row{align-items:flex-start;gap:12px}
.coverage-meter{display:grid;gap:10px;margin:20px 0 10px;font-weight:600}
.coverage-meter progress{width:100%;height:12px;accent-color:#303846}
.coverage-counts,.coverage-note,.coverage-progress>small{color:#626b79;font-size:.8125rem}
.coverage-progress .actions{margin:18px 0}
.coverage-progress details{margin:16px 0}
.coverage-progress li{line-height:1.65;overflow-wrap:anywhere}
.coverage-progress>small{display:block;margin-top:18px;line-height:1.6}
.result-range{font-size:.8125rem;color:#626b79;margin:4px 0 20px}
.result-pages{margin-top:24px}
@media(max-width:680px){.coverage-progress{padding:20px}.coverage-progress .row{align-items:flex-start}.coverage-progress .row>.badge{white-space:normal;max-width:110px}.coverage-progress .actions .btn{flex:1 1 auto}}

/* The workspace's neutral system, shared by every operational surface. */
html{scroll-padding-top:78px;scrollbar-color:#b8c0cc #f8f9fb;scrollbar-width:thin}
body{background:#fff}
small{font-size:.8125rem}
h1{font-weight:600;line-height:1.3}
h2,h3{font-weight:600;letter-spacing:-.02em}
a{color:#385d85}
a:hover{color:#223d5d}
:where(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid #4b6b96;outline-offset:3px}
#sidebar{padding:24px 14px 18px;border-right:1px solid var(--line);overflow:hidden;color:var(--ink)}
.brand{font-family:'Inter Variable',sans-serif;font-size:22px;color:var(--ink);font-weight:650;letter-spacing:-.04em;gap:10px;padding:0 12px}
.brand:hover{color:var(--ink)}
.brand-sub{font-size:11px;letter-spacing:.025em;margin-top:3px;font-weight:500;text-transform:capitalize}
.mark{height:34px;width:34px;border-radius:9px;background:var(--ink);color:#fff}
.mark svg{width:24px;height:24px}
.workspace{margin:24px 0 20px;padding:10px;border-color:var(--line);background:#fff;gap:9px;font-size:.75rem}
.workspace>b{width:28px;height:28px;background:#f2f4f7;border:0;font-weight:600}
.workspace small{font-size:.6875rem}
.workspace-dot{display:none}
#sidebar nav{display:block;flex:1;min-height:120px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:0 2px 10px}
.nav-label{font-size:.75rem;text-transform:none;letter-spacing:0;font-weight:500;padding:18px 12px 7px;color:#626b79}
#sidebar nav button{min-height:44px;font-size:.8125rem;font-weight:450;padding:10px 12px;gap:11px;margin:2px 0;border-radius:7px;color:#606b7c}
#sidebar nav button:hover{color:var(--ink);background:#eef1f5}
#sidebar nav button.active{background:#e9edf3;color:#283d59;font-weight:550}
#sidebar nav button.active::after{display:none}
#sidebar :focus-visible{outline-color:#4b6b96}
.icon,.ui-icon{width:18px;height:18px}
.foot{flex:none;margin-top:12px;padding:14px 12px 0;border-top:1px solid var(--line)}
.foot small{margin:0;font-size:.6875rem}
.workspace-label{padding:5px 0 0;margin:0;border:0;font-size:.6875rem;letter-spacing:0}
header{min-height:64px;padding-block:9px;background:#fff}
.breadcrumb{font-size:.8125rem}
.breadcrumb span{margin:0 9px}
.region{font-size:.75rem}.region i{display:none}
.user-avatar{width:30px;height:30px;border-radius:8px;background:#f2f4f7}
.icon-button{border-color:transparent;border-radius:7px;width:44px;height:44px}
.icon-button:hover{background:#f0f3f7}
#page{padding-top:28px;max-width:1480px}
.intro{margin-bottom:24px;gap:18px}
.intro p{margin-top:7px;font-size:.8125rem;color:var(--muted)}
.btn{border-radius:7px;border-color:#d8dfe8;color:#434e60;font-weight:500;padding:9px 14px;transition:background 140ms ease,border-color 140ms ease,transform 140ms cubic-bezier(.16,1,.3,1)}
.btn:hover{background:#f7f9fc;border-color:#b9c5d5}
.btn:active:not(:disabled){transform:translateY(1px);background:#edf1f6}
.btn.primary{background:#303846;border-color:#303846;color:#fff}
.btn.primary:hover{background:#202734;border-color:#202734}
.btn.primary:active{background:#151c28;transform:translateY(1px)}
.btn.primary:disabled{opacity:.7}
.kitchen-dynamic{overflow:hidden}
.dynamic-content{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:0;max-width:100%;pointer-events:none}
.kitchen-resizing .dynamic-content{flex-shrink:0;white-space:nowrap;max-width:none}
.btn:is(:hover,:focus-visible) .dynamic-content>.ui-icon{animation:icon-feedback 320ms cubic-bezier(.16,1,.3,1) 1}
.btn .ui-icon{width:16px;height:16px}
input,select,textarea{border-radius:7px;font-size:.875rem;min-height:44px;padding:10px 12px}
input:focus,select:focus,textarea:focus{border-color:#738eaf}
input[type=checkbox]{accent-color:#405875}
.pill,.badge{border-radius:5px;font-size:.6875rem;font-weight:450;background:#f6f8fb;border-color:#e3e8ef;color:#5a687b}
.badge.success{background:#eff7f2;border-color:#d7e9de;color:#286345}
.badge.warning{background:#fdf7eb;border-color:#eee0bf;color:#825c1e}
.badge.neutral{background:#f3f5f8;border-color:#e3e7ed;color:#5b6677}
.metrics{border:0;border-radius:0;margin:0 0 24px;border-block:1px solid var(--line);background:transparent}
.metric{padding:16px 20px}.metric:first-child{padding-left:0}
.metric strong{font-size:1.25rem;font-weight:550;margin:2px 0 0}
.metric label{font-size:.75rem}.metric small{font-size:.75rem}
.panel{border-radius:12px}
.sectionhead{padding:18px 20px}.sectionhead h2{font-size:.9375rem}
.tools{padding:12px 20px;background:#fafbfc;gap:10px}
td,th{padding:13px 16px}th{font-size:.75rem;font-weight:500;background:#fafbfc}
.name b,.company-link{font-weight:550}.avatar{background:#f1f3f7!important;color:#55657c;border-radius:8px}
.card strong{font-weight:550}.cards{padding:0 20px}.card{padding:20px 0}
.score{background:#f0f4f8;color:#3e5978;font-weight:550}
.empty>.ui-icon{background:#fafbfc;color:#718097;border-color:#e4e9f0;padding:10px;border-radius:10px}
.empty{min-height:190px}.empty p{font-size:.8125rem}
summary{font-weight:500}.note{font-size:.75rem}
dialog{border-radius:14px;box-shadow:0 22px 80px #1925382b}
dialog::backdrop{background:#18213560}
dialog h2{font-size:1.125rem;letter-spacing:-.02em}
.dialog-header{padding:20px 24px}.dialog-header .icon-button{border:0}
#modal{padding:20px 24px 24px}
.profile-summary{gap:20px}.profile-actions .btn{font-weight:500}
.connection-layout{grid-template-columns:220px minmax(0,1fr);gap:28px}
.connection-menu{border:0;border-radius:0;max-height:calc(100dvh - 220px);overflow:auto;padding:0 6px 0 0;position:sticky;top:88px;scrollbar-width:thin}
.connection-menu button{padding:12px;border-radius:7px;font-size:.8125rem;font-weight:500;min-height:50px}
.connection-menu button.selected{background:#edf1f6;color:#283d59}
.connection-menu button small{font-size:.6875rem;margin-top:3px}
.connection-editor{padding:24px;border-radius:12px}
.connection-editor>p{font-size:.8125rem;margin-bottom:22px}
.connection-editor h2{font-size:1rem;margin-bottom:8px}
.setting-field>small,.setting-origin{font-size:.75rem;line-height:1.6}
.settings-fields{gap:22px 20px}
.source-tabs,.prospect-tabs{gap:4px;border-bottom:1px solid var(--line);padding-bottom:12px}
.source-tabs .btn,.prospect-tabs .btn{border-color:transparent;background:transparent}
.source-tabs .primary,.prospect-tabs .primary{background:#edf1f6;color:#283d59}
.source-picks{gap:6px}.source-picks label{min-height:54px;padding:9px 12px;border-radius:7px}
.source-picks label:has(input:checked){background:#f2f5f9;border-color:#b3c1d3}
.source-picks small{font-size:.75rem}
.source-card{padding:20px}.source-monogram{height:36px;width:36px;border-radius:8px;font-size:.75rem}
.source-card .badge{font-size:.6875rem}
.catalog{gap:16px}
.lead-search{margin:0 0 12px;padding:0;border:0}
.lead-search label{font-size:.8125rem;font-weight:500;margin-bottom:8px}
.lead-search-field{padding:5px 5px 5px 14px;border-color:#cdd6e3;border-radius:10px;gap:10px;background:#fff}
.lead-search-field>svg{width:20px;height:20px;color:#637994}
.lead-search-field input{font-size:.9375rem;padding:8px 0;min-height:44px}
.lead-search-field .btn{min-height:44px}
.lead-search-field:focus-within{outline:2px solid #738eaf;outline-offset:2px}
.lead-search-field input:focus-visible{outline:none}
.lead-search p{font-size:.75rem;margin:8px 0;line-height:1.6}
.lead-search .maps-readiness[hidden]{display:none}
.search-examples{gap:6px;margin:8px 0}
.search-examples>span{font-size:.75rem}
.search-examples .pill{background:transparent;border-color:transparent;border-bottom-color:#e2e7ee;border-radius:0;padding:5px 6px;min-height:34px;font-size:.75rem}
.search-examples .pill:hover{border-color:#d3dce8;border-radius:5px;background:#f8fafc}
#search-interpretation:not(:empty){display:inline;font-size:.75rem;font-weight:500;line-height:1.6;margin:0}
.lead-search .maps-readiness{display:inline;margin-left:16px;font-size:.75rem}
.text-action{font-size:inherit;font-weight:500;text-decoration:none;border-bottom:1px solid #c9d5e4;min-height:32px;padding:5px 1px;color:#385d85}
.discovery-summary{font-size:.75rem;padding:0;margin:12px 0 8px;gap:18px;border:0}
.discovery-summary strong{font-weight:550}
.search-refinements>summary{min-height:44px;padding:10px 0;font-size:.8125rem}
.search-refinements{margin-bottom:12px}
.discovery section,.discovery-automation,.discovery-submit{padding:20px 24px}
.discovery .profile-grid{gap:16px;margin-top:16px}
.discovery-sources{background:#fafbfc}
#discovery-results{margin-top:20px}
.coverage-progress{margin:8px 0 20px;padding:16px 18px;background:#fafbfc;border-color:#e0e6ee;border-radius:10px}
.coverage-top{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.coverage-heading{min-width:0;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.coverage-progress h2{font-size:.8125rem;font-weight:550;margin:0}
.coverage-progress .coverage-state{font-size:.75rem;font-weight:450;color:#3d6383;margin:0}
.coverage-progress .actions{gap:6px;margin:0;flex-wrap:wrap}
.coverage-progress .actions .btn{min-height:38px;padding:7px 10px;font-size:.75rem;background:#fff}
.coverage-progress .actions .primary{background:#303846}
.coverage-summary{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}
.coverage-progress p{font-size:.75rem;margin:8px 0;line-height:1.55}
.coverage-progress .coverage-state-copy{margin:8px 0 0}
.coverage-meter{margin:10px 0 0;gap:5px;font-size:.75rem;font-weight:450}
.coverage-meter progress{height:5px;accent-color:#526f94}
.coverage-progress .coverage-counts{margin:0;color:#626b79;font-size:.75rem}
.coverage-progress details{border-top:1px solid var(--line);margin:12px 0 0;padding-top:2px}
.coverage-progress summary{font-size:.75rem;min-height:38px;padding:9px 0}
.coverage-progress details[open]>summary{margin:0}
.coverage-progress .coverage-note,.coverage-progress .coverage-attribution{font-size:.75rem;color:#626b79}
.coverage-progress ul{padding-left:18px;margin:8px 0}
.coverage-progress li{font-size:.75rem;margin:7px 0}
.coverage-progress .warning-note{margin:10px 0}
.coverage-progress .coverage-current{margin:0;font-size:.75rem}
.discovery-results-head{border-bottom:1px solid var(--line)}
.discovery-results-head .coverage-result-note{max-width:75ch}
.discovery-results-head .coverage-result-note:empty{display:none}
.result-range{padding:0 20px;font-size:.75rem;margin:12px 0}
.business-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;padding:17px 0}
.business-row .business-name{font-size:.875rem;font-weight:550;line-height:1.5}
.business-location{font-size:.75rem;margin-top:4px}
.business-side{text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.business-row .business-facts{display:flex;flex-wrap:wrap;gap:6px 18px;margin:8px 0 0}
.business-row .business-facts small{margin:0;font-size:.75rem}
.business-row .business-detail{grid-column:1/-1;font-size:.75rem}
.business-row .business-detail>summary{font-size:.75rem;min-height:34px;padding:5px 0;color:#626b79}
.business-row .business-detail p{font-size:.75rem;margin-top:4px}
.business-row .evidence-link{font-size:.75rem;min-height:32px}
.result-pages{padding:0 20px 18px;margin:10px 0 0}
.campaign-notices{margin:12px 0 0;border-top:1px solid var(--line)}
.campaign-notices>summary{font-size:.8125rem;color:#805e28}
#pipeline-rows>.cards{display:block;padding:0;border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}
#pipeline-rows .card{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(190px,.9fr);align-items:center;gap:20px;padding:14px 20px;border:0;border-bottom:1px solid var(--line);border-radius:0}
#pipeline-rows .card:last-child{border-bottom:0}
#pipeline-rows .card .row{gap:12px}
#pipeline-rows .company-link{font-size:.8125rem;font-weight:550;min-width:0}
#pipeline-rows .card p,#pipeline-rows .card small{margin:0;font-size:.75rem}
#pipeline-rows .card>p:last-child:not(:nth-child(2)){grid-column:1/-1}
[data-scroll-fade]{--fade-top:0px;--fade-bottom:0px;mask-image:linear-gradient(to bottom,transparent 0,#000 var(--fade-top),#000 calc(100% - var(--fade-bottom)),transparent 100%)}
.file-drop{position:relative;align-items:center;justify-items:center;border:1px dashed #bbc8d9;border-radius:10px;min-height:172px;padding:22px;text-align:center;background:#fafbfc;cursor:pointer;transform:translate(var(--file-x,0px),var(--file-y,0px));transition:transform 150ms cubic-bezier(.16,1,.3,1),background 150ms,border-color 150ms}
.file-drop:focus-within{outline:2px solid #4b6b96;outline-offset:3px}
.file-drop input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;height:100%;padding:0}
.file-drop small{font-size:.75rem}.file-drop [data-file-name]{overflow-wrap:anywhere;max-width:100%}
.file-drop [data-file-error]{color:#a33d3d;max-width:100%;position:relative}
.file-drop-icon{display:grid;place-items:center;height:36px;width:36px;border:1px solid #e0e7f0;border-radius:8px;background:#fff;color:#566f90}
.file-over{border-color:#718cae;background:#edf3fa}
.loading{min-height:160px;gap:12px;align-items:center;font-size:.8125rem}
.trace-loader{width:30px;height:30px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.8;color:#536c8c}
.trace-track{opacity:.15}.trace-stroke{stroke-dasharray:24 76;animation:logo-trace 1.4s linear infinite}
@keyframes logo-trace{to{stroke-dashoffset:-100}}
@keyframes icon-feedback{0%{opacity:.45;stroke-dasharray:24;stroke-dashoffset:12}100%{opacity:1;stroke-dasharray:24;stroke-dashoffset:0}}
@keyframes refresh-icon{to{transform:rotate(360deg)}}
:where(button,a):is(:hover,:focus-visible)>.ui-icon,:where(button,a):is(:hover,:focus-visible) .icon>.ui-icon{animation:icon-feedback 320ms cubic-bezier(.16,1,.3,1) 1}
[aria-busy=true]>svg{animation:refresh-icon 950ms linear infinite;transform-origin:center}
@media(min-width:961px) and (max-width:1200px){:root{--sidebar:216px}}
@media(max-width:1100px){.connection-layout{grid-template-columns:200px minmax(0,1fr);gap:20px}#pipeline-rows .card{grid-template-columns:1fr;gap:6px;padding:16px 18px}}
@media(max-width:960px){#menu-close{color:#505b6b;border-color:transparent}.brand{font-size:22px}.mark{width:34px;height:34px}.brand-sub{font-size:11px}#sidebar{overflow:hidden}.foot{padding-top:12px}#sidebar nav{min-height:80px}}
@media(max-width:760px){.connection-layout{grid-template-columns:1fr}.connection-menu{position:static;max-height:220px;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--line);padding:6px;border-radius:10px}.connection-editor{padding:20px}.coverage-top{gap:10px}}
@media(max-width:680px){body{font-size:1rem}#page{padding-top:22px}h1{font-size:1.375rem}.intro{margin-bottom:20px}.intro p{font-size:.875rem}.lead-search{padding:0;margin:0 0 12px}.lead-search label{font-size:.875rem}.lead-search-field{padding:8px 10px;gap:6px}.lead-search-field input{font-size:1rem;min-height:44px}.lead-search-field .btn{width:100%;min-height:44px;margin-top:3px}.search-examples{gap:4px}.search-examples .pill{min-height:44px;font-size:.75rem}.lead-search .maps-readiness{display:block;margin-left:0}.discovery-summary{margin:10px 0 6px;font-size:.75rem;gap:12px}.coverage-progress{padding:14px;margin:6px 0 18px}.coverage-top,.coverage-heading{gap:8px}.coverage-progress .actions{width:100%;gap:6px}.coverage-progress .actions .btn{min-height:44px;flex:1 1 auto;font-size:.75rem}.coverage-progress .coverage-state-copy{font-size:.8125rem}.coverage-progress .coverage-counts,.coverage-meter,.coverage-progress .coverage-current,.coverage-progress summary{font-size:.75rem}.business-row{gap:10px;grid-template-columns:minmax(0,1fr) auto}.business-side .pill{font-size:.625rem}.business-row .business-name{font-size:.875rem}.business-row .business-facts{gap:6px}.cards{padding-inline:16px}.sectionhead{padding:16px}.result-range{padding-inline:16px}.result-pages{padding-inline:16px}.metrics{margin-bottom:20px}.metric{padding:12px 10px}.metric strong{font-size:1.125rem}.metric:first-child{padding-left:0}.metric small{font-size:.6875rem}.dialog-header{padding:18px 20px}#modal{padding:18px 20px}.file-drop{min-height:156px}.source-tabs .btn{flex:1 1 auto}input,select,textarea{font-size:1rem}}
@media(prefers-reduced-motion:reduce){.trace-stroke{stroke-dasharray:none}.file-drop{transform:none}.btn:active:not(:disabled){transform:none}}
@media(forced-colors:active){[data-scroll-fade]{mask-image:none}.trace-loader{color:CanvasText}}
