/* Trinity Developers — charcoal, gold, ivory. Text colours meet WCAG 2.2 AA contrast. */
:root {
  --charcoal: #1d1d1b; --charcoal-2: #2a2a27; --charcoal-3: #3a3a36;
  --gold: #c9a24a;        /* decorative and on dark backgrounds */
  --gold-deep: #7d5f1c;   /* gold text on ivory (5.6:1) */
  --gold-soft: #efe2bf;
  --ivory: #f8f5ef; --ivory-2: #f0ebe1; --white: #fff;
  --ink: #1d1d1b; --muted: #5b5852; --line: #ddd5c6;
  --ok: #1f6b3a; --warn: #8a5a00; --bad: #a12a1f; --info: #24527a;
  --radius: 10px; --shadow: 0 6px 24px rgba(29, 29, 27, .08);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 16px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); text-underline-offset: 3px; }
a:hover { color: var(--charcoal); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--charcoal); }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.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 { position: absolute; left: 12px; top: -60px; background: var(--charcoal); color: var(--white); padding: 10px 16px; z-index: 100; border-radius: 6px; }
.skip:focus { top: 12px; color: var(--white); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--gold-deep); margin-bottom: .6rem; }
.dark .eyebrow { color: var(--gold); }
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section.alt { background: var(--ivory-2); }
.section.dark { background: var(--charcoal); color: #ece7dc; }
.dark h1, .dark h2, .dark h3 { color: var(--white); }
.dark a:not(.btn) { color: var(--gold); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }
.dark .lead { color: #cfc8b8; }
.center { text-align: center; } .center .lead { margin-left: auto; margin-right: auto; }
[data-center] { justify-content: center; }
.h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); } .h3 { font-size: 1.35rem; }
.mt { margin-top: 24px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.4em; min-height: 44px; border-radius: 999px; border: 2px solid transparent;
  font: 600 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-gold { background: var(--gold); color: var(--charcoal); }
.btn-gold:hover { background: #d8b45f; color: var(--charcoal); }
.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: var(--charcoal-3); color: var(--white); }
.btn-line { border-color: currentColor; color: var(--charcoal); background: transparent; }
.btn-line:hover { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }
.dark .btn-line { color: var(--white); }
.dark .btn-line:hover { background: var(--white); color: var(--charcoal); border-color: var(--white); }
.btn-sm { padding: .45em 1em; min-height: 36px; font-size: .85rem; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--gold-deep); font: inherit; text-decoration: underline; cursor: pointer; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(29, 29, 27, .97); color: var(--white); border-bottom: 1px solid #000; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; flex-shrink: 0; }
.brand:hover { color: var(--white); }
.brand-mark { width: auto; height: 44px; }
.brand-name { font: 500 1.35rem/1 var(--sans); letter-spacing: .16em; color: var(--gold); }
.brand-sub { display: block; font: 400 .78rem/1 var(--sans); letter-spacing: .12em; color: #d9c48f; margin-top: 5px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a, .nav summary { color: #ece7dc; text-decoration: none; font-size: .9rem; font-weight: 500; padding: 10px 8px; white-space: nowrap; border-radius: 6px; cursor: pointer; list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav a:hover, .nav summary:hover, .nav a[aria-current='page'] { color: var(--gold); }
.nav details { position: relative; }
.nav .menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px; background: var(--charcoal-2); border: 1px solid #000; border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow); display: grid; }
.nav .menu a { padding: 9px 12px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .account-link { color: #ece7dc; font-size: .9rem; text-decoration: none; }
.header-actions .account-link:hover { color: var(--gold); }
.menu-toggle { display: none; background: none; border: 1px solid #55534d; color: var(--white); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; }
@media (max-width: 1240px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--charcoal); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid #000; max-height: calc(100vh - 72px); overflow: auto; }
  .nav.open { display: flex; }
  .nav .menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; background: transparent; }
  .header-actions .btn { display: none; }
}

/* hero */
.hero { position: relative; background: var(--charcoal); color: var(--white); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29,29,27,.95) 0%, rgba(29,29,27,.7) 55%, rgba(29,29,27,.35) 100%); }
.hero-inner { position: relative; z-index: 1; padding-top: clamp(64px, 10vw, 130px); padding-bottom: clamp(48px, 7vw, 90px); }
.hero .btn-line { color: var(--white); }
.hero .btn-line:hover { background: var(--white); color: var(--charcoal); border-color: var(--white); }
.hero h1 { color: var(--white); max-width: 14em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { color: #ddd6c6; }
.hero .btn-row { margin-top: 28px; }
.search-box { margin-top: 36px; background: var(--white); color: var(--ink); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); max-width: 920px; }
.search-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.search-tabs label { position: relative; }
.search-tabs input { position: absolute; opacity: 0; }
.search-tabs span { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--ivory-2); font-weight: 600; font-size: .9rem; cursor: pointer; }
.search-tabs input:checked + span { background: var(--charcoal); color: var(--white); }
.search-tabs input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.search-fields { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr auto; gap: 10px; }
@media (max-width: 760px) { .search-fields { grid-template-columns: 1fr; } }

/* forms */
label { font-weight: 600; font-size: .9rem; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
input:not([type]), input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=date], input[type=datetime-local], input[type=search], input[type=url], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid #bdb4a3; border-radius: 8px; background: var(--white); color: var(--ink); font: inherit; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--charcoal); outline: 3px solid var(--gold-soft); outline-offset: 0; }
[aria-invalid=true] { border-color: var(--bad) !important; }
.field-error { color: var(--bad); font-size: .85rem; font-weight: 500; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-bottom: 12px; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--charcoal); flex-shrink: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.checks .check { margin: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; }
legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; padding: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-status { margin-top: 12px; padding: 12px 14px; border-radius: 8px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #e3f1e7; color: var(--ok); }
.form-status.err { background: #f8e4e1; color: var(--bad); }
.hp { position: absolute; left: -5000px; }
.card-form { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }

/* cards & grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.card h3 { margin-bottom: .35em; }
.dark .card { background: var(--charcoal-2); border-color: #000; }
.service-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.service-card .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--charcoal); color: var(--gold); display: grid; place-items: center; }
.service-card .more { margin-top: auto; font-weight: 600; color: var(--gold-deep); }
.icon svg { width: 24px; height: 24px; }

.listing-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; position: relative; transition: box-shadow .15s; }
.listing-card:hover { box-shadow: var(--shadow); }
.listing-card .media { aspect-ratio: 4 / 3; background: var(--ivory-2); position: relative; }
.listing-card .media { overflow: hidden; }
.listing-card .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.listing-card .noimg { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: .9rem; }
.listing-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.listing-card h3 { font-size: 1.25rem; margin: 0; }
.listing-card h3 a { color: var(--charcoal); text-decoration: none; }
.listing-card h3 a::after { content: ''; position: absolute; inset: 0; }
.listing-card h3 a:focus-visible { outline: none; }
.listing-card:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.listing-card .price { font-weight: 700; font-size: 1.1rem; }
.listing-card .price small { font-weight: 500; color: var(--muted); }
.listing-card .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: .88rem; }
.listing-card .loc { color: var(--muted); font-size: .9rem; }
.listing-card .ref { font-size: .78rem; color: var(--muted); margin-top: auto; }
.fav-btn { position: absolute; top: 10px; right: 10px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.94); display: grid; place-items: center; cursor: pointer; color: var(--charcoal); }
.fav-btn[aria-pressed=true] { color: var(--bad); }
.fav-btn svg { width: 20px; height: 20px; }
.fav-btn[aria-pressed=true] svg path { fill: currentColor; }
.tags { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 1; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .02em; background: var(--charcoal); color: var(--white); }
.tag.gold { background: var(--gold); color: var(--charcoal); }
.tag.status { background: var(--bad); }
.tag.sample { background: var(--info); }

.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #e3f1e7; color: var(--ok); font-size: .82rem; font-weight: 600; }
.badge svg { width: 16px; height: 16px; }
.badge.neutral { background: var(--ivory-2); color: var(--muted); }

/* marketplace layout */
.page-head { padding: 40px 0 24px; border-bottom: 1px solid var(--line); background: var(--ivory-2); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: #a8a090; }
.market { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 32px; padding-top: 32px; padding-bottom: 64px; align-items: start; }
@media (max-width: 920px) { .market { grid-template-columns: minmax(0, 1fr); } }
.filters { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px; position: sticky; top: 90px; }
.filters summary { font-weight: 700; cursor: pointer; }
@media (min-width: 921px) { .filters summary { display: none; } }
@media (max-width: 920px) { .filters { position: static; } }
.filters .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.results-bar select { width: auto; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; color: var(--charcoal); background: var(--white); }
.pager [aria-current] { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }
.empty { text-align: center; padding: 48px 20px; background: var(--white); border: 1px dashed var(--line); border-radius: 14px; }

/* detail */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; padding-top: 32px; padding-bottom: 64px; align-items: start; }
@media (max-width: 980px) { .detail { grid-template-columns: minmax(0, 1fr); } .aside-box { position: static; } }
.gallery { display: grid; gap: 10px; }
.gallery .main { aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; background: var(--ivory-2); }
.gallery .main { position: relative; }
.gallery .main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.thumbs button { flex: 0 0 96px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; scroll-snap-align: start; }
.thumbs button[aria-current=true] { border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 24px 0; padding: 0; list-style: none; }
.facts li { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.facts b { display: block; font-size: 1.05rem; }
.facts span { color: var(--muted); font-size: .82rem; }
.amenities { columns: 2 200px; padding-left: 1.1em; }
.aside-box { position: sticky; top: 90px; display: grid; gap: 16px; }
.price-big { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; line-height: 1.1; }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.map-box { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--ivory-2); }
.map-box iframe { width: 100%; height: 340px; border: 0; display: block; }
.map-box .map-consent { padding: 24px; text-align: center; }
.notice { padding: 14px 16px; border-radius: 10px; background: var(--gold-soft); color: #4a3a12; }
.notice.status-sold { background: #f8e4e1; color: var(--bad); }

/* prose & tables */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; font-size: 1.8rem; }
.prose ul { padding-left: 1.2em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--ivory-2); font-weight: 700; font-size: .85rem; }
tr:last-child td { border-bottom: 0; }
.ticks { list-style: none; padding: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1d1b' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: step; position: relative; padding-top: 52px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--charcoal); display: grid; place-items: center; font-weight: 700; }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.choice-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.choice { display: block; text-decoration: none; color: inherit; background: var(--white); border: 1.5px solid var(--line); border-radius: 14px; padding: 22px; }
.choice:hover { border-color: var(--charcoal); color: inherit; }
.choice strong { display: block; font-family: var(--serif); font-size: 1.35rem; color: var(--charcoal); }
.rove-hero { border-radius: 14px; overflow: hidden; }
.rove-hero img { width: 100%; height: 220px; object-fit: cover; }
.rove-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.rove-gallery img { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; }
.product { display: flex; flex-direction: column; gap: 6px; }
.product .area { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; color: var(--gold-deep); line-height: 1; }

/* footer */
.site-footer { background: var(--charcoal); color: #cfc8b8; padding: 64px 0 32px; font-size: .95rem; }
.site-footer a { color: #ece7dc; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid #3a3a36; margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #1f7a43; color: var(--white); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.wa-float:hover { background: #17633a; color: var(--white); }
.wa-float svg { width: 28px; height: 28px; }

/* app shells (admin & portal) */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 72px); }
.app-nav { background: var(--charcoal-2); padding: 20px 12px; color: #ece7dc; }
.app-nav a, .app-nav button { display: block; width: 100%; text-align: left; color: #ece7dc; text-decoration: none; padding: 10px 12px; border-radius: 8px; background: none; border: 0; font: inherit; cursor: pointer; }
.app-nav a:hover, .app-nav a[aria-current=page] { background: var(--charcoal-3); color: var(--gold); }
.app-nav .group { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #a8a090; margin: 16px 12px 6px; }
.app-main { padding: 28px clamp(16px, 3vw, 40px) 64px; min-width: 0; }
@media (max-width: 860px) { .app { grid-template-columns: 1fr; } .app-nav { display: flex; overflow-x: auto; gap: 4px; padding: 8px; } .app-nav .group { display: none; } .app-nav a { white-space: nowrap; width: auto; } }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.toolbar .filters-inline { display: flex; gap: 8px; flex-wrap: wrap; }
.toolbar input, .toolbar select { width: auto; min-width: 160px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stat b { display: block; font-size: 1.8rem; font-family: var(--serif); }
.stat span { color: var(--muted); font-size: .85rem; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--ivory-2); }
.pill.ok { background: #e3f1e7; color: var(--ok); } .pill.warn { background: #fbefd7; color: var(--warn); } .pill.bad { background: #f8e4e1; color: var(--bad); } .pill.info { background: #e1ecf6; color: var(--info); }
.rowlink { cursor: pointer; }
.rowlink:hover td { background: #faf7f1; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 20px; }
.timeline { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.timeline li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photo-grid figure { margin: 0; background: var(--ivory-2); border-radius: 8px; overflow: hidden; border: 2px solid transparent; }
.photo-grid figure.cover { border-color: var(--gold); }
.photo-grid img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.photo-grid figcaption { padding: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.consent-banner { position: fixed; left: 16px; bottom: 16px; right: 90px; max-width: 440px; z-index: 80; box-shadow: var(--shadow); }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--charcoal); color: var(--white); padding: 12px 20px; border-radius: 10px; z-index: 90; box-shadow: var(--shadow); }
.copybox { display: flex; gap: 8px; } .copybox input { font-family: monospace; font-size: .85rem; }
dialog { border: 0; border-radius: 14px; padding: 0; max-width: min(720px, 94vw); width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(29,29,27,.55); }
dialog .dlg-body { padding: 24px; max-height: 80vh; overflow: auto; }
.auth-box { max-width: 460px; margin: 48px auto 80px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .wa-float, .fav-btn, form { display: none !important; } body { background: #fff; } }
