@font-face{font-family:'Instrument Serif';src:url('/assets/type/InstrumentSerif.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:'DM Sans';src:url('/assets/type/DMSans.ttf') format('truetype');font-weight:100 1000;font-display:swap}
:root{color-scheme:light;--paper:#f9f7f1;--ink:#282d24;--muted:#606456;--line:#d5d3c8;--rust:#a75339;--serif:'Instrument Serif',Georgia,'Times New Roman',serif;font-family:'DM Sans','Helvetica Neue',Arial,sans-serif;color:var(--ink);background:var(--paper);font-size:14px}*{box-sizing:border-box}body{margin:0}button,select,input,textarea,summary{font:inherit;color:inherit}button,summary,a{cursor:pointer}button{background:transparent;border:0;padding:7px 9px}button:hover,summary:hover,a:hover{color:var(--rust)}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--rust);outline-offset:3px}a{color:inherit;text-decoration:none}button,select,textarea,input{border-radius:3px}[hidden]{display:none!important}header{border-bottom:1px solid var(--line)}.mast,main{max-width:1610px;margin:auto;padding-inline:clamp(18px,3.6vw,72px)}.mast{min-height:66px;display:flex;align-items:center;gap:44px}.brand{display:flex;align-items:center;gap:11px;font:600 24px var(--serif);letter-spacing:-1.3px}.monogram{display:grid;place-items:center;width:33px;height:34px;border:1px solid #8b4a36;border-radius:45% 45% 0 0;color:var(--rust);font:italic 27px var(--serif)}nav,.file-actions{display:flex;align-items:center;gap:22px}nav{font-size:13px}nav a{font-weight:600}nav button{padding:0}.file-actions{margin-left:auto;font-size:12px}#save{color:var(--muted)}#save:before,.model-label i,.eyebrow i{content:'';width:7px;height:7px;display:inline-block;background:#65754c;border-radius:50%;margin-right:7px}#project-menu{position:relative}summary{list-style:none}summary::-webkit-details-marker{display:none}#project-menu summary,.library-heading button{border:1px solid var(--line);border-radius:4px;padding:9px 13px}.menu{position:absolute;right:0;top:36px;background:var(--paper);border:1px solid var(--line);width:160px;z-index:5;padding:5px;box-shadow:0 8px 22px #342a1b12}.menu button{width:100%;text-align:left}.intro{display:flex;align-items:flex-end;justify-content:space-between;padding:clamp(22px,3vw,45px) 0 22px}.eyebrow,.model-label{font-size:10px;text-transform:uppercase;font-weight:700;letter-spacing:.15em}.eyebrow{color:#80503c;display:flex;align-items:center;gap:6px}.eyebrow i{width:20px;height:1px;background:var(--rust);border-radius:0;margin-right:2px}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:var(--serif);font-weight:400}h1{font-size:clamp(44px,4.7vw,78px);letter-spacing:-.06em;line-height:1.05;margin-top:6px}h1 span{color:var(--rust)}.spec{font-size:13px;color:var(--muted);padding-bottom:4px}.spec span{margin-inline:10px;color:#aaa797}.spec strong{font-weight:600;color:var(--ink)}.workspace{display:grid;grid-template-columns:minmax(0,1fr) clamp(274px,23vw,356px);gap:20px;align-items:start}.model-column{min-width:0}.stage{position:relative;background:#ece9e2;border:1px solid #d4d0c4;border-radius:7px;overflow:hidden;height:clamp(398px,51vh,660px)}#viewport{position:absolute;inset:0}.stage-top,.stage-bottom{position:absolute;left:15px;right:15px;display:flex;align-items:center;justify-content:space-between;pointer-events:none}.stage-top{top:15px}.stage-bottom{bottom:15px}.stage-top>*,.stage-bottom>*{pointer-events:auto}.model-label{background:#fbfaf5e8;padding:9px 11px;border-radius:3px;color:#474d42}.model-label i{width:6px;height:6px}.mode,.zoom,#walk-pad{display:flex;gap:2px;background:#fbfaf5f2;border:1px solid #d2cec2;border-radius:5px;padding:3px}.mode button,.zoom button,#walk-pad button{font-size:12px;font-weight:600;padding:7px 10px}.mode button[aria-pressed=true]{background:var(--ink);color:var(--paper)}.zoom{margin-left:auto}.caption{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:var(--muted);padding:9px 1px}aside{border:1px solid var(--line);border-radius:7px;background:#fffef9;overflow:hidden;min-width:0}.aside-head,.library-heading,.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.aside-head{padding:15px 16px 10px}.aside-head h2{font-size:28px;letter-spacing:-.05em}.history{display:flex}.history button{font-size:20px;padding:3px 6px}.tabs{display:flex;border-bottom:1px solid var(--line);padding:0 14px;gap:9px}.tabs button{font-size:12px;font-weight:600;border-radius:0;padding:10px 4px;color:var(--muted)}.tabs button[aria-pressed=true]{color:var(--rust);box-shadow:inset 0 -2px var(--rust)}.desk-body{padding:15px 17px;overflow:auto;max-height:clamp(320px,calc(51vh - 85px),575px)}.field{display:block;font-size:11px;letter-spacing:.02em;color:var(--muted);font-weight:600;margin-bottom:12px}.field select,.field textarea,.field input{display:block;width:100%;padding:8px;margin-top:5px;background:#fbfaf5;border:1px solid var(--line);color:var(--ink);font-size:13px}.field textarea{resize:vertical}h3{font-size:20px;letter-spacing:-.035em;margin:13px 0 8px}.material{display:flex;gap:10px;align-items:center;padding:6px 0;border-bottom:1px solid #e7e4dc;cursor:pointer;font-size:12px}.material input,.color-input{width:27px;height:25px;padding:0;border:0;background:transparent;cursor:pointer}.material input::-webkit-color-swatch-wrapper{padding:1px}.material input::-webkit-color-swatch{border:1px solid #0002;border-radius:3px}.material small{margin-left:auto;font:10px ui-monospace,monospace;color:var(--muted)}.part{font-size:12px;margin-top:14px}.part summary{font-weight:600;display:flex;justify-content:space-between}.part summary:after{content:'+'}.part[open] summary:after{content:'−'}.part label{display:block;margin:10px 0}.primary{background:var(--ink);color:white;padding:9px 12px;margin-bottom:10px}.primary:hover{background:#424a39;color:white}.note,#ref-caption{font-size:12px;line-height:1.5;color:var(--muted);margin-bottom:10px}.library{margin:21px 0 36px;border-top:1px solid var(--line);padding-top:21px}.library-heading{margin-bottom:13px}.library-heading h2{font-size:clamp(29px,3vw,42px);letter-spacing:-.055em;margin-top:4px}.library-heading button{font-size:12px}#cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.card{min-width:0}.card-photo{display:block;width:100%;padding:0;position:relative;background:#dfd9cb;overflow:hidden;border-radius:4px}.card-photo img{width:100%;height:clamp(95px,9.8vw,165px);object-fit:cover;display:block;transition:transform .3s}.card-photo:hover img{transform:scale(1.025)}.card-active{position:absolute;bottom:8px;left:8px;background:var(--ink);color:white;padding:4px 7px;border-radius:2px;font-size:10px}.card-main{display:flex;justify-content:space-between;align-items:center;gap:5px;padding:9px 0 4px}.card-main strong{font:400 clamp(17px,1.45vw,25px) var(--serif);letter-spacing:-.045em}.swatches{display:flex}.swatches i{width:10px;height:10px;border-radius:50%;border:1px solid #0002;margin-left:1px}.card-foot{display:flex;justify-content:space-between;gap:5px;align-items:center;font-size:11px;color:var(--muted)}.card-foot button{font-size:11px;padding:3px 0;color:var(--rust)}#notice,#save-error,#placement{background:#fff6e9;border:1px solid #d0a58d;padding:10px 13px;border-radius:4px;font-size:13px}#placement{position:absolute;top:64px;left:15px;right:15px}#placement button,.part button,#save-error button,#ref-full{color:var(--rust);text-decoration:underline}#notice{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:7;box-shadow:0 3px 15px #0001}#samples{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:10px}#samples button{font-size:11px;border:1px solid var(--line);border-radius:4px}.dimensions{display:grid;grid-template-columns:1fr 1fr;gap:2px 8px}#proposal ol{padding-left:20px;font-size:12px;line-height:1.5}dialog{width:min(840px,94vw);border:1px solid var(--line);border-radius:6px;padding:20px;background:var(--paper);max-height:90vh;color:var(--ink)}dialog::backdrop{background:#26282099}.dialog-head{margin-bottom:12px}.dialog-head h2{font-size:30px}.dialog-head button{font-size:25px}#ref-image{display:block;width:100%;margin-top:12px}#ref-full{font-size:12px}
@media(max-width:850px){.mast{gap:20px}nav{display:none}.workspace{grid-template-columns:minmax(0,1fr) 254px;gap:11px}.caption span:last-child{display:none}.card-main{flex-wrap:wrap}}
@media(max-width:680px){.mast{min-height:54px;gap:8px}.brand{font-size:20px;gap:7px}.monogram{width:25px;height:28px;font-size:22px}.file-actions{gap:8px;font-size:10px}#project-menu summary{padding:7px}.intro{display:block;padding:21px 0 13px}.spec{margin-top:8px;font-size:12px}.workspace{display:flex;flex-direction:column;gap:10px}.model-column,aside{width:100%}.stage{height:clamp(330px,49svh,480px)}.stage-top,.stage-bottom{left:9px;right:9px}.stage-top{top:9px}.stage-bottom{bottom:9px}.desk-body{max-height:none}.aside-head{padding:12px 16px 3px}.library{margin-top:18px}#cards{grid-template-columns:repeat(2,minmax(0,1fr))}.card-photo img{height:105px}.library-heading button{max-width:110px}.mode button,.zoom button,#walk-pad button{min-height:34px}.card-foot{flex-wrap:wrap}.material{min-height:39px}}

h1{font-size:clamp(53px,5.35vw,88px);letter-spacing:-.044em}
h2,h3,.brand{letter-spacing:-.025em}
.stage:fullscreen,.stage.expanded{width:100vw;height:100dvh;max-height:none;border:none;border-radius:0}
.stage.expanded{position:fixed;inset:0;z-index:100}
#expand{font-family:Arial,sans-serif;font-size:17px;padding:3px 10px;border-left:1px solid var(--line);border-radius:0}

.hdb-ref{font-size:12px;line-height:1.6;color:var(--muted);margin-top:10px}.hdb-ref a{color:var(--rust);text-decoration:underline}

#finish-types{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}#finish-types .field{min-width:0}.light-level{display:grid;grid-template-columns:1fr auto;align-items:center;gap:5px;margin:12px 0;font-size:12px}.light-level output{color:var(--muted);font-variant-numeric:tabular-nums}.light-level input{grid-column:1/-1;width:100%;accent-color:var(--rust)}

.tour-select{pointer-events:auto;display:flex;align-items:center;gap:7px;max-width:46%;background:#f9f7efeb;padding:5px 8px;border:1px solid #fff7;border-radius:4px;color:#34372c;font-size:12px}.tour-select span{font-size:10px;letter-spacing:.045em;color:#666759;white-space:nowrap}.tour-select select{max-width:100%;min-width:0;cursor:pointer;background:transparent;border:0;color:inherit;font:600 12px var(--sans,inherit)}.caption{align-items:baseline}.source-shortcut{flex:none;padding:0;color:var(--rust);font-size:11px}.light-presets{display:flex;gap:6px;margin:10px 0}.part .light-presets button{text-decoration:none;background:#eeece1;border:1px solid #ccc9bb;color:var(--ink);border-radius:20px;padding:4px 10px;font-size:11px}#walk-pad button{touch-action:none;user-select:none;-webkit-user-select:none}#walk-pad button:active{background:#e4deca}@media(max-width:400px){.tour-select span{display:none}.source-shortcut{white-space:normal;max-width:88px;text-align:right}}

#view-loading{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;background:#d5c5ae url('/assets/foyer-preview.webp') center/cover no-repeat}#view-loading span{border-radius:4px;padding:9px 14px;background:#f9f7f1f2;box-shadow:0 2px 18px #30241e26;font-size:12px}.tour-select select{font-family:inherit;font-size:12px;font-weight:600}

.stage-bottom { align-items: flex-end; }
#walk-pad {
  display: grid;
  grid-template-columns: 48px 56px 48px;
  gap: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
}
#walk-pad button, #render-options summary {
  border: 1px solid #e5e0d2;
  background: #fbfaf5f2;
  box-shadow: 0 2px 8px #291e122b;
  color: var(--ink);
}
#walk-pad button {
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 6px;
  pointer-events: auto;
}
#walk-pad b { font: 23px/1 Arial, sans-serif; }
#walk-pad .forward {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  background: #32392eee;
  border-color: #f2eedb99;
  color: white;
  font-size: 11px;
}
#walk-pad .turn { background: #fbfaf5db; }
#walk-pad button[data-active], #walk-pad button:active {
  background: #924830;
  color: #fff;
}
#walk-pad button:focus-visible { outline: 3px solid #fff; box-shadow: 0 0 0 5px #974e34; }
.view-tools { margin-left: auto; display: grid; justify-items: end; gap: 6px; }
#render-options { position: relative; }
#render-options summary { padding: 7px 9px; border-radius: 5px; font-size: 12px; font-weight: 600; }
#render-options summary span:last-child { margin-left: 2px; }
.render-panel {
  position: absolute;
  z-index: 3;
  bottom: calc(100% + 6px);
  right: 0;
  width: 198px;
  max-width: calc(100vw - 54px);
  background: #fbfaf6;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  box-shadow: 0 5px 20px #302a1930;
}
.render-panel fieldset { margin: 0; border: 0; padding: 0; }
.render-panel legend { font-weight: 600; font-size: 13px; margin-bottom: 3px; }
.render-panel label { display: flex; align-items: center; gap: 8px; min-height: 32px; font-size: 13px; cursor: pointer; }
.render-panel input { accent-color: var(--rust); margin: 0; }
.render-panel p, .render-panel small { display: block; color: var(--muted); font-size: 11px; line-height: 1.4; }
.render-panel p { margin: 4px 0 10px; }
#capture-4k { width: 100%; background: var(--ink); color: #fff; padding: 8px; font-size: 12px; }
#capture-status { margin-top: 5px; }
@media (max-width: 400px) {
  .stage-bottom { left: 5px; right: 5px; }
  .zoom button, #expand { padding-inline: 5px; }
  #render-options summary { padding-inline: 6px; }
}

.mobile-workspace-nav { display: none; }

#capture-download { display: inline-flex; align-items: center; min-height: 32px; color: var(--rust); font-size: 12px; text-decoration: underline; }

#destinations { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#destinations button { position: absolute; top: 0; left: 0; pointer-events: auto; display: flex; align-items: center; min-height: 44px; gap: 7px; padding: 5px 11px 5px 6px; border-radius: 25px; background: #252c23e8; color: #fffefa; border: 1px solid #fff9; box-shadow: 0 2px 10px #0004; font-size: 12px; white-space: nowrap; }
#destinations b { background: #f6f0dc; color: #394132; border-radius: 50%; display: grid; place-items: center; width: 26px; height: 26px; font-size: 15px; transform: rotate(-25deg); }
#destinations button[data-offscreen] b { transform: none; }
#location-pin { position: absolute; top: 50%; left: 50%; pointer-events: none; width: 30px; height: 30px; transform: translate(-50%,-50%); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px #993f29; background: #b849242b; }
#location-pin span { position: absolute; top: 32px; left: 50%; transform: translateX(-50%); padding: 4px 8px; text-align: center; width: max-content; max-width: 195px; background: #fffdf4; border: 1px solid #914630; color: #512a1d; font-size: 12px; border-radius: 3px; }
#fitting-list { display: grid; margin-bottom: 10px; }
#fitting-list h4 { margin: 12px 0 2px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
#fitting-list button { display: flex; align-items: center; justify-content: space-between; gap: 7px; width: 100%; text-align: left; min-height: 44px; padding: 6px 3px; border-bottom: 1px solid var(--line); font-size: 13px; }
#fitting-list button span { color: var(--rust); }
#fitting-dialog { width: min(720px,96vw); }
#fitting-view { width: 100%; height: clamp(150px,42dvh,400px); border-radius: 5px; overflow: hidden; background: #d4d0c5; }
.detail-controls, .detail-actions { display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.detail-controls button, .detail-actions button, #detail-download { min-height:44px; min-width:44px; }
.detail-controls span, #fitting-source, #detail-status { color: var(--muted); font-size:12px; line-height:1.5; }
#fitting-info { font-size:13px; font-weight:600; margin:5px 0; }
#fitting-source { margin-bottom:12px; }
.detail-actions button { background: #e8e7dc; font-size:13px; }
#fitting-capture { background:var(--ink); color:white; }
#detail-download { color:var(--rust); text-decoration:underline; }
.render-panel label.capture-frame { display: grid; gap: 3px; margin: 7px 0; font-size: 12px; }
.capture-frame select { width: 100%; min-height: 36px; background: #fffef9; border: 1px solid var(--line); }
@media (pointer: coarse) { .capture-frame select, #capture-download { min-height: 44px; } }
#go-room { min-width: 30px; min-height: 28px; padding: 0 4px; font-size: 15px; border-left: 1px solid #d4d0c2; border-radius: 0; }
@media (pointer: coarse) { #go-room { min-width: 44px; min-height: 44px; } }

/* The image has its own surface. Normal camera controls occupy the rails
   outside it, so a finger can start a gesture anywhere on the floor. */
.stage { height: auto; display: flex; flex-direction: column; background: var(--paper); }
.stage .scene-image { position: relative; flex: none; min-width: 0; height: clamp(360px,49vh,635px); overflow: hidden; background: #d5c5ae; }
.stage .stage-top, .stage .stage-bottom {
  position: relative; inset: auto; display: flex; flex: none; align-items: center;
  gap: 8px; justify-content: space-between; pointer-events: auto; background: #f8f7f1; padding: 4px 8px;
}
.stage .stage-top { border-bottom: 1px solid var(--line); }
.stage .stage-bottom { border-top: 1px solid var(--line); }
.stage .view-tools { display: flex; align-items: center; gap: 8px; }
.stage #render-options { position: relative; }
.stage .render-panel { position: absolute; top: auto; bottom: calc(100% + 5px); right: 0; width: 208px; max-height: min(48dvh,350px); overflow: auto; z-index: 5; }
.stage #render-options summary, #walk-tools-toggle, .stage #expand { border: 1px solid #d4d1c4; border-radius: 4px; background: #fffdf8; color: var(--ink); box-shadow: none; font-size: 12px; font-weight: 600; min-height: 32px; }
.stage #expand { font-size: 17px; min-width: 36px; }
#walk-tools-toggle[aria-expanded=true] { background: #363c30; color: white; }
#walk-tools-panel { flex: none; display: flex; justify-content: space-between; gap: 6px; align-items: center; padding: 6px 9px; background: #eeece3; border-top: 1px solid var(--line); }
.walk-tools-secondary { display: grid; justify-items: end; gap: 3px; margin-left: auto; }
#arrows-choice { display: flex; align-items: center; gap: 6px; min-height: 36px; cursor: pointer; font-size: 12px; }
#arrows-choice input { accent-color: var(--rust); }
.stage:fullscreen, .stage.expanded { height: 100dvh; }
.stage:is(:fullscreen,.expanded) .scene-image { flex: 1 1 auto; min-height: 0; height: 0; }
#tap-marker { position:absolute; transform:translate(-50%,-50%) scaleY(.56); width:34px; height:34px; border:3px solid #fffdf2; border-radius:50%; background:#657d6040; box-shadow:0 0 0 2px #405a46b3; pointer-events:none; }
#tap-marker.blocked { border-color: #ffe3d4; background:#9c503d73; box-shadow:0 0 0 2px #844635; }
#cycle-exit { min-height: 36px; color: var(--rust); text-decoration: underline; font-size: 12px; }
@media (pointer: coarse) { #cycle-exit { min-height: 44px; } #fitting-list h4 { font-size: 12px; color:#4f5146; } .field { font-size:13px; } }

#view-loading>div { display: grid; justify-items: center; gap: 8px; padding: 10px; text-align: center; }
#fallback-4k { pointer-events: auto; background: var(--paper); padding: 9px 14px; color: var(--rust); text-decoration: underline; border-radius: 4px; }
