/* ═══════════════════════════════════════════════════════════════════════════
   Cinematic Project Experience (batch 107) — /projects/<slug>
   A tall scroll container; a sticky full-viewport stage (poster → video or frames) with the
   chapter text, hotspots and plots over it; a booking section after it.
   One deliberate dark look (a screening room), on the Immersa palette.
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  color-scheme: dark;
  --cx-bg: #07080c;
  --cx-surface: #11141c;
  --cx-surface-2: #1a2030;
  --cx-line: #2e3a52;
  --cx-ink: #f3f5f8;
  --cx-muted: #a8b5cc;
  --cx-accent: #00e5ff;
  --cx-accent-ink: #001014;
  --cx-gold: #d4a843;
  --cx-ok: #00c48c;
  --cx-sold: #ff4d6d;
  --cx-wa: #25d366;
  --cx-ar: 'IBM Plex Sans Arabic', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  --cx-en: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --cx-head-h: 60px;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--cx-bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cx-bg); color: var(--cx-ink); font-family: var(--cx-ar); line-height: 1.6; overflow-x: clip; }
html[lang="en"] body { font-family: var(--cx-en); }
html.cx-locked { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cx-accent); outline-offset: 2px; }

.cx-skip { position: absolute; inset-inline-start: 8px; top: -80px; z-index: 50; background: var(--cx-accent); color: var(--cx-accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.cx-skip:focus { top: 8px; }

/* ── header ─────────────────────────────────────────────────────────── */
.cx-head { position: fixed; inset: 0 0 auto; z-index: 30; background: linear-gradient(180deg, rgb(7 8 12 / .82), rgb(7 8 12 / 0)); padding-top: env(safe-area-inset-top, 0px); }
.cx-head-row { display: flex; align-items: center; gap: 12px; height: var(--cx-head-h); padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
.cx-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; text-decoration: none; font-weight: 700; }
.cx-brand img { height: 30px; width: auto; max-width: 120px; }
.cx-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-nav { display: flex; gap: 2px; margin-inline: auto; }
.cx-dot { width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.cx-dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: rgb(243 245 248 / .35); transition: background .2s, transform .2s; }
.cx-dot[aria-current="step"]::after { background: var(--cx-accent); transform: scale(1.4); }
.cx-head-actions { display: flex; gap: 8px; align-items: center; flex: none; }
.cx-lang { min-width: 44px; min-height: 44px; border: 1px solid rgb(243 245 248 / .25); background: rgb(7 8 12 / .4); border-radius: 10px; cursor: pointer; font-size: .85rem; }
.cx-wa { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 16px; border-radius: 10px; background: var(--cx-wa); color: #04210f; font-weight: 700; text-decoration: none; white-space: nowrap; }
.cx-progress { height: 2px; background: rgb(243 245 248 / .12); }
.cx-progress i { display: block; height: 100%; width: 0; background: var(--cx-accent); }
.cx-demo { margin: 0; padding: 6px 16px; text-align: center; font-size: .85rem; font-weight: 700; color: var(--cx-gold); background: rgb(7 8 12 / .7); }
@media (max-width: 720px) { .cx-nav { display: none; } .cx-brand span { max-width: 42vw; } }

/* ── stage ──────────────────────────────────────────────────────────── */
.cx-scroll { position: relative; height: 800vh; }
.cx-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--cx-bg); }
.cx-poster, .cx-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cx-media { z-index: 1; }
.cx-shade { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(0deg, rgb(7 8 12 / .78) 0%, rgb(7 8 12 / .25) 38%, rgb(7 8 12 / 0) 62%); }
.cx-texts { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.cx-text {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 0 max(20px, env(safe-area-inset-left, 0px)) calc(56px + env(safe-area-inset-bottom, 0px));
  max-width: 760px; opacity: 0; will-change: opacity, transform;
}
.cx-text .cx-eyebrow { margin: 0 0 8px; color: var(--cx-accent); font-size: .9rem; font-weight: 700; }
.cx-text h2 { margin: 0; font-size: clamp(2rem, 6.5vw, 4.4rem); font-weight: 700; line-height: 1.12; text-wrap: balance; text-shadow: 0 2px 24px rgb(0 0 0 / .45); }
.cx-text p { margin: 14px 0 0; max-width: 34ch; font-size: clamp(1rem, 2.2vw, 1.25rem); color: rgb(243 245 248 / .88); line-height: 1.75; }
html[lang="en"] .cx-text h2 { letter-spacing: -0.02em; }

.cx-spots { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.cx-spot, .cx-plot { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; cursor: pointer; transition: opacity .25s; }
.cx-spot { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; padding: 0; display: grid; place-items: center; }
.cx-spot::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; border: 2px solid var(--cx-accent); animation: cx-pulse 2s ease-out infinite; }
.cx-spot::after { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--cx-accent); box-shadow: 0 0 0 4px rgb(0 229 255 / .25); }
@keyframes cx-pulse { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.cx-spot-label { position: absolute; top: 100%; white-space: nowrap; font-size: .85rem; font-weight: 700; background: rgb(7 8 12 / .75); padding: 2px 10px; border-radius: 99px; }
.cx-plot {
  min-width: 48px; min-height: 44px; padding: 0 10px; border-radius: 10px; font-weight: 700; font-size: .95rem;
  background: rgb(7 8 12 / .72); border: 2px solid currentColor; display: grid; place-items: center; line-height: 1.1;
}
.cx-plot small { font-size: .68rem; font-weight: 500; }
.cx-plot.st-available { color: var(--cx-ok); }
.cx-plot.st-reserved { color: var(--cx-gold); border-style: dashed; }
.cx-plot.st-sold { color: var(--cx-sold); background: repeating-linear-gradient(135deg, rgb(7 8 12 / .82) 0 6px, rgb(255 77 109 / .3) 6px 8px); }
.cx-plot.st-sold span, .cx-plot.st-sold small { background: rgb(7 8 12 / .9); border-radius: 4px; padding-inline: 4px; }   /* the hatching must not cross the words */
.cx-plot[aria-pressed="true"] { background: currentColor; }
.cx-plot[aria-pressed="true"] span, .cx-plot[aria-pressed="true"] small { color: var(--cx-bg); }
/* batch 117 — plots coloured whole: the polygon carries colour and pattern, the button over it the number and the word */
.cx-shapes { position: absolute; inset: 0; pointer-events: none; }
.cx-shapes svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cx-shape { pointer-events: auto; cursor: pointer; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; fill: currentColor; fill-opacity: .3; transition: fill-opacity .2s, stroke-width .2s; }
.cx-shape.st-available { color: var(--cx-ok); }
.cx-shape.st-reserved { color: var(--cx-gold); stroke-dasharray: 8 6; }
.cx-shape.st-sold { color: var(--cx-sold); fill-opacity: .85; }
.cx-shape:hover { fill-opacity: .5; }
.cx-shape.st-sold:hover { fill-opacity: 1; }
.cx-shape.sel { fill-opacity: .62; stroke: var(--cx-ink); stroke-width: 3; stroke-dasharray: none; }
.cx-shape.st-sold.sel { fill-opacity: 1; }
.cx-hatch-bg { fill: var(--cx-bg); fill-opacity: .55; }
.cx-hatch-line { fill: var(--cx-sold); fill-opacity: .8; }
.cx-plot.on-shape { border-color: transparent; background: rgb(7 8 12 / .78); min-width: 44px; padding: 2px 8px; }
.cx-plot.on-shape.st-sold { background: rgb(7 8 12 / .78); }
.cx-plot.on-shape.hover, .cx-plot.on-shape:hover, .cx-plot.on-shape:focus-visible { border-color: currentColor; }
.cx-plot.on-shape[aria-pressed="true"] { background: currentColor; }
/* batch 126 — the chapter's own navigation: glass pills under the picture, or a titled panel beside it */
.cx-go { position: absolute; z-index: 5; inset-inline: 0; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding-inline: 16px; pointer-events: none; }
.cx-go-btn {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding-inline: 20px;
  border-radius: 999px; border: 1px solid rgb(255 255 255 / .22); background: rgb(12 16 24 / .55); color: var(--cx-ink);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 8px 30px rgb(0 0 0 / .35);
  transition: transform .2s, border-color .2s, background-color .2s;
}
.cx-go-btn:has(.cx-go-note) { padding-inline: 20px 7px; }
.cx-go-btn:hover { border-color: var(--cx-accent); transform: translateY(-2px); }
.cx-go-btn:focus-visible { outline: 2px solid var(--cx-accent); outline-offset: 2px; }
.cx-go-note { display: inline-flex; align-items: center; min-height: 34px; padding-inline: 14px; border-radius: 999px; background: var(--cx-accent); color: var(--cx-accent-ink); font-size: .85rem; }
.cx-text.has-nav { padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }
.cx-go.is-panel {
  inset-inline: auto max(20px, env(safe-area-inset-right, 0px)); top: calc(var(--cx-top, var(--cx-head-h)) + 18px); bottom: auto;
  flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 8px; width: min(300px, 76vw); max-height: calc(100% - var(--cx-top, var(--cx-head-h)) - 150px); overflow-y: auto;
  padding: 16px; border-radius: 18px; border: 1px solid rgb(255 255 255 / .18); background: rgb(12 16 24 / .5);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); pointer-events: auto; box-shadow: 0 16px 50px rgb(0 0 0 / .4);
}
.cx-go-title { font-size: 1.3rem; line-height: 1.25; margin-bottom: 4px; }
.cx-go.is-panel .cx-go-btn { justify-content: space-between; border-radius: 12px; background: rgb(255 255 255 / .07); box-shadow: none; min-height: 46px; padding-inline: 14px; text-align: start; }
.cx-go.is-panel .cx-go-btn:hover { background: rgb(255 255 255 / .14); transform: none; }
.cx-go.is-panel .cx-go-note { background: none; color: var(--cx-muted); padding: 0; min-height: 0; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .cx-go-btn { transition: none; } .cx-go-btn:hover { transform: none; } }
.cx-legend { position: absolute; z-index: 4; top: calc(var(--cx-top, var(--cx-head-h)) + 14px); inset-inline-start: max(20px, env(safe-area-inset-left, 0px)); display: grid; gap: 6px; background: rgb(7 8 12 / .72); padding: 12px 14px; border-radius: 12px; }
.cx-legend b { font-size: 1.15rem; }
.cx-legend ul { margin: 0; padding: 0; list-style: none; display: flex; gap: 12px; flex-wrap: wrap; font-size: .85rem; }
.cx-legend li::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; border: 2px solid currentColor; vertical-align: middle; }
.cx-legend .st-available { color: var(--cx-ok); } .cx-legend .st-reserved { color: var(--cx-gold); } .cx-legend .st-sold { color: var(--cx-sold); }
.cx-legend li span { color: var(--cx-ink); }

.cx-card { position: absolute; z-index: 6; inset-inline: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); max-width: 420px; margin-inline: auto; background: var(--cx-surface); border: 1px solid var(--cx-line); border-radius: 16px; padding: 16px; display: grid; gap: 10px; box-shadow: 0 20px 50px rgb(0 0 0 / .5); }
.cx-card h3 { margin: 0; font-size: 1.15rem; }
.cx-card p { margin: 0; color: var(--cx-muted); }

.cx-hint { position: absolute; z-index: 3; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); inset-inline: 0; margin: 0; text-align: center; font-size: .85rem; color: var(--cx-muted); transition: opacity .3s; }
.cx-load { position: absolute; z-index: 5; inset: auto 0 0; height: 2px; background: rgb(243 245 248 / .08); transition: opacity .4s; }
.cx-load i { display: block; height: 100%; width: 0; background: var(--cx-gold); transition: width .2s; }
.cx-load.done { opacity: 0; }

/* ── buttons ────────────────────────────────────────────────────────── */
.cx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding-inline: 20px; border-radius: 12px; border: 1px solid var(--cx-line); background: var(--cx-surface-2); font-weight: 700; text-decoration: none; cursor: pointer; }
.cx-btn:hover { border-color: var(--cx-accent); }
.cx-btn.primary { background: var(--cx-accent); border-color: var(--cx-accent); color: var(--cx-accent-ink); }
.cx-btn.wa { background: var(--cx-wa); border-color: var(--cx-wa); color: #04210f; }
.cx-btn[disabled], .cx-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.cx-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-close { min-width: 44px; min-height: 44px; border: 1px solid var(--cx-line); background: var(--cx-surface-2); border-radius: 10px; cursor: pointer; padding-inline: 12px; }

/* ── unit card ──────────────────────────────────────────────────────── */
.cx-unit {
  position: fixed; z-index: 35; inset-inline: 0; bottom: 0; max-height: 72vh; overflow: auto;
  background: var(--cx-surface); border-top: 1px solid var(--cx-line); border-radius: 20px 20px 0 0;
  padding: 18px max(18px, env(safe-area-inset-left, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-right, 0px));
  display: grid; gap: 14px; box-shadow: 0 -20px 60px rgb(0 0 0 / .55);
}
@media (min-width: 900px) {
  .cx-unit { inset: auto; bottom: 24px; inset-inline-end: 24px; width: 380px; border: 1px solid var(--cx-line); border-radius: 20px; }
}
.cx-unit-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.cx-unit-head h2 { margin: 0; font-size: 1.4rem; }
.cx-unit-sub { margin: 2px 0 0; color: var(--cx-muted); font-size: .9rem; }
.cx-specs { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cx-specs div { background: var(--cx-surface-2); border-radius: 12px; padding: 10px; }
.cx-specs dt { color: var(--cx-muted); font-size: .78rem; }
.cx-specs dd { margin: 0; font-weight: 700; font-size: 1.1rem; }
.cx-price { margin: 0; color: var(--cx-gold); font-size: 1.4rem; font-weight: 700; }
.cx-status { justify-self: start; font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; border: 1px solid currentColor; }
.cx-status.st-available { color: var(--cx-ok); } .cx-status.st-reserved { color: var(--cx-gold); } .cx-status.st-sold { color: var(--cx-sold); }
.cx-soon { margin: 0; color: var(--cx-muted); font-size: .9rem; }

/* ── modals: the 360° tour, the floor plan ─────────────────────────── */
.cx-modal { position: fixed; inset: 0; z-index: 60; background: var(--cx-bg); display: flex; flex-direction: column; }
.cx-modal-bar { display: flex; align-items: center; gap: 10px; padding: calc(8px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-left, 0px)) 8px max(12px, env(safe-area-inset-right, 0px)); border-bottom: 1px solid var(--cx-line); }
.cx-modal-bar h2 { margin: 0; flex: 1; min-width: 0; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-modal-body { flex: 1; min-height: 0; position: relative; }
.cx-modal-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.cx-zoom { display: flex; gap: 6px; }
.cx-zoom button { min-width: 44px; min-height: 44px; border: 1px solid var(--cx-line); background: var(--cx-surface-2); border-radius: 10px; cursor: pointer; padding-inline: 10px; }
.cx-plan { overflow: hidden; touch-action: none; background: #f4f6f8; cursor: grab; }
.cx-plan-inner { position: absolute; inset: 0; display: grid; place-items: center; transform-origin: 0 0; }
.cx-plan-inner svg { width: min(100%, 1100px); height: auto; max-height: 100%; }
.cx-plan-msg { position: absolute; inset: 0; display: grid; place-items: center; color: #303846; }

/* ── booking ────────────────────────────────────────────────────────── */
/* batch 130 — autoplay */
.cx-auto { font-size: 1rem; line-height: 1; }
.cx-auto[aria-pressed="true"] { background: var(--cx-accent); border-color: var(--cx-accent); color: var(--cx-accent-ink); }
.cx-auto:focus-visible { outline: 2px solid var(--cx-accent); outline-offset: 2px; }
/* batch 129 — look around: what is glued to the picture leans with it */
.cx-glue { position: absolute; inset: 0; pointer-events: none; transform-origin: 50% 50%; will-change: transform; }
.cx-media { transform-origin: 50% 50%; }
/* batch 128 — live gauges: the project's figures, following the film */
.cx-gauges { position: absolute; z-index: 5; top: calc(var(--cx-top, var(--cx-head-h)) + 14px); inset-inline-end: max(20px, env(safe-area-inset-right, 0px)); margin: 0; display: flex; gap: 8px; pointer-events: none; }
.cx-gauges > div { min-width: 86px; padding: 8px 12px; border-radius: 12px; border: 1px solid rgb(255 255 255 / .18); background: rgb(12 16 24 / .5); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); }
.cx-gauges dt { font-size: .7rem; color: var(--cx-muted); white-space: nowrap; }
.cx-gauges dd { margin: 2px 0 0; display: flex; align-items: baseline; gap: 5px; direction: ltr; justify-content: flex-end; }
html[lang="en"] .cx-gauges dd { justify-content: flex-start; }
.cx-gauges dd b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.cx-gauges dd span { font-size: .78rem; color: var(--cx-muted); }
.cx-stage.has-gauges .cx-go.is-panel { top: calc(var(--cx-top, var(--cx-head-h)) + 86px); max-height: calc(100% - var(--cx-top, var(--cx-head-h)) - 218px); }
@media (max-width: 520px) { .cx-gauges > div { min-width: 72px; padding: 6px 10px; } .cx-gauges dd b { font-size: 1rem; } .cx-gauges > div:nth-child(3) { display: none; } }
/* batch 127 — the visitor's unit: a chip through the film, a summary at the end */
.cx-chip {
  position: absolute; z-index: 5; top: calc(var(--cx-top, var(--cx-head-h)) + 14px); inset-inline-start: max(20px, env(safe-area-inset-left, 0px));
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; max-width: min(78vw, 360px); padding: 6px 16px 6px 12px; padding-inline: 12px 16px;
  border-radius: 999px; border: 1px solid rgb(255 255 255 / .22); background: rgb(12 16 24 / .55); color: var(--cx-ink);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  font: inherit; text-align: start; cursor: pointer; box-shadow: 0 8px 30px rgb(0 0 0 / .35); transition: border-color .2s;
}
.cx-chip:hover { border-color: var(--cx-accent); }
.cx-chip:focus-visible { outline: 2px solid var(--cx-accent); outline-offset: 2px; }
.cx-chip-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--cx-accent); box-shadow: 0 0 0 4px rgb(255 255 255 / .12); }
.cx-chip-dot.st-available { background: var(--cx-ok); } .cx-chip-dot.st-reserved { background: var(--cx-gold); } .cx-chip-dot.st-sold { background: var(--cx-sold); }
.cx-chip-text { display: grid; min-width: 0; line-height: 1.25; }
.cx-chip-text b { font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-chip-text small { font-size: .78rem; color: var(--cx-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-end-unit { display: grid; justify-items: center; gap: 10px; width: min(100%, 460px); padding: 22px 20px; border-radius: 18px; border: 1px solid var(--cx-line); background: var(--cx-surface); }
.cx-end-unit > small { color: var(--cx-accent); font-weight: 700; font-size: .85rem; }
.cx-end-unit h3 { margin: 0; font-size: 1.6rem; }
.cx-end-plot { margin: 0; display: flex; gap: 10px; align-items: center; color: var(--cx-muted); }
.cx-end-unit .cx-specs { width: 100%; }
.cx-again { background: none; }
/* batch 132 — on a phone the unit chip, the gauges and the side panel share one narrow top edge: one under the other */
@media (max-width: 560px) {
  .cx-gauges { top: calc(var(--cx-top, var(--cx-head-h)) + 72px); }
  .cx-go.is-panel { top: calc(var(--cx-top, var(--cx-head-h)) + 74px); max-height: calc(100% - var(--cx-top, var(--cx-head-h)) - 210px); }
  .cx-stage.has-gauges .cx-go.is-panel { top: calc(var(--cx-top, var(--cx-head-h)) + 142px); max-height: calc(100% - var(--cx-top, var(--cx-head-h)) - 280px); }
}
.cx-end { padding: 72px max(20px, env(safe-area-inset-left, 0px)) 56px; display: grid; justify-items: center; text-align: center; gap: 18px; background: radial-gradient(120% 80% at 50% 0%, var(--cx-surface-2), var(--cx-bg)); }
.cx-end h2 { margin: 0; font-size: clamp(1.8rem, 5vw, 3rem); text-wrap: balance; }
.cx-end > p { margin: 0; color: var(--cx-muted); max-width: 46ch; }
.cx-form { width: min(100%, 460px); display: grid; gap: 10px; text-align: start; margin-top: 10px; }
.cx-form label { font-size: .85rem; color: var(--cx-muted); }
.cx-form input, .cx-form textarea { width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--cx-line); background: var(--cx-surface); color: var(--cx-ink); padding: 10px 14px; font: inherit; font-size: 16px; }
.cx-form textarea { min-height: 88px; resize: vertical; }
.cx-form .cx-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.cx-form-msg { margin: 0; min-height: 1.6em; font-size: .92rem; }
.cx-form-msg.ok { color: var(--cx-ok); } .cx-form-msg.err { color: var(--cx-sold); }

.cx-foot { padding: 20px max(20px, env(safe-area-inset-left, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)); color: var(--cx-muted); font-size: .8rem; text-align: center; display: grid; gap: 6px; border-top: 1px solid var(--cx-line); }
.cx-foot p { margin: 0; }
.cx-foot-links { display: flex; justify-content: center; gap: 14px; }
.cx-foot-links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; text-decoration: none; }
.cx-mark { display: inline-flex; align-items: center; color: var(--cx-accent); font-family: var(--cx-en); }

/* ── the still layout (reduced motion, low-memory devices) ─────────── */
.cx-static { padding-top: calc(var(--cx-top, var(--cx-head-h)) + 24px); display: grid; gap: 0; }
/* batch 112 — why the page is still, and the way to the moving one */
.cx-motion { display: grid; gap: 10px; justify-items: start; margin: 0 max(16px, env(safe-area-inset-left, 0px)) 18px; padding: 14px 16px; border: 1px solid var(--cx-line); border-radius: 14px; background: var(--cx-surface); }
.cx-motion p { margin: 0; color: var(--cx-muted); font-size: .92rem; }
.cx-still-btn { position: absolute; z-index: 6; top: calc(var(--cx-top, var(--cx-head-h)) + 12px); inset-inline-end: max(16px, env(safe-area-inset-right, 0px)); min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--cx-line); background: rgb(7 8 12 / .72); color: var(--cx-ink); font: inherit; font-size: .88rem; cursor: pointer; }
.cx-chap { position: relative; display: grid; transition: opacity .8s ease, transform .8s ease; }
.cx-chap.pre { opacity: .2; transform: translateY(24px); }
.cx-chap img { width: 100%; max-height: 82vh; object-fit: cover; display: block; }
.cx-chap-text { padding: 22px max(20px, env(safe-area-inset-left, 0px)) 34px; display: grid; gap: 12px; max-width: 760px; }
.cx-chap-text h2 { margin: 0; font-size: clamp(1.7rem, 5vw, 2.8rem); }
.cx-chap-text p { margin: 0; color: rgb(243 245 248 / .85); max-width: 46ch; }
.cx-plots-list { display: flex; flex-wrap: wrap; gap: 8px; }
/* batch 120 — plots outside the phone's cut of the wide frame: a row of chips over the picture */
.cx-plots-off { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; pointer-events: auto; max-width: min(78vw, 420px); }
.cx-plots-off small { flex-basis: 100%; font-size: .78rem; color: var(--cx-muted); }
.cx-plots-off .cx-plot { position: static; transform: none; }
.cx-plan-inner img { display: block; max-width: 100%; max-height: 100%; margin: auto; background: var(--cx-ink); border-radius: 8px; }
.cx-plots-list .cx-plot { position: static; transform: none; }

/* batch 109 — the placing tool (?place=1) */
.cx-place-layer { position: absolute; inset: 0; z-index: 7; cursor: crosshair; }
.cx-place-layer.off { pointer-events: none; }
.cx-place-mark { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 2px solid var(--cx-accent); border-radius: 50%; box-shadow: 0 0 0 3px rgb(0 0 0 / .5); pointer-events: none; }
.cx-place-panel { position: fixed; z-index: 40; inset-inline-start: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: min(340px, calc(100vw - 24px)); display: grid; gap: 8px; background: var(--cx-surface); border: 1px solid var(--cx-accent); border-radius: 14px; padding: 12px 14px; box-shadow: 0 16px 40px rgb(0 0 0 / .55); font-size: .85rem; }
.cx-place-panel p { margin: 0; color: var(--cx-muted); }
.cx-place-out { display: block; min-height: 1.6em; padding: 6px 8px; border-radius: 8px; background: rgb(0 0 0 / .35); font-size: .9rem; text-align: left; word-break: break-all; }
.cx-place-row { display: flex; gap: 8px; }
.cx-place-row .cx-btn { flex: 1; }
.cx-place-layer svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.cx-place-poly { fill: var(--cx-accent); fill-opacity: .25; stroke: var(--cx-accent); stroke-width: 2; }
.cx-place-dot { fill: var(--cx-accent); stroke: var(--cx-bg); stroke-width: 2; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cx-chap.pre { opacity: 1; transform: none; }
}
