:root {
  color-scheme: light;
  --ink: #182d27;
  --muted: #495f56;
  --green: #17634d;
  --green-dark: #124d3d;
  --line: #d9e5dd;
  --surface: #fff;
  --wash: #f4f7f3;
  --tint: #eaf4ed;
  --focus: #207b5d;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--wash); color: var(--ink); font: 16px/1.5 "Segoe UI", system-ui, sans-serif; }
a { color: var(--green); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .62; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 1.45rem; line-height: 1.2; }
h3 { font-size: 1.12rem; line-height: 1.3; }
label { display: grid; gap: .35rem; font-size: .92rem; font-weight: 600; min-width: 0; }
input:not([type=checkbox]):not([type=range]), select {
  min-height: 44px; max-width: 100%; width: 100%; padding: .45rem .65rem;
  border: 1px solid #bdcec2; border-radius: .55rem; background: white; color: var(--ink);
}
input[type=checkbox], input[type=range] { accent-color: var(--green); }
input[type=range] { width: 100%; margin: .65rem 0; }
.check-filter { display: flex; gap: .5rem; align-items: center; font-weight: 500; }
.check-filter input { width: 1.1rem; height: 1.1rem; flex-shrink: 0; margin: 0; }
.muted, .status, .disclaimer { color: var(--muted); font-size: .92rem; }
.status:empty, .account-status:empty { display: none; }
.status { margin-top: .6rem; }
.skip-link { position: absolute; top: -5rem; left: .75rem; z-index: 3; padding: .6rem; background: white; }
.skip-link:focus { top: .75rem; }
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-inner, .page { width: min(1100px, calc(100% - 2rem)); margin-inline: auto; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .8rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-size: 1.28rem; font-weight: 750; }
.brand-mark { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; border-radius: .65rem; background: var(--green); color: white; font-size: 1.25rem; }
.account-buttons, .button-row { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.account-buttons { justify-content: flex-end; }
.account-status { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid transparent; border-radius: .6rem; padding: .5rem .8rem; font-size: .9rem; font-weight: 700; text-align: center; }
.primary { background: var(--green); color: white; }
.primary:hover:not(:disabled) { background: var(--green-dark); }
.secondary { background: white; border-color: #aec6b7; color: var(--green-dark); }
.secondary:hover:not(:disabled), .secondary[aria-pressed=true] { background: var(--tint); }
.quiet { background: transparent; color: var(--green-dark); }
.quiet:hover:not(:disabled) { background: var(--tint); }
.page { padding-bottom: 3rem; }
.hero { padding: 2rem 0 1.35rem; }
.eyebrow { color: var(--green); font-size: .75rem; font-weight: 750; letter-spacing: .12em; margin-bottom: .35rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; letter-spacing: -.035em; }
.intro { color: var(--muted); font-size: 1.08rem; margin-top: .6rem; }
.guest-note { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding: .75rem .9rem; border: 1px solid #cddfd2; border-radius: .75rem; background: var(--tint); }
.guest-note p { color: var(--muted); font-size: .92rem; }
.guest-note .button { flex-shrink: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: .9rem; }
.search-panel { padding: clamp(.85rem, 2.5vw, 1.4rem); }
.section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1rem; }
.section-head .muted { margin-top: .18rem; }
.filters, .detail-grid { display: grid; gap: .9rem; align-items: start; }
.filters { grid-template-columns: 1fr 1fr 1.25fr; margin: .95rem 0 .65rem; }
.detail-grid { grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); }
.budget-filter > label:first-child { display: flex; justify-content: space-between; }
#budgetValue { color: var(--green-dark); font-variant-numeric: tabular-nums; }
.disclosure, .location-actions { border-top: 1px solid var(--line); margin-top: .75rem; padding-top: .65rem; }
summary { cursor: pointer; font-weight: 700; color: var(--green-dark); padding: .35rem 0; }
.disclosure .detail-grid, .disclosure .muted { margin-top: .65rem; }
.location-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.results { margin-top: 1.55rem; }
.results-actions { display: flex; flex-wrap: wrap; align-items: end; gap: .6rem; }
.results-actions label { font-size: .8rem; }
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: .6rem; margin: .75rem 0; }
.stats article { display: flex; flex-wrap: wrap; align-items: baseline; gap: .12rem .55rem; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--surface); }
.stats b { font-size: 1.18rem; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: .83rem; }
.listing-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; }
.listing { display: flex; flex-direction: column; min-width: 0; padding: .85rem; background: var(--surface); border: 1px solid var(--line); border-radius: .85rem; overflow-wrap: anywhere; }
.listing-top { display: flex; align-items: center; justify-content: space-between; gap: .45rem; margin-bottom: .5rem; }
.source-badge { border-radius: 2rem; padding: .2rem .5rem; color: var(--green-dark); background: var(--tint); font-size: .76rem; font-weight: 650; }
.source-badge.sample { background: #f4efe4; color: #644a1f; }
.favorite { min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: .55rem; background: white; color: var(--green-dark); font-size: 1.35rem; }
.favorite[aria-pressed=true] { background: var(--tint); border-color: #9fbca9; }
.location { color: var(--muted); font-size: .88rem; margin-top: .22rem; }
.monthly { margin-top: .7rem; font-size: 1.65rem; font-weight: 750; line-height: 1.1; color: var(--green-dark); }
.monthly span { font-size: .84rem; font-weight: 600; }
.facts { display: flex; flex-wrap: wrap; gap: .25rem .6rem; margin: .6rem 0; color: var(--muted); font-size: .85rem; }
.source-link { align-self: start; margin-top: auto; padding-top: .4rem; font-size: .88rem; font-weight: 650; }
.empty { padding: 1.2rem; color: var(--muted); }
.disclaimer { margin-top: .8rem; }
.tools-section { margin-top: 1.8rem; display: grid; gap: .55rem; }
.tool-panel { padding: .45rem .85rem; }
.tool-content { padding: .45rem 0 .65rem; display: grid; gap: .7rem; }
.tool-content form, .tool-group { display: flex; flex-wrap: wrap; align-items: end; gap: .6rem; }
.tool-content form label, .tool-group > label { flex: 1 1 145px; }
.tool-content #watchForm { display: grid; align-items: start; }
.csv-label { max-width: 340px; }
footer { padding: 1rem; text-align: center; color: var(--muted); border-top: 1px solid var(--line); font-size: .9rem; }
@media (max-width: 780px) { .listing-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 550px) {
  .topbar-inner, .page { width: calc(100% - 1.25rem); }
  .topbar-inner { flex-wrap: wrap; }
  .account-buttons { justify-content: flex-start; }
  .hero { padding-top: 1.25rem; }
  .guest-note { align-items: start; flex-direction: column; gap: .55rem; }
  .filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .budget-filter { grid-column: 1/-1; }
  .listing-grid { grid-template-columns: 1fr; }
  .stats article { display: grid; align-content: start; padding: .45rem; }
  .stats span { font-size: .75rem; }
}
