/* Lantaw Realty demo. Quiet, photo-led: one sans family, warm white ground, no hairline boxes around content. */
:root {
  --paper: #f7f6f2;
  --card: #ffffff;
  --soft: #efede7;
  --ink: #161816;
  --muted: #62645d;
  --rule: #e3e0d8;
  --edge: #8f8b80;
  --accent: #1f3b2d;
  --accent-dark: #132519;
  --sage: #e3eadf;
  --error: #b3261e;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --gutter: 20px;
  --max: 1280px;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  body { font-size: 17px; }
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--sans); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.2rem, 5.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none; border-radius: 10px;
}
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font: inherit; }
.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Buttons and fields */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 26px; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background-color 150ms, color 150ms;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn-quiet { background: var(--soft); color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: #fff; }
.link-btn {
  background: none; border: 0; padding: 4px 0; min-height: 32px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; color: var(--ink); font-weight: 500;
}
.link-btn:hover { text-decoration-thickness: 2px; }
.label, legend { display: block; font-size: 0.875rem; font-weight: 500; color: #3a3c37; margin-bottom: 6px; padding: 0; }
.field {
  display: block; width: 100%; min-width: 0; min-height: 50px; padding: 11px 14px;
  background: var(--card); border: 1px solid var(--edge); border-radius: 12px; appearance: none; line-height: 1.5;
  transition: border-color 150ms;
}
.field:hover { border-color: var(--ink); }
.field::placeholder { color: var(--muted); opacity: 1; }
select.field {
  height: 50px; padding-right: 38px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23161816' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
textarea.field { min-height: 104px; resize: vertical; }
.field[aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.error { display: block; color: var(--error); font-size: 0.875rem; min-height: 1.4em; margin-top: 2px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.check-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex: none; }
/* Focus ring goes around the whole pill, not the small control inside it. */
.check:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 999px; }
.check input:focus-visible { outline: none; }
/* Filter and time choices read as pills; the native control stays visible inside them. */
.check-grid .check, .radio-row .check, .time-row .check {
  min-height: 42px; padding: 0 16px 0 14px; gap: 8px; border-radius: 999px; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--rule); transition: background-color 150ms, box-shadow 150ms;
}
.check-grid .check:hover, .radio-row .check:hover, .time-row .check:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.check-grid .check:has(input:checked), .radio-row .check:has(input:checked), .time-row .check:has(input:checked) {
  background: var(--sage); box-shadow: inset 0 0 0 1px var(--accent);
}

/* Header and footer */
.site-header {
  position: sticky; top: 0; z-index: 30; background: rgba(247, 246, 242, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(22, 24, 22, 0.06);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.wordmark { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.03em; text-decoration: none; white-space: nowrap; }
.wordmark span { font-weight: 400; }
.main-nav { display: none; align-items: center; gap: 32px; }
.main-nav a { text-decoration: none; padding: 8px 0; font-weight: 500; font-size: 0.95rem; color: var(--muted); transition: color 150ms; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav .phone { color: var(--ink); padding: 8px 16px; border-radius: 999px; background: var(--soft); }
.menu-button {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  margin-right: -10px; background: transparent; border: 1px solid var(--edge); border-radius: 999px; cursor: pointer;
}
.menu-button:hover { background: var(--soft); }
@media (min-width: 760px) {
  .main-nav { display: flex; }
  .menu-button { display: none; }
}

dialog#mobile-menu, dialog#lightbox {
  border: 0; background: var(--paper); color: var(--ink); padding: 0; margin: auto;
}
dialog::backdrop { background: rgba(14, 16, 14, 0.55); }
/* Mobile menu: a full-height sheet from the right edge. */
#mobile-menu {
  width: min(360px, 88vw); height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto;
  padding: 14px var(--gutter) 24px;
}
#mobile-menu[open] { animation: sheet-in 220ms cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes sheet-in { from { transform: translateX(32px); opacity: 0; } }
.menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.menu-head h2 { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.menu-links { display: grid; gap: 2px; font-size: 1.6rem; letter-spacing: -0.03em; font-weight: 500; }
.menu-links a { display: block; padding: 8px 0; text-decoration: none; }
.close-btn {
  min-width: 44px; min-height: 44px; padding: 8px 18px; background: var(--soft);
  border: 0; border-radius: 999px; cursor: pointer; font-weight: 500;
}
.close-btn:hover { background: var(--ink); color: #fff; }

.site-footer { margin-top: 120px; border-top: 1px solid var(--rule); }
.footer-grid { display: grid; gap: 28px; padding: 48px 0 32px; font-size: 0.95rem; color: var(--muted); }
.footer-grid h2 { font-size: 0.95rem; font-weight: 500; margin-bottom: 10px; letter-spacing: 0; color: var(--ink); }
.footer-grid p { margin-bottom: 6px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-grid .wordmark { display: inline-block; margin-bottom: 8px; color: var(--ink); }
.footer-legal { padding: 16px 0 32px; font-size: 0.875rem; color: var(--muted); }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
}

/* Generic sections */
main { display: block; }
.section { padding-top: 80px; }
.section-tight { padding-top: 56px; }
.section-loose { padding-top: 104px; }
@media (min-width: 960px) { .section { padding-top: 112px; } .section-loose { padding-top: 136px; } }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 32px; }
.section-head p { color: var(--muted); max-width: 52ch; }
.arrow-link { font-weight: 500; text-decoration: none; padding: 10px 18px; border-radius: 999px; background: var(--soft); font-size: 0.95rem; }
.arrow-link:hover { background: var(--ink); color: #fff; }
.price { color: var(--ink); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: lining-nums tabular-nums; }
.code { font-size: 0.95rem; color: var(--muted); }

/* Home hero: the photo carries the page, the search sits on it as one white bar. */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); }
.hero-photo { position: absolute; inset: 0; z-index: -1; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 10, 0.22) 0%, rgba(10, 12, 10, 0.42) 45%, rgba(10, 12, 10, 0.78) 100%);
}
.hero-inner { padding: 46vw 0 20px; }
.hero-panel { background: none; padding: 0; }
.hero-panel h1 {
  color: #fff; font-size: clamp(2.4rem, 9vw, 5rem); line-height: 1; letter-spacing: -0.045em;
  max-width: 13ch; margin-bottom: 24px; text-wrap: balance; text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}
.hero-sub { display: none; }
.quick-search {
  display: grid; gap: 12px; grid-template-columns: 1fr 1fr; padding: 16px;
  background: var(--card); color: var(--ink); border-radius: 22px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}
.quick-search .span-2 { grid-column: 1 / -1; }
.quick-search .btn { width: 100%; }
@media (min-width: 560px) { .hero-inner { padding-top: 34vw; } }
@media (min-width: 960px) {
  .hero-inner { min-height: min(86vh, 780px); display: flex; align-items: flex-end; padding: 140px 0 56px; }
  .hero-inner > .wrap { width: 100%; }
  .quick-search { max-width: 940px; grid-template-columns: 1.5fr 1fr 1fr auto; align-items: end; padding: 14px 14px 14px 20px; }
  .quick-search .span-2 { grid-column: auto; }
  .quick-search .btn { width: auto; padding: 12px 30px; }
}

/* Cards */
.card-grid { display: grid; gap: 40px 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.listing-card { position: relative; }
.listing-card article { display: flex; flex-direction: column; height: 100%; }
.listing-card .media { overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.listing-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.listing-card .body { padding-top: 16px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
/* Home and similar-listing cards use h3, the listings page uses h2: style both the same. */
.listing-card :is(h2, h3) { order: 1; font-size: 1.05rem; font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; }
.listing-card .price { order: 0; font-size: 1.25rem; }
.listing-card .specs { order: 2; color: var(--muted); font-size: 0.95rem; }
.listing-card .where { order: 3; color: var(--muted); font-size: 0.95rem; }
.listing-card :is(h2, h3) a { text-decoration: none; }
.listing-card:hover :is(h2, h3) a { text-decoration: underline; }
.listing-card :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; }
.listing-card :is(h2, h3) a:focus-visible { outline: none; }
.listing-card:focus-within { outline: 3px solid var(--accent); outline-offset: 6px; border-radius: var(--radius); }

/* Area table */
.area-table { table-layout: fixed; }
.area-table th, .area-table td { text-align: left; padding: 18px 8px 18px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.area-table th:first-child { width: 46%; }
.area-table .num { width: 27%; text-align: right; padding-right: 0; white-space: nowrap; }
.area-table thead th { font-size: 0.875rem; font-weight: 500; color: var(--muted); padding: 0 8px 12px 0; }
.area-table thead th.num { padding-right: 0; }
@media (min-width: 720px) {
  .area-table th:first-child { width: 58%; }
  .area-table .num { width: 21%; }
}
.area-table .city { display: block; color: var(--muted); font-size: 0.95rem; }
.area-table a { font-weight: 500; font-size: 1.15rem; letter-spacing: -0.015em; text-decoration: none; }
.area-table a:hover { text-decoration: underline; }

/* Facts */
.facts { display: grid; gap: 28px; grid-template-columns: 1fr; }
.facts strong { display: block; font-weight: 500; font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 8px; }
.facts p { color: var(--muted); max-width: 40ch; }
@media (min-width: 860px) { .facts { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* Agents teaser */
.teaser { display: grid; gap: 32px; align-items: center; }
.teaser p { margin: 14px 0 24px; max-width: 50ch; color: var(--muted); }
.avatar-row { display: flex; gap: 20px 16px; flex-wrap: wrap; }
.avatar-row li { text-align: left; font-size: 0.95rem; font-weight: 500; width: 96px; }
.avatar-row img { width: 96px; height: 96px; margin-bottom: 10px; border-radius: 50%; background: var(--soft); }
.avatar-row .mono { display: block; color: var(--muted); font-weight: 400; }
@media (min-width: 1100px) { .teaser { grid-template-columns: 1fr auto; gap: 64px; } }

/* Listings page */
.page-head { padding: 56px 0 8px; }
.page-head p { color: var(--muted); margin-top: 10px; }
.results-layout { display: grid; gap: 24px; padding-top: 24px; align-items: start; }
.filters { background: var(--card); border-radius: var(--radius); }
.filters summary {
  padding: 12px 18px; font-weight: 500; cursor: pointer; min-height: 52px; display: flex; align-items: center; gap: 12px;
}
.summary-values { font-weight: 400; font-size: 0.95rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.filters-body { padding: 4px 18px 22px; display: grid; gap: 22px; }
.filters-top { display: flex; justify-content: flex-end; align-items: center; }
.filters .check-grid .check, .filters .radio-row .check { background: var(--paper); }
.range-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.agent-chip { margin-top: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 16px;
  background: var(--sage); border: 0; border-radius: 999px; cursor: pointer;
}
.chip:hover { background: var(--ink); color: #fff; }
#result-count { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; }
.empty { padding: 32px 0; max-width: 56ch; }
.empty p { margin: 8px 0 18px; color: var(--muted); }
.noscript-note { background: var(--card); border-radius: 12px; padding: 12px 16px; margin: 16px 0; }
[hidden] { display: none !important; }
@media (min-width: 960px) {
  .results-layout { grid-template-columns: 290px minmax(0, 1fr); gap: 48px; }
  .filters { position: sticky; top: 92px; background: none; }
  .filters summary { display: none; }
  .filters .range-row { grid-template-columns: 1fr; }
  .filters-body { padding: 0; }
  .filters .check-grid .check, .filters .radio-row .check { background: var(--card); }
}

/* Listing detail */
.crumbs { padding: 24px 0 0; font-size: 0.95rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs li + li::before { content: "›"; margin-right: 10px; color: var(--edge); }
.detail-head { padding: 20px 0 28px; display: grid; gap: 10px; }
.detail-head h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 22ch; text-wrap: balance; }
.detail-head .price { font-size: 1.7rem; margin-top: 6px; }
.detail-head .specs { color: var(--muted); }
.key-facts { display: grid; gap: 8px; margin: 8px 0 0; max-width: 72ch; font-size: 0.95rem; }
.key-facts div { display: grid; grid-template-columns: 4.5rem 1fr; gap: 12px; }
.key-facts dt { color: var(--muted); }
.key-facts dd { margin: 0; }
@media (min-width: 1000px) {
  .detail-head .book-top { display: none; }
  /* Desktop: title block left, key facts in the column above the viewing form, so the gallery starts higher. */
  .detail-head { grid-template-columns: minmax(0, 1fr) 380px; column-gap: 56px; align-items: end; }
  .detail-head > * { grid-column: 1; }
  .detail-head .key-facts { grid-column: 2; grid-row: 1 / span 4; margin: 0; padding: 18px 20px; background: var(--card); border-radius: var(--radius); }
}
.spec-list div { scroll-margin-top: 96px; }
.spec-list div:target { background: var(--sage); box-shadow: -10px 0 0 var(--sage), 10px 0 0 var(--sage); border-radius: 4px; }

/* Mobile booking bar: appears once the header button scrolls away, hides again at the form. */
.book-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--card);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  transform: translateY(100%); visibility: hidden; transition: transform 220ms ease, visibility 0s linear 220ms;
}
.book-bar.is-shown { transform: none; visibility: visible; transition: transform 220ms ease; }
.book-bar-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.book-bar .price { font-size: 1.2rem; line-height: 1.1; display: block; }
.book-bar .code { display: block; font-size: 0.875rem; }
@media (min-width: 1000px) { .book-bar { display: none; } }
/* Room under the footer so the bottom bar never hides its last lines or a focused link. */
@media (max-width: 999px) { body[data-page="listing"] { padding-bottom: 84px; } html:has(body[data-page="listing"]) { scroll-padding-bottom: 84px; } }
.detail-layout { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1000px) { .detail-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; } }
.gallery { display: grid; gap: 10px; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--soft); cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.gallery button:hover img { transform: scale(1.02); }
.thumbs { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.thumbs button { border-radius: 10px; }
.block { margin-top: 56px; }
.block h2 { margin-bottom: 18px; font-size: 1.6rem; }
.prose p { max-width: 64ch; margin-bottom: 14px; }
.feature-list { display: grid; gap: 4px; max-width: 64ch; }
.feature-list li { position: relative; padding: 6px 0 6px 22px; }
.feature-list li::before { content: ""; position: absolute; left: 2px; top: 0.95em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.spec-list { display: grid; grid-template-columns: 1fr; margin: 0; }
.spec-list div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; font-weight: 500; text-align: right; }
.spec-list .wide { display: block; }
.spec-list .wide dt { display: block; margin-bottom: 4px; }
.spec-list .wide dd { font-weight: 400; text-align: left; }
@media (min-width: 720px) { .spec-list .wide { grid-column: 1 / -1; } }

.lot-sheet { display: grid; gap: 16px 32px; align-items: center; margin: 0 0 32px; padding: 20px; background: var(--card); border-radius: var(--radius); }
.lot-sheet svg { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto; }
.lot-sheet figcaption { display: grid; gap: 6px; font-size: 0.95rem; }
.lot-sheet figcaption p { color: var(--muted); }
.lot-sheet figcaption .mono { color: var(--ink); font-weight: 500; }
@media (min-width: 720px) { .lot-sheet { grid-template-columns: 360px 1fr; } }
.ls-text { font: 13px var(--sans); fill: var(--ink); }
.ls-label { font-weight: 500; }
.ls-lot { fill: var(--sage); stroke: var(--accent); stroke-width: 1.5; }
.ls-foot { fill: var(--card); stroke: var(--ink); stroke-width: 1; }
.ls-ghost { fill: none; stroke: var(--edge); stroke-width: 1; stroke-dasharray: 4 3; }
.ls-road { fill: var(--soft); stroke: none; }
.ls-pin { fill: var(--ink); }
.ls-wall { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.ls-arrow { fill: var(--ink); }
.ls-tick { fill: none; stroke: var(--edge); stroke-width: 1; }
.photo-note { margin-top: 10px; font-size: 0.875rem; color: var(--muted); }
@media (min-width: 720px) {
  .spec-list { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}
.panel { background: var(--card); border-radius: 20px; padding: 24px; margin-bottom: 20px; }
.panel h2 { font-size: 1.45rem; margin-bottom: 14px; }
.form-grid { display: grid; gap: 14px; }
.form-hint { font-size: 0.95rem; color: var(--muted); margin: -4px 0 20px; }
.form-split { padding-top: 6px; display: grid; gap: 14px; }
.time-row { display: flex; flex-wrap: wrap; gap: 8px; }
.agent-card { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; }
.agent-card img { width: 64px; height: 64px; border-radius: 50%; background: var(--soft); }
.agent-card h2 { margin: 0; font-size: 1.2rem; }
.agent-card p { font-size: 0.95rem; }
.est-out { margin: 18px 0 0; }
.est-out div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.est-out dt { color: var(--muted); }
.est-out dd { margin: 0; font-weight: 500; }
.est-out .big { border-bottom: 0; padding-top: 16px; }
.est-out .big dd { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.note { font-size: 0.875rem; color: var(--muted); margin-top: 12px; }
.range-line { display: flex; align-items: center; gap: 14px; }
.range-line input { flex: 1; min-width: 0; accent-color: var(--accent); height: 32px; }
.range-line output { min-width: 3.5ch; text-align: right; font-weight: 500; }
.confirmation { text-align: left; padding: 8px 0; }
.confirmation svg { width: 44px; height: 44px; color: var(--accent); margin-bottom: 12px; }
.confirmation h3 { font-size: 1.5rem; margin-bottom: 8px; outline: none; }
.confirmation small { display: block; margin: 10px 0 16px; color: var(--muted); font-size: 0.875rem; }
.not-found { padding: 72px 0 0; max-width: 56ch; }
.not-found p { margin: 12px 0 22px; color: var(--muted); }

/* Lightbox */
#lightbox { width: min(1100px, calc(100% - 16px)); max-height: calc(100dvh - 16px); background: var(--card); overflow: auto; border-radius: 20px; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 10px 20px; }
#lightbox-counter { color: var(--muted); }
.lb-stage img { width: 100%; max-height: 68dvh; object-fit: contain; background: var(--ink); aspect-ratio: 3 / 2; }
.lb-foot { display: grid; gap: 10px; padding: 14px 20px 18px; }
.lb-foot p { font-size: 0.95rem; color: var(--muted); }
.lb-nav { display: flex; gap: 8px; }

/* Agents page */
.agent-list { margin-top: 32px; }
.agent-row { display: grid; gap: 16px; padding: 32px 0; border-bottom: 1px solid var(--rule); }
.agent-row:first-child { padding-top: 8px; }
.agent-row img { width: 96px; height: 96px; border-radius: 50%; background: var(--soft); }
.agent-row h2 { font-size: 1.6rem; }
.agent-row dl { margin: 0; display: grid; gap: 6px; font-size: 0.95rem; }
.agent-row dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.agent-row dt { color: var(--muted); }
.agent-row dd { margin: 0; }
.agent-links { display: grid; gap: 8px; align-content: start; }
.agent-links a { width: fit-content; }
@media (min-width: 860px) {
  .agent-row { grid-template-columns: 96px 1fr 1.1fr 220px; gap: 32px; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.similar-title { margin-bottom: 24px; font-size: 1.6rem; }
