.wall-preview { margin:1rem 0; }
.wall-preview [hidden] { display:none !important; }
.wall-dialog { --ink:#302b24; --paper:#fbf9f4; --rule:#dcd5c7; position:fixed; inset:0; margin:auto; padding:0; border:0; width:min(1160px,96vw); max-width:100vw; max-height:94dvh; overflow:auto; overscroll-behavior:contain; color:var(--ink); background:var(--paper); font:400 15px/1.45 Inter,Arial,sans-serif; box-shadow:0 20px 100px #100e0c40; }
.wall-dialog::backdrop { background:#161411b8; }
body:has(.wall-dialog[open]) { overflow:hidden; }
.wall-dialog .wall-header { position:relative; display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1.05rem 1.4rem; border-bottom:1px solid var(--rule); background:var(--paper); }
.wall-dialog h2 { margin:.2rem 0 0; font:400 clamp(1.6rem,3vw,2.65rem)/1.04 'Cormorant Garamond',Georgia,serif; color:inherit; overflow-wrap:anywhere; }
.wall-dialog p { margin:0; }
.wall-dialog button,.wall-dialog select { cursor:pointer; }
.wall-eyebrow { font-size:.66rem; letter-spacing:.15em; text-transform:uppercase; font-weight:600; }
.wall-close { flex:none; width:44px; height:44px; border:1px solid var(--rule); border-radius:50%; color:inherit; background:transparent; font:400 1.65rem/1 Arial,sans-serif; }
.wall-layout { display:grid; grid-template-columns:minmax(0,2.25fr) minmax(245px,1fr); }
.wall-picture { display:flex; flex-direction:column; align-items:center; justify-content:center; min-width:0; gap:.75rem; padding:1.1rem; background:#eeeae0; }
.wall-stage { flex:none; position:relative; width:min(100%,calc(62dvh * var(--wall-ratio,1.5))); overflow:hidden; isolation:isolate; background:linear-gradient(108deg,#b3a997,transparent 60%),linear-gradient(to bottom,#e8e1d3 0 81%,#bcae99 81% 82%,#c4ad8f 82%,#dac4a6); }
.wall-stage::before { content:''; display:block; padding-top:calc(100% / var(--wall-ratio,1.5)); pointer-events:none; }
.wall-stage[data-marking=true] { cursor:crosshair; touch-action:pinch-zoom; }
.wall-dialog :focus-visible { outline:2px solid #866733; outline-offset:-2px; }
.wall-room,.wall-photo,.wall-art,.wall-measures { display:block; position:absolute; user-select:none; -webkit-user-select:none; }
.wall-room,.wall-photo { inset:0; width:100%; height:100%; pointer-events:none; }
.wall-art,.wall-measures { transform:translate(-50%,-50%); max-width:none; max-height:none; }
.wall-art { object-fit:contain; box-shadow:1px 3px 6px #21191147; cursor:grab; touch-action:none; outline:var(--rim,0px) solid transparent; }
.wall-art:active { cursor:grabbing; }
.wall-art[data-finish=gold] { outline-color:#a48a53; }
.wall-art[data-finish=wood] { outline-color:#48392d; }
.wall-art[data-finish=white] { outline-color:#faf8ed; }
.wall-measures,.wall-line { pointer-events:none; }
.wall-measures span { position:absolute; color:#fff; background:#28251ff0; padding:3px 7px; white-space:nowrap; font:500 12px/1.25 Arial,sans-serif; border-radius:2px; }
.wall-measures span:first-child { left:50%; bottom:calc(100% + 8px); transform:translateX(-50%); }
.wall-measures span:last-child { left:calc(100% + 8px); top:50%; transform:translateY(-50%); }
.wall-line { position:absolute; inset:0; width:100%; height:100%; stroke:#30271e; stroke-width:2.5; filter:drop-shadow(0 0 1px white); }
.wall-marker,.wall-cursor { position:absolute; box-sizing:border-box; transform:translate(-50%,-50%); pointer-events:none; width:9px; height:9px; border:2px solid white; border-radius:50%; background:#3b3024; box-shadow:0 0 0 1px #30291d; }
.wall-marker { font-size:0; }
.wall-marker::after { position:absolute; left:8px; bottom:5px; padding:.16rem .3rem; border-radius:3px; background:#332e25; color:white; font:600 11px/1 Arial,sans-serif; }
.wall-marker:first-of-type::after { content:'1'; }
.wall-marker:nth-of-type(2)::after { content:'2'; }
.wall-cursor { display:none; width:16px; height:16px; background:transparent; border-style:dashed; }
.wall-stage:focus-visible .wall-cursor { display:block; }
.wall-toolbar { display:flex; width:100%; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.35rem; }
.wall-switch { display:inline-flex; border:1px solid #bab09f; border-radius:2px; overflow:hidden; }
.wall-toolbar button { padding:.45rem .7rem; min-height:42px; border:0; color:var(--ink); background:transparent; font:500 .81rem/1.25 Inter,Arial,sans-serif; }
.wall-switch button[aria-pressed=true],.wall-dim[aria-pressed=true] { background:#373329; color:white; }
.wall-toolbar .wall-dim { border:1px solid #bab09f; border-radius:2px; }
.wall-dialog button:disabled { opacity:.48; cursor:default; }
.wall-options { padding:1.4rem 1.3rem; display:flex; flex-direction:column; gap:.8rem; align-items:stretch; justify-content:center; }
.wall-size { font:400 1.75rem/1.25 Georgia,serif; }
.wall-size small { white-space:nowrap; font:normal .7rem Inter,Arial,sans-serif; color:#625b50; }
.wall-reference,.wall-frame,.wall-calibration label,.wall-help,.wall-status { font-size:.84rem; line-height:1.45; }
.wall-reference,.wall-help,.wall-private { color:#5d564b; }
.wall-status { align-self:flex-start; min-height:1.45em; color:#403b32; }
.wall-personal { padding-top:.8rem; border-top:1px solid var(--rule); }
.wall-upload,.wall-calibration button:not(.wall-link),.wall-dialog select,.wall-dialog input[type=number] { box-sizing:border-box; width:100%; min-height:44px; padding:.62rem .7rem; border:1px solid #a69c88; border-radius:2px; background:white; color:inherit; font:inherit; }
.wall-options .wall-upload,.wall-calibration button:not(.wall-link) { position:relative; display:block; text-align:center; background:#38342a; border-color:#38342a; color:white; cursor:pointer; }
.wall-upload input { opacity:0; position:absolute; inset:0; width:100%; height:100%; cursor:pointer; }
.wall-upload:focus-within { outline:2px solid #866733; outline-offset:2px; }
.wall-help + .wall-upload { margin-top:.65rem; }
.wall-personal .wall-private { margin-top:.3rem; font-size:.73rem; }
.wall-dialog select,.wall-dialog input[type=number] { display:block; margin-top:.2rem; font-size:1rem; }
.wall-calibration { box-sizing:border-box; display:grid; width:100%; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:.4rem .65rem; }
.wall-calibration label { grid-column:1; }
.wall-calibration [data-wall-apply] { grid-column:2; }
.wall-calibration [data-wall-again] { grid-column:1 / -1; justify-self:start; }
.wall-dialog .wall-link { padding:.2rem 0; min-height:40px; align-self:flex-start; border:0; background:transparent; color:#534938; text-align:left; text-decoration:underline; text-underline-offset:3px; font:inherit; font-size:.83rem; }
@media(max-width:720px) {
 .wall-dialog { width:100vw; max-height:96dvh; }
 .wall-layout { display:flex; flex-direction:column; }
 .wall-stage { width:min(100%,calc(48dvh * var(--wall-ratio,1.5))); }
 .wall-picture { gap:.5rem; padding:.65rem .75rem; }
 .wall-options,.wall-dialog .wall-header { padding:.85rem 1rem; }
 .wall-options { gap:.55rem; }
 .wall-toolbar button { min-height:44px; }
.wall-calibration { grid-template-columns:minmax(0,1.5fr) minmax(94px,1fr); }
}
@media(prefers-reduced-motion:no-preference) {
 .wall-dialog[open]::backdrop { animation:wall-backdrop-in .22s ease-out; }
 @keyframes wall-backdrop-in { from { opacity:0; } }
}
.wall-loupe { position:absolute; box-sizing:border-box; z-index:2; width:78px; height:78px; border-radius:50%; background-color:#e6e1d7; background-repeat:no-repeat; box-shadow:inset 0 0 0 2px white,0 2px 8px #201d1866; pointer-events:none; }
.wall-loupe::before,.wall-loupe::after { content:''; position:absolute; top:50%; left:50%; width:16px; height:2px; background:#312a20; box-shadow:0 0 1px white; transform:translate(-50%,-50%); }
.wall-loupe::after { transform:translate(-50%,-50%) rotate(90deg); }
