:root {
  font-family: "Instrument Sans", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --ink: #252623; --soft: #666964; --line: #e6e7e2; --tint: #f2f3ef; --board: #f7f7f5;
  --accent: #343832; --panel: #fff; color: var(--ink); background: var(--board);
  font-size: 13px; font-synthesis: none;
}
* { box-sizing: border-box }
body,h1,h2,h3,p { margin: 0 }
button,input,select { font: inherit; color: inherit }
button { border: 0; background: transparent; cursor: pointer; padding: 0 }
button:disabled { opacity: .45; cursor: default }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid #50745d; outline-offset: 2px }
button:not(:disabled):hover { background-color: var(--tint) }
[hidden] { display: none !important }
.icons { position:absolute; width:0; height:0 }
svg { width:18px; height:18px; vertical-align:middle; flex:none; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round }
h2,h3 { font-size:14px; font-weight:650 }
small,.note { color:var(--soft); font-size:11px; line-height:1.65 }
input,select { min-width:0; border:1px solid var(--line); border-radius:7px; padding:7px 8px; background:#fbfbfa }
input[type=checkbox] { margin:0; accent-color:var(--accent) }
#studio {
  height:100dvh; display:grid; grid-template-columns:clamp(214px,18vw,272px) minmax(0,1fr) clamp(208px,16.8vw,252px);
  padding:10px; gap:8px; overflow:hidden;
}
.tool-sidebar,.inspector {
  display:flex; flex-direction:column; min-width:0; min-height:0; overflow:hidden; background:var(--panel);
  border:1px solid var(--line); border-radius:17px; box-shadow:0 3px 14px #23281d05;
}
.shelf-scroll,.inspector-body { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#d2d4cc transparent }
.project-head { padding:17px 16px 13px; border-bottom:1px solid var(--line) }
.project-mark,.session,.section-title,#swap-view,.catalog-title,.original-link,.ikea-pages { display:flex; align-items:center; justify-content:space-between; gap:6px }
.project-mark>svg { width:27px; height:27px; stroke-width:1.9 }
.status { font-size:10px; color:var(--soft) }
.status:before { content:""; width:6px; height:6px; background:#b5914c; display:inline-block; margin-right:5px; border-radius:50% }
.status[data-live=true]:before { background:#678b6b }
.project-head h1 { font-size:21px; letter-spacing:-.035em; margin-top:10px }
.project-head p { margin-top:3px; font-size:12px; color:var(--soft) }
.task-rail,.inspector-tabs { display:flex; background:#f0f1ed; padding:3px; border:1px solid #e4e5df; border-radius:9px }
.task-rail { margin:12px; flex:none }
.task-rail button,.inspector-tabs button { flex:1; min-height:29px; border-radius:6px; color:var(--soft); font-size:12px }
.task-rail [aria-expanded=true],.inspector-tabs [aria-pressed=true] { background:#fff; color:var(--ink); font-weight:650; box-shadow:0 1px 4px #20251e1c }
.toolbox { padding:0 13px 14px }
#upload-furniture { display:flex; align-items:center; justify-content:center; gap:7px; border-radius:8px; width:100%; padding:8px; background:#30332e; color:white; font-weight:600 }
#upload-furniture:hover,.primary:hover,#join-button:hover { background:#464c43 }
#upload-furniture span { font-size:17px; line-height:1 }
.toolbox h3 { margin:11px 0 8px }
.builtin-heading { font-size:11px; color:var(--soft) }
.catalog-list,.tool-grid,.ikea-grid { display:grid; gap:8px; grid-template-columns:repeat(2,minmax(0,1fr)) }
.catalog-list { grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px }
.catalog-list button,.tool-grid button,.ikea-grid button { min-width:0; border-radius:8px }
.product-photo { display:grid; place-items:center; aspect-ratio:1.6; border-radius:7px; overflow:hidden; background:var(--tint) }
.product-photo img { width:100%; height:100%; object-fit:cover }
.product-photo svg { width:68%; height:82% }
.product-photo img:not([hidden])+svg,.product-name small { display:none }
.product-name b { display:block; font-size:11px; font-weight:500; margin:4px 0 }
.tool-grid button { background:var(--tint); display:grid; place-items:center; padding:9px; gap:4px; font-size:12px }
.tool-grid svg { width:48px; height:40px }
.tool-grid [aria-pressed=true],.catalog-list [aria-pressed=true],.ikea-grid [aria-pressed=true] { outline:2px solid var(--accent); outline-offset:-2px }
#ikea-shelf { border-top:1px solid var(--line); margin-top:13px; padding-top:13px }
.catalog-title { align-items:baseline; flex-wrap:wrap }
.catalog-title h3 { margin:0; font-size:15px }
#ikea-count { font-size:10px; color:var(--soft); font-variant-numeric:tabular-nums }
.catalog-filters { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:5px; margin:9px 0 }
.search-field { display:flex; align-items:center; gap:5px; border-radius:7px; padding:0 7px; background:var(--tint) }
.search-field svg { width:13px; height:13px; color:var(--soft) }
.search-field input { padding:7px 0; background:transparent; border:0; width:100%; font-size:11px }
.category-field select { width:74px; height:100%; padding:4px; font-size:11px }
.ikea-ready { display:flex; align-items:center; gap:6px; color:var(--soft); font-size:11px; margin:8px 0 11px }
.ikea-grid button { border:1px solid var(--line); overflow:hidden; display:flex; flex-direction:column; text-align:left; padding:0 7px 7px; background:white; align-items:stretch }
.ikea-grid img { width:calc(100% + 14px); margin:0 -7px 5px; aspect-ratio:1.45; object-fit:contain; padding:4px; background:#fff; mix-blend-mode:multiply }
.ikea-grid b,.ikea-grid small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.ikea-grid b { font-size:12px; font-weight:650 }
.ikea-grid small { font-size:10px }
.product-measure { display:block; font-weight:550; font-size:11px; font-variant-numeric:tabular-nums; margin:2px 0 }
.ikea-grid span { align-self:flex-start; margin-top:auto; padding-top:4px; color:#576752; font-size:10px }
.ikea-pages { font-size:11px; margin-top:9px }
.ikea-pages button,#uploaded-list button { padding:5px }
#upload-notice,#ikea-notice,#uploaded-library { font-size:11px; color:var(--soft); margin:6px 0 }
#upload-notice:empty,#ikea-notice:empty { display:none }
#uploaded-list { display:grid; max-height:150px; overflow:auto }
.original-link { flex:none; justify-content:flex-start; padding:12px 15px; border-top:1px solid var(--line); color:var(--soft); font-size:12px }
.original-link span { margin-left:auto }
.original-link[aria-pressed=true] { background:var(--tint); color:var(--ink) }

#canvas-area { position:relative; min-width:0; min-height:0; overflow:hidden; background:var(--board); touch-action:none }
canvas { display:block; width:100%; height:100%; touch-action:none; cursor:grab }
canvas:active,#canvas-area[data-gesture=move]>canvas { cursor:grabbing }
#canvas-area:not([data-tool=select]) canvas { cursor:crosshair }
#canvas-area[data-tool=hammer] canvas { cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24'%3E%3Cpath d='m15 3 6 6-3 3-2-2-3 3-2-2 3-3-2-2zM11 11l2 2-7 8-3-3z' fill='%23c69b70' stroke='%23323240'/%3E%3C/svg%3E") 21 5,crosshair }
.canvas-bar,.active-tool,#wall-settings { background:#fffffff5; border:1px solid var(--line); box-shadow:0 2px 5px #292d2308,0 5px 16px #292d2307; border-radius:12px }
.canvas-bar { position:absolute; z-index:5; top:2px; left:50%; transform:translateX(-50%); display:flex; align-items:center; gap:3px; padding:5px; white-space:nowrap }
.canvas-bar button,.bar-group,.camera-tools,.active-tool { display:flex; align-items:center; justify-content:center }
.canvas-bar button { min-width:32px; min-height:32px; padding:0 7px; gap:5px; border-radius:7px; font-size:12px; font-weight:550 }
.canvas-bar svg { width:16px; height:16px }
.bar-group { padding-left:4px; margin-left:1px; gap:2px; border-left:1px solid var(--line) }
.canvas-bar [aria-pressed=true],.camera-tools [aria-pressed=true] { background:#eceee8; box-shadow:inset 0 0 0 1px #dedfd8 }
.canvas-bar .zoom button { font-size:17px }
#export-cad { background:#e6e8e2; margin-left:2px; padding:0 10px }
.build-dock,#hint,#history-banner,#original-banner { position:absolute; left:50%; transform:translateX(-50%) }
.build-dock { bottom:12px; z-index:4; width:max-content; max-width:96%; display:grid; justify-items:center; gap:5px }
.active-tool { gap:9px; padding:4px 6px 4px 12px; font-size:12px }
.active-tool button { padding:6px; border-radius:6px }
kbd { font:10px ui-monospace,monospace; color:var(--soft); background:#ededeb; padding:2px 4px; border-radius:3px }
#wall-settings { margin:0; display:flex; flex-wrap:wrap; justify-content:center; max-width:100%; gap:6px; padding:6px 9px; font-size:11px }
#wall-settings legend { background:white; border-radius:3px }
#wall-settings input { width:60px; padding:4px }
#hint { bottom:12px; z-index:2; max-width:95%; width:max-content; pointer-events:none; padding:5px 10px; font-size:11px; text-align:center; line-height:1.6; color:var(--soft); background:#ffffffe6; border:1px solid var(--line); border-radius:8px }
#hint:empty { display:none }
#canvas-area:not([data-tool=select]) #hint { top:53px; bottom:auto }
#hint[data-error=true] { color:#854435; background:#fff2ed }
#turn-handle,#clearance { position:absolute; z-index:3; background:#394438; color:white; font-size:11px; border-radius:20px; padding:4px 9px }
#turn-handle { transform:translate(-50%,-100%); display:flex; align-items:center; gap:4px; cursor:grab; touch-action:none; user-select:none }
#turn-handle:hover { background:#424f40 }
#turn-handle b { font-size:17px }
#canvas-area[data-gesture=turn] #turn-handle { min-width:46px; justify-content:center; cursor:grabbing }
#rotation-pivot { position:absolute; width:9px; height:9px; border:2px solid white; border-radius:50%; background:var(--accent); box-shadow:0 0 0 1px var(--accent); transform:translate(-50%,-50%); pointer-events:none; z-index:2 }
#clearance { transform:translate(-50%,-125%); white-space:nowrap; pointer-events:none }
#wait-scene { position:absolute; top:48%; width:100%; text-align:center; color:var(--soft) }
#original-banner,#history-banner { top:54px; z-index:4; background:#32372f; color:white; padding:8px 10px; border-radius:8px; font-size:12px; width:max-content; max-width:95% }
#history-banner button { color:white; margin-left:6px; text-decoration:underline }
.plan-dimension { position:absolute; left:0; top:0; border:1px solid #c3cedd; background:#faffffed; border-radius:4px; font-size:10px; line-height:15px; white-space:nowrap; padding:0 3px; color:#39576c }
.plan-dimension[data-group=room] { pointer-events:none; color:#38565c; background:none; border:0; box-shadow:none; font-size:12px; font-weight:500; line-height:1; padding:0; font-variant-numeric:tabular-nums }
.plan-dimension[data-group=measure] { color:#86552d; background:#fff6e6 }
.plan-dimension[data-group=furniture],.plan-dimension[data-group=wall] { color:#38614c; background:#f3fbf2 }
.plan-dimension.chosen { outline:2px solid var(--accent) }
#canvas-area:not([data-tool=select]) .plan-dimension { pointer-events:none }

.inspector-head { border-bottom:1px solid var(--line); flex:none }
.session { padding:10px 12px; border-bottom:1px solid var(--line) }
.session button,#avatars { display:inline-flex; align-items:center; gap:5px }
.session button { font-size:12px; min-height:29px; border-radius:6px }
#change-name { background:#f0f1ed; padding:4px 9px; font-size:11px }
#avatars { gap:0; padding-left:3px }
.avatar { display:inline-grid; place-items:center; margin-left:-3px; width:24px; height:24px; border:2px solid white; border-radius:50%; background:#e6b789; color:#34342e; font:600 11px system-ui }
.avatar[data-color="1"] { background:#badac7 }.avatar[data-color="2"] { background:#d3bcea }.avatar[data-color="3"] { background:#eab5b0 }
#roster { margin:0; position:fixed; inset:60px 18px auto auto; max-height:55vh; overflow:auto; border:1px solid var(--line); border-radius:12px; padding:16px; background:white; box-shadow:0 10px 36px #25282124 }
#members { padding:0; margin:8px 0 0; list-style:none }
#members li { display:flex; align-items:center; gap:6px; padding:3px }
.inspector-tabs { margin:10px 12px }
.inspector-body>section,.footnote { padding:14px; border-bottom:1px solid var(--line) }
#swap-view { width:100%; margin-bottom:9px }
#swap-view span,.section-title button { font-size:11px; color:var(--soft) }
#mini-canvas { position:relative; height:clamp(100px,15vh,155px); overflow:hidden; border:1px solid var(--line); border-radius:9px; background:var(--tint) }
.room-pin { position:absolute; transform:translate(-50%,-50%); width:19px; height:19px; padding:0; border:1px solid white; border-radius:50%; background:#526451; color:white; font:600 11px/17px sans-serif }
#rooms { display:grid; grid-template-columns:1fr 1fr; gap:4px; margin:7px 0 }
#rooms button,.camera-tools button { font-size:11px; padding:5px 6px; border-radius:5px; color:#555950; text-align:left; background:#f4f5f1 }
#rooms [aria-pressed=true],.room-pin[aria-pressed=true] { color:white; background:#3d473a }
.camera-tools { justify-content:space-between; padding-top:5px }
.camera-tools button { background:transparent }
#no-selection,#item-size,.source-note,.history .note,#dim-detail,#history-status { margin-top:7px }
#item-name { display:block; margin-top:10px; font-size:17px }
#item-size { color:var(--soft); font-size:12px; margin-bottom:12px }
#param-fields,#dim-groups { display:grid; grid-template-columns:1fr 1fr; gap:6px; margin-top:7px }
#param-fields label { display:grid; gap:3px; color:var(--soft); font-size:11px }
#param-fields input { width:100%; font:12px system-ui; font-variant-numeric:tabular-nums }
.item-actions button,#precision .primary { width:100%; padding:7px; margin-top:8px; border-radius:7px }
.item-actions button { background:#f5f2f1; color:#80584f }
details,summary,#dim-groups label { font-size:11px; color:var(--soft) }
summary { cursor:pointer }
#data-details { margin-top:8px }
#dim-groups label { display:flex; align-items:center; gap:4px }
#data-search { width:100%; font-size:11px; margin:7px 0 }
#data-index { max-height:200px; overflow:auto }
#data-index button { display:block; width:100%; text-align:left; padding:6px; border-bottom:1px solid var(--line); font-size:12px }
#events,#version-list { margin:9px 0 0; padding:0; list-style:none }
.history li,#version-list button { display:grid; grid-template-columns:auto 1fr; text-align:left; gap:2px 6px; border-top:1px solid var(--line); padding:8px 0; font-size:12px }
.history em,#version-list em { grid-row:span 2; align-self:start; background:var(--tint); color:var(--soft); border-radius:4px; padding:3px; font:10px ui-monospace,monospace }
.history small,#version-list small { grid-column:2; font-size:10px }
.undone { text-decoration:line-through; color:var(--soft) }
.footnote { font-size:10px; border:0 }
#version-list button { width:100%; border-radius:6px; padding:8px 5px }
#version-list [aria-pressed=true] { background:var(--tint) }
#history-status { font-size:12px; color:var(--soft) }
.restore-foot { position:sticky; bottom:0; padding:8px 0; background:white }
.restore-foot button { width:100% }
.browsing-history .inspector-body>:not(#history-browser) { display:none }
.primary,#join-button { background:var(--accent); color:white; border-radius:8px; font-weight:600; padding:9px 12px }
dialog { border:1px solid var(--line); border-radius:17px; color:var(--ink); padding:24px; max-width:calc(100vw - 30px); width:390px; box-shadow:0 22px 85px #22282032 }
dialog::backdrop { background:#32372f55 }
dialog p { font-size:13px; line-height:1.65; color:var(--soft); margin:9px 0 }
dialog label { display:grid; gap:6px; font-size:12px; margin:14px 0 }
.dialog-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:16px }
.dialog-actions button { padding:8px 14px }
.join-art { height:152px; background:#d2d3cf url('/studio-cover.jpg') center 47%/cover; margin:-24px -24px 20px }
#join h1 { font-size:25px } #join-button { width:100% } #join-error { color:#98432f }
.mobile-switch { display:none }
@media(max-width:980px) and (min-width:761px) {
  #studio { grid-template-columns:195px minmax(0,1fr) 185px; gap:4px; padding:6px }
  .canvas-bar { gap:1px; padding:4px }.canvas-bar button { min-width:26px; padding:0 4px }
  .toolbox,.inspector-body>section { padding-left:10px; padding-right:10px }
}
@media(max-width:760px) {
  #studio { grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,56fr) auto minmax(0,44fr); padding:5px; gap:4px }
  #canvas-area { grid-row:1; grid-column:1 }
  .canvas-bar { top:1px; gap:1px }
  .canvas-bar button { min-width:31px; min-height:33px; padding:0 5px }
  .mobile-switch { grid-row:2; display:flex; align-items:center; gap:4px; padding:3px 7px }
  .mobile-switch strong { flex:1; font-size:14px }
  .mobile-switch button { padding:6px 11px; border-radius:7px; font-size:12px }
  .mobile-switch [aria-pressed=true] { background:white; box-shadow:inset 0 0 0 1px var(--line) }
  .tool-sidebar,.inspector { grid-row:3; grid-column:1; border-radius:12px }
  #studio[data-mobile-panel=library] .inspector,#studio[data-mobile-panel=inspector] .tool-sidebar { display:none }
  .project-head { display:none }
  .task-rail { margin:5px 9px }.task-rail button { min-height:26px }
  .original-link { padding:6px 12px }
  .product-photo { aspect-ratio:2.8 }
  .session { padding:4px 10px }.inspector-tabs { margin:4px 9px }
  #roster { inset:auto 14px 39vh auto }
  #hint { bottom:5px; line-height:1.4 }
  .build-dock { bottom:6px }
}
@media(max-width:350px) {
  .canvas-bar { padding:3px; gap:1px }
  .canvas-bar button { min-width:28px; padding:0 4px }
  .bar-group { padding-left:2px; margin-left:0 }
  #export-cad { padding:0 6px }
  .canvas-bar svg { width:14px }.views svg { display:none }
}


/* Desktop editor */
.splitter { display:none }
@media(min-width:761px){
  #studio { grid-template-columns:var(--left-width,332px) 12px minmax(0,1fr) 12px var(--right-width,224px); gap:0; padding:10px }
  .splitter { display:grid; place-items:center; outline-offset:-2px; cursor:col-resize; touch-action:none; user-select:none }
  .splitter::after { content:""; width:3px; height:34px; border-radius:5px; background:#c7cbc2; transition:background .15s,height .15s }
  .splitter:hover::after,.splitter.dragging::after,.splitter:focus-visible::after { height:62px; background:#71826f }
  .project-head { display:flex; align-items:center; gap:11px; padding:15px 15px 14px }
  .project-mark { background:#30362f; color:#f5f7ee; width:38px; height:38px; border-radius:11px; display:grid; place-items:center }
  .project-mark>svg { width:22px; height:22px }
  .project-head h1 { margin:0; font-size:18px; letter-spacing:0 }
  .project-head p { margin-top:1px; font-size:11px }
  .status { margin-left:auto }
  .tool-sidebar { container-type:inline-size }
  .task-rail { margin:10px 13px }
  .shelf-scroll:has(#library:not([hidden])) { overflow:hidden; display:flex; flex-direction:column }
  #library { display:flex; flex:1; flex-direction:column; min-height:0; padding-bottom:0 }
  #library>* { flex-shrink:0 }
  #upload-furniture { background:#f6f7f4; color:#353d35; border:1px dashed #bec5b9; padding:6px }
  #upload-furniture:hover { background:#edeFE9; border-color:#84907e }
  #room-furniture { gap:6px }
  #room-furniture button { display:flex; align-items:center; gap:4px; padding:4px; border:1px solid var(--line); background:#fafaf8 }
  #room-furniture .product-photo { flex:0 1 36%; aspect-ratio:1; background:#eeefea }
  #room-furniture img { object-fit:contain }
  #room-furniture b { font-size:10px }
  #library #ikea-shelf { display:flex; min-height:0; flex:1; flex-direction:column; padding-top:14px }
  .catalog-title h3 { font-size:16px; letter-spacing:.025em }
  .catalog-browser { flex:1; min-height:0; display:grid; grid-template-columns:clamp(78px,25cqw,104px) minmax(0,1fr); gap:9px; margin-top:4px }
  #ikea-categories,.catalog-products { overflow-y:auto; min-height:0; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#d4d8cf transparent }
  #ikea-categories { padding:1px 5px 7px 0; border-right:1px solid var(--line) }
  .catalog-products { padding:1px 1px 5px }
  .ikea-grid { grid-template-columns:repeat(auto-fit,minmax(min(94px,100%),1fr)); gap:10px 7px; align-items:stretch }
  .ikea-pages { flex:none; margin:0; padding:7px 1px; border-top:1px solid var(--line) }
  .ikea-pages button { padding:2px 6px }
  .original-link { padding:9px 15px }
  @container (max-width:255px){
    #room-furniture button { flex-direction:column; gap:1px }
    #room-furniture .product-photo { width:66%; flex:auto; aspect-ratio:2 }
    .catalog-browser { grid-template-columns:73px minmax(0,1fr); gap:5px }
  }
}
#ikea-categories button { display:block; width:100%; padding:7px 5px; border-radius:6px; color:#595e56; font-size:11px; line-height:1.55; text-align:left }
#ikea-categories button[aria-pressed=true] { background:#e9eee6; color:#30452f; font-weight:700 }
.catalog-filters { grid-template-columns:minmax(0,1fr) auto; align-items:center }
.ikea-ready { margin:0; font-size:11px }
.search-field { min-height:31px }
.catalog-products .ikea-grid button { border:0; padding:0 0 5px; border-radius:7px }
.catalog-products .ikea-grid img { margin:0 0 6px; width:100%; aspect-ratio:1.25; background:#fafbf9; border:1px solid #edeee9; padding:6px; border-radius:7px }
.ikea-grid b,.ikea-grid strong,.ikea-grid small,.ikea-grid .model-state { padding-inline:2px }
.ikea-grid b { line-height:1.5 }
.ikea-grid small { line-height:1.45 }
.ikea-grid .model-state { display:flex; align-items:center; gap:4px; margin-top:auto; padding-top:5px; font-size:10px; color:#6d706a }
.model-state::before { content:""; width:5px; height:5px; border-radius:50%; background:#95988f }
[data-model=ready] .model-state::before { background:#567b51 }
[data-model=online] .model-state::before { background:#518aaa }
[data-model=unchecked] .model-state::before { background:#bb9964 }
.ikea-grid button[data-model=unavailable] { opacity:1 }
#axis-handles { position:absolute; z-index:3; width:0; height:0; pointer-events:none }
#axis-handles button { position:absolute; top:-11px; left:-11px; width:22px; height:22px; border:1.5px solid white; border-radius:50%; color:white; background:var(--axis-color); pointer-events:auto; cursor:grab; touch-action:none; user-select:none; transform:rotate(var(--bearing)) translateX(57px) rotate(calc(-1 * var(--bearing))); box-shadow:0 1px 4px #27302038; font:650 11px system-ui }
#axis-handles button::before { content:""; position:absolute; top:calc(50% - 1px); right:50%; height:2px; width:57px; transform-origin:right center; transform:rotate(var(--bearing)); background:var(--axis-color); z-index:-1; pointer-events:none }
#axis-handles button:active { cursor:grabbing }
[data-axis=x] { --axis-color:#bd4f42 } [data-axis=y] { --axis-color:#43855c } [data-axis=z] { --axis-color:#437cbd }
#pose-hud { position:absolute; z-index:2; bottom:44px; left:50%; transform:translateX(-50%); width:max-content; max-width:95%; display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:4px 8px; font-size:11px; color:#62685d; background:#fffffff2; border:1px solid var(--line); border-radius:9px; padding:7px 10px; pointer-events:none; box-shadow:0 2px 9px #282f240d }
#pose-hud strong { color:var(--ink); max-width:150px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
#pose-hud output { color:#323730; font-variant-numeric:tabular-nums }
@media(max-width:760px) {
  #ikea-categories { display:flex; flex-wrap:wrap; gap:2px }
  #ikea-categories button { width:auto; padding:4px 6px }
  #pose-hud { bottom:39px }
}

.catalog-title h3 { display:flex; align-items:center; gap:7px }
.catalog-title h3 img { object-fit:contain }
.views-title { margin:14px 0 7px; font-size:12px }
.walk-presets { display:flex; flex-wrap:wrap; gap:5px }
.walk-presets button { font-size:11px; border:1px solid var(--line); border-radius:6px; padding:5px 7px }
.walk-presets [aria-pressed=true] { background:#e9eee6; border-color:#b8c4b4 }
#walk-tools { position:absolute; z-index:3; top:58px; left:50%; transform:translateX(-50%); display:flex; align-items:center; gap:12px; padding:4px 6px 4px 12px; border:1px solid var(--line); border-radius:9px; background:#fffffff0; font-size:12px }
#walk-tools button { border-radius:5px; background:var(--tint); padding:4px 7px }
#axis-handles button { width:23px; height:23px; top:-11.5px; left:-11.5px; box-shadow:none; border:0; border-radius:50%; background:transparent; transform:rotate(var(--bearing)) translateX(62px); color:var(--axis-color) }
#axis-handles button::before { width:56px; height:3px; top:calc(50% - 1.5px); right:50%; transform:none; box-shadow:0 0 1px white; background:currentColor }
#axis-handles button::after { content:""; position:absolute; border:6px solid transparent; border-left:13px solid currentColor; top:5.5px; left:8px }
#axis-handles button:hover,#axis-handles button:focus-visible { background:transparent; filter:brightness(1.2) }
#canvas-area #turn-handle,#canvas-area[data-gesture=turn] #turn-handle { position:absolute; inset:0; width:100%; height:100%; min-width:0; display:block; transform:none; padding:0; border:0; box-shadow:none; background:transparent; pointer-events:none; z-index:2 }
#turn-handle svg { display:block; width:100%; height:100%; overflow:visible }
.turn-hit { fill:none; stroke:transparent; stroke-width:13; pointer-events:stroke; cursor:grab; touch-action:none }
.turn-line { fill:none; stroke:#c28132; stroke-width:2.3; pointer-events:none; filter:drop-shadow(0 0 1px #fff) }
#turn-handle:has(.turn-hit:hover) .turn-line,#canvas-area[data-gesture=turn] .turn-line { stroke:#ffac38; stroke-width:3.2 }
#axis-handles button::before { width:44px; height:3px; top:50%; transform:translateY(-50%); border-block:4px solid transparent; box-sizing:content-box; background-clip:content-box; pointer-events:auto }
#eye-location { position:absolute; z-index:2; width:16px; height:16px; pointer-events:none; border-radius:50%; border:2px solid white; background:#315e83; box-shadow:0 1px 4px #20374977 }
#eye-location::after { content:""; position:absolute; left:10px; top:2px; border-top:4px solid transparent; border-bottom:4px solid transparent; border-left:7px solid #315e83 }
#studio.expanded-walk { grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,1fr) }
#studio.expanded-walk #canvas-area { grid-column:1; grid-row:1 }
.wall-switch { position:absolute; left:12px; bottom:12px; z-index:4; display:flex; align-items:center; gap:8px; padding:7px 10px; border:1px solid var(--line); border-radius:8px; background:#fffffff2; box-shadow:0 2px 8px #292d2314; font-size:12px }
.wall-switch i { width:24px; height:14px; border-radius:12px; background:#aaa; padding:2px }
.wall-switch i::after { content:""; display:block; width:10px; height:10px; border-radius:50%; background:white; transition:transform .12s }
.wall-switch[aria-pressed=true] i { background:#477260 }.wall-switch[aria-pressed=true] i::after { transform:translateX(10px) }
#peer-pointers { pointer-events:none; position:absolute; inset:0; z-index:3; overflow:hidden }
.peer-pointer { position:absolute; top:0; left:0; display:flex; align-items:center; gap:0; padding:23px 0 0 18px; transition:transform 100ms linear; white-space:nowrap; will-change:transform }
.peer-pointer[hidden] { display:none }
.peer-pointer::before { content:""; position:absolute; left:-2px; top:-2px; width:25px; height:32px; filter:drop-shadow(0 1px 2px #17252980); background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25 32'%3E%3Cpath d='M2 2 L22 17 L13 18 L17 26 L12 29 L8 20 L3 26 Z' fill='%23156e65' stroke='white' stroke-width='2.4' stroke-linejoin='round'/%3E%3C/svg%3E") }
.peer-name { font-size:12px; line-height:20px; font-weight:600; color:white; background:#185f58; border-radius:0 12px 12px 0; padding:0 8px 0 6px; box-shadow:0 1px 3px #0003 }
.avatar { position:relative; overflow:hidden; flex:none; font-style:normal }
.avatar img { width:100%; height:100%; object-fit:cover; position:absolute; inset:0 }
.peer-pointer .avatar { width:21px; height:21px; margin:0 -3px 0 0; z-index:1; box-shadow:0 0 0 1.5px white }
#profile-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin:14px 0; max-height:34vh; overflow:auto }
#profile-grid button { display:grid; justify-items:center; gap:4px; padding:7px 4px; border:1px solid var(--line); border-radius:9px; overflow-wrap:anywhere }
#profile-grid button[aria-pressed=true] { border-color:#477260; background:#edf4ee }
#profile-grid .avatar { width:40px; height:40px; margin:0 } #profile-grid small { color:var(--soft); font-size:10px }
#open-photo { background:#354c40; color:white; padding:0 11px } #open-photo:hover { background:#465e50 }
#photo-dialog { width:min(760px,85vw); max-height:93vh; overflow:auto }
#photo-dialog header,.photo-settings { display:flex; align-items:center; justify-content:space-between; gap:12px }
#photo-close { font-size:24px; padding:0 5px } #photo-image { margin-top:10px; background:#eceee9; border-radius:9px; overflow:hidden; display:grid; place-items:center }
#photo-image canvas { width:auto; height:auto; max-width:100%; max-height:48vh; cursor:default }
.photo-settings { justify-content:flex-start } .photo-settings label { flex:1; margin:6px 0 }
.photo-settings select { padding:6px; background:white; border-radius:6px; border:1px solid var(--line) }
#photo-save { text-decoration:none }
#join { inset:0; margin:0; padding:0; width:100vw; height:100dvh; max-width:none; max-height:none; border:0; border-radius:0; box-shadow:none; color:#26362f; background:#e2e5df; isolation:isolate; overflow:auto }
#join[open] { display:flex }
#join::before,#join::after { content:""; position:fixed; pointer-events:none; inset:0; z-index:-1 }
#join::before { inset:-20px; background:url('/avatars/office.jpg') center 58%/cover; filter:blur(13px) saturate(.52); opacity:.66 }
#join::after { background:linear-gradient(115deg,rgba(240,243,235,.85),rgba(244,241,232,.65) 48%,rgba(226,235,227,.66)); backdrop-filter:blur(4px) }
#join::backdrop { background:#e4e6df }
#join-form { width:min(1140px,92vw); margin:auto; position:relative; padding:clamp(50px,7vh,88px) 0 20px; text-align:center }
.entry-project { position:fixed; top:clamp(13px,3.3vh,34px); left:4.1vw; display:flex; align-items:center; gap:10px; font-size:13px; letter-spacing:.045em; color:#344239 }
.entry-project svg { width:21px; height:21px }.entry-project span:last-child { color:#59665e; padding-left:12px; border-left:1px solid #78847a6b; font-size:12px }
#join h1 { font-size:clamp(30px,4.1vh,44px); font-weight:540; letter-spacing:.035em; line-height:1.22 }
#join h1+p { color:#526158; margin:6px 0 0; font-size:13px; letter-spacing:.06em }
#profile-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:clamp(6px,1.75vh,20px) clamp(6px,2.4vw,42px); width:min(930px,90%); margin:clamp(16px,3.3vh,39px) auto 0; max-height:none; overflow:visible }
#profile-grid button { border:0; border-radius:0; background:transparent; gap:0; align-content:start; padding:2px 0 3px; color:#27372e }
#profile-grid button:hover,#profile-grid button[aria-pressed=true] { background:transparent }
#profile-grid button:focus-visible { outline:0 }
#profile-grid button:focus-visible .avatar { outline:2px solid #496a56; outline-offset:3px }
#profile-grid .avatar { width:clamp(43px,7.6vh,80px); height:clamp(43px,7.6vh,80px); border:2px solid #ffffffe6; background:#e0e3dc; box-shadow:0 2px 8px #263b321c; transition:transform .15s,box-shadow .15s }
#profile-grid button:hover .avatar,#profile-grid button[aria-pressed=true] .avatar { transform:translateY(-3px); box-shadow:0 0 0 2px #67816f99,0 4px 12px #273e341f }
#profile-grid button>span:not(.avatar) { margin-top:6px; font-size:clamp(13px,1.6vh,16px); letter-spacing:.035em; font-weight:550 }
#profile-grid small { min-height:13px; color:#59665c; font-size:11px; margin-top:1px }
.guest-portrait::before { content:""; position:absolute; top:21%; width:27%; height:27%; background:#788a7c; border-radius:50% }
.guest-portrait::after { content:""; position:absolute; top:53%; width:53%; height:32%; background:#788a7c; border-radius:50% 50% 25% 25% }
#password-field,#nickname-field { width:min(280px,90%); margin:8px auto; text-align:left }
#join-button { width:min(280px,90%) }
.guest-mode #tools-toggle,.guest-mode #upload-furniture,.guest-mode #restore-version,.guest-mode #delete-item { display:none }
@media (max-height:650px) and (min-width:760px) { #join-form { padding-top:32px } #profile-grid { gap:4px 16px; margin-top:10px } #profile-grid .avatar { width:39px; height:39px } .entry-project { top:12px } }
#studio.expanded-walk .splitter,#studio.expanded-walk .tool-sidebar,#studio.expanded-walk .inspector,#studio.expanded-walk .mobile-switch { display:none }
/* Cozy co-building workspace. Presentation only, shared scene data is untouched. */
:root{--ink:#30463f;--soft:#748078;--line:#dce3d7;--tint:#eef3e8;--board:#f4f4ed;--accent:#447865;--panel:#fffef9;font-family:"Microsoft YaHei UI","Microsoft YaHei",system-ui,sans-serif}
body{background:#eaf0e4}
button{transition:background-color .15s,box-shadow .15s,transform .15s}
button:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid #d49842;outline-offset:3px}
button:not(:disabled):active{transform:translateY(1px)}
#studio{background:radial-gradient(ellipse at 45% 0,#faf6df,transparent 65%),#eaf0e4}
.game-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 8px 12px;min-width:0}
.game-brand{display:flex;align-items:center;gap:12px;flex:none}
.game-logo{display:grid;place-items:center;width:48px;height:48px;background:#fff2cc;border:2px solid #fffef9;border-radius:17px;box-shadow:0 3px 0 #cbd4ba;transform:rotate(-6deg)}
.game-logo svg{width:43px;height:43px}
.game-brand h1{font-size:24px;line-height:1.2;font-weight:900;letter-spacing:.04em}
.brand-star{display:inline-block;color:#cf9450;font-size:21px;margin-left:7px}
.game-brand p{color:#788576;font-size:11px;letter-spacing:.03em;margin-top:4px}
.room-badge{display:flex;gap:10px;align-items:center;padding:7px 18px 7px 8px;border:1px solid #d5dece;background:#ffffffa3;border-radius:15px}
.room-number{display:grid;place-items:center;background:#e0ead6;color:#506c4b;font-size:15px;font-weight:900;width:45px;height:36px;border-radius:10px}
.room-badge strong{display:block;font-size:12px}.room-badge #game-save{display:block;font-size:10px;color:#788576;margin-top:3px}
.game-party{display:flex;align-items:center;gap:10px;min-width:0}
.game-party .session{padding:0;border:0;gap:10px}.game-party .status{margin:0;white-space:nowrap}
.game-party #people{min-height:42px;border:1px solid #cad8c8;background:#fffef9;border-radius:14px;padding:5px 11px;box-shadow:0 3px 0 #d6dfcd;gap:9px;font-weight:700}
.game-party .avatar{width:30px;height:30px;border:2px solid #fffef9;margin-left:-5px}
.game-party #change-name{background:transparent;font-size:11px;color:#768273;padding:6px}
.help-button{width:32px;height:32px;flex:none;border:1px solid #d0d8c9;border-radius:50%;background:#ffffffa0;font-size:16px;font-weight:800}
.tool-sidebar,.inspector{border:2px solid #fffef9;background:var(--panel);border-radius:20px;box-shadow:0 4px 0 #cdd8c6,0 8px 18px #3d60410a}
.project-head{padding:14px 15px 8px;border-bottom:0;gap:9px}
.project-head h2{font-size:17px;font-weight:800}.project-head p{font-size:10px;color:#7b8578;margin-top:4px}
.shelf-icon{display:grid;place-items:center;width:36px;height:36px;background:#f6e5bf;border-radius:12px;color:#94733f;transform:rotate(-5deg)}
.shelf-icon svg{width:23px;height:23px}
.task-rail{background:#e9eee2;border:0;border-radius:12px;padding:4px;margin:10px 12px 12px;gap:4px}
.task-rail button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:37px;border-radius:9px;font-weight:700;font-size:12px}
.task-rail svg{width:17px;height:17px}
.task-rail [aria-expanded=true]{background:#4f806a;color:#fffdf5;box-shadow:0 3px 0 #345d4d}
.task-rail [aria-expanded=true]:hover{background:#46765f}
#upload-furniture{background:#faf7ec;color:#7e775c;border:1px dashed #d6ceb0;border-radius:10px;min-height:31px;font-size:11px}
.builtin-heading{display:flex;justify-content:space-between;gap:6px;color:#546652;font-size:11px}.builtin-heading span{font-size:10px;color:#98a08e;font-weight:400}
#room-furniture{gap:7px}
#room-furniture button{display:flex;flex-direction:column;border:1px solid #e4dfc9;border-bottom-width:3px;border-radius:12px;padding:5px;background:#f8f3e3;gap:2px}
#room-furniture button:nth-child(2){background:#edf3e7;border-color:#dbe4d1}#room-furniture button:nth-child(3){background:#f8ece1;border-color:#e9d9c9}
#room-furniture .product-photo{flex:none;width:100%;height:47px;aspect-ratio:auto;background:transparent;border-radius:7px}
#room-furniture img{object-fit:contain;mix-blend-mode:multiply}#room-furniture b{font-weight:700;font-size:11px;margin:2px 0}
.catalog-list button:hover,.tool-grid button:hover{box-shadow:0 3px 8px #30463f18;transform:translateY(-2px)}
.tool-grid{gap:10px}.tool-grid button{border:1px solid #dfdfca;border-bottom-width:4px;border-radius:15px;min-height:105px;background:#f7f1e2;color:#685c40;font-weight:700}
.tool-grid button:nth-child(2n){background:#eaf3ee;border-color:#cdded4;color:#3f6b61}.tool-grid svg{width:61px;height:57px}
.tool-grid [aria-pressed=true],.catalog-list [aria-pressed=true],.ikea-grid [aria-pressed=true]{outline:3px solid #568570;outline-offset:-2px;background:#edf4e8}
.toolbox h3{color:#6c7967}.catalog-title h3{color:#3f5144;font-weight:800}
#library #ikea-shelf{padding-top:12px;margin-top:12px;border-top:1px dashed #d7dfcd}
.catalog-title{gap:4px}#ikea-count{font-size:10px}.catalog-title h3 img{width:41px;height:auto}
.search-field{border:1px solid #dce4d4;background:#f1f4eb;border-radius:10px;min-height:36px}
.search-field input{font-size:11px}.ikea-ready{font-size:10px}.catalog-filters{margin:9px 0 5px}
.catalog-browser{display:flex;flex-direction:column;gap:7px;margin-top:0}
#ikea-categories{display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;gap:5px;padding:2px 0 7px;flex:none;border:0;max-height:44px;scrollbar-width:thin}
#ikea-categories button{width:auto;flex:none;font-size:11px;padding:5px 10px;border:1px solid #e1e5d9;border-radius:16px;background:#f8f9f2;line-height:1.5;white-space:nowrap}
#ikea-categories button[aria-pressed=true]{background:#f2dca0;color:#745c26;border-color:#e3cb8c;box-shadow:0 2px 0 #e3cb8c}
.catalog-products{flex:1;min-height:0;padding:2px 2px 6px}.ikea-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.catalog-products .ikea-grid button{position:relative;border:1px solid #e2e6d9;border-bottom:3px solid #dce2d2;border-radius:13px;background:#fffef9;padding:6px 7px 9px}
.catalog-products .ikea-grid button:hover{border-color:#a9bea2;background:#f4f8ee}
.catalog-products .ikea-grid img{border:0;background:#f3f4eb;border-radius:9px;aspect-ratio:1.23;padding:5px;margin:0 0 7px;width:100%}
.ikea-grid b{font-size:11px;color:#344e41}.ikea-grid small{color:#82907d;font-size:10px}.ikea-grid .model-state{font-size:9px}
.product-measure{font-size:10px}.ikea-pages{border-top:1px dashed #d9dfd0;padding:7px 0}.ikea-pages button{border-radius:7px;padding:5px 8px;background:#edf1e5}
.original-link{background:#f4f4e9;color:#849077;font-size:11px;min-height:36px;border-top:1px solid #e7e9db}
#canvas-area{border-radius:24px;background:#f7f6ee;box-shadow:inset 0 0 0 1px #e2e6d7}
.scene-badge{position:absolute;z-index:4;left:18px;top:15px;display:flex;gap:9px;align-items:center;pointer-events:none;background:#fffef9eb;border:1px solid #e0e5d5;border-radius:13px;padding:9px 13px;box-shadow:0 3px 0 #dce3d16b}
.scene-badge strong{display:block;font-size:13px;letter-spacing:.03em}.scene-badge small{display:block;color:#8a9382;font-size:10px;margin-top:3px}
.mode-light{width:10px;height:10px;border-radius:50%;background:#8daf70;box-shadow:0 0 0 4px #eaf0dc;flex:none}
.tour-button{position:absolute;z-index:4;top:18px;right:14px;display:flex;gap:6px;align-items:center;background:#fffef9e8;border:1px solid #dbe2d1;border-radius:12px;padding:9px 11px;color:#738568;font-size:11px;box-shadow:0 3px 0 #dce3d1a6}.tour-button svg{width:16px;height:16px}
.canvas-bar{top:auto;bottom:18px;padding:7px;gap:4px;border-radius:18px;border:2px solid #fffef9;background:#fffdf4fa;box-shadow:0 4px 0 #c6d1bc,0 10px 25px #465c3620}
.canvas-bar button{min-height:39px;min-width:36px;border-radius:11px;padding:0 8px;font-size:12px}
.canvas-bar [aria-pressed=true]{color:#fffdf5;background:#5c826a;box-shadow:0 3px 0 #3f604b}.canvas-bar [aria-pressed=true]:hover{background:#517960}
.bar-group{border-left:1px solid #e6e5d5;padding-left:5px}.canvas-bar #export-cad{background:#f1eddb;color:#81734d;min-height:38px;font-size:11px}
#open-photo{background:#eeb76a;color:#60461e;border-bottom:3px solid #cb954e;font-weight:800;padding:0 10px}#open-photo:hover{background:#f3c581}
#hint,#canvas-area:not([data-tool=select]) #hint{top:77px;bottom:auto;max-width:94%;font-size:10px;color:#7d8776;background:#fffef7ed;border-color:#e3e6d8;border-radius:9px;padding:5px 10px}
.wall-switch{bottom:86px;left:15px;border-radius:12px;background:#fffef9ed;font-size:10px;padding:7px 10px;border-color:#dde4d1;box-shadow:none}
#pose-hud{bottom:86px;border-radius:12px;max-width:75%;font-size:10px}
.build-dock{bottom:83px}.active-tool{background:#fff9e7;border:1px solid #e7d5a6;border-bottom:3px solid #dfcb96;border-radius:13px}.active-tool button{background:#f0e8cf}
#wall-settings{background:#fffdf4;border-radius:13px;border-color:#e3d9bc}#wall-settings input{background:white}
#original-banner,#history-banner{top:116px;border-radius:12px;background:#47715b}#walk-tools{top:77px;border-radius:12px;background:#fffdf2}
.inspector-label{display:flex;justify-content:space-between;padding:15px 13px 0;gap:4px}.inspector-label span{font-size:12px;font-weight:800}.inspector-label small{font-size:8px;letter-spacing:.1em;color:#9ca58f}
.inspector-tabs{border:0;background:#eef1e5;border-radius:11px;margin:11px 11px;padding:3px}.inspector-tabs button{min-height:33px;font-size:11px;border-radius:8px}
.inspector-tabs [aria-pressed=true]{background:#fffdf5;color:#57714d;box-shadow:0 2px 0 #d6dfc9}
.inspector-body>section{padding:13px;border-color:#e8eadf}.overview{background:linear-gradient(#fffef9,#f9faef)}
#swap-view strong{font-size:12px}#swap-view span{font-size:9px;color:#9a9f88}
#mini-canvas{height:clamp(110px,17vh,165px);border:1px solid #d8e1ce;border-bottom:3px solid #ccd8c0;border-radius:14px;background:#eaf0de}
.room-pin{border:2px solid #fffdf4;background:#668254;box-shadow:0 2px 0 #405c39;font-size:10px;width:22px;height:22px}
#rooms{gap:5px;margin:9px 0}#rooms button{background:#eff3e7;border:1px solid #e0e6d5;border-radius:8px;font-size:10px;padding:6px}
#rooms [aria-pressed=true]{background:#688560;color:#fffdf3}.views-title{color:#879279;font-size:10px;margin-top:13px}
.walk-presets{gap:4px}.walk-presets button{border-radius:8px;background:#fffdf5;font-size:10px;padding:5px 6px;border-color:#e0e4d4}
.camera-tools button{font-size:10px}.property-panel h2{font-size:12px;color:#6b7c5f}
.empty-selection{text-align:center;padding:10px 0 4px;color:#8a927e}.empty-selection>svg{display:block;width:53px;height:48px;margin:0 auto 6px;transform:rotate(-7deg)}
.empty-selection strong{display:block;font-size:11px;font-weight:600;color:#6b7a61}.empty-selection p{font-size:10px;line-height:1.8;margin:7px 0 9px}.empty-selection>span{font-size:9px}
kbd{border:1px solid #e0e3d5;border-bottom:2px solid #cdd4c1;background:#f4f5ec;border-radius:5px;color:#7a826e;font-size:9px;padding:2px 4px}
.footnote{font-size:9px;opacity:.75;line-height:1.8}.source-note{font-size:10px}
#version-list button{background:#f9f8ed;border:1px solid #e4e4d2;border-bottom:3px solid #dde0cd;margin-bottom:8px;border-radius:11px;padding:10px 8px}
#version-list em{background:#e5ecd9;color:#628050;padding:6px 4px;border-radius:6px}#version-list strong{font-size:11px}#version-list [aria-pressed=true]{border-color:#7c9c67;background:#f0f6e8}
.primary,#join-button{background:#5c8067;border-bottom:3px solid #3b5c48;border-radius:12px}
#roster,#game-guide{border:2px solid #fffdf3;border-radius:20px;background:#fffdf3;box-shadow:0 6px 0 #d1dac8,0 18px 60px #25382726}
#roster{inset:76px 20px auto auto;padding:20px}#members li{padding:8px 0;font-size:12px}#roster h2{font-size:15px}
#game-guide{position:fixed;inset:86px 22px auto auto;margin:0;width:min(370px,calc(100vw - 32px));padding:23px;max-height:calc(100dvh - 110px);overflow:auto;color:var(--ink)}
.guide-title{display:flex;justify-content:space-between;align-items:center;color:#9a895d;font-size:11px}.guide-title button{font-size:23px;padding:0 5px}#game-guide h2{font-size:18px;margin:9px 0 20px;line-height:1.6}
#game-guide ol{list-style:none;counter-reset:step;padding:0;display:grid;gap:17px}#game-guide li{position:relative;padding-left:40px;counter-increment:step}#game-guide li::before{content:counter(step);position:absolute;left:0;top:0;width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:#e9edda;color:#6e8054;font-weight:800}#game-guide li b{font-size:12px}#game-guide li p{font-size:11px;color:#829077;line-height:1.7;margin-top:5px}.guide-keys{display:flex;flex-wrap:wrap;gap:10px;font-size:10px;color:#829077;border-top:1px dashed #dce0ce;padding-top:16px;margin-top:20px}
#join h1{color:#344d40;font-weight:540;letter-spacing:.035em}#join-button{box-shadow:0 5px 0 #cad5bb;margin-top:12px;min-height:45px}.entry-project{color:#526957}
@media(min-width:761px){
  #studio{padding:14px 14px 18px;grid-template-rows:66px minmax(0,1fr);grid-template-columns:var(--left-width,310px) 12px minmax(0,1fr) 12px var(--right-width,224px)}
  .game-header{grid-column:1/-1;grid-row:1}.tool-sidebar{grid-column:1;grid-row:2}.splitter[data-side=left]{grid-column:2;grid-row:2}#canvas-area{grid-column:3;grid-row:2}.splitter[data-side=right]{grid-column:4;grid-row:2}.inspector{grid-column:5;grid-row:2}
  .splitter::after{background:#c9d4bf;width:3px;height:28px}
  #studio.expanded-walk{grid-template-columns:minmax(0,1fr);grid-template-rows:66px minmax(0,1fr)}#studio.expanded-walk #canvas-area{grid-column:1;grid-row:2}
  @container(max-width:255px){#room-furniture .product-photo{height:38px;width:100%;flex:none}.catalog-browser{display:flex;gap:6px}.ikea-grid{gap:6px}.catalog-title h3{font-size:13px}.project-head p{font-size:9px}}
}
@media(min-width:761px) and (max-width:1100px){.game-brand h1{font-size:21px}.game-brand p{font-size:10px}.game-party .status,.room-badge{display:none}.canvas-bar{gap:1px;padding:5px;bottom:15px}.canvas-bar button{padding:0 5px;min-width:28px;min-height:36px;font-size:11px}.canvas-bar #export-cad{padding:0 6px;font-size:10px}.tour-button{font-size:0;gap:0}.tour-button span{display:none}.scene-badge{left:10px;padding:8px 10px}.scene-badge small{font-size:9px}.inspector-label small{display:none}}
@media(max-width:760px){
  #studio{padding:7px;gap:6px;grid-template-columns:minmax(0,1fr);grid-template-rows:48px minmax(230px,1fr) 35px minmax(180px,.85fr)}
  .game-header{grid-column:1;grid-row:1;padding:0 3px;gap:8px}.game-logo{width:34px;height:34px;border-radius:12px}.game-logo svg{width:29px;height:29px}.game-brand{gap:7px}.game-brand h1{font-size:19px}.game-brand p,.brand-star,.room-badge,.game-party .status,#change-name{display:none}.game-party{gap:7px}.game-party .session{padding:0}.game-party #people{min-height:31px;padding:2px 8px;font-size:10px;border-radius:11px}.game-party .avatar{width:23px;height:23px}.help-button{width:27px;height:27px;font-size:13px}
  #canvas-area{grid-column:1;grid-row:2;border-radius:18px}.mobile-switch{grid-row:3;grid-column:1;padding:0 5px}.mobile-switch strong{font-size:11px;color:#7a876f}.mobile-switch button{font-size:11px;padding:6px 12px}.mobile-switch [aria-pressed=true]{background:#fffdf2;box-shadow:0 2px 0 #d2ddc5}
  .tool-sidebar,.inspector{grid-row:4;grid-column:1;border-radius:16px}.project-head{display:none}.task-rail{margin:6px 9px}.task-rail button{min-height:29px}.toolbox{padding:0 10px 10px}.shelf-scroll{overflow:auto}.builtin-heading span{display:none}#room-furniture .product-photo{height:36px}.catalog-browser{display:flex}.catalog-products{overflow:visible}.ikea-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#ikea-categories{max-height:42px;flex-wrap:nowrap}.catalog-products .ikea-grid img{aspect-ratio:1.5}#library #ikea-shelf{padding-top:8px;margin-top:9px}
  .scene-badge{top:9px;left:9px;padding:6px 9px;border-radius:10px}.scene-badge strong{font-size:11px}.scene-badge small{display:none}.mode-light{width:7px;height:7px}.tour-button{top:9px;right:9px;padding:6px 8px;font-size:10px}
  .canvas-bar{bottom:10px;top:auto;padding:4px;border-radius:13px;gap:1px;max-width:98%}.canvas-bar button{min-height:31px;min-width:27px;padding:0 4px;font-size:10px;border-radius:8px}.canvas-bar svg{width:14px;height:14px}.canvas-bar .views svg,#open-photo svg{display:none}.canvas-bar #export-cad{padding:0 5px;font-size:10px;min-height:31px}#open-photo{padding:0 6px}.bar-group{gap:1px;padding-left:3px}
  #hint,#canvas-area:not([data-tool=select]) #hint{top:46px;font-size:9px;padding:3px 6px;line-height:1.5}.wall-switch{bottom:61px;left:8px;padding:5px 7px;font-size:9px}.wall-switch i{width:22px;height:12px}.wall-switch i::after{width:8px;height:8px}#pose-hud{bottom:62px;max-width:96%;font-size:9px;padding:4px 6px}.build-dock{bottom:61px;max-width:96%}#wall-settings{font-size:10px;gap:4px}#wall-settings input{width:48px}
  #history-banner,#original-banner{top:75px;font-size:10px}#walk-tools{top:46px;gap:6px;font-size:10px}.inspector-label{display:none}.inspector-tabs{margin:6px 9px}.inspector-body>section{padding:10px}#mini-canvas{height:130px}.empty-selection{padding:0}#game-guide{inset:65px 16px auto auto}#roster{inset:58px 12px auto auto}
  #studio.expanded-walk{grid-template-columns:minmax(0,1fr);grid-template-rows:48px minmax(0,1fr)}#studio.expanded-walk #canvas-area{grid-column:1;grid-row:2}
}
@media(prefers-reduced-motion:reduce){button,.peer-pointer{transition:none}}

/* Light studio preview 01: visual polish only. */
:root{--ink:#303f3c;--soft:#77847f;--line:#e4e9e5;--tint:#f0f5f2;--board:#f7f8f6;--accent:#438b79;--panel:#ffffff}
body{background:#f0f3f0}
#studio{background:radial-gradient(ellipse at 45% 0,#fff9ef 0,transparent 60%),#f0f3f0}
.game-header{padding-inline:7px;gap:16px}
.game-logo{width:38px;height:38px;background:#fff5e3;border:1px solid #f2e5cf;border-radius:12px;box-shadow:none;transform:none}
.game-logo svg{width:33px;height:33px}
.game-brand{gap:10px}.game-brand h1{font-size:20px;font-weight:750;letter-spacing:.02em}.brand-star{font-size:14px;color:#d6a567;margin-left:6px}.game-brand p{font-size:10px;color:#8b9690;letter-spacing:.02em}
.room-badge{background:#ffffff85;border-color:#e4e9e1;border-radius:30px;padding:6px 15px 6px 7px;gap:9px}
.room-number{background:#eef3ee;color:#627b6b;width:39px;height:31px;border-radius:20px;font-size:12px;font-weight:700}.room-badge strong{font-size:11px}.room-badge #game-save{font-size:9px;color:#8b9790}
.game-party #people{background:#ffffffcf;border:1px solid #e2e9e2;border-radius:24px;box-shadow:0 3px 12px #384c3605;min-height:35px;padding:4px 10px;font-size:11px;font-weight:600}
.game-party .avatar{width:25px;height:25px}.help-button{width:29px;height:29px;border-color:#e0e7df;background:#ffffffad;font-size:13px;font-weight:500}
.tool-sidebar,.inspector{background:#ffffffdb;border:1px solid #fff;border-radius:17px;box-shadow:0 5px 24px #27453208,0 0 0 1px #dee6dd66;backdrop-filter:blur(18px)}
.project-head{padding:15px 14px 7px;gap:9px}.project-head h2{font-size:14px;font-weight:650}.project-head p{font-size:10px;color:#96a096;margin-top:4px}.shelf-icon{width:31px;height:31px;border-radius:10px;background:#f6f2e8;color:#a49679;transform:none}.shelf-icon svg{width:18px;height:18px}
.task-rail{background:#f0f3ef;border:1px solid #ebeee8;padding:3px;border-radius:11px;margin:10px 12px;gap:3px}.task-rail button{font-size:11px;min-height:33px;font-weight:600;border-radius:8px;gap:5px}.task-rail svg{width:15px;height:15px}
.task-rail [aria-expanded=true]{background:#fff;color:#397c69;box-shadow:0 1px 5px #263e3010}.task-rail [aria-expanded=true]:hover{background:#fbfdfb}
#upload-furniture{background:#fbfcf9;border-color:#dfe5d8;color:#7e8c7a;font-size:10px;border-radius:8px;min-height:28px}
.builtin-heading{font-size:10px;color:#788774}.builtin-heading span{font-size:9px;color:#a1aa9a}
#room-furniture button,#room-furniture button:nth-child(2),#room-furniture button:nth-child(3){border:1px solid #e8ece3;background:#f6f7f1;border-radius:10px;padding:5px;box-shadow:none}
#room-furniture button:nth-child(2){background:#f1f6f2}#room-furniture button:nth-child(3){background:#faf5ef}
#room-furniture b{font-size:10px;font-weight:500;color:#6c7968}.catalog-list button:hover,.tool-grid button:hover{transform:translateY(-2px);box-shadow:0 5px 12px #35574312}
.tool-grid button,.tool-grid button:nth-child(2n){border-width:1px;border-radius:12px;background:#faf8f2;font-weight:550}.tool-grid button:nth-child(2n){background:#f0f7f3}
#library #ikea-shelf{border-top:1px solid #edf0e8}.catalog-title h3{font-size:13px;letter-spacing:0;font-weight:650}.catalog-title h3 img{width:36px}
.search-field{background:#f5f7f2;border:1px solid #edf0e8;border-radius:9px;min-height:32px}.search-field input{font-size:10px}.ikea-ready{font-size:9px;color:#8a9484}
#ikea-categories button{background:transparent;border:1px solid transparent;font-size:10px;color:#87917f;padding:5px 9px;border-radius:20px}
#ikea-categories button[aria-pressed=true]{background:#eaf4ee;color:#47846e;border-color:#dcece1;box-shadow:none;font-weight:600}
.catalog-products .ikea-grid button{padding:5px 6px 8px;background:#fff;border:1px solid #e9ede5;border-radius:11px;box-shadow:none;transition:transform .16s,border-color .16s,box-shadow .16s}
.catalog-products .ikea-grid button:hover{background:#fff;border-color:#a9cdbb;transform:translateY(-2px);box-shadow:0 6px 15px #345c4210}
.catalog-products .ikea-grid img{background:#f7f8f3;border-radius:8px;padding:8px}.ikea-grid b{font-size:11px;font-weight:600;color:#52644f}.ikea-grid small{font-size:9px;color:#8f9987}.product-measure{font-size:10px;color:#74836b;font-weight:450}.ikea-grid .model-state{font-size:9px;color:#8b9782}
.ikea-pages{border-color:#e9eee3;font-size:10px}.ikea-pages button{background:#f6f8f2;border:1px solid #eaf0e3;font-size:10px}.original-link{background:#fbfcf8;border-color:#edf0e8;color:#929d89;font-size:10px}
#canvas-area{background:#f7f8f5;border-radius:20px;box-shadow:inset 0 0 0 1px #e5ebe2}
.scene-badge{background:#ffffffb8;border:1px solid #ffffffc9;border-radius:12px;padding:8px 11px;box-shadow:0 3px 15px #35533c08;backdrop-filter:blur(12px)}
.scene-badge strong{font-size:11px;font-weight:650;color:#526b5d}.scene-badge small{font-size:9px;color:#a0aa9c}.mode-light{width:7px;height:7px;background:#76b19b;box-shadow:0 0 0 3px #e8f3e9}
.tour-button{border:1px solid #ffffffba;background:#ffffffb8;color:#7b9082;border-radius:20px;box-shadow:0 3px 14px #35533c07;padding:8px 10px;font-size:10px;backdrop-filter:blur(12px)}
.canvas-bar{background:#fffffff0;border:1px solid #fff;border-radius:18px;padding:6px;gap:4px;box-shadow:0 8px 30px #33563f13,0 1px 3px #33563f0b;backdrop-filter:blur(18px)}
.canvas-bar button{border-radius:12px;min-height:37px;font-size:11px;font-weight:500;color:#73847a}.canvas-bar svg{width:16px;height:16px}.canvas-bar [aria-pressed=true]{background:#e5f2ec;color:#37836a;box-shadow:none}.canvas-bar [aria-pressed=true]:hover{background:#dceee5}.bar-group{border-color:#e9eeea}
.canvas-bar #export-cad{background:#f5f6f2;color:#8b937f;font-size:10px}.canvas-bar #open-photo{background:#f6dfbf;border:0;color:#98713f;font-weight:650;padding:0 12px}.canvas-bar #open-photo:hover{background:#f2d4aa}
.wall-switch{border-color:#ffffffad;background:#ffffffbc;border-radius:20px;color:#8b9b8b;box-shadow:0 2px 8px #35533c06;font-size:9px}.wall-switch[aria-pressed=true] i{background:#79a994}
#hint,#canvas-area:not([data-tool=select]) #hint{border:0;background:#ffffff91;color:#9ba593;font-size:9px;backdrop-filter:blur(6px)}
.inspector-label{padding-top:15px}.inspector-label span{font-size:11px;color:#74876e;font-weight:550}.inspector-label small{font-size:8px;color:#b0b8a5}
.inspector-tabs{background:#f1f4ed;border-radius:10px}.inspector-tabs button{font-size:10px;font-weight:500;min-height:30px}.inspector-tabs [aria-pressed=true]{box-shadow:0 1px 4px #35452f0a;background:#fff;color:#69845a}
.overview{background:transparent}.inspector-body>section{border-color:#f0f3eb}#swap-view strong{font-size:11px;font-weight:550;color:#74856d}#swap-view span{font-size:9px;color:#a8b29c}
#mini-canvas{background:#f0f4e9;border:1px solid #e5ebdb;border-radius:12px;box-shadow:none}.room-pin{box-shadow:0 2px 5px #385a3617;background:#91ad7b;border:2px solid white;font-size:9px;width:21px;height:21px}
#rooms button{background:#f6f8f1;border:1px solid #edf1e5;font-size:9px;color:#8b9980;border-radius:7px}.camera-tools button{color:#9ba58e;font-size:9px}.walk-presets button{background:transparent;border-color:#e9eedf;color:#8d9b7e;font-size:9px}.views-title{font-size:9px;color:#a1ad92}
.property-panel h2{font-size:11px;font-weight:550;color:#809171}.empty-selection>svg{width:43px;height:40px;transform:rotate(-4deg);opacity:.8}.empty-selection strong{font-size:10px;font-weight:500;color:#94a185}.empty-selection p{font-size:9px;color:#a5af98;line-height:1.9}.empty-selection>span{font-size:9px;color:#9aa78d}
kbd{border:1px solid #e8edde;background:#f7f9f2;box-shadow:none;color:#9ca98e;font-size:9px}.footnote{opacity:.6;font-size:9px}
#version-list button{border:1px solid #e7edde;border-radius:10px;background:#fafcf6;box-shadow:none}#version-list [aria-pressed=true]{border-color:#acc69a;background:#eff7e7}
.active-tool,#wall-settings{border:1px solid #e5ebdf;background:#fffffff0;box-shadow:0 5px 20px #334e3710;border-radius:12px}.active-tool button{background:#eef4e9}
#roster,#game-guide{border:1px solid #fff;background:#fffffff5;box-shadow:0 12px 55px #2948321a;border-radius:17px}
@media(min-width:761px){#studio{grid-template-rows:58px minmax(0,1fr);padding-top:10px}.game-header{padding-bottom:10px}#studio.expanded-walk{grid-template-rows:58px minmax(0,1fr)}}
@media(max-width:760px){.game-logo{width:30px;height:30px;border-radius:10px}.game-logo svg{width:26px;height:26px}.game-brand h1{font-size:17px}.game-party #people{min-height:29px;font-size:10px}.game-party .avatar{width:22px;height:22px}.canvas-bar{gap:1px;padding:4px}.canvas-bar button{min-height:31px;font-size:10px}.canvas-bar #open-photo{padding:0 7px}.task-rail button{min-height:29px}.scene-badge{padding:6px 9px}.tour-button{padding:6px 8px}}

/* Compact scene chrome: the header shares the canvas grid cell, no dedicated row. */
.game-header{z-index:6;align-self:start;position:relative;pointer-events:none;gap:8px;padding:0;margin:12px;min-height:36px}
.game-header>*{pointer-events:auto}.game-header .game-brand{display:none}
.game-header .room-badge{display:flex;border-radius:13px;padding:5px 10px 5px 6px;gap:8px;background:#fffffff0;border:1px solid #e5ebe5;box-shadow:0 3px 14px #35533c08;flex-shrink:0}
.game-header .room-number{height:28px;width:38px;font-size:11px;border-radius:9px}
.game-header .room-badge strong{font-size:10px;font-weight:600}.game-header #game-save{font-size:9px;margin-top:2px;color:#708277}
.game-header .game-party{margin-left:auto;gap:6px;padding:3px 5px;background:#fffffff0;border:1px solid #e5ebe5;border-radius:22px;box-shadow:0 3px 14px #35533c08}
.game-header .game-party .session{gap:5px}.game-header #people{min-height:29px;padding:2px 6px;border:0;background:transparent;box-shadow:none;font-size:10px;gap:5px}
.game-header .avatar{width:22px;height:22px}.game-header #change-name{font-size:10px;padding:5px;color:#657b70;white-space:nowrap}
.game-header .help-button{width:25px;height:25px;background:#f3f6f2;border:0;font-size:12px}
.game-header .status{display:none}.game-header .status:not([data-live=true]){display:block;position:absolute;right:7px;top:45px;background:#fff5df;color:#866335;padding:5px 8px;border-radius:8px}
.scene-badge{top:65px;padding:5px 8px;background:#ffffff90;box-shadow:none;border:0}.scene-badge small{display:none}.scene-badge strong{font-size:10px;font-weight:500}
.tour-button{top:65px;padding:5px 9px;font-size:10px}
#hint,#canvas-area:not([data-tool=select]) #hint{top:104px}
#history-banner,#original-banner{top:136px}#walk-tools{top:104px}
#roster{inset:64px 26px auto auto}#game-guide{inset:64px 26px auto auto}
@media(min-width:761px){
 #studio{grid-template-rows:minmax(0,1fr);padding-top:14px}
 .game-header{grid-column:3;grid-row:1}.tool-sidebar,.splitter[data-side=left],#canvas-area,.splitter[data-side=right],.inspector{grid-row:1}
 #studio.expanded-walk{grid-template-rows:minmax(0,1fr)}#studio.expanded-walk #canvas-area,#studio.expanded-walk .game-header{grid-column:1;grid-row:1}
}
@media(min-width:761px) and (max-width:1200px){
 .game-header{margin:10px;gap:5px}.game-header .room-badge{padding:4px;border-radius:11px}.game-header .room-badge>div{display:none}.game-header #avatars{display:none}
}
@media(max-width:760px){
 #studio{grid-template-rows:minmax(230px,1fr) 35px minmax(180px,.85fr)}
 .game-header,#canvas-area{grid-column:1;grid-row:1}.mobile-switch{grid-row:2}.tool-sidebar,.inspector{grid-row:3}
 .game-header{margin:9px}.game-header .room-badge{padding:3px}.game-header .room-badge>div{display:none}.game-header #avatars{display:none}.game-header #change-name{display:inline-flex}
 .scene-badge,.tour-button{top:57px}#hint,#canvas-area:not([data-tool=select]) #hint{top:88px}#walk-tools{top:88px}#history-banner,#original-banner{top:117px}
 #studio.expanded-walk{grid-template-rows:minmax(0,1fr)}#studio.expanded-walk #canvas-area{grid-row:1}
}

/* Library typography and responsive catalog. Keep all existing catalog controls. */
:root{font-family:"Segoe UI","Microsoft YaHei UI","Microsoft YaHei",system-ui,sans-serif;--soft:#68766f}
.project-head{padding:16px 14px 10px;gap:10px}.project-head h2{font-size:15px;line-height:1.4;letter-spacing:0;font-weight:650}.project-head p{font-size:11px;color:#768079;line-height:1.5;margin-top:3px}
.task-rail{margin:8px 12px 12px}.task-rail button{font-size:12px;min-height:34px;font-weight:600}
.toolbox{padding-inline:12px}.builtin-heading{font-size:11px;color:#65736b;margin:10px 0 8px;font-weight:600}.builtin-heading span{display:none}
#room-furniture{gap:6px}#room-furniture button{display:flex;flex-direction:column;gap:4px;padding:6px 3px;background:#f5f7f4;border:1px solid #edf0eb;transform:none;box-shadow:none}
#room-furniture .product-photo{height:36px;width:100%;flex:none;aspect-ratio:auto;background:transparent}#room-furniture b{font-size:11px;font-weight:500;line-height:1.5;color:#4e6056}
#room-furniture .product-photo img{height:100%;width:100%;object-fit:contain}
#library #ikea-shelf{margin-top:14px;padding-top:14px;border-top:1px solid #e5eae5;gap:0}
.catalog-title{flex-wrap:nowrap;gap:8px;align-items:center;margin-bottom:10px;min-height:22px}.catalog-title h3{font-size:13px;line-height:1.4;font-weight:650;color:#35483e;gap:8px;white-space:nowrap}.catalog-title h3 img{width:34px;height:auto}
#ikea-count{font-size:11px;color:#6d7b72;white-space:nowrap;font-variant-numeric:tabular-nums}
.catalog-filters{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin:0 0 10px}
.search-field{min-height:36px;border:1px solid #e1e7e1;background:#f7f9f6;border-radius:9px;padding:0 9px;gap:6px}.search-field input{font-size:12px;line-height:1.5;padding:7px 0;color:#394f43}.search-field input::placeholder{color:#7c8981}.search-field svg{width:15px;height:15px;color:#7c8981}
.ikea-ready{display:flex;align-items:center;gap:6px;font-size:11px;color:#68796e;line-height:1.5}.ikea-ready input{width:13px;height:13px}
#ikea-notice{font-size:11px;color:#586f61;line-height:1.6;margin:0 0 8px}#ikea-notice:empty{display:none}
.catalog-browser{display:flex;flex-direction:column;gap:10px;min-height:0}
#ikea-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;max-height:94px;overflow-x:hidden;overflow-y:auto;flex:none;padding:0 4px 0 0;border:0;scrollbar-width:thin;scrollbar-color:#cad7ce transparent;scroll-padding:4px}
#ikea-categories button{width:100%;min-width:0;white-space:normal;line-height:1.4;font-size:11px;font-weight:400;padding:7px 6px;text-align:left;border:1px solid transparent;border-radius:6px;color:#68796e;background:#f5f7f3;box-shadow:none}
#ikea-categories button[aria-pressed=true]{background:#e9f3ed;border-color:#c8ded0;color:#356b51;font-weight:600;box-shadow:none}
.catalog-products{flex:1;min-height:0;padding:1px 3px 8px 0;scrollbar-gutter:stable;scrollbar-color:#ccd7ce transparent}
.catalog-products .ikea-grid{grid-template-columns:minmax(0,1fr);gap:8px}
.catalog-products .ikea-grid button{display:grid;grid-template-columns:68px minmax(0,1fr);grid-template-rows:auto auto auto 1fr;column-gap:10px;row-gap:2px;align-content:start;align-items:start;min-height:105px;padding:9px;border:1px solid #e4eae4;border-radius:10px;background:#fff;box-shadow:none;transform:none;text-align:left;transition:border-color .15s,background .15s}
.catalog-products .ikea-grid button:hover{transform:none;box-shadow:none;background:#f9fcf9;border-color:#a9c9b6}
.catalog-products .ikea-grid img{grid-column:1;grid-row:1/5;width:68px;height:78px;aspect-ratio:auto;margin:0;padding:6px;border:0;border-radius:7px;background:#f5f7f3;object-fit:contain;mix-blend-mode:multiply}
.catalog-products .ikea-grid b{grid-column:2;grid-row:1;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;overflow:hidden;overflow-wrap:anywhere;padding:0;font-size:12px;line-height:1.45;font-weight:600;color:#354a3e;letter-spacing:0}
.catalog-products .ikea-grid .product-measure{grid-column:2;grid-row:2;margin:0;padding:0;font-size:11px;line-height:1.5;font-weight:400;color:#65776a;font-variant-numeric:tabular-nums}
.catalog-products .ikea-grid small{grid-column:2;grid-row:3;padding:0;font-size:11px;line-height:1.5;color:#748176;white-space:nowrap;text-overflow:ellipsis;min-width:0}
.catalog-products .ikea-grid .model-state{grid-column:2;grid-row:4;align-self:end;margin:4px 0 0;padding:0;font-size:10px;line-height:1.5;color:#6a8070;gap:5px}.model-state::before{width:4px;height:4px;flex:none}
.ikea-pages{display:grid;grid-template-columns:1fr auto 1fr;gap:6px;align-items:center;padding:10px 0;margin:0;border-top:1px solid #e6ece5;font-size:11px}
.ikea-pages button{min-height:29px;font-size:11px;padding:5px 8px;border:1px solid #e5ebe2;border-radius:7px;background:#f5f8f2;color:#526b59;line-height:1.4}.ikea-pages button:disabled{opacity:.4}.ikea-pages #ikea-page{padding:0 4px;color:#6a786d;text-align:center;font-variant-numeric:tabular-nums}
.ikea-pages #ikea-discover{grid-column:1/-1;background:transparent;border:0;color:#64806c;min-height:25px;font-size:11px}
.original-link{font-size:11px;color:#718174;padding:10px 13px}
.inspector-label span,.property-panel h2{font-size:12px;font-weight:600;color:#536b59}.inspector-tabs button{font-size:11px;min-height:32px}#swap-view strong{font-size:12px;color:#536b59}#swap-view span{font-size:10px;color:#788879}
#rooms button{font-size:11px;line-height:1.5;color:#64785d;padding:6px}#rooms button[aria-pressed=true]{background:#e5efdf;color:#426437;border-color:#b7cbaa}
.camera-tools button,.walk-presets button{font-size:11px;color:#6b7d64}.views-title{font-size:11px;color:#6b7d64}.walk-presets{gap:5px}.walk-presets button{padding:5px 7px}
.empty-selection strong{font-size:12px;color:#6b7b61;line-height:1.6}.empty-selection p{font-size:11px;color:#7c8873;line-height:1.8}.empty-selection>span{font-size:10px}.footnote{font-size:10px;line-height:1.7;opacity:1;color:#8a9484}
.canvas-bar button{font-size:12px}.canvas-bar #export-cad{font-size:11px}.scene-badge strong,.tour-button{font-size:11px}#hint,#canvas-area:not([data-tool=select]) #hint{font-size:10px;color:#778572}
@container(min-width:320px){
 .catalog-filters{grid-template-columns:minmax(0,1fr) auto}
 #ikea-categories{grid-template-columns:repeat(3,minmax(0,1fr))}
 .catalog-products .ikea-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .catalog-products .ikea-grid button{grid-template-columns:minmax(0,1fr);grid-template-rows:auto 35px 17px 17px 19px;gap:4px;padding:9px;min-height:0}
 .catalog-products .ikea-grid img{grid-column:1;grid-row:1;width:100%;height:auto;aspect-ratio:1.25;padding:12px;margin-bottom:4px}
 .catalog-products .ikea-grid b{grid-column:1;grid-row:2}.catalog-products .ikea-grid .product-measure{grid-column:1;grid-row:3}.catalog-products .ikea-grid small{grid-column:1;grid-row:4}.catalog-products .ikea-grid .model-state{grid-column:1;grid-row:5;margin:0}
}
@media(max-width:760px){
 .tool-sidebar{container-type:inline-size}.catalog-products{overflow:visible}.catalog-browser{flex:none}.catalog-products .ikea-grid{gap:8px}.catalog-filters{grid-template-columns:minmax(0,1fr) auto}#ikea-categories{max-height:72px}.canvas-bar button{font-size:10px}.canvas-bar #export-cad{font-size:10px}
}
@media(prefers-reduced-motion:reduce){.catalog-products .ikea-grid button{transition:none}}
/* Fold secondary choices so catalog items retain the primary scroll area. */
.builtin-collection,.catalog-category-picker{flex:none;min-width:0}
.builtin-collection{margin:0;border-bottom:1px solid #e7ece6;padding-bottom:10px}
.builtin-collection summary,.catalog-category-picker summary{display:flex;align-items:center;gap:7px;list-style:none;cursor:pointer;font-size:12px;font-weight:550;color:#4c6556;line-height:1.5;padding:8px 2px;min-height:34px}
.builtin-collection summary::-webkit-details-marker,.catalog-category-picker summary::-webkit-details-marker{display:none}
.builtin-collection summary::before,.catalog-category-picker summary::before{content:'›';font-size:18px;line-height:14px;width:10px;color:#8a9d8c;transform-origin:center;transition:transform .15s}
.builtin-collection[open]>summary::before,.catalog-category-picker[open]>summary::before{transform:rotate(90deg)}
.builtin-collection summary span,.catalog-category-picker summary span{margin-left:auto;font-size:10px;font-weight:400;color:#7c8d7f}
.builtin-collection #room-furniture{margin-top:6px}
#library #ikea-shelf{margin-top:0;padding-top:14px;border-top:0}
.catalog-filters{grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-bottom:6px}.search-field input{font-size:11px}.ikea-ready{font-size:10px;gap:4px;white-space:nowrap}
.catalog-category-picker{border-bottom:1px solid #e8eee6;padding-bottom:6px}
.catalog-category-picker #ikea-categories{max-height:176px;margin:5px 0 2px;grid-template-columns:repeat(2,minmax(0,1fr))}
.catalog-products .ikea-grid .model-state{align-self:end}
@container(min-width:320px){.catalog-category-picker #ikea-categories{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Keep compact list rows independent of the longest item on the page. */
.catalog-products .ikea-grid{grid-auto-rows:auto;align-items:start}
.catalog-products .ikea-grid button{grid-template-rows:34px 16px 16px 16px;min-height:108px;height:auto}
.catalog-category-picker[open]>summary>span{font-size:0}.catalog-category-picker[open]>summary>span::after{content:'收起';font-size:10px}
@container(min-width:320px){.catalog-products .ikea-grid button{grid-template-rows:auto 35px 17px 17px 19px;min-height:0}}

/* The button and its notes share one folded-paper motif. */
#canvas-area{container-type:inline-size}
.game-header .idea-tool{display:inline-flex;align-items:center;justify-content:center;gap:7px;margin-left:auto;padding:0 13px;height:36px;flex:none;background:#3d6554;color:#fffdf3;border:1px solid #345b4b;border-radius:20px;font-size:12px;font-weight:650;white-space:nowrap;box-shadow:0 2px 8px #314d391a}
.game-header .idea-tool svg{width:21px;height:21px;color:#ffe6a1;flex:none}
.idea-light{fill:rgba(255,209,95,.10);animation:idea-glow 5.8s ease-in-out infinite}
.idea-rays{opacity:.24;transform-origin:14px 11px;animation:idea-rays 5.8s ease-in-out infinite}
@keyframes idea-glow{0%,32%,100%{fill:rgba(255,209,95,.10)}12%{fill:rgba(255,213,107,.83)}}
@keyframes idea-rays{0%,32%,100%{opacity:.24;transform:scale(.84)}14%{opacity:1;transform:scale(1.04)}}
.idea-tool:is(:hover,:focus-visible,[aria-pressed=true]) .idea-light{animation:none;fill:#f5c769;stroke:#fff0be}
.idea-tool:is(:hover,:focus-visible,[aria-pressed=true]) .idea-rays{animation:none;opacity:1}
.idea-tool:is(:hover,:focus-visible,[aria-pressed=true]) .idea-light path+path{stroke:#785b28}
@media(prefers-reduced-motion:reduce){.idea-tool .idea-light,.idea-tool .idea-rays{animation:none}}
.game-header .idea-tool:hover,.game-header .idea-tool[aria-pressed=true]{background:#294d40}
.game-header .idea-tool[aria-pressed=true]{outline:2px solid #a8c9b5;outline-offset:1px}
#studio[data-guest=false] .game-party{margin-left:0}
#studio[data-guest=true] .idea-tool{display:none}#canvas-area{--idea-marker:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2218%22%20height%3D%2222%22%20viewBox%3D%220%200%2028%2034%22%3E%3Cpath%20d%3D%22M14%2032C12%2029%202%2019%202%2013a12%2012%200%201%201%2024%200c0%206-10%2016-12%2019Z%22%20fill%3D%22%23BF5938%22%20stroke%3D%22%23FFFAE9%22%20stroke-width%3D%222%22%2F%3E%3Ccircle%20cx%3D%2214%22%20cy%3D%2213%22%20r%3D%224.3%22%20fill%3D%22%23FFF5D9%22%2F%3E%3C%2Fsvg%3E")}#canvas-area[data-tool=idea] canvas{cursor:var(--idea-marker) 9 21,crosshair}
#idea-pins{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:2}
.idea-pin{position:absolute;top:0;left:0;pointer-events:auto;width:28px;height:34px;padding:0;border:0;background:transparent;transition:none;filter:drop-shadow(0 1px 2px #362c2155);cursor:pointer}
.idea-pin .avatar{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:21px;height:21px;margin:0;box-sizing:border-box;border:1.5px solid #fff;border-radius:50%;overflow:hidden}
.idea-pin:is(:hover,:focus-visible){z-index:1;filter:drop-shadow(0 2px 3px #362c2177)}
.idea-excerpt{pointer-events:none;position:absolute;left:50%;bottom:100%;transform:translateX(-50%);width:max-content;max-width:170px;padding:5px 9px;border-radius:7px;background:#fff9ed;color:#44392b;font-size:12px;line-height:1.5;overflow:hidden;overflow-wrap:anywhere;text-align:left;display:none}
.idea-pin:is(:hover,:focus-visible) .idea-excerpt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
#idea-form::before{content:"";position:absolute;background:#d2c79ce8;transform:rotate(3deg)}
#canvas-area:not([data-tool=select]) .idea-pin{pointer-events:none}
#idea-dialog{width:min(400px,90vw);max-height:85vh;box-sizing:border-box;border:1px solid #dfd2ac;border-radius:5px 5px 19px 5px;padding:0;background:linear-gradient(155deg,#fff7d9,#fffbed 60%,#faf0ce);color:#3e392b;box-shadow:0 20px 64px #24382d40}
#idea-dialog::backdrop{background:#26392e48;backdrop-filter:blur(3px)}
#idea-form{position:relative;padding:26px}#idea-form::before{top:0;left:calc(50% - 22px);width:44px;height:8px}
#idea-form header{display:flex;align-items:center;justify-content:space-between}#idea-by{color:#796a49;font-size:12px}#idea-title{margin:5px 0 17px;font-size:23px;letter-spacing:.03em}#idea-close{align-self:flex-start;border:1px solid #dccfaa;border-radius:50%;width:27px;height:27px;background:#fffaf0;color:#726446;font-size:18px;line-height:1}
#idea-fields label{display:block;font-size:12px;font-weight:600;margin:12px 0 6px}#idea-text{width:100%;box-sizing:border-box;resize:vertical;min-height:100px;padding:7px 0;font:inherit;line-height:1.75;border:0;border-bottom:1px solid #cabb92;background:transparent;border-radius:0}#idea-text:focus-visible{outline:0;border-color:#557259}
#idea-fields .idea-upload{display:flex;align-items:center;gap:6px;width:fit-content;max-width:100%;padding:6px 9px;border:1px dashed #bcae87;border-radius:6px;cursor:pointer}#idea-file-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.idea-upload small{color:#857b60;font-weight:400}#idea-file{position:absolute;clip-path:inset(50%);width:1px;height:1px}#idea-fields:has(#idea-file:focus-visible) .idea-upload{outline:2px solid #456353}
#idea-save{display:block;margin:18px 0 0 auto;background:#355a49;color:white;border:0;padding:9px 18px;border-radius:9px;font-weight:600}#idea-form [hidden],.idea-pin[hidden]{display:none}#idea-error{color:#963d2e;font-size:13px}#idea-error:empty{display:none}#idea-message{margin:0 0 14px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}#idea-image{display:block;max-width:100%;max-height:48vh;border-radius:6px;object-fit:contain}
/* Flat backpack: three office assets, then one dense IKEA catalog. */
#library-panel .project-head{padding:12px 13px 7px;min-height:43px}#library-panel .project-head p{display:none}#library-panel .project-head h2{font-size:14px}
#library-panel .shelf-icon{width:27px;height:27px}#library-panel .task-rail{margin:6px 12px 10px}#library-panel .task-rail button{min-height:30px}
.builtin-collection{border:0;margin:0;padding:0}.builtin-collection #room-furniture{margin:0;gap:6px}
#room-furniture button{min-height:65px;padding:5px 3px;gap:3px;border-radius:8px}
#room-furniture .product-photo{height:35px}#room-furniture b{font-size:11px;white-space:nowrap}
#library #ikea-shelf{padding-top:12px;margin-top:12px;border-top:1px solid #e5eae5}
.catalog-title{margin-bottom:8px;min-height:20px}.catalog-title h3{font-size:12px}.catalog-title h3 img{width:31px}#ikea-count{font-size:10px}
.catalog-filters{margin:0 0 7px;gap:6px}.search-field{min-height:31px}.search-field input{padding:5px 0}
.catalog-browser{gap:8px}#ikea-category-select{flex:none;width:100%;height:30px;padding:4px 8px;font-size:11px;border:1px solid #e2e8e1;border-radius:7px;background:#f8faf6;color:#516a58}
.catalog-products{padding:0 3px 6px 0}
.catalog-products .ikea-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:auto;gap:7px;align-items:stretch}
.catalog-products .ikea-grid button{position:relative;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:60px 30px 14px;row-gap:3px;column-gap:0;min-height:0;height:122px;padding:6px;border-radius:8px;background:#fff;border:1px solid #e6ece4}
.catalog-products .ikea-grid img{grid-column:1;grid-row:1;width:100%;height:60px;aspect-ratio:auto;padding:4px;margin:0;border-radius:5px;background:#f6f8f3}
.catalog-products .ikea-grid b{grid-column:1;grid-row:2;align-self:center;font-size:11px;line-height:15px;max-height:30px;padding:0 1px;color:#3e5547}
.catalog-products .ikea-grid .product-measure{grid-column:1;grid-row:3;font-size:10px;line-height:14px;padding:0 1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#758474}
.catalog-products .ikea-grid small{display:none}
.catalog-products .ikea-grid .model-state{position:absolute;right:9px;top:9px;display:flex;grid-area:auto;margin:0;padding:0;font-size:0;line-height:1;gap:0;background:#ffffffd9;border-radius:50%;width:10px;height:10px;align-items:center;justify-content:center}
.catalog-products .model-state::before{width:5px;height:5px}
.ikea-pages{grid-template-columns:1fr auto 1fr;gap:4px;padding:6px 0}.ikea-pages button{min-height:26px;padding:4px 6px;font-size:10px}.ikea-pages #ikea-discover{grid-column:1/-1;min-height:19px;padding:1px;font-size:10px}
.original-link{min-height:29px;padding:7px 12px;font-size:10px}
@container(min-width:420px){.catalog-products .ikea-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.catalog-products{overflow:visible}.catalog-products .ikea-grid button{height:122px}.catalog-filters{grid-template-columns:minmax(0,1fr) auto}}
/* Six compact items fit the catalog viewport on a typical desktop window. */
.catalog-products .ikea-grid button{height:100px;grid-template-rows:56px 15px 13px;row-gap:2px;padding:5px}
.catalog-products .ikea-grid img{height:56px}
.catalog-products .ikea-grid b{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-height:15px;line-height:15px}
.catalog-products .ikea-grid .product-measure{line-height:13px}
#library-panel .project-head{min-height:39px;padding-top:10px;padding-bottom:5px}
#library-panel .task-rail{margin-bottom:6px}
#room-furniture button{min-height:61px;padding-top:3px;padding-bottom:3px}
#library #ikea-shelf{padding-top:8px;margin-top:8px}

/* Content-sized catalog cards: no reserved title/specification rows. */
#ikea-shelf .catalog-products .ikea-grid{grid-template-columns:repeat(auto-fill,minmax(min(96px,100%),1fr));gap:6px;grid-auto-rows:auto;align-items:stretch}
#ikea-shelf .catalog-products .ikea-grid button{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;height:auto;min-height:0;padding:4px;border:1px solid #edf0eb;border-radius:6px;box-shadow:none;background:transparent}
#ikea-shelf .catalog-products .ikea-grid img{width:100%;height:58px;flex:none;margin:0 0 3px;padding:1px;border:0;border-radius:3px;background:#f8faf6;object-fit:contain}
#ikea-shelf .catalog-products .ikea-grid b{display:block;flex:none;margin:0;padding:0 1px;font-size:11px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-height:none}
#ikea-shelf .catalog-products .ikea-grid .product-measure,#ikea-shelf .catalog-products .ikea-grid small{display:block;flex:none;margin:1px 0 0;padding:0 1px;font-size:10px;font-weight:400;line-height:14px;color:#73816e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#ikea-shelf .catalog-products .ikea-grid button:has(.product-measure) small{display:none}
#ikea-shelf .catalog-products .ikea-grid .model-state{position:absolute;right:7px;top:7px;display:flex;width:8px;height:8px;padding:0;margin:0;gap:0;font-size:0;line-height:1;align-items:center;justify-content:center;border-radius:50%;background:#ffffffdf}
#ikea-shelf .catalog-products .ikea-grid button:hover{background:#f4f8f2;border-color:#b8d0bd;transform:none;box-shadow:none}

#ikea-shelf .catalog-products .ikea-grid{grid-template-columns:repeat(auto-fill,minmax(min(88px,100%),1fr))}
#ikea-shelf .catalog-products .ikea-grid img{height:52px}
#ikea-shelf .catalog-products .ikea-grid b,#ikea-shelf .catalog-products .ikea-grid .product-measure,#ikea-shelf .catalog-products .ikea-grid small{text-align:left}

#ikea-scope{display:flex;flex:none;gap:2px;background:#edf1eb;border-radius:9px;padding:3px}
#ikea-scope button{flex:1;min-height:27px;border-radius:7px;color:#657569;font-size:11px}
#ikea-scope button[aria-pressed=true]{background:#fffefa;color:#304f40;font-weight:650;box-shadow:0 1px 3px #283c251c}
#ikea-shelf .catalog-filters{grid-template-columns:minmax(0,1fr)}
/* Availability belongs to each item, not a separate catalog scope. */
#ikea-shelf .catalog-products .ikea-grid .model-state{position:absolute;top:6px;right:6px;width:auto;height:auto;min-height:16px;padding:2px 4px;border:1px solid #dce9df;border-radius:4px;font-size:9px;font-weight:500;line-height:12px;white-space:nowrap;background:#f0f8f1ed;color:#356949;gap:0}
#ikea-shelf .catalog-products .ikea-grid .model-state::before{display:none}
#ikea-shelf .ikea-grid [data-model=unavailable] .model-state{background:#f6f1edee;border-color:#e9dfd7;color:#8c6851}
#ikea-shelf .ikea-grid [data-model=unchecked] .model-state,#ikea-shelf .ikea-grid [data-model=checking] .model-state{background:#f4f6f2ee;border-color:#e3e8de;color:#77816c}
#ikea-shelf .catalog-products .ikea-grid button:disabled{opacity:1;cursor:default}
#ikea-shelf .ikea-grid [data-model=unavailable] img{opacity:.65}

/* Idea placement cursor: visible pin with its tip as the click hotspot. */
#canvas-area{--idea-placement-cursor:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2232%22%20height%3D%2240%22%20viewBox%3D%220%200%2032%2040%22%3E%3Cpath%20d%3D%22M16%2038C13%2034%203%2023%203%2015a13%2013%200%201%201%2026%200c0%208-10%2019-13%2023Z%22%20fill%3D%22%23BF5938%22%20stroke%3D%22%23FFFAE9%22%20stroke-width%3D%222%22%2F%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%2215%22%20r%3D%225%22%20fill%3D%22%23FFF5D9%22%2F%3E%3C%2Fsvg%3E")}
#canvas-area[data-tool="idea"],#canvas-area[data-tool="idea"]>canvas,#canvas-area[data-tool="idea"]>canvas:active{cursor:var(--idea-placement-cursor) 16 38,crosshair}

/* Usability pass: readable chrome, consistent hit areas, compact catalog retained. */
.game-header #people,.game-header #change-name{min-height:32px;font-size:11px}
.game-header .help-button{width:32px;height:32px;min-width:32px;font-size:14px;color:#4e6758}
.game-header .idea-tool{min-height:36px}
#swap-view{min-height:32px;gap:8px}#swap-view span{color:#687a6b}
#rooms button,.camera-tools button,.walk-presets button{min-height:32px;color:#536b59;font-size:11px}
#rooms button{padding:5px 6px}.camera-tools button{padding:5px 9px}.camera-tools #reset{min-width:48px}
.walk-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.walk-presets button{width:100%;min-width:0;padding:5px 2px;font-size:10px;white-space:nowrap}
.views-title{color:#62765f;margin-top:12px}
.room-pin{width:25px;height:25px;font-size:10px}
.tour-button{min-height:32px;color:#526e5b}.wall-switch{min-height:32px;color:#5c735d;font-size:10px}
.canvas-bar button{min-height:36px;min-width:32px;color:#52685c}.canvas-bar #export-cad{color:#68765a}
#hint,#canvas-area:not([data-tool=select]) #hint{color:#65765d;font-size:10px}
#ikea-shelf .search-field{min-height:34px}#ikea-shelf .search-field input{font-size:12px;color:#42594a}
#ikea-category-select{height:34px;font-size:12px}
#ikea-count,.ikea-pages #ikea-page{color:#65745e}.ikea-pages button{min-height:30px;font-size:11px}.ikea-pages #ikea-discover{min-height:26px}
#ikea-shelf .catalog-products .ikea-grid b{align-self:stretch;color:#3e5547}
#ikea-shelf .catalog-products .ikea-grid .product-measure,#ikea-shelf .catalog-products .ikea-grid small{align-self:stretch;color:#63775e}
#ikea-shelf .catalog-products .ikea-grid .model-state{font-size:10px;line-height:12px}
.empty-selection{display:grid;grid-template-columns:30px minmax(0,1fr);column-gap:9px;row-gap:4px;align-items:start;text-align:left;padding:10px 0}
.empty-selection>svg{width:28px;height:28px;grid-column:1;grid-row:1/3;margin:0;transform:none;opacity:.85}
.empty-selection strong{grid-column:2;font-size:11px;line-height:1.6;color:#526a55}
.empty-selection p{grid-column:2;margin:0;font-size:11px;line-height:1.65;color:#687960}
.empty-selection>span{grid-column:2;color:#6d7d63;font-size:10px}
.footnote{font-size:10px;color:#73816b;line-height:1.7}
#photo-close,#idea-close,.guide-title button{display:inline-grid;place-items:center;width:36px;height:36px;min-width:36px;padding:0;line-height:1;font-size:22px;border-radius:9px}
.dialog-actions button,.dialog-actions a,#idea-save{min-height:38px;display:inline-flex;align-items:center;justify-content:center;font-size:12px}
.dialog-actions button:not(.primary){background:#f1f5ef;border:1px solid #e3e9df;border-radius:9px}
dialog select,dialog input:not([type=file]){min-height:36px;font-size:13px}
button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #39745c;outline-offset:2px}
@media(min-width:761px) and (max-width:1100px){
 #studio[data-guest=false] .game-header .room-badge{display:none}
 .canvas-bar{gap:2px}.canvas-bar button{padding-inline:5px;min-width:30px;font-size:11px}
}
@media(min-width:761px) and (max-width:950px){
 .game-header .idea-tool{padding:6px 9px}.game-header .idea-tool>span{display:none}
}
@media(max-width:760px){
 .game-header #people,.game-header #change-name{min-height:36px;font-size:11px}.game-header .help-button{width:36px;height:36px;min-width:36px}
 #studio[data-guest=false] .game-header .room-badge{display:none}
 .game-header .idea-tool{min-height:40px;padding:6px 9px;font-size:11px}
 .mobile-switch{min-height:40px}.mobile-switch button{min-height:40px;font-size:12px;padding:5px 14px}
 #studio{grid-template-rows:minmax(270px,1fr) 40px minmax(180px,.85fr)}
 .canvas-bar{width:calc(100% - 20px);max-width:390px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;padding:5px;bottom:10px;box-sizing:border-box}
 .canvas-bar>button[data-tool=select]{grid-column:1;grid-row:1}.canvas-bar>#undo{grid-column:2;grid-row:1}
 .canvas-bar>#redo{grid-column:3;grid-row:1}
 .canvas-bar>.views{grid-column:4/6;grid-row:1}.canvas-bar>.zoom{grid-column:6/8;grid-row:1}
 .canvas-bar>#export-cad{grid-column:1/4;grid-row:2}.canvas-bar>#open-photo{grid-column:4/8;grid-row:2}
 .canvas-bar button,.canvas-bar #export-cad{min-height:40px;min-width:0;font-size:12px;padding:0 5px}
 .canvas-bar .bar-group{display:flex;gap:2px;padding:0;border:0}.canvas-bar .bar-group button{flex:1;min-width:0}
 .canvas-bar #open-photo{font-size:12px;padding:0 8px}
 .wall-switch{bottom:112px;min-height:36px;font-size:10px}.build-dock,#pose-hud{bottom:112px}
 .scene-badge{top:65px}.tour-button{top:62px;min-height:36px;font-size:11px}#hint,#canvas-area:not([data-tool=select]) #hint,#walk-tools{top:106px}
 #history-banner,#original-banner{top:140px}
 #ikea-category-select{height:38px}#ikea-shelf .search-field{min-height:38px}
 .ikea-pages button{min-height:36px}.ikea-pages #ikea-discover{min-height:32px}
 #rooms button,.camera-tools button,.walk-presets button{min-height:40px;font-size:11px}.room-pin{width:28px;height:28px}
 #photo-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:16px}
 .photo-settings{flex-wrap:wrap;gap:8px}.photo-settings label{min-width:0;flex:1 1 95px}
 #photo-close,#idea-close,.guide-title button{width:40px;height:40px;min-width:40px}
 .dialog-actions button,.dialog-actions a,#idea-save,dialog select{min-height:44px}
 #studio.expanded-walk{grid-template-rows:minmax(0,1fr)}
}

/* IKEA product thumbnails retain their original white backdrop. */
#ikea-shelf .catalog-products .ikea-grid img{background:#fff;mix-blend-mode:normal}
/* Wish wall: shared notes in the inspector, full detail anchored to the scene. */
.wish-wall-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.wish-wall-heading h2{font-size:13px;font-weight:650;color:#405d49}.wish-wall-heading>span{font-size:11px;color:#6b7d65;font-variant-numeric:tabular-nums}
.wish-wall-hint{font-size:10px;line-height:1.6;color:#7a876f;margin:5px 0 10px}
#wish-empty{font-size:11px;line-height:1.8;color:#77866c;padding:10px 0}
#wish-list{display:flex;flex-direction:column;gap:7px}
.wish-entry{display:flex;flex-direction:column;align-items:stretch;gap:5px;width:100%;min-width:0;text-align:left;padding:10px;background:#faf9f0;border:1px solid #eae7d7;border-radius:9px;transition:background .15s,border-color .15s}
.wish-entry:hover{background:#f5f7ee;border-color:#bdcfb7}.wish-entry.is-active{background:#eef5e8;border-color:#8fb78f;box-shadow:inset 3px 0 #739b72}
.wish-entry-person,#wish-detail-person{display:flex;align-items:center;gap:7px;min-width:0}
.wish-entry-person .avatar,#wish-detail-person .avatar{margin:0;width:23px;height:23px;flex:none;font-size:10px}
.wish-entry-person strong{font-size:12px;font-weight:600;color:#3d5846;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wish-entry-location{font-size:10px;line-height:1.5;color:#7c8771;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wish-entry-text{font-size:12px;line-height:1.65;color:#53664b;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.idea-pin.is-active{z-index:5;filter:drop-shadow(0 0 5px #639263)}
.idea-pin.is-active .avatar{outline:3px solid #6e9d6b;outline-offset:3px}
#wish-detail{position:absolute;z-index:8;left:0;top:0;width:min(300px,calc(100% - 20px));max-height:calc(100% - 164px);box-sizing:border-box;display:flex;flex-direction:column;padding:12px;background:#fffdf2f5;border:1px solid #dcdac2;border-radius:12px;box-shadow:0 8px 32px #263b2a24;backdrop-filter:blur(12px);pointer-events:auto}
#wish-detail>header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none}
#wish-detail-person strong{font-size:12px;color:#3d5744;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#wish-detail-close{width:32px;height:32px;flex:none;border-radius:8px;background:#f0f2e6;color:#60745a;font-size:21px;line-height:1}
#wish-detail-location{margin:3px 0 9px;color:#7d846b;font-size:11px;line-height:1.5;flex:none}
.wish-detail-body{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
#wish-detail-text{font-size:13px;color:#3f533c;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
#wish-detail-picture{display:block;width:100%;margin-top:10px;padding:0;background:#f1f3e8;border-radius:7px;overflow:hidden;text-align:center}
#wish-detail-image{display:block;max-width:100%;max-height:180px;width:100%;object-fit:contain;background:#fff}
#wish-detail-picture span{display:block;font-size:10px;line-height:1.5;padding:5px;color:#6e7e62}
@media(max-width:760px){
 #wish-detail{max-height:calc(100% - 190px);padding:10px;width:min(300px,calc(100% - 20px))}
 #wish-detail-close{width:36px;height:36px}#wish-detail-image{max-height:130px}.wish-entry{min-height:44px}
}
@media(prefers-reduced-motion:reduce){.wish-entry{transition:none}}


.idea-attachment{display:flex;align-items:center;gap:10px;margin-top:8px}
.idea-attachment img{display:block;width:84px;height:60px;object-fit:contain;border-radius:5px;background:#eee9d9}
.idea-attachment button{padding:6px;color:#665e4c;text-decoration:underline;font-size:12px}

/* Keyboard and trackpad controls */
#redo svg{transform:scaleX(-1)}
.navigation-setting{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;font-weight:600}.navigation-setting select{min-height:36px;padding:5px 12px;border:1px solid #dce3d5;border-radius:10px;background:white;color:inherit}#navigation-help{font-size:12px;line-height:1.8;color:#65765d}#canvas-area[data-navigation-pan=true]>canvas{cursor:grab}#game-guide{max-height:calc(100dvh - 32px);overflow:auto}


.download-list{display:grid;gap:6px}.download-list button{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px;text-align:left;border-radius:8px;border:1px solid #dbe3d9;background:#fcfdf8;color:#374e40}.download-list button:hover{background:#edf4ea}.download-list small{font-size:11px;color:#637669}#download-status{max-width:400px;font-size:12px}

#building-metrics { margin:12px 0; }
#building-metrics h3 { font-size:13px; }
#metric-values { margin:6px 0; }
#metric-values div { display:grid; grid-template-columns:1fr auto; padding:6px 0; border-bottom:1px solid #dce5df; }
#metric-values dt { font-size:12px; }
#metric-values dd { margin:0; font-size:14px; font-weight:650; font-variant-numeric:tabular-nums; }
#metric-values small { grid-column:1/-1; color:var(--soft); font-size:10px; }

span.plan-dimension:is([data-group=source],[data-group=window],[data-group=wall]) { pointer-events:none; border:0; padding:0 1px; border-radius:0; background:transparent; box-shadow:none; color:#304e60; font:500 11px/1.1 Arial,sans-serif; text-shadow:0 0 3px #fff,0 0 2px #fff; }
span.plan-dimension[data-group=window] { color:#235663; }

#window-dim-key { display:block; margin:6px 0; color:var(--soft); font-size:10px; }
#window-dim-key[hidden] {display:none;}
