.furniture-trigger {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  background:var(--green); color:white; border-radius:6px; font-size:13px; font-weight:600;
  min-height:40px; padding:9px 15px; white-space:nowrap;
}
.furniture-trigger svg {width:19px;height:19px}
.furniture-trigger:hover,.furniture-trigger[aria-expanded=true] {background:#183a2c}
.plan-controls {gap:12px}
.placement-buttons #direct-scene-place,.space-toolbar #scene-place {background:#fff;color:var(--ink);border:1px solid var(--rule)}
#furniture-workbench {max-width:1280px;margin:0 auto}
#furniture-plan-slot:has(> [hidden]),#furniture-plan-slot:empty,#furniture-scene-slot:empty {display:none}
body.editing-furniture-plan #furniture-workbench {display:grid;grid-template-columns:268px minmax(0,1fr);align-items:start;gap:20px;padding:18px 42px 0}
body.editing-furniture-plan .map-area {margin:0;width:100%;padding:0}
body.editing-furniture-plan .map-plate {min-width:0}
#furniture-editor {width:100%;border:1px solid var(--rule);border-radius:10px;padding:16px 17px;background:#fff;color:var(--ink);font-size:13px;line-height:1.45}
#furniture-scene-slot:not(:empty):has(> :not([hidden])) {width:277px;flex-shrink:0;padding:12px;background:var(--paper);overflow:auto}
#furniture-scene-slot:has(> [hidden]) {display:none}
#furniture-scene-slot #furniture-editor {padding:13px}
.furn-heading,.furn-controls,.furn-actions,.furn-save-row {display:flex;align-items:center;justify-content:space-between;gap:8px}
.furn-heading {margin-bottom:12px}
.furn-heading h2 {font-size:17px;letter-spacing:-.03em;font-weight:650}
.furn-heading button {width:30px;height:30px;display:grid;place-items:center;border-radius:5px}
.furn-heading button:hover {background:var(--paper)}
.furn-heading svg {height:16px;width:16px}
#furniture-item {width:100%;max-width:100%;min-height:36px;padding:5px 9px;border:1px solid var(--rule);border-radius:5px;background:var(--white);font-size:14px;font-weight:550}
.furn-product {display:flex;align-items:center;gap:10px;margin:10px 0}
.furn-product img {width:68px;height:58px;object-fit:contain;background:#f5f4ef;border-radius:4px;padding:3px}
.furn-product small,.furn-product a,.furn-product span {display:block}
.furn-product small,.furn-product span {color:#59655f;font-size:11px}
.furn-product a {font-weight:600;font-size:13px;line-height:1.7}
.furn-product a:hover,.furn-actions button:hover {text-decoration:underline;text-underline-offset:3px}
#furniture-instructions {border-top:1px solid var(--rule);padding-top:10px;color:#526058;font-size:12px;line-height:1.5;margin-bottom:7px;word-break:keep-all}
#furniture-selection {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 8px;margin-bottom:4px;border-radius:5px;background:var(--paper);color:var(--green);font-size:12px;font-weight:600}
#furniture-clear-selection {min-height:36px;padding:5px 4px}
#furniture-clear-selection:hover:not(:disabled) {text-decoration:underline;text-underline-offset:3px}
.furn-controls {min-height:36px}
.furn-controls>span {font-weight:600;white-space:nowrap;display:flex;align-items:baseline;gap:4px}
.furn-controls small {color:var(--muted);font-size:10px;font-weight:400}
.furn-buttons {display:flex;gap:3px}
.furn-buttons button {height:31px;min-width:29px;padding:0 6px;border:1px solid var(--rule);background:#fff;border-radius:4px;line-height:1}
.furn-buttons button:hover {border-color:#779382}
.furn-turn button {min-width:55px}
.furn-actions {border-top:1px solid var(--rule);padding-top:7px;margin-top:6px}
.furn-actions button {color:var(--green);padding:5px 0;font-size:12px}
.furn-actions button:disabled {color:var(--muted);text-decoration:none;cursor:default}
.furn-save-row {margin-top:9px}
.furn-save-row button {flex:1;min-height:38px;border:1px solid var(--rule);border-radius:5px;font-weight:600}
#furniture-save {background:var(--green);color:#fff;border-color:var(--green)}
#furniture-save:disabled {background:#edf0eb;color:#7a837b;border-color:#e4e8e1}
.furn-save-row button:disabled {opacity:1;cursor:default}
#furniture-share:disabled {color:#929a93}
#furniture-status:not(:empty) {margin-top:9px;color:var(--green);font-size:12px;line-height:1.5}
#furniture-status.is-error {color:#934b28}
#furniture-link {font:inherit;font-size:12px;width:100%;margin-top:8px;padding:6px;border:1px solid var(--rule);border-radius:4px}
#furniture-shared {max-width:1196px;margin:10px auto 0;padding:0 14px;font-size:13px}
#furniture-shared a {color:var(--green);text-decoration:underline;margin-left:12px}
svg.furniture-map {position:absolute;inset:0;width:100%;height:100%;pointer-events:none;stroke:none;fill:none;overflow:visible;z-index:0}
.furniture-map :is(rect,polygon) {stroke:none;fill:transparent}
.editing-furniture-plan #map-plate>.furniture-map {z-index:10;pointer-events:auto;touch-action:none;cursor:crosshair}
.editing-furniture-plan #map-plate>.furniture-map g {cursor:grab}
.editing-furniture-plan #map-plate>.furniture-map g:active {cursor:grabbing}
.editing-furniture-plan .furniture-map .is-selected :is(rect,polygon) {stroke:#447853;stroke-width:.055;fill:#75b98220}
.furniture-map .furniture-range {pointer-events:none;stroke:var(--green);stroke-width:1.5;stroke-dasharray:5 3;fill:#75b9822b;vector-effect:non-scaling-stroke}
.editing-furniture-plan #map-plate > :is(#map-points,#art-map-points,#place-layer) {visibility:hidden}
.mini-map-button>.furniture-map {inset:6px 6px 23px;width:calc(100% - 12px);height:calc(100% - 29px)}
.photos-plan-plate #photos-plan-direction {z-index:1}
@media(max-width:900px) {
  body.editing-furniture-plan #furniture-workbench {padding:13px 20px 0;grid-template-columns:240px minmax(0,1fr);gap:12px}
  .space-toolbar {gap:8px}
}
@media(max-width:700px) {
  .plan-controls {gap:6px;flex-wrap:wrap}
  .plan-controls .placement-buttons button,.furniture-trigger {padding:7px 10px;min-height:36px;font-size:12px}
  body.editing-furniture-plan #furniture-workbench {display:flex;flex-direction:column;align-items:stretch;padding:9px 12px 0}
  body.editing-furniture-plan #furniture-plan-slot {order:1}
  body.editing-furniture-plan .map-area {max-width:460px;align-self:center}
  body.editing-furniture-plan .map-caption {display:none}
  #furniture-editor {padding:11px 13px}
  .furn-heading {margin-bottom:6px}
  .furn-product {margin:6px 0}
  .furn-product img {height:43px;width:61px}
  .space-toolbar #furniture-scene,.space-toolbar #scene-place {min-height:34px;font-size:12px;padding:6px 8px}
  #furniture-scene-slot:not(:empty):has(> :not([hidden])) {width:100%;padding:8px 12px;overflow:visible}
  body.editing-furniture-scene .space-layout {flex-direction:column;height:auto;min-height:0}
  body.editing-furniture-scene .viewer-wrap {flex:none;height:clamp(260px,42svh,440px);order:-1}
  body.editing-furniture-scene .viewer-bottom,body.editing-furniture-scene .movement-controls,body.editing-furniture-scene .scene-hint {display:none}
  #furniture-scene-slot #furniture-editor {padding:9px 12px}
  .furn-buttons button {min-width:35px;height:33px}
  .furn-save-row button {min-height:40px}
}
