.draft-status{font-size:13px;line-height:1.4;color:var(--secondary);margin:12px 0 16px}
.draft-status[data-error=true]{color:#8b2b13}
.choice-content{display:contents}
.mobile-panel{display:none}
.snap-control{display:flex;gap:10px;align-items:center;min-height:44px;margin-top:16px;font-size:14px}
.snap-control input{width:20px;height:20px;accent-color:var(--gold)}
.selection-tools{position:absolute;z-index:4;bottom:14px;left:20px;right:20px;max-width:660px;margin:auto;padding:10px 14px 12px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 10px 28px rgba(28,25,23,.16)}
.selection-heading{display:flex;align-items:center;gap:10px;min-height:40px}
.selection-badge{display:inline-flex;align-items:center;justify-content:center;flex:0 0 26px;width:26px;height:26px;border-radius:999px;background:var(--gold);color:#fff;font-family:Georgia,serif;font-style:italic;font-weight:700;font-size:15px}
.selection-heading strong{flex:1;font-size:16px;overflow-wrap:anywhere}
.selection-heading button{display:flex;align-items:center;justify-content:center;flex:0 0 40px;height:40px;border:0;background:none;border-radius:8px;cursor:pointer}
.selection-tools p{font-size:13px;font-variant-numeric:tabular-nums;color:var(--secondary);margin:0 0 6px}
.selection-tools .selection-detail{color:var(--text);font-weight:500;margin-bottom:4px}
.selection-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.selection-actions button{flex:1 1 auto;min-height:42px;border:1px solid var(--line);border-radius:8px;background:var(--soft);font-size:13px;padding:6px 10px;cursor:pointer}
.selection-actions button:hover:not(:disabled){border-color:var(--gold);background:var(--paper)}
.selection-actions .selection-primary{flex:1 1 180px;background:var(--gold);border-color:var(--gold);color:#fff;font-weight:600}
.selection-actions .selection-primary:hover:not(:disabled){background:#655424;border-color:#655424;color:#fff}
.room .room-caption{top:16px;gap:2px;z-index:5}
.room #room-dimensions{margin-top:2px}
.room.has-selection .room-tools,.room.has-selection .room-hint{visibility:hidden}

.hotspot-layer{position:absolute;inset:0;pointer-events:none;z-index:2;overflow:hidden}
.furniture-hotspot{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 10px 0 4px;border:1.5px solid rgba(255,255,255,.92);border-radius:999px;background:rgba(28,25,23,.82);color:#fff;font:600 12px/1 var(--sans,system-ui,sans-serif);box-shadow:0 4px 12px rgba(0,0,0,.22);cursor:pointer;transition:transform .15s ease,background-color .15s ease}
.furniture-hotspot:hover,.furniture-hotspot:focus-visible,.furniture-hotspot.is-active{background:var(--gold);transform:translate(-50%,-50%) scale(1.06);outline:none}
.furniture-hotspot .hotspot-i{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:999px;background:rgba(255,255,255,.2);font-family:Georgia,serif;font-style:italic;font-weight:700;font-size:13px}
.furniture-hotspot.is-active .hotspot-i{background:#fff;color:var(--gold)}
.furniture-hotspot .hotspot-label{white-space:nowrap;letter-spacing:.01em}

.room-fan-showcase{display:grid;grid-template-columns:1fr;gap:10px;align-items:center;text-align:center;margin:14px 0 18px;padding:14px;border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(145deg,#faf7f1 0%,#f1ece1 100%)}
.room-fan-cards{position:relative;height:142px;display:flex;align-items:flex-start;justify-content:center;padding-top:4px}
.fan-card{position:absolute;top:8px;width:94px;height:104px;margin:0;padding:4px 4px 18px;background:#fff;border:1px solid rgba(28,25,23,.12);border-radius:8px;box-shadow:0 8px 18px rgba(28,25,23,.14);overflow:hidden;transform-origin:bottom center;transition:transform .25s ease}
.fan-card img{width:100%;height:100%;object-fit:cover;border-radius:4px;display:block}
.fan-card span{position:absolute;left:3px;right:3px;bottom:3px;font-size:8.5px;font-weight:600;color:var(--secondary);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fan-card-left{transform:translateX(-88px) translateY(6px) rotate(-10deg);z-index:1}
.fan-card-left span{padding-right:10px}
.fan-card-center{top:2px;transform:translateY(0) rotate(0deg);z-index:2;width:98px;height:110px}
.fan-card-right{transform:translateX(88px) translateY(6px) rotate(10deg);z-index:1}
.fan-card-right span{padding-left:10px}
.room-fan-showcase:hover .fan-card-left{transform:translateX(-92px) translateY(4px) rotate(-12deg)}
.room-fan-showcase:hover .fan-card-right{transform:translateX(92px) translateY(4px) rotate(12deg)}
.fan-3d-badge{position:absolute;bottom:0;z-index:3;display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:999px;background:var(--ink,#1c1917);color:#fff;font-size:11px;line-height:1.2;box-shadow:0 4px 10px rgba(0,0,0,.22)}
.fan-3d-badge i{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:999px;background:var(--gold);color:#fff;font-family:Georgia,serif;font-style:italic;font-weight:700;font-size:11px}
.room-fan-copy strong{display:block;font-size:14px;line-height:1.35;margin-bottom:4px;color:var(--ink)}
.room-fan-copy p.small{margin:0;font-size:12.5px;line-height:1.45;color:var(--secondary)}

.sample-rooms{margin:0 0 18px}
.sample-rooms h3{font-size:14px;margin:0 0 10px}
.sample-rooms-grid{display:grid;grid-template-columns:1fr;gap:10px}
.sample-room-card{display:grid;grid-template-columns:clamp(88px,30%,112px) minmax(0,1fr);gap:2px 12px;align-items:start;text-align:left;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--paper);cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.sample-room-card:hover,.sample-room-card:focus-visible{border-color:var(--gold);box-shadow:0 6px 16px rgba(28,25,23,.08);transform:translateY(-1px)}
.sample-room-card[aria-pressed=true]{border-color:var(--gold);background:#fbf8f1;box-shadow:0 0 0 1px var(--gold)}
.sample-room-card img{grid-column:1;grid-row:1/span 4;width:100%;height:100%;min-height:92px;max-height:112px;object-fit:cover;border-radius:7px;margin:0}
.sample-room-card>*:not(img){grid-column:2}
.sample-room-meta{font-size:11px;font-weight:600;color:var(--gold);line-height:1.25}
.sample-room-card strong{font-size:13.5px;line-height:1.25;color:var(--ink)}
.sample-room-card span:not(.sample-room-meta){font-size:12px;line-height:1.35;color:var(--secondary)}
.sample-room-cta{margin-top:2px;padding-top:2px;font-style:normal;font-size:12px;font-weight:600;color:var(--gold);text-decoration:underline;text-underline-offset:2px}
#custom-plan-panel{margin-top:14px}

@media(max-width:720px),(max-width:960px) and (max-height:500px) and (orientation:landscape){
  /* One document scroll keeps the bottom reachable with Safari bars or a keyboard. */
  html,body{height:auto;min-height:100%;overflow:visible;scroll-padding-top:114px}
  .masthead{height:60px;min-height:60px;flex-wrap:nowrap;padding:0 14px;gap:6px}
  .masthead img{width:108px}.history-controls button{font-size:13px;min-width:64px}
  .studio{height:auto;min-height:0;display:block;overflow:visible}
  .studio .room,.studio .room.photo-mode{min-height:260px;max-height:none;height:320px!important;height:clamp(260px,44svh,380px)!important;position:relative;top:auto}
  .panel-expanded .studio .room,.panel-expanded .studio .room.photo-mode{height:260px!important}
  .studio .choices{height:auto;min-height:0;padding:0;display:block;border:0;border-radius:16px 16px 0 0;box-shadow:0 -4px 20px rgba(28,25,23,.08);z-index:5;overflow:visible}
  .choice-content{display:block;min-height:0;overflow:visible;padding:0 18px max(28px,env(safe-area-inset-bottom));scroll-padding-top:114px}
  .mobile-panel{display:flex;position:sticky;top:0;z-index:4;align-items:center;justify-content:space-between;gap:8px;width:100%;height:48px;min-height:48px;padding:0 18px;border:0;border-bottom:1px solid var(--line);border-radius:16px 16px 0 0;background:var(--soft);font:inherit;font-size:15px;text-align:left}
  .panel-action{font-size:14px;color:var(--gold);text-decoration:underline;text-underline-offset:3px}
  .choice-content>h1,.choice-content>.intro,.choice-content>p.small{display:none}
  .design-steps{position:sticky;top:0;z-index:3;background:var(--paper);margin:0 -18px 14px;padding:8px 18px;border-bottom:1px solid var(--line);box-shadow:0 -2px 0 var(--soft),0 4px 10px rgba(28,25,23,.05)}
  .choices:has(>.mobile-panel) .design-steps{top:47px}
  .design-steps a{font-size:14px;min-height:44px}
  .draft-status{margin:8px 0 12px}
  .room .room-caption,.room.photo-mode .room-caption{top:8px;left:14px;max-width:calc(100% - 160px)}
  .room-caption span:first-child{display:none}.room-caption span:nth-child(2){font-size:13px}
  .room #room-dimensions{margin-top:2px;font-size:12px}
  .room #place-mode,.room.photo-mode #place-mode{top:8px;right:12px;min-height:44px;font-size:13px;padding:6px 10px}
  .room:not(.photo-mode) #viewport{top:58px;bottom:68px}
  .room .room-tools{bottom:10px;gap:4px;left:8px;right:8px;flex-wrap:nowrap}
  .room .room-tools button,.room .room-tools #fit{font-size:12px;padding:6px 8px;min-height:40px;min-width:0;white-space:nowrap}
  .room:not(.photo-mode) .room-hint{display:none}
  .selection-tools{left:8px;right:8px;bottom:8px;padding:6px 10px 10px}
  .selection-heading strong{font-size:14px}.selection-tools p{font-size:12px;margin-bottom:4px}
  .selection-actions button{font-size:12.5px;padding:5px 6px;min-height:38px}
  .furniture-hotspot{height:26px;padding:0 8px 0 3px;font-size:11px}
  .room.photo-mode .photo-fit{display:none}
  .room.photo-mode .room-hint{font-size:12px;line-height:1.3;min-height:38px}
  .config-fields input,.config-fields select,.designer-section input,.designer-section select,.designer-section textarea{font-size:16px}
  .designer-section,.config-block,#configuration,.choice-content input,.choice-content select,.choice-content textarea,.choice-content button,.choice-content summary,#photo-options label{scroll-margin-top:114px;scroll-margin-bottom:24px}
}
@media(max-width:960px) and (max-height:500px) and (orientation:landscape){
  .masthead{height:52px;min-height:52px}
  .studio .room,.studio .room.photo-mode{height:280px!important}
}
