@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;650;700&family=Instrument+Sans:wght@400;500;600;650;700&display=swap');

:root {
  color-scheme: light;
  --bg: #f5f7f4; --paper:#fff; --ink:#1a2d26; --muted:#52645b; --line:#e0e8e0;
  --dark:#142623; --hero:#18372d; --deep:#204436; --lime:#d1eb84; --green:#216747;
  --shadow:0 2px 3px #203c2810,0 9px 24px #243c2805;
  --heading:"Instrument Sans","Segoe UI",sans-serif; --text:"DM Sans","Segoe UI",sans-serif;
}
* { box-sizing:border-box; }
html { min-width:320px; }
body { margin:0; background:var(--bg); color:var(--ink); font:14px/1.5 var(--text); }
h1,h2,h3,p { margin:0; }
h1,h2,h3,strong { font-family:var(--heading); }
button,input,select,textarea { font:inherit; }
button { cursor:pointer; }
button:disabled { cursor:default; opacity:.48; }
a { color:inherit; }
svg { flex-shrink:0; }
[hidden] { display:none !important; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, summary:focus-visible { outline:2px solid #428863; outline-offset:3px; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.muted { color:var(--muted); }
.workspace { display:grid; grid-template-columns:228px minmax(0,1fr); min-height:100vh; }
.sidebar { position:sticky; top:0; height:100vh; display:flex; flex-direction:column; padding:28px 17px 18px; background:var(--dark); color:#edf6ed; z-index:2; }
.brand { display:flex; align-items:center; gap:11px; text-decoration:none; color:inherit; }
.sidebar .brand { padding:0 8px; }
.brand img { display:block; flex:none; border-radius:10px; }
.brand > span,.brand > div { display:grid; min-width:0; }
.brand strong { font-size:18px; letter-spacing:-.45px; line-height:1.25; }
.brand small,.brand div span { color:#b1c3b6; font-size:9px; letter-spacing:.19em; font-weight:700; margin-top:3px; }
.nav-group { margin-top:48px; }
.nav-label { color:#99b5a7; font-size:9px; letter-spacing:.15em; font-weight:700; margin:0 10px 10px; }
.nav-item { display:flex; align-items:center; width:100%; gap:11px; min-height:46px; border:0; border-radius:9px; background:transparent; color:#bfcec6; font-weight:600; text-align:left; padding:0 10px; margin-bottom:5px; white-space:nowrap; }
.nav-item svg { color:#93b6a4; }
.nav-item:hover { background:#ffffff12; color:#fff; }
.nav-item.nav-current { background:#2b493b; color:#eff8e5; }
.nav-item.nav-current svg { color:var(--lime); }
.sidebar-bottom { margin-top:auto; }
.sidebar-profile { margin-top:12px; padding:15px 5px 1px; border-top:1px solid #ffffff1d; display:flex; align-items:center; gap:9px; }
.sidebar-profile span:nth-child(2) { display:grid; flex:1; line-height:1.25; }
.sidebar-profile strong { font-size:13px; }
.sidebar-profile small { color:#a5baaf; font-size:11px; margin-top:3px; }
.profile-avatar { display:grid; place-items:center; width:34px; height:34px; border-radius:50%; background:#334d3e; color:#e2efcc; font-size:11px; font-weight:700; }
.sidebar-profile .icon-button { color:#b1c3b8; }
.sidebar-profile .icon-button:hover { background:#ffffff18; }
.main-column { min-width:0; }
.topbar { display:flex; align-items:center; justify-content:space-between; min-height:70px; gap:16px; background:var(--paper); padding:0 clamp(18px,3.4vw,52px); border-bottom:1px solid var(--line); }
.crumb,.top-tools,.privacy { display:flex; gap:10px; align-items:center; }
.crumb { color:var(--muted); font-size:13px; }
.crumb strong { color:var(--ink); }
.crumb > svg { color:#8d9c92; }
.top-tools { gap:16px; }
.privacy { color:#496258; gap:6px; font-size:12px; white-space:nowrap; }
.page { max-width:1550px; margin:0 auto; padding:30px clamp(18px,3.4vw,52px) 19px; min-width:0; }
.hero { isolation:isolate; position:relative; overflow:hidden; border-radius:19px; background:radial-gradient(ellipse at 95% 15%,#305c42 0,transparent 61%),linear-gradient(112deg,#19342b,#204536); padding:30px 29px 20px; color:#f8fbf5; }
.hero-content { position:relative; }
.hero-content p { display:flex; align-items:center; gap:8px; color:#d7ebaa; font-size:10px; letter-spacing:.17em; font-weight:700; }
.hero-content p span { width:7px; height:7px; border-radius:50%; background:var(--lime); box-shadow:0 0 0 4px #d1eb841f; }
.hero h1,.plain-heading h1 { font-size:clamp(30px,4vw,49px); letter-spacing:-.048em; line-height:1.11; margin:10px 0 6px; font-weight:650; }
.hero-content > div { font-size:14px; color:#e1eae1; }
.hero-pattern { position:absolute; z-index:-1; top:-69px; right:-17px; width:395px; height:289px; opacity:.54; transform:rotate(-11deg); background-image:linear-gradient(#accfb331 1px,transparent 1px),linear-gradient(90deg,#accfb331 1px,transparent 1px); background-size:33px 33px; mask-image:radial-gradient(ellipse at center,#000 25%,transparent 77%); }
.hero-pattern i,.hero-pattern b { position:absolute; border:1px solid #c2ddb36b; border-radius:50%; transform:translate(-50%,-50%); top:53%; left:56%; }
.hero-pattern i:nth-child(1) { width:215px;height:215px; }
.hero-pattern i:nth-child(2) { width:155px;height:155px; }
.hero-pattern i:nth-child(3) { width:96px;height:96px; }
.hero-pattern b { border:0; color:#d1eb84; display:grid; place-items:center; }
.hero-pattern em { position:absolute; width:7px; height:7px; border-radius:100%; background:#d6ee95; box-shadow:0 0 0 5px #d6ee9535; }
.hero-pattern em:nth-of-type(1) { left:33%;top:39%; }
.hero-pattern em:nth-of-type(2) { left:70%;top:60%; }
.hero-pattern em:nth-of-type(3) { left:75%;top:32%; }
.search-form { position:relative; display:grid; align-items:end; grid-template-columns:minmax(96px,.62fr) minmax(125px,1.15fr) minmax(112px,.82fr) minmax(122px,1fr) auto; gap:10px; background:#ffffff13; border:1px solid #ffffff28; border-radius:13px; margin-top:23px; padding:13px; }
.field { min-width:0; display:grid; gap:6px; color:var(--ink); align-content:start; font-size:13px; font-weight:600; }
.field > span,.field > label { display:block; }
.search-form .field { color:#eaf5ec; font-size:12px; }
input:not([type=checkbox]),select,textarea { border:1px solid #d4dfd6; border-radius:8px; padding:9px 10px; color:var(--ink); background:#fff; min-width:0; width:100%; min-height:40px; font-weight:500; }
input[readonly] { background:#f3f6f3; }
input::placeholder,textarea::placeholder { color:#687b70; }
textarea { resize:vertical; }
input[type=checkbox] { accent-color:#34754e; width:16px; height:16px; flex:none; margin:0; }
.has-icon { position:relative; color:#4b695a; }
.has-icon svg { position:absolute; top:50%; left:10px; transform:translateY(-50%); pointer-events:none; }
.has-icon input:not([type=checkbox]) { padding-left:34px; }
.search-form input:not([type=checkbox]),.search-form select,.search-form .button { min-height:44px; }
.search-check,.filter-check { display:flex; gap:7px; align-items:center; font-size:12px; font-weight:600; color:var(--muted); cursor:pointer; }
.search-check { grid-column:1/-1; color:#e7f0e8; margin:2px 0 0; align-self:start; }
.search-check input { accent-color:var(--lime); }
.scan-dropdown,.scan-exclusions { position:relative; min-width:0; }
.search-form .name-field { grid-column:1/4; max-width:430px; }
.scan-dropdown summary,.scan-exclusions summary { display:flex; align-items:center; gap:7px; list-style:none; cursor:pointer; }
.scan-dropdown summary::-webkit-details-marker,.scan-exclusions summary::-webkit-details-marker { display:none; }
.scan-dropdown summary { justify-content:space-between; background:#fff; color:var(--ink); border:1px solid #d4dfd6; border-radius:8px; min-height:44px; padding:8px 10px; }
.scan-dropdown summary span { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.scan-exclusions { grid-column:1/-1; color:#e7f0e8; font-size:12px; }
.scan-exclusions summary { width:max-content; border-radius:6px; padding:3px 0; }
.scan-options { display:grid; gap:3px; max-height:245px; overflow:auto; background:#f7faf7; border:1px solid #dce6dd; border-radius:8px; padding:6px; color:var(--ink); margin-top:4px; }
.scan-options label { display:flex; align-items:flex-start; gap:6px; padding:3px; border-radius:5px; cursor:pointer; }
.scan-options label:hover { background:#edf3ee; }
.scan-exclusions .scan-options { grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); }
.button { display:inline-flex; align-items:center; justify-content:center; gap:7px; border:1px solid transparent; border-radius:8px; min-height:39px; padding:7px 12px; white-space:nowrap; font-size:13px; font-weight:700; line-height:1.15; text-decoration:none; }
.button span { overflow:hidden; text-overflow:ellipsis; }
.button.primary { background:var(--deep); color:#fff; }
.button.primary:hover:not(:disabled) { background:#285742; }
.button.lime { background:var(--lime); color:#263f25; padding-inline:17px; }
.button.lime:hover:not(:disabled) { background:#e2f69f; }
.button.outline { background:#fff; color:#29483a; border-color:#d9e3da; }
.button.outline:hover:not(:disabled) { background:#f4f8f2; border-color:#a1bbab; }
.button.text { color:#246447; background:transparent; }
.button.text:hover:not(:disabled) { background:#eef4ed; }
.button.small { min-height:33px; padding:6px 9px; font-size:12px; }
.button.destructive { background:#8c3037; }
.icon-button { display:inline-grid; place-items:center; padding:0; width:36px; height:36px; border:0; border-radius:8px; background:transparent; color:#587267; flex:none; }
.icon-button:hover { background:#edf3ef; }
.metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; margin:17px 0; }
.metric { min-width:0; display:flex; align-items:center; gap:10px; padding:13px 12px; min-height:83px; border:1px solid var(--line); border-radius:12px; background:var(--paper); box-shadow:var(--shadow); color:var(--ink); text-align:left; }
.metric:hover { border-color:#9cb6a3; }
.metric-icon { width:35px; height:35px; flex:none; border-radius:10px; display:grid; place-items:center; }
.metric-text { min-width:0; display:flex; flex-direction:column; }
.metric-text small { color:var(--muted); font-size:11px; font-weight:650; line-height:1.2; }
.metric-text strong { font-size:25px; letter-spacing:-.06em; line-height:1.2; margin-top:3px; }
.metric-next { margin-left:auto; flex:none; color:#91a49a; display:grid; place-items:center; }
.tone-0 { background:#eaf2e7; color:#39694d; }
.tone-1 { background:#ecf2d9; color:#506e25; }
.tone-2 { background:#e7eff8; color:#3b6180; }
.tone-3 { background:#f7efdd; color:#8a6033; }
.tone-4 { background:#f1eaf6; color:#735486; }
.panel { background:var(--paper); border:1px solid var(--line); border-radius:14px; min-width:0; box-shadow:var(--shadow); }
.list-panel { overflow:hidden; }
.panel-heading { padding:18px 19px 14px; display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px; }
.panel-heading h2,.settings-panel h2,.template-card h2 { font-weight:700; letter-spacing:-.03em; font-size:22px; line-height:1.2; }
.panel-heading p { font-size:13px; color:var(--muted); margin-top:5px; }
.counter { display:inline-block; font:700 11px/1.65 var(--text); vertical-align:middle; border-radius:90px; color:#547260; background:#eff4ee; padding:1px 8px; margin-left:3px; white-space:nowrap; }
.filters { border-top:1px solid #eef2ec; padding:11px 18px; display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.filters .compact { flex:1 1 130px; }
.filters input:not([type=checkbox]),.filters select { min-height:34px; font-size:12px; }
.filters select { width:auto; max-width:100%; }
.filter-check { margin-left:3px; }
.table-wrap { overflow-x:auto; }
.mobile-directory-sort { display:none; }
.column-sort { display:inline-flex; align-items:center; gap:5px; border:0; background:transparent; color:inherit; padding:2px 0; font:inherit; text-align:left; white-space:nowrap; }
.column-sort:hover,.column-sort:focus-visible { color:#225c42; }
.column-sort span { opacity:.65; }
.result-table [aria-sort] .column-sort span { opacity:1; color:#225c42; }
.result-table .result-diagnosis { max-width:200px; }
.directory-rating { white-space:nowrap; }
.directory-rating strong { font-size:15px; }
.directory-rating small { color:var(--muted); margin-left:2px; }
.result-note { display:block; overflow:hidden; text-overflow:ellipsis; font-size:10px; max-width:190px; }
.result-diagnosis .button.text { margin-left:3px; }
.data-table { width:100%; border-collapse:collapse; text-align:left; }
.data-table th { font-size:11px; letter-spacing:.02em; white-space:nowrap; font-weight:700; color:#51645a; background:#f4f7f3; border-block:1px solid #e8eee8; padding:9px 10px; }
.data-table th:first-child,.data-table td:first-child { padding-left:18px; }
.data-table th:last-child,.data-table td:last-child { padding-right:16px; }
.data-table td { padding:9px 10px; height:60px; white-space:nowrap; border-bottom:1px solid #edf1ec; font-size:12px; }
.data-table tr:last-child td { border-bottom:0; }
.data-table tbody tr:hover td { background:#fbfdfa; }
.business-name { color:inherit; display:flex; gap:9px; align-items:center; border:0; background:transparent; padding:0; text-align:left; min-width:0; white-space:normal; line-height:1.3; }
button.business-name:hover strong { color:#26764d; text-decoration:underline; }
.business-name strong { display:block; font-size:14px; font-weight:700; }
.business-name small { display:block; color:var(--muted); font-size:11px; margin-top:3px; }
.avatar { display:grid; width:34px; height:34px; place-items:center; border-radius:9px; flex:none; font-size:11px; font-weight:700; }
.badge { display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:700; line-height:1.2; padding:5px 7px; white-space:nowrap; border-radius:5px; }
.badge i { width:5px; height:5px; background:currentColor; opacity:.72; border-radius:50%; }
.b-unknown,.b-new,.b-lost,.b-ignored { background:#edf0ef; color:#485850; }
.b-ready,.b-won,.b-good { background:#e7f2e8; color:#265e43; }
.b-none,.b-redesign { background:#fbefd8; color:#7c5622; }
.b-social,.b-demo { background:#f0eaf7; color:#6d4881; }
.b-sent,.b-reply,.b-quote { background:#e7f1fa; color:#305f82; }
.b-optout { background:#fae8e6; color:#843c3d; }
.mail-state { display:inline-flex; gap:4px; align-items:center; color:var(--muted); }
.has-mail { color:#386e53; }
.row-score { display:flex; align-items:center; gap:5px; white-space:nowrap; }
.row-score strong { min-width:19px; }
progress { width:35px; height:5px; border:0; background:#e9efe8; border-radius:15px; overflow:hidden; accent-color:#58995d; }
progress::-webkit-progress-bar { background:#e9efe8; }
progress::-webkit-progress-value { background:#579861; border-radius:15px; }
progress::-moz-progress-bar { background:#579861; border-radius:15px; }
.due-now { color:#9d4f26; font-weight:700; }
.empty { text-align:center; padding:36px 12px 39px; color:var(--muted); border-top:1px solid #edf2eb; min-height:155px; }
.empty > span:first-child { display:inline-grid; place-items:center; width:48px; height:48px; background:#f0f5ed; color:#538268; border-radius:13px; margin-bottom:9px; }
.empty h3 { color:var(--ink); font-size:17px; }
.empty p { margin:5px 0 12px; }
.empty.slim { min-height:0; padding:12px; border:0; }
.empty.slim > span:first-child { background:none; color:var(--muted); width:auto; height:auto; }
.pagination { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; border-top:1px solid var(--line); padding:12px 18px; font-size:12px; color:var(--muted); }
.pagination div,.quick-links,.source-row { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
.view-toggle { padding:0 18px 5px; }
.footer { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:19px; color:#586d60; font-size:11px; }
.plain-heading { margin:3px 0 20px; }
.plain-heading p { color:var(--muted); }
.demo-strip { display:flex; justify-content:space-between; align-items:center; gap:9px; color:#604872; background:#f0eaf5; border-radius:9px; padding:4px 10px; margin-bottom:13px; font-size:12px; }
.demo-strip span:first-child { display:flex; align-items:center; gap:7px; }
.notice { background:#eef4ef; padding:9px 11px; border-radius:8px; color:#355645; font-size:13px; }
.notice svg { vertical-align:middle; }
.notice.warning,.warning { color:#715221; background:#fbf2df; }
.directory-notice { margin:0 18px 12px; }
.notice.danger { color:#80353b; background:#fce9e7; }
.notice.variables { margin-bottom:13px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.variables code { border:1px solid #d4e1d5; border-radius:5px; background:#fff; padding:1px 4px; }
.templates-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.template-card,.settings-panel { padding:16px; }
.template-card .field,.settings-panel > p { margin-top:10px; }
.template-card h2,.settings-panel h2 { font-size:19px; }
.form-end { grid-column:1/-1; display:flex; justify-content:flex-end; }
.settings-panel { margin-bottom:13px; max-width:890px; }
.settings-panel > .button { margin-top:12px; }
.setting { display:grid; grid-template-columns:auto 1fr auto; gap:11px; align-items:center; padding:12px 0; border-bottom:1px solid #edf3ed; }
.setting:last-child { border-bottom:0; }
.setting small { display:block; color:var(--muted); }
.drawer-open { overflow:hidden; }
#drawer-layer { position:fixed; inset:0; display:flex; justify-content:flex-end; z-index:8; }
.scrim { position:absolute; inset:0; background:#11282071; }
.drawer { background:#fbfcfa; position:relative; max-width:100%; width:660px; min-height:0; display:flex; flex-direction:column; box-shadow:-10px 0 35px #13231d45; }
.drawer-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:20px 21px 8px; background:var(--paper); }
.drawer-title { display:flex; align-items:center; min-width:0; gap:11px; }
.drawer-title .avatar { width:46px; height:46px; font-size:15px; }
.drawer-title h2 { font-size:24px; letter-spacing:-.035em; line-height:1.16; overflow-wrap:anywhere; }
.drawer-title p { color:var(--muted); font-size:12px; margin-top:4px; }
.drawer-tags { background:var(--paper); padding:2px 21px 11px; display:flex; gap:5px; flex-wrap:wrap; }
.drawer-nav { background:var(--paper); border-bottom:1px solid var(--line); display:flex; gap:12px; padding:0 21px; }
.drawer-contact-actions { background:var(--paper); display:flex; flex-wrap:wrap; gap:5px; padding:0 21px 7px; }
.social-template-heading { margin-top:20px; }
.csv-import-form { display:flex; flex-wrap:wrap; gap:9px; align-items:end; margin:12px 0; }
.csv-import-form .field { flex:1 1 230px; min-width:0; }
.csv-import-form input { max-width:100%; }
.city-run-list { margin-top:8px; }
.city-run-list article { display:grid; grid-template-columns:1.35fr repeat(3,1fr) 1.25fr; gap:10px; padding:10px 0; border-top:1px solid var(--line); }
.city-run-list article div { display:grid; gap:2px; }
.city-run-list article small,.city-run-list article span { color:var(--muted); font-size:11px; }
.drawer-nav button { border:0; border-bottom:2px solid transparent; display:inline-flex; gap:6px; align-items:center; background:none; color:var(--muted); padding:10px 6px; font-size:13px; font-weight:700; }
.drawer-nav .selected { border-bottom-color:#4d8a64; color:#285b41; }
.drawer-scroll { overflow:auto; overscroll-behavior:contain; }
.drawer-content { display:grid; gap:10px; padding:15px 20px 22px; }
.drawer-content form { display:grid; gap:10px; }
.score-block { display:grid; grid-template-columns:1fr 1.35fr; gap:13px; padding:11px 13px; color:#244333; background:#eaf3e6; border-radius:9px; }
.score-block > div { display:grid; align-content:center; color:#3e6150; font-size:12px; }
.score-block > div + div { border-left:1px solid #d7e7d6; padding-left:12px; }
.score-block strong { color:#203f30; font-size:16px; }
.score-block small { color:#4e695a; font-size:11px; }
.score-number { font:700 26px/1 var(--heading); color:#233f2e; letter-spacing:-.04em; margin-bottom:3px; }
.score-number small { font-size:12px; margin-left:2px; }
.section-block { background:#fff; border:1px solid var(--line); border-radius:9px; padding:12px; display:grid; gap:9px; min-width:0; }
.section-block h3,.section-heading h3 { font-size:16px; letter-spacing:-.02em; }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.section-heading > small { color:var(--muted); }
.source-link { font-size:12px; color:#2c6247; text-decoration:none; display:inline-flex; align-items:center; gap:4px; white-space:normal; overflow-wrap:anywhere; }
.source-link:hover { text-decoration:underline; }
.section-block > .source-row:not(.action-row) .source-link { background:#eff5ee; padding:4px 6px; border-radius:5px; }
.active-status { display:flex; align-items:center; gap:6px; font-size:12px; font-weight:600; }
.active-status.positive { color:#326d4c; }
.active-status.negative { color:#933a39; }
.fields-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 10px; min-width:0; }
.schedule-fields { border-top:1px solid #edf0ed; padding-top:9px; }
.drawer-actions { display:flex; justify-content:flex-end; gap:7px; flex-wrap:wrap; }
.drawer-actions .text:first-child { margin-right:auto; }
.draft-model { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:7px; align-items:end; }
.signature-preview { display:grid; border-top:1px solid var(--line); color:var(--muted); padding-top:9px; font-size:12px; }
.signals,.suggestions { padding:0; margin:0; list-style:none; display:grid; gap:5px; }
.signals li,.suggestions li { display:flex; align-items:flex-start; gap:5px; padding:6px; border-radius:5px; background:#f5f7f5; font-size:12px; }
.signals li svg,.suggestions li svg { color:#537764; }
.suggestions li { justify-content:space-between; align-items:center; }
.suggestions li > div { display:grid; gap:3px; overflow-wrap:anywhere; }
.ignored-notice { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.timeline { display:grid; gap:0; list-style:none; padding:0; margin:2px 0; min-width:0; }
.timeline > li { display:grid; grid-template-columns:30px minmax(0,1fr); gap:8px; padding:8px 0; border-bottom:1px solid var(--line); }
.timeline > li > span { border-radius:50%; width:29px; height:29px; display:grid; place-items:center; color:#4a725d; background:#eaf2ea; }
.timeline-head { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:2px 8px; }
.timeline-head time,.timeline summary { color:var(--muted); font-size:12px; }
.timeline summary { cursor:pointer; }
.timeline p,.mail-preview p { white-space:pre-wrap; overflow-wrap:anywhere; margin-top:6px; }
.note-form > .button { justify-self:start; }
dialog { color:var(--ink); background:var(--paper); border:1px solid #d4e0d5; border-radius:14px; padding:17px; width:min(560px,calc(100vw - 26px)); max-height:calc(100dvh - 30px); box-shadow:0 24px 70px #192e2361; }
dialog::backdrop { background:#11282080; }
.modal-head { display:flex; align-items:center; gap:12px; justify-content:space-between; margin-bottom:8px; }
.modal-head h2 { font-size:22px; letter-spacing:-.025em; }
dialog .drawer-actions { margin-top:12px; }
dialog .filter-check { margin-top:9px; }
.mail-preview { max-height:45vh; overflow:auto; margin-top:9px; background:#f6f8f5; border:1px solid var(--line); border-radius:8px; padding:10px; }
.toasts { position:fixed; right:14px; bottom:14px; z-index:20; display:grid; gap:6px; pointer-events:none; }
.toast { background:#1a4432; color:#fff; box-shadow:0 8px 24px #162c2540; border-radius:8px; padding:9px 12px; max-width:min(420px,calc(100vw - 28px)); }
.toast.error { background:#863d39; }
.login-wrap,.loading-page { background:radial-gradient(ellipse at 24% 16%,#e4f0dd,transparent 60%),var(--bg); min-height:100vh; display:grid; place-items:center; padding:16px; }
.login-card { width:min(100%,410px); background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow); padding:25px; }
.login-card .brand div span { color:#507261; }
.login-card h1 { font-size:29px; letter-spacing:-.04em; margin:17px 0 4px; }
.login-card p { color:var(--muted); margin-bottom:13px; }
.login-card form { display:grid; gap:7px; }
.login-card form label { font-size:13px; font-weight:700; }
.login-card form .button,.login-card .notice { margin-top:7px; }
@media (max-width:1050px) {
  .workspace { grid-template-columns:188px minmax(0,1fr); }
  .topbar,.page { padding-inline:22px; }
  .metrics { gap:8px; }
  .metric { padding:10px 9px; }
  .metric-next { display:none; }
  .data-table th,.data-table td { padding-inline:7px; }
}
@media (max-width:800px) {
  .workspace { display:flex; flex-direction:column; }
  .sidebar { position:sticky; height:auto; padding:8px 13px; flex-direction:row; align-items:center; gap:8px; }
  .sidebar .brand { padding:0; gap:6px; margin-right:auto; }
  .sidebar .brand img { width:32px; height:32px; }
  .sidebar .brand strong { font-size:15px; white-space:nowrap; }
  .sidebar .brand small,.nav-label,.sidebar-profile { display:none; }
  .nav-group,.sidebar-bottom { display:flex; gap:4px; margin:0; }
  .nav-item { min-height:40px; padding:0 7px; gap:5px; margin:0; }
  .nav-item span { font-size:12px; }
  .topbar { min-height:52px; }
  .page { padding-top:15px; }
  .search-form { grid-template-columns:minmax(90px,1.05fr) minmax(68px,.42fr) minmax(110px,1fr) auto; }
}
@media (max-width:590px) {
  .city-run-list article { grid-template-columns:1fr 1fr; }
  .sidebar .brand { margin-right:auto; }
  .nav-item { width:40px; font-size:0; justify-content:center; }
  .nav-item span { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; }
  .topbar,.page { padding-inline:11px; }
  .topbar { min-height:48px; gap:6px; }
  .crumb { font-size:12px; gap:5px; }
  .crumb > span,.crumb > svg,.privacy { display:none; }
  .top-tools { gap:5px; }
  .top-tools .button { min-height:32px; padding-inline:7px; font-size:11px; }
  .hero { padding:16px 11px 10px; border-radius:13px; }
  .hero-content { padding:0 4px; }
  .hero h1 { font-size:31px; }
  .hero-content > div { font-size:12px; max-width:91%; }
  .hero-pattern { width:225px; height:210px; right:-52px; top:-41px; opacity:.4; }
  .search-form { grid-template-columns:minmax(0,1fr) minmax(0,.73fr); padding:8px; margin-top:12px; gap:7px; }
  .search-form .field { font-size:11px; }
  .search-form .city-field { grid-column:1/-1; }
  .search-form .radius-field { grid-column:2; grid-row:2; }
  .search-form .sector-field { grid-column:1; grid-row:2; }
  .search-form .name-field { grid-column:1/-1; }
  .search-form .button { grid-column:1/-1; }
  .search-form input:not([type=checkbox]),.search-form select,.search-form .button { min-height:40px; }
  .metrics { grid-template-columns:repeat(2,minmax(0,1fr)); margin:9px 0; }
  .metric { min-height:61px; gap:6px; }
  .metric-icon { width:30px; height:30px; }
  .metric-icon svg { width:16px; height:16px; }
  .metric-text strong { font-size:20px; }
  .panel-heading { padding:11px; gap:8px; }
  .panel-heading h2 { font-size:18px; }
  .panel-heading p { font-size:12px; }
  .filters { padding:8px 10px; }
  .filters .compact { flex-basis:100%; }
  .filters select { flex:1 1 30%; }
  .data-table:not(.result-table) thead { display:none; }
  .data-table:not(.result-table) { display:block; }
  .data-table:not(.result-table) tbody { display:block; }
  .data-table:not(.result-table) tr { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; gap:0 5px; padding:7px 9px 8px; border-bottom:1px solid #edf1ec; }
  .data-table:not(.result-table) tr:last-child { border-bottom:0; }
  .data-table:not(.result-table) td { height:auto; border:0; padding:4px 2px; }
  .data-table:not(.result-table) td:first-child { grid-column:1/3; }
  .data-table:not(.result-table) td:nth-child(2) { grid-column:1; grid-row:2; }
  .data-table:not(.result-table) td:nth-child(3) { grid-column:2; grid-row:2; }
  .data-table:not(.result-table) td:nth-child(4) { grid-column:3; grid-row:2; }
  .data-table:not(.result-table) td:nth-child(5) { grid-column:1/3; grid-row:3; }
  .data-table:not(.result-table) td:nth-child(6):not(:last-child) { grid-column:2/4; grid-row:3; text-align:right; }
  .data-table:not(.result-table) td:last-child { grid-column:3; grid-row:1; justify-self:end; }
  .mobile-directory-sort { display:flex; align-items:center; gap:8px; padding:2px 10px 8px; font-size:12px; }
  .mobile-directory-sort select { width:auto; min-height:34px; }
  .result-table,.result-table tbody { display:block; }
  .result-table thead { display:none; }
  .result-table tr { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:3px 8px; padding:9px 10px; border-top:1px solid var(--line); }
  .result-table td,.result-table td:first-child,.result-table td:last-child { padding:2px 0; height:auto; border:0; font-size:11px; }
  .result-table .result-name,.result-table .result-actions { grid-column:1/-1; }
  .result-table td[data-label]::before { display:block; content:attr(data-label); color:var(--muted); font-size:10px; }
  .result-table .result-note { max-width:100%; }
  .result-table td:last-child .source-row { gap:4px; }
  .result-table .business-name strong { font-size:12px; }
  .result-table .avatar { display:none; }
  .result-table .button { padding-inline:5px; }
  .result-table .button svg { display:none; }
  .result-table tr:has(.b-ignored) { opacity:.72; }
  .templates-grid { grid-template-columns:1fr; }
  .demo-strip { flex-wrap:wrap; }
  .footer { align-items:flex-start; font-size:10px; }
  .drawer-heading,.drawer-tags,.drawer-nav,.drawer-contact-actions { padding-inline:10px; }
  .drawer-content { padding-inline:8px; }
  .drawer-title h2 { font-size:20px; }
  .drawer-nav { gap:6px; }
  .drawer-nav button { gap:4px; font-size:12px; }
  .section-block { padding:8px; }
  .fields-grid { gap:7px; }
  .field input:not([type=checkbox]),.field select,.field textarea, .search-form input:not([type=checkbox]) { font-size:16px; padding-inline:7px; }
  .search-form .has-icon input:not([type=checkbox]) { padding-left:31px; }
  .drawer-actions .button { min-height:39px; }
}
@media (prefers-reduced-motion:reduce) {
  * { scroll-behavior:auto !important; }
}

.prospect-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px 18px; }
.prospect-heading select { width:auto; }
.row-actions { display:flex; justify-content:flex-end; align-items:center; gap:4px; }
.row-actions .button { white-space:nowrap; }
.b-unreviewed { color:#41594e; background:#edf1ed; }
.b-todo { color:#6f4c0b; background:#faf0d7; }
.b-done { color:#205640; background:#e1efe3; }
.brief-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:10px 0; }
.brief-grid > div { display:flex; flex-wrap:wrap; align-items:center; gap:5px 9px; background:#f5f8f4; border:1px solid #e6ede4; border-radius:8px; padding:10px; font-size:13px; }
.brief-grid small { flex-basis:100%; color:#50665a; }
.brief-email { overflow-wrap:anywhere; }
.overview-actions { justify-content:flex-start; }
#overview-diagnostic p { margin:8px 0; }

@media (min-width:591px) and (max-width:1024px) {
  .search-form { grid-template-columns:minmax(90px,.7fr) minmax(105px,1fr) minmax(102px,.9fr) minmax(105px,.9fr) auto; }
}

@media (min-width:591px) {
  .search-form.country-wide { grid-template-columns:minmax(90px,.7fr) minmax(125px,1.3fr) minmax(115px,1fr) auto; }
}

@media (max-width:590px) {
  .search-form .country-field { grid-column:1; grid-row:1; }
  .search-form .city-field { grid-column:2; grid-row:1; }
  .prospect-heading .button { min-height:40px; }
  .data-table:not(.result-table) tr:has(.row-actions) td:first-child { grid-column:1/-1; }
  .data-table:not(.result-table) tr:has(.row-actions) td:last-child { grid-column:1/-1; grid-row:4; }
  .row-actions { flex-wrap:wrap; }
  .drawer-nav { overflow-x:auto; justify-content:flex-start; }
  .drawer-nav button { flex:none; white-space:nowrap; }
}
