#room-editor summary[aria-haspopup="dialog"]{display:flex;align-items:center;gap:12px;min-height:54px;padding:8px 13px;list-style:none;color:#292331}
#room-editor summary[aria-haspopup="dialog"]::-webkit-details-marker{display:none}
#room-editor summary[aria-haspopup="dialog"]:hover{background:#f8f0fb}
.parameter-launch{margin-left:auto;color:#62406e;font-size:1.2rem}
.parameter-icon{display:block;width:32px;height:34px;flex:none;fill:none;stroke:#513365;stroke-width:1.25;stroke-linejoin:round;stroke-linecap:round}
.parameter-icon .icon-plane{fill:#ead9f8}.parameter-icon .icon-depth{fill:#c6a7e2}
.parameter-dialog{box-sizing:border-box;width:min(780px,calc(100% - 28px));max-width:none;max-height:min(90dvh,880px);overflow:auto;overscroll-behavior:contain;border:1px solid #d9cce0;border-radius:15px;padding:0;color:#28232b;background:#fff;box-shadow:0 20px 65px #21112b44}
.parameter-dialog::backdrop{background:#25172870}
.parameter-dialog-head{display:flex;align-items:center;gap:10px;position:sticky;z-index:1;top:0;background:#faf7fc;color:#291735;border-bottom:1px solid #e1d7e8;padding:9px 15px}
.parameter-dialog-head h3{flex:1;margin:0;font-size:clamp(1.03rem,2vw,1.33rem);line-height:1.2}
#room-editor .parameter-dialog-head button{width:44px;height:44px;min-height:44px;padding:0;font-size:1.55rem}
.parameter-dialog-message:not(:empty){padding:12px 15px;margin:0;background:#f4eef8;border-top:1px solid #e1d7e8}
#room-editor .front-options{min-width:0;padding:14px;border:1px solid #ddd1e4;border-radius:9px;background:#fbf8fc}
.front-options legend{font-weight:670}
.front-options>p{color:#554c59;font-size:.88rem;margin:.55rem 0}
.front-options>label{max-width:330px}
.front-preview{width:min(132px,45vw);height:108px;margin:6px auto;background:white;border:1px solid #e0d8e3;border-radius:10px;padding:8px}
#room-editor .front-colors{padding:0;border:0;margin:10px 0;min-width:0}
.front-colors>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(83px,100%),1fr));gap:5px;margin-top:8px}
#room-editor .front-colors label{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:start;gap:4px;min-height:64px;text-align:center;border:1px solid #dfd8e1;border-radius:7px;background:white;cursor:pointer;padding:5px 4px;font-size:.75rem;line-height:1.15}
#room-editor .front-colors input{position:absolute;inset:auto;width:1px;height:1px;opacity:0}
.front-color-sample{display:block;width:31px;height:24px;background:var(--sample,linear-gradient(135deg,#fff 47%,#8b7c92 48%,#8b7c92 52%,#fff 53%));border-radius:5px;border:1px solid #36283955}
#room-editor .front-colors label:has(input:checked){border-color:#754b91;box-shadow:inset 0 0 0 1px #754b91;background:#f7edfc;font-weight:690}
#room-editor .front-colors label:has(input:focus-visible){outline:3px solid #8941c8;outline-offset:2px}
#room-editor [data-r-action=editFront]{min-height:44px}
@media(max-width:600px){.parameter-dialog{width:calc(100% - 14px);max-height:calc(100dvh - 18px);border-radius:11px}.parameter-dialog-head{padding:7px 9px}.parameter-dialog .room-grid{gap:8px}.parameter-dialog-head .parameter-icon{width:28px;height:29px}#room-editor .front-options{padding:9px}}

#room-editor .room-3d-actions,.room-move-steps {display:flex;flex-wrap:wrap;gap:6px;align-items:center}
#room-editor .room-3d-actions {padding:8px 10px;border-bottom:1px solid #e5dae9;background:#fcf9fd}
#room-editor .room-3d-actions button,#room-editor .module-inspector [data-r-action="toggleFronts"] {min-height:44px;padding:6px 11px;font-size:.86rem}
#room-editor :is([data-r-action="moveMode"],[data-r-action="toggleFronts"])[aria-pressed="true"] {background:#eadbf4;border-color:#8551a6;color:#361347}
#room-editor .room-move-hint,#room-editor .room-move-status {margin:0;padding:6px 10px;font-size:.82rem;line-height:1.4}
#room-editor .room-move-status {color:#853547}
#room-editor .room-move-status:empty {display:none}
#room-editor canvas[data-move-mode] {touch-action:none;cursor:grab}
#room-editor canvas[data-move-mode]:active {cursor:grabbing}
@media(max-width:480px){
  #room-editor .room-3d-actions {padding:6px}
  #room-editor .room-3d-actions > button {flex:1 1 130px}
  .room-move-steps {width:100%}
  .room-move-steps button {flex:1 1 auto}
}

#room-editor [data-room-section="catalog"] {
  border-color:#ded1e5;
  border-radius:15px;
  background:#fff;
  box-shadow:var(--site-shadow);
}
#room-editor [data-room-section="catalog"] > summary {
  min-height:56px;
  padding:13px 110px 11px 15px;
  color:#30123e;
  font-size:clamp(1.05rem,2vw,1.35rem);
  font-weight:760;
}
#room-editor [data-room-section="catalog"] .shelf-tools {
  top:6px;right:12px;gap:0;
  border:1px solid #ded1e5;border-radius:28px;background:#faf6fc
}
#room-editor [data-room-section="catalog"] .shelf-tools button {
  display:grid;place-items:center;width:44px;min-height:44px;
  padding:0;border:0;border-radius:24px;background:transparent;color:#641789
}
#room-editor .shelf-tools svg {width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#room-editor [data-room-section="catalog"] .shelf-tools button[aria-disabled="true"] {color:#9a829e;cursor:default}
#room-editor [data-room-section="catalog"] .shelf-tools button:not([aria-disabled="true"]):is(:hover,:focus-visible) {background:#efdef7}
#room-editor .shelf-tools button + button {position:relative}
#room-editor .shelf-tools button + button::before {content:"";position:absolute;inset:11px auto 11px 0;width:1px;background:#ded1e5}
#room-editor .room-library {
  gap:9px;
  padding:4px 3px 12px;
  scroll-padding-inline:3px;
  scrollbar-width:none;
}
#room-editor .room-library::-webkit-scrollbar {display:none}
#room-editor .room-library:has(> button:focus-visible) {scroll-snap-type:none}
#room-editor .room-library>button {
  grid-template-rows:auto minmax(2.4em,auto) auto;
  align-items:center;align-content:start;
  flex-basis:clamp(122px,10.5vw,153px);
  gap:5px;padding:8px;
  border-color:#e4dce8;border-radius:13px;
  background:white;color:#30123e;
  font-size:.86rem;font-weight:690;
}
#room-editor .room-library>button:hover,#room-editor .room-library>.shelf-active {
  background:#fbf6fd;border-color:#8a35b6;box-shadow:inset 0 0 0 1px #b479d3;
}
#room-editor .room-library .module-preview {
  position:relative;height:auto;aspect-ratio:1.125;
  border-radius:9px;background:#fff;
}
#room-editor .room-library .module-preview > svg {display:block;width:100%;height:100%}
#room-editor .module-photo {
  display:block;width:100%;height:100%;
  background:url('/atelier/module-catalog.webp') var(--module-col,0%) var(--module-row,0%) / 400% 300% no-repeat;
}
#room-editor [data-library="drawers"],#room-editor [data-library="island"],#room-editor [data-library="dishwasher"] {--module-col:calc(100% / 3)}
#room-editor [data-library="base"],#room-editor [data-library="fridge"] {--module-col:calc(200% / 3)}
#room-editor [data-library="tall"],#room-editor [data-library="oven"] {--module-col:100%}
#room-editor :is([data-library="upper"],[data-library="island"],[data-library="fridge"],[data-library="oven"]) {--module-row:50%}
#room-editor :is([data-library="hob"],[data-library="dishwasher"]) {--module-row:100%}
#room-editor .room-library .module-name {line-height:1.2}
#room-editor .room-library .module-size {color:#605264;font-size:.72rem;font-weight:550;white-space:nowrap}
#room-editor .shelf-footer {display:flex;align-items:start;flex-wrap:wrap;gap:8px;margin-top:4px}
#room-editor [data-room-section="placement"] {margin:0;border:0;background:transparent}
#room-editor [data-room-section="placement"] > summary {
  width:fit-content;min-height:44px;padding:6px 12px;
  border:1px solid #ded1e5;border-radius:10px;background:#faf6fc;color:#5d266f;font-size:.85rem
}
#room-editor [data-room-section="placement"] > summary .parameter-icon {width:23px;height:24px}
#room-editor [data-room-section="placement"] .parameter-dialog {width:min(520px,calc(100% - 24px))}
#room-editor [data-room-section="placement"] .room-actions {margin-top:12px}
#room-editor [data-room-section="catalog"] summary::marker {color:#7919ad}
@media(max-width:480px){
  #room-editor [data-room-section="catalog"] > summary {padding-left:10px}
  #room-editor .room-library>button {flex-basis:118px;font-size:.81rem}
  #room-editor [data-room-section="catalog"] .shelf-tools {right:7px}
}

#room-editor .module-inspector-compact {
  display:flex;flex-direction:column;align-self:start;gap:0;padding:14px;
  border-color:#dfcde7;border-radius:16px;background:#fff;color:#301440;
  box-shadow:0 6px 18px #3312460e;
}
#room-editor .inspector-hero {display:grid;justify-items:center;gap:10px;text-align:center;padding:4px 0 17px}
#room-editor .inspector-preview {width:min(178px,100%);height:clamp(132px,12vw,166px);margin:0}
#room-editor .inspector-hero h3 {color:#301440;font:780 clamp(1.1rem,1.5vw,1.36rem)/1.18 system-ui;letter-spacing:-.035em}
#room-editor .inspector-hero h3 span {display:block}
#room-editor .inspector-quick-actions {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;
  padding-block:14px;border-top:1px solid #ebdfee;border-bottom:1px solid #ebdfee;
}
#room-editor .inspector-quick-actions button {
  min-height:74px;min-width:0;display:grid;place-content:center;justify-items:center;gap:5px;
  padding:8px 5px;border:1px solid #e9dcef;border-radius:11px;background:#f8f0fa;
  color:#421059;text-align:center;font-size:.85rem;font-weight:710;line-height:1.22;overflow-wrap:anywhere
}
#room-editor .module-inspector-compact button svg {fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
#room-editor .inspector-quick-actions svg {width:27px;height:27px;color:#7a169f}
#room-editor .inspector-quick-actions button:is(:hover,[aria-pressed="true"]) {border-color:#b882cb;background:#f1e2f8}
#room-editor .inspector-width {display:flex;align-items:center;justify-content:space-between;gap:8px;padding-block:13px;border-bottom:1px solid #ebdfee}
#room-editor .inspector-width label {margin:0;color:#301440;font-size:.87rem;font-weight:700}
#room-editor .inspector-width-control {
  display:flex;align-items:stretch;width:min(116px,54%);min-width:0;
  border:1px solid #d6bfdc;border-radius:9px;background:#fff;
}
#room-editor .inspector-width-control input {
  appearance:textfield;flex:1;min-width:0;min-height:48px;width:100%;padding:4px 4px 4px 9px;
  border:0;border-radius:8px;background:white;color:#301440;font-size:16px;font-weight:760;
}
#room-editor .inspector-width-control input::-webkit-inner-spin-button,
#room-editor .inspector-width-control input::-webkit-outer-spin-button {appearance:none;margin:0}
#room-editor .inspector-width-steps {display:grid;width:33px;flex:none}
#room-editor .inspector-width-steps button {
  display:grid;place-items:center;min-width:0;min-height:26px;padding:0;border:0;
  border-radius:7px;background:#fff;color:#4f1c65;
}
#room-editor .inspector-width-steps button:hover {background:#f4e7f9}
#room-editor .inspector-width-steps svg {width:15px;height:15px}
#room-editor .module-inspector-compact :is(input,button):focus-visible {outline:2px solid #7925a5;outline-offset:2px}
#room-editor .module-inspector-compact .inspector-status {margin:8px 0 0}
#room-editor .module-quote {display:grid;gap:2px;padding-block:13px 16px;color:#301440}
#room-editor .module-quote span {font-size:.85rem;font-weight:710}
#room-editor .module-quote strong {font:800 clamp(1.38rem,2.25vw,1.90rem)/1.1 system-ui;letter-spacing:-.055em;overflow-wrap:anywhere}
#room-editor .module-inspector-compact [data-r-action="inspectModule"] {
  display:flex;align-items:center;justify-content:center;gap:9px;min-height:46px;width:100%;
  padding:8px 12px;font-size:.91rem;
}
#room-editor .module-inspector-compact [data-r-action="inspectModule"] svg {width:21px;height:21px;flex:none}
#room-editor .inspector-more {margin-top:10px}
#room-editor .inspector-more .room-grid,#room-editor .inspector-more p {padding:10px 12px;margin:0}
@media(max-width:800px){
  #room-editor .module-inspector-compact {padding:14px}
  #room-editor .inspector-quick-actions button {min-height:70px}
}


#room-editor .room-scene-navigation {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:8px 12px;
}
#room-editor .room-scene-navigation button {
  min-height:44px;
}
#room-editor .shelf-count {
  display:inline-block;
  margin-inline-start:.55em;
  color:#634d70;
  font-size:.72em;
  font-weight:650;
  white-space:nowrap;
}
#room-editor .shelf-view-action {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
  min-height:44px;
  margin-block:4px 8px;
}
#room-editor .shelf-view-action > span {
  color:#634d70;
  font-size:.82rem;
}
#room-editor .shelf-filters {
  display:grid;
  grid-template-columns:minmax(0,10rem) minmax(0,19rem);
  gap:8px;
  margin-block-end:8px;
}
#room-editor .shelf-filters label {
  display:grid;
  gap:3px;
  color:#532666;
  font-size:.78rem;
  font-weight:650;
}
#room-editor .shelf-filters :is(input, select) {
  box-sizing:border-box;
  width:100%;
  min-height:44px;
  font-size:.9rem;
}
#room-editor .shelf-no-results {
  padding:8px 0 12px;
}
#room-editor :is(.shelf-no-results,.shelf-recovery,.shelf-footer) button {
  min-height:44px;
}
#room-editor .room-camera-options {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:4px 12px;
  padding:6px 10px;
  border-bottom:1px solid #e5dae9;
  background:#fff;
}
#room-editor .room-camera-presets {
  display:flex;
  flex-wrap:wrap;
  gap:4px;
}
#room-editor .room-camera-presets button {
  min-height:44px;
  padding-inline:9px;
  font-size:.78rem;
}
#room-editor .room-camera-presets button[aria-pressed="true"] {
  background:var(--action-selected,#f0e2f6);
  color:var(--action-selected-text,#481163);
  border-color:var(--action-selected-line,#b885ca);
}
#room-editor .room-dimensions-option {
  display:flex;
  align-items:center;
  min-height:44px;
  gap:6px;
  padding-inline:3px;
  font-size:.78rem;
  font-weight:650;
  cursor:pointer;
}

#room-editor .shelf-view-action button {
  min-height:44px;
}
@media(max-width:480px){
  #room-editor .shelf-view-action button {
    padding-inline:9px;
    font-size:.82rem;
  }
}
#room-editor .room-placement-preview details > summary {
  display:none;
}
#room-editor .room-placement-preview details {
  border:none;
  margin:0;
}
#room-editor .fit-picture {
  display:block;
  width:100%;
  max-height:36dvh;
  margin-block:8px 12px;
}
#room-editor .fit-room {
  fill:#f6f0f7;
  stroke:#594460;
  stroke-width:18;
}
#room-editor .fit-existing {
  fill:#c6b1ce;
  stroke:#7d5a89;
  stroke-width:12;
}
#room-editor .fit-upper {
  fill:#f2e5f7;
  stroke-dasharray:36 18;
}
#room-editor .fit-range {
  fill:#611691;
}
#room-editor .fit-module {
  fill:#bd7ce18c;
  stroke:#701ba1;
  stroke-width:17;
}
#room-editor .inspector-module-picker {
  padding-block-end:12px;
}
#room-editor .inspector-module-picker select {
  min-height:44px;
  width:100%;
}
#room-editor .room-width-presets {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  padding-block:0 8px;
}
#room-editor .room-width-presets button {
  min-width:44px;
  min-height:44px;
  padding-inline:7px;
  font-size:.78rem;
  border-color:#ded1e5;
}
#room-editor .room-width-presets button[aria-pressed="true"] {
  color:var(--action-selected-text,#481163);
  background:var(--action-selected,#f0e2f6);
  border-color:var(--action-selected-line,#b885ca);
}


#room-editor [data-room-section="placementPreview"] [data-r-action="confirmPlacement"] {
  min-height:44px;
  border-color:transparent;
  background:var(--action-fill,#71169f);
  color:#fff;
  font-weight:720;
}
#room-editor [data-room-section="placementPreview"] [data-r-action="confirmPlacement"]:disabled {
  opacity:.55;
}
@media(max-width:420px){
  #room-editor [data-room-section="placementPreview"] .room-grid {
    grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);
  }
}
#room-editor .room-front-zones {
  pointer-events:none;
}
#room-editor .room-front-zone {
  fill:#a557c444;
  stroke:#71218f;
  stroke-width:1.75;
  stroke-dasharray:5 3;
}
#room-editor .room-front-zone.has-conflict {
  fill:#dd835164;
  stroke:#9a441b;
}
#room-editor :is(.room-front-status,.scene-export-status,.scene-render-status):not(:empty) {
  margin:0 12px 10px;
  padding:8px 10px;
  background:#f7effa;
  color:#49205c;
  border-radius:8px;
  font-size:.82rem;
}
#room-editor .room-palette-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(155px,100%),1fr));
  gap:8px;
  margin-block:0 16px;
}
#room-editor .room-palette-grid button {
  display:grid;
  align-content:start;
  gap:6px;
  min-height:82px;
  padding:9px;
  text-align:start;
  border-color:#ded1e5;
}
#room-editor .room-palette-grid button[aria-pressed="true"] {
  background:var(--action-selected,#f0e2f6);
  border-color:var(--action-selected-line,#b885ca);
}
#room-editor .room-palette-grid button > span:last-child {
  color:#634d70;
  line-height:1.3;
  font-size:.75rem;
}
#room-editor .room-palette-swatches {
  display:flex;
  gap:4px;
}
#room-editor .room-palette-swatches span {
  width:22px;
  height:16px;
  border:1px solid #321d382b;
  border-radius:4px;
  background:var(--sample);
}
#room-editor .room-camera-options label:has(:is([name="previewLight"],[name="taskLight"])) {
  display:flex;
  gap:7px;
  align-items:center;
  font-size:.78rem;
  font-weight:650;
}
#room-editor :is([name="previewLight"],[name="taskLight"]) {
  min-height:44px;
  font-size:.78rem;
}


#room-editor .parameter-dialog .room-apply {
  min-height:44px;
  border:1px solid transparent;
  border-radius:10px;
  background:var(--action-fill,#71169f);
  color:#fff;
  font-weight:720;
}
@media (hover:hover) and (pointer:fine){
  #room-editor .parameter-dialog .room-apply:hover {
    background:var(--action-hover,#8019b3);
  }
}
#room-editor .room-locked .room-footprint {
  stroke:#6d2684;
  stroke-dasharray:3 2;
}
#room-editor [data-r-action="lockModule"] {
  min-height:44px;
  margin-block-start:6px;
}
#room-editor [data-r-action="lockModule"][aria-pressed="true"] {
  background:var(--action-selected,#f0e2f6);
  border-color:var(--action-selected-line,#b885ca);
}
#room-editor .mobile-editor-jumps {
  display:none;
}
@media(max-width:720px){
  #room-editor .room-title .size-shortcut {
    flex:1 1 100%;
    min-width:0;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  #room-editor .mobile-editor-jumps {
    display:flex;
    flex-wrap:wrap;
    gap:6px;
  }
  #room-editor .mobile-editor-jumps :is(button,a) {
    display:inline-flex;
    align-items:center;
    min-height:44px;
    padding-inline:10px;
    border:1px solid #ded1e5;
    border-radius:9px;
    background:#faf6fc;
    color:#58246d;
    font-size:.8rem;
    font-weight:650;
    text-decoration:none;
  }
}
#room-editor .room-feedback section {
  margin-block-start:9px;
  padding-block-start:8px;
  border-block-start:1px solid #ddcba6;
}
#room-editor .room-feedback section:first-child {
  margin-block-start:0;
  padding-block-start:0;
  border-block-start:0;
}
#room-editor .room-feedback button {
  min-height:44px;
}
#room-editor .shelf-message:not(:empty) {
  margin:4px 0 10px;
  color:#634d70;
  font-size:.83rem;
}
#room-editor .front-base-price {
  padding:8px 10px;
  border-radius:8px;
  background:#f7effa;
  color:#49205c;
}
#room-editor .room-aisle-meter {
  color:#753b15;
  font-weight:690;
}
#room-editor .room-feedback:not(.has-problems):not(:empty) {
  background:#faf6fc;
  border-color:#ded1e5;
  color:#49205c;
}
#room-editor .room-feedback:not(.has-problems) section {
  border-color:#ded1e5;
}

#room-editor .room-start-over {
  min-height:44px;
  padding-inline:12px;
  border:1px solid var(--action-selected-line,#b885ca);
  border-radius:9px;
  background:#faf6fc;
  color:#58246d;
  font-size:.85rem;
  font-weight:680;
}

#room-editor .parameter-dialog { scroll-padding-block:70px 18px; }
#room-editor .parameter-dialog-message:not(:empty) { border-top:0; border-bottom:1px solid #e1d7e8; }
#room-editor .room-facade-selects { display:grid; gap:8px; margin-bottom:12px; }
#room-editor .room-facade-selects > label { min-width:0; }
#room-editor .room-facade-selects select { width:100%; }
#room-editor .room-facade-selects .room-help { margin:0; }
#room-editor .room-facade-palette { margin-block:10px; }
#room-editor .room-facade-palette > summary { cursor:pointer; padding:8px; }
#room-editor .room-object-categories button[aria-pressed="true"] { background:#f2e6f8; border-color:#8d4aaa; color:#42185d; }
#room-editor .room-opening-shortcuts { margin-bottom:12px; }
#room-editor .room-object-categories button,#room-editor .room-opening-shortcuts button,#room-editor .room-facade-actions button { min-height:44px; }
@media(min-width:680px) {
  #room-editor .room-facade-selects { grid-template-columns:1fr 1.5fr; }
  #room-editor .room-facade-selects .room-help { grid-column:1/-1; }
}
@media(max-width:510px) {
  #room-editor .room-3d-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  #room-editor .room-3d-actions > [data-r-action="moveMode"],#room-editor .room-move-steps { grid-column:1/-1; }
}

#room-editor .room-direct-help { display:flex; align-items:center; gap:10px; justify-content:space-between; padding:5px 9px; }
#room-editor .room-direct-help p { margin:0; font-size:.83rem; color:#4f4258; }
#room-editor .room-direct-help button { flex:none; min-height:36px; }
#room-editor .room-quick-actions { position:absolute; z-index:4; width:max-content; max-width:calc(100% - 12px); padding:8px; border:1px solid #bc9dca; border-radius:12px; background:#fff; box-shadow:0 8px 20px #2c163845; }
#room-editor .room-quick-actions:not([hidden]) { display:grid; gap:6px; }
#room-editor .room-quick-actions > div { display:flex; flex-wrap:wrap; gap:4px; }
#room-editor .room-quick-actions strong { font-size:.84rem; color:#2d1739; }
#room-editor .room-quick-actions button { min-height:44px; padding:4px 8px; }
#room-editor .room-quick-actions [data-r-action="deleteDirect"]:not(:disabled) { color:#961d3d; border-color:#cf9aa9; }
#room-editor .room-map:not(.room-volume):not(.room-elevation) :is([data-cab],[data-room-prop],[data-opening]) { cursor:grab; touch-action:none; }
#room-editor .room-map:not(.room-volume):not(.room-elevation) { touch-action:none; }
@media(pointer:coarse) { #room-editor .room-direct-help button { min-height:44px; } }

#room-editor .room-save-status:empty { display:none; }
#room-editor .room-save-status { margin:0; color:#41344d; font-size:.87rem; }
#room-editor .studio-stage .room-move-status:not(:empty) {
  position:absolute; z-index:3; inset:auto 8px 8px; width:max-content; max-width:calc(100% - 16px);
  border:1px solid #c3accf; border-radius:8px; color:#34243d; background:#fffcff;
  box-shadow:0 3px 12px #2a143025; pointer-events:none;
}

@media(pointer:coarse) { #room-editor .room-keyboard-hint { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); } }
@media(max-width:800px) { #room-editor .studio-stage .room-move-status:not(:empty) { inset:8px 8px auto; } }

#room-editor .room-start-measure {
  margin:10px 0 14px;
  padding:10px 12px;
  border:1px solid #dfd0e5;
  border-radius:10px;
  background:#fcf8fd;
}
#room-editor .room-start-measure summary {font-weight:730;cursor:pointer;padding:6px 0;color:#4e2460}
#room-editor .room-start-measure .room-grid {margin:8px 0}
#room-editor .room-start-measure button {min-height:44px}
#room-editor .room-start-measure output:not(:empty) {display:block;margin-top:7px;font-weight:690;color:#4e2460}
#room-editor .room-start-measure [aria-invalid="true"] {border-color:#a4384e}
#room-editor .shelf-filters label.shelf-fit {
  display:flex;
  flex-direction:row;
  align-items:center;
  align-self:end;
  width:fit-content;
  min-height:44px;
  gap:8px;
  padding:6px 10px;
  border:1px solid #dfd0e5;
  border-radius:8px;
  background:#fcf8fd;
  color:#4e2460;
  cursor:pointer;
}
#room-editor label.shelf-fit input {width:20px;height:20px;min-height:0;margin:0;flex:none;accent-color:#721b98}
#room-editor .module-slot:not(:empty) {font-size:.7rem;color:#572f67;line-height:1.3}
#room-editor :is(.module-slot,[data-shelf-fit-count]):empty {display:none}
#room-editor [data-shelf-fit-count] {margin-block:5px}
#room-editor .room-quick-actions [data-r-action="copyDirect"] {color:#681e89;border-color:#cba9da}
#room-editor .room-quick-actions button[hidden] {display:none!important}
@media(max-width:650px) {
  #room-editor .shelf-filters .shelf-fit {grid-column:1/-1}
  #room-editor .room-start-measure .room-grid {grid-template-columns:1fr}
}
@media(min-width:721px) {
  #room-editor .mobile-editor-jumps {display:flex;gap:6px;flex-wrap:wrap}
  #room-editor .mobile-editor-jumps>:not([data-room-save],[data-room-open]) {display:none}
  #room-editor .mobile-editor-jumps>:is([data-room-save],[data-room-open]) {
    min-height:44px;
    padding-inline:10px;
    border:1px solid #ded1e5;
    border-radius:9px;
    background:#faf6fc;
    color:#58246d;
  }
}
@media(max-width:420px) {
  #room-editor .shelf-filters {grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
}

#room-editor .room-front-check {margin-block:8px 12px}
#room-editor .room-front-measure {display:flex;align-items:end;flex-wrap:wrap;gap:8px 12px;margin-inline:12px}
#room-editor .room-front-measure label {flex:1 1 220px;max-width:310px}
#room-editor .room-front-measure :is(button,input) {min-height:44px}
#room-editor .room-fit-door-warning {padding:8px 10px;border-radius:7px;background:#fff2dd;color:#653f12}
#room-editor .room-fit-door-warning[hidden] {display:none}
#room-editor .module-slot.has-door-risk {color:#734619}
#room-editor .room-worktop-zone {pointer-events:none}
#room-editor .room-worktop-shape {fill:#a46bc646;stroke:#713190;stroke-width:2;stroke-dasharray:5 3;vector-effect:non-scaling-stroke}
#room-editor .room-worktop-status {margin:10px 0;padding:9px 11px;border:1px solid #ded0e8;border-radius:8px;background:#f8f2fb;color:#442451}
#room-start [data-room-open] {min-height:44px;margin-inline-start:8px}
.room-file-message:not([hidden]) {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:6px 12px;
  margin-block-end:12px;
  padding:8px 12px;
  border:1px solid #ded1e5;
  border-radius:9px;
  background:#faf6fc;
  color:#442451;
}
.room-file-message p {margin:0}
.room-file-message button {min-height:44px}

#room-editor .room-front-obstacles {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));
  gap:6px;
  margin:0 12px 10px;
  padding:0;
  list-style:none;
}
#room-editor .room-front-obstacles button {
  display:flex;
  width:100%;
  min-height:44px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:2px 10px;
  padding:7px 10px;
  border:1px solid #dec5ac;
  border-radius:8px;
  background:#fff9f1;
  color:#713812;
  text-align:left;
}
#room-editor .room-front-obstacles span {font-size:.8rem}
#room-editor .room-front-wall-note {margin:0 12px 10px;color:#713812}
#room-editor .room-map .room-front-obstacle :is(.room-footprint,.room-opening,.room-prop-footprint),
#room-editor .room-map .room-door-swing.room-front-obstacle {
  stroke:#a34c10;
  stroke-width:2.5;
  stroke-dasharray:5 3;
  vector-effect:non-scaling-stroke;
}
#room-editor .room-front-opening-mark {
  pointer-events:none;
  fill:#fff9f1;
  stroke:#a34c10;
  stroke-width:2;
  vector-effect:non-scaling-stroke;
}
