/* The Real estate door (R8, SC-20260927-22): the landing page and the approval page, inside the
   shop shell. (R10, SC-20260929-36: the free trial and an agency's portal moved to the real estate
   studio, its own page with its own stylesheet, realestate-app.css; the trial and portal rules
   below are kept for the landing's shared pieces and are otherwise unused.) Sign Central greens for the chrome; the boards
   themselves are drawn in the agency's own colours (lib/realestate/). Works at 390 px wide with no
   sideways scroll. */
.realestate-door { --re-orange: #e67e22; }
.re-root { min-width: 0; }
.re-root .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--sc-lime-deep, #3f8f1a); margin: 0 0 6px; }
.re-h3 { margin: 28px 0 6px; font-size: 20px; color: var(--brand); }
.re-note { margin: 0 0 14px; }

/* ---- landing ---- */
.re-landing { display: flex; flex-direction: column; gap: 6px; }
.re-hero { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 26px 22px; }
.re-hero h2 { margin: 0 0 8px; font-size: clamp(24px, 4.2vw, 34px); line-height: 1.15; color: var(--brand); }
.re-hero .muted { max-width: 760px; }
.re-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 4px; }
.re-samples { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: end; margin: 18px 0 4px; }
.re-samples figure { margin: 0; min-width: 0; }
.re-samples figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; text-align: center; }
.re-svg { display: block; width: 100%; height: auto; background: #fff; box-shadow: 0 6px 22px rgba(8,45,23,.14); border: 1px solid #d5dbd4; }
.re-sample { max-height: 420px; }
@media (max-width: 700px) { .re-samples { grid-template-columns: 1fr; } .re-samples figure:last-child { max-width: 260px; margin: 0 auto; } }
.re-prod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .re-prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .re-prod-grid { grid-template-columns: 1fr; } }
.re-prod { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 16px 18px; }
.re-prod h4 { margin: 0 0 6px; color: var(--brand); font-size: 16px; }
.re-prod p { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.re-prod ul { margin: 0; padding-left: 18px; font-size: 14px; }
.re-prod li { margin: 3px 0; }
.re-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
@media (max-width: 800px) { .re-how { grid-template-columns: 1fr; } }
.re-how > div { background: var(--brand-soft); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.re-how b { color: var(--brand); }
.re-how span { font-size: 14px; color: var(--ink-2); }
.re-faq ul { padding-left: 18px; }
.re-faq li { margin: 6px 0; }

/* ---- trial bar, brand card, tabs ---- */
.re-trial-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; background: #fff5dd; color: #6a4700; border: 1px solid #f0d58a; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }
.re-brand-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 14px; }
@media (max-width: 700px) { .re-brand-card { grid-template-columns: 1fr; } }
.re-brand-logo { display: flex; align-items: center; justify-content: center; min-height: 110px; background: #f6f7f5; border: 1px dashed #cfd6cc; border-radius: 10px; padding: 10px; }
.re-brand-logo img { max-width: 100%; max-height: 120px; }
.re-brand-empty { color: var(--muted); font-size: 14px; }
.re-brand-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
@media (max-width: 1000px) { .re-brand-fields { grid-template-columns: 1fr; } }
.re-colour-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.re-colour-row input[type=color] { width: 46px; height: 34px; padding: 2px; border: 1px solid #cfcfd6; border-radius: 8px; background: #fff; }
.re-swatches { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: var(--muted); }
.re-sw { width: 26px; height: 26px; border-radius: 7px; border: 2px solid #cfd6cc; cursor: pointer; padding: 0; }
.re-sw.on { outline: 3px solid var(--re-orange); outline-offset: 1px; }
.re-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.re-tab { font: inherit; font-weight: 600; font-size: 14px; border: 1px solid #cfcfd6; background: #fff; border-radius: 999px; padding: 8px 14px; cursor: pointer; color: var(--ink); }
.re-tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---- the builder ---- */
.re-layout { grid-template-columns: minmax(300px, 390px) minmax(0, 1fr); }
@media (max-width: 900px) { .re-layout { grid-template-columns: 1fr; } .re-preview { order: -1; } }
.re-form { gap: 10px; min-width: 0; }
.re-form .wiz-step-heading { margin: 0; color: var(--brand); font-size: 18px; }
.re-sect { border: 1px solid var(--line); border-radius: 10px; }
.re-sect > summary { cursor: pointer; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); padding: 10px 12px; background: #f6f8f4; border-radius: 10px; }
.re-sect[open] > summary { border-radius: 10px 10px 0 0; }
.re-sect-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.re-form .field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.re-form input[type=text], .re-form input[type=email], .re-form input[type=tel], .re-form input[type=number], .re-form input:not([type]), .re-form select, .re-form textarea,
.re-claim input, .re-claim textarea, .re-email-row input, #re-approve input:not([type=radio]):not([type=checkbox]) { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; padding: 9px 11px; border: 1px solid #cfcfd6; border-radius: 9px; background: #fff; }
.re-toggle { flex-wrap: wrap; }
.re-feat-row { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; align-items: end; }
.re-bandwords { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.re-bw { font: inherit; font-size: 13px; border: 1px solid #cfcfd6; background: #fff; border-radius: 7px; padding: 4px 10px; cursor: pointer; font-weight: 400; color: var(--muted); }
.re-bw.on { font-weight: 700; color: var(--ink); border-color: var(--re-orange); background: #fdf1da; }
.re-photo-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.re-thumb { width: 64px; height: 46px; border-radius: 6px; background: #eef1f4; overflow: hidden; }
.re-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.re-photo-meta { display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.re-photo-meta .hint { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.re-zoom { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.re-zoom input { flex: 1; min-width: 0; }
.re-photo-acts { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; }
@media (max-width: 420px) { .re-photo-row { grid-template-columns: 54px minmax(0, 1fr); } .re-photo-acts { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; } }
.re-zone-btns, .re-row-btns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.re-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 10px; background: #fff; }
.re-card.sel { border-color: var(--re-orange); box-shadow: 0 0 0 3px rgba(230,126,34,.18); }
.re-card-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin-bottom: 8px; font-size: 14px; }
.re-card-head span { color: var(--muted); font-size: 13px; }
.re-card-head .btn-link { margin-left: auto; padding: 0; }
.re-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.re-swlbl { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 8px 0 4px; }
.re-swrow { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.re-swrow input[type=color] { width: 36px; height: 30px; padding: 1px; border: 1px solid #cfcfd6; border-radius: 7px; background: #fff; }
.re-card-price { margin: 8px 0 0; font-size: 13px; color: var(--ink-2); }
.re-check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.re-check input { margin-top: 3px; accent-color: var(--accent); width: auto; flex: none; }
.re-check span { flex: 1; min-width: 0; }
.re-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.re-inline input { width: 80px; }
.re-size { display: flex; margin-top: 8px; }
.re-size input { flex: 1; width: auto; }
.re-bands { margin: 4px 0 0; }

/* ---- the stage ---- */
.re-preview { position: sticky; top: 12px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 900px) { .re-preview { position: static; } }
.re-stage { background: #1b2730; background-image: linear-gradient(#26343f 1px, transparent 1px), linear-gradient(90deg, #26343f 1px, transparent 1px); background-size: 26px 26px; border-radius: 14px; padding: 18px; display: flex; align-items: center; justify-content: center; min-height: 240px; }
.re-svg-host { width: 100%; display: flex; justify-content: center; }
.re-svg-host .re-svg { max-height: 68vh; width: auto; max-width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.45); border: 0; touch-action: none; }
.re-svg-host [data-slot], .re-svg-host [data-sticker], .re-svg-host .re-poster-img { cursor: grab; }
.re-svg-host .re-slot-empty { cursor: pointer; }
.re-svg-host [data-handle] { cursor: nwse-resize; }
.re-caption { margin: 0; }
.re-actions { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.re-price { font-size: 15px; }
.re-proof-row { display: flex; flex-wrap: wrap; gap: 8px; }
.re-inline-form { display: flex; gap: 8px; }
.re-inline-form input { flex: 1; min-width: 0; }
.re-missing { margin: 0; padding: 8px 12px 8px 28px; background: #fff5dd; color: #6a4700; border-radius: 9px; font-size: 14px; }
.re-priority span b { color: #7a4a00; }
.re-demo-note { background: #eef7e4; border: 1px solid #cfe4b8; color: #173d22; border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; font-size: 14px; }

/* ---- the claim ---- */
.re-claim { margin-top: 22px; scroll-margin-top: 90px; }
.re-claim h3 { margin: 0; color: var(--brand); }
#re-claim-body { display: flex; flex-direction: column; gap: 14px; }
#re-claim-body .hint { margin: 4px 0 0; }
#re-claim-body > .btn { align-self: flex-start; }
#re-claim-body > .msg { margin-top: 0; }

/* ---- the agency portal ---- */
.re-portal-head { display: flex; gap: 18px; align-items: center; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 14px; flex-wrap: wrap; }
.re-portal-logo img { max-height: 70px; max-width: 240px; display: block; }
.re-portal-head h2 { margin: 0 0 4px; color: var(--brand); font-size: 22px; }
.re-portal-head p { margin: 0; }
body.tenant-agency .tabs .tab:not([data-tab="realestate"]) { display: none; }

/* ---- approve ---- */
#re-approve { max-width: 760px; }
.re-ap-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 600px) { .re-ap-grid { grid-template-columns: 1fr; } }
.re-ap-logo { background: #f6f7f5; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.re-ap-logo img { max-width: 100%; max-height: 140px; display: block; margin: 0 auto; }
.re-ap-colours { display: flex; gap: 8px; margin-top: 8px; justify-content: center; }
.re-ap-colours span { width: 34px; height: 24px; border-radius: 6px; border: 1px solid #cfd6cc; }
.re-ap-dl { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 6px 10px; margin: 0; font-size: 14px; }
.re-ap-dl dt { font-weight: 700; color: var(--muted); }
.re-ap-dl dd { margin: 0; overflow-wrap: anywhere; }
.re-ap-pay { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 600px) { .re-ap-pay { grid-template-columns: 1fr; } }
