@font-face {
  font-family: "DM Sans";
  src: url("/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #182d25;
  --forest: #194d39;
  --forest-deep: #173f30;
  --muted: #5c695f;
  --line: #d8ded4;
  --paper: #f6f7f1;
  --panel: #fffefa;
  --lime: #d9eda8;
  --focus: #377650;
  --shadow: 0 2px 4px rgb(39 59 43 / 3%);
  font-family: "DM Sans", system-ui, sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 15px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
a { color: var(--forest); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
.wrap { width: min(1240px, calc(100% - 112px)); margin-inline: auto; }

.mast { background: #fbfcf7; border-bottom: 1px solid var(--line); }
.mast-inner { display: flex; align-items: center; min-height: 74px; gap: 50px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--ink); text-decoration: none; font-size: 22px; font-weight: 740; letter-spacing: -.065em; }
.brand-icon { display: inline-flex; align-items: end; justify-content: center; gap: 3px; width: 33px; height: 33px; padding: 7px 6px; border-radius: 8px; background: var(--forest); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 8%); }
.brand-icon i { display: block; width: 4px; border-radius: 1px; background: var(--lime); }
.brand-icon i:nth-child(1) { height: 6px; }
.brand-icon i:nth-child(2) { height: 11px; }
.brand-icon i:nth-child(3) { height: 17px; }
.mast nav { align-self: stretch; display: flex; align-items: stretch; gap: 26px; }
.mast nav a { display: inline-flex; align-items: center; gap: 6px; padding: 2px 0 0; border-bottom: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 550; white-space: nowrap; }
.mast nav a[aria-current="page"] { color: var(--forest); border-bottom-color: var(--forest); font-weight: 700; }
.mast nav a:hover { color: var(--forest); }
#list-count { padding: 0 6px; border-radius: 5px; background: #e8ece2; color: #425447; font-size: 11px; line-height: 18px; font-variant-numeric: tabular-nums; }
.byline { margin-left: auto; color: var(--muted); font-size: 12px; }
.byline strong { color: #45584a; font-weight: 650; }

.intro { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 202px; padding: 31px 0; isolation: isolate; }
.kicker, .eyebrow { display: flex; align-items: center; gap: 8px; color: #516653; font-weight: 700; }
.kicker { font-size: 13px; }
.google-g, .list-symbol { display: inline-grid; place-content: center; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--forest); font-size: 14px; line-height: 1; font-weight: 800; }
.google-g { color: #4285f4; }
.intro h1 { margin: 9px 0 5px; font-size: clamp(42px, 4.6vw, 64px); font-weight: 600; line-height: 1.02; letter-spacing: -.068em; }
.intro h1 span { color: #729458; }
.intro p { margin-top: 10px; color: var(--muted); font-size: clamp(15px, 1.3vw, 17px); }
.signal-art { position: relative; width: min(29%, 290px); height: 150px; margin-right: 13px; overflow: hidden; flex: none; pointer-events: none; background: radial-gradient(circle, #c5cfb8 1px, transparent 1.5px) 0 0 / 13px 13px; mask-image: linear-gradient(90deg, transparent, #000 14%, #000 88%, transparent); }
.signal-art::before, .signal-art::after { content: ""; position: absolute; top: 50%; left: 60%; background: #cbd6be; }
.signal-art::before { width: 82%; height: 1px; transform: translateX(-50%); }
.signal-art::after { width: 1px; height: 92%; transform: translateY(-50%); }
.ring { position: absolute; z-index: 1; left: 60%; top: 50%; transform: translate(-50%, -50%); aspect-ratio: 1; border: 1px solid #c3cfb2; border-radius: 50%; }
.ring-large { width: 141px; }
.ring-mid { width: 101px; }
.ring-small { width: 61px; background: rgb(204 225 173 / 11%); }
.needle { position: absolute; z-index: 2; top: 50%; left: 60%; width: 72px; height: 1px; transform: rotate(-37deg); transform-origin: left; background: #98b078; }
.point { position: absolute; z-index: 2; width: 7px; height: 7px; border: 1px solid #789655; border-radius: 50%; background: #cde39b; box-shadow: 0 0 0 3px rgb(205 227 155 / 24%); }
.p1 { left: calc(60% - 3px); top: calc(50% - 3px); background: #729756; }
.p2 { left: calc(60% + 53px); top: calc(50% - 46px); }
.p3 { left: calc(60% - 46px); top: calc(50% + 23px); }

.panel, .advisor { min-width: 0; border-radius: 15px; }
.panel { border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.query { position: relative; z-index: 2; }
.fields { display: grid; grid-template-columns: minmax(190px, 1.75fr) minmax(135px, 1fr) minmax(125px, .87fr) auto; align-items: end; gap: 15px; padding: 25px 26px 22px; }
label, .location-field { display: flex; min-width: 0; flex-direction: column; gap: 7px; color: #394b3e; font-size: 13px; font-weight: 640; }
input:not([type="checkbox"]), select, textarea { display: block; width: 100%; min-width: 0; height: 44px; padding: 0 13px; border: 1px solid #ccd5c7; border-radius: 7px; color: var(--ink); background-color: #fff; font-size: 14px; font-weight: 460; line-height: normal; }
input::placeholder, textarea::placeholder { color: #758176; opacity: 1; }
input:not([type="checkbox"]):hover, select:hover, textarea:hover { border-color: #9faa9a; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); }
textarea { min-height: 80px; height: auto; padding: 11px 13px; line-height: 1.5; resize: vertical; }
select { appearance: none; padding-right: 35px; background-image: linear-gradient(45deg, transparent 51%, #63745f 51%), linear-gradient(135deg, #63745f 49%, transparent 49%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.input-icon { position: relative; display: block; }
.input-icon input { padding-left: 36px; }
.search-icon { position: absolute; top: 50%; left: 14px; width: 12px; height: 12px; border: 1.5px solid #73826f; border-radius: 50%; transform: translateY(-60%); pointer-events: none; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 1.5px; bottom: -2px; right: -4px; border-radius: 2px; background: #73826f; transform: rotate(47deg); }
.location-field { position: relative; }
#locations { position: absolute; z-index: 5; top: 100%; left: 0; width: max(100%, 265px); max-width: min(420px, 83vw); max-height: 270px; overflow-y: auto; list-style: none; margin: 5px 0 0; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: 0 9px 24px rgb(24 46 29 / 12%); }
#locations li { padding: 7px 9px; border-radius: 4px; overflow-wrap: anywhere; font-size: 13px; font-weight: 500; cursor: pointer; }
#locations small { display: block; color: var(--muted); font-size: 11px; }
#locations li[aria-selected=true], #locations li:hover { background: #edf2e5; }
.btn, .advisor-btn { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 42px; border: 1px solid #cbd5c7; border-radius: 7px; background: #fffefa; padding: 9px 16px; color: var(--ink); font-size: 14px; line-height: 1.3; font-weight: 630; }
.btn:hover:not(:disabled) { border-color: #97aa97; background: #f1f5ea; }
.btn.primary { border-color: var(--forest); background: var(--forest); color: #fff; }
.btn.primary:hover:not(:disabled) { border-color: #123a28; background: #123a28; }
.btn:disabled { opacity: .62; }
.search-submit { min-height: 44px; white-space: nowrap; padding-inline: 20px; }
.query-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 49px; padding: 4px 26px; border-top: 1px solid #e4e8dd; }
.settings-toggle, .text-btn { background: none; border: 0; padding: 4px 0; color: var(--forest); font-weight: 650; font-size: 13px; }
.settings-toggle { display: inline-flex; align-items: center; gap: 7px; }
.sliders { font-size: 18px; line-height: 1; }
.chev { width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.settings-toggle[aria-expanded=true] .chev { transform: translateY(1px) rotate(225deg); }
.settings-toggle:hover, .text-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
#settings-summary { color: var(--muted); font-size: 12px; text-align: right; }
.advanced { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; padding: 17px 26px 20px; background: #f8faf3; border-top: 1px solid var(--line); border-radius: 0 0 15px 15px; }
.hint, .table-note { color: var(--muted); font-size: 12px; line-height: 1.55; }
.advanced .hint { grid-column: 1 / -1; }
.provider-note { border-top: 1px solid #e4e8dd; padding: 10px 26px; background: #f2f5e9; border-radius: 0 0 15px 15px; color: #51614d; font-size: 12px; }
.provider-note a { font-weight: 650; text-underline-offset: 2px; }

.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(255px, .39fr); gap: 20px; margin-top: 23px; align-items: start; }
.results { overflow: hidden; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 22px 25px 19px; border-bottom: 1px solid #e3e7dc; }
.eyebrow { font-size: 10px; line-height: 1.5; text-transform: uppercase; letter-spacing: .13em; }
h2 { font-size: 25px; font-weight: 630; line-height: 1.2; letter-spacing: -.05em; }
.results-head h2, .report h2 { margin-top: 4px; overflow-wrap: anywhere; }
.row-count { flex: none; padding: 3px 9px; border: 1px solid #dce3d6; border-radius: 100px; background: #f3f6ed; color: #4c614a; font-size: 11px; font-weight: 620; white-space: nowrap; }
.empty { display: grid; place-items: center; align-content: center; min-height: 233px; padding: 27px 20px 29px; text-align: center; }
.empty h3, .recent h3 { font-size: 17px; font-weight: 650; letter-spacing: -.035em; line-height: 1.4; }
.empty p, #history p { color: var(--muted); font-size: 13px; }
.empty p { margin: 3px 0; }
.sample-btn { margin-top: 5px; text-decoration: underline; text-underline-offset: 3px; }
.empty-art { position: relative; width: 74px; height: 60px; margin-bottom: 11px; }
.empty-art::before { content: ""; position: absolute; width: 66px; height: 45px; left: 3px; top: 8px; border-radius: 50%; background: #f0f3e7; }
.sheet { display: block; position: absolute; width: 34px; height: 40px; border: 1.5px solid #90a585; border-radius: 4px; background: #fffef9; }
.sheet-back { left: 17px; top: 5px; transform: rotate(-14deg); background: #e2edce; border-color: #b1c09a; }
.sheet-front { left: 26px; top: 12px; display: flex; flex-direction: column; gap: 4px; padding: 9px 6px; transform: rotate(8deg); }
.sheet-front i { display: block; height: 2px; width: 16px; background: #a6b49b; border-radius: 1px; }
.sheet-front i:last-child { width: 11px; }
.empty-art b { position: absolute; left: 56px; top: 6px; width: 7px; height: 7px; background: #a3bc83; clip-path: polygon(50% 0, 64% 35%, 100% 50%, 64% 65%, 50% 100%, 35% 65%, 0 50%, 35% 35%); }
.rail { display: grid; min-width: 0; gap: 15px; }
.advisor { position: relative; padding: 21px 23px 19px; border: 1px solid #173d2d; color: #fff; background: var(--forest-deep); box-shadow: var(--shadow); }
.advisor-top { display: flex; align-items: center; justify-content: space-between; }
.spark { color: var(--lime); font-size: 30px; line-height: .95; }
.model { padding: 2px 8px; border: 1px solid #61846b; border-radius: 20px; color: #deebc9; font-size: 10px; font-weight: 650; letter-spacing: .02em; }
.advisor h2 { margin: 14px 0 7px; color: #f7faee; font-size: 23px; }
.advisor p { color: #d2dfcf; font-size: 14px; line-height: 1.5; }
.advisor-btn { width: 100%; min-height: 38px; margin-top: 16px; border-color: var(--lime); background: var(--lime); color: #233e28; }
.advisor-btn::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.advisor-btn:hover:not(:disabled) { background: #e5f5bb; }
.advisor-btn:disabled { background: #c3d3a8; border-color: #c3d3a8; color: #374b38; }
.advisor-btn:focus-visible { outline-color: #def5b5; }
.advisor small { display: block; margin-top: 7px; text-align: center; color: #c7d5c1; font-size: 11px; }
.recent { padding: 17px 21px 19px; }
.recent-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#history { display: grid; margin-top: 8px; }
#history button { min-width: 0; width: 100%; border: none; background: none; border-top: 1px solid #e4e8de; padding: 9px 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--forest); text-align: left; font-size: 13px; overflow-wrap: anywhere; }
#history button:hover { text-decoration: underline; }
#history small { font-size: 11px; color: var(--muted); }
.list-settings { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; padding: 22px 25px; }
.list-settings label { min-width: 180px; flex: 1; }
.list-settings .btn { min-height: 44px; }
#toolbar { padding: 16px 25px; }
.filterbar, .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filterbar .filter { flex: 1 1 175px; }
.filterbar select { width: auto; max-width: 100%; }
.filterbar input, .filterbar select { height: 37px; font-size: 13px; }
.actions { margin-top: 9px; gap: 6px; }
.btn.mini { min-height: 30px; padding: 6px 9px; border-radius: 5px; font-size: 12px; }
#remove { color: #884634; }
.table-wrap { width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 475px; font-size: 13px; }
th, td { padding: 11px 9px; text-align: left; border-top: 1px solid #e5e8de; }
th { background: #f3f5ed; color: #53624f; font-size: 11px; font-weight: 700; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 24px; width: 45px; }
th:last-child, td:last-child { padding-right: 22px; }
td:nth-child(2) { color: var(--ink); font-weight: 560; overflow-wrap: anywhere; }
td:nth-child(n + 3) { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--muted); }
tbody tr:hover { background: #f7f9f1; }
tbody tr:has(input:checked) { background: #eff5e4; }
input[type=checkbox] { width: 16px; height: 16px; vertical-align: middle; margin: 0; accent-color: var(--forest); cursor: pointer; }
.table-note { padding: 10px 24px; }
.notice { margin: 10px 0 0; padding: 10px 13px; border-radius: 6px; background: #eaf2df; color: #345436; font-size: 13px; overflow-wrap: anywhere; }
.results .notice { margin: 0 16px 15px; }
.notice.error, .notice.is-error { background: #faeae2; color: #803d2c; }
.report { margin-top: 22px; padding: 24px 26px; }
#report-summary { margin-top: 10px; color: var(--muted); }
#groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; margin-top: 17px; }
.report-group { min-width: 0; padding: 15px 16px; background: #f5f7ee; border: 1px solid #dde5d5; border-radius: 8px; overflow-wrap: anywhere; }
.report-group h3 { font-size: 17px; line-height: 1.25; letter-spacing: -.035em; }
.report-group p { margin-top: 6px; font-size: 13px; }
.group-intent { color: #51674d; }
.keyword-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 11px 0; padding: 0; list-style: none; }
.keyword-chips li { min-width: 0; border-radius: 5px; border: 1px solid #d5dfca; padding: 3px 6px; background: #fbfcf7; color: #3d5843; font-size: 11px; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 17px 0 25px; margin-top: 35px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.footer b { margin-inline: 3px; color: #879880; }

dialog { width: min(460px, calc(100% - 26px)); max-height: calc(100% - 30px); overflow-y: auto; padding: 0; border: 1px solid #c7d0bf; border-radius: 15px; background: var(--panel); color: var(--ink); box-shadow: 0 22px 100px rgb(18 43 26 / 23%); }
dialog::backdrop { background: rgb(19 39 28 / 41%); }
#dialog-form { margin: 0; padding: 22px; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 14px; }
.dialog-head h2 { font-size: 25px; }
.close { flex: none; display: grid; place-content: center; width: 32px; height: 32px; margin: -3px -3px 0 0; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); font-size: 22px; line-height: 1; }
.close:hover { background: #eff3e7; }
#dialog-fields { display: grid; gap: 12px; }
#dialog-fields details { padding-top: 2px; }
#dialog-fields details summary { color: var(--forest); font-size: 13px; font-weight: 650; cursor: pointer; }
#dialog-fields details label { margin-top: 8px; }
.check-field { flex-direction: row; gap: 9px; align-items: center; }
#dialog-help { margin-top: 14px; }
#dialog-submit { margin-top: 16px; }

@media (min-width: 1500px) {
  .intro { min-height: 218px; }
}
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 64px); }
  .fields { gap: 10px; grid-template-columns: minmax(150px, 1.5fr) minmax(120px, 1fr) minmax(104px, .85fr) auto; }
  .workspace { grid-template-columns: minmax(0, 1fr) minmax(238px, .44fr); gap: 16px; }
  .intro { min-height: 180px; }
}
@media (max-width: 780px) {
  .wrap { width: calc(100% - 40px); }
  .mast-inner { min-height: 64px; gap: 28px; }
  .mast nav { gap: 16px; }
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px 20px; gap: 12px; }
  .query-footer, .provider-note { padding-inline: 20px; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .rail { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
  .advisor, .recent { padding: 19px; }
  .signal-art { width: 23%; margin: 0; }
}
@media (max-width: 570px) {
  .wrap { width: calc(100% - 32px); }
  .mast-inner { gap: 16px; min-height: 59px; justify-content: space-between; }
  .mast nav { gap: 12px; }
  .mast nav a { gap: 4px; font-size: 12px; }
  .brand { gap: 7px; font-size: 18px; }
  .brand-icon { width: 27px; height: 27px; padding: 5px; gap: 2px; border-radius: 6px; }
  .brand-icon i { width: 3px; }
  .byline, .signal-art { display: none; }
  .intro { min-height: 0; padding: 26px 0 22px; }
  .intro h1 { font-size: clamp(36px, 9.2vw, 48px); }
  .intro p { font-size: 14px; }
  .fields { padding: 16px; gap: 12px 9px; }
  .seed-field, .search-submit { grid-column: 1 / -1; }
  input:not([type=checkbox]), select, textarea { font-size: 16px; }
  #locations { width: min(280px, 72vw); }
  .query-footer { padding: 6px 16px; gap: 10px; }
  #settings-summary { max-width: 46%; font-size: 10px; }
  .advanced { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .provider-note { padding-inline: 16px; }
  .workspace { margin-top: 16px; gap: 14px; }
  .results-head { padding: 16px; gap: 6px; }
  .results-head h2 { font-size: 21px; }
  .row-count { font-size: 10px; padding-inline: 7px; }
  .empty { min-height: 204px; padding: 18px 12px; }
  .rail { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .advisor h2 { margin-top: 10px; }
  .list-settings { gap: 8px; padding: 16px; }
  .list-settings label { flex-basis: 100%; }
  .list-settings .btn { flex: 1; }
  #toolbar { padding: 12px 14px; }
  .filterbar { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .filterbar select { width: 100%; }
  .report { padding: 17px; }
  .footer { margin-top: 23px; }
}
@media (max-width: 340px) {
  .wrap { width: calc(100% - 24px); }
  .mast-inner, .mast nav { gap: 6px; }
  .brand { font-size: 16px; }
  .mast nav a { font-size: 11px; }
  #list-count { padding-inline: 4px; }
}
@media (forced-colors: active) {
  .brand-icon, .sheet, .advisor, .ring { border: 1px solid CanvasText; }
  .brand-icon i, .sheet-front i { background: CanvasText; }
  select { appearance: auto; background-image: none; }
}
