:root {
  --navy: #101b2b;
  --navy-2: #17283b;
  --navy-3: #243a50;
  --ivory: #f6f4ef;
  --surface: #ffffff;
  --surface-soft: #fbfaf7;
  --teal: #25d9c2;
  --teal-dark: #0b9f95;
  --coral: #f28c68;
  --ink: #101b2b;
  --muted: #72808e;
  --line: #e4e8e8;
  --danger: #c75e5c;
  --shadow: 0 22px 65px rgba(16, 27, 43, .10);
  --shadow-soft: 0 10px 28px rgba(16, 27, 43, .06);
}

* { box-sizing: border-box; }
html { background: var(--ivory); }
body { margin: 0; color: var(--ink); background: var(--ivory); font-family: "DM Sans", system-ui, sans-serif; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.loading-screen { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 14px; color: var(--muted); background: var(--ivory); }
.spinner { width: 28px; height: 28px; border: 3px solid #dce7e5; border-top-color: var(--teal-dark); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast { position: fixed; z-index: 99; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; color: var(--navy); background: var(--teal); padding: 13px 18px; border-radius: 999px; box-shadow: var(--shadow); transition: .22s ease; max-width: calc(100vw - 32px); text-align: center; font-size: 13px; font-weight: 700; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.toast.error { color: white; background: var(--danger); }

.topbar { min-height: 78px; padding: 16px clamp(18px, 4vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--navy); color: white; box-shadow: 0 8px 28px rgba(16,27,43,.14); }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; background: var(--navy-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.brand-icon svg { width: 35px; height: 35px; overflow: visible; }
.brand-house { fill: none; stroke: #fbfaf7; stroke-width: 3.1; stroke-linecap: round; stroke-linejoin: round; }
.brand-orbit { fill: none; stroke: var(--teal); stroke-width: 2.8; stroke-linecap: round; }
.brand-dot { fill: var(--coral); stroke: #fbfaf7; stroke-width: 1.1; }
.brand-type { display: grid; gap: 0; line-height: 1; white-space: nowrap; }
.brand-type strong { color: inherit; font: 800 20px/1 Manrope, sans-serif; letter-spacing: -.055em; }
.brand-type small { margin-top: 4px; color: rgba(255,255,255,.72); font-size: 10px; letter-spacing: .02em; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar .eyebrow { color: rgba(255,255,255,.60); }
.eyebrow { color: var(--teal-dark); text-transform: uppercase; letter-spacing: .16em; font-size: 10px; line-height: 1.35; font-weight: 800; }

.btn { border: 0; border-radius: 12px; padding: 12px 16px; font-weight: 800; transition: transform .16s ease, background .16s ease, box-shadow .16s ease, border-color .16s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { cursor: wait; opacity: .65; transform: none; }
.btn-primary { color: var(--navy); background: var(--teal); box-shadow: 0 9px 23px rgba(37,217,194,.22); }
.btn-primary:hover { background: #3be2cd; }
.btn-gold { color: var(--navy); background: var(--coral); box-shadow: 0 9px 23px rgba(242,140,104,.18); }
.btn-ghost { color: var(--navy); background: var(--surface); border: 1px solid var(--line); }
.topbar .btn-ghost { color: var(--navy); }
.btn-ghost:hover { border-color: #bccdcd; background: #fbfdfc; }
.btn-dark { color: white; background: var(--navy); }
.btn-danger { color: white; background: var(--danger); }
.btn-small { padding: 8px 11px; font-size: 12px; border-radius: 9px; }

.card { background: var(--surface); border: 1px solid rgba(16,27,43,.07); border-radius: 22px; box-shadow: var(--shadow-soft); }
.card-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.card h2 { margin: 5px 0 0; color: var(--navy); font: 800 20px/1.15 Manrope, sans-serif; letter-spacing: -.045em; }

/* Catalog home */
.catalog-shell { min-height: 100vh; background: var(--ivory); }
.catalog-hero { position: relative; min-height: 515px; overflow: hidden; color: white; background: var(--navy); }
.catalog-hero::before { content: ""; position: absolute; width: 720px; height: 720px; right: -235px; top: -390px; border: 1px solid rgba(37,217,194,.24); border-radius: 50%; box-shadow: 0 0 0 38px rgba(37,217,194,.05), 0 0 0 82px rgba(37,217,194,.028), 0 0 0 130px rgba(37,217,194,.02); }
.catalog-hero::after { content: ""; position: absolute; width: 390px; height: 390px; left: 48%; bottom: -295px; border-radius: 50%; background: radial-gradient(circle, rgba(242,140,104,.18), transparent 64%); }
.catalog-hero-inner { position: relative; z-index: 1; width: min(1280px, calc(100vw - 40px)); margin: 0 auto; padding: 31px 0 84px; }
.catalog-hero .brand { margin-bottom: 95px; }
.catalog-hero .brand-icon { background: rgba(255,255,255,.08); }
.catalog-hero-copy { max-width: 680px; }
.catalog-hero-copy .eyebrow { color: var(--teal); }
.catalog-hero-copy h1 { margin: 13px 0 16px; color: white; font: 800 clamp(41px, 6.3vw, 78px)/.99 Manrope, sans-serif; letter-spacing: -.085em; }
.catalog-hero-copy p { max-width: 540px; margin: 0; color: rgba(255,255,255,.68); font-size: 17px; line-height: 1.55; }
.catalog-hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 27px; color: rgba(255,255,255,.58); font-size: 12px; }
.catalog-hero-meta strong { color: var(--teal); font-size: 17px; }
.catalog-meta-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--coral); }
.catalog-main { position: relative; z-index: 2; width: min(1280px, calc(100vw - 40px)); margin: -57px auto 70px; }
.catalog-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; padding: 25px 27px; border: 1px solid rgba(16,27,43,.06); border-radius: 20px; background: rgba(255,255,255,.91); box-shadow: var(--shadow-soft); }
.catalog-toolbar h2 { margin: 7px 0 0; color: var(--navy); font: 800 clamp(22px, 3vw, 31px)/1.05 Manrope, sans-serif; letter-spacing: -.06em; }
.catalog-search { margin: 0 0 10px; }
.catalog-search label { display: block; margin: 0 0 7px 4px; color: var(--muted); font-size: 11px; font-weight: 800; }
.catalog-search-control { display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.86); box-shadow: 0 6px 18px rgba(16,27,43,.035); }
.catalog-search-control > span { color: var(--teal-dark); font-size: 23px; line-height: 1; transform: rotate(-20deg); }
.catalog-search-control input { min-width: 0; flex: 1; padding: 13px 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; }
.catalog-search-control input::placeholder { color: #9ba6ad; }
.catalog-search-control:focus-within { border-color: var(--teal-dark); box-shadow: 0 0 0 4px rgba(37,217,194,.12); }
.catalog-search-control kbd { padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--surface-soft); font: 600 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.catalog-results-meta { min-height: 18px; margin: 0 4px 12px; color: var(--muted); font-size: 11px; font-weight: 700; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.catalog-card { display: block; overflow: hidden; border: 1px solid rgba(16,27,43,.07); border-radius: 20px; color: inherit; background: white; text-decoration: none; box-shadow: var(--shadow-soft); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.catalog-card:hover { border-color: rgba(37,217,194,.52); box-shadow: var(--shadow); transform: translateY(-4px); }
.catalog-card-media { position: relative; height: 230px; overflow: hidden; background: #e9efed; }
.catalog-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.catalog-card:hover .catalog-card-media img { transform: scale(1.035); }
.catalog-card-badge { position: absolute; right: 12px; bottom: 12px; padding: 7px 9px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; color: var(--navy); background: rgba(246,244,239,.9); backdrop-filter: blur(8px); font-size: 10px; font-weight: 900; }
.catalog-card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 9px; color: white; background: radial-gradient(circle at 70% 28%, rgba(37,217,194,.24), transparent 24%), var(--navy); }
.catalog-card-placeholder span { font: 800 54px/1 Manrope, sans-serif; letter-spacing: -.08em; }
.catalog-card-placeholder small { color: var(--teal); letter-spacing: .17em; font-size: 10px; font-weight: 900; }
.catalog-card-body { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 19px 19px 20px; }
.catalog-card-body .eyebrow { font-size: 9px; }
.catalog-card-body h2 { overflow: hidden; margin: 7px 0 5px; color: var(--navy); font: 800 20px/1.08 Manrope, sans-serif; letter-spacing: -.055em; text-overflow: ellipsis; white-space: nowrap; }
.catalog-card-body p { overflow: hidden; max-width: 230px; margin: 0; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.catalog-card-arrow { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; color: var(--navy); background: var(--surface-soft); font-size: 17px; transition: .18s ease; }
.catalog-card:hover .catalog-card-arrow { color: var(--navy); border-color: var(--teal); background: var(--teal); }
.catalog-empty { grid-column: 1 / -1; min-height: 285px; display: grid; place-items: center; align-content: center; gap: 9px; padding: 42px; border: 1px dashed #bed5d1; border-radius: 20px; text-align: center; background: rgba(255,255,255,.55); }
.catalog-empty-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 17px; color: var(--navy); background: var(--teal); font: 800 16px Manrope, sans-serif; }
.catalog-empty h2 { margin: 8px 0 0; color: var(--navy); font: 800 24px Manrope, sans-serif; letter-spacing: -.055em; }
.catalog-empty p { max-width: 410px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* Public visit */
.public-shell { min-height: 100vh; background: var(--ivory); }
.public-head { position: relative; overflow: hidden; padding: 32px clamp(20px, 6vw, 88px) 78px; color: white; background: var(--navy); }
.public-head::before { content: ""; position: absolute; width: 520px; height: 520px; right: -130px; top: -280px; border-radius: 50%; background: radial-gradient(circle, rgba(37,217,194,.25), transparent 68%); }
.public-head::after { content: ""; position: absolute; width: 260px; height: 260px; left: 42%; bottom: -210px; border-radius: 50%; border: 1px solid rgba(37,217,194,.18); box-shadow: 0 0 0 28px rgba(37,217,194,.04), 0 0 0 58px rgba(37,217,194,.025); }
.public-head-inner { position: relative; z-index: 1; width: min(1280px, 100%); margin: 0 auto; }
.public-head .brand { margin-bottom: 56px; }
.public-head .brand-icon { background: rgba(255,255,255,.08); }
.public-head h1 { max-width: 900px; margin: 10px 0 12px; color: white; font: 800 clamp(34px, 5.7vw, 68px)/1.01 Manrope, sans-serif; letter-spacing: -.075em; }
.public-head p { max-width: 720px; margin: 0; color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.55; }
.public-head .property-location { color: var(--teal); font-weight: 800; }
.public-head .public-description { margin-top: 10px; color: rgba(255,255,255,.58); }
.public-content { position: relative; z-index: 2; width: min(1280px, calc(100vw - 40px)); margin: -42px auto 60px; display: grid; grid-template-columns: minmax(310px, .72fr) minmax(0, 1.45fr); gap: 20px; align-items: start; }
.plan-card { position: sticky; top: 20px; padding: 22px; }
.viewer-card { min-width: 0; padding: 22px; }
.plan-wrap { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #f3f6f3; }
.plan-wrap img { display: block; width: 100%; height: auto; }
.plan-empty { min-height: 220px; display: grid; place-items: center; padding: 26px; color: var(--muted); text-align: center; font-size: 14px; }
.point-marker { position: absolute; width: 34px; height: 34px; display: grid; place-items: center; border: 3px solid white; border-radius: 50%; color: var(--navy); background: var(--teal); box-shadow: 0 5px 15px rgba(16,27,43,.25); transform: translate(-50%, -50%); font-size: 12px; font-weight: 900; transition: .16s ease; }
.point-marker::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 9px; height: 9px; border: 2px solid white; border-radius: 50%; background: var(--coral); }
.point-marker:hover, .point-marker.active { background: var(--coral); transform: translate(-50%, -50%) scale(1.14); }
.point-marker:hover::after, .point-marker.active::after { background: var(--teal); }
.point-list { display: grid; gap: 8px; max-height: 355px; margin-top: 17px; overflow: auto; padding-right: 2px; }
.point-list button { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 54px; padding: 10px 11px; border: 1px solid transparent; border-radius: 13px; color: var(--ink); background: var(--surface-soft); text-align: left; transition: .16s ease; }
.point-list button:hover, .point-list button.active { border-color: rgba(37,217,194,.48); background: #edfbf8; box-shadow: 0 5px 16px rgba(16,27,43,.05); }
.point-number { min-width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: var(--navy); background: var(--teal); font-size: 11px; font-weight: 900; }
.point-copy { display: grid; gap: 3px; min-width: 0; }
.point-copy strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.point-copy span { color: var(--muted); font-size: 11px; }
#panorama { width: 100%; height: min(70vh, 720px); min-height: 430px; border-radius: 17px; overflow: hidden; background: var(--navy); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.viewer-hint { margin: 13px 1px 0; color: var(--muted); font-size: 12px; }
.public-media-card { width: min(1280px, calc(100vw - 40px)); margin: 0 auto 60px; padding: 22px; }
.public-media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.public-media-item { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-soft); }
.public-media-item img, .public-media-item video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--navy); }
.public-media-caption { display: grid; gap: 4px; padding: 11px 12px 13px; }
.public-media-caption span { color: var(--teal-dark); text-transform: uppercase; letter-spacing: .12em; font-size: 9px; font-weight: 900; }
.public-media-caption strong { overflow: hidden; color: var(--navy); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.empty-state { width: min(700px, calc(100vw - 32px)); margin: 12vh auto; padding: 48px; text-align: center; }
.empty-state h1 { margin: 12px 0 8px; color: var(--navy); font: 800 32px Manrope, sans-serif; letter-spacing: -.06em; }
.empty-state p { color: var(--muted); line-height: 1.6; }

/* Auth */
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: var(--ivory); }
.auth-card { width: min(980px, 100%); min-height: 590px; display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; background: var(--surface); border-radius: 28px; box-shadow: var(--shadow); }
.auth-brand-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 590px; padding: 32px; color: white; background: var(--navy); }
.auth-brand-panel::before { content: ""; position: absolute; width: 520px; height: 520px; right: -240px; bottom: -180px; border: 1px solid rgba(37,217,194,.35); border-radius: 50%; box-shadow: 0 0 0 32px rgba(37,217,194,.06), 0 0 0 70px rgba(37,217,194,.035); }
.auth-brand-panel .brand-icon { background: rgba(255,255,255,.09); }
.auth-brand-copy { position: relative; z-index: 1; max-width: 390px; margin: auto 0 36px; }
.auth-brand-copy .eyebrow { color: var(--teal); }
.auth-brand-copy h2 { margin: 15px 0 13px; color: white; font: 800 clamp(31px, 4vw, 48px)/1.02 Manrope, sans-serif; letter-spacing: -.075em; }
.auth-brand-copy p { margin: 0; color: rgba(255,255,255,.68); line-height: 1.6; }
.auth-brand-orbit { position: relative; z-index: 1; width: 120px; height: 30px; border: 3px solid var(--teal); border-top-color: transparent; border-radius: 50%; transform: rotate(-8deg); }
.auth-brand-orbit::after { content: ""; position: absolute; right: 9px; bottom: -8px; width: 15px; height: 15px; border: 3px solid var(--navy); border-radius: 50%; background: var(--coral); }
.auth-form-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(26px, 5vw, 62px); }
.auth-form-panel h1 { margin: 11px 0 9px; color: var(--navy); font: 800 clamp(30px, 4vw, 44px)/1.05 Manrope, sans-serif; letter-spacing: -.07em; }
.auth-form-panel > p { margin: 0; color: var(--muted); line-height: 1.55; }
.auth-form-panel form { display: grid; gap: 14px; margin-top: 28px; }
.auth-switch { margin-top: 18px; color: var(--muted); font-size: 13px; }
.text-button { border: 0; padding: 0; color: var(--teal-dark); background: none; font-weight: 800; }

/* Admin */
.admin-layout { min-height: calc(100vh - 78px); display: grid; grid-template-columns: 286px minmax(0, 1fr); background: var(--ivory); }
.admin-side { padding: 28px 18px; border-right: 1px solid var(--line); background: #fbfaf7; }
.admin-side .btn { width: 100%; margin: 15px 0 25px; }
.side-label { padding-left: 5px; color: var(--muted); text-transform: uppercase; letter-spacing: .16em; font-size: 10px; font-weight: 900; }
.property-list { display: grid; gap: 8px; }
.property-item { display: grid; gap: 5px; width: 100%; padding: 13px; border: 1px solid transparent; border-radius: 14px; color: var(--ink); background: transparent; text-align: left; transition: .16s ease; }
.property-item:hover, .property-item.active { border-color: rgba(37,217,194,.42); background: white; box-shadow: var(--shadow-soft); }
.property-item strong { font-size: 13px; }
.property-item span { color: var(--muted); font-size: 11px; }
.side-note { display: flex; gap: 9px; align-items: flex-start; margin: 42px 5px 0; padding: 13px 12px; border: 1px solid rgba(37,217,194,.25); border-radius: 14px; color: var(--muted); background: #effbf8; font-size: 11px; line-height: 1.45; }
.side-note-dot { width: 7px; height: 7px; flex: 0 0 auto; margin-top: 4px; border-radius: 50%; background: var(--teal-dark); box-shadow: 0 0 0 4px rgba(37,217,194,.18); }
.admin-main { padding: 38px clamp(18px, 4vw, 62px) 72px; }
.admin-main-inner { width: min(1180px, 100%); margin: 0 auto; }
.admin-intro { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 0 26px; }
.admin-intro h1 { max-width: 700px; margin: 7px 0 8px; color: var(--navy); font: 800 clamp(30px, 4.5vw, 48px)/1.02 Manrope, sans-serif; letter-spacing: -.075em; }
.admin-intro p { margin: 0; color: var(--muted); }
.workspace-badge { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 9px 12px; border: 1px solid rgba(37,217,194,.38); border-radius: 999px; color: var(--teal-dark); background: #effbf8; font-size: 12px; font-weight: 800; }
.workspace-badge span { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(37,217,194,.16); }
.dashboard-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.metric-card { min-height: 112px; display: grid; align-content: center; gap: 4px; padding: 17px 18px; border: 1px solid rgba(16,27,43,.07); border-radius: 17px; background: rgba(255,255,255,.65); box-shadow: 0 8px 24px rgba(16,27,43,.035); }
.metric-card.metric-highlight { color: white; border-color: transparent; background: var(--navy); box-shadow: 0 12px 28px rgba(16,27,43,.14); }
.metric-label { color: var(--muted); font-size: 11px; font-weight: 800; }
.metric-highlight .metric-label { color: rgba(255,255,255,.62); }
.metric-card strong { color: var(--navy); font: 800 30px/1 Manrope, sans-serif; letter-spacing: -.06em; }
.metric-highlight strong { color: var(--teal); }
.metric-card small { color: var(--muted); font-size: 11px; }
.metric-highlight small { color: rgba(255,255,255,.62); }
.editor-card { padding: clamp(20px, 3vw, 34px); }
.editor-card > .card-head { padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.editor-grid { display: grid; grid-template-columns: minmax(290px, .78fr) minmax(0, 1.22fr); gap: 30px; }
.form-grid { display: grid; gap: 15px; align-content: start; }
.field { display: grid; gap: 7px; }
.field label { color: var(--navy-2); font-size: 12px; font-weight: 800; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: white; padding: 12px 13px; outline: none; transition: .16s ease; }
.field input::placeholder, .field textarea::placeholder { color: #a3adb4; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--teal-dark); box-shadow: 0 0 0 4px rgba(37,217,194,.14); }
.field textarea { min-height: 92px; resize: vertical; }
.field small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.location-data-grid { display: grid; grid-template-columns: 1.1fr 1.4fr .65fr; gap: 10px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 4px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 7px 10px; color: var(--navy); background: rgba(37,217,194,.18); font-size: 11px; font-weight: 900; white-space: nowrap; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-dark); }
.status-pill.draft { color: #86503c; background: rgba(242,140,104,.18); }
.status-pill.draft::before { background: var(--coral); }
.plan-editor { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #f3f6f3; user-select: none; box-shadow: inset 0 0 0 5px rgba(255,255,255,.5); }
.plan-editor img { display: block; width: 100%; height: auto; }
.plan-editor .point-marker { cursor: grab; touch-action: none; }
.plan-editor .point-marker:active { cursor: grabbing; }
.editor-help { padding: 11px 2px 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.point-editor { margin-top: 24px; padding-top: 23px; border-top: 1px solid var(--line); }
.point-editor h3 { margin: 0 0 14px; color: var(--navy); font: 800 17px Manrope, sans-serif; }
.point-editor-grid { display: grid; grid-template-columns: 1fr 115px; gap: 13px; }
.point-editor .wide { grid-column: 1 / -1; }
.file-box { padding: 13px; border: 1px dashed #b7d9d2; border-radius: 13px; background: #f5fbf9; }
.file-box input { padding: 0; border: 0; background: transparent; font-size: 12px; }
.public-link { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 11px 13px; border: 1px solid rgba(37,217,194,.45); border-radius: 13px; color: var(--teal-dark); background: #effbf8; font-size: 12px; word-break: break-all; }
.public-link code { font: 600 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.media-manager { margin-top: 24px; }
.media-manager .card-head { margin-bottom: 14px; }
.media-manager .card-head h3 { margin: 5px 0 0; }
.media-admin-list { display: grid; gap: 8px; margin-top: 13px; }
.media-admin-item { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.media-admin-thumb { width: 62px; height: 48px; flex: 0 0 auto; overflow: hidden; border-radius: 8px; background: var(--navy); }
.media-admin-thumb img, .media-admin-thumb video { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-admin-copy { display: grid; gap: 3px; min-width: 0; flex: 1; }
.media-admin-copy strong { overflow: hidden; color: var(--navy); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.media-admin-copy span { color: var(--muted); font-size: 10px; }
.media-empty { margin: 13px 0 0; font-size: 12px; }
.muted { color: var(--muted); }
.hide { display: none !important; }

@media (max-width: 900px) {
  .public-content { grid-template-columns: 1fr; }
  .plan-card { position: static; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .property-list { display: flex; overflow-x: auto; padding-bottom: 4px; }
  .property-item { min-width: 205px; }
  .editor-grid { grid-template-columns: 1fr; }
  .public-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-intro { display: block; }
  .workspace-badge { margin-top: 18px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .auth-shell { padding: 14px; }
  .auth-card { display: block; border-radius: 22px; }
  .auth-brand-panel { min-height: 330px; padding: 24px; }
  .auth-brand-copy { margin-top: 64px; margin-bottom: 0; }
  .auth-brand-copy h2 { font-size: 32px; }
  .auth-brand-orbit { display: none; }
  .auth-form-panel { padding: 30px 24px 34px; }
  .catalog-hero { min-height: 485px; }
  .catalog-hero-inner { width: calc(100vw - 40px); padding-top: 25px; }
  .catalog-hero .brand { margin-bottom: 76px; }
  .catalog-hero-copy h1 { font-size: 45px; }
  .catalog-main { width: calc(100vw - 24px); margin-top: -34px; }
  .catalog-toolbar { display: block; padding: 20px; }
  .catalog-toolbar .btn { margin-top: 17px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-card-media { height: 215px; }
  .catalog-search-control kbd { display: none; }
  .public-head { padding: 25px 20px 70px; }
  .public-head .brand { margin-bottom: 42px; }
  .public-content { width: calc(100vw - 24px); margin-top: -35px; }
  .plan-card, .viewer-card { padding: 14px; border-radius: 17px; }
  #panorama { min-height: 330px; height: 58vh; }
  .topbar { padding: 14px 17px; }
  .topbar .eyebrow { display: none; }
  .brand-type strong { font-size: 18px; }
  .admin-main { padding: 27px 13px 50px; }
  .admin-side { padding: 21px 13px; }
  .side-note { display: none; }
  .dashboard-metrics { grid-template-columns: 1fr; gap: 8px; }
  .metric-card { min-height: 82px; }
  .editor-card { padding: 17px; }
  .location-data-grid { grid-template-columns: 1fr; }
  .public-media-card { width: calc(100vw - 24px); padding: 14px; border-radius: 17px; }
  .public-media-grid { grid-template-columns: 1fr; }
  .point-editor-grid { grid-template-columns: 1fr; }
  .point-editor .wide { grid-column: auto; }
}
