/* WEBSITES TO BUY: listing (/websites/) and editor (/websites/edit/). Dark, techno type, no orange. */
:root {
  --bg: #050505; --panel: #0c0c10; --panel-2: #14141a; --line: rgba(255, 255, 255, .12); --line-2: rgba(255, 255, 255, .22);
  --text: #f2f2f5; --dim: rgba(242, 242, 245, .62); --faint: rgba(242, 242, 245, .38);
  --cyan: #7cf6ff; --violet: #a78bff; --green: #7dffb2; --red: #ff5c7a;
  --radius: 4px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: "DREAMERS Rajdhani", Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
[hidden] { display: none !important; }
.eyebrow { font-size: 12px; letter-spacing: .24em; color: var(--cyan); margin: 0 0 10px; }

/* buttons: flat, angular, no pills */
.ws-btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px;
  border: 1px solid var(--cyan); background: var(--cyan); color: #001014; font: 800 13px/1 "DREAMERS Orbitron", Arial, sans-serif; letter-spacing: .1em;
  text-decoration: none; cursor: pointer; border-radius: var(--radius); white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.ws-btn:hover { background: #b8fbff; }
.ws-btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.ws-btn.ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.ws-btn[disabled], .ws-btn[aria-disabled="true"] { background: transparent; color: var(--faint); border-color: var(--line); cursor: not-allowed; }
.ws-btn.small { min-height: 32px; padding: 0 12px; font-size: 11px; }

/* ---------------- listing: THE SCREEN HALL ---------------- */
/* The 3D hall (world.js) is a fixed canvas behind everything. Still mode (reduced motion, MOTION OFF) and
   no-WebGL show a rendered still of the same hall (world-still*.jpg) over a gradient that already reads as it. */
.ws-page { min-height: 100vh; background: #030409; }
.ws-world { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background: radial-gradient(60% 45% at 50% 58%, rgba(124, 246, 255, .14), transparent 70%),
    radial-gradient(40% 60% at 82% 40%, rgba(167, 139, 255, .12), transparent 70%),
    linear-gradient(180deg, #04050c 0%, #070a16 55%, #020306 56%, #05070f 100%); }
.ws-world::before { content: ""; position: absolute; inset: 0; background: url("/websites/world-still.jpg") center 58% / cover no-repeat; opacity: 0; transition: opacity .8s; }
.ws-world canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.ws-page[data-world="webgl"] .ws-world canvas { opacity: 1; }
.ws-page[data-world="still"] .ws-world::before, .ws-page[data-world="fallback"] .ws-world::before { opacity: 1; }
@media (max-width: 760px) { .ws-world::before { background-image: url("/websites/world-still-phone.jpg"); background-position: center 40%; } }
/* contrast veil: darker at the very top (header) and toward the bottom of the page */
.ws-veil { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 4, 9, .72) 0, rgba(3, 4, 9, 0) 140px, rgba(3, 4, 9, 0) 72%, rgba(3, 4, 9, .45) 100%); }

.ws-top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(16px, 4vw, 48px); }
.ws-mark img { display: block; height: 16px; width: auto; }
.ws-nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 22px); font-size: 13px; letter-spacing: .14em; }
.ws-nav a { text-decoration: none; color: var(--dim); }
.ws-nav a:hover { color: var(--cyan); }
.ws-account { display: inline-flex; align-items: center; }
.ws-main { position: relative; z-index: 2; padding: 0 clamp(16px, 4vw, 48px) 40px; max-width: 1360px; margin: 0 auto; }

/* hero: the establishing shot of the hall, copy anchored low-left */
.ws-hero { min-height: calc(100svh - 70px); display: flex; flex-direction: column; justify-content: flex-end; padding: 0 0 clamp(28px, 6vh, 64px); max-width: 1000px; }
.ws-hero .eyebrow { text-shadow: 0 0 18px rgba(124, 246, 255, .45); }
.ws-hero h1 { font: 900 clamp(38px, 8.2vw, 116px)/.92 "DREAMERS Orbitron", Arial, sans-serif; letter-spacing: .01em; margin: 0 0 18px;
  text-shadow: 0 0 40px rgba(124, 246, 255, .25), 0 2px 0 rgba(0, 0, 0, .6); }
.ws-lede { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.42; color: rgba(242, 242, 245, .82); max-width: 720px; margin: 0; text-shadow: 0 1px 12px rgba(0, 0, 0, .9); }
.ws-steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); max-width: 900px; }
.ws-steps li { background: rgba(4, 5, 11, .78); padding: 14px 16px 16px; display: grid; gap: 6px; }
.ws-steps b { font-family: "DREAMERS Mono", monospace; color: var(--cyan); font-size: 12px; }
.ws-steps span { font: 800 15px/1.1 "DREAMERS Orbitron", Arial, sans-serif; letter-spacing: .06em; }
.ws-steps small { color: var(--dim); font-size: 14px; line-height: 1.35; }
/* The status line swaps LOADING for a count + sign-in button after the list arrives. Its box is fixed
   (one 20px line, two on phones) so the swap never nudges the bottom-anchored hero or the landing mark. */
.ws-status { color: var(--dim); letter-spacing: .14em; font-size: 13px; line-height: 20px; margin: 18px 0 0; min-height: 20px; }
.ws-status .ws-link { line-height: 20px; vertical-align: top; }
@media (max-width: 700px) { .ws-status { min-height: 40px; } }
.ws-status.err { color: var(--red); }
.ws-link { appearance: none; background: none; border: 0; padding: 0; color: var(--cyan); font: inherit; letter-spacing: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ws-link:hover { color: #b8fbff; }

/* the exhibits: one per row, so 7 or 10 never leave a half-empty row. Media touches the frame on three
   sides; the info column and media share one row height (no holes either way). */
.ws-grid { display: grid; gap: clamp(64px, 16vh, 180px); padding: clamp(30px, 8vh, 90px) 0 0; }
.ws-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(330px, 1fr); grid-template-areas: "media info" "inside inside" "can can";
  background: rgba(5, 7, 14, .88); border: 1px solid rgba(124, 246, 255, .16); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4), 0 0 60px -20px rgba(124, 246, 255, .18); scroll-margin-top: 80px; }
.ws-card.flip { grid-template-columns: minmax(330px, 1fr) minmax(0, 1.62fr); grid-template-areas: "info media" "inside inside" "can can"; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4), 0 0 60px -20px rgba(167, 139, 255, .22); }
@supports (backdrop-filter: blur(1px)) { @media (min-width: 761px) and (pointer: fine) { .ws-card { background: rgba(5, 7, 14, .6); backdrop-filter: blur(18px) saturate(1.2); } } }
.ws-card:hover, .ws-card:focus-within { border-color: rgba(124, 246, 255, .42); }
.ws-media { grid-area: media; position: relative; aspect-ratio: 16 / 9; min-height: 100%; background: #000; overflow: hidden; }
.ws-media img, .ws-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.ws-media .ws-badge { position: absolute; left: 12px; bottom: 12px; }
.ws-badge { display: inline-block; padding: 5px 8px; font: 800 10px/1 "DREAMERS Orbitron", Arial, sans-serif; letter-spacing: .12em; background: rgba(0, 0, 0, .72); border: 1px solid var(--line-2); border-radius: 2px; }
.ws-badge.own { color: #001a0c; background: var(--green); border-color: var(--green); }
.ws-info { grid-area: info; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: clamp(18px, 2.2vw, 30px); min-width: 0; }
.ws-head { display: grid; gap: 10px; }
.ws-kind { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; color: var(--cyan); font-size: 12px; letter-spacing: .18em; }
.ws-kind b { font: 800 12px/1 "DREAMERS Mono", monospace; color: var(--text); letter-spacing: .08em; }
.ws-card h2 { margin: 0; font: 900 clamp(22px, 2.3vw, 34px)/1.02 "DREAMERS Orbitron", Arial, sans-serif; letter-spacing: .02em; }
.ws-desc { margin: 0; color: rgba(242, 242, 245, .74); font-size: 16px; line-height: 1.42; }
.ws-foot-row { display: grid; gap: 14px; }
.ws-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-actions .ws-btn { flex: 1 1 140px; }
.ws-price { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.ws-price strong { font: 800 12px/1.25 "DREAMERS Orbitron", Arial, sans-serif; letter-spacing: .08em; color: var(--dim); }
.ws-inquire { border-color: rgba(167, 139, 255, .7); color: #d9ceff; }
.ws-inquire:hover, .ws-inquire[aria-expanded="true"] { border-color: var(--violet); color: #001014; background: var(--violet); }
/* type badge, list price, WHAT'S INSIDE strip (full width under media + info: never beside the video) */
.ws-type { margin: 0; }
.ws-type span { display: inline-block; padding: 5px 8px 4px; font: 800 11px/1 "DREAMERS Orbitron", Arial, sans-serif; letter-spacing: .14em; border: 1px solid currentColor; border-radius: 2px; color: var(--cyan); background: rgba(124, 246, 255, .08); }
.ws-type[data-type="3D FEATURE"] span { color: var(--violet); background: rgba(167, 139, 255, .1); }
.ws-type[data-type="MOTION"] span { color: var(--green); background: rgba(125, 255, 178, .07); }
.ws-price.listed { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px 12px; }
.ws-amount { margin: 0; display: grid; gap: 6px; min-width: 0; }
.ws-amount small { font: 800 11px/1.2 "DREAMERS Orbitron", Arial, sans-serif; letter-spacing: .12em; color: var(--dim); }
.ws-amount strong { font: 900 clamp(24px, 2.2vw, 30px)/1 "DREAMERS Orbitron", Arial, sans-serif; letter-spacing: .03em; color: var(--text); }
.ws-excl { grid-column: 1 / -1; margin: 2px 0 0; font-size: 12px; line-height: 1.35; letter-spacing: .1em; color: var(--faint); }
.ws-inside { grid-area: inside; border-top: 1px solid var(--line); padding: 12px clamp(18px, 2.2vw, 30px) 14px; display: grid; gap: 10px; min-width: 0; }
.ws-in-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ws-in-head > span { font: 800 11px/1 "DREAMERS Orbitron", Arial, sans-serif; letter-spacing: .14em; color: var(--cyan); }
.ws-in-toggle { appearance: none; background: none; border: 0; padding: 6px 0; min-height: 32px; color: var(--cyan); cursor: pointer; font: 800 11px/1.2 "DREAMERS Orbitron", Arial, sans-serif; letter-spacing: .1em; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.ws-in-toggle::after { content: " +"; }
.ws-in-toggle[aria-expanded="true"]::after { content: " −"; }
.ws-in-toggle:hover { color: #b8fbff; }
.ws-in-rows { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.ws-in-row { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 4px 12px; align-items: baseline; min-width: 0; }
.ws-in-row.more { display: none; }
.ws-inside.open .ws-in-row.more { display: grid; }
.ws-in-row dt { font: 800 10px/1.4 "DREAMERS Orbitron", Arial, sans-serif; letter-spacing: .12em; color: var(--faint); }
.ws-in-row dd { margin: 0; min-width: 0; color: rgba(242, 242, 245, .8); font-size: 14px; line-height: 1.4; }
.ws-in-row dd p { margin: 0; }
.ws-in-row dd ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; }
.ws-in-row dd li:not(:last-child)::after { content: "·"; margin: 0 7px; color: var(--faint); }
.ws-in-row.first dd { color: var(--text); }
.ws-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: clamp(30px, 8vh, 90px) 0 0; position: relative; z-index: 2; }
.ws-filter + .ws-grid { padding-top: 26px; }
.ws-filter-chip { appearance: none; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 2px;
  background: rgba(4, 5, 11, .78); color: var(--text); cursor: pointer; font: 800 11px/1 "DREAMERS Orbitron", Arial, sans-serif; letter-spacing: .12em; }
.ws-filter-chip small { font: 700 13px/1 "DREAMERS Rajdhani", Arial, sans-serif; letter-spacing: .06em; color: var(--dim); }
.ws-filter-chip:hover { border-color: var(--cyan); color: var(--cyan); }
.ws-filter-chip[aria-pressed="true"] { background: var(--cyan); border-color: var(--cyan); color: #001014; }
.ws-filter-chip[aria-pressed="true"] small { color: #00343c; }
.ws-card[hidden] { display: none !important; }
.ws-excl a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.ws-filter-pricing { margin-left: auto; display: inline-flex; align-items: center; min-height: 38px; padding: 0 4px; color: var(--cyan); font: 800 11px/1 "DREAMERS Orbitron", Arial, sans-serif; letter-spacing: .12em; text-decoration: underline; text-underline-offset: 4px; }
.ws-filter-pricing:hover { color: #b8fbff; }
@media (max-width: 760px) { .ws-filter-pricing { margin-left: 0; flex: 1 1 100%; justify-content: center; } }
@media (max-width: 1080px) { .ws-in-rows { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .ws-in-row { grid-template-columns: minmax(0, 1fr); }
  .ws-in-row.lead { display: none; }
  .ws-inside.open .ws-in-row.lead { display: grid; }
  .ws-in-head { flex-wrap: wrap; }
  .ws-filter-chip { flex: 1 1 auto; justify-content: center; }
}
.ws-can { grid-area: can; display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 12px clamp(18px, 2.2vw, 30px); border-top: 1px solid var(--line); background: rgba(0, 0, 0, .35); }
.ws-can > span { font: 800 11px/1 "DREAMERS Orbitron", Arial, sans-serif; letter-spacing: .14em; color: var(--cyan); }
.ws-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 300px; }
.ws-chips li { font-size: 12px; letter-spacing: .08em; padding: 5px 8px; border: 1px solid var(--line); border-radius: 2px; color: var(--dim); background: rgba(255, 255, 255, .02); }

/* INQUIRE chooser (inquire.js), shared with the editor */
.ws-inq { position: fixed; left: var(--x, 12px); top: var(--y, 12px); z-index: 60; width: min(320px, calc(100vw - 24px)); display: grid; gap: 1px;
  background: var(--line); border: 1px solid rgba(167, 139, 255, .6); border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0, 0, 0, .7); overflow: hidden; }
.ws-inq > * { background: #0a0a12; margin: 0; }
.ws-inq-head { padding: 12px 14px; font: 800 11px/1.3 "DREAMERS Orbitron", Arial, sans-serif; letter-spacing: .12em; color: var(--violet); }
.ws-inq a { display: grid; gap: 3px; padding: 13px 14px; text-decoration: none; color: var(--text); }
.ws-inq a b { font: 800 13px/1 "DREAMERS Orbitron", Arial, sans-serif; letter-spacing: .1em; }
.ws-inq a small { color: var(--faint); font-size: 13px; text-transform: none; letter-spacing: .02em; }
.ws-inq a:hover, .ws-inq a:focus-visible { background: #15122a; outline: none; color: #fff; }
.ws-inq a:focus-visible b { color: var(--violet); }
.ws-inq p:not(.ws-inq-head) { padding: 13px 14px; color: var(--dim); }
@media (max-width: 640px) { .ws-inq { left: 12px; right: 12px; top: auto; bottom: max(12px, env(safe-area-inset-bottom)); width: auto; } }

.ws-more { margin: clamp(64px, 16vh, 180px) 0 0; padding: clamp(20px, 3vw, 34px); border: 1px solid rgba(124, 246, 255, .22); border-radius: var(--radius); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px 28px; background: rgba(5, 7, 14, .78); }
.ws-more h2 { margin: 0 0 8px; font: 900 clamp(22px, 2.6vw, 34px)/1 "DREAMERS Orbitron", Arial, sans-serif; }
.ws-more p { margin: 0; color: var(--dim); font-size: 16px; line-height: 1.45; max-width: 760px; }
.ws-owner { margin: 40px 0 0; padding: 22px; border: 1px dashed rgba(167, 139, 255, .5); border-radius: var(--radius); display: grid; gap: 14px; background: rgba(5, 7, 14, .86); }
.ws-owner h2 { margin: 0; font-size: 18px; color: var(--violet); }
.ws-owner p { margin: 0; color: var(--dim); }
.ws-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; align-items: end; }
.ws-form label { display: grid; gap: 6px; font-size: 12px; letter-spacing: .14em; color: var(--dim); }
.ws-form input, .ws-form select, .ed-field input, .ed-field textarea, .ed-field select, .ed-search, .ed-publish input {
  width: 100%; min-height: 38px; padding: 8px 10px; background: #000; color: var(--text); border: 1px solid var(--line-2); border-radius: 2px;
  font: 600 15px/1.3 "DREAMERS Rajdhani", Arial, sans-serif; }
.ws-form input:focus, .ws-form select:focus, .ed-field :is(input, textarea, select):focus, .ed-search:focus, .ed-publish input:focus { outline: 1px solid var(--cyan); border-color: var(--cyan); }
.ws-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ws-msg { margin: 0; font-size: 14px; color: var(--green); grid-column: 1 / -1; min-height: 1em; }
.ws-msg.err { color: var(--red); }
.ws-table-wrap { overflow-x: auto; }
.ws-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ws-table th, .ws-table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ws-table th { color: var(--faint); letter-spacing: .12em; font-size: 11px; }
.ws-foot { position: relative; z-index: 2; text-align: center; padding: 30px 16px 40px; color: var(--faint); font-size: 13px; letter-spacing: .12em; }
.ws-foot a { text-decoration: none; }
.ws-page :focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* tablet: media full width on top (edge to edge), info below it */
@media (max-width: 1080px) {
  .ws-card, .ws-card.flip { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "info" "inside" "can"; }
  .ws-media { min-height: 0; }
  .ws-info { justify-content: flex-start; }
  .ws-foot-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
  .ws-price { border-top: 0; padding-top: 0; justify-content: flex-end; }
}
@media (max-width: 760px) {
  .ws-grid { gap: 56px; }
  .ws-foot-row { grid-template-columns: minmax(0, 1fr); }
  .ws-price { border-top: 1px solid var(--line); padding-top: 14px; justify-content: space-between; }
  .ws-more { grid-template-columns: minmax(0, 1fr); }
  .ws-more .ws-btn { justify-self: start; }
}
@media (max-width: 640px) {
  .ws-steps { grid-template-columns: 1fr; }
  .ws-steps li { padding: 11px 14px 12px; grid-template-columns: 26px auto; column-gap: 8px; }
  .ws-steps small { grid-column: 2; }
  .ws-nav a { display: none; }
  .ws-hero { min-height: calc(100svh - 56px); }
  .ws-card h2 { font-size: 22px; }
  .ws-desc { font-size: 15px; }
}

/* ---------------- editor ---------------- */
.ed { height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.ed-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: #08080b; min-width: 0; }
.ed-bar .ws-mark img { height: 12px; }
.ed-title { min-width: 0; display: grid; gap: 2px; }
.ed-title strong { font: 800 14px/1.1 "DREAMERS Orbitron", Arial, sans-serif; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-title small { color: var(--faint); font-size: 11px; letter-spacing: .12em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-spacer { flex: 1; }
.ed-page { max-width: 220px; min-width: 0; min-height: 34px; background: #000; color: var(--text); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 0 8px;
  font: 800 11px/1 "DREAMERS Orbitron", Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.ed-page[hidden] { display: none; }
.ed-seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.ed-seg button { appearance: none; border: 0; background: transparent; color: var(--dim); font: 800 11px/1 "DREAMERS Orbitron", Arial, sans-serif; letter-spacing: .1em; padding: 9px 11px; cursor: pointer; }
.ed-seg button[aria-pressed="true"] { background: var(--cyan); color: #001014; }
.ed-icon { appearance: none; width: 34px; height: 34px; border: 1px solid var(--line-2); background: transparent; color: var(--text); border-radius: var(--radius); cursor: pointer; font: 700 16px/1 Arial, sans-serif; display: inline-grid; place-items: center; }
.ed-icon:hover:not([disabled]) { border-color: var(--cyan); color: var(--cyan); }
.ed-icon[disabled] { opacity: .35; cursor: default; }
.ed-save { font-size: 11px; letter-spacing: .12em; color: var(--faint); white-space: nowrap; min-width: 90px; text-align: right; }
.ed-save.ok { color: var(--green); }
.ed-save.err { color: var(--red); }
.ed-main { display: grid; grid-template-columns: minmax(0, 1fr) 400px; min-height: 0; }
.ed-stage { position: relative; min-width: 0; min-height: 0; background: repeating-linear-gradient(45deg, #0a0a0d 0 12px, #0c0c10 12px 24px); display: grid; place-items: center; overflow: auto; }
.ed-frame { width: 100%; height: 100%; border: 0; background: #000; display: block; }
.ed-stage.phone .ed-frame { width: 390px; height: min(844px, calc(100% - 24px)); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 20px 80px rgba(0, 0, 0, .6); }
.ed-hint { position: absolute; left: 12px; top: 10px; font-size: 11px; letter-spacing: .1em; color: var(--dim); background: rgba(0, 0, 0, .75); padding: 6px 8px; border-radius: 2px; pointer-events: none; max-width: calc(100% - 24px); }
.ed-panel { border-left: 1px solid var(--line); background: var(--panel); display: grid; grid-template-rows: auto auto 1fr auto; min-height: 0; min-width: 0; position: relative; }
.ed-sheet-handle { display: none; }
.ed-gate { padding: 14px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; background: #0f0f15; }
.ed-gate p { margin: 0; color: var(--dim); font-size: 14px; line-height: 1.4; }
.ed-gate strong { font: 800 13px/1.2 "DREAMERS Orbitron", Arial, sans-serif; letter-spacing: .08em; }
.ed-gate .ws-row .ws-btn { flex: 1 1 auto; }
.ed-gate.owned { background: rgba(125, 255, 178, .05); }
.ed-publish { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px; font-size: 13px; color: var(--dim); }
.ed-publish input { min-height: 34px; }
.ed-tools { padding: 10px 14px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.ed-tools .ws-row { justify-content: space-between; align-items: center; }
.ed-fields { overflow-y: auto; min-height: 0; padding: 4px 0 30px; overscroll-behavior: contain; }
.ed-fields.locked { opacity: .45; pointer-events: none; user-select: none; }
.ed-group { border-bottom: 1px solid var(--line); }
.ed-group > summary { list-style: none; cursor: pointer; padding: 13px 14px; display: flex; justify-content: space-between; gap: 10px; font: 800 12px/1.1 "DREAMERS Orbitron", Arial, sans-serif; letter-spacing: .1em; }
.ed-group > summary::-webkit-details-marker { display: none; }
.ed-group > summary::after { content: '+'; color: var(--faint); }
.ed-group[open] > summary::after { content: '−'; }
.ed-group > summary small { color: var(--faint); font: 600 11px/1 "DREAMERS Rajdhani", Arial, sans-serif; margin-left: auto; }
.ed-group-body { padding: 0 14px 12px; display: grid; gap: 12px; }
.ed-field { display: grid; gap: 6px; padding: 8px; margin: 0 -8px; border-radius: 2px; }
.ed-field.flash { background: rgba(124, 246, 255, .12); box-shadow: inset 2px 0 0 var(--cyan); }
.ed-field.changed > .ed-label b::after { content: ' •'; color: var(--cyan); }
.ed-label { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; font-size: 12px; letter-spacing: .08em; color: var(--dim); }
.ed-label b { font-weight: 700; }
.ed-reset { appearance: none; border: 0; background: none; color: var(--faint); font: 700 10px/1 "DREAMERS Orbitron", Arial, sans-serif; letter-spacing: .1em; cursor: pointer; padding: 2px 0; white-space: nowrap; }
.ed-reset:hover { color: var(--cyan); }
.ed-hintline { font-size: 12px; color: var(--faint); margin: 0; letter-spacing: .02em; }
.ed-error { font-size: 12px; color: var(--red); margin: 0; }
.ed-field textarea { min-height: 70px; resize: vertical; }
.ed-colour { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; }
.ed-colour input[type="color"] { padding: 2px; height: 38px; cursor: pointer; }
.ed-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--text); }
.ed-toggle input { width: 18px; height: 18px; min-height: 0; accent-color: var(--cyan); }
.ed-number { display: grid; grid-template-columns: minmax(0, 1fr) 80px; gap: 8px; align-items: center; }
.ed-number input[type="range"] { accent-color: var(--cyan); padding: 0; border: 0; background: none; }
.ed-image { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: start; }
.ed-thumb { width: 72px; height: 72px; background: #000 center / cover no-repeat; border: 1px solid var(--line-2); border-radius: 2px; }
.ed-image-actions { display: grid; gap: 6px; }
.ed-image-actions select { min-height: 32px; font-size: 13px; }
.ed-list { display: grid; gap: 6px; }
.ed-item { border: 1px solid var(--line); border-radius: 2px; background: rgba(255, 255, 255, .02); }
.ed-item.hidden-row { opacity: .5; }
.ed-item-head { display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 8px; }
.ed-item-head .ed-item-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; cursor: pointer; background: none; border: 0; color: var(--text); text-align: left; font: 600 14px/1.2 "DREAMERS Rajdhani", Arial, sans-serif; padding: 6px 0; }
.ed-item-head .ed-icon { width: 28px; height: 28px; font-size: 12px; }
.ed-item-body { padding: 4px 10px 12px; display: grid; gap: 10px; border-top: 1px solid var(--line); }
.ed-item-body .ed-field { margin: 0; padding: 4px 0; }
.ed-foot { border-top: 1px solid var(--line); padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .08em; color: var(--dim); }
.ed-foot a { color: var(--cyan); text-decoration: none; }
.ed-toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: #000; border: 1px solid var(--cyan); color: var(--text); padding: 10px 14px; font-size: 14px; z-index: 50; border-radius: 2px; max-width: calc(100vw - 32px); }
.ed-toast.err { border-color: var(--red); }

@media (max-width: 900px) {
  .ed-bar { flex-wrap: wrap; row-gap: 8px; }
  .ed-bar .ed-title { flex: 1 1 140px; }
  .ed-main { grid-template-columns: 1fr; }
  .ed-stage.phone .ed-frame { width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; }
  /* the panel becomes a bottom sheet over the preview */
  .ed-panel { position: fixed; left: 0; right: 0; bottom: 0; height: 62vh; height: 62dvh; border-left: 0; border-top: 1px solid var(--line-2); z-index: 20;
    grid-template-rows: auto auto auto 1fr auto; box-shadow: 0 -20px 60px rgba(0, 0, 0, .6); transition: transform .3s ease; border-radius: 10px 10px 0 0; }
  .ed-panel.collapsed { transform: translateY(calc(100% - 52px)); }
  .ed-sheet-handle { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 10px 14px; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--text); cursor: pointer;
    font: 800 12px/1 "DREAMERS Orbitron", Arial, sans-serif; letter-spacing: .1em; }
  .ed-sheet-handle::before { content: ''; position: absolute; left: 50%; top: 5px; width: 40px; height: 3px; margin-left: -20px; background: var(--line-2); border-radius: 2px; }
  .ed-stage { padding-bottom: 52px; }
  .ed-save { min-width: 0; }
  .ed-hint { display: none; }
}
@media (max-width: 420px) {
  .ed-bar .ws-mark { display: none; }
  .ed-seg button { padding: 8px 8px; }
}

/* grid tracks never grow past the panel (long names in list rows are ellipsised) */
.ed-group-body, .ed-list, .ed-item-body, .ed-field, .ed-image-actions { grid-template-columns: minmax(0, 1fr); }
.ed-image { grid-template-columns: 72px minmax(0, 1fr); }
.ed-number { grid-template-columns: minmax(0, 1fr) 80px; }
.ed-colour { grid-template-columns: 44px minmax(0, 1fr); }
/* ?world=capture: the hall alone, for rendering world-still*.jpg */
.ws-capture .ws-top, .ws-capture .ws-main, .ws-capture .ws-foot, .ws-capture .ws-veil { visibility: hidden; }
@media (max-width: 760px) {
  .ws-card { background: rgba(5, 7, 14, .9); }
  .ws-hero .ws-lede { text-shadow: 0 1px 14px #000, 0 0 30px rgba(0, 0, 0, .9); }
}

/* editor: three ways to go live (publish, your own domain, export) */
.ed-way { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 10px 0 2px; border-top: 1px solid var(--line); }
.ed-way > b { font: 800 11px/1.2 "DREAMERS Orbitron", Arial, sans-serif; letter-spacing: .1em; color: var(--text); }
.ed-way .ed-hintline { margin: 0; }
.ed-domain-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.ed-domain-row input { min-height: 34px; min-width: 0; }
.ed-domain-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 14px; word-break: break-all; }
.ed-domain-head a { color: var(--cyan); }
.ed-status { font: 800 10px/1 "DREAMERS Orbitron", Arial, sans-serif; letter-spacing: .1em; padding: 5px 7px; border: 1px solid var(--line-2); border-radius: 2px; color: var(--dim); white-space: nowrap; }
.ed-status.verified { color: var(--cyan); border-color: var(--cyan); }
.ed-status.active { color: var(--green); border-color: var(--green); }
.ed-status.error { color: var(--red); border-color: var(--red); }
.ed-dns { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; margin: 0; padding: 8px 10px; background: #000; border: 1px solid var(--line); font-size: 13px; }
.ed-dns dt { color: var(--faint); font: 700 10px/1.6 "DREAMERS Orbitron", Arial, sans-serif; letter-spacing: .1em; }
.ed-dns dd { margin: 0; word-break: break-all; }
.ed-dns code { color: var(--cyan); font-size: 13px; }
.ed-linkbtn { justify-self: start; appearance: none; background: none; border: 0; padding: 4px 0; color: var(--cyan); font: 800 11px/1.3 "DREAMERS Orbitron", Arial, sans-serif; letter-spacing: .08em; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; text-align: left; }

/* ---------------- DREAMERS WEBSITES as a world of the site ---------------- */
.ws-home { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); min-width: 0; }
.ws-threshold { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--text); text-decoration: none;
  font: 700 12px/1.25 "DREAMERS Rajdhani", Arial, sans-serif; letter-spacing: .12em; white-space: nowrap; }
.ws-threshold svg { width: 18px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ws-threshold span { display: grid; }
.ws-threshold small { font-size: 10px; letter-spacing: .14em; color: var(--dim); }
.ws-threshold:hover, .ws-threshold:focus-visible { color: var(--cyan); }
.ws-world-mark { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 14px; }
.ws-world-mark img { display: block; width: clamp(170px, 22vw, 320px); height: auto; filter: drop-shadow(0 0 22px rgba(124, 246, 255, .28)); }
.ws-world-mark span { font: 900 clamp(13px, 1.5vw, 18px)/1 "DREAMERS Orbitron", Arial, sans-serif; letter-spacing: .32em; color: var(--cyan); padding-bottom: 2px; }
@media (max-width: 640px) {
  .ws-home .ws-mark { display: none; }
  .ws-nav a.ws-shop { display: inline; }
  .ws-threshold { font-size: 11px; }
}

/* phones: the header clears the notch, the hero's small line sits on one line (or breaks evenly), the gutters match */
@media (max-width: 700px) {
  .ws-top { padding-top: max(14px, env(safe-area-inset-top)); padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .ws-hero .eyebrow { font-size: 11px; letter-spacing: .14em; line-height: 1.5; text-wrap: balance; }
  .ws-world-mark span { letter-spacing: .24em; }
}
