






















:root {
  

  --bg: #fbfaf8;
  --surface: #ffffff;
  --surface-sunk: #f4f2ee;
  --line: #e6e3dc;
  --line-strong: #d2cec4;

  
  --ink: #18211d;
  




  --ink-1: #2c3733;
  --ink-2: #5a6560;
  --ink-3: #8b9490;

  
  --accent: #0f6b5a;
  --accent-ink: #ffffff;
  --accent-soft: #e6f1ee;
  --accent-line: #b9d6ce;

  

  --good: #1c7a52;
  --ok: #5a8a2b;
  --moderate: #a37400;
  --poor: #c2570f;
  --bad: #b3271f;
  --severe: #7d1e56;

  

  --grade-a: #1c7a52;
  --grade-b: #5a8a2b;
  --grade-c: #a37400;
  --grade-d: #8b9490;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --shadow: 0 1px 2px rgba(24, 33, 29, .05), 0 4px 16px -6px rgba(24, 33, 29, .10);
  --shadow-lift: 0 2px 4px rgba(24, 33, 29, .06), 0 12px 32px -10px rgba(24, 33, 29, .18);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-num: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  

  --gap: 16px;
  --pad: 20px;
  --tap: 48px;          
}




@media (max-height: 620px) {
  :root { --gap: 10px; --pad: 14px; --radius-lg: 16px; }
}

*, *::before, *::after { box-sizing: border-box; }




[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;   
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;                  
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;               
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
.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;
}
.skip-link {
  position: absolute; left: 50%; transform: translate(-50%, -120%);
  top: 8px; z-index: 100; background: var(--ink); color: #fff;
  padding: 10px 18px; border-radius: 999px; text-decoration: none;
  transition: transform .15s;
}
.skip-link:focus { transform: translate(-50%, 0); }







.app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: max(10px, env(safe-area-inset-top)) var(--pad) 10px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 650; letter-spacing: -.01em; font-size: 1.0625rem;
}
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px; flex: 0 0 auto;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
}



.topbar-end { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.icon-btn {
  width: var(--tap); height: var(--tap); min-width: var(--tap);
  border-radius: 999px; display: grid; place-items: center;
  color: var(--ink-2);
}

.icon-btn[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
@media (hover: hover) {
  .icon-btn:hover { background: var(--surface-sunk); color: var(--ink); }
}
.icon-btn:active { background: var(--line); }
.icon-btn svg { width: 22px; height: 22px; }


.progress { flex: 1; display: flex; align-items: center; gap: 10px; }
.progress-track {
  flex: 1; height: 4px; border-radius: 999px; background: var(--line);
  overflow: hidden;
}
.progress-fill {
  height: 100%; background: var(--accent); border-radius: 999px;
  transition: width .35s cubic-bezier(.4, 0, .2, 1);
}
.progress-label {
  font-size: .8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums;
  white-space: nowrap;
}







.viewport { flex: 1; display: flex; flex-direction: column; }
.screen {
  flex: 1;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  


  padding: clamp(12px, 4vh, 40px) var(--pad) calc(72px + env(safe-area-inset-bottom));
  display: none;
  flex-direction: column;
}
.screen.is-active { display: flex; animation: screen-in .28s cubic-bezier(.2, .7, .3, 1); }
@keyframes screen-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.screen--wide { max-width: 780px; }
.q-head { margin-bottom: calc(var(--gap) * 1.5); }
.q-kicker {
  font-size: .8125rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 8px;
}
.q-title {
  

  font-size: clamp(1.5rem, 1.25rem + 2.2vw, 2.125rem);
  line-height: 1.2; letter-spacing: -.022em; font-weight: 680;
  margin: 0 0 8px;
  text-wrap: balance;
}
.q-hint { margin: 0; color: var(--ink-2); font-size: .9375rem; }

.options { display: grid; gap: 10px; }


@container (min-width: 520px) {
  .options--pair { grid-template-columns: 1fr 1fr; }
}
.screen { container-type: inline-size; }
.option {
  display: flex; align-items: flex-start; gap: 14px;
  width: 100%; min-height: var(--tap);
  padding: 14px 16px;
  text-align: left;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .15s, background .15s, transform .1s;
}
@media (hover: hover) {
  .option:hover { border-color: var(--line-strong); }
}
.option:active { transform: scale(.99); }
.option[aria-pressed="true"], .option.is-picked {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.option-box {
  flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px;
  border: 1.5px solid var(--line-strong); background: var(--surface);
  display: grid; place-items: center;
  color: transparent;
}
.option-box--multi { border-radius: 6px; }
.option-box--single { border-radius: 999px; }
.option[aria-pressed="true"] .option-box,
.option.is-picked .option-box {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.option-box svg { width: 14px; height: 14px; }



.option-text { min-width: 0; }
.option-label { display: block; font-weight: 590; letter-spacing: -.006em; }
.option-sub { display: block; font-size: .875rem; color: var(--ink-2); margin-top: 2px; }


.option-rank {
  margin-left: auto; flex: 0 0 auto;
  font-size: .75rem; font-weight: 650; color: var(--accent);
  background: var(--surface); border: 1px solid var(--accent-line);
  border-radius: 999px; padding: 2px 9px;
}



.search-wrap { position: relative; }
.search-field {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  min-height: 56px;
  transition: border-color .15s, box-shadow .15s;
}
.search-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.search-field svg { width: 20px; height: 20px; color: var(--ink-3); flex: 0 0 auto; }
.search-field input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none;
  padding: 16px 0; font-size: 1rem;
}
.search-field input::placeholder { color: var(--ink-3); }
.results-pop {
  margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  max-height: min(52vh, 380px); overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.results-pop:empty, .results-pop[hidden] { display: none; }
.result-row {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 12px 14px; text-align: left;
  border-bottom: 1px solid var(--line);
}
.result-row:last-child { border-bottom: 0; }
@media (hover: hover) { .result-row:hover { background: var(--surface-sunk); } }
.result-row:active { background: var(--accent-soft); }
.result-pin {
  font-family: var(--font-num); font-size: .8125rem; color: var(--ink-2);
  background: var(--surface-sunk); border-radius: 6px; padding: 3px 7px; flex: 0 0 auto;
}
.result-main { min-width: 0; flex: 1; }
.result-name {
  display: block; font-weight: 560;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.result-where {
  display: block; font-size: .8125rem; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}




.budget-display { text-align: center; margin: calc(var(--gap) * 1.5) 0; }
.budget-amount {
  font-size: clamp(2.25rem, 1.5rem + 6vw, 3.25rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.budget-unit { color: var(--ink-2); font-size: .9375rem; margin-top: 6px; }



.slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 44px; background: none; margin: 0;
}
.slider::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px; background: var(--line);
}
.slider::-moz-range-track { height: 6px; border-radius: 999px; background: var(--line); }
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 30px; height: 30px; margin-top: -12px;
  border-radius: 999px; background: var(--accent);
  border: 3px solid #fff; box-shadow: var(--shadow);
}
.slider::-moz-range-thumb {
  width: 30px; height: 30px; border-radius: 999px; background: var(--accent);
  border: 3px solid #fff; box-shadow: var(--shadow);
}
.slider-ends {
  display: flex; justify-content: space-between;
  font-size: .8125rem; color: var(--ink-3); margin-top: -4px;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--gap); }
.chip {
  padding: 9px 14px; min-height: 40px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--surface); font-size: .875rem; font-weight: 550;
}
.chip.is-picked { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }









.saved {
  margin-top: calc(var(--gap) * 1.5);
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface-sunk);
}
.saved[hidden] { display: none; }
.saved-head {
  display: flex; align-items: center; gap: 7px;
  margin: 0 0 8px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .01em;
  color: var(--accent);
}

.saved-tick { width: 1.05em; height: 1.05em; flex: 0 0 auto; }
.saved-line { margin: 0; font-size: .9375rem; line-height: 1.45; color: var(--ink-1); }
.saved-line--soft { margin-top: 4px; color: var(--ink-2); font-size: .875rem; }
.saved-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }


.saved-actions .chip { background: var(--surface); }







.actionbar {
  position: sticky; bottom: 0; z-index: 20;
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 62%, transparent);
}
.actionbar-inner {
  max-width: 620px; margin: 0 auto;
  display: flex; gap: 10px; align-items: center;
}
.screen--wide ~ .actionbar .actionbar-inner { max-width: 780px; }

.btn {
  flex: 1; min-height: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 22px; border-radius: 999px;
  font-size: 1rem; font-weight: 620; letter-spacing: -.005em;
  transition: transform .1s, opacity .15s, background .15s;
}
.btn:active { transform: scale(.985); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary[disabled] { background: var(--line-strong); color: #fff; opacity: .75; cursor: not-allowed; }
.btn--ghost { flex: 0 0 auto; background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); }
.btn svg { width: 19px; height: 19px; }
.btn-note {
  text-align: center; font-size: .8125rem; color: var(--ink-2);
  margin: 8px auto 0; max-width: 620px;
}


.btn-note:empty { display: none; }
























.sortbar {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 var(--gap);
}
.sortbar-l { font-size: .875rem; color: var(--ink-2); flex: 0 0 auto; }
.sortbar-s {
  flex: 0 1 auto; min-height: 40px; max-width: 100%;
  padding: 6px 10px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
  font-size: .875rem; font-weight: 600;
}
.sortbar-s:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.limits { margin: 0 0 var(--gap); }

.lim-toggle {
  width: 100%; min-height: var(--tap);
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  font-size: .9375rem; font-weight: 600;
  transition: border-color .15s;
}
@media (hover: hover) { .lim-toggle:hover { border-color: var(--line-strong); } }
.lim-toggle-t { flex: 1 1 auto; text-align: left; }
.lim-toggle-n {
  flex: 0 0 auto;
  padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: .8125rem; font-weight: 620;
}
.lim-ico { width: 19px; height: 19px; flex: 0 0 auto; color: var(--ink-2); }
.lim-caret {
  width: 17px; height: 17px; flex: 0 0 auto; color: var(--ink-3);
  transform: rotate(90deg); transition: transform .15s;
}
.lim-toggle[aria-expanded="true"] .lim-caret { transform: rotate(-90deg); }
.lim-toggle[aria-expanded="true"] { border-color: var(--accent-line); }



.lim-chips { margin-top: 10px; }
.chip--lim {
  display: inline-flex; align-items: center; gap: 7px;
  border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent);
}
.chip-x { font-size: 1.1rem; line-height: 1; opacity: .75; }

.lim-body {
  margin-top: 10px; padding: 4px 14px 14px;
  border-radius: var(--radius);
  background: var(--surface-sunk);
}
.lim-lead {
  margin: 12px 0 0;
  font-size: .875rem; font-weight: 600; color: var(--ink-1);
  font-variant-numeric: tabular-nums;
}





.lim-group { border-top: 1px solid var(--line); }
.lim-group:first-of-type { border-top: 0; }
.lim-group-t {
  width: 100%; min-height: var(--tap);
  



  scroll-margin-top: 76px;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0;
  text-align: left;
}
.lim-group-name {
  flex: 1 1 auto;
  font-size: .9375rem; font-weight: 620; color: var(--ink);
}
.lim-group-sum {
  flex: 0 0 auto;
  font-size: .8125rem; font-weight: 600; color: var(--ink-3);
}
.lim-group.is-open .lim-group-sum { color: var(--accent); }
.lim-group-t .lim-caret { transform: rotate(90deg); }
.lim-group-t[aria-expanded="true"] .lim-caret { transform: rotate(-90deg); }

.lim-group.is-open .lim-row:last-child { padding-bottom: 16px; }

.lim-row { padding: 12px 0 14px; scroll-margin-top: 76px; }
.lim-row + .lim-row { border-top: 1px dashed var(--line); }


.lim-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.lim-label {
  flex: 1 1 auto; font-size: .9375rem; font-weight: 550; line-height: 1.35;
}
.lim-band {
  flex: 0 0 auto; text-align: right;
  font-size: .875rem; font-weight: 650; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.lim-band--off { color: var(--ink-3); font-weight: 550; }



.lim-any {
  flex: 0 0 auto; min-height: 28px; padding: 3px 10px;
  border: 1.5px solid var(--line-strong); border-radius: 999px;
  background: var(--surface);
  font-size: .75rem; font-weight: 620; color: var(--ink-2);
}
@media (hover: hover) { .lim-any:hover { border-color: var(--ink-3); color: var(--ink); } }
.lim-row--off .lim-label { color: var(--ink-2); }
.lim-note {
  margin: 4px 0 0; font-size: .8125rem; line-height: 1.45; color: var(--ink-2);
}
.lim-note b { color: var(--ink); font-weight: 620; }




.lim-nums {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: -4px;
}
.lim-nums-to { font-size: .8125rem; color: var(--ink-3); }
.lim-num {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0 8px; min-height: 38px;
  transition: border-color .15s, box-shadow .15s;
}
.lim-num:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lim-num-in {
  width: 5.5ch; min-width: 0; border: 0; outline: 0; background: none;
  padding: 8px 0;
  

  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.lim-num--rs .lim-num-in { width: 7.5ch; }
.lim-num-in::placeholder { color: var(--ink-3); }
.lim-num-pre, .lim-num-unit {
  font-size: .8125rem; color: var(--ink-3); flex: 0 0 auto;
}
.lim-num-pre { margin-right: 1px; }
.lim-num-unit { margin-left: 3px; }
.lim-err {
  font-size: .8125rem; font-weight: 600; color: var(--bad);
  flex: 1 1 100%;
}
.lim-err:empty { display: none; }
.lim-foot { margin-top: 18px; }




.screen.has-bar { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }




.rng { position: relative; height: 40px; margin-top: 2px; --thumb: 26px; }
.rng-track {
  position: absolute; left: 0; right: 0; top: 17px; height: 6px;
  border-radius: 999px; background: var(--line-strong);
}




.rng-fill {
  position: absolute; top: 0; bottom: 0;
  border-radius: 999px; background: var(--accent);
}
.rng-in {
  position: absolute; left: 0; top: 0; width: 100%; height: 40px; margin: 0;
  -webkit-appearance: none; appearance: none;
  background: none;
  
  pointer-events: none;
}
.rng-in::-webkit-slider-runnable-track { height: 6px; background: none; border: 0; }
.rng-in::-moz-range-track { height: 6px; background: none; border: 0; }
.rng-in::-moz-range-progress { background: none; }
.rng-in::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  pointer-events: auto;
  width: 26px; height: 26px; margin-top: -10px;
  border-radius: 999px; background: var(--accent);
  border: 3px solid #fff; box-shadow: var(--shadow);
  cursor: grab;
}
.rng-in::-moz-range-thumb {
  pointer-events: auto;
  width: 26px; height: 26px;
  border-radius: 999px; background: var(--accent);
  border: 3px solid #fff; box-shadow: var(--shadow);
  cursor: grab;
}



.rng-lo::-webkit-slider-thumb { background: var(--ink); }
.rng-lo::-moz-range-thumb { background: var(--ink); }
.rng-lo { z-index: 2; }
.rng-hi { z-index: 3; }
.rng.is-lo-top .rng-lo { z-index: 4; }


.rng-in:focus { outline: none; }
.rng-in:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent);
}
.rng-in:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent);
}


.lim-miss {
  display: flex; align-items: flex-start; gap: 9px;
  width: 100%; margin-top: 8px; padding: 8px 10px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface);
  text-align: left; font-size: .8125rem; line-height: 1.4; color: var(--ink-2);
}
.lim-miss.is-on { border-color: var(--accent-line); color: var(--ink-1); }
.lim-miss-box {
  flex: 0 0 auto;
  width: 19px; height: 19px; margin-top: 1px;
  border: 1.5px solid var(--line-strong); border-radius: 5px;
  background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center;
}
.lim-miss-box svg { width: 13px; height: 13px; opacity: 0; color: var(--accent-ink); }
.lim-miss.is-on .lim-miss-box { background: var(--accent); border-color: var(--accent); }
.lim-miss.is-on .lim-miss-box svg { opacity: 1; }



.lim-stops { margin-top: 10px; gap: 6px; }
.chip--stop {
  min-height: 36px; padding: 6px 11px;
  font-size: .8125rem; font-variant-numeric: tabular-nums;
}
.chip--stop.is-picked { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }


.chip-n {
  margin-left: 7px; padding-left: 7px;
  border-left: 1px solid var(--line-strong);
  font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 550;
}
.chip--all { border-style: dashed; }



.search-wrap--lim { margin-top: 10px; }
.search-field--sm { min-height: 46px; }
.search-field--sm input { padding: 11px 0; font-size: 1rem; }
.search-field--sm svg { width: 18px; height: 18px; }










.cmp-row {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  gap: 8px;
}
.cmp-head {
  position: sticky; top: 56px; z-index: 5;
  padding: 10px 0 12px;
  background: var(--bg);
  border-bottom: 1.5px solid var(--line);
}
.cmp-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; height: 100%; }
.cmp-place {
  



  font-size: .8125rem; font-weight: 700; line-height: 1.3;
  




  overflow-wrap: break-word;
  hyphens: auto;
}
.cmp-where { font-size: .75rem; color: var(--ink-3); overflow-wrap: break-word; }
.cmp-drop {
  

  margin-top: auto; padding-top: 4px; align-self: flex-start;
  font-size: .75rem; font-weight: 600; color: var(--ink-3);
  text-decoration: underline; text-underline-offset: 2px;
  min-height: 32px;
}
@media (hover: hover) { .cmp-drop:hover { color: var(--bad); } }

.cmp-body { margin-top: 4px; }
.cmp-metric { padding: 12px 0; border-bottom: 1px solid var(--line); }
.cmp-label {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-size: .8125rem; font-weight: 620; color: var(--ink-2);
  margin-bottom: 6px;
}
.cmp-metric.is-asked .cmp-label { color: var(--accent); }
.cmp-asked {
  font-size: .6875rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 2px 7px;
}
.cmp-cell {
  display: flex; align-items: baseline; gap: 5px;
  font-size: .9375rem; font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}


.cmp-cell.is-best { color: var(--good); }
.cmp-cell.is-none { color: var(--ink-3); font-weight: 500; }
.cmp-tick { font-size: .8125rem; }
.cmp-note {
  margin: 16px 0 0; font-size: .8125rem; line-height: 1.5; color: var(--ink-2);
}






.card-pin {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  min-height: 40px; padding: 0 13px 0 10px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--surface);
  color: var(--ink-2); font-size: .8125rem; font-weight: 620; line-height: 1;
  display: inline-flex; align-items: center; gap: 5px;
}
.card-pin-i { font-size: 1rem; font-weight: 700; }
.card-pin.is-on { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.card-pin[disabled] { opacity: .45; cursor: not-allowed; }
@media (hover: hover) { .card-pin:not([disabled]):hover { border-color: var(--accent); } }



.detail-pin { margin-top: 14px; }
.card-pin--lg {
  position: static; min-height: 46px; padding: 0 18px;
  font-size: .9375rem;
}




.cmp-name.is-out .cmp-place, .cmp-name.is-out .cmp-where { opacity: .6; }
.cmp-out {
  display: inline-block; margin-top: 3px;
  font-size: .6875rem; font-weight: 700; letter-spacing: .03em;
  color: var(--poor);
}




#s-compare.screen--wide {
  max-width: min(1360px, 96vw);
}

.cmp-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 20px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cmp-mode-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.cmp-mode-btn {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  border: 1.5px solid var(--line);
  background: var(--surface-sunk);
  color: var(--ink-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .15s ease;
}
.cmp-mode-btn:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}
.cmp-mode-btn.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}

.cmp-windows-container {
  margin-top: 14px;
}
.cmp-windows-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.cmp-windows-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -.016em;
  margin: 0;
  color: var(--ink);
}
.cmp-windows-sub {
  font-size: .8125rem;
  color: var(--ink-3);
  margin: 3px 0 0;
}

.cmp-windows {
  display: grid;
  grid-template-columns: repeat(var(--cmp-cols, 2), minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
@media (max-width: 767px) {
  .cmp-windows {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 14px;
    -webkit-overflow-scrolling: touch;
  }
}

.cmp-window {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(24, 33, 29, 0.05);
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  container-type: inline-size;
}
@media (max-width: 767px) {
  .cmp-window {
    min-width: 88vw;
    scroll-snap-align: start;
    flex-shrink: 0;
  }
}
.cmp-window.is-outside {
  border-color: color-mix(in srgb, var(--poor) 45%, var(--line));
}

.cmp-window-chrome {
  position: sticky;
  top: 56px;
  z-index: 6;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1.5px solid var(--line);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cmp-window-chrome-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.cmp-window-tag {
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 2px 7px;
  border-radius: 999px;
}
.cmp-window-pin {
  font-size: .8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.cmp-window-chrome-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.cmp-window-action-btn {
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-sunk);
  color: var(--ink-2);
  cursor: pointer;
  transition: all .15s ease;
}
.cmp-window-action-btn:hover {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.cmp-window-body {
  padding: 18px 18px 24px;
}
.cmp-window-body .detail-hero {
  margin-bottom: 16px;
}
.cmp-window-body .detail-name {
  font-size: clamp(1.25rem, 1.1rem + 1.2vw, 1.75rem);
  line-height: 1.2;
}
.cmp-window-body .compare-map-box {
  height: 140px;
  margin: 14px 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.cmp-window-body .compare-map-box .loading {
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.cmp-window-body .section {
  margin-top: 24px;
}
.cmp-window-body .section-title {
  font-size: .9375rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.cmp-window-body .stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@container (min-width: 360px) {
  .cmp-window-body .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
  }
}
.cmp-window-body .stat--open {
  grid-column: auto;
}
.cmp-window-body .stat--open[open] {
  grid-column: 1 / -1;
}

.cmp-table-container {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed var(--line-strong);
}
.cmp-table-heading-row {
  margin-bottom: 12px;
}
.cmp-table-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

#s-compare[data-active-mode="windows"] .cmp-table-container,
[data-active-mode="windows"] .cmp-table-container {
  display: none !important;
}
#s-compare[data-active-mode="table"] .cmp-windows-container,
[data-active-mode="table"] .cmp-windows-container {
  display: none !important;
}
#s-compare[data-active-mode="both"] .cmp-windows-container,
#s-compare[data-active-mode="both"] .cmp-table-container {
  display: block;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .cmp-windows {
    gap: 14px;
  }
  .cmp-window-body {
    padding: 14px 14px 20px;
  }
}




.result-count {
  font-size: .875rem; color: var(--ink-2); margin: 0 0 var(--gap);
}
.cards { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }





.more-wrap { margin-top: 18px; }
.more-btn {
  width: 100%; min-height: 54px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 10px 22px; border-radius: 999px;
  background: var(--surface); border: 1.5px solid var(--line); color: var(--ink);
  font-size: 1rem; font-weight: 620;
  transition: transform .1s, border-color .15s, background .15s;
}
@media (hover: hover) { .more-btn:hover { border-color: var(--line-strong); } }
.more-btn:active { transform: scale(.985); }
.more-left { font-size: .8125rem; font-weight: 500; color: var(--ink-2); }
.more-done {
  margin: 0; padding: 14px 0 2px;
  text-align: center; font-size: .875rem; color: var(--ink-2);
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--pad);
  box-shadow: var(--shadow);
  text-align: left; width: 100%;
  transition: box-shadow .18s, border-color .18s;
}
@media (hover: hover) { .card:hover { box-shadow: var(--shadow-lift); border-color: var(--line-strong); } }
.card:has(.card-hit:active) { border-color: var(--accent); }




.card-hit {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; border-radius: inherit;
}
.card-hit:focus-visible { outline-offset: -3px; }


.card-more { padding-right: 118px; }
.card-more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; font-size: .875rem; font-weight: 600; color: var(--accent);
}
.card-more svg { width: 16px; height: 16px; }



.card-top { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.card-rank {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; font-size: .875rem;
  font-variant-numeric: tabular-nums;
}





.card-ident { min-width: 10rem; flex: 1 1 10rem; }
.card-top > .grade { flex: 0 0 auto; }
.card-name {
  font-size: 1.125rem; font-weight: 640; letter-spacing: -.015em; margin: 0;
  line-height: 1.25;
}
.card-where { display: block; font-size: .875rem; color: var(--ink-2); margin-top: 2px; }
.card-catch { color: var(--ink-2); }



.card-why {
  margin: 14px 0 0; font-size: .9375rem; line-height: 1.55;
}
.card-why b { font-weight: 620; }















.facts {
  display: grid;
  



  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 6px;
  margin-top: 14px;
}



.fact.is-asked {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}
.fact.is-asked .fact-k { color: var(--accent); }
.fact {
  display: flex; align-items: baseline; justify-content: space-between; gap: 6px;
  background: var(--surface-sunk); border-radius: 8px;
  padding: 6px 10px; font-size: .8125rem;
  min-width: 0;
}


.fact-k { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fact-v { font-weight: 620; font-variant-numeric: tabular-nums; flex: 0 0 auto; }



.fact[data-k="dist"] { grid-column: 1 / -1; }

@media (max-width: 430px) {
  


  .facts { gap: 5px; grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); }
  .fact { font-size: .75rem; padding: 5px 7px; gap: 4px; }
}


.grade {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .75rem; font-weight: 640;
  padding: 3px 9px; border-radius: 999px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.grade-a { color: var(--grade-a); }
.grade-b { color: var(--grade-b); }
.grade-c { color: var(--grade-c); }
.grade-d { color: var(--grade-d); }
.grade-dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

.unknown {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--surface-sunk); border-radius: var(--radius);
  padding: 12px 14px; font-size: .875rem; color: var(--ink-2);
  margin-top: 14px;
}
.unknown svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 2px; color: var(--ink-3); }




.detail-hero { margin-bottom: var(--gap); }
.detail-name {
  font-size: clamp(1.5rem, 1.2rem + 2.4vw, 2rem);
  font-weight: 690; letter-spacing: -.024em; margin: 0; line-height: 1.15;
}
.detail-where { color: var(--ink-2); margin-top: 4px; }


.detail-also { color: var(--ink-3); font-size: .875rem; margin-top: 2px; }


.detail-grades { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }

.map-frame {
  height: clamp(200px, 34vh, 340px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-sunk);
  position: relative;
}
.map-frame canvas { outline: none; }
.map-credit {
  position: absolute; right: 6px; bottom: 4px; z-index: 2;
  font-size: 10px; color: var(--ink-2);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  padding: 2px 6px; border-radius: 6px;
}

.section { margin-top: calc(var(--gap) * 1.75); }
.section-title {
  font-size: 1.0625rem; font-weight: 640; letter-spacing: -.012em; margin: 0 0 10px;
}

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@container (min-width: 560px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px;
}
.stat-k { font-size: .8125rem; color: var(--ink-2); }
.stat-v {
  font-size: 1.375rem; font-weight: 680; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; margin-top: 2px;
}
.stat-note { font-size: .75rem; color: var(--ink-3); margin-top: 4px; }





.stat--open { padding: 0; grid-column: 1 / -1; }
.stat--open > .stat-sum {
  padding: 14px; cursor: pointer; list-style: none;
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: 10px; min-height: var(--tap);
}
.stat--open > .stat-sum::-webkit-details-marker { display: none; }
.stat-sum > .stat-k, .stat-sum > .stat-v, .stat-sum > .stat-note { grid-column: 1; }



.stat-more {
  grid-column: 2; grid-row: 1 / -1; color: var(--ink-3);
  transition: transform .18s ease; display: inline-flex;
}
.stat-more svg { width: 18px; height: 18px; }
.stat--open[open] .stat-more { transform: rotate(90deg); }
.stat--open:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.stat-body { padding: 0 14px 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.stat-line { font-size: .875rem; margin: 8px 0 0; color: var(--ink-1); }
.stat-caveat { font-size: .75rem; color: var(--ink-3); margin: 10px 0 0; line-height: 1.45; }





.cmp { margin-bottom: 14px; }
.cmp-verdict { font-size: .9375rem; margin: 0 0 10px; color: var(--ink-1); }
.cmp-verdict b { font-weight: 700; font-variant-numeric: tabular-nums; }
.cmp-basis { color: var(--ink-3); font-size: .8125rem; }


.stat--wide { margin-top: 12px; }
.cmp-strip {
  position: relative; height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, var(--good) 0%, #d9a02b 55%, var(--bad) 100%);
  opacity: .32;
}
.cmp-mark {
  position: absolute; top: -4px; width: 4px; height: 16px;
  border-radius: 2px; background: var(--ink);
  transform: translateX(-2px);
  

  box-shadow: 0 0 0 2px var(--surface);
}
.cmp-scale {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px; margin-top: 10px;
  font-size: .75rem; font-variant-numeric: tabular-nums; color: var(--ink-1);
}
.cmp-scale i {
  display: block; font-style: normal; font-size: .6875rem;
  color: var(--ink-3); margin-bottom: 1px;
}
.cmp-scale .cmp-c { text-align: center; }
.cmp-scale .cmp-r { text-align: right; }






.hrows { margin-top: 10px; }
.hrow { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hrow:first-child { padding-top: 2px; }
.hrow:last-child { border-bottom: 0; padding-bottom: 0; }
.hrow-top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
}
.hrow-label { font-size: .875rem; color: var(--ink-1); }
.hrow-val {
  font-size: 1rem; font-weight: 680; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hrow-cmp { font-size: .8125rem; color: var(--ink-2); margin: 3px 0 0; line-height: 1.45; }
.hrow-nat { color: var(--ink-3); white-space: nowrap; }
.hrow-ur { font-size: .75rem; color: var(--ink-3); margin: 5px 0 0; line-height: 1.5; }


.hrow-what { margin-top: 5px; }
.hrow-what > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center;
  gap: 5px; font-size: .75rem; color: var(--accent); padding: 6px 0;
  min-height: 32px;
}
.hrow-what > summary::-webkit-details-marker { display: none; }
.hrow-what > summary::after { content: '+'; font-weight: 700; }
.hrow-what[open] > summary::after { content: '–'; }
.hrow-what > p {
  font-size: .75rem; color: var(--ink-3); margin: 0 0 4px; line-height: 1.5;
}





.foodtab { display: grid; gap: 2px; margin-top: 10px; }
.foodrow {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 4px 10px; align-items: baseline;
  padding: 6px 0; border-bottom: 1px solid var(--line);
}
.foodrow:last-child { border-bottom: 0; }
.foodrow-k { font-size: .875rem; color: var(--ink-1); }
.foodrow-p {
  font-size: .875rem; font-weight: 660; font-variant-numeric: tabular-nums;
  text-align: right;
}
.foodrow-p.is-worse { color: var(--bad); }
.foodrow-p.is-better { color: var(--good); }
.foodrow-v {
  font-size: .75rem; color: var(--ink-2); text-align: right;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.foodrow-nat { color: var(--ink-3); }
@container (max-width: 22rem) {
  .foodrow { grid-template-columns: minmax(0, 1fr) auto; }
  .foodrow-v { grid-column: 1 / -1; text-align: left; }
}


.mbars { display: flex; gap: 4px; align-items: flex-end; height: 76px; }
.mbar {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end;
  align-items: center; height: 100%; gap: 3px;
}
.mbar-fill { width: 100%; border-radius: 3px 3px 0 0; min-height: 4px; }
.mbar-m { font-size: .625rem; color: var(--ink-3); line-height: 1; }





.gw-bands { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.gw-band {
  flex: 1 1 auto; min-width: 72px; padding: 6px 8px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface);
  font-size: .6875rem; font-weight: 600; color: var(--ink-2);
  display: flex; flex-direction: column; gap: 2px;
}
.gw-band em { font-style: normal; font-weight: 500; color: var(--ink-3); font-size: .625rem; }
.gw-band.is-on {
  border-color: var(--accent); background: var(--accent-soft); color: var(--accent);
}
.gw-band.is-on em { color: var(--accent); }









.lc-bar {
  display: flex; width: 100%; height: 30px; margin: 12px 0 4px;
  border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
}
.lc-seg {
  display: flex; align-items: center; justify-content: center;
  min-width: 0; overflow: hidden;
}
.lc-seg em {
  font-style: normal; font-size: .625rem; font-weight: 600;
  white-space: nowrap; padding: 0 4px; color: #1a1a1a;
}
.lc-tree  { background: #4a7c59; }
.lc-tree  em { color: #fff; }
.lc-grass { background: #a3c586; }
.lc-crop  { background: #e8d59a; }
.lc-built { background: #b0aeb0; }
.lc-water { background: #7fb2d9; }
.lc-bare  { background: #ddd4c4; }





.amen-list { display: grid; gap: 12px; }
.amen-band {
  padding: 12px 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.amen-band-t {
  font-size: .75rem; font-weight: 640; text-transform: uppercase;
  letter-spacing: .06em; color: var(--ink-2); margin: 0 0 8px;
}
.amen-band-list { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; }
.amen-item { font-size: .9375rem; white-space: nowrap; }
.amen-item b { font-variant-numeric: tabular-nums; font-weight: 680; }



.amen-item.is-short { color: var(--ink-2); }
.amen-item.is-short b { color: #8a5a2b; font-weight: 720; }

.season-bars { display: flex; gap: 3px; align-items: flex-end; height: 84px; }
.season-bar { flex: 1; border-radius: 4px 4px 0 0; min-height: 4px; position: relative; }
.season-axis {
  display: flex; gap: 3px; margin-top: 6px;
  font-size: 10px; color: var(--ink-3); text-align: center;
}
.season-axis span { flex: 1; }




.loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 60px 20px; color: var(--ink-2); text-align: center;
}
.spinner {
  width: 26px; height: 26px; border-radius: 999px;
  border: 2.5px solid var(--line); border-top-color: var(--accent);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty { text-align: center; padding: 40px 16px; color: var(--ink-2); }
.empty-title { font-weight: 620; color: var(--ink); margin-bottom: 6px; }

.footnote {
  font-size: .8125rem; color: var(--ink-3); line-height: 1.6;
  padding: calc(var(--gap) * 2) 0 calc(var(--gap) * 2);
}
.footnote a { color: var(--ink-2); }



.map-credit--warn { left: 8px; right: auto; background: var(--surface); color: var(--ink-2); }




.airsrc { margin-top: 10px; }
.airsrc > p { font-size: .8125rem; color: var(--ink-2); margin: 0 0 6px; line-height: 1.5; }
.airsrc > p:last-child { margin-bottom: 0; }










.src-link {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: var(--tap); padding: 0;
  color: var(--accent); font-size: .8125rem; font-weight: 560;
  text-align: left;
}
.src-link svg { width: 16px; height: 16px; flex: 0 0 auto; }
@media (hover: hover) { .src-link:hover span { text-decoration: underline; } }

.stat-body .src-link { margin-top: 4px; }

.src-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px;
}
.src-card--waiting { background: var(--surface-sunk); border-style: dashed; }
.src-waiting { margin: 0; font-size: .875rem; color: var(--ink-3); }




.src-title {
  font-size: 1rem; font-weight: 640; margin: 0; letter-spacing: -.01em;
  scroll-margin-top: calc(var(--tap) + 24px);
}
.src-tells { margin: 4px 0 0; font-size: .9375rem; color: var(--ink-1); line-height: 1.55; }



.src-facts {
  margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr; gap: 2px 14px;
  font-size: .8125rem;
}
@container (min-width: 460px) {
  .src-facts { grid-template-columns: 8.5rem 1fr; }
  .src-facts dt { text-align: right; }
}
.src-facts dt { color: var(--ink-3); }
.src-facts dd { margin: 0 0 8px; color: var(--ink-1); line-height: 1.5; }
@container (min-width: 460px) { .src-facts dd { margin-bottom: 2px; } }


.src-name { overflow-wrap: anywhere; }

.src-sub {
  font-size: .75rem; font-weight: 640; text-transform: uppercase;
  letter-spacing: .05em; color: var(--ink-3);
  margin: 14px 0 6px;
}
.src-points { margin: 0; padding-left: 1.1rem; }
.src-points li {
  font-size: .875rem; line-height: 1.6; color: var(--ink-1); margin-bottom: 3px;
}
.src-points li::marker { color: var(--ink-3); }



.src-card--method .src-points { margin-top: 8px; }






.ask { margin: 0 0 18px; }
.ask-label {
  display: block; font-size: .8125rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px;
}
.ask-field {
  display: flex; gap: 8px; align-items: flex-end;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  padding: 10px 10px 10px 14px;
}
.ask-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ask-input {
  flex: 1 1 auto; border: 0; background: transparent; resize: none;
  font: inherit; color: var(--ink); line-height: 1.45; padding: 4px 0;
  min-height: 46px; outline: none;
}
.ask-input::placeholder { color: var(--ink-3); }
.ask-go {
  flex: 0 0 auto; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--accent); color: #fff; font: inherit; font-weight: 600;
  padding: 10px 16px; white-space: nowrap;
}
.ask-go:disabled { opacity: .55; cursor: default; }
.ask-help { font-size: .8125rem; color: var(--ink-3); margin: 8px 2px 0; }




.ask-eg { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 2px; }
.ask-eg::-webkit-scrollbar { height: 0; }
.ask-eg-b {
  flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink-2); font: inherit; font-size: .8125rem;
  padding: 6px 12px; cursor: pointer; white-space: nowrap;
}
.ask-eg-b:hover { border-color: var(--accent); color: var(--ink); }

.ask-out:empty { display: none; }
.ask-wait { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--ink-2); }

.ask-got {
  margin-top: 12px; border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 12px 14px; background: var(--surface);
}
.ask-got-h {
  font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 4px;
}
.ask-got-l { margin: 0; font-weight: 600; }
.ask-got-say { margin: 8px 0 0; font-size: .875rem; color: var(--ink-2); }

.ask-got-drop { margin: 8px 0 0; font-size: .875rem; color: var(--warn, #8a6d1f); }
.ask-got-edit { margin: 8px 0 0; font-size: .8125rem; color: var(--ink-3); }

.ask-q { margin-top: 12px; }
.ask-q-t { margin: 0 0 8px; font-weight: 600; }
.ask-q .chip { margin: 0 6px 6px 0; }

.ask-err { margin-top: 12px; font-size: .875rem; color: var(--ink-2); }
.ask-off { margin: 0 0 14px; font-size: .875rem; color: var(--ink-3); }
.ask-or { margin: 0 0 12px; font-size: .8125rem; color: var(--ink-3); text-align: center; letter-spacing: .02em; }





.wt { margin: 16px 0 4px; } .wt-h { margin: 0 0 10px; } .wt-note { margin: 10px 0 0; font-size: .8125rem; color: var(--ink-3); }
.wt-row { border-bottom: 1px solid var(--line); } .wt-row[open] { background: var(--surface-sunk); border-radius: 8px; }
.wt-sum { display: grid; grid-template-columns: minmax(96px, 1.1fr) 2fr auto; gap: 10px; align-items: center; padding: 7px 8px; cursor: pointer; list-style: none; font-size: .875rem; }
.wt-sum::-webkit-details-marker { display: none; }
.wt-sum:hover { background: var(--surface-sunk); }
.wt-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wt-bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.wt-fill { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.wt-pct { font-weight: 620; font-variant-numeric: tabular-nums; }
.wt-whys { margin: 0; padding: 2px 8px 10px 8px; list-style: none; }
.wt-why { display: flex; gap: 10px; font-size: .8125rem; color: var(--ink-2); padding: 2px 0; }


.wt-why.is-less .wt-why-v { color: var(--warn, #8a6d1f); }
.wt-why-v { flex: 0 0 3.4em; text-align: right; font-variant-numeric: tabular-nums; font-weight: 620; }
.wt-why-t { min-width: 0; }
@media (max-width: 430px) { .wt-sum { grid-template-columns: minmax(84px, 1fr) 1.2fr auto; gap: 8px; font-size: .8125rem; } }




.explore-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; position: relative; }
.explore-field { flex: 1 1 240px; position: relative; display: flex; align-items: center; }
.explore-icon { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.explore-field input { width: 100%; min-height: 46px; padding: 10px 38px 10px 42px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; color: var(--ink); font-size: .9375rem; font-family: inherit; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.explore-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.explore-clear { position: absolute; right: 12px; width: 24px; height: 24px; border-radius: 999px; border: none; background: var(--surface-sunk); color: var(--ink-2); font-size: 1rem; line-height: 1; display: grid; place-items: center; cursor: pointer; }
.explore-pop { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; max-height: 280px; overflow-y: auto; }
.pop-rank { display: inline-block; background: var(--accent-soft); color: var(--accent); font-weight: 700; padding: 1px 6px; border-radius: 999px; font-size: .75rem; }
.display-toggle { display: inline-flex; background: var(--surface-sunk); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; flex: 0 0 auto; }
.display-opt { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: none; background: transparent; color: var(--ink-2); font-size: .8125rem; font-weight: 620; cursor: pointer; transition: all .15s ease; }
.display-opt svg { width: 15px; height: 15px; }
.display-opt.is-picked { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.explore-map-box { position: relative; width: 100%; height: clamp(340px, 48vh, 520px); border-radius: 20px; border: 1.5px solid var(--line); overflow: hidden; margin-bottom: 20px; background: var(--surface-sunk); box-shadow: var(--shadow); }
.explore-map-canvas { width: 100%; height: 100%; }
.explore-map-actions { position: absolute; right: 14px; top: 14px; z-index: 5; display: flex; flex-direction: column; gap: 8px; width: 98px; }
.map-action-pill { width: 100%; height: 42px; min-height: 42px; padding: 0 10px; border-radius: 999px; border: 1.5px solid var(--line); background: #ffffff; color: var(--ink-1); font-size: .84rem; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); transition: all .15s ease; }
.map-action-pill:hover { background: var(--surface-sunk); border-color: var(--ink-3); } .map-action-pill:active { transform: scale(.96); } .map-action-pill svg { width: 15px; height: 15px; color: var(--ink-1); flex-shrink: 0; }
#mapZoomIn, #mapZoomOut, #fullmapZoomIn, #fullmapZoomOut { font-size: 1.35rem; font-weight: 600; line-height: 1; padding: 0; }
.map-marker { cursor: pointer; transform: translate(-50%, -100%); transition: transform .18s cubic-bezier(.34, 1.56, .64, 1); z-index: 2; }
.map-marker-pin { display: flex; align-items: center; gap: 6px; background: var(--accent); color: #ffffff; padding: 4px 10px 4px 5px; border-radius: 999px; font-weight: 700; font-size: .8125rem; box-shadow: 0 3px 10px rgba(15, 107, 90, .35), 0 1px 3px rgba(0, 0, 0, .12); border: 2px solid #ffffff; position: relative; }
.map-marker-pin::after { content: ''; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); border-width: 6px 5px 0 5px; border-style: solid; border-color: var(--accent) transparent transparent transparent; }
.map-marker-rank { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; background: rgba(255, 255, 255, .22); border-radius: 999px; font-size: .75rem; font-weight: 700; padding: 1px 6px; }
.map-marker-label { font-size: .78rem; font-weight: 700; white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em; }
.map-marker:hover { transform: translate(-50%, -106%) scale(1.08); z-index: 10; }
.map-marker.is-selected { transform: translate(-50%, -108%) scale(1.15); z-index: 20; }
.map-marker.is-selected .map-marker-pin { background: #0a4f42; border-color: #ffd166; box-shadow: 0 0 0 3px rgba(255, 209, 102, .5), var(--shadow-lift); }
.map-marker.is-selected .map-marker-pin::after { border-top-color: #0a4f42; }
.map-marker--search .map-marker-pin { background: var(--accent); } .map-marker--search .map-marker-pin::after { border-top-color: var(--accent); }
.map-marker.is-shortlisted .map-marker-pin { background: var(--accent); border-color: #fef3c7; color: #ffffff; box-shadow: 0 0 0 2px #d97706, 0 3px 10px rgba(15, 107, 90, .45); }
.map-marker.is-shortlisted .map-marker-pin::after { border-top-color: var(--accent); }
.map-marker.is-selected.is-shortlisted .map-marker-pin { background: #0a4f42; border-color: #ffd166; box-shadow: 0 0 0 3px rgba(255, 209, 102, .6), var(--shadow-lift); }
.card-pin-code { position: relative; z-index: 2; background: none; border: none; padding: 0 2px; color: var(--accent); font-weight: 700; text-decoration: underline; text-decoration-style: dotted; cursor: pointer; font-size: inherit; font-family: inherit; } .card-pin-code:hover { color: var(--ink); text-decoration-style: solid; }
.map-card-panel { position: absolute; left: 14px; bottom: 14px; max-width: 380px; width: calc(100% - 28px); max-height: calc(100% - 28px); overflow-y: auto; z-index: 15; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: var(--pad); box-shadow: var(--shadow-lift); }
.map-card-inner { position: relative; }
.map-card-close { position: absolute; top: 0; right: 0; z-index: 4; width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-sunk); color: var(--ink-2); display: grid; place-items: center; font-size: 1rem; line-height: 1; cursor: pointer; }
.map-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.map-card-btn { padding: 8px 16px; min-height: 38px; font-size: .875rem; } .map-card-zoom-btn { padding: 8px 14px; min-height: 38px; font-size: .8125rem; background: var(--surface-sunk); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); cursor: pointer; }
.card.is-card-selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-line), var(--shadow-lift); }
.shortlist-tray { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 90; width: min(calc(100% - 32px), 560px); background: var(--ink); color: #ffffff; border-radius: 999px; padding: 8px 10px 8px 14px; box-shadow: var(--shadow-lift); display: flex; align-items: center; justify-content: space-between; gap: 10px; transition: bottom .2s ease; }
.shortlist-tray.has-actionbar, .app:has(#actionbar:not([hidden])) #shortlistTray { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
.shortlist-tray-main { display: flex; align-items: center; gap: 10px; width: 100%; justify-content: space-between; }
.shortlist-tray-badge { background: var(--accent); color: #ffffff; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.shortlist-tray-names { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1 1 auto; } .shortlist-tray-names::-webkit-scrollbar { display: none; }
.tray-chip { display: inline-flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, .16); color: #ffffff; font-size: .8125rem; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.tray-chip-del { border: none; background: transparent; color: rgba(255, 255, 255, .7); cursor: pointer; font-size: .9375rem; line-height: 1; padding: 0 2px; }
.shortlist-tray-go { padding: 8px 16px; min-height: 38px; border-radius: 999px; white-space: nowrap; font-size: .875rem; flex: 0 0 auto; }
.compare-map-frame { width: 100%; height: 240px; border-radius: var(--radius-lg); border: 1.5px solid var(--line); overflow: hidden; margin: 14px 0 16px; background: var(--surface-sunk); position: relative; box-shadow: var(--shadow); }
.compare-map-canvas { width: 100%; height: 100%; }
.compare-map-pin { cursor: pointer; transform: translate(-50%, -100%); transition: transform .15s ease; z-index: 3; } .compare-map-pin:hover { transform: translate(-50%, -105%) scale(1.08); z-index: 10; }
.compare-pin-badge { display: flex; align-items: center; gap: 4px; background: var(--ink); color: #fff; padding: 4px 8px; border-radius: 999px; font-weight: 700; font-size: .75rem; border: 2px solid #fff; box-shadow: var(--shadow); position: relative; }
.compare-pin-badge::after { content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); border-width: 5px 4px 0 4px; border-style: solid; border-color: var(--ink) transparent transparent transparent; }
.compare-map-pin.is-outside .compare-pin-badge { background: #94a3b8; } .compare-map-pin.is-outside .compare-pin-badge::after { border-top-color: #94a3b8; }
.compare-add-container { margin: 0 0 16px; position: relative; }
.compare-add-field { position: relative; display: flex; align-items: center; }
.compare-add-field input { width: 100%; min-height: 44px; padding: 8px 16px 8px 40px; background: var(--surface); border: 1.5px dashed var(--line-strong); border-radius: 999px; font-size: .875rem; font-family: inherit; color: var(--ink); }
.compare-add-field input:focus { outline: none; border-style: solid; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cmp-bar-track { display: block; width: 100%; height: 4px; background: var(--line); border-radius: 2px; margin-top: 5px; overflow: hidden; }
.cmp-bar-fill { display: block; height: 100%; background: var(--ink-3); border-radius: 2px; transition: width .25s ease; } .cmp-bar-fill.is-best-fill { background: var(--good); }


.compare-picker { margin: 0 0 16px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px; box-shadow: var(--shadow); }
.cmp-picker-box { display: flex; flex-direction: column; gap: 10px; } .cmp-picker-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cmp-picker-title { font-size: .8125rem; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; } .cmp-picker-count { font-size: .75rem; font-weight: 700; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 2px 8px; }
.cmp-picker-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .cmp-picker-select-wrap { flex: 1 1 160px; min-width: 140px; position: relative; }
.cmp-picker-select { width: 100%; min-height: 40px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface-sunk); color: var(--ink); font-family: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; outline: none; transition: border-color .15s ease, box-shadow .15s ease; } .cmp-picker-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cmp-picker-vs { font-size: .8125rem; font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; padding: 0 4px; } .cmp-picker-swap { padding: 6px 14px; min-height: 38px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface-sunk); color: var(--ink-1); font-size: .8125rem; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; transition: all .15s ease; } .cmp-picker-swap:hover { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.cmp-picker-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 2px; } .cmp-picker-chips::-webkit-scrollbar { display: none; }
.cmp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface-sunk); color: var(--ink-1); font-size: .8125rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all .15s ease; } .cmp-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.cmp-chip.is-active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 700; box-shadow: 0 0 0 1px var(--accent-line); } .cmp-chip-tag { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 999px; background: var(--accent); color: #ffffff; font-size: .625rem; font-weight: 800; line-height: 1; }


.screen--fullmap { position: fixed; inset: var(--topbar-h, 56px) 0 0 0; width: 100vw; height: calc(100dvh - var(--topbar-h, 56px)); margin: 0 !important; padding: 14px 18px 18px !important; box-sizing: border-box !important; max-width: none !important; overflow: hidden; z-index: 30; background: var(--bg); display: flex; flex-direction: column; }
.fullmap-container { position: relative; width: 100%; height: 100%; border-radius: 20px; border: 1.5px solid var(--line); box-shadow: var(--shadow); overflow: hidden; background: var(--surface-sunk); }
.fullmap-canvas { width: 100%; height: 100%; background: #fbfaf8; }
.fullmap-floating-top { position: absolute; top: 14px; left: 14px; width: min(420px, calc(100% - 150px)); z-index: 50; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.fullmap-card-panel { position: absolute; left: 16px; bottom: 16px; max-width: 410px; width: calc(100% - 32px); max-height: calc(100% - 130px); overflow-y: auto; z-index: 55; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-lift); }
.topbar-link-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-1); font-size: .8125rem; font-weight: 650; cursor: pointer; box-shadow: var(--shadow); transition: all .15s ease; white-space: nowrap; }
.topbar-link-btn:hover { border-color: var(--line-strong); color: var(--ink); background: var(--surface-sunk); }
.topbar-link-btn.is-active, .topbar-link-btn[aria-current="page"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.topbar-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .6875rem; font-weight: 700; line-height: 1; }
.chip--map { background: var(--accent-soft); color: var(--accent); border: 1.5px solid var(--accent-line); font-weight: 650; display: inline-flex; align-items: center; gap: 6px; }
.chip--saved { background: var(--surface); color: var(--accent); border: 1.5px solid var(--accent-line); font-weight: 650; display: inline-flex; align-items: center; gap: 6px; }
.fullmap-chip--saved { border-color: var(--accent-line); color: var(--accent); font-weight: 700; }
.fullmap-chip--saved.is-active { background: var(--accent); color: #fff; }

.shortlist-tray-badge { border: none; font-family: inherit; }
.shortlist-tray-badge[role="button"], button.shortlist-tray-badge { cursor: pointer; transition: transform .15s ease; }
.shortlist-tray-badge[role="button"]:hover, button.shortlist-tray-badge:hover { transform: scale(1.08); }
.shortlist-tray-all { padding: 6px 12px; min-height: 36px; border-radius: 999px; white-space: nowrap; font-size: .8125rem; font-weight: 650; background: rgba(255, 255, 255, .15); color: #fff; border: 1px solid rgba(255, 255, 255, .25); cursor: pointer; flex: 0 0 auto; transition: all .15s ease; }
.shortlist-tray-all:hover { background: rgba(255, 255, 255, .25); color: #fff; }


.saved-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.saved-count-badge { font-size: .8125rem; font-weight: 700; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }

.saved-add-panel { margin: 12px 0 16px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px; box-shadow: var(--shadow); }
.saved-add-form { display: flex; align-items: center; gap: 10px; width: 100%; flex-wrap: wrap; }
.saved-add-field { position: relative; flex: 1 1 240px; display: flex; align-items: center; }
.saved-add-icon { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.saved-add-field input { width: 100%; min-height: 42px; padding: 8px 16px 8px 38px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--surface-sunk); color: var(--ink); font-size: .875rem; font-family: inherit; }
.saved-add-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface); }
.saved-add-btn { padding: 8px 18px; min-height: 42px; border-radius: 999px; font-size: .875rem; white-space: nowrap; flex: 0 0 auto; }
.saved-add-msg { font-size: .8125rem; margin-top: 8px; padding: 6px 12px; border-radius: var(--radius-sm); font-weight: 600; }
.saved-add-msg.is-success { background: var(--good-soft); color: var(--good); }
.saved-add-msg.is-error { background: #fee2e2; color: #b91c1c; }

.saved-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.saved-toolbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.saved-btn-compare, .saved-btn-map, .saved-btn-copy, .saved-btn-share { min-height: 38px; padding: 6px 14px; border-radius: 999px; font-size: .8125rem; font-weight: 650; display: inline-flex; align-items: center; gap: 6px; }
.saved-btn-compare:disabled, .saved-action-btn:disabled, .btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.saved-clear-btn { font-size: .8125rem; color: var(--ink-3); font-weight: 600; cursor: pointer; padding: 6px 10px; border-radius: 999px; }
.saved-clear-btn:hover { color: #b91c1c; background: #fee2e2; }

.saved-search-wrap { position: relative; margin: 0 0 16px; display: flex; align-items: center; }
.saved-search-icon { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.saved-search-wrap input { width: 100%; min-height: 40px; padding: 6px 16px 6px 38px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: .875rem; }
.saved-search-wrap input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.saved-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; margin-bottom: 24px; }
.saved-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; transition: border-color .15s ease, box-shadow .15s ease; }
.saved-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lift); }
.saved-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.saved-card-pin-wrap { display: flex; align-items: center; gap: 6px; }
.saved-card-pin { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .8125rem; font-weight: 700; background: var(--ink); color: #fff; padding: 2px 7px; border-radius: 6px; letter-spacing: .02em; }
.saved-pin-copy-btn { font-size: .6875rem; font-weight: 650; color: var(--ink-2); background: var(--surface-sunk); border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; cursor: pointer; }
.saved-pin-copy-btn:hover { background: var(--line); color: var(--ink); }
.saved-card-meta { flex: 1 1 auto; min-width: 0; }
.saved-card-name { font-size: 1.0625rem; font-weight: 700; margin: 0 0 2px; line-height: 1.25; color: var(--ink); }
.saved-card-where { font-size: .8125rem; color: var(--ink-2); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.saved-card-del { width: 26px; height: 26px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-sunk); color: var(--ink-3); font-size: .875rem; line-height: 1; display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; transition: all .15s ease; }
.saved-card-del:hover { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }

.saved-card-metrics { display: flex; flex-wrap: wrap; gap: 6px; }
.saved-metric-pill { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--surface-sunk); border: 1px solid var(--line); color: var(--ink-1); }
.saved-metric--air { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }

.saved-card-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.saved-action-btn { min-height: 34px; padding: 4px 10px; font-size: .75rem; border-radius: 999px; font-weight: 650; }

.saved-empty-state { text-align: center; padding: 48px 16px; background: var(--surface); border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg); margin: 20px 0; }
.saved-empty-symbol { margin-bottom: 12px; }
.saved-empty-heading { font-size: 1.25rem; font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.saved-empty-text { font-size: .9375rem; color: var(--ink-2); max-width: 440px; margin: 0 auto 20px; line-height: 1.5; }
.saved-empty-buttons { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

@media (max-width: 480px) {
  .saved-grid, .home-saved-grid { grid-template-columns: 1fr; }
  .saved-toolbar-actions { width: 100%; }
  .saved-btn-compare, .saved-btn-map, .saved-btn-copy, .saved-btn-share { flex: 1 1 auto; justify-content: center; }
  .topbar-link-btn { padding: 5px 8px; font-size: .75rem; gap: 4px; }
  .home-saved-head { flex-direction: column; align-items: stretch; }
  .home-saved-toolbar { flex-direction: column; align-items: stretch; }
}


.home-saved-section { margin-top: 32px; padding-top: 24px; border-top: 1.5px solid var(--line); }
.home-saved-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.home-saved-title-area { flex: 1 1 260px; min-width: 0; }
.home-saved-kicker { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); display: block; margin-bottom: 2px; }
.home-saved-title { font-size: 1.25rem; font-weight: 750; color: var(--ink); margin: 0 0 4px; line-height: 1.25; }
.home-saved-subtitle { font-size: .84375rem; color: var(--ink-2); margin: 0; line-height: 1.45; }
.home-saved-head-actions { flex: 0 0 auto; }
.home-saved-hub-btn { font-size: .8125rem; font-weight: 650; }

.home-saved-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.home-saved-tabs, .saved-tabs-bar { display: inline-flex; background: var(--surface-sunk); border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; gap: 4px; flex-wrap: wrap; }
.saved-tabs-bar { margin: 12px 0 16px; width: fit-content; }
.home-saved-tab { padding: 6px 14px; border-radius: 999px; border: none; background: transparent; color: var(--ink-2); font-size: .8125rem; font-weight: 650; cursor: pointer; transition: all .15s ease; white-space: nowrap; }
.home-saved-tab:hover { color: var(--ink); }
.home-saved-tab.is-active, .home-saved-tab[aria-selected="true"] { background: var(--surface); color: var(--accent); font-weight: 700; box-shadow: var(--shadow); }

.home-saved-actions-group { display: flex; align-items: center; gap: 6px; }
.home-saved-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; margin-bottom: 24px; }

.saved-card-tags { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.saved-tag { display: inline-flex; align-items: center; gap: 4px; font-size: .6875rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.saved-tag--saved { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); }
.saved-tag--visited { background: var(--surface-sunk); color: var(--ink-2); border: 1px solid var(--line); }

.saved-card-fav-btn { font-size: .75rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 4px 10px; border-radius: 999px; cursor: pointer; transition: all .15s ease; }
.saved-card-fav-btn:hover { background: var(--accent); color: #fff; }
.saved-action-btn--select { background: var(--accent); color: #fff; border-color: var(--accent); }
.saved-action-btn--select:hover { background: #0a4f42; }