/* Carvelli Homes: Zillow-style, mobile-first */
:root {
  --blue: #0b5cff; --blue-d: #0041d9; --blue-l: #eaf1ff;
  --ink: #111827; --ink2: #374151; --mute: #6b7280; --line: #e5e7eb; --bg: #f7f8fa;
  --green: #16a34a; --r: 14px; --sh: 0 1px 2px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
html.lock { overflow: hidden; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.has-mbar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); font-weight: 800; }
p { margin: 0; }
svg { width: 1.1em; height: 1.1em; flex: none; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--mute); }
.tiny { font-size: .8rem; }
.center { text-align: center; margin-top: 24px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; box-shadow: 0 0 0 3px rgba(22,163,74,.2); flex: none; }
.err { color: #b91c1c; font-size: .9rem; }
.err a { text-decoration: underline; font-weight: 700; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 10px; font-weight: 700; font-size: .98rem; white-space: nowrap; transition: background .15s, transform .05s, box-shadow .15s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.btn-lg { min-height: 52px; padding: 0 22px; font-size: 1.02rem; }
.btn.full { width: 100%; }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 4px 14px rgba(11,92,255,.28); }
.btn-blue:hover { background: var(--blue-d); }
.btn-outline { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.btn-outline:hover { background: var(--blue-l); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #f1f5f9; }
.btn-ghost { color: var(--blue); }
.btn-ghost:hover { background: var(--blue-l); }
.btn-ghost-w { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.btn-ghost-w:hover { background: rgba(255,255,255,.12); }
.btn:disabled { opacity: .6; pointer-events: none; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; }
.logo svg { width: 30px; height: 30px; }
.hdr-nav { display: flex; gap: 22px; margin-right: auto; font-weight: 600; color: var(--ink2); font-size: .95rem; }
.hdr-nav a:hover { color: var(--blue); }
@media (max-width: 860px) { .hdr-nav { display: none; } .hdr-call { margin-left: auto; } .hide-sm { display: none; } }

/* Tags */
.tag { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.95); color: var(--ink); font-weight: 700; font-size: .78rem; padding: 5px 10px; border-radius: 999px; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.tag .dot { width: 7px; height: 7px; box-shadow: none; }

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; background: #0f172a; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.hero-bg.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-bg { transition: none; } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,15,30,.35) 0%, rgba(10,15,30,.55) 45%, rgba(10,15,30,.85) 100%); }
.hero-in { position: relative; padding: clamp(56px, 10vw, 120px) 0 36px; max-width: 760px; margin-left: max(16px, calc((100% - 1200px) / 2)); }
.pill-w { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); font-weight: 700; font-size: .85rem; backdrop-filter: blur(6px); }
.hero h1 { font-size: clamp(2.1rem, 1.3rem + 4vw, 3.8rem); font-weight: 800; margin: 18px 0 14px; letter-spacing: -.03em; }
.hero p { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: rgba(255,255,255,.9); max-width: 600px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-stats { display: flex; gap: 32px; margin: 36px 0 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); }
.hero-stats dt { font-size: 1.6rem; font-weight: 800; }
.hero-stats dd { margin: 0; color: rgba(255,255,255,.8); font-size: .85rem; }
@media (max-width: 560px) { .hero-cta .btn { flex: 1 1 100%; } .hero-stats { gap: 20px; } .hero-stats dt { font-size: 1.3rem; } }

/* Sections */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.link { color: var(--blue); font-weight: 700; }

/* Cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-past .card:nth-child(n+7) { display: none; }
.grid-past.open .card { display: flex; }
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); border: 1px solid var(--line); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.12); transform: translateY(-2px); }
.card-media { position: relative; aspect-ratio: 3 / 2; background: #e5e7eb; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.03); }
.media-meta { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; }
.media-meta span { display: inline-flex; align-items: center; gap: 5px; background: rgba(0,0,0,.65); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.media-meta svg { width: 13px; height: 13px; }
.card-body { display: block; padding: 14px 16px 4px; }
.price { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.price small { font-size: .95rem; font-weight: 600; color: var(--mute); margin-left: 2px; }
.specs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; color: var(--ink2); font-size: .92rem; margin-top: 2px; }
.specs b { font-weight: 800; color: var(--ink); }
.specs i { width: 1px; height: 12px; background: #cbd5e1; margin: 0 6px; }
.addr { color: var(--mute); font-size: .9rem; margin-top: 2px; }
.fin { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .8rem; font-weight: 700; color: var(--green); background: #ecfdf3; padding: 3px 9px; border-radius: 999px; }
.card-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 16px 16px; margin-top: auto; }
.card-cta .btn { min-height: 44px; padding: 0 10px; font-size: .92rem; }
.card.past .card-body { padding-bottom: 16px; }
.card.past .card-media img { filter: saturate(.75); }

/* Rails (suggestions) */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(320px, 82%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; margin: 0 -2px; scrollbar-width: thin; }
.rail .card { scroll-snap-align: start; }
.rail .card:hover { transform: none; }

/* Financing band */
.fin-band { background: linear-gradient(135deg, #0b5cff 0%, #2563eb 60%, #1d4ed8 100%); color: #fff; }
.fin-in { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 36px 0; }
.fin-band p { color: rgba(255,255,255,.88); margin-top: 6px; max-width: 560px; }
.fin-ic { width: 58px; height: 58px; border-radius: 16px; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.fin-ic svg { width: 28px; height: 28px; }
.fin-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.fin-band .btn-blue { background: #fff; color: var(--blue); box-shadow: none; }
.fin-band .btn-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
@media (max-width: 860px) { .fin-in { grid-template-columns: 1fr; } .fin-btns .btn { flex: 1; } }

/* Alerts */
.alerts { background: var(--bg); }
.alerts-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.alerts h2 { margin-bottom: 8px; }
.alert-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; background: #fff; padding: 18px; border-radius: var(--r); box-shadow: var(--sh); }
.alert-form input, .alert-form select { min-height: 50px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 14px; font: inherit; font-size: 16px; background: #fff; }
.alert-form input:focus, .alert-form select:focus { outline: none; border-color: var(--blue); }
.alert-form input[type=tel] { grid-column: 1 / -1; }
.alert-form .tiny { grid-column: 1 / -1; }
.alert-ok { display: flex; gap: 10px; align-items: center; font-weight: 700; color: var(--green); }
.alert-ok svg { width: 26px; height: 26px; }
@media (max-width: 760px) { .alerts-in { grid-template-columns: 1fr; } .alert-form { grid-template-columns: 1fr; } }

/* How it works */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { background: var(--bg); border-radius: var(--r); padding: 22px; }
.steps b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; margin-bottom: 12px; }
.steps h3 { font-size: 1.1rem; margin-bottom: 4px; }
.steps p { color: var(--ink2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Towns + FAQ */
.towns { background: var(--bg); }
.town-list { display: flex; flex-wrap: wrap; gap: 10px; }
.town-list span { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); padding: 9px 14px; border-radius: 999px; font-weight: 600; }
.town-list svg { color: var(--blue); }
.faq { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq-list summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-list summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--blue); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { color: var(--ink2); margin-top: 8px; }
@media (max-width: 760px) { .faq { grid-template-columns: 1fr; gap: 8px; } }

/* CTA band */
.cta-band { background: #0f172a; color: #fff; text-align: center; padding: 56px 0; }
.cta-band p { color: rgba(255,255,255,.8); margin-top: 8px; }
.cta-band .hero-cta { justify-content: center; }

/* Footer */
.ftr { border-top: 1px solid var(--line); padding: 36px 0; background: #fff; }
.ftr-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ftr p { color: var(--mute); max-width: 380px; margin-top: 8px; font-size: .92rem; }
.ftr-links { display: flex; flex-direction: column; gap: 10px; font-weight: 600; }
.ftr-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); }
.eho { display: inline-flex; align-items: center; gap: 8px; color: var(--mute); font-size: .85rem; }
.eho svg { width: 22px; height: 22px; }
.ftr small { color: var(--mute); }

/* Mobile sticky bar */
.mbar { display: none; }
@media (max-width: 960px) {
  .mbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.06); }
  .mbar:empty { display: none; }
  .mbar .btn { min-height: 50px; padding: 0 10px; }
}
@media (min-width: 961px) { body.has-mbar { padding-bottom: 0; } }

/* ---------- House page ---------- */
.crumbs { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 12px; }
.crumbs a, .share { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--blue); font-size: .95rem; }
.gal { position: relative; display: grid; gap: 8px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; height: clamp(300px, 46vw, 520px); border-radius: var(--r); overflow: hidden; }
.gal button { position: relative; overflow: hidden; background: #e5e7eb; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s, filter .2s; }
.gal button:hover img { transform: scale(1.03); filter: brightness(.92); }
.gal-main { grid-row: 1 / 3; }
.gal-few { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gal-few .gal-tile { display: none; }
.gal-btns { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; }
.gal-pill { display: inline-flex !important; align-items: center; gap: 7px; background: #fff !important; padding: 9px 14px; border-radius: 10px; font-weight: 700; font-size: .9rem; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.gal-tag { top: 12px; left: 12px; }
@media (max-width: 760px) {
  .crumbs { padding: 10px 0; }
  .gal { width: 100%; grid-template-columns: 1fr; grid-template-rows: 1fr; height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
  .gal-tile { display: none; }
}

.dp { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; padding-top: 24px; align-items: start; }
.dp-price { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; }
.dp-price small { font-size: 1.1rem; color: var(--mute); font-weight: 600; }
.dp-specs { display: flex; gap: 22px; margin: 4px 0 6px; }
.dp-specs div { display: flex; align-items: baseline; gap: 5px; }
.dp-specs b { font-size: 1.25rem; font-weight: 800; }
.dp-specs span { color: var(--ink2); }
.dp-addr { display: flex; align-items: center; gap: 6px; color: var(--ink2); font-size: 1.02rem; }
.dp-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dp-pills span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-weight: 700; font-size: .85rem; }
.dp-pills .st.on { background: #ecfdf3; border-color: #bbf7d0; color: #166534; }
.dp-pills .fin-pill { background: var(--blue-l); border-color: #c7d7fe; color: var(--blue-d); }
.dp-cta-inline { display: none; }
.dp-sec { padding: 28px 0; border-top: 1px solid var(--line); margin-top: 24px; }
.dp-sec + .dp-sec { margin-top: 0; }
.dp-sec h2 { font-size: 1.35rem; margin-bottom: 12px; }
.dp-desc { color: var(--ink2); font-size: 1.04rem; white-space: pre-line; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--mute); }
.facts dd { margin: 0; font-weight: 700; text-align: right; }
.vid { background: #000; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; }
.vid video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.fin-card { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; background: var(--blue-l); border: 0; border-radius: var(--r); padding: 20px; margin-top: 24px; }
.fin-card + .dp-sec { margin-top: 24px; }
.fin-card .fin-ic { background: var(--blue); color: #fff; width: 48px; height: 48px; border-radius: 12px; }
.fin-card .fin-ic svg { width: 24px; height: 24px; }
.fin-card h3 { font-size: 1.1rem; }
.fin-card p { color: var(--ink2); font-size: .95rem; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.thumbs button { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: #e5e7eb; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.thumbs button:hover img { transform: scale(1.05); }
.gone { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; margin-bottom: 18px; }
.gone > svg { width: 24px; height: 24px; color: #c2410c; }
.gone div { flex: 1; font-size: .95rem; }

.dp-side { position: sticky; top: 80px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 8px 30px rgba(0,0,0,.08); padding: 22px; display: grid; gap: 10px; }
.side-k { display: flex; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 4px; }
.side-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.side-row a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; border-radius: 10px; background: var(--bg); font-weight: 700; color: var(--ink2); }
.side-row a:hover { background: var(--blue-l); color: var(--blue); }
.side-card .tiny { text-align: center; }
.similar { background: var(--bg); margin-top: 40px; }

@media (max-width: 960px) {
  .dp { grid-template-columns: 1fr; padding-top: 16px; }
  .dp-side { display: none; }
    .facts { grid-template-columns: 1fr; }
  .fin-card { grid-template-columns: auto 1fr; }
  .fin-card .btn { grid-column: 1 / -1; }
}

/* ---------- Sheets (bottom sheets on phone, modal on desktop) ---------- */
.sheet { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(15,23,42,.55); opacity: 0; transition: opacity .2s; }
.sheet-card { position: relative; width: 100%; max-width: 480px; max-height: 92dvh; overflow-y: auto; overflow-x: hidden; background: #fff; border-radius: 20px 20px 0 0; padding: 26px 20px calc(22px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.sheet.on .sheet-bg { opacity: 1; }
.sheet.on .sheet-card { transform: none; }
@media (min-width: 640px) {
  .sheet { align-items: center; }
  .sheet-card { border-radius: 20px; transform: translateY(24px) scale(.98); opacity: 0; transition: transform .2s, opacity .2s; padding: 30px 28px; }
  .sheet.on .sheet-card { opacity: 1; }
}
.x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); }
.x svg { width: 18px; height: 18px; }
.sheet h3 { font-size: 1.4rem; font-weight: 800; padding-right: 40px; }
#contact-sheet .sheet-card { text-align: center; }
#contact-sheet h3 { padding: 0 40px; }
#cs-home { margin-top: 4px; font-size: .92rem; }
.big-num { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.02em; color: var(--blue); margin: 14px 0 18px; }
.cs-actions { display: grid; gap: 10px; margin-bottom: 12px; }

.step-n { color: var(--blue); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.bk-home { display: flex; gap: 12px; align-items: center; background: var(--bg); padding: 10px; border-radius: 12px; margin: 16px 0 6px; }
.bk-home img { width: 76px; height: 58px; object-fit: cover; border-radius: 8px; }
.bk-home div { display: grid; font-size: .9rem; line-height: 1.35; }
.bk-home b { font-size: 1.05rem; }
.bk-home small { color: var(--mute); }
.lbl { font-weight: 700; margin: 18px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-right: -20px; padding-right: 20px; scrollbar-width: none; }
.chips label, .pick3 label { position: relative; } /* keep the hidden radios inside their chip so they never widen the sheet */
.chips input, .pick3 input { position: absolute; opacity: 0; pointer-events: none; top: 0; left: 0; }
.day span { display: grid; place-items: center; min-width: 74px; padding: 10px 8px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; line-height: 1.25; }
.day b { font-size: .92rem; }
.day small { color: var(--mute); font-size: .78rem; }
.chip-r span { display: inline-block; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; cursor: pointer; }
.day input:checked + span, .chip-r input:checked + span { border-color: var(--blue); background: var(--blue-l); color: var(--blue-d); }
.day input:checked + span small { color: var(--blue-d); }
.day input:focus-visible + span, .chip-r input:focus-visible + span, .pick3 input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.bk-step > .btn { margin-top: 22px; }
.link-back { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-weight: 700; margin-bottom: 10px; }
.pick3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 6px; }
.pick3 span { display: grid; place-items: center; gap: 6px; padding: 14px 6px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 700; font-size: .9rem; cursor: pointer; text-align: center; }
.pick3 svg { width: 22px; height: 22px; color: var(--mute); }
.pick3 input:checked + span { border-color: var(--blue); background: var(--blue-l); color: var(--blue-d); }
.pick3 input:checked + span svg { color: var(--blue); }
.fld { display: grid; gap: 6px; font-weight: 700; font-size: .92rem; margin-top: 14px; }
.fld[hidden] { display: none; }
.fld input, .fld textarea { font: inherit; font-size: 16px; font-weight: 500; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 50px; resize: vertical; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,92,255,.15); }
.bk-step .tiny { text-align: center; margin-top: 10px; }
#bk-err { margin-top: 12px; }
.done { text-align: center; display: grid; gap: 12px; padding-top: 8px; }
.done h3 { padding: 0; }
.done p { color: var(--ink2); }
.ok { width: 64px; height: 64px; border-radius: 50%; background: #dcfce7; color: var(--green); display: grid; place-items: center; margin: 0 auto 4px; }
.ok svg { width: 32px; height: 32px; }

/* ---------- Fullscreen viewer ---------- */
.viewer { position: fixed; inset: 0; z-index: 60; background: #0b0f17; color: #fff; display: grid; grid-template-rows: auto 1fr auto; }
.viewer[hidden] { display: none; }
.v-top { display: flex; align-items: center; gap: 12px; padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top)); }
.v-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); }
.v-tabs { display: flex; gap: 6px; flex: 1; justify-content: center; }
.v-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-weight: 700; color: rgba(255,255,255,.75); }
.v-tabs button.on { background: #fff; color: var(--ink); }
.v-count { min-width: 60px; text-align: right; font-weight: 700; font-size: .9rem; color: rgba(255,255,255,.75); }
.v-stage { overflow-y: auto; overscroll-behavior: contain; }
.v-list { display: grid; gap: 8px; width: min(1100px, 100%); margin: 0 auto; padding: 4px 0 20px; }
.v-list img { width: 100%; height: auto; background: #111; min-height: 200px; }
.v-video { height: 100%; display: grid; place-items: center; padding: 0 0 12px; }
.v-video video { width: min(1200px, 100%); max-height: 100%; aspect-ratio: 16 / 9; background: #000; object-fit: contain; }
.v-cta { display: flex; gap: 10px; justify-content: center; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.1); }
.v-cta .btn { flex: 1; max-width: 260px; }
