/* Brand colours (--accent, --deep, --bg, --ink) come from brand.css, generated per deployment. Nothing here overrides them. */
:root {
  --muted: #5d5868; --line: #dcd7e4; --line-strong: #8E8A99; --card: #ffffff; --accent-ink: #ffffff;   /* line-strong: 3.05:1 on white, the only boundary of an input (WCAG 1.4.11) */
  --ok: #1f7a4d; --warn: #9a5b00; --err: #b3261e;
  --radius: 14px; --tap: 52px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--bg);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
body { -webkit-text-size-adjust: 100%; padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
/* the top inset (status bar on an installed iPhone/iPad) is taken ONCE: by the band or topbar when there is one, else by the first block */
#app > .shell:first-child, #app > .center:first-child { padding-top: calc(16px + env(safe-area-inset-top)); }
#app > .keyscreen:first-child { padding-top: calc(32px + env(safe-area-inset-top)); }
.loading, .center { text-align: center; padding: 48px 16px; color: var(--muted); }
.center h1 { color: var(--ink); font-size: 24px; }
a { color: var(--highlight); }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.off { display: none !important; }   /* screen 1, set aside while screen 2 is open */
.err { color: var(--err); font-size: 14px; font-weight: 600; }
.errbox { color: var(--err); background: #fdecea; border-radius: 10px; padding: 10px 12px; font-weight: 600; }
.hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }

.shell { max-width: 1100px; margin: 0 auto; padding: 16px; }
.kiosk .shell { min-height: 100vh; display: grid; grid-template-columns: 1fr; gap: 20px; align-content: start; }
@media (min-width: 900px) {
  .kiosk .shell { grid-template-columns: 5fr 6fr; align-items: start; padding: 20px 28px 28px; gap: 28px; }
  .kiosk .col-left { position: sticky; top: 20px; }
}
.qr .shell { max-width: 560px; display: grid; gap: 16px; }

.badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: #fff3d6; color: var(--warn); border: 1px solid #f0d9a0; border-radius: 999px; padding: 3px 10px; vertical-align: middle; }

.listing { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.listing .photo, .listing .nophoto { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #e9e5ef; }
.listing.compact { display: grid; grid-template-columns: 104px 1fr; gap: 12px; align-items: center; padding: 12px; }
.listing.compact .photo, .listing.compact .nophoto { width: 104px; height: 78px; aspect-ratio: auto; border-radius: 10px; }
.listing.compact .info { padding: 0; min-width: 0; }
.listing.compact .addr { font-size: 18px; margin: 2px 0 2px; }
.listing.compact .area { margin: 0 0 6px; font-size: 14px; }
.listing.compact .facts { gap: 4px 12px; font-size: 14px; }
.listing.compact .price { font-size: 18px; }
.listing.compact .badge { font-size: 11px; padding: 2px 8px; }
.listing .info { padding: 16px 18px 18px; }
.listing .addr { font-size: 22px; line-height: 1.2; margin: 8px 0 4px; }
.listing .area { color: var(--muted); margin: 0 0 10px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-weight: 600; align-items: baseline; }
.facts li { white-space: nowrap; }
.price { font-size: 22px; font-weight: 800; color: var(--deep); }
.agent { font-size: 15px; line-height: 1.45; }
.agent strong { display: block; font-size: 17px; }
.agent .phones { color: var(--muted); font-size: 14px; }
/* ── The agent hero (shared/hero.js): the realtor's personal brand on every surface ── */
.hero { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 22px 16px 6px; }
.hero-text { display: grid; gap: 4px; justify-items: center; min-width: 0; }
.hero-photo { --size: 160px; width: var(--size); height: var(--size); max-width: 240px; max-height: 240px; border-radius: 26%; object-fit: cover;
  flex: none; background: #e6ebf0; box-shadow: 0 10px 28px rgba(14, 31, 43, .18), 0 0 0 4px #fff, 0 0 0 5px var(--line); margin-bottom: 12px; }
.hero-photo.sm { --size: 84px; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); margin: 0; }
.hero-photo.lg { --size: 160px; }
.hero-photo.xl { --size: 220px; }
.monogram { display: grid; place-items: center; background: var(--deep); color: #fff; font-weight: 800; font-size: calc(var(--size) * .38); letter-spacing: .02em; }
.hero-name { margin: 2px 0 0; font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.hero-role { margin: 0; font-size: 16px; color: var(--ink); }
.hero-phones { margin: 0; font-size: 15px; color: var(--muted); }
.dot-sep { color: var(--muted); padding: 0 2px; }
.hero-welcome { margin: 10px 0 0; font-size: 19px; font-weight: 700; color: color-mix(in srgb, var(--highlight) 85%, var(--ink)); }   /* #0077B6 alone is 4.49:1 on the ground; 15% toward ink ≈ 5.2:1, so any size passes */
.hero-sub { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.hero-sign { margin: 18px 0 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.hero-sign b { color: var(--ink); }
.hero-thanks { padding: 10px 0 0; }
.hero-thanks h2 { margin: 4px 0 0; font-size: 30px; }
.hero-thanks .hero-welcome { font-size: 20px; margin-top: 6px; }
.hero-kiosk .hero-name { font-size: 32px; }
.hero-kiosk { padding-top: 6px; }
/* the agent's own app: photo beside the greeting */
.hero-admin { grid-template-columns: auto 1fr; justify-items: start; text-align: left; align-items: center; gap: 14px; padding: 6px 2px 10px; }
.hero-admin .hero-text { justify-items: start; gap: 2px; }
.hero-admin .hero-name { font-size: 22px; }
.hero-admin .hero-role { font-size: 14px; color: var(--muted); line-height: 1.4; }
.modeline-home { margin: 0 2px 12px; }
/* iPad portrait and other mid widths: photo left, text right, still centred as a block */
@media (min-width: 600px) and (max-width: 899px) {
  .hero-visitor, .hero-kiosk { grid-template-columns: auto 1fr; text-align: left; justify-items: start; align-items: center; gap: 22px; padding: 22px 8px 10px; }
  .hero-visitor .hero-text, .hero-kiosk .hero-text { justify-items: start; }
  .hero-kiosk .hero-photo { --size: 180px; margin: 0; }
}
@media (max-width: 420px) { .hero-name { font-size: 28px; } .hero-photo.lg { --size: 150px; } .hero-admin .hero-name { font-size: 22px; } .hero-welcome { font-size: 17px; } }
@media (max-width: 599px) { .hero-photo.xl { --size: 180px; } .hero-kiosk .hero-name { font-size: 28px; } }
.col-left { display: grid; gap: 16px; align-content: start; }
/* initials are a stand-in, not a portrait: lighter than the photo sizes (after the media queries so nothing overrides them) */
.hero-photo.monogram.lg { --size: 120px; }
.hero-photo.monogram.xl { --size: 150px; }
/* brokerage band: the wordmark on the deep colour; a hairline of the brand's dark highlight under it */
.band { background: var(--deep); border-bottom: 3px solid var(--highlight-dark); padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top)); display: flex; justify-content: center; }
.band img { height: 38px; width: auto; max-width: 60vw; display: block; }
.kiosk .band img { height: 44px; }
.notice { margin: 0 0 16px; font-size: 13px; line-height: 1.45; color: var(--muted); background: color-mix(in srgb, var(--accent) 7%, #fff); border-radius: 10px; padding: 10px 12px; }
.card .sub + .notice { margin-top: -8px; }
.facts { overflow-wrap: anywhere; }
/* the kiosk's QR lives behind a small button (BK 2026-11-05); the pop-up shows it large */
.qr-open { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; min-height: 44px; padding: 6px 14px 6px 8px;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); background: #fff; border: 1.5px solid var(--line-strong); border-radius: 999px; cursor: pointer; }
.qr-mini { display: inline-flex; width: 30px; height: 30px; }
.qr-mini svg { width: 30px; height: 30px; }
.qr-card { justify-items: center; text-align: center; width: min(460px, 100%); }
.qr-big { padding: 10px; background: #fff; }
.qr-big svg { width: min(340px, 60vh, 80vw); height: auto; display: block; }
.qr-card .primary { width: 100%; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; }
.card h2 { margin: 0 0 4px; font-size: 24px; }
.card .sub { margin: 0 0 18px; color: var(--muted); }

form { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .row { grid-template-columns: 1fr; } .row3 { grid-template-columns: 1fr 1fr; } .row3 > :first-child { grid-column: 1 / -1; } }
label.f { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
label.f .opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=url], input[type=date], input[type=time] {
  font: inherit; font-size: 18px; min-height: var(--tap); padding: 10px 14px; border: 1.5px solid var(--line-strong);
  border-radius: 10px; background: #fff; color: var(--ink); width: 100%; -webkit-appearance: none; appearance: none;
}
input:focus-visible, button:focus-visible, a:focus-visible, .choice input:focus-visible + span { outline: 3px solid var(--highlight); outline-offset: 2px; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 46px; padding: 8px 16px; border: 1.5px solid var(--line-strong);
  border-radius: 999px; background: #fff; font-weight: 600; font-size: 16px; user-select: none; }
.choice input:checked + span { background: var(--highlight); border-color: var(--highlight); color: var(--on-highlight); }
.check { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; font-size: 14px; line-height: 1.45; color: var(--ink); }
.check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--highlight); }
/* v2 A9: one quiet line under the consent boxes, linking the privacy notice */
.privacy { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.privacy a { color: inherit; text-decoration: underline; }
/* field-level errors on the visitor form */
.bad input[type=text], .bad input[type=email], .bad input[type=tel] { border-color: var(--err); }
fieldset.bad legend { color: var(--err); }
.fmsg { color: var(--err); font-size: 13px; font-weight: 600; }
label.f .fmsg { margin-top: -2px; }
fieldset .fmsg { order: 9; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ferr { color: var(--err); font-size: 13px; font-weight: 600; }
.ferr:empty { display: none; }

button.primary, .btn.primary { font: inherit; font-size: 18px; font-weight: 700; min-height: 54px; border: 0; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 8px 18px; text-decoration: none; }
button.primary:active { transform: translateY(1px); }
button.primary[disabled] { opacity: .6; }
button.ghost, .btn { font: inherit; font-size: 16px; font-weight: 600; min-height: 46px; padding: 8px 16px; border-radius: 10px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn.danger { color: var(--err); }
.btn[disabled] { opacity: .5; cursor: default; }
.linkbtn { font: inherit; font-size: inherit; color: var(--highlight); background: none; border: 0; padding: 0 4px; cursor: pointer; font-weight: 600; text-decoration: underline; }

.thanks { text-align: center; padding: 28px 18px 32px; }
.thanks .tick { width: 72px; height: 72px; border-radius: 50%; background: #e3f4ea; color: var(--ok); display: grid; place-items: center; margin: 0 auto 16px; font-size: 40px; }
.thanks h2 { margin: 0 0 8px; font-size: 28px; }
.thanks p { color: var(--muted); margin: 0; }

.status { display: flex; align-items: center; gap: 8px; justify-content: flex-end; font-size: 13px; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.dot.off { background: var(--warn); }
.foot { text-align: center; font-size: 13px; color: var(--muted); padding: 10px 0 20px; }
.foot .linkbtn { font-size: 13px; color: var(--muted); text-decoration: none; margin-left: 10px; min-height: 44px; }
.linkbtn.hide { min-height: 44px; }
/* queue banner (agent app) + update toast */
.banner { background: #fff3d6; color: #5a3a00; border: 1px solid #f0d9a0; border-radius: 12px; padding: 12px 14px; font-size: 15px; line-height: 1.5; margin: 0 0 12px; }
.banner .linkbtn { color: #5a3a00; min-height: 44px; padding: 0 6px; }
.toast { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--deep); color: #fff; border-radius: 12px; padding: 12px 16px; font-size: 15px; display: flex; gap: 12px; align-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 20; max-width: calc(100vw - 32px); }
.toast .linkbtn { color: #fff; min-height: 44px; }

/* kiosk exit modal */
.modal { position: fixed; inset: 0; background: rgba(20, 16, 30, .55); display: grid; place-items: center; padding: 16px; z-index: 10; }
.modal-card { background: #fff; border-radius: var(--radius); padding: 22px 20px; width: min(420px, 100%); display: grid; gap: 12px; }
.modal-card h2 { margin: 0; font-size: 22px; }
.modal-card .sub { margin: 0; color: var(--muted); }

/* ── Agent's app ── */
.admin .topbar { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px;
  background: var(--deep); color: #fff; padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top)); }
.topbar h1 { margin: 0; font-size: 18px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar.has-logo { border-bottom: 3px solid var(--highlight-dark); }
.toplogo { height: 44px; width: auto; max-width: 100%; justify-self: center; display: block; }
.topbar .mark img { width: 36px; height: 36px; border-radius: 9px; display: block; }
.topbar .back, .topbar .gear { color: #fff; text-decoration: none; font-size: 30px; line-height: 1; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; }
.topbar .gear { font-size: 24px; grid-column: 3; }
.page { max-width: 760px; margin: 0 auto; padding: 14px 16px 40px; }
.who { font-size: 14px; color: var(--muted); margin: 2px 2px 12px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; line-height: 1.4; }
.who b { color: var(--ink); font-size: 16px; }
.who.hero { gap: 12px; margin-bottom: 14px; }
.who.hero .headshot { width: 56px; height: 56px; }
.who .mode { margin-top: 4px; }
.mode { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: #fff3d6; color: var(--warn); border: 1px solid #f0d9a0; }
.mode.connected { background: #e3f4ea; color: var(--ok); border-color: #bfe3cd; }
.install { background: color-mix(in srgb, var(--highlight) 8%, #fff); border: 1px solid color-mix(in srgb, var(--highlight) 30%, #fff); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; margin: 0 0 12px; }
.install-lead { margin: 0 0 6px; }
.install-steps { border-top: 1px solid color-mix(in srgb, var(--highlight) 20%, #fff); padding: 6px 0; }
.install-steps summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.install-steps[open] summary { color: var(--highlight); }
.install-steps ol { margin: 4px 0 4px; padding-left: 22px; }
.install-steps li { margin: 4px 0; }
.install-steps .hint { margin: 2px 0 4px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink); cursor: pointer; }
.chip.on, .chip[aria-pressed=true] { background: var(--highlight); border-color: var(--highlight); color: var(--on-highlight); }
.chip b { font-weight: 700; margin-left: 2px; }   /* full colour: 4.87:1 (was 75 % white, 3.4:1) */
.datechips { display: flex; gap: 8px; flex-wrap: wrap; }
.datechips .chip { min-height: 40px; }
.lead { margin: 0; font-size: 15px; line-height: 1.5; background: color-mix(in srgb, var(--highlight) 8%, #fff); border-radius: 10px; padding: 10px 12px; }
.form .hint { margin: -4px 0 0; }
.more h2 { font-size: 18px; margin: 0 0 10px; }
.more .actions { grid-template-columns: 1fr; }
@media (min-width: 600px) { .more .actions { grid-template-columns: 1fr 1fr; } }
.tag.live { background: var(--highlight); color: var(--on-highlight); vertical-align: middle; }
.oh.live { border-color: var(--highlight); }
.list { display: grid; gap: 12px; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }

.oh { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.oh.today { border-color: var(--highlight); box-shadow: 0 0 0 2px color-mix(in srgb, var(--highlight) 30%, transparent); }
.oh.archived { opacity: .75; }
.oh-top { display: grid; grid-template-columns: 96px 1fr; gap: 12px; }
.thumb { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; background: #e9e5ef; display: block; }
.thumb.nophoto { display: grid; place-items: center; }
.oh-text { min-width: 0; }
.oh-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.oh h2 { margin: 0; font-size: 18px; line-height: 1.25; }
.oh p { margin: 3px 0 0; font-size: 14px; }
.oh .when { font-weight: 600; }
.oh .count { color: var(--muted); }
.oh .count b { color: var(--ink); }
.pill { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 9px; white-space: nowrap; background: #ecebf1; color: var(--muted); flex: none; }
.pill.today { background: var(--highlight); color: var(--on-highlight); }
.pill.upcoming { background: #e3f4ea; color: var(--ok); }
.oh-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.oh-actions .btn { min-height: 44px; padding: 6px 14px; font-size: 15px; }
.oh-actions .btn.primary { font-size: 15px; min-height: 44px; }
.toolbar { display: grid; gap: 10px; margin-bottom: 12px; }
.toolbar .new { min-height: 50px; font-size: 17px; }
@media (min-width: 700px) { .toolbar { grid-template-columns: 1fr auto; align-items: center; } .toolbar .chips { padding-bottom: 2px; } }

.keyscreen { max-width: 420px; margin: 0 auto; padding: 48px 16px; text-align: center; }
.keyscreen .hero-key { padding: 0 0 18px; }
.keyscreen .hero-key .hero-photo.lg { --size: 120px; }
.keyscreen .hero-name { font-size: 26px; }
.keyscreen .hero-role { color: var(--muted); font-size: 15px; }
.keyscreen .card { text-align: left; display: grid; gap: 14px; }
.keyscreen .hint { text-align: center; }

.form { display: grid; gap: 14px; }
.photo-field { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; }
.photo-preview { width: 150px; aspect-ratio: 16 / 9; border-radius: 10px; background: #e9e5ef; display: grid; place-items: center; overflow: hidden; color: var(--muted); font-size: 13px; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 420px) { .photo-field { grid-template-columns: 1fr; } .photo-preview { width: 100%; } }

.h-addr { margin: 0; font-size: 22px; }
.modeline { font-size: 14px; color: var(--muted); background: color-mix(in srgb, var(--accent) 7%, #fff); border-radius: 10px; padding: 10px 12px; margin: 10px 0 12px; line-height: 1.45; }
.silist { display: grid; gap: 10px; }
.si { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; }
.si-main { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.si-main b { font-size: 16px; }
.si-main .muted { font-size: 13px; }
.si-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 9px; background: #ecebf1; color: var(--ink); }
.tag.crm { background: #fff3d6; color: var(--warn); }
.tag.crm.sent { background: #e3f4ea; color: var(--ok); }
.si-contact { font-size: 14px; }

.qrpage { text-align: center; }
.qrpage .h-addr { margin-top: 6px; }
.bigqr { display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 14px 0; }
.bigqr svg { width: min(360px, 78vw); height: auto; }
.bigqr.small { margin: 12px 0; padding: 12px; }
.bigqr.small svg { width: min(220px, 60vw); }
.bigqr.small .scan { font-size: 15px; }
.listcount { margin: 14px 4px 6px; }
.si.stuck .row { grid-template-columns: 1fr 1fr; }
.nophoto-text { color: var(--muted); font-size: 13px; }
.bigqr .scan { margin: 10px 0 0; font-weight: 700; font-size: 18px; }
.qrpage .link code { font-size: 14px; word-break: break-all; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; display: inline-block; }
.qrpage .row { grid-template-columns: 1fr; max-width: 420px; margin: 14px auto 0; }
@media (min-width: 600px) { .qrpage .row { grid-template-columns: 1fr 1fr 1fr; max-width: none; } }

.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.kv span { color: var(--muted); }
.kv b { text-align: right; }
.page .card + .card { margin-top: 12px; }
.page .card .row { margin-top: 14px; }
.page .card h2 { font-size: 18px; margin-bottom: 6px; }
.page .card p { margin: 6px 0; line-height: 1.5; }

/* ── Printed sign (QR page → Print sign; Settings → Reusable sign). An advertisement: name, brokerage, both phones (Maryland R1). ── */
#printsign { display: none; }
@media print {
  body { background: #fff; padding: 0; }
  #app, .toast { display: none !important; }
  #printsign { display: block; }
  .ps { text-align: center; padding: 24pt 18pt; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #111; }
  .ps-logo { height: 48pt; width: auto; margin-bottom: 12pt; background: #0E1F2B; padding: 8pt 14pt; border-radius: 8pt; }
  .ps h1 { font-size: 40pt; margin: 0 0 4pt; letter-spacing: -.01em; }
  .ps-sub { font-size: 18pt; margin: 0 0 18pt; color: #333; }
  .ps-qr svg { width: 60vw; max-width: 420pt; height: auto; }
  .ps-scan { font-size: 28pt; font-weight: 800; margin: 14pt 0 2pt; }
  .ps-hint { font-size: 14pt; color: #333; margin: 0 0 22pt; }
  .ps-agent { font-size: 16pt; line-height: 1.5; margin: 0; }
  .ps-url { font-size: 10pt; color: #666; margin-top: 14pt; font-family: ui-monospace, Menlo, monospace; }
}

/* ── Set up your device (guide + /help) ── */
.guide { display: grid; gap: 12px; }
.guide-head { padding: 6px 2px 2px; }
.guide-head h1 { margin: 0 0 4px; font-size: 26px; letter-spacing: -.01em; }
.guide-head .sub { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.guide-card h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; margin: 0 0 10px; }
.guide-card h3 { font-size: 15px; margin: 14px 0 4px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.guide-card .num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--highlight); color: var(--on-highlight); font-size: 15px; font-weight: 800; flex: none; }
.guide-card p, .guide-card li { font-size: 15px; line-height: 1.55; }
.guide-card p { margin: 6px 0; }
.guide-card ol, .guide-card ul.plain { margin: 4px 0; padding-left: 22px; }
.guide-card ul.plain { list-style: none; padding-left: 0; }
.guide-card ul.plain li { margin: 8px 0; padding-left: 14px; border-left: 3px solid color-mix(in srgb, var(--highlight) 35%, #fff); }
.guide-card li { margin: 5px 0; }
.guide-card .install { margin: 0; }
.install-more { margin: 8px 0 0; font-size: 14px; }
.status-pill { display: inline-block; border-radius: 10px; padding: 10px 12px; font-size: 15px; font-weight: 600; margin: 8px 0 4px; line-height: 1.4; }
.status-pill.ok { background: #e3f4ea; color: var(--ok); border: 1px solid #bfe3cd; }
.status-pill.warn { background: #fff3d6; color: #5a3a00; border: 1px solid #f0d9a0; }
.guide-actions { margin-top: 14px; }
.help .shell { max-width: 760px; display: grid; gap: 12px; }
@media print {
  .band, .topbar, .guide-actions, .status-pill, .install-more, .foot, #print { display: none !important; }
  body, .guide-card { background: #fff; color: #000; }
  .guide-card { border: 1px solid #999; break-inside: avoid; box-shadow: none; }
  .guide-card .num { background: #000; color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  details.install-steps { display: block; } details.install-steps > * { display: block; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 12px; color: #444; }
}

/* ── Kiosk: one screen, never scrolls (BK 2026-11-05). Sized for iPads from 768×1024 to 1366×1024, both ways round.
   Left: a dark brand band with the agent, large, and the home; the listing photo fills the rest of the column.
   Right: the welcome and the form, stretched to the bottom. The phone sign-in sits in the footer, out of the way.
   If something still doesn't fit (an error list), only the form card scrolls, never the page. ── */
body.kiosk { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
.kiosk #app { height: 100%; display: flex; flex-direction: column; }
.kiosk .band { padding: 6px 16px; padding-top: calc(6px + env(safe-area-inset-top)); flex: none; }
.kiosk .band img { height: 36px; }
.kiosk .shell { flex: 1; min-height: 0; max-width: none; width: 100%; padding: calc(14px + env(safe-area-inset-top)) 20px 0; gap: 14px;
  display: grid; grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); align-content: stretch; }
.kiosk #slot { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
.kiosk #slot > .card { flex: 1 0 auto; display: flex; flex-direction: column; }
.kiosk #f { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: space-between; }
/* screen 2: at most two questions, big buttons (BK 2026-11-06) */
.kiosk .card.on-step2 .step2 { flex: 1; gap: 34px; }
.kiosk .card.on-step2 .step-head { font-size: 40px; letter-spacing: -.01em; }
.kiosk .card.on-step2 legend { font-size: 20px; margin-bottom: 12px; }
.kiosk .card.on-step2 .choices { gap: 10px; }
.kiosk .card.on-step2 .choice span { min-height: 64px; padding: 10px 24px; font-size: 19px; }
.kiosk .card.on-step2 button.primary { min-height: 60px; font-size: 20px; }
.kiosk .card.on-step2 .step-actions .linkbtn { font-size: 18px; }

/* footer: the phone sign-in, small, on the left; credit and Agent on the right */
.kiosk .foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left;
  padding: 6px 22px calc(6px + env(safe-area-inset-bottom)); }
.kiosk .foot .qr-open { margin: 0; font-size: 14px; min-height: 44px; padding: 4px 14px 4px 6px; }

/* the left column: one card — the brand band on top, the photo below */
.kiosk .col-left { display: flex; flex-direction: column; min-height: 0; }
.kiosk .listing.photo-only { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; border: 0; border-radius: var(--radius); background: var(--deep); }
.kiosk .k-band { flex: none; display: grid; gap: 12px; padding: 18px 20px 16px; color: #fff; background: var(--deep); border-bottom: 3px solid var(--highlight-dark); }
/* the agent: as large as the band allows */
/* the brokerage logo sits above the name, centred over it, its top level with the photo's (BK 2026-11-06; no top banner on the kiosk).
   74 px is the most the 386×150 wordmark holds sharp on a 2× screen. */
.kiosk .k-band .k-logo { display: block; justify-self: center; height: 74px; width: auto; max-width: 100%; margin: 0 0 12px; }
.kiosk .k-band .hero-kiosk { grid-template-columns: auto 1fr; justify-items: start; text-align: left; align-items: start; gap: 18px; padding: 0; }
.kiosk .k-band .hero-kiosk .hero-text { justify-items: start; gap: 2px; }
.kiosk .k-band .hero-kiosk .hero-photo { --size: clamp(140px, 27vh, 240px); margin: 0; box-shadow: 0 0 0 3px rgb(255 255 255 / .9); }
.kiosk .k-band .hero-name { font-size: 34px; color: #fff; }
.kiosk .k-band .hero-role { font-size: 16px; color: rgb(255 255 255 / .88); }
.kiosk .k-band .hero-phones { font-size: 15px; color: rgb(255 255 255 / .78); }
/* in the band, each phone number gets its own line, so no "·" is left hanging at a line end */
.kiosk .k-band .hero-phones .nowrap, .kiosk .k-band .hero-role .nowrap { display: block; }
.kiosk .k-band .hero-phones .dot-sep, .kiosk .k-band .hero-role .dot-sep { display: none; }
/* a long brokerage name wraps inside the band, never past its edge (2026-11-07: "Windermere Real Estate/Northwest" ran off).
   min-width: 0 lets the text column shrink; overflow-wrap: anywhere breaks a single long token (".../Northwest") only when it must. */
.kiosk .k-band .hero-kiosk .hero-text { min-width: 0; max-width: 100%; }
.kiosk .k-band .hero-role .nowrap { white-space: normal; overflow-wrap: anywhere; text-wrap: balance; }
.kiosk .k-band .hero-welcome { font-size: 18px; margin-top: 6px; color: color-mix(in srgb, var(--highlight) 45%, #fff); }
/* the home */
.kiosk .k-band .k-addr { margin: 0; padding-top: 12px; border-top: 1px solid rgb(255 255 255 / .18); font-size: 22px; font-weight: 700; line-height: 1.25; color: #fff; }
.kiosk .k-band .k-area { margin-left: 10px; font-size: 16px; font-weight: 400; color: rgb(255 255 255 / .78); white-space: nowrap; }
.kiosk .k-band .k-facts { font-size: 16px; gap: 2px 14px; margin-top: -6px; }
.kiosk .k-band .k-facts, .kiosk .k-band .k-facts .price { color: #fff; }
.kiosk .k-band .k-facts .price { font-size: 20px; }
/* the photo fills what's left (fitPhoto() in app.js switches odd shapes to whole-photo-on-blur) */
.kiosk .photo-box { flex: 1; position: relative; min-height: 0; overflow: hidden; background: #e9e5ef; transition: min-height .25s ease; }
.kiosk .photo-box .photo, .kiosk .photo-box .photo-bg, .kiosk .photo-box .nophoto { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.kiosk .photo-box .photo { background: transparent; }
.kiosk .photo-box .photo-bg { display: none; filter: blur(22px) brightness(.8); transform: scale(1.15); }
.kiosk .photo-box.fit-contain .photo { object-fit: contain; }
.kiosk .photo-box.fit-contain .photo-bg { display: block; }
.kiosk .photo-box .badge { position: absolute; left: 12px; top: 12px; margin: 0; box-shadow: 0 1px 4px rgb(0 0 0 / .25); }

/* the form: welcome, then the fields (these sizes hold the longest form: buyer questions + text consent) */
.kiosk .card { padding: 14px 20px 16px; }
.kiosk .status { float: right; margin-top: 6px; }
.kiosk .card .k-welcome { margin: 0; font-size: 26px; line-height: 1.1; letter-spacing: -.01em; color: var(--ink); }
.kiosk .k-please { display: none; margin: 8px 0 0; font-size: 22px; font-weight: 700; color: color-mix(in srgb, var(--highlight) 85%, var(--ink)); }
.kiosk .notice { font-size: 12.5px; line-height: 1.4; padding: 7px 10px; margin: 10px 0 10px; }
.kiosk form { gap: 9px; }
.kiosk label.f { gap: 3px; font-size: 14px; }
.kiosk input[type=text], .kiosk input[type=email], .kiosk input[type=tel] { min-height: 46px; font-size: 17px; padding: 8px 12px; }
.kiosk legend { font-size: 14px; margin-bottom: 3px; }
.kiosk fieldset { gap: 3px; }
.kiosk .choices { gap: 6px; }
.kiosk .choice span { min-height: 42px; padding: 6px 14px; font-size: 15px; }
.kiosk .check { font-size: 13px; line-height: 1.35; grid-template-columns: 26px 1fr; gap: 8px; }
.kiosk button.primary { min-height: 52px; }
.kiosk .thanks .hero-photo.lg { --size: 120px; }

/* landscape: half and half */
@media (min-width: 900px) {
  .kiosk .shell { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr); align-items: stretch; gap: 22px; padding: calc(16px + env(safe-area-inset-top)) 22px 0; }
  .kiosk form { gap: 7px; }
  .kiosk input[type=text], .kiosk input[type=email], .kiosk input[type=tel] { min-height: 44px; }
  .kiosk .choice span { min-height: 38px; padding: 5px 12px; font-size: 14.5px; }
  .kiosk .check { font-size: 12.5px; line-height: 1.3; }
  .kiosk .choices { gap: 5px; }
}
/* narrower landscape iPads (1024, 1080): the form gets a little more width and the answer buttons tighten, so each question stays on one row */
@media (min-width: 900px) and (max-width: 1100px) {
  .kiosk .shell { grid-template-columns: 1fr 1.4fr; }
  .kiosk .choices { gap: 4px; }
  .kiosk .choice span { padding: 4px 9px; font-size: 13.5px; }
  .kiosk .k-band .hero-kiosk .hero-photo { --size: 150px; }
  .kiosk .k-band .k-logo { height: 58px; margin-bottom: 8px; }
  .kiosk .k-band .hero-name { font-size: 26px; }
  .kiosk .k-band .hero-role { font-size: 14.5px; }
  .kiosk .k-band .hero-phones { font-size: 13.5px; }
  .kiosk .k-band .hero-welcome { font-size: 15.5px; }
  .kiosk .k-band .k-addr { font-size: 18px; }
  .kiosk .k-band .k-facts { font-size: 14.5px; }
  .kiosk .k-band .k-facts .price { font-size: 18px; }
}
/* short screens (older iPads, 768–810 tall in landscape; 1024–1080 tall in portrait): one notch tighter so every question fits */
@media (min-width: 900px) and (max-height: 860px), (max-width: 899px) and (max-height: 1100px) {
  .kiosk .band img { height: 30px; }
  .kiosk .shell { padding-top: calc(12px + env(safe-area-inset-top)); gap: 10px; }
  .kiosk .k-band .k-logo { height: 56px; margin-bottom: 8px; }
  .kiosk .card { padding: 10px 18px 10px; }
  .kiosk .card .k-welcome { display: none; }
  .kiosk form { gap: 5px; }
  .kiosk label.f { font-size: 13px; gap: 2px; }
  .kiosk input[type=text], .kiosk input[type=email], .kiosk input[type=tel] { min-height: 40px; font-size: 16px; padding: 6px 12px; }
  .kiosk legend { font-size: 13px; margin-bottom: 2px; }
  .kiosk .choice span { min-height: 34px; padding: 4px 11px; font-size: 14px; }
  .kiosk .check { font-size: 12px; line-height: 1.25; }
  .kiosk .check input { width: 22px; height: 22px; }
  .kiosk .notice { font-size: 12px; padding: 5px 10px; margin: 6px 0 6px; }
  .kiosk button.primary { min-height: 48px; }
  .kiosk .k-band { padding: 14px 18px 12px; gap: 10px; }
  .kiosk .k-band .k-addr { padding-top: 10px; }
}
/* the smallest landscape iPad (1024×768): the longest form needs a few more pixels */
@media (min-width: 900px) and (max-width: 1100px) and (max-height: 780px) {
  .kiosk .shell { grid-template-columns: 1fr 1.5fr; }
  .kiosk .k-band { padding: 12px 16px 10px; gap: 8px; }
  .kiosk .k-band .hero-kiosk { gap: 14px; }
  .kiosk .k-band .hero-kiosk .hero-photo { --size: 124px; }
  .kiosk .k-band .k-logo { height: 46px; margin-bottom: 6px; }
  .kiosk .k-band .hero-name { font-size: 23px; }
  .kiosk .k-band .hero-welcome { font-size: 14.5px; margin-top: 4px; }
  .kiosk .k-band .k-addr { padding-top: 8px; }
  .kiosk form { gap: 8px; }
  .kiosk label.f { font-size: 12.5px; }
  .kiosk input[type=text], .kiosk input[type=email], .kiosk input[type=tel] { min-height: 38px; font-size: 15.5px; padding: 5px 11px; }
  .kiosk legend { font-size: 12.5px; }
  .kiosk .choice span { min-height: 32px; padding: 3px 10px; font-size: 13px; }
  .kiosk .notice { font-size: 11.5px; line-height: 1.35; padding: 5px 9px; margin: 4px 0 2px; }
  .kiosk .check { font-size: 11.5px; line-height: 1.3; }
  .kiosk .check input { width: 20px; height: 20px; }
  .kiosk button.primary { min-height: 46px; }
}
/* portrait: the brand band and the photo side by side above the form */
@media (max-width: 899px) {
  .kiosk .listing.photo-only { flex-direction: row; }
  .kiosk .k-band { flex: 1.05; align-content: center; border-bottom: 0; border-right: 3px solid var(--highlight-dark); padding: 14px 16px; gap: 10px; }
  .kiosk .k-band .hero-kiosk { gap: 12px; }
  .kiosk .k-band .hero-kiosk .hero-photo { --size: clamp(110px, 13vh, 160px); }
  .kiosk .k-band .k-logo { height: 48px; margin-bottom: 6px; }
  .kiosk .k-band .hero-name { font-size: 22px; }
  .kiosk .k-band .hero-role { font-size: 14px; }
  .kiosk .k-band .hero-phones { font-size: 13px; }
  .kiosk .k-band .hero-welcome { font-size: 15px; margin-top: 3px; }
  .kiosk .k-band .k-addr { font-size: 19px; padding-top: 10px; }
  .kiosk .k-band .k-area { display: block; margin: 2px 0 0; font-size: 14px; }
  .kiosk .k-band .k-facts { font-size: 14px; margin-top: -4px; }
  .kiosk .k-band .k-facts .price { font-size: 17px; }
  .kiosk .photo-box { flex: 1; min-height: 230px; }
}

/* While the form is short (no text consent, no errors), give it room: bigger fields and type.
   The moment those open, the tighter sizes above take over, so the longest form still fits one screen. */
.kiosk .card:not(.on-step2):has(#errs.hidden) .k-welcome { display: block; font-size: 40px; }
.kiosk .card:not(.on-step2):has(#errs.hidden) .k-please { display: block; font-size: 24px; }
.kiosk .card:not(.on-step2):has(#errs.hidden) label.f { font-size: 16px; gap: 5px; }
.kiosk .card:not(.on-step2):has(#errs.hidden) input[type=text], .kiosk .card:not(.on-step2):has(#errs.hidden) input[type=email], .kiosk .card:not(.on-step2):has(#errs.hidden) input[type=tel] { min-height: 56px; font-size: 19px; }
.kiosk .card:not(.on-step2):has(#errs.hidden) legend { font-size: 16px; margin-bottom: 6px; }
.kiosk .card:not(.on-step2):has(#errs.hidden) .choice span { min-height: 50px; padding: 8px 16px; font-size: 16.5px; }
.kiosk .card:not(.on-step2):has(#errs.hidden) .check { font-size: 14px; line-height: 1.4; }
.kiosk .card:not(.on-step2):has(#errs.hidden) button.primary { min-height: 60px; font-size: 20px; }
/* short screens, short form: roomy, one notch down */
@media (min-width: 900px) and (max-height: 860px), (max-width: 899px) and (max-height: 1100px) {
  .kiosk .card:not(.on-step2):has(#errs.hidden) .k-welcome { font-size: 32px; }
  .kiosk .card:not(.on-step2):has(#errs.hidden) .k-please { font-size: 20px; margin-top: 6px; }
  .kiosk .card:not(.on-step2):has(#errs.hidden) label.f { font-size: 15px; gap: 3px; }
  .kiosk .card:not(.on-step2):has(#errs.hidden) input[type=text], .kiosk .card:not(.on-step2):has(#errs.hidden) input[type=email], .kiosk .card:not(.on-step2):has(#errs.hidden) input[type=tel] { min-height: 50px; font-size: 18px; }
  .kiosk .card:not(.on-step2):has(#errs.hidden) .choice span { min-height: 44px; padding: 6px 14px; font-size: 15.5px; }
  .kiosk .card:not(.on-step2):has(#errs.hidden) button.primary { min-height: 54px; font-size: 19px; }
}
/* portrait, short form: the spare height goes to a bigger photo; it gives the height back when the buyer questions open */
@media (max-width: 899px) {
  .kiosk .shell:has(#text-consent.hidden):has(#errs.hidden) .photo-box, .kiosk .shell:has(.on-step2) .photo-box { min-height: clamp(230px, 30vh, 380px); }
}
/* phones: there's no room for one screen, so the kiosk stacks and scrolls like a normal page */
@media (max-width: 599px) {
  body.kiosk { height: auto; overflow: auto; }
  .kiosk #app { height: auto; display: block; }
  .kiosk .shell { display: block; padding: 10px 12px 0; }
  .kiosk .col-left { margin-bottom: 12px; }
  .kiosk .listing.photo-only { flex-direction: column; }
  .kiosk .k-band { border-right: 0; border-bottom: 3px solid var(--highlight-dark); }
  .kiosk .photo-box { flex: none; height: 56vw; min-height: 0; }
  .kiosk .shell:has(#text-consent.hidden):has(#errs.hidden) .photo-box, .kiosk .shell:has(.on-step2) .photo-box { min-height: 0; }
  .kiosk #slot { overflow: visible; }
  .kiosk #f { justify-content: flex-start; gap: 14px; }
  .kiosk .row { grid-template-columns: 1fr; }
}

/* screen 2 (all modes): the questions after Sign in */
.step2 { display: flex; flex-direction: column; gap: 22px; }
.step2 .step-head { margin: 4px 0 0; font-size: 26px; line-height: 1.15; }
.step2 legend { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.step2 .choice span { min-height: 54px; padding: 10px 20px; font-size: 17px; }
.step-actions { display: flex; align-items: center; gap: 16px; margin-top: auto; padding-top: 8px; }
.step-actions .primary { flex: 1; }
.step-actions .linkbtn { min-height: 48px; }
