/* Interface system: neutral surfaces, a single spacing scale, data before decoration.
   styles.css owns legacy layouts; this file owns the shared visual language. */
@font-face {
  font-family: "Golos Text";
  src: url("/assets/fonts/GolosText-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #fff;
  --surface: #fff;
  --surface-soft: #f0f1ed;
  --surface-raised: #f6f7f4;
  --ink: #1b211d;
  --muted: #5d665f;
  --line: #d5dbd4;
  --line-strong: #a3afa4;
  --brand-amber: #f2b561;
  --accent: #805013;
  --accent-soft: #fff3dd;
  --accent-soft-hover: #fbe6c4;
  --accent-line: #af7426;
  --action: var(--brand-amber);
  --action-hover: #e7a64b;
  --on-action: #272923;
  --plan-selection-fill: #f2b56147;
  --plan-selection-ink: #805013;
  --green: #272923;
  --green-dark: #272923;
  --blue: #5a6a7c;
  --orange: #986b2b;
  --positive: #245b42;
  --positive-soft: #e8f2e9;
  --warning: #956d32;
  --warning-soft: #fbf8f1;
  --shadow: 0 12px 40px #0000000c;
  --content: 1380px;
  --gutter: clamp(20px, 4vw, 56px);
  --topbar-height: 68px;
  --active-filters-height: 0px;
  --catalog-row-padding: 18px;
  --catalog-image-size: 52px;
  --catalog-title-size: 15px;
  --catalog-price-size: 15px;
}
:root[data-density="compact"] {
  --catalog-row-padding: 10px;
  --catalog-image-size: 40px;
  --catalog-title-size: 14px;
  --catalog-price-size: 14px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141414;
  --surface: #1b1b1a;
  --surface-soft: #252524;
  --surface-raised: #1f1f1e;
  --ink: #eeefea;
  --muted: #a0a199;
  --line: #33342f;
  --line-strong: #56594e;
  --accent: #f2b561;
  --accent-soft: #392d1e;
  --accent-soft-hover: #4b3821;
  --accent-line: #c58d3b;
  --green: #e9ebe2;
  --green-dark: #e9ebe2;
  --blue: #b0bac9;
  --orange: #d0ac76;
  --positive: #a7c5aa;
  --positive-soft: #232d24;
  --warning: #ceae79;
  --warning-soft: #2c2820;
  --shadow: 0 14px 44px #0004;
}
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--topbar-height) + var(--active-filters-height) + 12px); }
body { background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
::selection { background: var(--action); color: var(--on-action); }
input, textarea { caret-color: var(--accent); }
input[type="checkbox"], input[type="radio"], .inline-form input[type="checkbox"] { accent-color: var(--action); }
button, input, select, textarea { font: inherit; }
button, a, summary, input, select, textarea { touch-action: manipulation; }
a { color: inherit; text-underline-offset: 3px; }
button { color: inherit; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, strong { font-weight: 550; }
h1, h2, h3 { letter-spacing: -.025em; }
.secondary-button, .run-button, .session-button, .ghost-link, .topbar-action, .table-fields-button, .theme-toggle, .text-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 36px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface); color: var(--ink); font-size: 13px; line-height: 1.35; font-weight: 500; text-decoration: none; box-shadow: none; cursor: pointer;
}
:where(.secondary-button, .run-button, .session-button, .theme-toggle, .table-fields-button):hover:not(:disabled) { border-color: var(--line-strong); background: var(--surface-soft); color: var(--ink); }
.primary-action, .filters .primary-action { border-color: var(--accent-line); background: var(--action); color: var(--on-action); }
.primary-action:hover:not(:disabled), .filters .primary-action:hover:not(:disabled) { border-color: var(--accent-line); background: var(--action-hover); color: var(--on-action); }
.text-button { border: 0; background: transparent; color: var(--muted); padding-inline: 4px; }
.text-button:hover { color: var(--ink); }
.topbar { display: flex; flex-wrap: nowrap; gap: 24px; min-height: 68px; padding: 12px var(--gutter); background: var(--bg); border-color: var(--line); backdrop-filter: none; }
.brand { flex-shrink: 0; gap: 0; min-height: 40px; line-height: 0; }
.brand-logo { display: block; width: 168px; height: auto; }
.brand-logo-dark, :root[data-theme="dark"] .brand-logo-light { display: none; }
:root[data-theme="dark"] .brand-logo-dark { display: block; }
.nav { gap: 4px; margin-left: 28px; }
.nav-link { padding: 8px 11px; min-height: 34px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; }
.nav-link.is-active { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.nav-link:hover { color: var(--ink); background: var(--surface-soft); }
.nav-link.is-active:hover { color: var(--accent); background: var(--accent-soft-hover); }
.session-box { gap: 10px; min-height: 32px; padding: 0; margin-left: auto; border: 0; background: none; font-weight: 400; font-size: 12px; }
.session-box[hidden] + .theme-toggle { margin-left: auto; }
.session-button { min-height: 30px; padding: 5px 8px; }
.theme-toggle { flex-shrink: 0; width: 34px; min-height: 34px; padding: 0; border-color: transparent; background: transparent; }
.topbar-action { padding: 6px 0; min-height: 30px; border: 0; background: transparent; color: var(--muted); font-size: 12px; white-space: nowrap; }
main { padding-bottom: 48px; }
.hero { display: block; min-height: 0; padding: 48px var(--gutter) 0; border: 0; background: none; }
.hero-inner { display: block; width: min(var(--content), 100%); margin: 0 auto; }
.hero h1 { margin: 0 0 10px; max-width: none; font-size: clamp(28px, 3vw, 34px); font-weight: 550; line-height: 1.3; letter-spacing: -.03em; text-align: left; color: var(--ink); text-shadow: none; }
.hero-subtitle { margin: 0 0 26px; color: var(--muted); font-size: 14px; font-weight: 400; line-height: 1.5; text-align: left; text-shadow: none; }
.search-panel { width: 100%; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.search-row { gap: 6px; min-height: 48px; padding: 4px 6px 4px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.search-row:focus-within { border-color: var(--accent-line); }
.search-row input { height: 36px; font-size: 14px; color: var(--ink); }
.search-row input::placeholder { color: var(--muted); }
.search-icon { width: 24px; height: 24px; color: var(--muted); }
#search-button { width: 34px; height: 34px; min-width: 34px; min-height: 34px; border: 1px solid var(--accent-line); border-radius: 5px; background: var(--action); color: var(--on-action); }
#search-button:hover:not(:disabled) { background: var(--action-hover); }
.search-actions { flex-direction: row; align-items: center; gap: 16px; padding-top: 0; margin-top: 18px; border-bottom: 1px solid var(--line); }
.segment { display: flex; flex-wrap: nowrap; gap: 22px; align-items: stretch; }
.segment-button { position: relative; width: auto; min-height: 46px; padding: 0 1px; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 14px; font-weight: 400; white-space: nowrap; }
.segment-button.is-active { border: 0; background: transparent; color: var(--accent); font-weight: 600; }
.segment-button.is-active::after { content: ''; position: absolute; bottom: -1px; inset-inline: 0; height: 3px; background: var(--accent-line); }
.search-tools { flex-direction: row; align-items: center; padding-bottom: 8px; }
.search-tools .secondary-button { width: auto; min-width: 0; min-height: 32px; padding: 5px 10px; font-size: 12px; }
#show-filters.is-active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.search-tools label span { margin: 0; color: inherit; }
.search-suggestions { top: 54px; left: 0; right: 0; border-color: var(--line); background: var(--surface); box-shadow: var(--shadow); }
.search-suggestion { background: var(--surface); color: var(--ink); font-weight: 500; }
.search-suggestion:hover, .search-suggestion.is-active { background: var(--surface-soft); }
.search-suggestion.is-active { background: var(--accent-soft); }
.filters, .opportunity-toolbar, .deal-method, .active-filters, .listings-section, .geo-section, .page-head, .dashboard-grid, .operations-panel, .advanced-admin { width: min(var(--content), calc(100% - var(--gutter) * 2)); margin-left: auto; margin-right: auto; }
.filters { grid-template-columns: 1fr; gap: 20px; margin-top: 18px; padding: 22px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 8px; box-shadow: none; }
.filter-heading { display: flex; align-items: center; justify-content: space-between; }
.filter-heading h2 { font-size: 17px; }
.filter-group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; min-width: 0; margin: 0; padding: 0; border: 0; }
.filter-group legend { margin-bottom: 12px; color: var(--ink); font-size: 12px; font-weight: 550; }
.filter-group + .filter-group { padding-top: 16px; border-top: 1px solid var(--line); }
.filter-group > label, .filter-group > .filter-field, .filter-group .filter-field.is-wide, .filter-group .filter-type-field { grid-column: auto; min-width: 0; }
.filter-group .filter-field { gap: 0; }
.filter-group label span, .filter-field > span, .filter-type-field legend { margin: 0 0 6px; color: var(--muted); font-size: 12px; line-height: 1.4; font-weight: 400; }
.filters input:not([type="checkbox"]), .filters select, .filter-picker-button { height: 40px; min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--ink); font-size: 13px; }
.filters select:focus, .filters input:not([type="checkbox"]):focus { border-color: var(--accent-line); outline: 2px solid var(--accent); outline-offset: 3px; }
.filters .native-filter-select { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; }
.filter-picker-button strong { font-size: 13px; font-weight: 450; }
.filter-picker-button small { font-weight: 400; color: var(--muted); }
.range-filters { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.filter-type-field { grid-template-columns: 1fr 1fr; gap: 6px; min-height: 0; }
.filter-check { gap: 6px; min-height: 40px; padding: 0 8px; border-radius: 5px; border-color: var(--line); background: var(--surface); font-weight: 450; }
.filter-check span { margin: 0 !important; font-size: 12px !important; color: var(--ink) !important; }
.filter-check input { width: 14px; height: 14px; }
.filter-check:has(input:checked), .checkbox-control:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); }
.filter-actions { display: flex; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.filter-actions .secondary-button { grid-column: auto; width: auto; min-height: 38px; height: auto; }
#save-search { margin-left: auto; }
.opportunity-toolbar { justify-content: flex-start; gap: 0; margin-top: 16px; margin-bottom: 0; }
.opportunity-presets { display: flex; flex-wrap: nowrap; gap: 7px; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 1px 0 4px; }
.opportunity-presets::-webkit-scrollbar { display: none; }
.opportunity-presets .secondary-button { min-height: 30px; padding: 5px 10px; border-radius: 5px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 400; white-space: nowrap; }
.opportunity-presets .secondary-button.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 550; }
.opportunity-presets .secondary-button.is-active:hover { background: var(--accent-soft-hover); }
.deal-method { margin-top: 5px; margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.deal-method summary { width: fit-content; padding: 4px 0; cursor: pointer; list-style-position: inside; }
.deal-method p { max-width: 720px; margin: 6px 0 12px; font-size: 12px; }
.active-filters { position: sticky; top: var(--topbar-height); z-index: 9; flex-wrap: nowrap; gap: 8px; margin-top: 12px; padding-block: 8px; overflow-x: auto; background: var(--bg); border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.filter-chip { flex-shrink: 0; min-height: 32px; padding: 5px 10px; border: 0; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 450; white-space: nowrap; }
.filter-chip strong { font-size: 13px; font-weight: 400; }
.filter-chip:hover { background: var(--accent-soft-hover); }
.listings-section { padding: 18px 0 12px; scroll-margin-top: 0; }
.results-strip, .results-strip.is-loading { grid-template-columns: minmax(0, 1fr) auto; min-height: 44px; gap: 12px; width: 100%; margin: 0 0 12px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.results-overview { gap: 20px; align-items: baseline; }
.results-title { justify-content: start; }
.results-title .eyebrow { display: none; }
.results-title h2 { font-size: 16px; line-height: 1.3; font-weight: 500; letter-spacing: -.02em; }
.result-summary { gap: 12px; }
.compact-metric, .result-summary .compact-metric { gap: 4px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.compact-metric strong, .result-summary .compact-metric strong { font-size: 12px; font-weight: 500; }
.compact-metric small, .result-summary .compact-metric small { font-size: 11px; font-weight: 400; color: var(--muted); }
.compact-actions { flex-wrap: nowrap; align-items: center; gap: 8px; margin: 0; }
.catalog-view-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.table-resize-hint, .table-preferences-note { color: var(--muted); font-size: 12px; line-height: 1.5; }
.table-preferences-note { max-width: 52ch; margin: 8px 0 0; }
.density-control { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.density-control button { min-height: 32px; padding: 5px 12px; border: 0; border-radius: 3px; background: transparent; color: var(--muted); font-size: 12px; line-height: 1.5; cursor: pointer; }
.density-control button:hover { background: var(--surface-soft); color: var(--ink); }
.density-control button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 550; }
.compact-actions .secondary-button { width: auto; min-width: 0; height: 34px; min-height: 34px; padding: 6px 10px; font-size: 12px; font-weight: 400; }
.sort-control { min-width: 0; }
.sort-control select { width: auto; max-width: 240px; min-height: 34px; height: 34px; padding: 0 28px 0 9px; border: 0; border-radius: 5px; background-color: var(--bg); color: var(--muted); font-size: 12px; }
.table-wrap { position: relative; overflow: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: none; }
.table-wrap table { table-layout: fixed; width: 100%; }
#listings .table-wrap thead { position: relative; z-index: 8; background: var(--surface-raised); transform: translateY(var(--catalog-header-offset, 0px)); }
#listings .table-wrap[data-header-stuck] thead { box-shadow: 0 1px 0 var(--line); }
#listings tbody tr { scroll-margin-top: calc(var(--catalog-header-height, 44px) + 8px); }
#listings .table-wrap { width: max-content; max-width: 100%; scroll-padding-left: var(--catalog-object-width, 320px); }
#listings thead th { position: relative; z-index: 0; padding-right: 18px; }
#listings .object-cell > div { min-width: 0; }
.column-resize { position: absolute; z-index: 1; top: 0; bottom: 0; right: 0; width: 10px; cursor: col-resize; touch-action: none; }
.column-resize::after { content: ""; position: absolute; top: 8px; bottom: 8px; right: 1px; width: 1px; background: var(--line-strong); }
.column-resize:hover::after, .column-resize:focus-visible::after, .column-resize:active::after { width: 2px; background: var(--accent); }
.column-resize:focus-visible { outline-offset: -3px; }
.is-resizing-columns, .is-resizing-columns * { cursor: col-resize !important; user-select: none !important; }
#listings :is(th, td)[data-column="object"] { position: sticky; left: 0; z-index: 2; background: var(--surface); box-shadow: inset -1px 0 0 var(--line); }
#listings thead th[data-column="object"] { z-index: 3; background: var(--surface-raised); }
#listings .listing-row:hover td[data-column="object"], #listings .listing-row:focus-visible td[data-column="object"] { background: var(--surface-raised); }
#listings .listing-row:focus-visible td[data-column="object"] { outline: 2px solid var(--accent); outline-offset: -3px; }
th, td { padding: 15px 14px; border-color: var(--line); color: var(--ink); font-size: 13px; font-weight: 400; line-height: 1.4; }
th { padding: 7px 10px; background: var(--surface-raised); color: var(--muted); font-size: 11px; font-weight: 450; text-transform: none; }
.sort-header { min-height: 30px; padding: 0 4px; border-radius: 4px; font-weight: 450; }
.sort-header::after { color: var(--muted); }
.sort-header.is-active, .sort-header.is-active::after { color: var(--accent); }
.sort-header.is-active { background: var(--accent-soft); }
thead th[data-column="object"] { padding-left: 14px; }
.listing-row:hover { background: var(--surface-raised); }
.listing-row:focus-visible, .mobile-card:focus-visible { outline-offset: -3px; }
[data-column="price"], [data-column="priceM2"], [data-column="area"] { font-variant-numeric: tabular-nums; }
td[data-column="price"] { font-weight: 550; }
#catalog-view tbody td { padding-block: var(--catalog-row-padding); font-size: 14px; }
#catalog-view td[data-column="price"] { font-size: var(--catalog-price-size); font-weight: 600; }
:root[data-density="compact"] #catalog-view tbody td { font-size: 13px; }
:root[data-density="compact"] #catalog-view td[data-column="price"] { font-size: var(--catalog-price-size); }
#catalog-view .object-cell img { width: var(--catalog-image-size); height: var(--catalog-image-size); }
#catalog-view .object-cell strong { font-size: var(--catalog-title-size); }
#catalog-view .object-cell span { font-size: 12px; }
.source-cell { font-weight: 400; }
.object-cell { gap: 12px; }
.object-cell img { width: 48px; height: 48px; border-radius: 5px; background: var(--surface-soft); }
/* Transparent source plans need paper behind their lines; the neutral fallback keeps the theme. */
img[data-listing-media][alt=""]:not([src="/assets/dopmetry-placeholder.svg"]) { background: #fff; }
.object-cell strong { font-size: 13px; font-weight: 500; line-height: 1.4; }
.object-cell span { margin-top: 3px; font-size: 11px; color: var(--muted); line-height: 1.4; }
.subtext { color: var(--muted); font-size: 12px; line-height: 1.5; }
.pill, .pill.blue { min-height: 22px; padding: 2px 6px; border-radius: 4px; background: var(--surface-soft); color: var(--muted); font-size: 11px; font-weight: 400; }
.status { color: var(--muted); font-size: 12px; font-weight: 450; }
.status.success, .status.available { color: var(--positive); }
.status.failed, .status.price_changed { color: var(--orange); }
.deal-badge { display: block; margin-top: 4px; padding: 3px 6px; border-radius: 4px; background: var(--positive-soft); color: var(--positive); font-size: 11px; line-height: 1.4; font-weight: 550; }
.table-fields-button { flex-shrink: 0; width: 34px; min-height: 34px; height: 34px; padding: 0; background: transparent; color: var(--muted); }
.table-fields-button:focus-visible { border-color: var(--accent-line); }
.listing-footer { justify-content: space-between; gap: 12px; margin-top: 16px; padding: 0; }
.listing-footer .subtext { font-size: 11px; }
.catalog-empty, .catalog-message { padding: 44px 20px; border: 1px solid var(--line); border-radius: 6px; text-align: center; }
.catalog-empty h3 { font-size: 18px; }
.catalog-empty p, .catalog-message p { color: var(--muted); font-size: 13px; margin: 8px 0 18px; }
.block-loader { min-height: 30px; gap: 8px; font-size: 12px; font-weight: 400; }
.block-loader-spinner { width: 15px; height: 15px; border-width: 1.5px; border-color: var(--line); border-top-color: var(--ink); }
.skeleton-thumb, .skeleton-line { background: var(--surface-soft); }
.skeleton-thumb::after, .skeleton-line::after { background: none; animation: none; }
.geo-section { padding-top: 32px; margin-top: 20px; border-top: 1px solid var(--line); }
.section-heading { align-items: baseline; gap: 12px; margin-bottom: 18px; }
.section-heading h2 { font-size: 17px; font-weight: 500; }
.section-heading p { font-size: 12px; }
.metric-panel, .panel { border: 1px solid var(--line); border-radius: 7px; background: var(--surface); box-shadow: none; }
.metric-panel { padding: 22px; gap: 24px; }
.metric strong { font-size: 24px; font-weight: 500; letter-spacing: -.03em; color: var(--ink); }
.metric span { font-size: 11px; font-weight: 400; color: var(--muted); }
.metrics { gap: 16px; }
.city-bar-line { height: 4px; background: var(--surface-soft); }
.city-bar-line span { background: var(--muted); }
.city-bar { font-size: 12px; }
.page-head { padding: 40px 0 28px; }
.page-head h1 { font-size: clamp(28px, 3vw, 38px); line-height: 1.15; font-weight: 500; }
.page-head p { max-width: 640px; margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.eyebrow, .page-head .eyebrow { margin: 0 0 8px; color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: .02em; text-transform: none; }
.dashboard-grid, .admin-layout { gap: 18px; }
.dashboard-grid { margin-bottom: 32px; }
.panel { min-width: 0; padding: 22px; }
.panel h2 { font-size: 17px; font-weight: 500; }
.panel h3 { font-size: 14px; font-weight: 500; }
.panel-actions { align-items: center; gap: 8px; }
.panel-actions input, .panel-actions select, .inline-form input, .inline-form select, .auth-form input, .bulk-panel input, .bulk-panel textarea { min-width: 0; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--ink); font-size: 13px; }
.auth-form { max-width: 420px; gap: 14px; }
.auth-form label span { font-size: 12px; font-weight: 400; color: var(--muted); }
.auth-form input { width: 100%; height: 42px; }
.auth-form button { background: var(--action); color: var(--on-action); border-color: var(--accent-line); }
.auth-form button:hover:not(:disabled) { background: var(--action-hover); color: var(--on-action); border-color: var(--accent-line); }
.stack-item, .collector-item, .run-item, .readiness-summary, .readiness-gate { padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); box-shadow: none; }
.stack-item:first-child, .run-item:first-child { padding-top: 0; }
.stack-item:last-child, .run-item:last-child { border-bottom: 0; }
.stack-item, .run-item, .readiness-gate { overflow-wrap: anywhere; }
.stack-item code { display: block; max-width: 100%; overflow: auto; padding: 8px; border-radius: 4px; background: var(--surface-soft); color: var(--muted); font-size: 11px; }
.feature-list { gap: 6px; }
.quote-box { padding: 14px 0; background: none; border: 0; }
.bulk-panel, .stats-extra, .stats-breakdown section, .stats-list, .stats-activity { background: var(--surface-raised); border-color: var(--line); border-radius: 5px; }
.operations-panel { margin-bottom: 22px; }
.operations-panel .metrics { gap: 20px; margin: 20px 0 24px; }
.operations-table th, .operations-table td { padding: 12px 14px; font-size: 12px; }
.operations-table td:nth-child(2) { font-variant-numeric: tabular-nums; }
.repair-summary { margin: 20px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 5px; background: var(--warning-soft); }
.repair-summary summary { font-size: 13px; font-weight: 500; color: var(--warning); }
.repair-row { border-color: var(--line); }
.repair-row strong { font-size: 12px; }
.repair-row p { font-size: 11px; }
.advanced-admin { border-top: 1px solid var(--line); }
.advanced-admin > summary { padding: 18px 0; font-size: 13px; }
.advanced-admin .admin-layout { padding: 8px 0; }
.advanced-admin .panel { align-self: start; }
.advanced-admin .panel > .section-heading { flex-wrap: wrap; align-items: center; }
.admin-widget { overflow: hidden; }
.admin-widget > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.admin-widget > summary::after { content: '+'; font-size: 19px; font-weight: 400; color: var(--muted); }
.admin-widget[open] > summary::after { content: '−'; }
.admin-widget:not([open]) > summary h2 { margin: 0; }
.admin-widget-body { margin-top: 18px; }
dialog { color: var(--ink); }
.listing-modal, .filter-picker-modal { border-radius: 9px; background: var(--surface); }
.listing-modal::backdrop, .filter-picker-modal::backdrop { background: #0007; }
.modal-shell, .filter-picker-shell { background: var(--surface); border-color: var(--line); border-radius: 9px; box-shadow: var(--shadow); }
.modal-shell { padding: 28px; }
.modal-close { width: 32px; height: 32px; top: 16px; right: 16px; border: 0; background: var(--surface-soft); color: var(--muted); font-size: 21px; font-weight: 400; }
.modal-head { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; }
.modal-head img { width: 76px; height: 76px; border-radius: 6px; background: var(--surface-soft); }
.modal-head h2 { font-size: 25px; line-height: 1.2; font-weight: 500; letter-spacing: -.035em; }
.modal-head p { font-size: 12px; }
.modal-head .eyebrow { margin-top: 0; margin-bottom: 6px; font-size: 11px; }
.modal-metrics { gap: 16px; margin: 24px 0; padding: 18px 0; border-block: 1px solid var(--line); }
.modal-metrics .metric strong { font-size: 23px; }
.modal-user-actions { display: flex; gap: 8px; align-items: center; margin-top: 16px; }
[data-favorite-listing][aria-pressed="true"] { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
[data-favorite-listing][aria-pressed="true"]:hover:not(:disabled) { background: var(--accent-soft-hover); }
.plan-overview { margin: 22px 0; gap: 22px; padding: 0; border: 0; border-radius: 0; background: none; }
.plan-media { min-height: 260px; border-color: var(--line); border-radius: 6px; background: #fff; }
.plan-media-loading, .plan-media-error { display: none; }
.plan-media[data-media-state="loading"] > img { visibility: hidden; }
.plan-media[data-media-state="loading"] > .plan-highlight { visibility: hidden; }
.plan-media[data-media-state="loading"] .plan-media-loading { display: block; position: absolute; inset: 0; margin: 0; align-content: center; text-align: center; color: #5d665f; }
.plan-media[data-media-state="error"] .plan-media-error { display: block; }
.plan-media.is-empty, .plan-media[data-media-state="error"] { min-height: 210px; background: var(--surface-raised); }
.plan-media-message { max-width: 420px; padding: 28px; color: var(--ink); text-align: center; }
.plan-placeholder-icon { display: block; margin: 0 auto 16px; color: var(--line-strong); }
.plan-media-message h3 { margin: 0 0 8px; font-size: 17px; }
.plan-media-message p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.plan-media-message button { margin-top: 16px; }
.plan-facts { gap: 14px; }
.plan-facts h3 { font-size: 20px; font-weight: 500; }
.plan-fact-row { font-size: 12px; padding-bottom: 8px; border-color: var(--line); }
.plan-fact-row strong { font-weight: 450; }
.plan-legend { font-size: 11px; font-weight: 400; }
.plan-legend i { width: 8px; height: 8px; }
.plan-legend i.accent { background: var(--accent); }
.plan-highlight path { fill: var(--plan-selection-fill); stroke: var(--plan-selection-ink); }
.detail-groups { gap: 20px; }
.detail-group { padding: 0; border: 0; border-radius: 0; background: none; }
.detail-group h3 { margin-bottom: 7px; font-size: 15px; font-weight: 500; }
.detail-row { padding: 7px 0; border-color: var(--line); font-size: 12px; }
.detail-row strong { font-weight: 400; }
.detail-technical { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.detail-technical > summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.detail-technical .detail-groups { margin-top: 20px; }
.filter-picker-head { padding: 22px 56px 14px 22px; }
.filter-picker-head h2 { font-size: 22px; font-weight: 500; }
.filter-picker-search { background: var(--surface-soft); border-color: transparent; border-radius: 5px; }
.filter-picker-search input { height: 40px; color: var(--ink); }
.filter-picker-meta { font-size: 11px; font-weight: 400; }
.filter-picker-meta button { color: var(--accent); }
.filter-picker-list { border-color: var(--line); }
.filter-picker-option { padding: 12px 22px; background: var(--surface); color: var(--ink); border-color: var(--line); }
.filter-picker-option strong { font-size: 13px; font-weight: 450; }
.filter-picker-option small { font-size: 11px; font-weight: 400; }
.filter-picker-option em { background: transparent; border-color: var(--line); border-radius: 4px; font-size: 12px; }
.filter-picker-option:hover, .filter-picker-option.is-selected { background: var(--surface-soft); }
.filter-picker-option.is-selected { background: var(--accent-soft); }
.filter-picker-option.is-selected:hover { background: var(--accent-soft-hover); }
.filter-picker-option.is-selected em { background: var(--action); border-color: var(--accent-line); color: var(--on-action); }
.filter-picker-actions { padding: 14px 22px; border-color: var(--line); background: var(--surface); }
.table-column-option { padding: 11px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.table-column-option.is-locked { background: transparent; }
.table-column-option small { font-weight: 400; font-size: 11px; }
.table-column-option strong { font-size: 13px; font-weight: 450; }
@media (max-width: 1100px) {
  .result-summary { display: none; }
  .range-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .topbar-action { display: none; }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .topbar { gap: 10px; min-height: 58px; padding: 10px var(--gutter); }
  .brand-logo { width: 144px; }
  .nav { margin-left: auto; gap: 2px; }
  .nav-link { min-height: 34px; padding: 6px 9px; font-size: 12px; }
  .session-box { gap: 0; margin-left: 0; }
  .session-box > span { display: none; }
  .session-button { padding: 5px 7px; font-size: 11px; }
  .session-box[hidden] + .theme-toggle { margin-left: 0; }
  .theme-toggle { width: 28px; min-height: 32px; }
  .hero { padding: 28px var(--gutter) 0; }
  .hero h1 { font-size: 28px; max-width: 340px; margin-bottom: 9px; }
  .hero-subtitle { font-size: 12px; line-height: 1.5; margin-bottom: 18px; max-width: 330px; }
  .search-actions { gap: 8px; margin-top: 9px; flex-direction: row; }
  .segment { gap: 17px; }
  .segment-button { width: auto; min-height: 42px; font-size: 12px; }
  .search-tools .secondary-button { width: auto; padding: 5px 8px; min-height: 30px; font-size: 11px; }
  .search-tools svg { display: none; }
  .opportunity-toolbar { margin-top: 12px; }
  .opportunity-presets { width: 100%; }
  .opportunity-presets .secondary-button { min-height: 29px; font-size: 11px; padding: 5px 8px; }
  .deal-method { font-size: 12px; }
  .active-filters { scrollbar-width: none; }
  .filter-chip { min-height: 44px; font-size: 12px; }
  .catalog-view-controls { justify-content: flex-start; }
  .table-resize-hint { display: none; }
  .density-control button { min-height: 44px; }
  .listings-section { padding-top: 14px; }
  .results-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; width: 100%; margin-bottom: 10px; }
  .results-overview { flex: 1 1 auto; align-items: flex-start; gap: 0; }
  .results-title h2 { font-size: 14px; }
  .compact-actions { gap: 4px; }
  .compact-actions .secondary-button { display: none; }
  .compact-actions .table-fields-button { display: none; }
  .sort-control select { padding-inline: 4px; max-width: 185px; height: 30px; font-size: 11px; }
  .table-wrap { display: none; }
  .operations-panel .table-wrap { display: block; }
  .mobile-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
  .mobile-card { padding: var(--catalog-row-padding) 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
  .mobile-card .object-cell { align-items: start; gap: 12px; }
  .mobile-card .object-cell img { width: 46px; height: 46px; }
  .mobile-card .object-cell strong { font-size: 14px; line-height: 1.4; }
  .mobile-card .object-cell span { font-size: 11px; }
  .mobile-card-type { margin: 10px 0 8px; color: var(--muted); font-size: 11px; }
  .mobile-card-price { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 12px 0 4px; font-variant-numeric: tabular-nums; }
  .mobile-card-price > strong { font-size: 20px; font-weight: 550; letter-spacing: -.02em; }
  :root[data-density="compact"] .mobile-card-price { margin-top: 8px; }
  :root[data-density="compact"] .mobile-card-price > strong { font-size: 18px; }
  .mobile-card-price > span { color: var(--muted); font-size: 13px; }
  .mobile-card-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 8px; color: var(--muted); font-size: 12px; }
  .mobile-card .deal-badge { margin-top: 7px; font-size: 11px; }
  .mobile-card-extra { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
  .filters { padding: 16px; gap: 18px; }
  .filter-group, .range-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .location-filters, .property-filters { grid-template-columns: 1fr; }
  .filter-type-field { grid-column: 1 / -1 !important; }
  .filter-group legend { margin-bottom: 10px; font-size: 12px; }
  .filters input:not([type="checkbox"]), .filters select { font-size: 16px; height: 42px; }
  .filter-heading h2 { font-size: 16px; }
  .filter-actions { position: sticky; bottom: 0; z-index: 2; flex-wrap: wrap; margin: 0 -16px -16px; padding: 12px 16px; background: var(--surface-raised); border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; }
  .filter-actions .secondary-button { min-height: 40px; font-size: 12px; }
  #save-search { margin-left: 0; }
  .geo-section { margin-top: 20px; padding-top: 24px; }
  .section-heading { flex-direction: row; align-items: center; }
  .section-heading h2 { font-size: 16px; }
  .section-heading p { font-size: 11px; }
  .stats-toggle { width: auto; min-height: 32px; padding: 5px 9px; font-size: 11px; }
  .metric-panel { grid-template-columns: 1fr; gap: 22px; padding: 18px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .page-head { padding-top: 28px; }
  .page-head h1 { font-size: 29px; }
  .page-head p { font-size: 12px; }
  .dashboard-grid, .admin-layout { grid-template-columns: 1fr; gap: 14px; }
  .panel { padding: 18px; }
  .panel.wide { grid-column: auto; }
  .operations-panel .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operations-table { min-width: 600px; }
  .advanced-admin .panel-actions { align-items: start; }
  .modal-shell { padding: 22px 18px; }
  .modal-head { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding-right: 22px; }
  .modal-head img { width: 48px; height: 48px; }
  .modal-head h2 { font-size: 20px; }
  .modal-head .eyebrow { font-size: 10px; }
  .modal-head p { font-size: 11px; }
  .modal-close { right: 8px; top: 8px; width: 28px; height: 28px; }
  .modal-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px 0; gap: 20px 12px; }
  .modal-metrics .metric strong { font-size: 20px; }
  .plan-overview { grid-template-columns: 1fr; }
  .plan-media { min-height: 200px; }
  .plan-fact-row { grid-template-columns: minmax(100px, .8fr) 1fr; gap: 12px; }
  .detail-groups { grid-template-columns: 1fr; }
  .detail-row { grid-template-columns: minmax(105px, .7fr) 1fr; gap: 12px; }
  .filter-picker-head h2 { font-size: 21px; }
  .filter-picker-option { min-height: 50px; }
}
@media (pointer: coarse) {
  .column-resize { width: 24px; }
  #listings thead th { padding-right: 26px; }
}
@media (max-width: 370px) {
  :root { --gutter: 14px; }
  .topbar { gap: 5px; }
  .brand-logo { width: 116px; }
  .segment { gap: 12px; }
  .segment-button { font-size: 11px; }
  .session-button { font-size: 10px; padding-inline: 4px; }
  .results-strip { align-items: flex-start; }
  .sort-control select { max-width: 158px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
/* Numeric summaries use dividers rather than nested tiles. */
.metric { padding: 0; border: 0; border-radius: 0; background: transparent; }
.metrics.vertical .metric { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.metrics.vertical .metric:last-child { border-bottom: 0; }
.metrics.vertical .metric strong { order: 2; font-size: 15px; letter-spacing: -.01em; }
.metrics.vertical .metric span { order: 1; font-size: 12px; }
.col-object { width: 320px; }.col-city { width: 110px; }.col-type { width: 120px; }.col-area { width: 90px; }.col-price { width: 145px; }.col-price-m2 { width: 145px; }.col-source { width: 150px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.nav { order: 0; width: auto; justify-content: flex-start; }
.search-tools { display: flex; }
.readiness-summary.is-ok, .readiness-summary.is-fail, .readiness-summary.is-warn, .stack-item.is-unread { background: transparent; border-color: var(--line); }
.readiness-status { min-width: 36px; padding: 3px 6px; font-weight: 500; text-transform: none; }
.readiness-status.ok { color: var(--positive); background: var(--positive-soft); }
.readiness-status.warn, .readiness-status.fail { color: var(--warning); background: var(--warning-soft); }
.data-load-grid .compact-metric { min-height: 32px; padding: 5px 8px; background: var(--surface-soft); }
.sliders-icon i::after { background: var(--surface); }
/* Keep the export and column tools available on phones without crowding the row. */
@media (max-width: 760px) {
  .compact-actions { flex-wrap: wrap; justify-content: flex-end; }
  .compact-actions .secondary-button { display: inline-flex; padding: 5px 7px; min-height: 30px; height: 30px; font-size: 10px; }
  .compact-actions .table-fields-button { display: inline-flex; width: 28px; min-height: 30px; height: 30px; border: 0; }
  .results-strip { flex-direction: column; align-items: stretch; gap: 6px; }
  .compact-actions { justify-content: space-between; }
  .sort-control { margin-right: auto; }
}
@media (min-width: 761px) and (max-width: 980px) { .topbar { flex-wrap: nowrap; } }
@media (max-width: 760px) { .topbar { flex-wrap: wrap; } .brand { margin-right: auto; } .nav { margin-left: 0; } .theme-toggle { order: 5; } .session-box { order: 4; } }
@media (max-width: 760px) {
  .topbar { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 10px; padding-block: 9px 5px; }
  .brand { grid-column: 1; grid-row: 1; margin: 0; }
  .session-box { grid-column: 2; grid-row: 1; order: 0; }
  .theme-toggle { grid-column: 3; grid-row: 1; order: 0; }
  .nav { grid-column: 1 / -1; grid-row: 2; width: 100%; margin: 0; }
  .nav-link { min-height: 31px; padding-inline: 10px; }
  .topbar:has(.session-box[hidden]) { display: flex; flex-wrap: nowrap; padding-block: 10px; }
  .topbar:has(.session-box[hidden]) .brand { margin-right: auto; }
}
@media (max-width: 370px) { .nav-link { padding-inline: 6px; } }
.filter-picker-button:hover:not(:disabled) { background: var(--surface-soft); color: var(--ink); border-color: var(--line-strong); }
.filter-picker-button:focus-visible { background: var(--surface-soft); color: var(--ink); border-color: var(--accent-line); outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 760px) { .search-row input { font-size: 16px; } }
