/* Space configurator (Ruimtevuller). VTStudio shell (studio.css) with a dark and a light theme.
   The theme lives on <html data-theme>, set before the first paint (see the <head>). */
.rv-page {
    --rv-bg:#070a08; --rv-card:#0e130f; --rv-card-2:#141a15; --rv-ink:#f4f5f4; --rv-muted:#bfc2bf; --rv-dim:#8b938b;
    --rv-line:#273027; --rv-line-strong:#3c483c; --rv-green:#30ff0b; --rv-accent:#30ff0b; --rv-on-green:#071004;
    --rv-stage:linear-gradient(180deg, #161c17 0%, #0f1410 60%, #0b0f0c 100%);
    --rv-chip:#0d140fcc; --rv-chip-ink:#eef3ec; --rv-warn-bg:#2a1f0c; --rv-warn-line:#6e5220; --rv-warn-ink:#ffd796;
    --rv-error-ink:#ff9b8a; --rv-error-line:#a2493c;
    /* drawing */
    --sv-floor:#1d241e; --sv-wall:#2a322b; --sv-side:#202721; --sv-roof:#3a4538; --sv-edge:#8d968c; --sv-dim:#7d877c; --sv-pill:#141a15;
    background:var(--rv-bg); color:var(--rv-ink); color-scheme:dark;
}
:root[data-theme=light] .rv-page {
    --rv-bg:#f4f6f2; --rv-card:#ffffff; --rv-card-2:#eef2ec; --rv-ink:#0d140f; --rv-muted:#525d53; --rv-dim:#7a857b;
    --rv-line:#d9e0d5; --rv-line-strong:#b9c4b4; --rv-accent:#178c05;
    --rv-stage:linear-gradient(180deg, #eef1ec 0%, #e6eae3 62%, #dfe3dc 100%);
    --rv-chip:#ffffffd9; --rv-chip-ink:#0d140f; --rv-warn-bg:#fff4e0; --rv-warn-line:#f0c98a; --rv-warn-ink:#6b3d00;
    --rv-error-ink:#a3271a; --rv-error-line:#e3a59b;
    --sv-floor:#e7ebe3; --sv-wall:#dfe4da; --sv-side:#eef1eb; --sv-roof:#c9d0c3; --sv-edge:#4c564d; --sv-dim:#8a958a; --sv-pill:#ffffff;
    color-scheme:light;
}
.rv-page [hidden] { display:none !important; }
.rv-page .site-header { position:sticky; }
.rv-page button { font-family:inherit; cursor:pointer; }
.rv-page button:disabled, .rv-page [aria-disabled=true] { opacity:.42; cursor:default; }
.rv-page :focus-visible { outline:2px solid var(--rv-accent); outline-offset:3px; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }

.rv-main { width:94%; max-width:1480px; margin:0 auto; padding:26px 0 0; position:relative; }
.rv-topbar { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.rv-back { font-size:12px; color:var(--rv-muted) !important; }
.rv-back:hover { color:var(--rv-accent) !important; }
.theme-switch { display:inline-flex; gap:2px; padding:3px; border:1px solid var(--rv-line); border-radius:9px; }
.theme-switch button { display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border:0; border-radius:6px; background:none; color:var(--rv-muted); font-size:12px; font-weight:600; }
.theme-switch button:hover { color:var(--rv-ink); }
.theme-switch button[aria-pressed=true] { background:var(--rv-ink); color:var(--rv-bg); cursor:default; }
.theme-switch svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.rv-heading { display:flex; align-items:end; justify-content:space-between; gap:32px; margin:22px 0 28px; }
.rv-heading .eyebrow { font-size:10px; letter-spacing:.22em; color:var(--rv-accent); }
.rv-heading h1 { font-size:clamp(32px, 3.5vw, 52px); line-height:1.12; color:var(--rv-ink); }
.rv-page .rv-heading h1 span, .rv-page .panel-heading h2 span { color:var(--rv-green); }
.rv-heading > p { font-size:14px; color:var(--rv-muted); text-align:right; }

/* ------------------------------------------------------------- workspace */
.rv-workspace { display:grid; grid-template-columns:minmax(0, 1fr) 410px; gap:24px; align-items:start; }
.rv-viewer-column { position:sticky; top:92px; }
.rv-stage { position:relative; height:min(66vh, 680px); min-height:420px; border-radius:16px; overflow:hidden; isolation:isolate; background:var(--rv-stage); border:1px solid var(--rv-line); }
#rv-canvas { position:absolute; inset:0; width:100%; height:100%; display:block; touch-action:none; cursor:grab; outline:none; }
#rv-canvas:active { cursor:grabbing; }
#rv-canvas:focus-visible { box-shadow:inset 0 0 0 3px var(--rv-green); }
.rv-labels { position:absolute; inset:0; z-index:1; pointer-events:none; overflow:hidden; }
.dim-label { position:absolute; top:0; left:0; padding:4px 9px; border-radius:20px; background:var(--rv-chip); color:var(--rv-chip-ink); font-size:11px; font-weight:700; white-space:nowrap; backdrop-filter:blur(6px); box-shadow:0 0 0 1px var(--rv-line); will-change:transform; transition:background .2s, color .2s; }
.dim-label.is-active { background:var(--rv-green); color:var(--rv-on-green); box-shadow:0 0 0 3px #30ff0b40; }
.stage-topline { position:absolute; z-index:2; top:18px; left:20px; right:20px; display:flex; justify-content:space-between; gap:12px; font-size:11px; pointer-events:none; }
.live-label { display:inline-flex; align-items:center; gap:8px; padding:7px 11px; border-radius:30px; background:var(--rv-chip); color:var(--rv-chip-ink); font-weight:700; letter-spacing:.14em; font-size:9px; backdrop-filter:blur(8px); }
.live-label i { width:7px; height:7px; border-radius:50%; background:var(--rv-green); box-shadow:0 0 0 3px #30ff0b40; }
#stage-template { padding:7px 11px; border-radius:30px; background:var(--rv-chip); color:var(--rv-chip-ink); backdrop-filter:blur(8px); }
.stage-tools { position:absolute; z-index:2; right:16px; bottom:16px; display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; }
.view-switch { display:flex; gap:0; }
.view-switch button:first-child { border-radius:8px 0 0 8px; }
.view-switch button:last-child { border-radius:0 8px 8px 0; margin-left:-1px; }
.stage-tools button { display:inline-flex; align-items:center; gap:7px; min-height:38px; padding:9px 13px; border-radius:8px; border:1px solid var(--rv-line-strong); background:var(--rv-chip); color:var(--rv-chip-ink); font-size:12px; font-weight:600; backdrop-filter:blur(8px); transition:background .2s, border-color .2s; }
.stage-tools button:hover { border-color:var(--rv-ink); }
.stage-tools button[aria-pressed=true] { background:var(--rv-ink); color:var(--rv-bg); border-color:var(--rv-ink); box-shadow:inset 0 -2px 0 var(--rv-green); position:relative; }
.stage-tools svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.rv-loading, .rv-error { position:absolute; inset:0; z-index:4; display:grid; place-content:center; justify-items:center; gap:16px; padding:30px; text-align:center; background:var(--rv-card); color:var(--rv-muted); font-size:13px; }
.rv-error { z-index:5; font-size:14px; color:var(--rv-ink); }
.rv-error button { border:0; border-radius:8px; padding:11px 16px; background:var(--rv-green); color:var(--rv-on-green); font-weight:700; }

.design-metrics { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:1px; margin-top:12px; border:1px solid var(--rv-line); border-radius:12px; overflow:hidden; background:var(--rv-line); }
.design-metrics div { background:var(--rv-card); padding:12px 14px; min-width:0; }
.design-metrics span { display:block; font-size:9px; letter-spacing:.18em; font-weight:700; color:var(--rv-dim); }
.design-metrics strong { display:block; margin-top:3px; font-size:clamp(15px, 1.35vw, 19px); letter-spacing:-.02em; white-space:nowrap; }
.viewer-help { font-size:11px; color:var(--rv-dim); margin-top:10px !important; }

/* ------------------------------------------------------------- panel */
.rv-panel { background:var(--rv-card); border:1px solid var(--rv-line); border-radius:16px; padding:24px; scroll-margin-top:96px; }
.panel-heading { display:flex; justify-content:space-between; align-items:start; gap:16px; }
.panel-heading .eyebrow { font-size:9px; letter-spacing:.2em; color:var(--rv-accent); margin-bottom:6px !important; }
.panel-heading h2 { font-size:28px; color:var(--rv-ink); }
.history-buttons { display:flex; gap:4px; }
.history-buttons button { width:34px; height:34px; border-radius:8px; border:1px solid var(--rv-line); background:var(--rv-card-2); color:var(--rv-ink); font-size:16px; }
.history-buttons button:not(:disabled):hover { border-color:var(--rv-ink); }
.step-tabs { display:grid; grid-template-columns:repeat(5, 1fr); gap:3px; margin:20px 0 18px; padding:4px; border-radius:11px; background:var(--rv-card-2); }
.step-tabs button { border:0; border-radius:8px; padding:9px 2px; background:none; color:var(--rv-dim); font-size:10px; font-weight:700; letter-spacing:.06em; min-width:0; }
.step-tabs button span { display:block; font-size:11.5px; letter-spacing:0; color:var(--rv-muted); margin-top:2px; overflow:hidden; text-overflow:ellipsis; }
.step-tabs button[aria-selected=true] { background:var(--rv-card); color:var(--rv-accent); box-shadow:0 1px 3px #0005, 0 0 0 1px var(--rv-line); }
.step-tabs button[aria-selected=true] span { color:var(--rv-ink); }
.step-intro { font-size:13px; color:var(--rv-muted); margin-bottom:14px !important; }
.step-next { display:flex; justify-content:space-between; align-items:center; width:100%; margin-top:20px; min-height:50px; padding:14px 18px; border:0; border-radius:9px; background:var(--rv-green); color:var(--rv-on-green); font-size:14px; font-weight:700; box-shadow:0 0 24px #27ed1030; transition:background .2s; }
.step-next:not(:disabled):hover { background:#6dff51; }
.rv-page .step-next:disabled { opacity:1; background:var(--rv-card-2); color:var(--rv-dim); box-shadow:inset 0 0 0 1px var(--rv-line); }
.step-next span { font-size:20px; line-height:.8; }

/* 01 situation */
.template-options { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.choice { position:relative; display:flex; flex-direction:column; gap:6px; padding:12px; border:1px solid var(--rv-line); border-radius:12px; background:none; color:var(--rv-ink); text-align:left; transition:border-color .2s, background .2s; }
.choice:not([aria-disabled=true]):hover { border-color:var(--rv-line-strong); }
.choice[aria-checked=true] { border-color:var(--rv-ink); box-shadow:inset 0 0 0 1px var(--rv-ink); background:var(--rv-card-2); }
.choice[aria-checked=true]::after { content:""; position:absolute; top:10px; right:10px; width:8px; height:8px; border-radius:50%; background:var(--rv-green); box-shadow:0 0 0 2px var(--rv-ink); }
.choice svg { width:64px; height:48px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.choice svg .ic-fill { fill:var(--rv-card-2); stroke:none; }
.choice[aria-checked=true] svg .ic-fill { fill:#30ff0b2e; }
.choice svg .ic-thin { stroke-width:1.2; opacity:.65; }
.choice strong { font-size:13px; line-height:1.3; }
.choice small { font-size:11px; color:var(--rv-muted); line-height:1.4; }
.choice .soon { position:absolute; top:10px; right:10px; padding:2px 7px; border-radius:20px; background:var(--rv-card-2); color:var(--rv-dim); font-size:9px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.variant-block { margin-top:20px; }
.variant-block h3 { font-size:15px; margin-bottom:10px !important; }
.variant-options { display:grid; gap:8px; }
.variant-options .choice { flex-direction:row; align-items:center; gap:14px; }
.variant-options .choice svg { flex:0 0 auto; width:56px; height:42px; }

/* 03 proposals */
.proposal-cards { display:grid; gap:10px; }
.proposal { display:grid; grid-template-columns:118px minmax(0, 1fr); gap:6px 14px; width:100%; padding:14px; border:1px solid var(--rv-line); border-radius:13px; background:none; color:var(--rv-ink); text-align:left; transition:border-color .2s, background .2s; }
.proposal:hover { border-color:var(--rv-line-strong); }
.proposal[aria-checked=true] { border-color:var(--rv-green); background:var(--rv-card-2); box-shadow:inset 0 0 0 1px var(--rv-green); }
.proposal-labels { grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:5px; }
.chip { padding:4px 9px; border-radius:20px; background:var(--rv-card-2); border:1px solid var(--rv-line-strong); font-size:10px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.proposal[aria-checked=true] .chip:first-child { background:var(--rv-green); border-color:var(--rv-green); color:var(--rv-on-green); }
.proposal-thumb { grid-row:span 3; align-self:start; border-radius:8px; background:var(--rv-bg); padding:4px; }
.proposal-thumb svg { display:block; width:100%; height:auto; }
.th-space { fill:var(--sv-floor); stroke:var(--sv-edge); stroke-width:1; }
.th-module { stroke:var(--rv-bg); stroke-width:.8; }
.th-open { fill:#8fa48a; } .th-doors, .th-flap { fill:#c7cec3; } .th-drawers { fill:#a9b6a5; } .th-filler { fill:#6d776d; }
.th-rollout { fill:#b4c2ad; } .th-front, .th-hatch { fill:#dfe4da; } .th-cover { fill:#8fb0c8; fill-opacity:.75; } .th-curtain { fill:#d9d0bf; fill-opacity:.8; }
:root[data-theme=light] .th-open { fill:#9db497; } :root[data-theme=light] :is(.th-doors, .th-flap) { fill:#dfe4da; } :root[data-theme=light] .th-drawers { fill:#bfcbb9; }
:root[data-theme=light] .th-module { stroke:#56625a; }
.proposal-sub { font-size:12px; color:var(--rv-muted); line-height:1.45; }
.proposal-fill { display:grid; gap:6px; font-size:11.5px; color:var(--rv-muted); }
.share-bar { display:flex; height:7px; border-radius:4px; overflow:hidden; background:var(--rv-line); }
.share-bar b { display:block; height:100%; }
.share-text { line-height:1.45; }
.share-text span:first-child { color:var(--rv-ink); font-weight:700; }
/* The four kinds of space: the same colours in the bar, the legend and the numbers under the 3D view. */
.is-stored { --share:var(--rv-green); } .is-closed { --share:#8fb0c8; } .is-red { --share:#ff6a5a; } .is-dead { --share:#a3a8a2; }
.share-bar b { background:var(--share); }
:root[data-theme=light] .is-stored { --share:#178c05; } :root[data-theme=light] .is-closed { --share:#5f87a6; } :root[data-theme=light] .is-red { --share:#e5483a; } :root[data-theme=light] .is-dead { --share:#8d938c; }
/* The meter under the 3D view: how full and how empty the space is. */
.fill-meter { margin-top:8px; padding:12px 14px 13px; border:1px solid var(--rv-line); border-radius:12px; background:var(--rv-card); }
.fill-head { display:flex; justify-content:space-between; align-items:baseline; gap:12px; }
.fill-head p { margin:0; font-size:12px; font-weight:700; color:var(--rv-muted); }
.fill-head strong { margin-right:3px; font-size:24px; letter-spacing:-.03em; color:var(--rv-ink); }
.fill-head .is-red strong { color:var(--share); }
.fill-bar { display:flex; height:12px; margin:8px 0 10px; border-radius:6px; overflow:hidden; background:var(--rv-line); }
.fill-bar b { display:block; height:100%; width:0; background:var(--share); transition:width .45s ease; }
.fill-bar b.is-closed { background:repeating-linear-gradient(135deg, var(--share) 0 4px, color-mix(in srgb, var(--share) 45%, transparent) 4px 8px); }
.fill-meter.is-empty .fill-legend strong { color:var(--rv-dim); }
.fill-legend { display:flex; flex-wrap:wrap; gap:5px 16px; margin:0; padding:0; list-style:none; font-size:11.5px; color:var(--rv-dim); }
.fill-legend li[hidden] { display:none; }
.fill-legend i { display:inline-block; width:9px; height:9px; margin-right:6px; border-radius:2px; background:var(--share); vertical-align:-.5px; }
.fill-legend .is-closed i { background:repeating-linear-gradient(135deg, var(--share) 0 2px, transparent 2px 4px); box-shadow:inset 0 0 0 1px var(--share); }
.fill-legend strong { margin-left:3px; color:var(--rv-ink); }
.fill-legend .is-play i { background:var(--rv-line); box-shadow:inset 0 0 0 1px var(--rv-dim); }
@media (prefers-reduced-motion:reduce) { .fill-bar b { transition:none; } }
/* The tip above the Openen button (once per visitor). */
.open-tip { position:absolute; z-index:3; display:flex; align-items:center; gap:8px; max-width:min(280px, calc(100% - 16px)); padding:8px 8px 8px 12px; border-radius:10px; background:var(--rv-chip); color:var(--rv-chip-ink); box-shadow:0 0 0 1px var(--rv-line-strong), 0 8px 24px #0006; font-size:12px; line-height:1.4; backdrop-filter:blur(8px); animation:tip-in .35s ease both; }
.open-tip[hidden] { display:none; }
/* Popup at a clicked red volume: what can go there, with buttons to the right block in the panel */
.rest-pop { position:absolute; z-index:4; width:min(280px, calc(100% - 24px)); padding:12px 12px 12px 14px; border-radius:12px; background:var(--rv-card); color:var(--rv-ink); box-shadow:0 0 0 1px var(--rv-error-line), 0 14px 34px -8px #000b; font-size:12.5px; line-height:1.45; transform:translate(-50%, calc(-100% - 14px)); animation:tip-in .25s ease both; }
.rest-pop.is-below { transform:translate(-50%, 14px); }
.rest-pop[hidden] { display:none; }
.rest-pop::after { content:""; position:absolute; left:calc(50% + var(--shift, 0px) - 6px); bottom:-6px; width:12px; height:12px; background:inherit; transform:rotate(45deg); box-shadow:1px 1px 0 var(--rv-error-line); }
.rest-pop.is-below::after { bottom:auto; top:-6px; box-shadow:-1px -1px 0 var(--rv-error-line); }
.rest-pop p { margin:0; padding-right:22px; }
.rest-pop .rest-pop-title { font-weight:700; font-size:13px; margin-bottom:3px; }
.rest-pop .rest-pop-title::before { content:""; display:inline-block; width:9px; height:9px; margin-right:7px; border-radius:2px; background:#ff5a4a; vertical-align:0; }
.rest-pop-text { color:var(--rv-muted); }
.rest-pop-actions { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.rest-pop-actions button { min-height:34px; padding:6px 11px; border:1px solid var(--rv-line-strong); border-radius:8px; background:var(--rv-card); color:var(--rv-ink); font-size:12px; font-weight:700; }
.rest-pop-actions button:first-child { border-color:var(--rv-green); background:var(--rv-green); color:var(--rv-on-green); }
.rest-pop-actions button:hover { border-color:var(--rv-ink); }
.rest-pop-close { position:absolute; top:6px; right:6px; width:26px; height:26px; border:0; border-radius:6px; background:none; color:var(--rv-muted); font-size:12px; }
.editor-block.is-flash { animation:block-flash 1.2s ease; border-radius:9px; }
@keyframes block-flash { 0%, 40% { box-shadow:0 0 0 2px var(--rv-green), 0 0 0 8px #30ff0b22; } 100% { box-shadow:0 0 0 0 transparent; } }
@media (prefers-reduced-motion:reduce) { .rest-pop, .editor-block.is-flash { animation:none; } }
.open-tip p { margin:0; }
.open-tip::after { content:""; position:absolute; right:calc(var(--arrow, 40px) - 6px); bottom:-6px; width:12px; height:12px; background:inherit; transform:rotate(45deg); box-shadow:1px 1px 0 var(--rv-line-strong); }
.open-tip button { flex:none; width:26px; height:26px; border:0; border-radius:6px; background:none; color:inherit; font-size:12px; opacity:.7; }
.open-tip button:hover { opacity:1; background:var(--rv-line); }
@keyframes tip-in { from { opacity:0; transform:translateY(6px); } }
@media (prefers-reduced-motion:reduce) { .open-tip { animation:none; } }
/* Finishing parts (panels, knee-wall fronts, curtains): tagged everywhere, so nobody takes them for storage. */
.finishing-tag { position:absolute; top:0; left:0; padding:4px 9px; border-radius:20px; background:#8fb0c8; color:#0d1a24; font-size:10.5px; font-weight:700; letter-spacing:.02em; white-space:nowrap; box-shadow:0 2px 10px #0005; will-change:transform; }
:root[data-theme=light] .finishing-tag { background:#5f87a6; color:#fff; }
.tag-finishing { display:inline-block; margin-left:4px; padding:1px 6px; border-radius:5px; background:color-mix(in srgb, #8fb0c8 22%, transparent); color:#a9c4d8; font-size:10px; font-style:normal; font-weight:700; letter-spacing:.03em; vertical-align:1px; }
:root[data-theme=light] .tag-finishing { background:#5f87a61f; color:#3f6685; }
.finishing-note { margin:10px 0 0 !important; padding:10px 12px; border-left:3px solid #8fb0c8; border-radius:9px; background:var(--rv-card-2); font-size:12px; line-height:1.5; color:var(--rv-muted); }
:root[data-theme=light] .finishing-note { border-left-color:#5f87a6; }
.finishing-intro { margin:0 0 8px !important; font-size:12px; line-height:1.5; color:var(--rv-muted); }
.h4-note { margin-left:6px; font-size:11px; font-weight:600; color:var(--rv-dim); text-transform:none; letter-spacing:0; }
.proposal-mix .is-finishing { background:color-mix(in srgb, #8fb0c8 16%, var(--rv-card-2)); }
.proposal-mix .is-finishing em { margin-right:4px; font-style:normal; font-weight:700; color:#a9c4d8; }
:root[data-theme=light] .proposal-mix .is-finishing em { color:#3f6685; }
.proposal-numbers { display:flex; flex-wrap:wrap; gap:4px 14px; font-size:12px; color:var(--rv-muted); }
.proposal-numbers b { color:var(--rv-ink); font-size:14px; }
.proposal-mix { grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:4px; }
.proposal-mix span { padding:3px 8px; border-radius:6px; background:var(--rv-card-2); font-size:11px; color:var(--rv-muted); }
.proposal-note { margin-bottom:12px !important; padding:10px 12px; border-radius:9px; background:var(--rv-card-2); font-size:12px; color:var(--rv-muted); line-height:1.5; }
.proposal-note button { margin-top:8px; border:1px solid var(--rv-ink); border-radius:8px; background:none; color:var(--rv-ink); padding:8px 12px; font-size:12px; font-weight:700; }
.rest-legend { display:grid; gap:6px; margin:12px 0 0 !important; padding:0; list-style:none; font-size:11.5px; color:var(--rv-dim); }
.rest-legend li { display:flex; align-items:flex-start; gap:8px; line-height:1.4; }
.rest-legend strong { color:var(--rv-muted); margin-right:4px; }
.rest-legend i { flex:none; width:14px; height:14px; margin-top:1px; border-radius:4px; background:color-mix(in srgb, var(--share) 30%, transparent); box-shadow:inset 0 0 0 1px var(--share); }
.rest-legend i.is-stored { background:var(--share); }
.rest-legend i.is-closed { background:repeating-linear-gradient(135deg, color-mix(in srgb, var(--share) 55%, transparent) 0 3px, transparent 3px 6px); }
@media (max-width:480px) { .proposal { grid-template-columns:96px minmax(0, 1fr); padding:12px; } }

/* 04 adjust */
.finish-all { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; border-radius:11px; background:var(--rv-card-2); font-size:12px; font-weight:700; }
.swatches { display:flex; gap:6px; }
.swatch { display:inline-flex; align-items:center; gap:7px; padding:5px 10px 5px 5px; border:1px solid var(--rv-line); border-radius:20px; background:var(--rv-card); color:var(--rv-ink); font-size:11.5px; font-weight:600; }
.swatch i { width:20px; height:20px; border-radius:50%; background:var(--swatch); box-shadow:inset 0 0 0 1px #0003; }
.swatch.grain i { background-image:repeating-linear-gradient(100deg, #0000 0 3px, #6e48241f 3px 4px); }
.swatch[aria-pressed=true] { border-color:var(--rv-green); box-shadow:inset 0 0 0 1px var(--rv-green); }
.swatch.is-mixed { border-style:dashed; }
.parts-heading { display:flex; justify-content:space-between; align-items:baseline; margin:18px 0 8px; }
.parts-heading h3 { font-size:15px; }
.parts-heading span { font-size:11px; color:var(--rv-dim); }
.parts-list { position:relative; list-style:none; margin:0; padding:0; display:grid; gap:4px; max-height:300px; overflow:auto; }
.part-row { display:grid; grid-template-columns:22px minmax(0, 1fr) auto; align-items:center; gap:10px; width:100%; padding:8px 10px; border:1px solid var(--rv-line); border-radius:9px; background:none; color:var(--rv-ink); text-align:left; }
.part-row:hover { border-color:var(--rv-line-strong); }
.part-row[aria-current=true] { border-color:var(--rv-green); background:var(--rv-card-2); box-shadow:inset 3px 0 0 var(--rv-green); }
.part-row.is-top { margin-left:18px; width:calc(100% - 18px); }
.part-row.is-gap { border-style:dashed; color:var(--rv-muted); }
.part-row svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.part-row strong { display:block; font-size:12.5px; }
.part-row small { display:block; font-size:11px; color:var(--rv-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.part-row .price { font-size:12px; font-weight:700; }
.finish-dot { display:inline-block; width:9px; height:9px; margin-right:4px; border-radius:50%; background:var(--swatch); box-shadow:inset 0 0 0 1px #0004; vertical-align:-1px; }
.part-editor:empty { display:none; }
.part-editor { margin-top:14px; padding:14px; border:1px solid var(--rv-green); border-radius:12px; background:var(--rv-card-2); }
.editor-head { display:flex; justify-content:space-between; align-items:start; gap:10px; }
.editor-head .eyebrow { font-size:9px; letter-spacing:.2em; color:var(--rv-accent); margin-bottom:4px !important; }
.editor-head h3 { font-size:16px; }
.editor-head small { display:block; margin-top:2px; font-size:11.5px; color:var(--rv-muted); }
.editor-tools { display:flex; gap:6px; flex:0 0 auto; }
.editor-tools button, .option-back { min-height:34px; padding:7px 11px; border:1px solid var(--rv-line-strong); border-radius:8px; background:var(--rv-card); color:var(--rv-ink); font-size:12px; font-weight:700; }
.editor-tools button:hover, .option-back:hover { border-color:var(--rv-ink); }
.editor-tools button[data-action=remove]:hover { border-color:var(--rv-error-line); color:var(--rv-error-ink); }
.editor-tools button[aria-expanded=true] { background:var(--rv-ink); color:var(--rv-bg); }
.editor-block { margin-top:14px; }
.editor-block h4 { margin:0 0 8px; font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--rv-muted); }
.chips { display:flex; flex-wrap:wrap; gap:6px; }
.acc-chip { display:inline-flex; align-items:center; gap:6px; padding:5px 6px 5px 10px; border-radius:20px; background:var(--rv-card); border:1px solid var(--rv-line-strong); font-size:12px; }
.acc-chip button { width:22px; height:22px; border:0; border-radius:50%; background:var(--rv-card-2); color:var(--rv-muted); font-size:11px; }
.acc-chip button:hover { color:var(--rv-error-ink); }
.options-list { display:grid; gap:5px; }
.option-row { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:2px 10px; width:100%; padding:8px 10px; border:1px solid var(--rv-line); border-radius:9px; background:var(--rv-card); color:var(--rv-ink); text-align:left; font-size:12.5px; }
.option-row:not(:disabled):hover { border-color:var(--rv-green); }
.option-row small { grid-column:1 / -1; font-size:11px; color:var(--rv-muted); }
.option-row .diff { font-weight:700; font-size:12px; }
.rv-page .option-row:disabled { opacity:1; background:none; border-style:dashed; color:var(--rv-dim); }
.option-row:disabled .reason { color:var(--rv-error-ink); opacity:.85; }
.option-row.is-current { border-color:var(--rv-line-strong); }
.options-split { margin:10px 0 6px !important; font-size:11px; color:var(--rv-dim); }
.options-more { margin-top:8px; }
.options-more summary { cursor:pointer; width:max-content; font-size:12px; font-weight:700; color:var(--rv-muted); padding:4px 0; }
.options-more summary:hover { color:var(--rv-ink); }
.options-more summary:focus-visible { outline:2px solid var(--rv-green); outline-offset:3px; border-radius:4px; }
.options-more .options-list { margin-top:6px; }
.option-back { margin-top:10px; }
/* Trying an option out: the row stays marked, the bar under the list places it or goes back */
.option-row.is-preview { border-color:var(--rv-green); box-shadow:0 0 0 1px var(--rv-green) inset; background:var(--rv-card); }
.preview-bar { position:sticky; bottom:12px; z-index:3; display:grid; gap:4px; margin-top:14px; padding:12px 12px 12px 14px; border:1px solid var(--rv-green); border-radius:11px; background:var(--rv-card); box-shadow:0 10px 30px -12px #000a; }
.preview-bar p { font-size:13px; color:var(--rv-ink); }
.preview-bar small { font-size:11.5px; color:var(--rv-muted); }
.preview-bar .preview-note { color:var(--rv-warn-ink); }
.preview-actions { display:flex; gap:8px; margin-top:6px; }
.preview-actions button { min-height:40px; padding:8px 14px; border-radius:9px; border:1px solid var(--rv-line-strong); background:var(--rv-card); color:var(--rv-ink); font-size:13px; font-weight:700; }
.preview-actions button:hover { border-color:var(--rv-ink); }
.rv-page .preview-actions .preview-place { flex:1; border-color:var(--rv-green); background:var(--rv-green); color:var(--rv-on-green); }
.rv-page .preview-actions .preview-place:hover { background:#6dff51; }
.live-label.is-preview i { background:var(--rv-warn-ink); box-shadow:0 0 0 3px #ffd79640; animation:preview-blink 1.4s ease-in-out infinite; }
@keyframes preview-blink { 50% { opacity:.35; } }
@media (prefers-reduced-motion:reduce) { .live-label.is-preview i { animation:none; } }
.edit-note { margin-top:10px !important; font-size:12px; color:var(--rv-warn-ink); background:var(--rv-warn-bg); border:1px solid var(--rv-warn-line); padding:8px 10px; border-radius:8px; }

/* list per wall (corner) */
.parts-wall { margin:8px 0 2px; font-size:10px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--rv-dim); }
.parts-wall:first-child { margin-top:0; }

/* 01 saved design */
.saved-note { display:grid; gap:10px; margin-bottom:16px; padding:12px 14px; border-radius:11px; border:1px solid var(--rv-green); background:var(--rv-card-2); font-size:13px; }
.saved-note[hidden] { display:none; }
.saved-note div { display:flex; flex-wrap:wrap; gap:6px; }
.saved-note button { min-height:38px; padding:8px 14px; border-radius:8px; border:1px solid var(--rv-line-strong); background:none; color:var(--rv-ink); font-size:12.5px; font-weight:700; }
.saved-note button:first-child { background:var(--rv-green); border-color:var(--rv-green); color:var(--rv-on-green); }

/* 05 summary */
.summary-head { display:grid; grid-template-columns:132px minmax(0, 1fr); gap:14px; align-items:center; padding:12px; border:1px solid var(--rv-line); border-radius:12px; background:var(--rv-card-2); }
.summary-thumb svg { display:block; width:100%; height:auto; }
.summary-space { display:grid; gap:3px; font-size:13px; }
.summary-space small { font-size:11.5px; color:var(--rv-muted); line-height:1.45; }
.summary-totals { display:grid; grid-template-columns:repeat(2, 1fr); gap:1px; margin-top:12px; border:1px solid var(--rv-line); border-radius:12px; overflow:hidden; background:var(--rv-line); }
.summary-totals div { padding:10px 12px; background:var(--rv-card); }
.summary-totals span { display:block; font-size:9px; font-weight:700; letter-spacing:.18em; text-transform:uppercase; color:var(--rv-dim); }
.summary-totals strong { font-size:18px; }
.summary-table { width:100%; margin-top:16px; border-collapse:collapse; font-size:12.5px; }
.summary-table caption { text-align:left; margin-bottom:6px; font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--rv-muted); }
.summary-table thead th { padding:0 0 6px; font-size:9px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--rv-dim); text-align:left; border-bottom:1px solid var(--rv-line); }
.summary-table thead th:last-child, .summary-table .price, .summary-table tfoot td { text-align:right; }
.summary-table td { padding:9px 0; border-bottom:1px solid var(--rv-line); vertical-align:top; }
.summary-table td small { display:block; margin-top:2px; font-size:11px; color:var(--rv-muted); }
.summary-table thead th:first-child, .summary-table .qty { width:58px; padding-right:10px; }
.summary-table .qty { font-weight:700; color:var(--rv-accent); }
.summary-table .price { white-space:nowrap; font-weight:700; padding-left:8px; }
.summary-table .price small { font-weight:400; white-space:normal; }
.summary-table tfoot th, .summary-table tfoot td { padding-top:12px; font-size:14px; font-weight:700; text-align:left; }
.summary-table tfoot td { text-align:right; font-size:18px; }
.summary-disclaimer { margin-top:14px !important; padding:11px 13px; border-radius:9px; border-left:3px solid var(--rv-green); background:var(--rv-card-2); font-size:12px; color:var(--rv-muted); line-height:1.55; }
.summary-disclaimer strong { color:var(--rv-ink); }
.summary-actions { display:grid; gap:8px; margin-top:16px; }
.rv-page .summary-actions .btn { min-height:48px; padding:12px 18px; font-size:14px; }
.rv-page .summary-actions .btn-outline { background:none; color:var(--rv-ink); border-color:var(--rv-line-strong); }
.rv-page .summary-actions .btn-outline:hover { border-color:var(--rv-green); }
.rv-page .summary-actions .btn-primary:hover { background:#6dff51; }
.summary-feedback { margin-top:10px !important; padding:9px 12px; border-radius:8px; background:var(--rv-card-2); font-size:12px; color:var(--rv-ink); }
.summary-feedback[hidden] { display:none; }
.restart { display:block; margin:14px auto 0; border:0; background:none; color:var(--rv-muted); font-size:12px; font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.restart:hover { color:var(--rv-error-ink); }

/* 02 measures */
.shape-preview { border:1px solid var(--rv-line); border-radius:12px; background:var(--rv-card-2); padding:6px; }
.shape-svg { display:block; width:100%; height:auto; font-family:Arial, Helvetica, sans-serif; }
.shape-svg polygon { stroke:var(--sv-edge); stroke-width:1.2; stroke-linejoin:round; }
.sv-floor { fill:var(--sv-floor); }
.sv-wall { fill:var(--sv-wall); }
.sv-side { fill:var(--sv-side); fill-opacity:.7; }
.sv-roof { fill:var(--sv-roof); stroke-width:2 !important; }
.sv-open { fill:none; stroke-dasharray:4 4; stroke-opacity:.7; }
.sv-plinth { fill:var(--sv-edge); fill-opacity:.35; stroke-width:.8 !important; }
.sv-obstacle { fill:#ff8a3d; fill-opacity:.8; stroke:#b4521a !important; stroke-width:.8 !important; }
.sv-dim line { stroke:var(--sv-dim); stroke-width:1.3; }
.sv-dim rect { fill:var(--sv-pill); stroke:var(--sv-dim); stroke-width:1; }
.sv-dim text { fill:var(--rv-muted); font-size:11.5px; font-weight:700; }
.sv-dim.is-active line { stroke:var(--rv-green); stroke-width:2.6; }
.sv-dim.is-active rect { fill:var(--rv-green); stroke:none; }
.sv-dim.is-active text { fill:var(--rv-on-green); }
:root[data-theme=light] .sv-dim.is-active line { stroke:#22b80a; }
.measure-tip { display:flex; gap:9px; align-items:flex-start; margin:12px 0 4px !important; padding:10px 12px; border-radius:9px; background:var(--rv-card-2); font-size:12px; color:var(--rv-muted); }
.measure-tip svg { flex:0 0 auto; width:17px; height:17px; fill:none; stroke:var(--rv-accent); stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.low-side { margin-top:14px; }
.low-side:empty { display:none; }
.segmented { display:flex; align-items:center; gap:10px; font-size:12px; font-weight:700; }
.segmented > div { display:inline-flex; gap:2px; padding:3px; border-radius:9px; background:var(--rv-card-2); }
.segmented button { border:0; border-radius:7px; padding:7px 14px; background:none; color:var(--rv-muted); font-size:12px; font-weight:700; }
.segmented button[aria-pressed=true] { background:var(--rv-card); color:var(--rv-ink); box-shadow:0 0 0 1px var(--rv-line-strong); }
.measure-fields { display:grid; gap:8px; margin-top:14px; }
.field { display:grid; grid-template-columns:minmax(0, 1fr) 112px; gap:4px 12px; align-items:center; padding:11px 12px; border:1px solid var(--rv-line); border-radius:11px; transition:border-color .2s, background .2s; }
.field.is-focused { border-color:var(--rv-green); background:var(--rv-card-2); }
.field label { font-size:13px; font-weight:700; }
.field .hint { grid-column:1 / -1; font-size:11.5px; color:var(--rv-muted); line-height:1.45; }
.field .error { grid-column:1 / -1; font-size:12px; color:var(--rv-error-ink); line-height:1.45; }
.field .error button { margin-left:6px; border:1px solid currentColor; border-radius:6px; background:none; color:inherit; font-size:11px; font-weight:700; padding:3px 8px; }
.field.has-error { border-color:var(--rv-error-line); }
.unit-input { position:relative; grid-row:1; grid-column:2; }
.unit-input input { width:100%; min-height:40px; padding:8px 34px 8px 10px; border:1px solid var(--rv-line-strong); border-radius:8px; background:var(--rv-bg); color:var(--rv-ink); font:inherit; font-size:15px; font-weight:700; text-align:right; }
.unit-input input:focus { outline:none; border-color:var(--rv-green); box-shadow:0 0 0 3px #30ff0b33; }
.unit-input input[aria-invalid=true] { border-color:var(--rv-error-line); }
.unit-input span { position:absolute; right:10px; top:50%; transform:translateY(-50%); font-size:12px; color:var(--rv-dim); pointer-events:none; }
.extra { border:0; padding:0; margin:22px 0 0; min-width:0; }
.extra legend { padding:0; margin-bottom:10px; font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.extra legend small { display:block; margin-top:3px; font-size:11.5px; font-weight:400; letter-spacing:0; text-transform:none; color:var(--rv-muted); }
.toggle-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.switch { display:inline-flex; align-items:center; gap:10px; font-size:13px; font-weight:700; cursor:pointer; }
.switch input { position:absolute; opacity:0; }
.switch i { position:relative; width:38px; height:22px; border-radius:20px; background:var(--rv-line-strong); transition:background .2s; }
.switch i::after { content:""; position:absolute; top:3px; left:3px; width:16px; height:16px; border-radius:50%; background:#fff; transition:transform .2s; }
.switch input:checked + i { background:var(--rv-green); }
.switch input:checked + i::after { transform:translateX(16px); background:var(--rv-on-green); }
.switch input:focus-visible + i { outline:2px solid var(--rv-accent); outline-offset:2px; }
.plinth-height { margin-top:8px; }
.obstacle-list { display:grid; gap:8px; }
.obstacle { border:1px solid var(--rv-line); border-radius:11px; padding:10px 12px; }
.obstacle-head { display:flex; align-items:center; gap:9px; font-size:13px; font-weight:700; }
.obstacle-head svg, .obstacle-add svg { width:20px; height:20px; flex:0 0 auto; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.obstacle-head button { margin-left:auto; width:30px; height:30px; border-radius:7px; border:1px solid var(--rv-line); background:none; color:var(--rv-muted); font-size:15px; }
.obstacle-head button:hover { border-color:var(--rv-error-line); color:var(--rv-error-ink); }
.obstacle .field { border:0; padding:6px 0 0; }
.obstacle .field label { font-weight:400; color:var(--rv-muted); font-size:12px; }
.obstacle-add { display:grid; grid-template-columns:1fr 1fr; gap:6px; margin-top:8px; }
.obstacle-add button { display:flex; align-items:center; gap:8px; padding:9px 10px; border:1px dashed var(--rv-line-strong); border-radius:9px; background:none; color:var(--rv-ink); font-size:12px; font-weight:600; text-align:left; }
.obstacle-add button:hover { border-style:solid; border-color:var(--rv-green); }
.obstacle-add button b { font-size:16px; font-weight:400; color:var(--rv-accent); margin-left:auto; }
.measure-hints:empty { display:none; }
.measure-hints { margin-top:16px; display:grid; gap:6px; }
.measure-hints p { padding:10px 12px; border-radius:8px; background:var(--rv-warn-bg); border:1px solid var(--rv-warn-line); color:var(--rv-warn-ink); font-size:12px; line-height:1.5; }

.rv-note { font-size:11px; color:var(--rv-dim); max-width:900px; margin:26px 0 0 !important; line-height:1.6; }
.rv-note strong { color:var(--rv-ink); }
.rv-footer { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:40px 0 34px; margin-top:40px; border-top:1px solid var(--rv-line); font-size:12px; color:var(--rv-muted); }
.rv-footer .brand img { width:120px; height:auto; }
:root[data-theme=light] .rv-footer .brand img { filter:invert(1) hue-rotate(180deg); }
.rv-footer a:not(.brand) { color:var(--rv-ink); font-weight:600; }
.rv-footer a:not(.brand):hover { color:var(--rv-accent); }

/* ------------------------------------------------------------- responsive */
@media (max-width:1100px) { .rv-workspace { grid-template-columns:minmax(0, 1fr) 360px; gap:16px; } .rv-panel { padding:18px; } }
@media (max-width:960px) {
    .rv-page .site-header { position:relative; }
    .rv-heading { margin:20px 0 20px; align-items:start; }
    .rv-heading > p { display:none; }
    .rv-workspace { grid-template-columns:minmax(0, 1fr); }
    .rv-viewer-column { position:relative; top:auto; }
    .rv-stage { height:56svh; min-height:330px; max-height:560px; }
    .design-metrics { grid-template-columns:repeat(4, minmax(0, 1fr)); }
    .design-metrics strong { font-size:17px; }
}
@media (max-width:480px) {
    .rv-main { width:auto; margin:0 16px; padding-top:18px; }
    .design-metrics div { padding:10px 9px; }
    .design-metrics span { letter-spacing:.12em; }
    .design-metrics strong { font-size:14px; letter-spacing:-.03em; }
    .rv-heading h1 { font-size:33px; }
    .rv-stage { border-radius:12px; height:52svh; }
    .stage-topline { top:12px; left:12px; right:12px; }
    #stage-template { display:none; }
    .stage-tools { left:10px; right:10px; bottom:10px; }
    .stage-tools button { min-height:36px; padding:8px 10px; font-size:11px; }
    .rv-panel { padding:16px; }
    .step-tabs button span { font-size:10.5px; }
    .field { grid-template-columns:minmax(0, 1fr) 100px; }
    .summary-table thead th:first-child, .summary-table .qty { width:34px; padding-right:6px; }
    .summary-head { grid-template-columns:96px minmax(0, 1fr); gap:10px; }
    .rv-footer { flex-wrap:wrap; }
}
@media (prefers-reduced-motion:reduce) { .rv-page * { transition:none !important; animation:none !important; scroll-behavior:auto !important; } }
.sv-guide line { stroke-dasharray:4 3; }
.sv-guide rect { fill:var(--rv-card-2); }
.dim-label.is-guide { background:none; box-shadow:none; color:var(--rv-dim); }
.dim-label.is-guide.is-active { background:var(--rv-green); color:var(--rv-on-green); }
