/* Creators Studio. An "on air" studio at night: deep black, tally red, award gold.
 * The desk pictures are the colour; the interface stays out of their way. */
:root { --logo-1: #b07d31; --logo-2: #e6c077; --logo-3: #fff0b4; }
:root {
  --black: #07070a; --panel: #0f0f14; --raised: #17171f; --line: #2c2c39;
  --ink: #ffffff; --soft: #b4b4c4; --gold: #ffb800; --gold-hot: #ffd24d; --red: #e4002b; --red-text: #ff5a72;
  /* --gold is the accent and --red the main colour, whatever the theme; the triplets are for see-through washes */
  --on-gold: #0b0800; --main-rgb: 228, 0, 43; --accent-rgb: 255, 184, 0; --page-rgb: 7, 7, 10;
  --display: Bahnschrift, "DIN Alternate", "Roboto Condensed", "Arial Narrow", sans-serif;
  --text: "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Mono", Consolas, monospace;
}
/* themes (the colour dots in the header, js/theme.js) */
:root[data-theme="pink"] { --logo-1: #c8186a; --logo-2: #ff5cb0; --logo-3: #ffd3ea; }
:root[data-theme="pink"] {
  --black: #14050e; --panel: #1e0916; --raised: #2d0e22; --line: #561d40; --ink: #ffffff; --soft: #eabdd6;
  --gold: #ff5cb0; --gold-hot: #ff8fca; --red: #ff0a78; --red-text: #ff8ab8; --on-gold: #22000f;
  --main-rgb: 255, 10, 120; --accent-rgb: 255, 92, 176; --page-rgb: 20, 5, 14;
}
:root[data-theme="blush"] { --logo-1: #8f0a47; --logo-2: #d6176f; --logo-3: #ff6fb0; }
:root[data-theme="blush"] {
  --black: #fff5f9; --panel: #ffffff; --raised: #ffe8f2; --line: #f3bfd8; --ink: #33081f; --soft: #864669;
  --gold: #d6176f; --gold-hot: #b80f5d; --red: #ff1f7a; --red-text: #c2105a; --on-gold: #ffffff;
  --main-rgb: 255, 31, 122; --accent-rgb: 178, 104, 255; --page-rgb: 255, 245, 249;
}
:root[data-theme="blue"] { --logo-1: #1550ff; --logo-2: #3db4ff; --logo-3: #c9ecff; }
:root[data-theme="blue"] {
  --black: #040a16; --panel: #091327; --raised: #102140; --line: #233c6e; --ink: #ffffff; --soft: #b6c8ee;
  --gold: #3db4ff; --gold-hot: #7fcfff; --red: #1550ff; --red-text: #86abff; --on-gold: #00111f;
  --main-rgb: 21, 80, 255; --accent-rgb: 61, 180, 255; --page-rgb: 4, 10, 22;
}
:root[data-theme="purple"] { --logo-1: #7a10d6; --logo-2: #c68cff; --logo-3: #eedcff; }
:root[data-theme="purple"] {
  --black: #0c0518; --panel: #150a28; --raised: #23123e; --line: #442772; --ink: #ffffff; --soft: #cebdee;
  --gold: #c68cff; --gold-hot: #dcb6ff; --red: #9b14ff; --red-text: #d09bff; --on-gold: #17002d;
  --main-rgb: 155, 20, 255; --accent-rgb: 198, 140, 255; --page-rgb: 12, 5, 24;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; background: var(--black); color: var(--ink); font: 14px/1.5 var(--text); }
body[data-view="studio"] { height: 100vh; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr); }
body[data-view="studio"] #main { min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr); }
img { max-width: 100%; display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--gold); color: var(--on-gold); padding: 8px 14px; border-radius: 6px; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---- header ---------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 26px; padding: 9px 22px; background: rgba(var(--page-rgb), .94); border-bottom: 1px solid var(--line); }
.mark { flex: none; }
.themes { display: flex; align-items: center; gap: 2px; margin-right: 6px; }
.themes button { width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 6px solid transparent; background-clip: padding-box !important; background-origin: border-box; cursor: pointer; }
.themes button[aria-checked="true"] { border-width: 3px; box-shadow: 0 0 0 2px var(--ink) inset; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand span { font: 700 19px/1 var(--display); font-stretch: 78%; text-transform: uppercase; letter-spacing: .02em; display: grid; }
.brand b { color: var(--gold); font-weight: 300; font-size: 12px; letter-spacing: .36em; margin-top: 2px; }
nav { display: flex; gap: 4px; }
nav a, nav button { border: 0; background: none; color: var(--soft); font: 600 14px var(--display); letter-spacing: .05em; text-transform: uppercase; padding: 8px 12px; text-decoration: none; cursor: pointer; border-bottom: 2px solid transparent; }
nav a:hover, nav button:hover { color: var(--ink); }
nav a[aria-current] { color: var(--ink); border-bottom-color: var(--red); }
.account { margin-left: auto; display: flex; gap: 6px; }
.account b { display: inline-block; min-width: 18px; margin-left: 4px; padding: 0 5px; border-radius: 9px; background: var(--raised); color: var(--gold); font: 600 11px/18px var(--mono); }

/* ---- shared controls --------------------------------------------------------- */
.btn { display: inline-block; border: 1px solid var(--line); background: var(--raised); color: var(--ink); border-radius: 6px; padding: 8px 13px; font: 600 13px var(--text); cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover:not(:disabled) { border-color: var(--gold); }
.btn:disabled { opacity: .42; cursor: default; }
.btn.primary { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.btn.primary:hover:not(:disabled) { background: var(--gold-hot); }
.btn.gold { border-color: var(--gold); color: var(--gold); }
.btn.ghost { background: transparent; }
.btn.wide { width: 100%; }
.btn.big { padding: 13px 22px; font: 700 15px var(--display); letter-spacing: .06em; text-transform: uppercase; }
.btn.record { border-color: var(--red); flex: 1; }
.btn.record::before { content: "●"; color: var(--red); margin-right: 7px; }
.btn.record.on { background: var(--red); }
.btn.record.on::before { content: "■"; color: #fff; }
.btn.done { background: #19d16f; border-color: #19d16f; color: #00180a; padding: 11px; }
.btn[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.row { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.grow { flex: 1; min-width: 108px; }
.field { display: grid; gap: 4px; font-size: 12px; color: var(--soft); }
input[type="text"], input[type="number"], input[type="search"], select, textarea { width: 100%; background: var(--black); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 8px 9px; font: 13px var(--text); }
textarea { resize: vertical; }
input[type="number"] { width: 96px; }
input[type="range"] { accent-color: var(--gold); width: 100%; margin: 4px 0; }
input[type="checkbox"] { accent-color: var(--gold); }
.check { display: flex; gap: 8px; align-items: baseline; font-size: 13px; cursor: pointer; }
.check small { color: var(--soft); }
.range { display: grid; grid-template-columns: 1fr auto; font-size: 12px; color: var(--soft); }
.range input { grid-column: 1 / -1; }
.range output { grid-row: 1; grid-column: 2; font-family: var(--mono); }
.note { margin: 0; color: var(--soft); font-size: 12px; }
.file { margin: 0; color: var(--soft); font-size: 12px; overflow-wrap: anywhere; }
.warn { margin: 0; padding: 9px 12px; border-left: 3px solid var(--red); background: rgba(var(--main-rgb), .12); font-size: 13px; }
.seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; flex-wrap: wrap; }
.seg button { border: 0; background: none; color: var(--soft); font: 600 13px var(--display); letter-spacing: .04em; padding: 7px 13px; border-radius: 5px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--black); }
.seg.wide { display: flex; }
.seg.wide button { flex: 1; padding: 7px 6px; }
.tag { display: inline-block; font: 700 12px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px 4px; border-radius: 3px; white-space: nowrap; }
.tag.free { border: 1px solid var(--soft); color: var(--ink); }
.tag.paid { background: var(--red); color: #fff; }
.tag.owned { background: var(--gold); color: var(--on-gold); }
.empty { color: var(--soft); padding: 30px 4px; }

/* ---- home -------------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(28px, 4.4vw, 60px) clamp(18px, 5vw, 72px) clamp(28px, 3.6vw, 48px);
  background: radial-gradient(60% 90% at 82% 40%, rgba(var(--main-rgb), .18), transparent 70%), radial-gradient(40% 60% at 12% 110%, rgba(var(--accent-rgb), .12), transparent 70%); }
.tally { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 600 12px var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--soft); }
.tally::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.hero h1 { margin: 0; font: 700 clamp(40px, 5.4vw, 84px)/.96 var(--display); font-stretch: 75%; text-transform: uppercase; }
.hero h1 em { font-style: normal; color: var(--gold); }
.lead { max-width: 44ch; font-size: 16px; line-height: 1.6; color: var(--soft); margin: 18px 0 24px; }
.hero .row { gap: 10px; }
.counts { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font: 12px/1.6 var(--mono); color: var(--soft); }
.reel { display: grid; grid-template-columns: minmax(0, 63fr) minmax(0, 100fr); gap: 12px; width: 100%; max-width: 760px; justify-self: end; }
.reel figure { position: relative; margin: 0; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.reel figure:not(.r-tall) { aspect-ratio: 16 / 9; }
.reel .r-tall { grid-row: 1 / span 2; }
.reel img { width: 100%; height: 100%; object-fit: cover; }
.reel .r-tall img { position: absolute; inset: 0; }
.reel figcaption { position: absolute; left: 8px; bottom: 8px; padding: 4px 9px; border-radius: 20px; background: rgba(7, 7, 10, .82); color: #fff; font: 600 10px/1.3 var(--display); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }

.filters { position: sticky; top: 54px; z-index: 10; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding: 10px clamp(18px, 5vw, 72px); background: rgba(var(--page-rgb), .96); border-block: 1px solid var(--line); }
.find { margin-left: auto; width: min(280px, 100%); }
.sheet { padding: 28px clamp(18px, 5vw, 72px) 6px; content-visibility: auto; contain-intrinsic-size: auto 900px; }
.more { display: block; margin: 22px auto 4px; min-width: 200px; }
.sheet h2 { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0 0 16px; font: 700 28px/1 var(--display); font-stretch: 80%; text-transform: uppercase; }
.sheet h2 small { font: 400 12px var(--mono); color: var(--soft); text-transform: none; }
.sheet h2::after { content: ""; flex: 1; min-width: 40px; height: 1px; background: var(--line); }
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px 16px; }
.grid.portrait { grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)); }
.grid.landscape { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.shot { display: block; width: 100%; padding: 0; border: 0; background: var(--panel); cursor: pointer; overflow: hidden; border-radius: 4px; }
.shot img { width: 100%; height: auto; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.portrait .shot img { aspect-ratio: 9 / 16; object-fit: cover; }
.landscape .shot img { aspect-ratio: 16 / 9; object-fit: cover; }
.shot:hover img, .shot:focus-visible img { transform: scale(1.035); }
.meta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 2px 0; }
.meta .no { font: 600 11px/20px var(--mono); color: var(--gold); }
.meta .name b { display: block; font: 600 15px/1.25 var(--display); letter-spacing: .01em; }
.meta .name small { display: block; color: var(--soft); font-size: 11px; line-height: 1.35; }
.foot { margin-top: 36px; padding: 28px clamp(18px, 5vw, 72px) 28px; border-top: 1px solid var(--line); background: var(--panel); color: var(--soft); font-size: 13px; }
.foot b { color: var(--ink); }
.foot p { margin: 8px 0 0; max-width: 80ch; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; margin-bottom: 14px; }
.foot .brand b { color: var(--gold); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.foot-links a { display: inline-block; padding: 6px 0; color: var(--soft); text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.foot .by { margin-top: 18px; padding-top: 14px; max-width: none; border-top: 1px solid var(--line); text-align: center; }
.foot .by a { color: var(--gold); font-weight: 600; }
@media (min-width: 861px) { body[data-view="studio"] .foot { display: none; } }

/* ---- mock-ups --------------------------------------------------------------- */
.pagehead { padding: 34px clamp(18px, 5vw, 72px) 0; }
.pagehead h2 { margin: 0; font: 700 clamp(34px, 5vw, 64px)/1 var(--display); font-stretch: 75%; text-transform: uppercase; }
.pagehead p { color: var(--soft); max-width: 60ch; }

/* ---- studio ------------------------------------------------------------------ */
.room { display: grid; grid-template-columns: 300px minmax(0, 1fr) 380px; grid-template-rows: minmax(0, 1fr); min-height: 0; }
.stage { display: flex; flex-direction: column; gap: 10px; padding: 14px 20px 10px; min-width: 0; min-height: 0; background: radial-gradient(100% 70% at 50% 100%, rgba(var(--main-rgb), .16), var(--black) 60%); }
.viewbox { flex: 1; min-height: 0; display: grid; place-items: center; container-type: size; }
.frame { --ar: .5625; position: relative; width: min(100cqw, 100cqh * var(--ar)); aspect-ratio: var(--ar); box-shadow: 0 24px 60px rgba(0,0,0,.6); background: #000; }
#view { display: block; width: 100%; height: 100%; touch-action: manipulation; }
#view.scrolls { cursor: ns-resize; touch-action: none; }
#view.clicks { cursor: pointer; }
#view.holding { touch-action: none; cursor: move; }
.hot { position: absolute; display: grid; place-items: end center; padding-bottom: 6px !important; background: transparent; border: 1px dashed var(--gold); color: var(--gold); border-radius: 3px; cursor: pointer; font: 700 clamp(11px, 2.4cqw, 17px) var(--display); letter-spacing: .06em; text-transform: uppercase; padding: 0; text-shadow: 0 1px 4px #000; }
.hot span { background: rgba(0,0,0,.72); border-radius: 20px; padding: 3px 9px; }
.hot:hover, .hot:focus-visible { background: rgba(var(--accent-rgb), .18); border-style: solid; }
.hot.phone { border-radius: 8px; font-size: 16px; }
.selbox { position: absolute; border: 1.5px dashed var(--gold); box-shadow: 0 0 0 1px rgba(0,0,0,.7); pointer-events: none; }
.guides { position: absolute; inset: 0; pointer-events: none; }
.guides i { position: absolute; display: grid; place-items: center; font: 600 11px var(--mono); font-style: normal; background: rgba(var(--main-rgb), .22); border: 1px dashed rgba(var(--main-rgb), .9); color: #fff; }
.g-top { left: 0; right: 0; top: 0; height: 11%; }
.g-bottom { left: 0; right: 0; bottom: 0; height: 19%; }
.g-side { right: 0; width: 13%; top: 44%; bottom: 19%; writing-mode: vertical-rl; }
.badge { position: absolute; top: 10px; left: 10px; margin: 0; padding: 4px 10px; border-radius: 20px; background: rgba(0,0,0,.72); color: #fff; font: 600 12px var(--mono); }
.badge.on { background: var(--red); }
.veil { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(var(--page-rgb), .8); text-align: center; padding: 24px; }
.veil p { margin: 0; font: 600 17px var(--display); }
.veil p::before { content: ""; display: block; width: 34px; height: 34px; margin: 0 auto 12px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--gold); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.transport { display: grid; grid-template-columns: auto auto minmax(80px, 1fr) auto; align-items: center; gap: 12px; }
.clock { margin: 0; font: 13px var(--mono); white-space: nowrap; }
.clock i, .clock span { color: var(--soft); font-style: normal; }
.rail { position: relative; display: grid; }
.rail input { position: relative; }
.cutmarks { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.cutmarks i { position: absolute; top: 4px; bottom: 4px; background: repeating-linear-gradient(135deg, var(--red) 0 3px, transparent 3px 6px); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--raised); border: 1px solid var(--line); color: var(--soft); border-radius: 20px; padding: 3px 10px; font: 12px var(--mono); cursor: pointer; }
.chip:hover, .chip[aria-pressed="true"] { color: var(--ink); border-color: var(--gold); }
.status { margin: 0; color: var(--soft); font-size: 13px; min-height: 1.5em; }
.status.bad { color: var(--red-text); }

.panel { overflow-y: auto; min-height: 0; border-left: 1px solid var(--line); background: var(--panel); overscroll-behavior: contain; }
.panel.right { display: flex; flex-direction: column; }
.panel.right > * { flex: none; }
.panel .save { margin-top: auto; }
.panel.left { border-left: 0; border-right: 1px solid var(--line); }
.panel.left .swatches button { width: 34px; height: 34px; }
.deskpick > * + * { margin-top: 8px; }
.deskpick .seg { display: flex; }
.deskgrid { list-style: none; margin: 0; padding: 2px; display: grid; gap: 6px; grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: clamp(190px, calc(100vh - 484px), 620px); overflow-y: auto; align-content: start; }
.deskgrid.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.deskgrid button { display: block; width: 100%; padding: 0; border: 2px solid transparent; border-radius: 5px; overflow: hidden; background: var(--black); cursor: pointer; }
.deskgrid button:hover { border-color: var(--line); }
.deskgrid button[aria-current="true"] { border-color: var(--gold); }
.deskgrid img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
.deskgrid.wide img { aspect-ratio: 16 / 9; }
.kit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.kit button { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 58px; padding: 5px 3px; border: 1px solid var(--line); border-radius: 6px; background: var(--raised); color: var(--soft); font: 600 11px var(--display); cursor: pointer; }
.kit button img { width: 100%; height: 34px; object-fit: contain; }
.kit button[aria-checked="true"] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; color: var(--ink); }
@media (min-width: 861px) and (max-width: 1279px) {
  .room { grid-template-columns: 236px minmax(0, 1fr) 316px; }
  .room .card { padding: 12px; }
  .room .card.acc { padding: 0; }
  .room .card.acc > summary { padding: 10px 12px; }
  .room .card.acc > .inner { padding: 2px 12px 14px; }
  .room .stage { padding: 10px 10px 8px; }
  .deskgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deskgrid.wide { grid-template-columns: minmax(0, 1fr); }
}
.card { padding: 15px 18px; border-bottom: 1px solid var(--line); }
.card h2, .card > summary { display: flex; justify-content: space-between; align-items: center; margin: 0 0 10px; font: 600 13px var(--display); text-transform: uppercase; letter-spacing: .16em; color: var(--gold); }
details.card > summary { cursor: pointer; margin: 0; display: list-item; }
details.card[open] > summary { margin-bottom: 10px; }
.card > * + * { margin-top: 10px; }
.card.acc { padding: 0; }
.card.acc > * + *, .card.acc[open] > summary { margin: 0; }
.card.acc > summary { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px 18px; list-style: none; cursor: pointer; user-select: none; letter-spacing: normal; }
.card.acc > summary::-webkit-details-marker { display: none; }
.card.acc > summary h2 { flex: 1; margin: 0; }
.card.acc > summary::after { content: ""; flex: none; width: 7px; height: 7px; margin-right: 3px; border: solid var(--soft); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .18s; }
.card.acc[open] > summary::after { transform: translateY(2px) rotate(225deg); border-color: var(--gold); }
.card.acc > summary:hover { background: var(--raised); }
.card.acc > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }
.card.acc > .inner { padding: 2px 18px 16px; }
.inner > * + * { margin-top: 10px; }
#uploadCard > * + *, #urlCard > * + *, .card form > * + *, #site > * + *, .takes > * + *, #wallControls > * + *, #mockControls > * + *, #propTools > * + *, #propLocked > * + *, .propsel > * + * { margin-top: 10px; }
.tplname { margin: 0; font: 700 20px/1.15 var(--display); }
.modes { display: flex; gap: 2px; padding: 3px; background: var(--black); border: 1px solid var(--line); border-radius: 8px; }
.modes button { flex: 1; border: 0; background: none; color: var(--soft); font: 600 13px var(--display); letter-spacing: .04em; padding: 7px; border-radius: 5px; cursor: pointer; }
.modes button[aria-selected="true"] { background: var(--ink); color: var(--black); }
.slot { border: 1px dashed var(--line); border-radius: 8px; padding: 11px 12px; }
.slot.filled { border-style: solid; background: var(--raised); }
.slot.absent { opacity: .45; }
.slothead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.slot h3 { margin: 0; font: 600 15px var(--display); }
.slot details { margin-top: 10px; }
.slot details > * + * { margin-top: 10px; }
summary { cursor: pointer; color: var(--soft); font-size: 12px; }
.shape { display: block; border: 2px solid var(--gold); border-radius: 3px; }
.shape.desktop { width: 40px; height: 20px; border-radius: 3px 3px 6px 6px; }
.shape.mobile { width: 16px; height: 32px; border-radius: 4px; margin: 0 12px; }
.shape.laptop { width: 32px; height: 21px; border-radius: 3px 3px 0 0; border-bottom-width: 5px; margin: 0 4px; }
.slot[hidden] { display: none; }
.auto { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px 12px; display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin: 10px 0 0; }
.auto legend { font-size: 12px; color: var(--soft); padding: 0 4px; }
.take { display: flex; gap: 6px; }
.take .btn:first-child { flex: 1; text-align: left; font-family: var(--mono); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 38px; height: 38px; border-radius: 6px; border: 2px solid var(--line); cursor: pointer; }
.swatches.small button { width: 28px; height: 28px; border-radius: 50%; }
.swatches button[aria-checked="true"] { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--gold); }
.proplist { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.propsel { border: 1px solid var(--line); border-radius: 8px; padding: 11px; }
.save { position: sticky; bottom: 0; z-index: 3; background: var(--panel); border-top: 1px solid var(--line); box-shadow: 0 -12px 24px rgba(0,0,0,.45); }
.save > * + * { margin-top: 8px; }
.save .btn.primary { padding: 12px; font-size: 15px; }
progress { width: 100%; accent-color: var(--gold); }

/* ---- dialogs ------------------------------------------------------------------ */
dialog { width: min(920px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); }
dialog::backdrop { background: rgba(0,0,0,.74); }
#niches { height: min(820px, calc(100vh - 32px)); }
#niches[open] { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.dhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.dhead h2 { margin: 0; font: 700 21px var(--display); text-transform: uppercase; letter-spacing: .03em; }
.tabs { display: flex; gap: 6px; padding: 10px 18px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.tabs button { flex: none; border: 1px solid var(--line); background: none; color: var(--soft); border-radius: 20px; padding: 5px 13px; font: 600 13px var(--text); cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
/* a mouse cannot swipe a long row sideways, so all 20 niches are laid out where there is room */
@media (min-width: 720px) and (min-height: 640px) { #nicheTabs { flex-wrap: wrap; overflow: visible; } }
.nichegrid { list-style: none; margin: 0; padding: 14px 18px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; align-content: start; }
.nichegrid button { display: block; width: 100%; padding: 0; background: var(--black); border: 2px solid transparent; border-radius: 6px; overflow: hidden; color: var(--soft); cursor: pointer; text-align: left; }
.nichegrid button[aria-pressed="true"] { border-color: var(--gold); color: var(--ink); }
.nichegrid img { width: 100%; aspect-ratio: 13 / 19; object-fit: cover; height: auto; }
.nichegrid span { display: block; padding: 6px 8px 8px; font-size: 12px; line-height: 1.35; min-height: 3.2em; }
.dfoot { padding: 12px 18px 16px; border-top: 1px solid var(--line); }
.dfoot > p { margin: 0 0 10px; }
.objectlist { padding: 4px 18px 20px; overflow-y: auto; max-height: calc(100vh - 140px); }
.objectlist h3 { font: 600 13px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 16px 0 8px; }
.objectlist ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.objectlist button { display: grid; justify-items: center; gap: 6px; width: 100%; padding: 10px 6px; background: var(--raised); border: 1px solid var(--line); border-radius: 6px; color: var(--soft); font-size: 12px; cursor: pointer; }
.objectlist button:hover { border-color: var(--gold); color: var(--ink); }
.objectlist img { width: 84px; height: 84px; object-fit: contain; }
#buyDialog { width: min(720px, calc(100vw - 24px)); }
.buy { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 20px; padding: 18px; }
.buy img { width: 100%; max-height: 380px; object-fit: contain; align-self: start; }
.buy > div > * + * { margin-top: 12px; }
.bigprice { margin: 0; font: 700 44px/1 var(--display); color: var(--gold); }
.bigprice small { font: 400 13px var(--text); color: var(--soft); }
.plain { margin: 0; padding-left: 18px; color: var(--soft); }
#buyDone > * + * { margin-top: 10px; }
#restoreDialog { width: min(420px, calc(100vw - 24px)); }
#restoreForm { padding: 18px; display: grid; gap: 12px; }

/* ---- smaller screens ------------------------------------------------------------ */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .reel { justify-self: stretch; }
}
@media (max-width: 860px) {
  body[data-view="studio"] { height: auto; overflow: auto; display: block; }
  body[data-view="studio"] #main { display: block; }
  .top { flex-wrap: wrap; gap: 6px 14px; padding: 8px 12px; }
  .top nav { order: 3; width: 100%; justify-content: space-between; overflow-x: auto; }
  nav a, nav button { padding: 7px 6px; font-size: 13px; }
  .account .btn { padding: 6px 9px; font-size: 12px; }
  .filters { position: static; }
  .find { margin-left: 0; width: 100%; }
  .grid.portrait { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.landscape { grid-template-columns: 1fr; }
  .meta { grid-template-columns: minmax(0, 1fr) auto; }
  .meta .no { display: none; }
  .room { display: flex; flex-direction: column; }
  .room .stage { order: 1; }
  .room .panel.right { order: 2; }
  .room .panel.left { order: 3; border-right: 0; }
  .deskgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); max-height: 60vh; }
  .deskgrid.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage { padding: 12px 12px 8px; }
  .viewbox { flex: none; height: 68vh; }
  .transport { grid-template-columns: auto 1fr; }
  .rail { grid-column: 1 / -1; }
  .panel { overflow: visible; border-left: 0; border-top: 1px solid var(--line); }
  .panel .save { margin-top: 0; }
  .themes { margin-right: 0; gap: 0; }
  .save { position: static; box-shadow: none; }
  .buy { grid-template-columns: 1fr; }
  .buy img { max-height: 220px; }
}
/* on a phone the preview stays in sight while you change the desk, mouse, background... */
@media (max-width: 860px) and (min-height: 640px) {
  body[data-view="studio"] .top { position: static; }
  .room .stage { position: sticky; top: 0; z-index: 5; gap: 5px; padding: 8px 10px 6px; background-color: var(--black); border-bottom: 1px solid var(--line); }
  .room .viewbox { height: 42vh; }
  .room .transport { grid-template-columns: auto 1fr auto; gap: 6px 10px; }
  .room .transport .rail { grid-column: 1 / -1; grid-row: 2; }
  .room .panel :is(button, input, select, textarea, summary, a) { scroll-margin-top: calc(42vh + 150px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shot img { transition: none; }
  .shot:hover img { transform: none; }
  .veil p::before { animation: none; }
  .card.acc > summary::after { transition: none; }
}

/* the light theme: pictures keep dark surroundings where words sit on them */
:root[data-theme="blush"] .hot { color: #ff9ccc; border-color: #ff4fa3; }
:root[data-theme="blush"] .reel figure { border-color: #ffffff; box-shadow: 0 18px 40px rgba(150, 30, 90, .18); }
:root[data-theme="blush"] .frame { box-shadow: 0 20px 48px rgba(150, 30, 90, .28); }

/* while everything is free nothing about buying is shown */
.free-only { display: none; }
body.all-free .free-only { display: block; }
body.all-free .paid-only, body.all-free #openMine, body.all-free #restoreOpen, body.all-free [data-filter="access"] { display: none; }

/* light effects and the list of places */
.seg.wrap { display: flex; flex-wrap: wrap; }
.seg.wrap button { flex: 1 1 auto; padding: 7px 8px; font-size: 12px; }
.swatches.leds button { color: var(--soft); font: 600 10px var(--display); padding: 0; }
.placegrid { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 18px 16px; grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)); }
.place { display: grid; gap: 8px; width: 100%; padding: 0 0 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; color: var(--ink); cursor: pointer; text-align: left; }
.place:hover, .place:focus-visible { border-color: var(--gold); }
.place canvas { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: #101115; }
.placegrid.wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.placegrid.wide .place canvas { aspect-ratio: 16 / 9; }
#placeBar .field { grid-auto-flow: row; }
#placeBar select { min-width: 0; max-width: min(100%, 300px); }
@media (max-width: 860px) { #placeBar { position: static; } #placeBar .field, #placeBar select { width: 100%; max-width: none; } }
.place b { padding: 0 10px; font: 700 14px var(--display); letter-spacing: .02em; }
.place small { padding: 0 10px; font: 400 11px var(--mono); color: var(--soft); }
/* every device with its resolution */
.devicegrid { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.devicegrid button { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; width: 100%; min-height: 44px; padding: 11px 13px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; color: var(--ink); cursor: pointer; font: 600 13px var(--display); letter-spacing: .02em; text-align: left; }
.devicegrid button:hover, .devicegrid button:focus-visible { border-color: var(--gold); }
.devicegrid small { font: 400 11px var(--mono); color: var(--gold); white-space: nowrap; }

@media (max-width: 360px) { .themes button { width: 22px; height: 22px; border-width: 4px; } .brand span { font-size: 17px; } .brand .mark { width: 30px; height: 30px; } }

/* ---- premium items, the owner's banners and combo offers ---- */
.deskgrid li, .objectlist li, .nichegrid li { position: relative; }
.deskgrid button.locked, .kit button.locked { position: relative; }
.deskgrid button.locked::after, .kit button.locked::after { content: "₹"; position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--red); color: #fff; font: 700 12px/1 var(--display); pointer-events: none; }
.kit button.locked::after { top: 2px; right: 2px; width: 16px; height: 16px; font-size: 10px; }
.objectlist button, .nichegrid button { position: relative; }
i.lock { position: absolute; top: 6px; right: 6px; padding: 4px 7px 3px; border-radius: 3px; background: var(--red); color: #fff; font: 700 12px/1 var(--display); font-style: normal; letter-spacing: .04em; pointer-events: none; }
.promos { display: grid; gap: 14px; padding: 0 clamp(18px, 5vw, 72px) 22px; }
.promos[hidden] { display: none; }
.banner { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--black); }
.banner img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: cover; }
.combos { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.combo { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px; background: var(--panel); }
.combo h3 { margin: 0 0 4px; font: 700 18px var(--display); letter-spacing: .02em; text-transform: uppercase; }
.combo p { margin: 0; color: var(--soft); font-size: 13px; }
.combo .btn, .combo .tag { flex: none; }

/* ---- under the desks: how it works and questions ---- */
.about { padding: 36px clamp(18px, 5vw, 72px) 48px; border-top: 1px solid var(--line); content-visibility: auto; contain-intrinsic-size: auto 700px; }
.about h2 { margin: 0 0 18px; font: 700 clamp(24px, 3vw, 34px)/1.1 var(--display); text-transform: uppercase; }
.steps { list-style: none; counter-reset: step; margin: 0 0 18px; padding: 0; display: grid; gap: 18px 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.steps li { counter-increment: step; border-top: 3px solid var(--gold); padding-top: 12px; }
.steps h3 { margin: 0 0 6px; font: 700 18px var(--display); letter-spacing: .03em; text-transform: uppercase; }
.steps h3::before { content: counter(step) ". "; color: var(--gold); }
.steps p, .who { margin: 0; color: var(--soft); max-width: 62ch; }
.who { margin-bottom: 36px; }
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 2px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font: 400 24px/1 var(--display); }
.faq details[open] summary::after { content: "\2212"; }
.faq h3 { margin: 0; font: 600 16px var(--display); letter-spacing: .02em; }
.faq p { margin: 0 0 16px; color: var(--soft); max-width: 70ch; }

/* ---- privacy, terms, refunds, contact ---- */
.doc { max-width: 780px; margin: 0 auto; padding: 36px 20px 56px; line-height: 1.7; }
.doc h1 { margin: 0 0 6px; font: 700 clamp(32px, 6vw, 52px)/1.05 var(--display); text-transform: uppercase; }
.doc h2 { margin: 30px 0 8px; font: 700 18px var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--gold); }
.doc p, .doc li { color: var(--soft); }
.doc a { color: var(--ink); }
.doc .updated { margin: 0 0 20px; font-size: 13px; }

.hero .counts { min-height: 3.4em; }
.themes { min-height: 26px; min-width: 150px; }
.top { background: rgb(var(--page-rgb)); }