/* Westerfeld & Halstead Home Radar — navy & white design system.
 * Large type, generous spacing, strong contrast; status is always icon +
 * text + color, never color alone. */

:root {
  --navy-900: #0b1730;
  --navy-800: #0d1b36;
  --navy-700: #14274a;
  --navy-600: #1d3560;
  --navy-500: #2c4a7c;
  --blue-400: #4f6d9c;
  --blue-200: #c9d5e8;
  --mist-100: #f4f7fb;
  --mist-200: #eef2f7;
  --mist-300: #e3e9f2;
  --border: #d3dae5;
  --border-strong: #b4c0d3;
  --ink: #1b2333;
  --ink-2: #3c4658;
  --white: #ffffff;
  --brass: #a07a3a;

  --st-meets: #1d4e89;
  --st-meets-bg: #e6eef9;
  --st-likely: #375a8c;
  --st-likely-bg: #edf2f9;
  --st-fixable: #7a5200;
  --st-fixable-bg: #fbf3e2;
  --st-major: #9a3b0a;
  --st-major-bg: #fcede4;
  --st-no: #9b1c2c;
  --st-no-bg: #fbe9ec;
  --st-unknown: #4a5568;
  --st-unknown-bg: #f0f2f5;

  --serif: 'Libre Baskerville', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(13, 27, 54, 0.06), 0 6px 24px rgba(13, 27, 54, 0.08);
  --shadow-lg: 0 2px 6px rgba(13, 27, 54, 0.08), 0 18px 48px rgba(13, 27, 54, 0.16);
  --max: 1240px;
  --tap: 54px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--mist-100);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-600); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy-800); line-height: 1.25; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: 2rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; 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: 12px; top: -60px; background: var(--white); color: var(--navy-700); padding: 12px 18px; border-radius: 10px; z-index: 100; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header { background: var(--navy-700); color: var(--white); position: sticky; top: 0; z-index: 40; box-shadow: 0 2px 12px rgba(0,0,0,.18); }
.header-inner { max-width: var(--max); margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 14px; }
.brand, .mode-toggle { flex: none; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--white); text-decoration: none; min-height: var(--tap); }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-small { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.85; font-weight: 600; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; }
.main-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: nowrap; }
.nav-link, .brand-text { white-space: nowrap; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 8px 10px; border-radius: 10px;
  color: var(--white); text-decoration: none; font-weight: 600; font-size: 1rem; opacity: 0.92;
}
.nav-link svg { width: 22px; height: 22px; }
.nav-link:hover { background: rgba(255,255,255,.1); opacity: 1; }
.nav-link[aria-current="page"] { background: var(--white); color: var(--navy-700); opacity: 1; }
.nav-count { background: var(--white); color: var(--navy-700); border-radius: 999px; font-size: 0.8rem; padding: 0 8px; font-weight: 700; }
.nav-link[aria-current="page"] .nav-count { background: var(--navy-700); color: var(--white); }

.mode-toggle {
  display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3);
  color: var(--white); border-radius: 999px; padding: 6px 8px 6px 16px; min-height: 48px; cursor: pointer; font-weight: 600; white-space: nowrap;
}
.mode-toggle .switch { width: 46px; height: 28px; border-radius: 999px; background: rgba(255,255,255,.35); position: relative; transition: background .2s; }
.mode-toggle .switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); transition: transform .2s; }
.mode-toggle[aria-checked="true"] .switch { background: #8fb0e0; }
.mode-toggle[aria-checked="true"] .switch::after { transform: translateX(18px); }

.bottom-nav { display: none; }

/* ---------- Layout ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 32px 24px 96px; min-height: 70vh; }
.page-head { margin-bottom: 28px; }
.page-head p { font-size: 1.1rem; color: var(--ink-2); max-width: 46em; }
.section { margin: 48px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
.section-head .sub { color: var(--ink-2); font-size: 1rem; margin: 4px 0 0; }
.emoji { font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; font-weight: 400; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.stack > * + * { margin-top: 16px; }
.muted { color: var(--ink-2); }
.panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 24px; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--tap); padding: 12px 24px; border-radius: 12px; border: 2px solid var(--navy-700);
  background: var(--white); color: var(--navy-700); font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, transform .05s, box-shadow .15s; line-height: 1.2; text-align: center;
}
.btn:hover { background: var(--mist-200); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary { background: var(--navy-700); color: var(--white); }
.btn-primary:hover { background: var(--navy-600); }
.btn-quiet { border-color: var(--border-strong); color: var(--ink); }
.btn-quiet:hover { border-color: var(--navy-700); }
.btn-text { border-color: transparent; background: transparent; padding-left: 12px; padding-right: 12px; text-decoration: underline; text-underline-offset: 4px; }
.btn-text:hover { background: var(--mist-200); }
.btn-lg { min-height: 64px; font-size: 1.1rem; padding: 16px 32px; }
.btn-block { width: 100%; }
.btn[aria-pressed="true"].btn-save { background: var(--navy-700); color: var(--white); }
.btn-danger { border-color: var(--st-no); color: var(--st-no); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 24px; color: var(--white);
  background: linear-gradient(180deg, rgba(11,23,48,.62), rgba(11,23,48,.86)), url('../assets/photos/ext-acreage.jpg') center 40% / cover;
  padding: 56px 48px; box-shadow: var(--shadow-lg);
}
.hero h1 { color: var(--white); font-size: 2.4rem; margin-bottom: 6px; }
.hero .eyebrow { font-size: 0.85rem; text-transform: uppercase; letter-spacing: .18em; font-weight: 700; opacity: .9; margin-bottom: 10px; }
.hero .subtitle { font-family: var(--serif); font-size: 1.3rem; margin: 0 0 18px; }
.hero blockquote { margin: 0 0 28px; padding-left: 18px; border-left: 3px solid rgba(255,255,255,.7); font-size: 1.15rem; max-width: 36em; }
.hero-status { display: inline-flex; align-items: center; gap: 14px; background: var(--white); color: var(--navy-800); border-radius: 14px; padding: 16px 22px; font-size: 1.25rem; font-weight: 700; }
.hero-status .count { font-family: var(--serif); font-size: 2rem; line-height: 1; }
.hero-meta { margin-top: 18px; font-size: 1rem; opacity: .92; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.radar-pulse { width: 14px; height: 14px; border-radius: 50%; background: #9fc0f0; box-shadow: 0 0 0 0 rgba(159,192,240,.7); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(159,192,240,.7); } 70% { box-shadow: 0 0 0 14px rgba(159,192,240,0); } 100% { box-shadow: 0 0 0 0 rgba(159,192,240,0); } }
@media (prefers-reduced-motion: reduce) { .radar-pulse, .scan-ring { animation: none !important; } html { scroll-behavior: auto; } }

/* ---------- Score ---------- */
.score {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 14px;
  background: var(--white); border: 2px solid var(--navy-700); color: var(--navy-800);
}
.score-num { display: inline-flex; align-items: baseline; justify-content: center; gap: 2px; min-width: 64px; height: 56px; padding: 0 8px; border-radius: 10px; background: var(--navy-700); color: var(--white); font-family: var(--serif); font-weight: 700; font-size: 1.7rem; line-height: 56px; }
.score-num small { font-size: 0.8rem; font-family: var(--sans); opacity: .85; }
.score-label { font-weight: 700; font-size: 1rem; line-height: 1.2; }
.score.tone-showing, .score.tone-potential { border-color: var(--blue-400); }
.score.tone-showing .score-num, .score.tone-potential .score-num { background: var(--navy-500); }
.score.tone-low { border-color: var(--border-strong); }
.score.tone-low .score-num { background: var(--ink-2); }
.score-lg .score-num { min-width: 96px; height: 80px; line-height: 80px; font-size: 2.6rem; }
.score-lg .score-label { font-size: 1.2rem; }
/* Preliminary (facts-only) badges: ✓ worth checking / ✕ doesn't fit */
.score.tone-check { border-color: var(--blue-400); }
.score.tone-check .score-num { background: var(--navy-500); }
.score-icon { font-family: var(--sans); font-size: 1.45rem; }
.score-lg .score-icon { font-size: 2rem; }
.score-sub { display: block; font-family: var(--sans); font-size: .78rem; font-weight: 600; opacity: .75; margin-top: 3px; }

/* ---------- Property card ---------- */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-photo { position: relative; aspect-ratio: 3 / 2; background: var(--mist-300); overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card-photo a:hover img { transform: scale(1.02); }
.card-photo .score { position: absolute; left: 14px; bottom: 14px; box-shadow: var(--shadow); }
.card-tags { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 6px; background: var(--white); color: var(--navy-800); font-weight: 700; font-size: .9rem; padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow); }
.tag-navy { background: var(--navy-700); color: var(--white); }
.photo-count { position: absolute; right: 14px; bottom: 14px; background: rgba(11,23,48,.8); color: var(--white); border-radius: 999px; padding: 6px 12px; font-size: .9rem; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.photo-count svg { width: 18px; height: 18px; }
/* Facts-only listings have no photos; link out instead */
.no-photo { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 16px; text-align: center; color: var(--navy-700); font-weight: 700; font-size: .92rem; background: linear-gradient(135deg, var(--mist-200) 25%, var(--mist-300) 25%, var(--mist-300) 50%, var(--mist-200) 50%, var(--mist-200) 75%, var(--mist-300) 75%); background-size: 22px 22px; }
.no-photo img { width: 42px; height: 42px; opacity: .45; margin: 0 auto; }
.no-photo small { font-weight: 500; font-size: .8rem; color: var(--ink-2); }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-address { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--navy-800); margin: 0; line-height: 1.3; }
.card-address a { color: inherit; text-decoration: none; }
.card-address a:hover { text-decoration: underline; }
.card-city { color: var(--ink-2); margin: -8px 0 0; }
.price { font-family: var(--serif); font-size: 1.75rem; font-weight: 700; color: var(--navy-800); margin: 0; line-height: 1.2; }
.price-was { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--ink-2); text-decoration: line-through; margin-left: 8px; }
.facts { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin: 0; }
.drive { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy-700); font-size: 1.05rem; margin: 0; flex-wrap: wrap; }
.drive svg { width: 24px; height: 24px; flex: none; }
.walk-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--mist-200); color: var(--navy-800); border-radius: 999px; padding: 4px 12px; font-size: .95rem; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 1.02rem; }
.checklist .ic { flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; background: var(--st-meets-bg); color: var(--st-meets); margin-top: 1px; }
.checklist.cols { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.concern { background: var(--mist-200); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 1rem; border-left: 4px solid var(--navy-500); }
.concern strong { display: block; color: var(--navy-800); margin-bottom: 2px; }
.concern.is-deal { background: var(--st-no-bg); border-left-color: var(--st-no); }
.concern.is-deal strong { color: var(--st-no); }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.card-actions .btn { flex: 1 1 auto; }
.card-links { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-scores { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; font-size: .85rem; text-align: center; }
.mini-scores div { background: var(--mist-100); border: 1px solid var(--border); border-radius: 8px; padding: 6px 2px; }
.mini-scores b { display: block; font-size: 1.05rem; color: var(--navy-800); }

.card-lg .card-photo { aspect-ratio: 16 / 9; }
.card-lg .card-address { font-size: 1.6rem; }
.card-lg .price { font-size: 2.1rem; }
@media (min-width: 980px) {
  .card-lg { flex-direction: row; }
  .card-lg .card-photo { flex: 0 0 52%; aspect-ratio: auto; min-height: 460px; }
  .card-lg .card-body { padding: 30px 32px; }
}

/* ---------- Status pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 5px 14px 5px 6px; font-weight: 700; font-size: .95rem; white-space: nowrap; border: 1.5px solid currentColor; }
.pill .pi { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; background: currentColor; }
.pill .pi span { color: var(--white); }
.st-meets { color: var(--st-meets); background: var(--st-meets-bg); }
.st-likely { color: var(--st-likely); background: var(--st-likely-bg); }
.st-fixable { color: var(--st-fixable); background: var(--st-fixable-bg); }
.st-major { color: var(--st-major); background: var(--st-major-bg); }
.st-no { color: var(--st-no); background: var(--st-no-bg); }
.st-unknown { color: var(--st-unknown); background: var(--st-unknown-bg); }
.checklist .ic.st-likely { background: var(--st-likely-bg); color: var(--st-likely); }
.checklist .ic.st-unknown { background: var(--st-unknown-bg); color: var(--st-unknown); }
.checklist .ic.st-fixable { background: var(--st-fixable-bg); color: var(--st-fixable); }
.checklist .ic.st-major { background: var(--st-major-bg); color: var(--st-major); }
.checklist .ic.st-no { background: var(--st-no-bg); color: var(--st-no); }

.legend { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }

/* ---------- Detail page ---------- */
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; font-weight: 700; min-height: 48px; }
.gallery { background: var(--navy-900); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); }
.gallery-stage { position: relative; aspect-ratio: 16 / 9; max-height: 680px; width: 100%; background: var(--navy-900); touch-action: pan-y; user-select: none; }
.gallery-stage img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-stage img.is-plan { object-fit: contain; background: var(--white); }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 64px; height: 64px; border-radius: 50%; border: 0; background: rgba(255,255,255,.94); color: var(--navy-800); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); }
.gallery-nav svg { width: 30px; height: 30px; }
.gallery-nav.prev { left: 18px; }
.gallery-nav.next { right: 18px; }
.gallery-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 18px; background: linear-gradient(transparent, rgba(11,23,48,.8)); color: var(--white); pointer-events: none; }
.gallery-bar > * { pointer-events: auto; }
.gallery-caption { font-size: 1.05rem; font-weight: 600; }
.gallery-credit { display: block; font-size: .84rem; font-weight: 500; opacity: .78; margin-top: 2px; }
.is-hidden { display: none !important; }
/* Icons inside running text need their own size: `.ico` has no default and
   would otherwise stretch to the width of the paragraph. */
.link-ic { width: 1.05em; height: 1.05em; vertical-align: -.18em; }
.gallery-counter { background: rgba(11,23,48,.85); border-radius: 999px; padding: 6px 14px; font-weight: 700; white-space: nowrap; }
.gallery-full { display: inline-flex; gap: 8px; align-items: center; background: var(--white); color: var(--navy-800); border: 0; border-radius: 999px; padding: 10px 16px; font-weight: 700; cursor: pointer; min-height: 48px; }
.gallery-full svg { width: 20px; height: 20px; }
.thumbs { display: flex; gap: 10px; padding: 14px; overflow-x: auto; scroll-snap-type: x mandatory; }
.thumb { flex: 0 0 132px; height: 88px; border-radius: 10px; overflow: hidden; border: 3px solid transparent; padding: 0; background: var(--navy-800); cursor: pointer; scroll-snap-align: start; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.thumb.is-plan img { object-fit: contain; background: var(--white); }
.thumb[aria-current="true"] { border-color: var(--white); }
.thumb[aria-current="true"] img, .thumb:hover img { opacity: 1; }
.thumb .tnum { position: absolute; left: 6px; top: 6px; background: rgba(11,23,48,.85); color: var(--white); font-size: .8rem; font-weight: 700; border-radius: 6px; padding: 0 6px; }

.detail-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; margin: 32px 0 8px; }
.detail-head h1 { font-size: 2.2rem; margin: 14px 0 4px; }
.detail-head .city { font-size: 1.15rem; color: var(--ink-2); margin: 0 0 12px; }
.detail-head .price { font-size: 2.4rem; }
.detail-head .facts { font-size: 1.2rem; margin: 6px 0 10px; }
.detail-head .drive { font-size: 1.2rem; }
.detail-actions { display: flex; flex-direction: column; gap: 12px; min-width: 260px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.sticky-col { position: sticky; top: 104px; }
.subnav { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 8px; padding: 10px; background: var(--white); border: 1px solid var(--border); border-radius: 14px; position: sticky; top: 84px; z-index: 5; box-shadow: var(--shadow); }
.subnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; color: var(--navy-700); }
.subnav a:hover { background: var(--mist-200); }
.anchor { scroll-margin-top: 170px; }

.dealbreaker-banner { display: flex; gap: 18px; align-items: flex-start; background: var(--st-no-bg); border: 2px solid var(--st-no); border-radius: var(--radius); padding: 22px 26px; margin: 24px 0; }
.dealbreaker-banner h2 { color: var(--st-no); margin: 0 0 4px; font-size: 1.5rem; }
.dealbreaker-banner p { margin: 0; font-size: 1.1rem; font-weight: 600; }
.dealbreaker-banner .big { font-size: 2.2rem; line-height: 1; }

.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.why-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.15rem; font-weight: 600; }
.why-list .ic { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--navy-700); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.check-list li .ic { background: var(--st-unknown-bg); color: var(--st-unknown); border: 2px solid var(--st-unknown); }
.check-list li { font-weight: 500; }
.verify-note { margin-top: 18px; background: var(--mist-200); border-radius: 12px; padding: 14px 18px; font-size: 1rem; color: var(--ink-2); }

/* Requirement rows */
.req-group + .req-group { margin-top: 30px; }
.req-group h3 { font-family: var(--sans); font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 10px; }
.req { border: 1px solid var(--border); border-radius: 14px; background: var(--white); }
.req + .req { margin-top: 10px; }
.req-btn { width: 100%; display: grid; grid-template-columns: minmax(0, 1.25fr) auto minmax(0, 1.5fr) auto; gap: 16px; align-items: center; padding: 16px 18px; border: 0; background: none; cursor: pointer; text-align: left; border-radius: 14px; min-height: var(--tap); }
.req-btn:hover { background: var(--mist-100); }
.req-name { font-weight: 700; font-size: 1.05rem; }
.req-note { color: var(--ink); font-size: 1rem; }
.req-conf { font-size: .9rem; color: var(--ink-2); font-weight: 600; display: block; }
.req-chev { width: 26px; height: 26px; transition: transform .2s; color: var(--navy-700); }
.req-btn[aria-expanded="true"] .req-chev { transform: rotate(180deg); }
.req-evidence { padding: 4px 18px 20px; border-top: 1px dashed var(--border); }
.req-evidence h4 { font-family: var(--sans); font-size: 1rem; margin: 14px 0 8px; color: var(--navy-800); }
.ev-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ev-item { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; background: var(--mist-100); border-radius: 10px; padding: 12px 14px; }
.ev-label { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--navy-600); background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 4px 10px; white-space: nowrap; }
.ev-label.k-photo { color: var(--brass); }
.ev-label.k-user { background: var(--navy-700); color: var(--white); border-color: var(--navy-700); }
.ev-text { font-size: 1rem; }
.ev-photo { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; background: none; border: 1px solid var(--border-strong); border-radius: 10px; padding: 4px 10px 4px 4px; cursor: pointer; font-weight: 600; }
.ev-photo img { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; }
.ev-empty { color: var(--ink-2); font-style: italic; }
.verify-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.verify-row .btn { min-height: 46px; padding: 8px 14px; font-size: .95rem; }

/* Score breakdown */
.meter { display: grid; grid-template-columns: 170px 1fr 52px; gap: 14px; align-items: center; }
.meter + .meter { margin-top: 14px; }
.meter-name { font-weight: 700; }
.meter-track { height: 14px; border-radius: 999px; background: var(--mist-300); overflow: hidden; }
.meter-fill { height: 100%; background: var(--navy-700); border-radius: 999px; }
.meter-val { font-weight: 700; text-align: right; font-family: var(--serif); font-size: 1.15rem; }
.meter-help { grid-column: 1 / -1; margin-top: -8px; font-size: .95rem; color: var(--ink-2); }

.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin: 0; }
.kv div { padding: 14px 18px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); background: var(--white); }
.kv dt { font-size: .9rem; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.kv dd { margin: 2px 0 0; font-size: 1.1rem; font-weight: 600; }
.description { font-size: 1.1rem; line-height: 1.75; max-width: 46em; }
.attribution { font-size: 1rem; color: var(--ink-2); border-top: 1px solid var(--border); padding-top: 14px; margin-top: 20px; }

/* Feedback */
.feedback { display: grid; gap: 10px; }
.fb-btn { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 10px 18px; border-radius: 12px; border: 2px solid var(--border-strong); background: var(--white); font-weight: 700; font-size: 1.05rem; cursor: pointer; text-align: left; }
.fb-btn:hover { border-color: var(--navy-700); }
.fb-btn .emoji { font-size: 1.4rem; width: 30px; text-align: center; }
.fb-btn[aria-pressed="true"] { background: var(--navy-700); border-color: var(--navy-700); color: var(--white); }

/* ---------- Map ---------- */
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.map-frame { background: var(--white); border: 1px solid var(--border); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); position: relative; }
.map-svg { display: block; width: 100%; height: auto; touch-action: manipulation; }
.map-svg .marker { cursor: pointer; }
.map-svg .marker:focus { outline: none; }
.map-svg .marker:focus .m-ring, .map-svg .marker:hover .m-ring { stroke: #8fb0e0; stroke-width: 6; }
.map-legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--border); font-weight: 600; }
.lg { display: inline-flex; align-items: center; gap: 8px; }
.lg-swatch { width: 22px; height: 22px; border-radius: 50%; display: inline-block; }
.map-note { font-size: .95rem; color: var(--ink-2); padding: 0 20px 16px; margin: 0; }
.map-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--border-strong); background: var(--white); font-weight: 700; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--navy-700); border-color: var(--navy-700); color: var(--white); }

/* ---------- Compare ---------- */
.compare-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
.compare-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 760px; }
.compare-table th, .compare-table td { padding: 16px 18px; border-bottom: 1px solid var(--border); vertical-align: top; text-align: left; font-size: 1.02rem; }
.compare-table thead th { background: var(--white); position: sticky; top: 0; }
.compare-table tbody th { background: var(--mist-100); font-weight: 700; width: 190px; color: var(--navy-800); position: sticky; left: 0; z-index: 1; }
.compare-table .c-photo { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
.compare-table .best { background: var(--st-meets-bg); }
.compare-table .best-flag { display: inline-block; margin-top: 6px; font-size: .85rem; font-weight: 700; color: var(--navy-700); }
.recommendation { background: var(--navy-700); color: var(--white); border-radius: 22px; padding: 34px 38px; margin-top: 32px; box-shadow: var(--shadow-lg); }
.recommendation h2 { color: var(--white); font-size: 1.8rem; }
.recommendation .lead { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; margin-bottom: 14px; }
.recommendation p { font-size: 1.15rem; max-width: 52em; }
.compare-pick { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.pick { display: flex; gap: 14px; align-items: center; padding: 12px; border: 2px solid var(--border); border-radius: 14px; background: var(--white); cursor: pointer; text-align: left; min-height: 96px; }
.pick img { width: 104px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; }
.pick[aria-pressed="true"] { border-color: var(--navy-700); background: var(--st-meets-bg); }
.pick .pk-check { margin-left: auto; width: 32px; height: 32px; border-radius: 8px; border: 2px solid var(--border-strong); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.pick[aria-pressed="true"] .pk-check { background: var(--navy-700); border-color: var(--navy-700); color: var(--white); }

/* ---------- Forms / settings ---------- */
.field { display: grid; gap: 8px; }
.field + .field { margin-top: 20px; }
.field label, .field .label { font-weight: 700; font-size: 1.05rem; }
.field .hint { font-size: .98rem; color: var(--ink-2); margin: 0; }
.input, .select { min-height: var(--tap); border: 2px solid var(--border-strong); border-radius: 12px; padding: 10px 14px; background: var(--white); font-size: 1.05rem; width: 100%; }
.input:focus, .select:focus { border-color: var(--navy-700); outline: none; box-shadow: 0 0 0 3px var(--blue-200); }
.input[aria-invalid="true"] { border-color: var(--st-no); }
.field-error { color: var(--st-no); font-weight: 700; margin: 0; }
.row { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.check { display: flex; gap: 14px; align-items: center; min-height: 52px; padding: 6px 4px; cursor: pointer; font-size: 1.05rem; }
.check input { width: 26px; height: 26px; accent-color: var(--navy-700); flex: none; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row .t-text strong { display: block; font-size: 1.05rem; }
.toggle-row .t-text span { color: var(--ink-2); font-size: .98rem; }
.switch-btn { flex: none; width: 66px; height: 38px; border-radius: 999px; border: 2px solid var(--border-strong); background: var(--mist-300); position: relative; cursor: pointer; }
.switch-btn::after { content: ''; position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.switch-btn[aria-checked="true"] { background: var(--navy-700); border-color: var(--navy-700); }
.switch-btn[aria-checked="true"]::after { transform: translateX(28px); }
.switch-label { font-weight: 700; font-size: .95rem; min-width: 34px; }
.private-ref { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--mist-200); border-radius: 14px; }
.private-ref svg { width: 32px; height: 32px; color: var(--navy-700); flex: none; }
.private-ref strong { display: block; font-size: 1.15rem; }
details.advanced { border: 2px solid var(--border); border-radius: 16px; background: var(--white); }
details.advanced > summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: 12px; min-height: var(--tap); }
details.advanced > summary::-webkit-details-marker { display: none; }
details.advanced > summary .req-chev { margin-left: auto; }
details.advanced[open] > summary .req-chev { transform: rotate(180deg); }
details.advanced .adv-body { padding: 0 24px 24px; }
.range-row { display: grid; grid-template-columns: 170px 1fr 48px; gap: 14px; align-items: center; }
.range-row + .range-row { margin-top: 12px; }
.range-row input[type=range] { width: 100%; accent-color: var(--navy-700); height: 32px; }
.learned { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.learned li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--mist-100); border-radius: 10px; font-weight: 600; }

/* ---------- Live listings (facts-only data + server-managed settings) ---------- */
.basic-note { border-left: 6px solid var(--blue-400); }
.agent-line { margin: 14px 0 0; font-size: .95rem; color: var(--ink-2); }
.agent-line a { word-break: break-word; }
.server-note { display: flex; gap: 12px; align-items: flex-start; background: var(--mist-100); border: 1px dashed var(--border-strong); border-radius: 12px; padding: 14px 16px; font-size: .98rem; color: var(--ink-2); }
.server-note svg { flex: none; width: 24px; height: 24px; margin-top: 2px; color: var(--navy-600); }
.server-note strong { color: var(--navy-800); }
.server-note code { background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: .9em; }
.select:disabled { opacity: .55; cursor: not-allowed; }
input[type=range]:disabled { opacity: .5; cursor: not-allowed; }
.prefs-ro { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.prefs-ro li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; background: var(--mist-100); border-radius: 10px; font-size: .95rem; }
.prefs-ro .on { color: var(--navy-700); font-weight: 700; }
.prefs-ro .off { color: var(--ink-2); }
/* Recipients */
.recipient { border: 2px solid var(--border); border-radius: 16px; background: var(--white); padding: 20px 22px; }
.recipient + .recipient { margin-top: 14px; }
.recipient.is-inactive { background: var(--mist-100); }
.rcp-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--navy-700); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; font-size: 1.35rem; flex: none; }
.is-inactive .avatar { background: var(--ink-2); }
.rcp-id strong { display: block; font-size: 1.2rem; }
.rcp-id span { color: var(--ink-2); word-break: break-all; }
.rcp-status { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.status-active { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--st-meets); }
.status-inactive { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink-2); }
.rcp-prefs { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
.rcp-prefs summary { cursor: pointer; font-weight: 700; color: var(--navy-700); min-height: 48px; display: flex; align-items: center; gap: 8px; }
.prefs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 0 20px; margin-top: 6px; }
.outbox-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.outbox-item:last-child { border-bottom: 0; }
.ob-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--mist-200); color: var(--navy-700); display: inline-flex; align-items: center; justify-content: center; }
.ob-icon svg { width: 26px; height: 26px; }
.ob-sub { font-weight: 700; overflow-wrap: anywhere; }
.ob-meta { color: var(--ink-2); font-size: .98rem; }
.delivered { color: var(--st-meets); font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }

/* Demo strip */
.demo-strip { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: var(--white); border: 2px dashed var(--border-strong); border-radius: 18px; padding: 20px 24px; }
.demo-strip strong { font-size: 1.1rem; display: block; }

/* ---------- Empty states ---------- */
.empty { text-align: center; padding: 48px 24px; background: var(--white); border: 2px dashed var(--border); border-radius: 18px; }
.empty .big { font-size: 2.6rem; }
.empty p { color: var(--ink-2); font-size: 1.1rem; max-width: 30em; margin: 8px auto 18px; }

/* ---------- Modal, lightbox, toast ---------- */
.overlay { position: fixed; inset: 0; background: rgba(11,23,48,.62); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .18s ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--white); border-radius: 22px; max-width: 640px; width: 100%; max-height: calc(100vh - 40px); overflow: auto; box-shadow: var(--shadow-lg); padding: 32px; position: relative; }
.modal-wide { max-width: 760px; padding: 0; }
.modal h2 { margin-right: 56px; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--white); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--navy-800); z-index: 2; }
.modal-close svg { width: 24px; height: 24px; }
.reason-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 10px; margin: 18px 0 24px; }
.email-frame { width: 100%; height: 70vh; border: 0; display: block; background: var(--mist-200); border-radius: 0 0 22px 22px; }
.email-head { padding: 26px 30px 16px; border-bottom: 1px solid var(--border); }
.email-head p { margin: 2px 0; color: var(--ink-2); }
.email-head strong { color: var(--ink); }

.lightbox { position: fixed; inset: 0; background: rgba(6,12,26,.97); z-index: 90; display: flex; flex-direction: column; color: var(--white); touch-action: pan-y; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; gap: 12px; }
.lb-top .gallery-counter { font-size: 1.05rem; }
.lb-close { display: inline-flex; align-items: center; gap: 8px; border: 2px solid rgba(255,255,255,.6); background: transparent; color: var(--white); border-radius: 999px; padding: 10px 18px; font-weight: 700; cursor: pointer; min-height: 52px; }
.lb-close svg { width: 22px; height: 22px; }
.lb-stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 90px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lb-stage img.is-plan { background: var(--white); }
.lb-caption { text-align: center; padding: 14px 20px 24px; font-size: 1.1rem; }

.toast-region { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 95; display: grid; gap: 10px; width: min(560px, calc(100% - 32px)); }
.toast { background: var(--navy-800); color: var(--white); border-radius: 14px; padding: 16px 20px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 14px; font-size: 1.05rem; font-weight: 600; animation: rise .25s ease-out; }
.toast .btn { min-height: 44px; padding: 6px 14px; margin-left: auto; background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Alert takeover */
.alert-modal { max-width: 720px; padding: 0; overflow: hidden; }
.alert-top { background: var(--navy-700); color: var(--white); padding: 26px 32px; }
.alert-top .eyebrow { font-size: .9rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; opacity: .9; }
.alert-top h2 { color: var(--white); font-size: 2rem; margin: 6px 0 0; }
.alert-photo { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.alert-body { padding: 26px 32px 30px; }
.send-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.send-list li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--mist-100); border-radius: 12px; font-weight: 600; }
.send-list .s-state { margin-left: auto; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--blue-200); border-top-color: var(--navy-700); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.scan { text-align: center; padding: 44px 30px; }
.scan-visual { width: 180px; height: 180px; margin: 0 auto 22px; position: relative; }
.scan-ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--navy-700); opacity: 0; animation: ring 2s ease-out infinite; }
.scan-ring:nth-child(2) { animation-delay: .66s; }
.scan-ring:nth-child(3) { animation-delay: 1.33s; }
.scan-core { position: absolute; inset: 62px; border-radius: 50%; background: var(--navy-700); display: flex; align-items: center; justify-content: center; color: var(--white); }
.scan-core svg { width: 34px; height: 34px; }
@keyframes ring { 0% { transform: scale(.35); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
.scan-steps { list-style: none; padding: 0; margin: 18px auto 0; text-align: left; max-width: 420px; display: grid; gap: 8px; }
.scan-steps li { display: flex; gap: 10px; align-items: center; font-weight: 600; color: var(--ink-2); }
.scan-steps li.done { color: var(--navy-800); }
.scan-steps .dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border-strong); display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; flex: none; }
.scan-steps li.done .dot { background: var(--navy-700); border-color: var(--navy-700); color: var(--white); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--white); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 28px 24px 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-2); font-size: 1rem; }
.footer-inner strong { color: var(--navy-800); font-family: var(--serif); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .sticky-col { position: static; }
  .map-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 1340px) {
  .nav-link svg, .nav-count { display: none; }
}
@media (max-width: 1080px) {
  html { font-size: 17.5px; }
  .main-nav { display: none; }
  .header-inner { padding: 10px 16px; }
  .mode-toggle { margin-left: auto; padding-left: 12px; }
  .mode-toggle .mt-text { font-size: .9rem; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: var(--white); border-top: 1px solid var(--border); box-shadow: 0 -4px 18px rgba(13,27,54,.1); padding-bottom: env(safe-area-inset-bottom);
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 66px; text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: .82rem; position: relative; }
  .bottom-nav a svg { width: 26px; height: 26px; }
  .bottom-nav a > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bottom-nav a[aria-current="page"] { color: var(--navy-700); }
  .bottom-nav a[aria-current="page"]::before { content: ''; position: absolute; top: 0; left: 22%; right: 22%; height: 4px; border-radius: 0 0 4px 4px; background: var(--navy-700); }
  main { padding: 22px 16px 120px; }
  .hero { padding: 36px 24px; border-radius: 18px; }
  .hero h1 { font-size: 1.9rem; }
  .detail-head { grid-template-columns: 1fr; }
  .detail-head h1 { font-size: 1.8rem; }
  .detail-actions { min-width: 0; }
  .gallery-nav { width: 52px; height: 52px; }
  .gallery-stage { aspect-ratio: 4 / 3; }
  .req-btn { grid-template-columns: 1fr auto; }
  .req-btn .req-note { grid-column: 1 / -1; grid-row: 2; }
  .req-btn .req-chev { grid-row: 1; grid-column: 2; }
  .req-btn .pill { grid-column: 1; grid-row: 3; justify-self: start; }
  .meter { grid-template-columns: 1fr 52px; }
  .meter-track { grid-column: 1 / -1; grid-row: 2; }
  .lb-stage { padding: 0 8px; }
  .lb-stage .gallery-nav { display: none; }
  .subnav { top: 72px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 6px; }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav a { white-space: nowrap; flex: none; }
  .range-row { grid-template-columns: 1fr 48px; }
  .range-row input { grid-column: 1 / -1; }
  .mini-scores { grid-template-columns: repeat(3, 1fr); }
  .recommendation { padding: 26px 22px; }
  .toast-region { bottom: 86px; }
}
@media (max-width: 480px) {
  .header-inner { gap: 8px; padding: 8px 12px; }
  .brand { gap: 8px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-small { font-size: .58rem; letter-spacing: .08em; }
  .brand-name { font-size: 1.1rem; }
  .mode-toggle { gap: 6px; padding: 4px 6px 4px 10px; }
  .mode-toggle .mt-text { font-size: .82rem; }
  .mode-toggle .switch { width: 40px; }
  .mode-toggle[aria-checked="true"] .switch::after { transform: translateX(12px); }
}
@media print {
  .site-header, .bottom-nav, .site-footer, .card-actions, .detail-actions, .subnav { display: none !important; }
}
