:root {
  color-scheme: light;
  --ink: #172321;
  --text: #303f3b;
  --muted: #566964;
  --line: #dce5e1;
  --surface: #fff;
  --canvas: #f3f6f4;
  --nav: #132824;
  --nav-active: #27453e;
  --accent: #145f50;
  --accent-dark: #104e41;
  --mint: #e1f1e9;
  --radius: 11px;
  --font: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; background: var(--canvas); color: var(--ink); font: 500 1rem/1.5 var(--font); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled, select:disabled, input:disabled { cursor: default; opacity: .58; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #227c64; outline-offset: 3px; }
[hidden] { display: none !important; }
[data-icon] { display: inline-flex; align-items: center; flex: none; }
[data-icon] svg { width: 17px; height: 17px; }
h1, h2, p { margin: 0; }
.skip { position: fixed; z-index: 90; left: 12px; top: -100px; padding: 8px 12px; background: white; }
.skip:focus { top: 12px; }
.frame { display: grid; min-height: 100vh; grid-template-columns: 234px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; background: var(--nav); color: #c4d5d0; padding: 24px 13px 16px; }
.brand { display: flex; align-items: center; gap: 11px; margin: 0 7px 34px; color: #fff; font-size: 1.17rem; font-weight: 700; letter-spacing: -.05em; white-space: nowrap; }
.brand-tools { font-weight: 500; color: #a8c7bc; }
.brand-mark { width: 34px; height: 34px; padding: 8px; border-radius: 9px; background: #c1efae; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.brand-mark i { display: block; width: 4px; background: #173d32; border-radius: 3px; height: 7px; transform: skew(-13deg); }
.brand-mark i:nth-child(2) { height: 12px; }
.brand-mark i:last-child { height: 17px; }
.sidebar nav { display: grid; gap: 22px; }
.nav-group { display: grid; gap: 3px; }
.nav-label { color: #a3b9b2; padding: 0 10px 3px; font-size: .75rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; }
.nav-group a { display: flex; gap: 9px; align-items: center; min-height: 40px; padding: 8px 10px; font-size: .85rem; white-space: nowrap; border-radius: 7px; }
.nav-group a:hover { background: #1e3a34; }
.nav-group a[aria-current="page"] { background: var(--nav-active); color: #e4f9dc; font-weight: 700; }
.sidebar-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 13px 9px 0; border-top: 1px solid #345048; font-size: .84rem; }
.health-dot { width: 8px; height: 8px; border-radius: 100%; background: #fdcc78; }
.health-dot.ok { background: #92dcb1; }
.health-dot.error { background: #f8a6a5; }
.topbar { height: 59px; padding: 0 32px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); background: var(--surface); font-size: .875rem; color: var(--muted); }
.topbar strong { color: var(--ink); font-weight: 650; }
.breadcrumb-sep { display: inline-block; margin: 0 10px; color: #80918b; }
.help { color: var(--accent); display: flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 650; }
.workspace { max-width: 1570px; margin: 0 auto; padding: 28px 32px 48px; }
.heading { margin-bottom: 21px; }
.heading h1 { font-size: clamp(1.85rem, 3.35vw, 2.55rem); font-weight: 700; letter-spacing: -.062em; line-height: 1.11; }
.heading p { margin-top: 7px; color: var(--muted); }
.panel { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); box-shadow: 0 1px 2px #1735290b; min-width: 0; }
.search-panel { border-top: 3px solid var(--accent); padding: 16px 19px 14px; }
#research-form { display: grid; grid-template-columns: minmax(190px, 1fr) auto; gap: 12px; align-items: start; }
label { font-size: .875rem; font-weight: 650; }
.search-field, .control, .edit-fields label { display: grid; gap: 4px; }
.form-controls { display: flex; gap: 8px; align-items: end; }
textarea, select, input:not([type=checkbox]) { min-width: 0; border: 1px solid #cbd8d3; border-radius: 7px; background: #fff; color: var(--ink); }
textarea, select { min-height: 42px; padding: 8px 10px; }
textarea { resize: vertical; display: block; max-height: 145px; line-height: 1.5; width: 100%; }
textarea::placeholder, input::placeholder { color: #61736d; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2330403b' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: right 8px center; background-size: 15px; background-repeat: no-repeat; padding-right: 26px; font-size: .875rem; }
.market-control select { width: 144px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; border: 1px solid transparent; border-radius: 7px; padding: 8px 12px; min-height: 41px; font-size: .875rem; font-weight: 700; }
.button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.button.primary:hover:not(:disabled) { background: var(--accent-dark); }
.button.secondary { border-color: #cbd8d3; background: #fff; color: var(--ink); }
.button.secondary:hover:not(:disabled) { background: #f0f7f2; }
.button.compact { min-height: 34px; padding: 4px 9px; }
.example { border: 0; background: none; color: var(--accent); font-size: .86rem; font-weight: 700; padding: 5px 0; }
.example:hover { text-decoration: underline; }
.form-message { margin-top: 10px; padding: 8px 10px; border-radius: 6px; background: #f0f6f2; color: #305148; font-size: .875rem; }
.form-message.alert { background: #fff3dd; color: #684516; }
.metrics { margin: 16px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.metric { display: flex; align-items: center; gap: 11px; padding: 13px 14px; background: #fff; border: 1px solid var(--line); border-radius: 9px; min-height: 76px; }
.metric > div { display: grid; gap: 2px; }
.metric > div > span { color: var(--muted); font-size: .83rem; }
.metric strong { font: 600 1.31rem/1.12 var(--mono); letter-spacing: -.05em; }
.metric-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; color: var(--accent); background: var(--mint); }
.metric:nth-child(4) .metric-icon { color: #73511d; background: #f8efd9; }
.results-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 15px 17px 12px; }
.results-heading h2, .dialog-header h2 { font-size: 1.19rem; letter-spacing: -.035em; }
.results-heading p, .dialog-header p { color: var(--muted); font-size: .87rem; margin-top: 2px; }
.results-controls { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 3px 12px; padding: 0 17px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 22px; }
.tabs button { font-size: .875rem; border: 0; border-bottom: 2px solid transparent; background: transparent; min-height: 45px; padding: 8px 1px; color: var(--muted); }
.tabs button[aria-selected="true"] { color: var(--accent-dark); font-weight: 750; border-color: var(--accent); }
.result-filters { display: flex; gap: 6px; align-items: center; }
.filter { position: relative; display: flex; align-items: center; }
.filter span { position: absolute; left: 7px; color: var(--muted); pointer-events: none; }
.filter span svg { width: 15px; height: 15px; }
.filter input { width: 151px; padding: 5px 6px 5px 26px; height: 33px; font-size: .83rem; }
.result-filters select { min-height: 33px; padding-top: 4px; padding-bottom: 4px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: normal; }
thead { background: #f6f8f7; }
th, td { padding: 10px 12px; vertical-align: middle; border-bottom: 1px solid #e7eeea; font-size: .86rem; }
th:first-child, td:first-child { padding-left: 17px; }
th:last-child, td:last-child { padding-right: 17px; }
th { color: #3b514a; font-weight: 700; font-size: .8rem; white-space: nowrap; }
tbody tr:hover { background: #f7fbf8; }
td.keyword { font-weight: 700; overflow-wrap: anywhere; min-width: 175px; }
td.number { font-family: var(--mono); color: var(--muted); }
td.actions { text-align: right; }
.icon-button { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid transparent; border-radius: 6px; color: var(--accent); background: transparent; }
.icon-button:hover { border-color: var(--line); background: var(--mint); }
.intent-badge, .status-badge { display: inline-block; white-space: nowrap; padding: 3px 7px; border-radius: 5px; font-size: .76rem; background: #eef2f0; color: #435852; font-weight: 700; }
.intent-badge.informational { background: #e6f0fa; color: #31567e; }
.intent-badge.commercial { background: #f0eafa; color: #5e4385; }
.intent-badge.transactional, .status-badge.ok, .status-badge.cached { background: var(--mint); color: var(--accent-dark); }
.intent-badge.needs-review, .status-badge.partial, .status-badge.empty { background: #faf0d9; color: #704c15; }
.status-badge.error { background: #fbe9e8; color: #863832; }
.cluster-tile:hover { background: #fbfdfa; }
details.cluster-tile { border-bottom: 1px solid var(--line); }
.cluster-tile summary { display: grid; align-items: center; gap: 12px; grid-template-columns: 16px minmax(100px, 1fr) auto auto; cursor: pointer; list-style: none; padding: 12px 17px; }
.cluster-tile summary::-webkit-details-marker { display: none; }
.cluster-tile summary::before { content: ""; width: 7px; height: 7px; border-right: 1.5px solid #527067; border-bottom: 1.5px solid #527067; transform: rotate(-45deg); }
.cluster-tile[open] summary::before { transform: rotate(45deg); }
.cluster-title { font-weight: 700; overflow-wrap: anywhere; }
.cluster-count, .cluster-tools { color: var(--muted); font-size: .82rem; }
.cluster-tools { display: flex; align-items: center; gap: 7px; padding: 4px 17px 10px; }
.cluster-tools button { min-height: 30px; }
.cluster-tile .table-scroll { padding: 0 14px 10px; }
.link-button { color: var(--accent-dark); border: 0; background: transparent; text-align: left; font-weight: 650; padding: 2px 0; }
.link-button:hover { text-decoration: underline; }
.empty { min-height: 195px; display: grid; align-content: center; justify-items: center; color: var(--muted); gap: 3px; text-align: center; padding: 16px; }
.empty .empty-icon { border-radius: 10px; width: 40px; height: 40px; background: var(--mint); color: var(--accent); justify-content: center; margin-bottom: 6px; }
.empty strong { color: var(--ink); font-size: 1.02rem; }
.empty p { font-size: .875rem; }
.pager { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 9px 17px; color: var(--muted); font-size: .83rem; }
.pager div { display: flex; gap: 5px; }
dialog { width: min(550px, calc(100% - 24px)); max-height: calc(100dvh - 26px); padding: 0; border: 1px solid #cdd9d4; border-radius: 13px; color: var(--ink); box-shadow: 0 20px 65px #0d211d50; }
dialog::backdrop { background: #13282477; }
.dialog-header, .dialog-footer { display: flex; padding: 15px 18px; gap: 10px; align-items: center; justify-content: space-between; }
.dialog-header { border-bottom: 1px solid var(--line); }
.dialog-footer { border-top: 1px solid var(--line); }
.dialog-footer label { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.edit-fields { display: grid; padding: 16px 18px; gap: 8px; }
.edit-fields input { padding: 8px 10px; }
@media (max-width: 1100px) {
  .frame { grid-template-columns: 205px minmax(0, 1fr); }
  .workspace, .topbar { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 890px) {
  .frame { display: block; }
  .sidebar { position: static; height: auto; padding: 9px 14px; flex-direction: row; align-items: center; gap: 13px; }
  .brand { margin: 0; }
  .sidebar nav { display: flex; gap: 3px; overflow-x: auto; }
  .nav-group { display: flex; gap: 2px; }
  .nav-label, .sidebar-foot { display: none; }
  .nav-group a { min-height: 35px; }
}
@media (max-width: 640px) {
  .workspace, .topbar { padding-left: 13px; padding-right: 13px; }
  .workspace { padding-top: 17px; }
  .topbar { height: 47px; }
  .topbar strong, .topbar .breadcrumb-sep { display: none; }
  .heading { margin-bottom: 13px; }
  .heading p { font-size: .875rem; }
  .search-panel { padding: 12px; }
  #research-form { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .form-controls { flex-wrap: wrap; }
  .market-control { flex: 1; }
  .market-control select { width: 100%; }
  .form-controls > button { flex: 1 1 100%; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 10px 0; }
  .metric { padding: 8px; gap: 7px; min-height: 62px; }
  .metric-icon { width: 27px; height: 27px; }
  .metric > div > span { font-size: .74rem; }
  .metric strong { font-size: 1.06rem; }
  .results-heading { padding: 12px; }
  .results-controls { padding: 0 12px 8px; }
  .tabs { gap: 16px; width: 100%; }
  .tabs button { min-height: 38px; }
  .results-heading p { max-width: 25ch; }
  .results-heading .button { padding-left: 8px; padding-right: 8px; }
  .cluster-tile summary { gap: 8px; padding: 10px; }
}

.expansion-panel {
  grid-column: 1 / -1;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.expansion-panel legend { padding: 0; font-size: .875rem; font-weight: 700; }
.expansion-tools, .expansion-presets, .run-progress { display: flex; align-items: center; gap: 6px; }
.expansion-tools { justify-content: space-between; margin: 5px 0 7px; flex-wrap: wrap; }
.expansion-tools p, .run-progress span { color: var(--muted); font-size: .82rem; }
.expansion-tools .compact { min-height: 29px; font-size: .78rem; }
.expansion-options { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.expansion-option {
  display: flex; gap: 7px; align-items: flex-start; min-width: 0; padding: 8px 7px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface); cursor: pointer;
}
.expansion-option:has(input:checked) { background: #f1f8f4; border-color: #9bbeb1; }
.expansion-option input { margin: 4px 0 0; accent-color: var(--accent); flex: none; }
.expansion-option span { display: grid; gap: 2px; min-width: 0; font-size: .8rem; }
.expansion-option small { font-size: .73rem; color: var(--muted); line-height: 1.32; overflow-wrap: anywhere; }
.run-progress { margin-top: 12px; flex-wrap: wrap; }
.run-progress progress { flex: 1 1 120px; height: 7px; accent-color: var(--accent); }
.variation-cell { min-width: 125px; color: var(--muted); font-size: .78rem; }
.result-filters { flex-wrap: wrap; }
@media (max-width: 1040px) { .expansion-options { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .expansion-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .expansion-option { padding: 6px; }
  .result-filters select { max-width: 100%; }
  .result-filters .filter { flex: 1 0 100%; }
  .result-filters .filter input { width: 100%; }
}

.source-detail { display: block; color: var(--muted); font-size: .75rem; font-weight: 500; }

.retry-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 7px; }
.retry-controls span { color: var(--muted); font-size: .82rem; }

.alphabet-controls { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 13px 17px 8px; }
.alphabet-controls label { display: flex; align-items: center; gap: 6px; min-width: 0; }
.alphabet-controls select { max-width: min(50vw, 280px); }
.letter-picker { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px 17px 12px; }
.letter-picker button {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 5px; width: 34px; height: 34px; font-size: .85rem; font-weight: 650;
}
.letter-picker button[aria-pressed="true"] { color: #fff; border-color: var(--accent); background: var(--accent); }
.letter-picker button:hover:not([aria-pressed="true"]) { background: var(--mint); }
.alphabet-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 12px; padding: 5px 17px 11px; }
.alphabet-heading h3 { margin: 0; font-size: 1.06rem; overflow-wrap: anywhere; }
.alphabet-heading span { font-size: .83rem; color: var(--muted); }
.alphabet-rank { width: 73px; }
@media (max-width: 640px) {
  .tabs { gap: 13px; }
  .alphabet-controls, .letter-picker, .alphabet-heading { padding-left: 12px; padding-right: 12px; }
}

.workbench .workspace { padding-top: 25px; }
.workbench .heading { margin-bottom: 16px; }
.workbench .heading h1 { font-size: clamp(1.85rem, 2.8vw, 2.35rem); }
.workbench .heading p { margin-top: 4px; }
.workbench :is(.panel, .query-bar) { border-radius: 10px; }
.workbench .query-bar { padding: 12px 14px; margin-bottom: 8px; align-items: end; }
.workbench .query-bar textarea { padding: 10px 11px; min-height: 45px; border-color: var(--border-strong); }
.workbench .query-bar .locale-trigger { min-height: 45px; background: var(--surface); border-color: var(--border-strong); }
.workbench .query-bar .locale-trigger:hover { background: var(--accent-soft); }
.workbench .query-bar .query-submit { min-height: 45px; padding-inline: 16px; }
.workbench .search-panel { padding: 14px 15px 12px; }
.workbench .search-panel #research-form { display: block; }
.source-panel { padding-bottom: 13px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.source-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-bottom: 7px; }
.source-heading h2 { font-size: .92rem; }
#source-count { color: var(--muted); font-size: .81rem; }
.source-choices { display: grid; gap: 1px; }
.source-group { display: grid; grid-template-columns: 125px minmax(0, 1fr); gap: 10px; align-items: start; padding-block: 6px; }
.source-group + .source-group { border-top: 1px solid var(--line); }
.source-group-title { color: var(--muted); font-size: .80rem; font-weight: 700; align-self: center; }
.source-options { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.source-choice span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 1200px) {
  .source-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.source-choice {
  display: flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 8px;
  border: 1px solid var(--line); border-radius: 7px; background: #f9fbfe;
  color: var(--text); font-size: .79rem; line-height: 1.25; cursor: pointer;
}
.source-choice input { flex: none; accent-color: var(--accent); margin: 0; }
.source-choice .provider-icon { width: 15px; height: 15px; }
.source-choice:hover { border-color: var(--accent); }
.source-choice:has(input:checked) { border-color: #9db9ec; background: var(--accent-soft); color: var(--accent-dark); }
.source-choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.source-choice input:focus-visible { outline: none; }
.workbench .expansion-panel legend { font-size: .92rem; }
.workbench .expansion-tools { margin: 6px 0 9px; }
.workbench .expansion-presets { flex-wrap: wrap; }
.workbench .expansion-option { border-radius: 7px; padding: 8px; align-items: flex-start; }
.workbench .expansion-option:hover { border-color: var(--accent); }
.workbench .expansion-option:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.workbench .expansion-option span { font-weight: 650; }
.workbench .expansion-option small { font-weight: 500; }
.research-options {
  display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px 14px;
  margin-top: 11px; padding-top: 8px; border-top: 1px solid var(--line);
}
.score-option { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-size: .82rem; cursor: pointer; }
.score-option:has(:disabled) { color: var(--muted); cursor: default; }
.score-option input { accent-color: var(--accent); margin: 0; }

.workbench .metrics { gap: 9px; border: 0; border-radius: 0; overflow: visible; background: transparent; box-shadow: none; margin: 14px 0; }
.workbench .metric { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; min-height: 68px; padding: 9px 12px; gap: 9px; box-shadow: var(--shadow); }
.workbench .metric:first-child { border-color: #becff1; background: #f9fbff; }
.workbench .metric-icon { width: 30px; height: 30px; flex: none; }
.workbench .metric strong { font-size: 1.4rem; }
.workbench .metric > div > span { font-size: .79rem; }

.workbench .results-heading { padding: 13px 15px 10px; }
.workbench .results-heading > div { min-width: 0; }
.workbench .results-heading h2 { font-size: 1.22rem; }
.workbench #run-label { overflow-wrap: anywhere; }
.workbench .results-heading .button { min-height: 35px; font-size: .82rem; }
.workbench .results-controls { padding: 0; gap: 0; align-items: stretch; flex-direction: column; }
.workbench .results-controls .tabs { padding: 0 15px; width: 100%; gap: 20px; }
.workbench .tabs button { min-height: 38px; }
.workbench .tabs button:hover { color: var(--accent-dark); }
.workbench .result-filters { padding: 8px 15px; border-top: 1px solid var(--line); background: #f9fbfe; }
.workbench .result-filters input { width: clamp(150px, 21vw, 255px); }
.workbench .results-panel :is(th, td) { border-bottom-color: #e6ebf3; }
.workbench .results-panel th { background: #eef3f9; font-size: .76rem; }
.workbench .results-panel td { padding-block: 7px; }
.workbench .results-panel .keyword { min-width: 155px; }
.workbench .results-panel tbody tr:nth-child(even):not(:hover) { background: #fbfcff; }
.workbench .results-panel tbody tr:hover { background: #eef4ff; }
.workbench .result-source-icon { width: 21px; height: 21px; }
.workbench .result-source-icons { gap: 2px; }
.workbench .empty { min-height: 155px; }
.workbench .empty .empty-icon { border: 1px solid #d8e3fc; border-radius: 9px; }
.workbench .alphabet-controls, .workbench .letter-picker { background: #f9fbfe; }
.score-sort { display: inline-flex; align-items: center; gap: 5px; margin: -4px; padding: 4px; background: transparent; border: 0; border-radius: 4px; color: inherit; }
.score-sort:hover, th:not([aria-sort="none"]) > .score-sort { color: var(--accent-dark); }
.google-score span { display: inline-block; border-radius: 4px; background: #eaf1ff; color: #204b9a; padding: 1px 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.google-score.missing { color: var(--muted); }

@media (max-width: 650px) {
  .workbench .workspace { padding-top: 15px; }
  .workbench .heading { margin-bottom: 12px; }
  .workbench .query-bar { padding: 8px; }
  .workbench .query-bar .query-submit { padding-inline: 9px; }
  .workbench .search-panel { padding: 10px; }
  .source-group { grid-template-columns: 1fr; gap: 5px; padding-block: 7px; }
  .source-options { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .source-choice { min-width: 0; min-height: 42px; padding: 4px; gap: 4px; font-size: .73rem; }
  .source-choice .provider-icon { width: 13px; height: 13px; }
  .source-choice span { min-width: 0; overflow-wrap: anywhere; }
  .workbench .expansion-tools { gap: 5px; }
  .workbench .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 10px 0; }
  .workbench .metric { padding: 7px 9px; min-height: 59px; }
  .workbench .metric strong { font-size: 1.18rem; }
  .workbench .results-controls .tabs { padding-inline: 11px; gap: 14px; }
  .workbench .result-filters { padding: 7px 11px; }
  .workbench .result-filters input { width: 100%; }
}
@media (max-width: 355px) {
  .source-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
