* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: radial-gradient(circle at 78% -20%, rgba(109, 184, 148, .14), transparent 36rem), var(--paper); }
body:has(dialog[open]) { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(23, 96, 71, .24); outline-offset: 2px; }
a { color: inherit; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; border-radius: 9px; color: white; background: var(--forest-dark); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.app-shell { min-height: 100vh; }
.app-header { position: sticky; z-index: 20; top: 0; min-height: 82px; padding: 14px clamp(20px, 3vw, 48px); border-bottom: 1px solid rgba(198, 209, 202, .9); background: rgba(255, 255, 255, .92); backdrop-filter: blur(18px); display: grid; grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr); align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 46px; height: 46px; border-radius: 14px; color: white; background: linear-gradient(145deg, #287d5e, var(--forest-dark)); display: grid; place-items: center; font-size: 20px; font-weight: 850; box-shadow: 0 7px 18px rgba(16, 62, 48, .19); }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 17px; letter-spacing: -.01em; }
.brand span { margin-top: 2px; color: var(--muted); font-size: 14px; }

.primary-nav { padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: #f8faf8; display: flex; gap: 3px; }
.nav-item { min-height: 42px; padding: 0 15px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-size: 15px; font-weight: 700; transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s var(--ease); }
.nav-item:hover { color: var(--forest-dark); background: var(--mint); }
.nav-item.is-active { color: white; background: var(--forest); box-shadow: 0 6px 14px rgba(23, 96, 71, .19); }
.nav-item:active { transform: scale(.98); }

.run-state { justify-self: end; display: flex; align-items: center; gap: 11px; }
.run-state strong, .run-state span { display: block; }
.run-state strong { font-size: 14px; }
.run-state span { margin-top: 2px; color: var(--muted); font-size: 13px; }
.status-dot { flex: none; width: 11px; height: 11px; border-radius: 50%; background: #43a877; box-shadow: 0 0 0 5px rgba(67, 168, 119, .13); }
.status-dot--loading { background: #d4a847; animation: pulse 1.1s ease-in-out infinite; }
.status-dot--error { background: #d96050; box-shadow: 0 0 0 5px rgba(217, 96, 80, .13); }
@keyframes pulse { 50% { opacity: .45; transform: scale(.82); } }

main { width: 100%; padding: 42px clamp(20px, 3vw, 48px) 72px; }
.view { display: none; }
.view.is-visible { display: block; animation: view-in .34s var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } }
.page-heading { margin-bottom: 28px; display: flex; justify-content: space-between; gap: 30px; align-items: end; }
.page-heading > div { max-width: 850px; }
.page-heading h1 { margin: 0; font-size: clamp(32px, 4vw, 50px); line-height: 1.06; letter-spacing: -.045em; }
.page-heading p:not(.eyebrow) { max-width: 760px; margin: 12px 0 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.eyebrow { margin: 0 0 9px; color: var(--forest); font-size: 13px; font-weight: 850; letter-spacing: .12em; }
h2, h3 { margin: 0; letter-spacing: -.025em; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }

.metric-grid { margin-bottom: 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.metric-card { min-height: 158px; padding: 21px; border: 1px solid var(--line); border-radius: 19px; background: var(--panel); box-shadow: 0 8px 24px rgba(18, 48, 37, .045); position: relative; overflow: hidden; }
.metric-card::after { content: ""; position: absolute; width: 92px; height: 92px; right: -38px; bottom: -42px; border: 1px solid currentColor; border-radius: 50%; opacity: .12; }
.metric-card--green { background: var(--forest-soft); border-color: #c5e3d4; }
.metric-card--sand { background: var(--sand); border-color: #e9dab7; }
.metric-card--coral { background: var(--coral); border-color: #f0c8be; }
.metric-card > span { color: var(--muted); font-size: 14px; font-weight: 750; }
.metric-card strong { display: block; margin-top: 13px; font-size: 40px; line-height: 1; letter-spacing: -.045em; }
.metric-card p { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; }

.panel { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); box-shadow: var(--shadow); }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.panel-heading p { margin: 7px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.compact-controls { display: flex; flex-wrap: wrap; gap: 10px; }
.compact-controls input, .compact-controls select { min-width: 210px; height: 44px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 11px; color: var(--ink); background: white; }

.change-list { margin-top: 18px; display: grid; gap: 11px; }
.change-card { min-height: 112px; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: #fff; display: grid; grid-template-columns: 112px minmax(260px, 1fr) auto; gap: 17px; align-items: center; animation: row-in .32s var(--ease) both; animation-delay: calc(var(--row-index, 0) * 24ms); transition: border-color .2s ease, box-shadow .2s ease, transform .2s var(--ease); }
.change-card:hover { border-color: var(--line-strong); box-shadow: 0 10px 24px rgba(18, 48, 37, .08); transform: translateY(-1px); }
.change-card--high { border-left: 4px solid #d96050; }
.change-placeholder { width: 112px; height: 82px; border-radius: 11px; background: var(--forest-soft); color: var(--forest); display: grid; place-items: center; font-weight: 850; }
.change-card__body { min-width: 0; }
.change-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.signal-label, .fit-label { padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 750; text-transform: capitalize; }
.signal-label { color: var(--forest-dark); background: var(--forest-soft); }
.fit-label { color: #69531b; background: var(--amber); }
.change-card h3 { margin-top: 8px; }
.change-card p { margin: 5px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.change-card time { display: block; margin-top: 7px; color: var(--muted); font-size: 13px; }
.change-card__actions { min-width: 134px; display: grid; justify-items: stretch; gap: 7px; }

.table-section { min-width: 0; }
.table-toolbar { margin-bottom: 14px; display: flex; align-items: end; flex-wrap: wrap; gap: 10px; }
.filter-field { min-width: 128px; display: grid; gap: 6px; }
.filter-field--search { min-width: min(290px, 100%); flex: 1 1 250px; }
.filter-field--small { min-width: 94px; }
.filter-field label { color: var(--muted); font-size: 13px; font-weight: 750; }
.filter-field input, .filter-field select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); background: white; }
.result-count { margin-left: auto; min-height: 44px; padding: 12px 2px; color: var(--muted); font-size: 14px; font-weight: 700; white-space: nowrap; }
.table-toolbar__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.table-toolbar__actions .result-count { margin-left: 0; }
.export-button { min-height: 44px; }
.table-card { border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); overflow: hidden; }
.table-scroll { width: 100%; overflow-x: auto; scrollbar-color: #aebdb5 transparent; }
.property-table { width: 100%; min-width: 1420px; border-collapse: separate; border-spacing: 0; }
.property-table th { position: sticky; z-index: 2; top: 0; height: 50px; padding: 0 12px; border-bottom: 1px solid var(--line-strong); color: var(--muted); background: #f7f9f7; text-align: left; white-space: nowrap; }
.sort-button { width: 100%; height: 49px; padding: 0; border: 0; color: inherit; background: transparent; font-size: 13px; font-weight: 800; text-align: left; }
.sort-button:hover, .sort-button.is-active { color: var(--forest); }
.property-table td { padding: 13px 12px; border-bottom: 1px solid #e8ece9; font-size: 15px; vertical-align: middle; }
.property-table tbody tr { animation: row-in .3s var(--ease) both; animation-delay: calc(var(--row-index, 0) * 22ms); transition: background .18s ease; }
.property-table tbody tr:hover { background: #f8fbf9; }
.property-table tbody tr:last-child td { border-bottom: 0; }
@keyframes row-in { from { opacity: 0; transform: translateY(5px); } }
.property-summary { width: 350px; display: flex; align-items: center; gap: 14px; }
.property-summary > div { min-width: 0; }
.property-link { display: block; color: var(--ink); font-size: 15px; font-weight: 800; line-height: 1.3; text-decoration: none; }
.property-link:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.property-summary span:not(.listing-media__fallback):not(.listing-media__open) { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }
.price-cell { min-width: 158px; font-weight: 800; }
.date-cell { min-width: 124px; color: var(--muted); font-size: 14px !important; }
.age-cell { min-width: 146px; font-variant-numeric: tabular-nums; }
.age-cell strong, .age-cell small { display: block; }
.age-cell strong { font-size: 14px; }
.age-cell small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.3; }
.cell-note { display: block; margin-top: 3px; color: var(--forest); font-size: 12px; font-weight: 750; }

.listing-media { flex: 0 0 auto; position: relative; width: 112px; height: 82px; border-radius: 11px; overflow: hidden; isolation: isolate; color: white; background: linear-gradient(135deg, #d7e7de, #719580); display: block; text-decoration: none; }
.listing-media img { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .28s ease, transform .4s var(--ease); }
.listing-media.is-loaded img { opacity: 1; }
.listing-media:hover img { transform: scale(1.04); }
.listing-media__fallback { position: absolute; inset: 0; padding: 10px; display: grid; place-items: center; color: rgba(255,255,255,.9); font-size: 12px; font-weight: 750; line-height: 1.35; text-align: center; }
.listing-media.is-loaded .listing-media__fallback { display: none; }
.listing-media__open { position: absolute; z-index: 2; right: 6px; bottom: 6px; width: 27px; height: 27px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: rgba(16,62,48,.76); display: grid; place-items: center; font-size: 14px; opacity: 0; transform: translateY(3px); transition: opacity .2s ease, transform .2s var(--ease); }
.listing-media:hover .listing-media__open { opacity: 1; transform: none; }

.status-pill, .fit-pill, .pool-cell { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.status-pill--available { color: #17623e; background: #dff3e7; }
.status-pill--under_offer, .status-pill--under_contract { color: var(--coral-ink); background: var(--coral); }
.status-pill--sold, .status-pill--withdrawn { color: #5c6470; background: #e9ecef; }
.status-pill--unknown { color: var(--amber-ink); background: var(--amber); }
.fit-pill { color: var(--forest-dark); background: var(--forest-soft); }
.fit-pill--verified_exact_match { color: white; background: var(--forest); }
.fit-pill--exact_match_pending_review { color: var(--amber-ink); background: var(--amber); }
.pool-cell--pass { color: #17623e; background: #dff3e7; }
.pool-cell--fail { color: #555f5a; background: #edf0ee; }
.pool-cell--unresolved { color: var(--amber-ink); background: var(--amber); }
.stage-select { min-width: 116px; height: 40px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--ink); background: white; }
.row-actions { display: flex; gap: 6px; }
.pagination { padding: 16px 2px 0; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.pagination span { color: var(--muted); font-size: 14px; font-weight: 700; }
.pagination button:disabled { cursor: not-allowed; opacity: .45; }

.primary-button, .secondary-button, .text-button, .icon-button { min-height: 44px; border-radius: 10px; font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.primary-button { padding: 0 14px; border: 1px solid var(--forest); color: white; background: var(--forest); }
.primary-button:hover { background: var(--forest-dark); }
.secondary-button { padding: 0 14px; border: 1px solid var(--line-strong); color: var(--ink); background: white; }
.secondary-button:hover { border-color: var(--forest); color: var(--forest); background: var(--mint); }
.primary-button--small, .secondary-button--small { min-height: 36px; padding: 0 10px; font-size: 13px; }
.text-button { min-height: 34px; padding: 0 6px; border: 0; color: var(--muted); background: transparent; font-size: 13px; }
.text-button:hover { color: var(--forest); }
.icon-button { width: 44px; padding: 0; border: 1px solid var(--line); color: var(--muted); background: white; font-size: 25px; }

.watchlist-updates:empty { display: none; }
.watchlist-panel { margin-bottom: 18px; box-shadow: none; }
.watch-update-grid { margin-top: 15px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.watch-update { min-height: 124px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: #f9fbf9; text-align: left; display: grid; align-content: start; gap: 6px; transition: border-color .2s ease, transform .2s var(--ease); }
.watch-update:hover { border-color: var(--forest); transform: translateY(-2px); }
.watch-update span { color: var(--forest); font-size: 12px; font-weight: 850; text-transform: capitalize; }
.watch-update strong { font-size: 14px; }
.watch-update small { color: var(--muted); font-size: 13px; line-height: 1.35; }

.target-market-panel { margin-bottom: 18px; }
.target-market-panel .panel-heading { align-items: center; }
.coverage-badge { flex: none; min-height: 34px; padding: 8px 11px; border-radius: 999px; color: var(--forest-dark); background: var(--forest-soft); font-size: 13px; font-weight: 800; }
.evidence-metric-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.evidence-metric { min-height: 126px; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: #f8faf8; }
.evidence-metric--focus { border-color: #bcd9cb; background: var(--mint); }
.evidence-metric span, .evidence-metric small { display: block; color: var(--muted); }
.evidence-metric span { font-size: 14px; font-weight: 750; }
.evidence-metric strong { display: block; margin-top: 10px; font-size: clamp(23px, 2.1vw, 31px); line-height: 1.1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.evidence-metric small { margin-top: 9px; font-size: 13px; line-height: 1.35; }
.target-market-panel > .evidence-note { margin-top: 15px; }
.suburb-evidence-panel { margin-bottom: 18px; }
.campaign-outcomes-panel { margin-bottom: 18px; }
.reduction-panel { margin-bottom: 18px; }
.campaign-age-panel { margin-bottom: 18px; }
.insight-callout { flex: 0 1 360px; min-width: 250px; padding: 14px 16px; border: 1px solid #e9dab7; border-radius: 13px; background: var(--sand); }
.insight-callout strong, .insight-callout span { display: block; }
.insight-callout strong { font-size: 14px; }
.insight-callout span { margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.insight-table-scroll { margin: 20px -24px -24px; overflow-x: auto; }
.insight-table { width: 100%; min-width: 900px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.insight-table--compact { min-width: 720px; }
.reduction-panel .insight-table-scroll { margin-bottom: 0; border-bottom: 1px solid var(--line); }
.reduction-panel > .evidence-note { margin-top: 16px; }
.insight-table th, .insight-table td { padding: 14px 16px; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
.insight-table thead th { color: var(--muted); background: #f7f9f7; font-size: 13px; font-weight: 800; white-space: nowrap; }
.insight-table tbody th { color: var(--ink); font-size: 15px; }
.insight-table tbody td { font-size: 14px; white-space: nowrap; }
.insight-table td strong, .insight-table td small { display: block; }
.insight-table td small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.insight-table tbody tr:hover { background: #f8fbf9; }
.insights-grid { display: grid; grid-template-columns: minmax(380px, .9fr) minmax(480px, 1.1fr); gap: 18px; }
.bar-list, .activity-chart { margin-top: 22px; display: grid; gap: 13px; }
.bar-row { display: grid; grid-template-columns: 120px minmax(100px, 1fr) 44px; gap: 12px; align-items: center; font-size: 14px; }
.bar-track, .activity-track { height: 10px; border-radius: 999px; background: #edf1ee; overflow: hidden; }
.bar-track span, .activity-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--forest), #4b9c77); transform-origin: left; animation: grow .55s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.bar-row b { color: var(--muted); font-size: 14px; text-align: right; }
.activity-row { display: grid; grid-template-columns: 100px minmax(90px, 1fr) 30px minmax(190px, auto); gap: 10px; align-items: center; }
.activity-row time, .activity-row small { color: var(--muted); font-size: 13px; }
.activity-row strong { font-size: 14px; text-align: right; }

.detail-dialog { width: min(1180px, calc(100vw - 28px)); max-height: calc(100vh - 34px); padding: 0; border: 0; border-radius: 20px; color: var(--ink); background: white; box-shadow: 0 35px 90px rgba(11,31,23,.28); overflow: auto; overscroll-behavior: contain; }
.detail-dialog::backdrop { background: rgba(12, 29, 23, .54); backdrop-filter: blur(4px); }
.dialog-shell { padding: 25px; }
.dialog-heading { padding-bottom: 19px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.history-summary { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: center; }
.history-summary .listing-media { width: 220px; height: 150px; }
.history-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.history-price { display: block; margin-top: 13px; font-size: 27px; letter-spacing: -.03em; }
.history-summary p { margin: 8px 0 14px; color: var(--muted); }
.history-metrics { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.history-metrics article { min-height: 112px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #f8faf8; }
.history-metrics span, .history-metrics small { display: block; color: var(--muted); }
.history-metrics span { font-size: 13px; font-weight: 750; }
.history-metrics strong { display: block; margin-top: 9px; font-size: 19px; line-height: 1.2; }
.history-metrics small { margin-top: 7px; font-size: 13px; line-height: 1.35; }
.sale-outcome-card { margin-top: 18px; padding: 20px; border: 1px solid #bcd9cb; border-radius: 16px; background: var(--mint); }
.sale-outcome-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sale-outcome-heading p:not(.eyebrow) { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.sale-outcome-grid { margin-top: 17px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.sale-outcome-grid article { min-height: 94px; padding: 14px; border: 1px solid rgba(23,96,71,.14); border-radius: 12px; background: rgba(255,255,255,.76); }
.sale-outcome-grid span { color: var(--muted); font-size: 13px; font-weight: 750; }
.sale-outcome-grid strong { display: block; margin-top: 8px; font-size: 17px; line-height: 1.3; }
.sale-outcome-footer { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.sale-outcome-footer p { margin: 0; font-size: 15px; line-height: 1.45; }
.sale-suggestion-card { margin-top: 18px; padding: 18px 20px; border: 1px solid #e6d39f; border-radius: 16px; background: var(--amber); }
.sale-suggestion-card p:not(.eyebrow) { margin: 7px 0 0; color: var(--amber-ink); font-size: 14px; line-height: 1.45; }
.decision-workspace { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 15px; }
.buyer-brief-card, .property-notes-card { padding: 19px; border: 1px solid var(--line); border-radius: 16px; background: #f8faf8; }
.buyer-brief-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.buyer-brief-heading .eyebrow, .property-notes-card .eyebrow { margin-bottom: 6px; }
.evidence-quality { flex: none; min-height: 30px; padding: 6px 10px; border-radius: 999px; color: var(--forest-dark); background: var(--forest-soft); font-size: 12px; font-weight: 800; }
.price-position { margin-top: 15px; padding: 14px; border-left: 4px solid var(--forest); border-radius: 0 11px 11px 0; background: white; }
.price-position span { color: var(--muted); font-size: 13px; font-weight: 750; }
.price-position strong { display: block; margin-top: 5px; font-size: 19px; }
.price-position p { margin: 5px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.talking-points { margin: 16px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.talking-points li { padding-left: 3px; font-size: 15px; line-height: 1.45; }
.buyer-brief-empty { padding: 12px 0 0; }
.property-notes-card > div:first-child > p:not(.eyebrow) { margin: 6px 0 16px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.property-notes-card label { margin-top: 13px; color: var(--muted); font-size: 14px; font-weight: 750; display: block; }
.property-notes-card select, .property-notes-card textarea { width: 100%; margin-top: 7px; padding: 10px 11px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); background: white; font-size: 16px; }
.property-notes-card select { min-height: 44px; }
.property-notes-card textarea { min-height: 132px; font-weight: 400; line-height: 1.5; resize: vertical; }
.property-notes-card textarea::placeholder { font-weight: 400; }
.field-help { margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.notes-actions { min-height: 44px; margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.save-status { color: var(--forest); font-size: 13px; font-weight: 750; }
.notes-actions .primary-button:disabled { cursor: wait; opacity: .58; }
.history-grid { padding-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.history-grid h3 { margin-bottom: 13px; }
.timeline { display: grid; gap: 0; }
.timeline-item { position: relative; padding: 0 0 19px 20px; border-left: 2px solid var(--line); }
.timeline-item::before { content: ""; position: absolute; width: 10px; height: 10px; left: -6px; top: 5px; border-radius: 50%; background: var(--forest); }
.timeline-item--high::before { background: #d96050; }
.timeline-item time { display: block; color: var(--muted); font-size: 13px; }
.timeline-item strong { display: block; margin-top: 3px; font-size: 15px; }
.timeline-item p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.comparable-section { margin-top: 5px; padding-top: 24px; border-top: 1px solid var(--line); }
.comparable-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; }
.comparable-heading > div:first-child { max-width: 700px; }
.comparable-heading h3 { font-size: 22px; }
.comparable-heading p:not(.eyebrow) { margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.comparable-range { flex: none; padding: 12px 15px; border-radius: 12px; color: white; background: var(--forest); text-align: right; }
.comparable-range span, .comparable-range small { display: block; font-size: 12px; }
.comparable-range strong { display: block; margin: 3px 0; font-size: 18px; }
.comparable-table-card { margin-top: 16px; box-shadow: none; }
.comparable-table { min-width: 1100px; }
.comparable-table .property-summary { width: 300px; }
.comparable-table .listing-media { width: 88px; height: 66px; }
.comparable-table th { position: static; }
.comparable-pill--strong { color: white; background: var(--forest); }
.comparable-pill--useful { color: var(--forest-dark); background: var(--forest-soft); }
.comparable-pill--broad { color: var(--amber-ink); background: var(--amber); }
.comparable-reasons { display: block; max-width: 180px; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.evidence-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.review-grid { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.review-grid label, .notes-label { color: var(--muted); font-size: 14px; font-weight: 750; }
.review-grid select, .review-grid input, .notes-label textarea { width: 100%; margin-top: 7px; padding: 10px 11px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--ink); background: white; }
.review-grid select, .review-grid input { min-height: 44px; }
.notes-label { display: block; margin-top: 15px; }
.notes-label textarea { resize: vertical; }
.dialog-actions { margin-top: 20px; display: flex; justify-content: flex-end; gap: 9px; }
.loading-state, .muted-copy { padding: 30px 0; color: var(--muted); }
.empty-state { min-height: 150px; padding: 30px; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; text-align: center; }
.empty-state strong { color: var(--ink); font-size: 17px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 1240px) {
  .app-header { grid-template-columns: auto 1fr auto; gap: 16px; }
  .brand span { display: none; }
  .nav-item { padding: 0 10px; }
  .run-state div { display: none; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .evidence-metric-grid { grid-template-columns: 1fr 1fr; }
  .watch-update-grid { grid-template-columns: 1fr 1fr; }
  .insights-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .app-header { position: static; padding: 13px 16px; grid-template-columns: 1fr auto; }
  .primary-nav { grid-column: 1 / -1; width: 100%; overflow-x: auto; justify-content: flex-start; }
  .nav-item { flex: 0 0 auto; }
  main { padding: 30px 16px 52px; }
  .page-heading h1 { font-size: 36px; }
  .page-heading p:not(.eyebrow) { font-size: 16px; }
  .panel-heading { flex-direction: column; }
  .target-market-panel .panel-heading { align-items: flex-start; }
  .insight-callout { width: 100%; min-width: 0; }
  .compact-controls, .compact-controls label, .compact-controls input, .compact-controls select { width: 100%; }
  .change-card { grid-template-columns: 96px 1fr; }
  .change-card .listing-media, .change-placeholder { width: 96px; height: 74px; }
  .change-card__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; }
  .history-grid { grid-template-columns: 1fr; }
  .history-metrics { grid-template-columns: 1fr 1fr; }
  .sale-outcome-grid { grid-template-columns: 1fr 1fr; }
  .decision-workspace { grid-template-columns: 1fr; }
  .comparable-heading { align-items: stretch; flex-direction: column; }
  .comparable-range { width: 100%; text-align: left; }
  .activity-row { grid-template-columns: 90px 1fr 30px; }
  .activity-row small { grid-column: 2 / -1; }
}

@media (max-width: 560px) {
  .metric-grid, .evidence-metric-grid, .watch-update-grid, .review-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 140px; }
  .change-card { grid-template-columns: 1fr; }
  .change-card .listing-media, .change-placeholder { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .history-summary { grid-template-columns: 1fr; }
  .history-summary .listing-media { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .history-metrics { grid-template-columns: 1fr; }
  .sale-outcome-heading, .sale-outcome-footer { align-items: flex-start; flex-direction: column; }
  .sale-outcome-grid { grid-template-columns: 1fr; }
  .buyer-brief-heading { align-items: flex-start; flex-direction: column; }
  .notes-actions { align-items: stretch; flex-direction: column; }
  .notes-actions .primary-button { width: 100%; }
  .filter-field, .filter-field--search { min-width: calc(50% - 5px); flex: 1 1 calc(50% - 5px); }
  .table-toolbar__actions { width: 100%; margin-left: 0; justify-content: space-between; }
  .result-count { width: auto; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
