/* Beacon Leads — calm, editorial, flat. Three colour tokens only. */
:root {
  --ivory: #F8F7F4;
  --navy: #0B1F2D;
  --slate: #94A3B8;
  --ink: var(--navy);
  --ink-2: rgba(11, 31, 45, 0.74);   /* secondary text (navy at reduced opacity; slate is too light for text) */
  --ink-3: rgba(11, 31, 45, 0.62);   /* labels, captions */
  --rule: var(--slate);
  --serif: "Iowan Old Style", "Charter", "Georgia", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ivory); color: var(--ink); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: var(--ink); }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
hr, .rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* top bar */
.top { display: flex; align-items: center; gap: 32px; padding: 18px 40px; border-bottom: 1px solid var(--rule); background: var(--ivory); position: sticky; top: 0; z-index: 5; }
.brand { font-family: var(--serif); font-size: 20px; letter-spacing: 0.01em; text-decoration: none; }
.nav { display: flex; gap: 24px; flex: 1; }
.nav a { text-decoration: none; color: var(--ink-2); padding: 4px 0; border-bottom: 1px solid transparent; }
.nav a.on, .nav a:hover { color: var(--ink); border-bottom-color: var(--navy); }
.top .who { color: var(--ink-3); font-size: 13px; }
.notice { padding: 8px 40px; font-size: 12px; color: var(--ink-2); border-bottom: 1px solid var(--rule); }

/* layout */
.wrap { max-width: 1320px; margin: 0 auto; padding: 40px; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 64px; }
.side > section { padding: 22px 0; border-top: 1px solid var(--rule); }
.side > section:first-child { border-top: 0; padding-top: 0; }
.side h3 { margin: 0 0 12px; }

/* home */
.hero-count { font-family: var(--serif); font-size: 76px; line-height: 1; margin: 6px 0 10px; font-weight: 400; letter-spacing: -0.01em; }
.hero-count .num { font-family: var(--serif); }
.intro { max-width: 640px; color: var(--ink-2); margin: 0 0 12px; font-size: 16px; }
.profile-line { font-size: 13px; color: var(--ink-2); margin-bottom: 30px; }
.lists { border-top: 1px solid var(--rule); }
.list-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 160px; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.list-row .code { font-family: var(--mono); color: var(--ink-3); padding-top: 4px; }
.list-row h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 0 0 4px; }
.list-row p { margin: 0 0 12px; color: var(--ink-2); max-width: 560px; }
.list-row .count { font-family: var(--mono); font-size: 34px; text-align: right; line-height: 1.1; }
.list-row .count small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.list-row.soon { opacity: 0.7; }
.actions { display: flex; gap: 18px; align-items: center; }

/* buttons */
.btn { display: inline-block; background: var(--navy); color: var(--ivory); border: 1px solid var(--navy); padding: 8px 16px; text-decoration: none; cursor: pointer; font-size: 14px; border-radius: 2px; }
.btn.ghost { background: transparent; color: var(--navy); }
.btn:disabled { opacity: .5; cursor: default; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--ink); font-size: 14px; }

/* sidebar bits */
.kv { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; }
.kv .num { color: var(--ink); }
.bar-row { display: grid; grid-template-columns: 34px 1fr 64px; gap: 10px; align-items: center; font-size: 13px; padding: 4px 0; }
.bar { height: 6px; background: transparent; border: 1px solid var(--rule); }
.bar > span { display: block; height: 100%; background: var(--slate); }
ol.rules { margin: 0; padding-left: 20px; font-size: 13.5px; color: var(--ink-2); }
ol.rules li { margin-bottom: 8px; }
.src { font-size: 13px; padding: 6px 0; border-bottom: 1px dotted var(--rule); }
.src:last-child { border-bottom: 0; }
.src div:first-child { color: var(--ink); }
.src div + div { color: var(--ink-3); }

/* list page */
.page-head h1 { font-family: var(--serif); font-weight: 400; font-size: 40px; margin: 4px 0 6px; }
.page-head p { color: var(--ink-2); margin: 0 0 6px; max-width: 760px; }
.page-head .rule-text { font-size: 13px; color: var(--ink-3); }
.filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 16px; padding: 22px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 22px 0 0; }
.filters label { display: flex; flex-direction: column; gap: 4px; }
.filters input, .filters select, .form input, .form select, .form textarea { background: transparent; border: 1px solid var(--rule); padding: 7px 8px; border-radius: 2px; min-width: 0; }
.filters input::placeholder, .form input::placeholder { color: var(--slate); }
.filters .wide { grid-column: span 2; }
.toolbar { display: flex; align-items: center; gap: 22px; padding: 16px 0; flex-wrap: wrap; }
.toolbar .count { font-family: var(--mono); }
.toolbar .spacer { flex: 1; }
.toggle { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--rule); }
td { padding: 14px 10px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; font-size: 14px; }
tbody tr { cursor: pointer; }
tbody tr:hover td { background: rgba(148, 163, 184, 0.10); }
td .sub { color: var(--ink-3); font-size: 12.5px; }
td.why { max-width: 420px; color: var(--ink-2); }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--navy); display: inline-block; }
.dots i.on { background: var(--navy); }
.tag { display: inline-block; font-size: 11.5px; border: 1px solid var(--rule); padding: 1px 6px; margin: 0 4px 4px 0; color: var(--ink-2); border-radius: 2px; }
.flag { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--navy); padding: 1px 5px; }
.status { font-size: 13px; }
.pager { display: flex; gap: 16px; align-items: center; padding: 20px 0; }
.near h2 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 34px 0 6px; }
.near td { color: var(--ink-2); cursor: default; }
.empty { padding: 40px 0; color: var(--ink-2); }

/* record panel */
.scrim { position: fixed; inset: 0; background: rgba(11, 31, 45, 0.18); z-index: 9; }
.panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--ivory); border-left: 1px solid var(--rule); z-index: 10; overflow-y: auto; padding: 34px 36px 60px; }
.panel h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 6px 0 4px; }
.panel .close { position: absolute; top: 18px; right: 22px; }
.panel section { padding: 18px 0; border-top: 1px solid var(--rule); }
.panel dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; margin: 0; font-size: 14px; }
.panel dt { color: var(--ink-3); }
.panel dd { margin: 0; }
.inference { font-size: 12px; color: var(--ink-3); font-style: italic; }
.form { display: grid; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .checks { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.form .region-checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 18px; margin-top: 6px; }
@media (max-width: 560px) { .form .region-checks { grid-template-columns: 1fr; } }
.msg { font-size: 13px; color: var(--ink-2); min-height: 18px; }

/* pipeline + clients */
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.stat-row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 18px 0 28px; }
.stat-row div { padding: 16px 10px 16px 0; }
.stat-row .num { font-size: 28px; display: block; }
.card { border-top: 1px solid var(--rule); padding: 18px 0; }

/* login */
.login { max-width: 380px; margin: 14vh auto; padding: 0 24px; }
.login h1 { font-family: var(--serif); font-weight: 400; font-size: 40px; margin: 0 0 8px; }
.login p { color: var(--ink-2); }
.login input { width: 100%; padding: 10px; border: 1px solid var(--rule); background: transparent; margin: 8px 0 14px; border-radius: 2px; }

@media (max-width: 1000px) {
  .grid, .cols2 { grid-template-columns: 1fr; gap: 32px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top { padding: 14px 18px; gap: 16px; flex-wrap: wrap; }
  .wrap { padding: 24px 18px; }
  .hero-count { font-size: 52px; }
  .stat-row { grid-template-columns: repeat(4, 1fr); }
}
.login-foot { margin-top: 28px; }
.panel.dialog { width: min(480px, 100%); }
.copy { font-size: 12px; margin-left: 4px; }

/* multi-market (UK live, US dormant) */
.top .market { font-size: 12px; color: var(--ink-2); border: 1px solid var(--rule); padding: 2px 8px; border-radius: 2px; }
.attribution { font-size: 11.5px; color: var(--ink-3); margin-top: 8px; }
.warn { border-left: 3px solid var(--navy); padding: 6px 10px; margin: 8px 0; font-size: 13.5px; }
.list-row.off { opacity: .55; }
/* UK: region names and 7-digit counts */
.side .bar-row { grid-template-columns: 128px 1fr 72px; }
.list-row { grid-template-columns: 56px minmax(0, 1fr) 200px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.checks .toggle { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; }

/* lead file (record panel) */
.panel.lf-panel { width: min(760px, 100vw); }
.lf-head { position: relative; padding-bottom: 14px; }
.lf-head h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; margin: 6px 0 12px; padding-right: 70px; }
.lf-head .close { position: absolute; top: 0; right: 0; }
.lf-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lf-tags .dots { margin-right: 6px; }
.lf-badge { display: inline-block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--navy); color: var(--navy); padding: 2px 7px; border-radius: 2px; }
.lf-callout { border-left: 3px solid var(--navy); padding: 4px 0 4px 16px; margin: 6px 0 22px; }
.lf-callout p { margin: 0 0 8px; }
.lf-headline { font-weight: 600; font-size: 16.5px; }
.lf-g, .lf-facts { color: var(--ink-2); font-size: 14px; }
.lf-attr { font-size: 11px; color: var(--ink-3); margin-left: 6px; }
.lf-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; border-top: 1px solid var(--rule); padding-top: 18px; }
.lf-cols h3, .lf-table h3, .lf-actions h3 { margin: 0 0 10px; }
.lf-addressee { margin: 0 0 12px; }
.lf-addr { margin-bottom: 14px; }
.lf-addr p { margin: 4px 0 6px; }
.lf-contact { display: grid; grid-template-columns: 70px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px dotted var(--rule); font-size: 14px; }
.lf-contact .label { padding-top: 2px; }
.lf-channels { display: flex; gap: 6px; margin: 12px 0 6px; }
.lf-note { font-size: 12px; line-height: 1.45; }
.lf-table { border-top: 1px solid var(--rule); padding-top: 18px; margin-top: 22px; }
.leader { display: flex; align-items: baseline; gap: 6px; font-size: 14px; padding: 3px 0; }
.leader .k { color: var(--ink-2); white-space: nowrap; }
.leader .v { text-align: right; margin-left: auto; max-width: 62%; }
.leader { background-image: radial-gradient(circle, var(--slate) 1px, transparent 1.2px); background-size: 6px 6px; background-repeat: repeat-x; background-position: 0 calc(100% - 5px); }
.leader .k, .leader .v { background: var(--ivory); }
.leader .k { padding-right: 6px; } .leader .v { padding-left: 6px; }
.lf-actions { border-top: 1px solid var(--rule); padding-top: 18px; margin-top: 22px; }
.lf-actions .actions { flex-wrap: wrap; }
@media (max-width: 720px) { .lf-cols { grid-template-columns: 1fr; } .leader .v { max-width: 70%; } }
.lf section, .lf .lf-cols > section { border-top: 0; padding-top: 0; margin-top: 0; }
.lf .lf-callout { margin-top: 10px; }
.lf .lf-table, .lf .lf-actions { border-top: 1px solid var(--rule); padding-top: 18px; margin-top: 22px; }
.lf .lf-callout { padding: 2px 0 2px 16px; }
.lf .lf-callout p:last-child { margin-bottom: 0; }
.lf { min-width: 0; overflow-wrap: anywhere; }
.lf-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.lf-contact { grid-template-columns: 70px minmax(0, 1fr); }
@media (max-width: 720px) {
  .panel.lf-panel { width: 100%; padding: 28px 18px 48px; }
  .lf-cols { grid-template-columns: minmax(0, 1fr); }
  .leader { flex-wrap: wrap; background-image: none; border-bottom: 1px dotted var(--rule); }
  .leader .v { max-width: 100%; margin-left: 0; text-align: left; padding-left: 0; }
}

.lf-contact { grid-template-columns: 70px minmax(0, 1fr) auto; }
.lf-edit { font-size: 12px; }
.lf-possible { border: 1px solid var(--navy); padding: 10px 12px; margin: 0 0 12px; font-size: 14px; }
.lf-possible p { margin: 6px 0; }
.lf-editform { border: 1px dotted var(--rule); padding: 10px 12px; margin: 10px 0; display: grid; gap: 8px; }
.lf-editform label { display: grid; gap: 4px; }
.lf-find { margin-top: 12px; }
.lf-editform[hidden] { display: none; }

.lf-gstate { margin: 0 0 8px; font-weight: 600; font-size: 14px; }
.lf-age { margin: 0 0 6px; }
.lf-age { font-size: 12px; color: var(--ink-3); }

/* lead file: collapsible sections (closed by default) */
.lf-drop > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; margin: 0; }
.lf-drop > summary::-webkit-details-marker { display: none; }
.lf-drop > summary::before { content: "▸"; font-size: 13px; color: var(--navy); transition: transform .15s; }
.lf-drop[open] > summary::before { transform: rotate(90deg); }
.lf-drop[open] > summary { margin-bottom: 10px; }

/* lead list: filter bar */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fbar { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 18px 0; margin: 0 0 14px; display: grid; gap: 14px; }
.fb-sentence { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-family: var(--serif); font-size: 22px; color: var(--ink); }
.fb-inline select { font-family: var(--serif); font-size: 20px; border: 0; border-bottom: 1px solid var(--navy); background: transparent; padding: 2px 22px 2px 2px; color: var(--ink); max-width: 340px; }
.fb-inline select:disabled { border-bottom-style: dotted; color: var(--ink-2); }
.fb-search { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.fb-q { flex: 1 1 320px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--rule); padding: 0 10px; background: #fff; }
.fb-q svg { color: var(--ink-2); flex: none; }
.fb-q input { flex: 1; border: 0; padding: 10px 0; background: transparent; outline: none; }
.fb-q:focus-within { border-color: var(--navy); }
.fb-panel { display: grid; gap: 14px; padding-top: 4px; }
.fb-panel[hidden] { display: none; }
.fbar, .fb-panel { grid-template-columns: minmax(0, 1fr); }
.fb-q input { min-width: 0; }
.fb-row { display: grid; gap: 14px; }
.fb-row4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fb-row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fb-row label { display: grid; gap: 4px; align-content: start; }
.fb-row input[type=number], .fb-row input:not([type]), .fb-row select { border: 1px solid var(--rule); padding: 8px; background: #fff; width: 100%; }
.fb-check { display: inline-flex !important; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.fb-checks { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.fb-sort { display: inline-flex; align-items: center; gap: 6px; }
.fbar select:focus-visible, .fbar input:focus-visible, .fbar button:focus-visible, .fbar a:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
@media (max-width: 900px) { .fb-row4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fb-sentence { font-size: 18px; } .fb-inline select { font-size: 17px; max-width: 100%; } }
@media (max-width: 560px) { .fb-row4, .fb-row2 { grid-template-columns: 1fr; } }
/* multi-select dropdowns in the filter sentence */
.ms { position: relative; display: inline-block; max-width: 100%; }
.ms-btn { font-family: var(--serif); font-size: 20px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--navy); padding: 2px 24px 2px 2px; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; text-align: left;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: right 9px center, right 4px center; background-size: 5px 5px; background-repeat: no-repeat; }
.ms-btn:disabled { border-bottom-style: dotted; color: var(--ink-2); cursor: default; background-image: none; }
.ms-btn:focus-visible, .ms-opt input:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.ms-pop { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: 320px; max-width: calc(100vw - 36px); background: #fff; border: 1px solid var(--rule); box-shadow: 0 8px 24px rgba(16, 32, 48, .12); padding: 10px; display: grid; gap: 8px; font-family: var(--sans); font-size: 14px; }
.ms-pop[hidden], .ms-opt[hidden], .ms-group[hidden], .ms-nomatch[hidden] { display: none; }
.ms-find { border: 1px solid var(--rule); padding: 7px 8px; width: 100%; }
.ms-opts { max-height: 300px; overflow-y: auto; display: grid; gap: 2px; }
.ms-group { margin: 8px 0 2px; }
.ms-opt { display: flex; align-items: center; gap: 8px; padding: 4px 2px; cursor: pointer; color: var(--ink); }
.form .ms-opt { flex-direction: row; justify-content: flex-start; text-align: left; }   /* .form label stacks and centres otherwise (ICP location) */
.ms-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--rule); padding-top: 8px; }
#fb-go { margin-left: 4px; }
#fb-go.pending { box-shadow: 0 0 0 2px var(--ivory), 0 0 0 4px var(--navy); }
@media (max-width: 900px) { .ms-btn { font-size: 17px; } }
/* staff and reserves: from / to */
.fb-range { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 4px; align-content: start; }
.fb-range legend { padding: 0; margin-bottom: 4px; }
.fb-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; }
.fb-pair span { font-size: 13px; color: var(--ink-2); }
.fb-pair input { border: 1px solid var(--rule); padding: 8px; background: #fff; width: 100%; min-width: 0; }
/* bottom tick boxes: a little bigger */
.fb-checks .fb-check { font-size: 14.5px; gap: 8px; }
.fb-checks .fb-check input { width: 18px; height: 18px; }
.lf-site #site-search { white-space: nowrap; flex: none; }
.lf-note { display: grid; gap: 4px; margin: 6px 0; } .lf-note textarea { border: 1px solid var(--rule); padding: 6px; width: 100%; }
.list-group { margin: 22px 0 4px; }
.lf-signals ul { list-style: none; padding: 0; margin: 4px 0 14px; display: grid; gap: 4px; }
.lf-signals li { font-size: 14px; }
.app-foot { color: var(--ink-2); font-size: 13px; padding-top: 8px; padding-bottom: 32px; border-top: 1px solid var(--rule); }

/* lead file, 22 Oct 2026: Google profile line, smaller contact section with its note, sources */
.lf-gbp { color: var(--ink-2); font-size: 14px; }
.lf-cols > section:last-child .lf-contact { font-size: 13px; padding: 4px 0; }
.lf-cols > section:last-child .lf-contact .label { font-size: 10px; }
.lf-note-small { font-size: 11.5px; line-height: 1.45; color: var(--ink-2); margin: 8px 0 12px; }
.lf .lf-sources { border-top: 1px solid var(--rule); padding-top: 18px; margin-top: 22px; }
.lf-sources ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 12.5px; color: var(--ink-2); }
.lf-src { font-size: 10.5px; color: var(--ink-2); border: 1px solid var(--rule); padding: 0 4px; margin-left: 4px; white-space: nowrap; }
#results tr.row-excluded { opacity: .45; text-decoration: line-through; }
.lf-add { font-size: 12px; }   /* same size as Copy address (Felix, 22 Oct 2026) */
.lf-addr { background: rgba(11, 31, 45, 0.05); border: 1px solid rgba(11, 31, 45, 0.18); padding: 12px 14px; }   /* Write to: address + Copy address in a slightly darker box (Felix, 22 Oct 2026) */
.stat-pick { cursor: pointer; }
.stat-pick:hover .label { text-decoration: underline; }
#pfilters input[type=search] { flex: 1; min-width: 220px; }
#pfilters .fb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
#pfilters .fb-sort { display: flex; align-items: center; gap: 8px; margin: 0; }
#pfilters .fb-sort select { width: auto; }
.kv { gap: 16px; }   /* label and value never run together */

/* admin Clients page: tabs, client table, client page, onboarding (25 Oct 2026) */
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--rule); margin: 8px 0 22px; }
.tabs a { text-decoration: none; color: var(--ink-2); padding: 10px 0; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on, .tabs a:hover { color: var(--ink); border-bottom-color: var(--navy); }
.clients-table tbody tr { cursor: pointer; }
.clients-table tbody tr:hover { background: rgba(11, 31, 45, 0.04); }
.client-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.client-head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 30px; }
.onboard { max-width: 860px; display: grid; gap: 18px; }
.onboard section h3 { margin-top: 0; }
.form h4.label { margin: 18px 0 4px; }
.warn-text { color: #8a3b12; }
.form label.toggle { display: flex; align-items: center; gap: 8px; text-align: left; }
.fb-more { margin-top: 10px; }
.fb-more > summary { cursor: pointer; list-style: none; display: inline; font-size: 14px; }
.fb-more > summary::-webkit-details-marker { display: none; }
.fb-more[open] > summary { margin-right: 14px; }
.stat-row { grid-template-columns: minmax(0, 1.7fr) repeat(7, minmax(0, 1fr)); }   /* the big Not contacted figure gets room before Contacted */
@media (max-width: 900px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }

/* priority fixes, 25 Oct 2026: results updating, active-filter chips, contact availability, area dropdown states */
#results.updating { opacity: .4; pointer-events: none; transition: opacity .15s; }
.fb-chips { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 12px; }
.fb-chips:empty { display: none; }
.fb-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; border: 1px solid var(--rule); background: #fff; padding: 2px 4px 2px 9px; border-radius: 2px; }
.fb-chip button { border: 0; background: transparent; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 4px; color: var(--ink-2); }
.fb-chip button:hover, .fb-chip button:focus-visible { color: var(--ink); outline: 2px solid var(--navy); outline-offset: 1px; }
.ci-row { display: inline-flex; gap: 6px; white-space: nowrap; }
.ci { font-size: 11.5px; font-family: var(--mono); padding: 1px 4px; border: 1px solid transparent; border-radius: 2px; }
.ci-found { border-color: var(--navy); color: var(--navy); }
.ci-not-found { color: var(--ink-3); text-decoration: line-through; }
.ci-to-confirm { border: 1px dashed var(--navy); color: var(--ink-2); }
.ci-not-looked-up { color: var(--ink-3); opacity: .7; }
.ci-legend { font-size: 12px; color: var(--ink-3); margin: 10px 0 0; }
.ms-state { margin: 4px 2px; font-size: 13px; }

/* client Profile tabs, ideal customer profile, "Your best prospects" (26 Oct 2026) */
.best { border-top: 1px solid var(--rule); padding: 18px 0 8px; margin: 22px 0 8px; }   /* no bottom line: the lists below start with their own (Felix, 27 Oct 2026) */
.best-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.best-head .label { margin: 0; }
.best-list { list-style: none; padding: 0; margin: 12px 0 14px; counter-reset: best; }
.best-list li { counter-increment: best; position: relative; padding: 12px 0 12px 34px; border-top: 1px dotted var(--rule); cursor: pointer; }
.best-list li:first-child { border-top: 0; }
.best-list li::before { content: counter(best, decimal-leading-zero); position: absolute; left: 0; top: 13px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.best-list li:hover .best-co strong, .best-list li:focus-visible .best-co strong { text-decoration: underline; }
.best-list li:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.best-why { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.best-fit { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.best-fit .sub { font-size: 12.5px; }
.icp { max-width: 880px; gap: 18px; }
.icp section h3 { margin-top: 0; }
.icp-radios { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 12px; }
.icp-radios label, .sx-cat label { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 6px; }
.icp .checks { flex-direction: column; flex-wrap: nowrap; gap: 6px; }
.icp .row2 > div > .label { display: inline-block; margin-bottom: 6px; }
.sx { max-width: 880px; display: grid; gap: 18px; }
.sx-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; align-items: end; }
.sx-value { display: grid; gap: 6px; }
.sx-value input { border: 1px solid var(--rule); padding: 10px; background: #fff; width: 100%; }
.sx-cat { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; grid-column: 1 / -1; font-size: 14px; }
.sx-add .btn { grid-row: 1; grid-column: 2; }
.sx-add .msg { grid-column: 1 / -1; margin: 0; }
.sx-up .sx-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.sx-up p { margin: 6px 0 0; }
@media (max-width: 700px) { .sx-add { grid-template-columns: 1fr; } .sx-add .btn { grid-row: auto; grid-column: auto; justify-self: start; } .cols2 { grid-template-columns: 1fr; gap: 24px; } }
#icp-areas[hidden], #icp-radius[hidden] { display: none; }
.icp label.toggle { flex-direction: row; align-items: center; }
.fbar input[aria-invalid="true"], .form input[aria-invalid="true"] { border-color: #8a3b12; box-shadow: 0 0 0 1px #8a3b12; }

/* pipeline stages, Today, Results, the lead file's working section, saved searches (26 Oct 2026) */
.stage-tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--rule); margin: 6px 0 10px; }
.stage-tab { display: grid; gap: 2px; text-align: left; background: transparent; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 10px 16px 9px; cursor: pointer; color: var(--ink-2); min-width: 104px; }
.stage-tab .stage-n { font-family: var(--mono); font-size: 22px; color: var(--ink); }
.stage-tab .stage-l { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.stage-tab:hover { background: rgba(11, 31, 45, 0.04); color: var(--ink); }
.stage-tab:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }
.stage-tab[aria-selected="true"] { background: rgba(11, 31, 45, 0.06); border-bottom-color: var(--navy); color: var(--ink); }
.today-group { margin: 18px 0 26px; }
.today-group table td { vertical-align: middle; }
.t-actions { white-space: nowrap; text-align: right; }
tr.t-done td { opacity: .5; }
.t-extra td { background: rgba(11, 31, 45, 0.03); }
.res-range { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin: 8px 0 16px; }
.res-range input, .res-range select { border: 1px solid var(--rule); padding: 6px 8px; background: #fff; }
.res-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 12px; }
.res-card { display: grid; gap: 4px; padding: 16px 12px 16px 0; align-content: start; }
.res-card .num { font-size: 26px; }
.res-card .sub { font-size: 12px; }
#res-out.updating { opacity: .4; }
@media (max-width: 900px) { .res-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lf-work { border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 14px; display: grid; gap: 10px; }
.lf-work h3 { margin: 6px 0 0; }
.lf-work .row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; }
.lf-work label { display: grid; gap: 4px; font-size: 13px; }
.lf-work input, .lf-work select { border: 1px solid var(--rule); padding: 6px 8px; background: #fff; width: 100%; }
.lf-work .checks input { width: auto; }
.lf-work .lf-inline { display: inline-flex; align-items: center; gap: 6px; }
.lf-work .lf-inline input { width: auto; }
.lf-meetings { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.lf-meetings select { width: auto; margin-left: 8px; }
.lf-hist summary { cursor: pointer; }
.lf-hist ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
@media (max-width: 700px) { .lf-work .row3 { grid-template-columns: 1fr; } }
#ss-box:empty { display: none; }
.ss-form { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; margin: 0 0 14px; }
.ss-form label { display: grid; gap: 4px; font-size: 13px; }
.ss-form input, .ss-rename input { border: 1px solid var(--rule); padding: 7px 8px; background: #fff; min-width: 280px; }
.ss-form p { flex-basis: 100%; margin: 0; }
.ss-open { margin: 0 0 14px; font-size: 14px; }
.ss-table td { vertical-align: middle; }
.na-cell { white-space: nowrap; }
.na-cell .na-btn { margin-left: 6px; }
.na-cell .btn.na-btn { padding: 3px 10px; font-size: 12.5px; }
.na-form { display: inline-flex; gap: 6px; align-items: center; }
.na-form select { border: 1px solid var(--rule); padding: 4px 6px; background: #fff; }
.lf-differ { font-size: 13px; color: var(--ink-2); border-left: 2px solid var(--navy); padding: 2px 0 2px 10px; margin: 8px 0; }
/* next action (26 Oct 2026) */
.na { display: grid; gap: 4px; }
.na-line { white-space: normal; }
.na-note { font-size: 12.5px; }
.na-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.btn.na-small { padding: 3px 10px; font-size: 12.5px; }
.na-overdue { font-weight: 600; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; color: #8a3b12; }
.na-today { font-weight: 600; }
.na-undated { font-style: italic; }
.na-form { display: grid; gap: 8px; min-width: 260px; font-size: 13px; }
.na-form label { display: grid; gap: 3px; }
.na-form select, .na-form input[type=date], .na-form input[name=note] { border: 1px solid var(--rule); padding: 5px 7px; background: #fff; }
.na-when { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.na-when legend { padding: 0; margin-bottom: 3px; }
.na-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.na-q { border: 1px solid var(--rule); background: #fff; padding: 3px 9px; font-size: 12.5px; cursor: pointer; }
.na-q[aria-pressed="true"] { border-color: var(--navy); background: rgba(11, 31, 45, 0.06); font-weight: 600; }
.na-q:focus-visible, .na-chip:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }
.na-picked { font-weight: 600; }
.na-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; }
.na-chip { border: 1px solid var(--rule); background: transparent; padding: 3px 10px; font-size: 13px; cursor: pointer; }
.na-chip.on { border-color: var(--navy); background: rgba(11, 31, 45, 0.06); }
td.na-cell { white-space: normal; min-width: 200px; }
/* lead file: pipeline status as side-by-side buttons, styled like the Pipeline page's stage tabs (26 Oct 2026) */
.lf-stages { border: 0; padding: 0; margin: 0; }
.lf-stages legend { padding: 0; margin-bottom: 6px; }
.lf-stage-row { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--rule); }
.lf-stage { position: relative; cursor: pointer; }
.lf-stage input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lf-stage span { display: block; padding: 8px 12px 7px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.lf-stage:hover span { background: rgba(11, 31, 45, 0.04); color: var(--ink); }
.lf-stage input:checked + span { background: rgba(11, 31, 45, 0.06); border-bottom-color: var(--navy); color: var(--ink); }
.lf-stage input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: -2px; }
.form .lf-stage { display: block; }
.na { justify-items: start; }
.best-when { font-size: 13.5px; color: var(--ink); margin-top: 2px; }
.fu-row { cursor: pointer; align-items: baseline; }
.fu-row:hover strong, .fu-row:focus-visible strong { text-decoration: underline; }
.fu-row:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
/* message to every client (27 Oct 2026) */
.banner { display: flex; align-items: center; gap: 12px; padding: 10px 40px; background: rgba(11, 31, 45, 0.06); border-bottom: 1px solid var(--rule); font-size: 14px; }
.banner[hidden] { display: none; }
.banner button { margin-left: auto; font-size: 18px; line-height: 1; }
@media (max-width: 700px) { .banner { padding: 10px 16px; } }

.batch-limit { width: 90px; }
/* pipeline table (28 Oct 2026, Felix): fixed, even column widths and the same gap between every column, so Next action
   no longer sits hard against Stage. Narrow screens scroll sideways instead of squashing the columns. */
#presults { overflow-x: auto; }
#presults table { table-layout: fixed; min-width: 960px; }
#presults th, #presults td { padding-right: 24px; }
#presults th:last-child, #presults td:last-child { padding-right: 0; }
#presults th:nth-child(1) { width: 20%; }
#presults th:nth-child(2) { width: 13%; }
#presults th:nth-child(3) { width: 14%; }
#presults th:nth-child(4) { width: 9%; }
#presults th:nth-child(5) { width: 17.5%; }
#presults th:nth-child(6) { width: 17.5%; }
#presults th:nth-child(7) { width: 9%; }
#presults td.na-cell { min-width: 0; }
.lf-delete { display: flex; align-items: center; gap: 10px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--rule); }
.icp-notify { display: flex; font-weight: 600; }
.icp-notify-card { border: 1px solid var(--navy); padding: 14px 16px; }
.privacy-notice { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--rule); max-width: 760px; }
.privacy-notice summary { cursor: pointer; font-weight: 600; }
.privacy-notice h3 { margin-top: 18px; }
.privacy-notice p { color: var(--ink-2); }

/* Lead file, bottom half (Felix, 29 Oct 2026): every section the same spacing, rule and type size */
.lf .lf-table, .lf .lf-actions, .lf .lf-work, .lf .lf-sources, .lf-delete { border-top: 1px solid var(--rule); padding-top: 18px; margin-top: 22px; }
.lf .lf-actions h3, .lf .lf-sources h3 { margin: 0 0 10px; }
.lf .lf-work { gap: 12px; }
.lf .lf-work h3 { margin: 10px 0 0; } .lf .lf-work h3:first-child { margin-top: 0; }
.lf .lf-actions .form { gap: 12px; }
.lf .lf-work label, .lf .lf-meetings, .lf .lf-hist ul, .lf .lf-sources ul, .lf .lf-actions .form label { font-size: 14px; }
.lf .lf-sources ul, .lf .lf-hist ul { gap: 6px; color: var(--ink-2); }
.lf .lf-actions .sub, .lf .lf-work .sub, .lf .lf-table .sub { font-size: 13px; }
.lf .lf-work .msg:empty { display: none; }   /* no empty gap above History */
.lf .lf-work p.msg { margin: 0; }
.lf .lf-hist ul { margin-top: 6px; }
.lf .na, .lf .na-line, .lf .na-note, .lf .na-form, .lf .btn.na-small, .lf .na-q, .lf .na .link, .lf .na-btns .link { font-size: 14px; }
.lf .na { display: grid; gap: 8px; }
