:root {
  color-scheme: light;
  --ink: #143334;
  --ink-soft: #2d5150;
  --muted: #617777;
  --paper: #fffdfa;
  --canvas: #f4f3ee;
  --line: #d8ded8;
  --accent: #087b61;
  --accent-dark: #05634d;
  --accent-pale: #dff4eb;
  --sand: #f6ecdc;
  --warn: #995b16;
  --danger: #b42318;
  --shadow: 0 10px 28px rgba(20, 51, 52, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-header { position: sticky; z-index: 5; top: 0; display: flex; align-items: center; justify-content: space-between; padding: max(15px, env(safe-area-inset-top)) 20px 15px; color: white; background: linear-gradient(128deg, #153b3b, #0b6d59); box-shadow: 0 3px 16px rgba(20, 51, 52, .18); }
.app-header h1 { margin: 3px 0 0; font-size: 1.2rem; letter-spacing: -.025em; }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .68rem; font-weight: 750; letter-spacing: .105em; text-transform: uppercase; }
.eyebrow { color: #d7ebe4; }
.section-kicker { color: var(--accent-dark); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #9ce8c8; box-shadow: 0 0 0 3px rgba(156, 232, 200, .18); }
.icon-button { display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; width: 42px; height: 42px; color: white; background: rgba(255,255,255,.1); transition: background .16s ease, transform .16s ease; }
.icon-button:hover { background: rgba(255,255,255,.18); transform: rotate(20deg); }
main { width: min(760px, 100%); margin: 0 auto; padding: 20px 14px calc(104px + env(safe-area-inset-bottom)); }
.panel, .card, .welcome-panel, .empty-state { border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); }
.panel { padding: 18px; }
.card { margin-bottom: 13px; padding: 16px; }
.listing-card { overflow: hidden; border-color: #dde2dc; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin: 2px 2px 16px; }
.section-head h2, .panel h2, .empty-state h2, .welcome-panel h2 { margin: 3px 0 0; font-size: 1.26rem; letter-spacing: -.035em; }
.feed-heading { display: grid; gap: 14px; }
.muted { color: var(--muted); line-height: 1.5; }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); }
.empty-state { display: grid; justify-items: center; gap: 10px; padding: 34px 24px 28px; text-align: center; }
.empty-state p { max-width: 290px; margin: 0; color: var(--muted); line-height: 1.5; }
.radar-mark { position: relative; width: 66px; height: 66px; overflow: hidden; border-radius: 50%; background: #e0f3eb; }
.radar-mark::before, .radar-mark::after, .radar-mark span, .radar-mark i, .radar-mark b { position: absolute; display: block; border: 1px solid #7dcbb1; border-radius: 50%; content: ''; }
.radar-mark::before { inset: 9px; }.radar-mark::after { inset: 20px; }.radar-mark span { width: 7px; height: 7px; top: 14px; right: 16px; border: 0; background: var(--accent); box-shadow: 0 0 0 5px rgba(8,123,97,.12); }.radar-mark i { width: 1px; height: 55px; top: 5px; left: 32px; border: 0; border-radius: 0; background: #7dcbb1; transform: rotate(45deg); }.radar-mark b { inset: 31px; border: 0; background: var(--accent); }
.stack { display: grid; gap: 13px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .82rem; font-weight: 750; color: var(--ink-soft); }
input, select, textarea { width: 100%; border: 1px solid #bfcfc7; border-radius: 12px; padding: 11px 12px; color: var(--ink); background: #fff; }
textarea { min-height: 105px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 3px solid rgba(44, 182, 125, .28); outline-offset: 2px; }
.button, .secondary, .danger { border: 0; border-radius: 12px; padding: 11px 15px; font-weight: 780; transition: transform .15s ease, filter .15s ease; }
.button:hover, .secondary:hover, .danger:hover { filter: brightness(.97); transform: translateY(-1px); }
.button { color: white; background: var(--accent); box-shadow: 0 5px 11px rgba(8, 123, 97, .19); }
.button:hover { background: var(--accent-dark); }
.secondary { color: var(--ink); background: #e7eeea; }
.danger { color: white; background: var(--danger); }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #c9d6cf; border-radius: 999px; padding: 8px 10px; color: var(--ink-soft); background: #fffefa; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.filter-chip:has(input:checked) { border-color: #8acbb5; color: var(--accent-dark); background: var(--accent-pale); }
.filter-chip input { width: 14px; height: 14px; accent-color: var(--accent); }
.filter-select { width: auto; min-height: 35px; border-radius: 999px; padding: 7px 29px 7px 11px; color: var(--ink-soft); background-color: #fffefa; font-size: .76rem; font-weight: 700; }
.clear-filters { border: 0; padding: 7px 3px; color: var(--accent-dark); background: transparent; font-size: .78rem; font-weight: 780; text-decoration: underline; text-underline-offset: 3px; }
.bottom-nav { position: fixed; z-index: 8; right: 0; bottom: 0; left: 0; grid-template-columns: repeat(4, 1fr); padding: 8px 8px max(8px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(194, 207, 199, .85); background: rgba(255, 253, 250, .94); backdrop-filter: blur(16px); }
.bottom-nav:not([hidden]) { display: grid; }
.bottom-nav button { position: relative; display: grid; justify-items: center; gap: 3px; border: 0; padding: 6px 2px; color: var(--muted); background: transparent; font-size: .69rem; font-weight: 650; }
.bottom-nav svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bottom-nav button[aria-current="page"] { color: var(--accent-dark); font-weight: 850; }
.bottom-nav button[aria-current="page"] svg { stroke-width: 2.35; }
.badge { position: absolute; top: 1px; left: calc(50% + 9px); min-width: 18px; border-radius: 999px; padding: 2px 5px; color: white; background: var(--danger); font-size: .62rem; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.price { margin: 0; font-size: 1.48rem; font-weight: 850; letter-spacing: -.045em; }
.address { margin: 5px 0 0; font-weight: 740; line-height: 1.35; }
.meta, .tags, .status-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.meta-item { color: var(--muted); font-size: .78rem; }
.meta-item + .meta-item::before { margin-right: 6px; color: #9caea4; content: '•'; }
.tag, .status-pill { border-radius: 999px; padding: 4px 8px; font-size: .72rem; font-weight: 720; }
.tag { color: #3e5954; background: #edf2ee; }
.area-tag { flex: 0 0 auto; color: #16634f; background: #e1f3ea; }
.tag.nearby { color: #845011; background: #fff0d2; }.tag.extended { color: #643b8a; background: #eee4f9; }
.status-row { margin-top: 12px; }.status-pill { color: #4d625c; background: #edf1ee; }.status-pill.saved { color: #15654f; background: #ddf4e9; }.status-pill.contacted { color: #76531b; background: #f9edcf; }.status-pill.rejected, .status-pill.expired { color: #983830; background: #fce5e2; }.status-pill.stale { color: #6f5b27; background: #f4ecd0; }
.signal-tags { padding-top: 10px; border-top: 1px solid #edf0ed; }.signal-tags .tag { color: #4c3a1c; background: var(--sand); }
.sources { margin: 13px 0 0; padding: 0; list-style: none; font-size: .82rem; }
.source-links li + li { margin-top: 5px; }.sources a { color: var(--accent-dark); font-weight: 700; overflow-wrap: anywhere; text-decoration-thickness: 1px; text-underline-offset: 2px; }.sources a::after { margin-left: 4px; content: '↗'; }
.listing-actions { margin-top: 15px; border-top: 1px solid #e8ece8; padding-top: 12px; }.listing-actions summary { color: var(--accent-dark); cursor: pointer; font-size: .83rem; font-weight: 780; }.listing-actions[open] summary { margin-bottom: 12px; }.action-content { padding-top: 2px; }
.review-evidence { margin-top: 10px; border-left: 3px solid #b3cfc3; border-radius: 0 8px 8px 0; padding: 9px 10px; color: var(--ink-soft); background: #f5f8f5; white-space: pre-wrap; font-size: .81rem; }
.split { display: grid; gap: 10px; }.split > section { border: 1px solid var(--line); border-radius: 13px; padding: 12px; }
.welcome-panel { position: relative; overflow: hidden; display: grid; gap: 15px; min-height: 300px; padding: 27px 24px; background: linear-gradient(145deg, #fffefa, #edf5ef); }.welcome-panel > :not(.welcome-orb) { position: relative; z-index: 1; }.welcome-panel h2 { max-width: 260px; font-size: 1.7rem; line-height: 1.06; }.welcome-panel .button { width: 100%; margin-top: 2px; }.welcome-orb { position: absolute; width: 210px; height: 210px; right: -84px; top: -80px; border: 1px solid #b4ddc9; border-radius: 50%; box-shadow: inset 0 0 0 26px rgba(193, 232, 211, .34), inset 0 0 0 54px rgba(193, 232, 211, .25); }.privacy-note { margin: 0; color: var(--muted); font-size: .76rem; }
.toast { position: fixed; z-index: 20; right: 16px; bottom: calc(88px + env(safe-area-inset-bottom)); left: 16px; max-width: 560px; margin: auto; border-radius: 12px; padding: 12px 14px; color: white; background: #263f3e; box-shadow: 0 8px 30px rgba(20,51,52,.3); }.toast.error { color: #7a271a; background: #fff1f0; }
dialog { width: min(520px, calc(100% - 28px)); border: 0; border-radius: 20px; padding: 0; background: transparent; box-shadow: 0 24px 60px rgba(20,51,52,.4); }dialog::backdrop { background: rgba(20,51,52,.6); }dialog .panel { border: 0; }
@media (min-width: 620px) { .split { grid-template-columns: 1fr 1fr; } main { padding-top: 26px; } .feed-heading { grid-template-columns: 1fr auto; align-items: end; } .welcome-panel .button { width: fit-content; padding-inline: 24px; } }
