:root {
  font: 100%/1.5 system-ui, sans-serif;
  color: #172c26;
  background: #f3f4ef;
  --ink: #172c26;
  --muted: #52655d;
  --line: #cfd8d0;
  --accent: #225d47;
  --wash: #e7f0e9;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
::selection { background: #c7e3ce; color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: #163d2e; }
h1, h2, h3, p { margin: 0; }
.masthead { background: #153b31; color: #fbfdf8; border-bottom: 4px solid #91ae91; }
.masthead-inner, main { max-width: 1480px; margin: 0 auto; padding-inline: clamp(1rem, 3vw, 2.5rem); }
.masthead-inner { min-height: 124px; padding-block: 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
h1 { font-size: 1.85rem; line-height: 1.15; letter-spacing: -.035em; font-weight: 670; }
.masthead p { margin-top: .45rem; color: #d0e2d6; font-size: .925rem; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .65rem .85rem; min-height: 44px; color: #153b31; background: #e5f2e2; border: 1px solid #e5f2e2; border-radius: 6px; font-size: .875rem; font-weight: 680; white-space: nowrap; }
.primary:hover { background: #cfe4cf; }
.primary:focus-visible { outline-color: #e5f2e2; }
.primary:disabled { cursor: wait; color: #e5f2e2; background: #2b5448; border-color: #618176; }
.primary svg { width: 18px; height: 18px; }
.masthead-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.header-settings { display: inline-flex; align-items: center; min-height: 44px; color: #e5f2e2; font-size: .875rem; font-weight: 650; }
.header-settings:hover { color: #fff; }
.header-settings:focus-visible { outline-color: #e5f2e2; }
.account-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; font-size: .875rem; }
.account-controls form { margin: 0; }
.account-header-status { max-width: 30ch; font-size: .875rem; }
.account-header-status:empty { display: none; }
.account-button { padding: 0; background: transparent; border: 0; border-radius: 0; text-decoration: underline; text-underline-offset: .2em; }
.account-button:focus-visible { outline-color: #e5f2e2; }
.account-button:disabled { opacity: .7; cursor: wait; }
html[data-account-role="member"] #open-settings, html[data-account-role="member"] #refresh,
html[data-account-role="member"] a[href*="settings="] { display: none !important; }
.regional-settings { max-width: 960px; margin: 0 auto 2rem; padding: clamp(1rem,3vw,2rem); background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.regional-settings > .secondary { margin-top: .6rem; max-width: 72ch; }
.settings-selectors { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-block: 1.5rem; }
.settings-selectors label, .settings-form label { display: grid; gap: .4rem; font-size: .85rem; font-weight: 650; }
.regional-settings select { width: 100%; min-width: 0; min-height: 44px; padding: .5rem .65rem; color: var(--ink); background: #fff; border: 1px solid #aebeb3; border-radius: 6px; font-size: .85rem; }
.regional-settings h3 { font-size: 1.1rem; }
.settings-form fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.2rem; border: 0; border-top: 1px solid var(--line); padding: 1rem 0; margin: 1.2rem 0 0; }
.settings-form legend { padding-right: .6rem; font-weight: 650; font-size: .95rem; }
.settings-form fieldset p { grid-column: 1 / -1; max-width: 72ch; line-height: 1.6; }
.settings-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-top: 1rem; }
.settings-actions .interest-button { margin: 0; min-height: 44px; }
.settings-actions .primary:focus-visible { outline-color: var(--accent); }
.settings-status { min-height: 3rem; padding-top: .8rem; }
.settings-status.error { color: #852f28; }
.settings-sources { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.settings-sources ul { padding-left: 1.2rem; color: var(--muted); font-size: .85rem; line-height: 1.8; }
.settings-sources p { margin-top: .5rem; }
.county-settings-editor { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .5rem; }
.county-settings-editor > summary { min-height: 44px; padding-block: .6rem; font-size: .95rem; font-weight: 650; }
.county-settings-editor > p { max-width: 72ch; line-height: 1.6; }
.county-link-help { margin-bottom: 1rem; overflow-wrap: anywhere; }
.county-link-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: .8rem 1.5rem; border-top: 1px solid var(--line); padding-block: 1rem; }
.county-link-row h4 { margin: .5rem 0 0; font-size: .85rem; }
.county-link-controls, .county-link-fields { display: grid; gap: .7rem; min-width: 0; }
.county-link-controls input { width: 100%; min-width: 0; min-height: 44px; padding: .5rem .65rem; color: var(--ink); background: #fff; border: 1px solid #aebeb3; border-radius: 6px; font-size: .85rem; }
.county-link-preview { overflow-wrap: anywhere; line-height: 1.5; }
.county-link-preview.error { color: #852f28; }
.settings-form .county-overlay-enabled { display: flex; align-items: center; gap: .6rem; min-height: 44px; }
.county-overlay-enabled input { flex: 0 0 auto; width: 18px; height: 18px; min-height: 18px; accent-color: var(--accent); }
.overlay-opacity-setting { max-width: 22rem; margin-block: 1rem; }
.overlay-opacity-setting input { min-height: 44px; padding: .5rem .65rem; border: 1px solid #aebeb3; border-radius: 6px; color: var(--ink); background: #fff; }
@media (max-width: 600px) { .county-link-row { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 600px) { .settings-selectors, .settings-form fieldset { grid-template-columns: minmax(0,1fr); } }
.primary:disabled svg { animation: spin 1.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-line { padding-block: .85rem; font-size: .84rem; color: var(--muted); min-height: 3rem; }
.status-line[data-state="failed"] { color: #852f28; }
.auction-picker { display: flex; flex-wrap: wrap; gap: .65rem 1rem; align-items: center; padding-bottom: 1.1rem; }
.auction-picker label { font-size: .85rem; font-weight: 650; }
.auction-picker select { max-width: 100%; min-width: 0; min-height: 44px; padding: .5rem .7rem; border: 1px solid #aebeb3; border-radius: 6px; background: #fff; color: var(--ink); font-size: .9rem; }
.auction-picker a { font-size: .82rem; }
main:has(> .parcel-view:not([hidden])) > :is(.auction-picker, #refresh-status) { max-width: 1120px; margin-inline: auto; }
main:has(> .parcel-view:not([hidden])) > .auction-picker { display: none; }
.breadcrumbs { padding-block: 1rem; font-size: .85rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem 0; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li { display: flex; align-items: center; }
.breadcrumbs li + li::before { content: '/'; padding-inline: .65rem; color: var(--muted); }
.breadcrumbs a { display: inline-block; padding-block: .45rem; font-weight: 630; }
.breadcrumbs [aria-current] { padding-block: .45rem; color: var(--muted); }
.geography-browser { padding: clamp(1rem, 2.5vw, 2rem); margin-bottom: 2rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.geography-heading h2 { font-size: clamp(1.3rem, 2vw, 1.8rem); }
.geography-heading p { margin-top: .45rem; font-size: .9rem; }
.geography-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, 300px); gap: clamp(1rem, 2.5vw, 2rem); margin-top: 1.5rem; align-items: start; }
.geography-canvas { min-width: 0; }
.geography-map { display: block; width: 100%; height: clamp(300px, 60vh, 630px); }
.geography-region { fill: #e4e9e3; stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; outline: none; }
.geography-region[role="link"] { cursor: pointer; }
.geography-region[role="link"]:hover { fill: #c0d3c3; stroke: #52655d; }
.geography-region.has-sales { fill: #225d47; }
.geography-region.has-sales:hover { fill: #31775c; }
.geography-region.current-region { fill: #31775c; stroke: #153b31; stroke-width: 3; }
.geography-map .geography-region:focus-visible { stroke: #9b6917; stroke-width: 4; }
.geography-map-label { fill: #52655d; text-anchor: middle; dominant-baseline: middle; pointer-events: none; font-weight: 650; }
.geography-map-label.on-sales { fill: #fff; paint-order: stroke; stroke: #225d47; stroke-width: .6; }
.geography-hover-info { min-height: 88px; margin-top: .9rem; padding: .7rem .8rem; background: var(--wash); border-radius: 6px; font-size: .85rem; }
.geography-hover-info strong, .geography-hover-info span { display: block; }
.geography-hover-info span { margin-top: .3rem; }
.geography-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; justify-content: center; margin-top: .9rem; font-size: .8rem; color: var(--muted); }
.geography-legend span { display: flex; gap: .4rem; align-items: center; }
.geography-legend span::before { content: ''; width: 13px; height: 13px; border-radius: 2px; background: #225d47; }
.geography-legend .legend-unavailable::before { background: #e4e9e3; border: 1px solid #aebeb3; }
.geography-attribution { margin-top: .65rem; font-size: .7rem; text-align: center; }
.geography-attribution a { color: var(--muted); }
.geography-options { min-width: 0; }
.geography-options h3 { font-size: 1rem; margin-top: 1.3rem; }
.geography-select { display: grid; gap: .4rem; font-size: .85rem; font-weight: 650; }
.geography-select select { width: 100%; min-width: 0; min-height: 44px; padding: .5rem; color: var(--ink); background: #fff; border: 1px solid #aebeb3; border-radius: 6px; font-size: .85rem; }
.geography-period { margin-bottom: 1rem; }
.geography-choice { display: block; padding-block: 1rem; border-bottom: 1px solid var(--line); font-weight: 650; text-decoration: none; }
.geography-choice:hover { color: #163d2e; text-decoration: underline; }
.geography-choice .secondary { display: block; margin-top: .3rem; font-weight: 450; }
.geography-back { display: inline-block; padding-block: .35rem; font-size: .82rem; }
.geography-note { margin-top: 1.1rem; line-height: 1.6; }
@media (max-width: 760px) {
  .geography-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .geography-map { height: clamp(220px, 40vh, 380px); }
}
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, 365px); gap: 1.25rem; align-items: start; padding-bottom: 2rem; }
.list, aside, .parcel-view { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.workspace[hidden] { display: none; }
.section-heading { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; padding: 1.2rem 1.25rem 0; }
h2 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -.022em; }
#result-count, .secondary { color: var(--muted); font-size: .82rem; }
#result-count { padding: 0 1.25rem .65rem; font-variant-numeric: tabular-nums; }
.filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; padding: 1rem 1.25rem; }
.filters > label { display: grid; gap: .3rem; font-weight: 620; font-size: .78rem; }
.filters input, .filters select { width: 100%; min-width: 0; min-height: 40px; padding: .45rem .65rem; border: 1px solid #aebeb3; border-radius: 6px; color: var(--ink); background: #fff; font-size: .85rem; }
.filters input::placeholder { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#interest-status:not(.visually-hidden) { padding: 0 1.25rem .8rem; color: #852f28; font-size: .84rem; }
.table-scroll { overflow: auto; max-height: min(660px, 68vh); border-radius: 0 0 12px 12px; }
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .87rem; }
th, td { text-align: left; padding: .65rem .85rem; border-top: 1px solid #e2e8e2; }
th:first-child, td:first-child { padding-left: 1.25rem; }
th:last-child, td:last-child { padding-right: 1.25rem; }
th { position: sticky; top: 0; background: #edf2ed; font-size: .76rem; font-weight: 700; z-index: 1; }
td:not(:first-child) { white-space: nowrap; font-variant-numeric: tabular-nums; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: #f1f5ef; }
tbody tr.selected { background: var(--wash); }
tbody tr.favorite-unavailable { background: #fff7e8; }
tbody tr.favorite-unavailable:hover { background: #f8ecd3; }
tbody tr.favorite-unavailable.selected { background: #f6e4bf; }
.row-identity { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .35rem .65rem; align-items: start; }
.row-actions, .detail-actions { display: flex; align-items: flex-start; gap: .3rem; }
.detail-actions { flex-wrap: wrap; }
.row-button { display: flex; align-items: center; gap: .3rem; text-align: left; border: 0; padding: 0; color: var(--ink); background: transparent; }
.row-button strong { font: 650 .88rem/1.25 ui-monospace, monospace; }
.row-address { margin-top: .2rem; color: var(--muted); font-size: .75rem; overflow-wrap: anywhere; }
a.row-address { display: inline-block; color: var(--accent); }
.badge { display: inline-block; font-size: .72rem; font-weight: 650; color: #7b4027; background: #f5e9e0; padding: .12rem .38rem; border-radius: 4px; margin-left: .4rem; }
.interest-badge { color: #40564b; background: #e6eee7; }
.favorite-status-badge { display: inline-flex; align-items: center; gap: .25rem; color: #713c10; background: #f7dfb0; }
.favorite-status-badge svg { flex-shrink: 0; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.city-zoning-badge { color: #344a65; background: #e8eef5; }
.row-badges .badge { margin: .3rem .3rem 0 0; }
#empty { padding: 1.25rem; color: var(--muted); }
aside { padding: 1.25rem; position: sticky; top: 1rem; max-height: calc(100dvh - 2rem); overflow-y: auto; }
aside h2 { overflow-wrap: anywhere; font: 650 1.25rem/1.25 ui-monospace, monospace; }
aside h3 { font-size: .91rem; margin-bottom: .65rem; }
.detail-address { display: block; margin-top: .35rem; font-size: .85rem; color: var(--muted); }
a.detail-address { color: var(--accent); }
a.map-address { display: inline-flex; align-items: flex-start; gap: .35rem; max-width: 100%; }
.map-address .section-icon { flex: 0 0 auto; width: 16px; height: 16px; margin: .1em 0 0; }
.map-address > span { min-width: 0; overflow-wrap: anywhere; }
.open-parcel { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 1rem; padding: .5rem .75rem; border-radius: 6px; background: var(--accent); color: #fff; font-size: .85rem; font-weight: 670; text-decoration: none; }
.open-parcel:hover { color: #fff; background: #163d2e; }
.parcel-view { max-width: 1120px; margin: 0 auto 2rem; padding: clamp(1rem, 3vw, 2rem); }
.back-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; font-weight: 650; }
.parcel-header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 21rem); gap: 1.25rem; align-items: start; margin-top: .65rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.parcel-header h2 { font: 650 clamp(1.3rem, 3vw, 1.85rem)/1.2 ui-monospace, monospace; overflow-wrap: anywhere; }
.parcel-identity-line { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.parcel-identity-line h2 { min-width: 0; }
.parcel-identity-line .detail-actions { flex-shrink: 0; align-items: center; }
#full-actions .row-interest { width: 44px; min-height: 44px; }
.parcel-header dl { margin-top: .25rem; }
.parcel-overview { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; gap: clamp(1.25rem, 3vw, 2rem); padding-top: 1.25rem; }
.parcel-overview .aerial-section, .parcel-reference > section:first-child { border: 0; padding: 0; margin: 0; }
.parcel-view h3 { margin-bottom: .55rem; font-size: 1rem; }
.parcel-view .price-section > * { max-width: 42rem; }
.interest-button { margin-top: .75rem; padding: .4rem .6rem; min-height: 36px; border: 1px solid #aebeb3; border-radius: 6px; color: var(--ink); background: #fff; font-size: .8rem; font-weight: 630; }
.interest-button:hover { background: var(--wash); }
.interest-button:active { background: #dbe9de; }
.interest-button:disabled { cursor: default; color: var(--muted); background: #edf2ed; }
.row-interest { margin-top: 0; width: 32px; min-height: 32px; padding: 0; display: grid; place-items: center; }
.row-interest svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.row-interest[aria-pressed="true"] { background: var(--wash); color: var(--accent); }
.row-interest.favorite-button[aria-pressed="true"] { background: #fff3d4; color: #75500b; }
.row-interest.favorite-button[aria-pressed="true"] svg { fill: currentColor; }
.detail-section { border-top: 1px solid var(--line); margin-top: 1.1rem; padding-top: 1rem; }
.driveby-photos > summary { min-height: 44px; padding-block: .5rem; font-size: 1rem; font-weight: 700; }
.driveby-photos > p { max-width: 72ch; }
.driveby-controls { display: flex; flex-wrap: wrap; gap: .6rem; margin-block: .7rem; }
.driveby-controls .interest-button { margin: 0; min-height: 44px; }
.driveby-format { font-size: .78rem; }
.driveby-status { min-height: 1.5rem; padding-block: .4rem; }
.driveby-status.error { color: #852f28; }
.driveby-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,220px),1fr)); gap: 1rem; margin-top: .6rem; }
.driveby-photo { min-width: 0; }
.driveby-photo-open { display: block; width: 100%; aspect-ratio: 4/3; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #edf2ed; }
.driveby-photo-open img { display: block; width: 100%; height: 100%; object-fit: cover; }
.driveby-name { margin-top: .45rem; font-weight: 650; overflow-wrap: anywhere; }
.driveby-date { font-size: .75rem; }
.driveby-remove { display: inline-flex; align-items: center; min-height: 44px; border: 0; padding: .35rem 0; background: none; color: #852f28; text-decoration: underline; text-underline-offset: .2em; }
.driveby-remove-confirm { padding-block: .4rem; }
.driveby-remove-confirm .interest-button { margin-right: .5rem; min-height: 44px; }
.driveby-empty { grid-column: 1 / -1; padding-block: .65rem; }
.driveby-viewer { width: min(96vw,1120px); max-width: 96vw; max-height: 96dvh; padding: 1rem; border: 0; border-radius: 12px; color: #f4f8f4; background: #10251f; }
.driveby-viewer::backdrop { background: #10251fcc; }
.driveby-viewer .secondary { color: #ccdbd2; }
.driveby-viewer-stage { position: relative; margin-block: .8rem; height: min(70dvh,800px); background: #0b1915; }
.driveby-viewer-stage > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.driveby-viewer h2 { font: 650 1rem/1.4 system-ui,sans-serif; }
.driveby-viewer .photo-gallery-header > button { flex-shrink: 0; margin: 0; }
.driveby-viewer :focus-visible { outline-color: #c4e8cf; }
.section-icon { display: inline-block; width: 18px; height: 18px; margin-right: .45rem; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.price-section > summary { min-height: 44px; padding-block: .5rem; font-size: 1rem; font-weight: 700; }
#full-actions .interest-button { margin-top: 0; }
.price-section h4 { margin: .85rem 0 .4rem; font-size: .84rem; }
.price-section .secondary { margin: .4rem 0; }
.price-section .detail-links { margin-top: .4rem; }
.price-message { margin: 0; font-size: .8rem; font-weight: 630; }
.price-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.price-inputs label { display: grid; gap: .2rem; color: var(--muted); font-size: .78rem; }
.price-inputs label:first-child { grid-column: 1 / -1; }
.price-inputs input { width: 100%; min-width: 0; padding: .45rem; border: 1px solid #aebeb3; border-radius: 6px; color: var(--ink); background: #fff; }
.price-total { margin-top: .65rem; padding: .6rem .7rem; background: var(--wash); border-radius: 6px; }
.price-total dl { margin: 0; }
.price-total dt:last-of-type, .price-total dd:last-child { padding-top: .35rem; border-top: 1px solid var(--line); color: var(--ink); font-weight: 700; }
.price-sales { margin: .3rem 0 0; padding: 0; list-style: none; }
.price-sales li { display: grid; grid-template-columns: 1fr auto; gap: .1rem .45rem; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.price-sales li .secondary { grid-column: 1 / -1; margin: 0; }
.price-sale-property { min-width: 0; }
.price-sale-property > a { display: block; overflow-wrap: anywhere; }
.sales-map-section > summary { min-height: 44px; padding-block: .5rem; font-weight: 650; }
.sales-map-controls { display: flex; justify-content: flex-end; gap: .6rem; margin-bottom: .6rem; }
.sales-map-controls[hidden] { display: none; }
.sales-map-reset { min-height: 40px; padding: .4rem .6rem; border: 1px solid #aebeb3; border-radius: 6px; color: var(--ink); background: #fff; font-weight: 630; white-space: nowrap; }
.sales-map-reset:hover { background: var(--wash); }
.sales-map { height: clamp(20rem, 55vh, 28rem); width: 100%; border: 1px solid var(--line); border-radius: 6px; background: var(--wash); isolation: isolate; }
.sales-map-marker { display: grid; place-items: center; border: 2px solid #87502a; border-radius: 50%; color: #653817; background: #fff5e9; font-size: .85rem; font-weight: 750; }
.sales-map-auction { border-color: #fff; color: #fff; background: var(--accent); box-shadow: 0 2px 5px #172c2640; }
.sales-map-popup { overflow-wrap: anywhere; }
.sales-map-popup > a { display: block; margin-top: .4rem; color: var(--accent); }
.sales-map-popup p { margin: .4rem 0 0; }
.environment-section > summary { min-height: 44px; padding-block: .5rem; font-size: 1rem; font-weight: 700; }
.environment-controls { display: grid; gap: .25rem; }
.environment-toggle { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; min-height: 44px; padding-block: .35rem; font-size: .85rem; font-weight: 630; }
.environment-toggle input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.environment-layer-state { flex-basis: 100%; font-weight: 400; }
.environment-toolbar { display: grid; gap: .6rem; padding-top: .65rem; border-top: 1px solid var(--line); margin-top: .65rem; }
.environment-opacity { display: grid; gap: .2rem; color: var(--muted); font-size: .82rem; }
.environment-opacity input { min-height: 32px; width: 100%; accent-color: var(--accent); }
.environment-opacity-scale { display: flex; justify-content: space-between; font-size: .75rem; }
.environment-frame { height: clamp(23rem, 60vh, 34rem); }
.environment-center { display: grid; place-items: center; width: 44px; height: 44px; padding: .6rem; border: 0; border-radius: 4px; color: var(--ink); background: #fff; }
.environment-center:hover { background: var(--wash); }
.environment-center svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.environment-basemaps { display: flex; overflow: hidden; border: 2px solid #172c2633; border-radius: 6px; background: #fff; background-clip: padding-box; }
.environment-basemaps button { min-height: 44px; padding: .4rem .65rem; border: 0; border-radius: 0; color: var(--ink); background: #fff; font: 630 .8rem/1.3 system-ui, sans-serif; }
.environment-basemaps button + button { border-left: 1px solid var(--line); }
.environment-basemaps button:hover { background: var(--wash); }
.environment-basemaps button[aria-pressed="true"] { color: #fff; background: var(--accent); }
.environment-basemaps button:focus-visible { outline-offset: -4px; outline-color: var(--ink); }
.environment-basemaps button[aria-pressed="true"]:focus-visible { outline-color: #fff; }
.environment-layers { border: 2px solid #172c2633; border-radius: 6px; color: var(--ink); background: #fff; background-clip: padding-box; font: .82rem/1.4 system-ui, sans-serif; }
.environment-layers > summary { min-height: 44px; padding: .65rem .7rem; color: var(--ink); font-weight: 650; }
.environment-layers > summary:hover { background: var(--wash); }
.environment-layers > summary:focus-visible { outline-offset: -4px; }
.environment-layers > summary svg { display: inline-block; width: 18px; height: 18px; margin-right: .4rem; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.environment-layers[open] { width: min(15rem, calc(100vw - 8.75rem)); }
.environment-layers[open] > summary { border-bottom: 1px solid var(--line); }
.environment-layers-body { padding: .4rem .75rem .75rem; max-height: calc(clamp(23rem, 60vh, 34rem) - 10rem); overflow-y: auto; overscroll-behavior: contain; }
.environment-layers-body .environment-toggle:last-child { padding-top: .6rem; border-top: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.environment-section > .secondary { margin-top: .6rem; }
.environment-legend > summary { min-height: 44px; padding-block: .5rem; font-weight: 650; }
.environment-legend-group { margin-bottom: .75rem; }
.environment-legend-group > a { font-weight: 650; }
.environment-legend-group ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: .35rem 1rem; margin: .5rem 0; padding: 0; list-style: none; }
.environment-legend-group li { display: flex; align-items: center; gap: .5rem; }
.environment-legend-group img { flex-shrink: 0; object-fit: contain; }
.environment-legend > a { display: block; margin-block: .35rem; }
.environment-note { max-width: 85ch; }
.auction-map-section { margin: 0; padding: 0 1.25rem 1rem; }
.auction-map-section > summary { min-height: 44px; padding-block: .5rem; font-weight: 650; }
.auction-map-section > .secondary { margin-top: .5rem; }
.auction-map-favorite { border-color: #9c7029; color: #75500b; background: #fff3d4; }
.auction-map-favorite svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 1.5; }
.favorite-badge { color: #75500b; background: #fff3d4; }
.aerial-frame { position: relative; aspect-ratio: 640 / 416; overflow: hidden; border-radius: 6px; background: #edf2ed; }
.aerial-frame img { display: block; visibility: hidden; width: 100%; height: 100%; object-fit: cover; }
.aerial-frame img.loaded { visibility: visible; }
.aerial-frame img.property-photo { object-fit: contain; }
.photo-controls { position: absolute; inset: 50% .5rem auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; transform: translateY(-50%); pointer-events: none; }
.photo-source-badge { position: absolute; top: .65rem; left: .65rem; max-width: calc(100% - 1.3rem); padding: .3rem .5rem; border-radius: 4px; color: #153b31; background: #e5f2e2; font-size: .75rem; font-weight: 700; pointer-events: none; }
.photo-controls .photo-step { pointer-events: auto; background: #ffffffed; }
.photo-step { display: grid; place-items: center; width: 44px; height: 44px; padding: .55rem; border: 1px solid #aebeb3; border-radius: 6px; color: var(--accent); background: #fff; }
.photo-step:hover { background: var(--wash); }
.photo-step:disabled { cursor: default; color: var(--muted); background: #edf2ed; opacity: .65; }
.photo-step svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.photo-counter { position: absolute; bottom: .5rem; left: 50%; transform: translateX(-50%); padding: .2rem .55rem; border-radius: 4px; color: var(--ink); background: #ffffffed; font-size: .8rem; font-variant-numeric: tabular-nums; pointer-events: none; }
.photo-open, .photo-stage { position: absolute; inset: 0; display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; color: inherit; background: transparent; }
.photo-open { cursor: zoom-in; }
.photo-open:focus-visible { outline-offset: -4px; }
.photo-open:disabled { cursor: default; }
.photo-stage { touch-action: pan-y pinch-zoom; }
.photo-gallery-link { padding: 0; border: 0; color: var(--accent); background: none; text-decoration: underline; text-underline-offset: .2em; font-size: inherit; }
.photo-gallery { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: clamp(.75rem, 2vw, 1.5rem); border: 0; color: #f4f8f4; background: #10251f; }
.photo-gallery[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: .65rem; }
.photo-gallery-header .photo-gallery-close { margin-left: auto; }
.photo-gallery::backdrop { background: #10251f; }
.photo-gallery-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.photo-gallery-header h2 { font-size: clamp(.95rem, 2vw, 1.2rem); overflow-wrap: anywhere; }
.photo-gallery-close { flex-shrink: 0; }
.photo-gallery .gallery-frame { min-height: 0; height: 100%; aspect-ratio: auto; background: #0b1915; }
.photo-gallery .gallery-frame img { object-fit: contain; }
.photo-gallery .secondary, .photo-gallery .photo-unavailable { color: #ccdbd2; }
.photo-gallery .aerial-status, .photo-gallery .aerial-footer { margin: 0; }
.photo-gallery a { color: #c4e8cf; }
.photo-gallery a:focus-visible { outline-color: #c4e8cf; }
.photo-unavailable { display: grid; height: 100%; place-items: center; padding: 1rem; color: var(--muted); font-size: .85rem; text-align: center; }
.aerial-marker { position: absolute; inset: 50% auto auto 50%; width: 13px; height: 13px; transform: translate(-50%, -50%); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 1px 4px #142b24; pointer-events: none; }
.aerial-status { margin-top: .45rem; }
.aerial-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .7rem; margin-top: .4rem; font-size: .75rem; }
dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: .45rem .75rem; margin: .8rem 0 0; font-size: .8rem; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 630; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.detail-links { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem .5rem; }
.detail-links a { padding: .2rem 0; font-size: .8rem; font-weight: 630; }
details { margin-top: .8rem; font-size: .8rem; }
summary { cursor: pointer; color: var(--accent); }
details p { margin-top: .4rem; overflow-wrap: anywhere; }
.title-preview > summary { min-height: 44px; padding-block: .5rem; font-size: 1rem; font-weight: 700; }
.title-preview-link { display: inline-block; padding-block: .35rem .65rem; }
.title-preview-frame { display: block; width: 100%; height: clamp(25rem, 75vh, 55rem); border: 1px solid var(--line); border-radius: 6px; background: #fff; }
@media (max-width: 920px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  aside { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 680px) {
  .row-actions { flex-direction: column; }
  .parcel-header, .parcel-overview { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .masthead-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  h1 { font-size: 1.5rem; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters > label { grid-column: auto; }
  .filters > label:nth-child(-n+3), .filters > label:last-child { grid-column: 1 / -1; }
  th, td { padding-inline: .55rem; }
  th:first-child, td:first-child { padding-left: .75rem; }
  th:last-child, td:last-child { padding-right: .75rem; }
  .row-button strong { font-size: .76rem; }
  td:not(:first-child) { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) { .primary:disabled svg { animation: none; } }
.scraper-editor { margin-block: 2rem; padding-block: 1.25rem; border-block: 1px solid var(--line, #cbd5cc); }
.scraper-editor > summary { cursor: pointer; font-size: 1.15rem; font-weight: 700; }
.scraper-body { padding-top: 1.25rem; }
.scraper-form { max-width: 850px; }
.scraper-body label:not(.scraper-check) { display: grid; gap: .4rem; margin-bottom: 1rem; }
.scraper-body input:not([type=checkbox]), .scraper-body select { width: 100%; min-width: 0; padding: .7rem; border: 1px solid #9cad9f; border-radius: 6px; background: white; color: inherit; font: inherit; }
.scraper-check { display: flex; align-items: center; gap: .65rem; margin-block: .85rem; }
.scraper-check input { width: 1.1rem; height: 1.1rem; accent-color: #176453; }
.scraper-form fieldset { padding: 1rem; border: 1px solid #cbd5cc; border-radius: 8px; margin-block: 1rem; min-width: 0; }
.scraper-form fieldset:disabled { opacity: .6; }
.scraper-advanced { margin-top: 1.5rem; }
.scraper-advanced > summary { cursor: pointer; font-weight: 650; }
.scraper-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; margin-top: 1rem; }
.scraper-sales { padding: 0; list-style: none; max-width: 850px; }
.scraper-sales li { padding-block: .9rem; border-top: 1px solid #cbd5cc; overflow-wrap: anywhere; }
.scraper-sales small { display: block; margin-top: .3rem; }
.scraper-sale-status { margin-left: .75rem; font-weight: 650; }
.scraper-body p { max-width: 75ch; }
@media (max-width: 600px) { .scraper-grid { grid-template-columns: 1fr; } }
.city-zoning-editor { margin-top: 1.5rem; }
.city-zoning-editor > summary, .city-source-row > summary { cursor: pointer; font-weight: 650; }
.city-zoning-editor > p { margin-block: .75rem; }
.city-source-row { padding-block: .75rem; border-top: 1px solid var(--line); }
.city-zoning-editor > button { margin-top: .75rem; }
