/* Superficies claras y acento Bheed, compartidos por oficina y conversación. */
:root{--rooms-orange:var(--bheed);--rooms-orange-soft:var(--bheed-soft);--rooms-surface:#fff;--rooms-canvas:#f5f6f8;--rooms-ink:#353b45;--rooms-muted:#929ba8;--rooms-line:#e5e8ed}
body{background:var(--rooms-canvas)}
.app-header,.social-panel{background:var(--rooms-surface);border-color:var(--rooms-line)}
.app-header{box-shadow:none}
.rail{background:#f6f7f9;border-right:1px solid var(--rooms-line)}
.rail .rail-button,.rail-bottom .tool-button.icon-only{color:#8a93a1}
.rail .rail-button:hover,.rail-bottom .tool-button.icon-only:hover{color:#606b7b;background:#ebedf2}
.rail .rail-button.active{color:var(--bheed-ink);background:var(--rooms-orange-soft);box-shadow:none}
.rail .rail-badge{border-color:#f6f7f9;background:var(--rooms-orange)}
.workspace-search,.meeting-card,.room-item{border-color:var(--rooms-line);box-shadow:none}
.control-area{background:#fffffff5;border-color:var(--rooms-line);box-shadow:0 4px 24px #28354512;color:var(--rooms-ink)}
.control-area .toolbar .tool-button,.control-area .toolbar .pill-conversation,.control-area .self-profile{color:#8a93a0;background:transparent;box-shadow:none}
.control-area .toolbar .tool-button:hover,.control-area .toolbar .pill-conversation:hover{background:#f2f4f7;color:#667487}
.control-area .toolbar .tool-button.on{background:var(--bheed-soft);color:var(--bheed-ink)}
.control-area .toolbar .leave-button{color:#c38079}
.control-area .toolbar .status-dot{border-color:#fff}
.control-area .toolbar .screen-audio-options{display:flex;align-items:center;justify-content:center;width:27px;height:32px;border-radius:6px;color:#9ba3af}
.control-area .toolbar .screen-audio-options:hover{background:#f1f3f6;color:var(--bheed-ink)}
#videoDock.participant-strip .video-tile,.call-dialog #videoDock.in-call-dialog .video-tile{background:#fff;border-color:#dfe4eb;box-shadow:0 2px 10px #2835450a}
#videoDock.participant-strip .video-tile .video-placeholder{background:#f4f5f8;color:#7b889c}
#videoDock.participant-strip .video-tile video{background:#f1f3f6}
#videoDock.participant-strip .video-tile .video-name{color:#586475;background:#fffffff2;border:1px solid #e8ecf1;font-size:10px}
#videoDock.participant-strip .video-tile .video-connection{background:#fffffff0;color:#9aa4b2;border:1px solid #e9edf2}
#videoDock.participant-strip .video-tile .video-expand{background:#ffffffeb;color:#8e99a9;border:1px solid #e2e8ee}
#videoDock.participant-strip .video-tile .media-initial,.call-focus-stage .call-focus-placeholder span{border:2px solid #fff;background:var(--bheed-soft);color:var(--bheed-ink);box-shadow:0 0 0 1px var(--bheed-soft)}
#videoDock.participant-strip .video-tile.speaking,.call-dialog #videoDock.in-call-dialog .video-tile.speaking{border-color:#64ae8c;box-shadow:none}
#videoDock.participant-strip .video-tile.speaking .video-activity{color:#4c9c77}
.call-dialog .call-focus-stage .call-focus-placeholder{background:#f1f3f6;color:#929eaf}
.call-dialog .call-focus-stage.speaking{border-color:#64ae8c}
.call-dialog .call-sidebar .meeting-chat-form button{background:var(--rooms-orange);color:white;border-color:var(--rooms-orange)}
.call-dialog .call-sidebar .meeting-chat-form textarea{background:transparent;color:#586475}
.call-dialog .call-sidebar .meeting-chat-form textarea:focus{outline:none;box-shadow:none}
.call-dialog .call-device-controls button.active{background:var(--bheed-soft);color:var(--bheed-ink)}
.call-dialog .call-screen-audio{color:#929dab}
.call-dialog button:focus-visible,.control-area button:focus-visible{outline:2px solid var(--bheed);outline-offset:3px}
.call-dialog .call-management-body{scrollbar-width:thin;scrollbar-color:#dfe4eb transparent}
.studio-dialog{border-color:var(--rooms-line);background:#fff;box-shadow:0 20px 70px #26334626}
.studio-dialog>header,.studio-dialog .studio-footer{background:#fff;border-color:var(--rooms-line)}
.studio-dialog .wardrobe-categories{background:#fafbfc;border-color:var(--rooms-line)}
.studio-dialog .wardrobe-categories button.active{background:var(--rooms-orange-soft);color:var(--bheed-ink);border-color:var(--bheed);box-shadow:none}
.studio-dialog .wardrobe-options>button.active{border-color:var(--bheed);background:var(--bheed-soft);box-shadow:0 0 0 1px var(--bheed)}
.studio-dialog .wardrobe-options>button{border-radius:9px;background:#fbfcfd;border-color:#edf0f4;box-shadow:none}
.studio-dialog .wardrobe-fields legend{font-weight:500;color:#7c8797}
.studio-dialog .studio-save{background:var(--rooms-orange);border-color:var(--rooms-orange);box-shadow:none}
.studio-dialog .wardrobe-poses button.active{background:var(--rooms-orange-soft);color:var(--bheed-ink);border-color:var(--bheed)}
.studio-dialog canvas{image-rendering:pixelated}
.studio-dialog.avatar-mode .wardrobe-categories button.active{background:var(--rooms-orange-soft);color:var(--bheed-ink);box-shadow:inset 2px 0 var(--bheed)}
.studio-dialog.avatar-mode .wardrobe-options{background:#f7f8fa;border-radius:10px}
.studio-dialog.avatar-mode .wardrobe-options button{border:1px solid #e8ebef;background:#fff;box-shadow:none}
.studio-dialog.avatar-mode .wardrobe-options button.active{border-color:var(--bheed);background:var(--bheed-soft);color:var(--bheed-ink)}
.studio-dialog .avatar-preview-name{color:#647084;background:#fffffff2;border:1px solid #e4e8ee;font-size:11px;box-shadow:none;top:5%}
.studio-dialog .avatar-preview-name:after{background:#fff}
.studio-dialog .avatar-preview-scene{background:linear-gradient(to bottom,#f0eef5 0%,#f0eef5 60%,#d4ded8 60%,#d4ded8 61%,#e8ede2 61%,#e8ede2 100%)}
.screen-stage{background:#f1f3f6;border:1px solid #e1e6ed;box-shadow:0 15px 60px #26334626}
.screen-stage header{background:#fff;color:#6c7a8e;border-bottom:1px solid #e5e9ef}
.screen-stage header button{color:#929eae}
.screen-stage video{background:#f1f3f6}
.device-check .device-check-enter,.screen-share-options [data-start]{background:var(--rooms-orange);border-color:var(--rooms-orange)}
@media(prefers-reduced-motion:reduce){.call-dialog *,.studio-dialog *{scroll-behavior:auto;transition:none!important}}

/* Medidas de oficina en la planta general. */
.floor-editor .plant-office-size{padding:14px 0;margin:0 0 12px;border-block:1px solid #e8ebef}
.floor-editor .plant-office-size>strong{display:block;color:#657184;font-size:11px;font-weight:500;margin-bottom:10px}
.floor-editor .plant-size-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.floor-editor .plant-size-fields label{display:flex;flex-direction:column;gap:5px;color:#909aa8;font-size:10px;min-width:0}
.floor-editor .plant-size-fields input{min-width:0;width:100%;padding:8px 9px;height:34px;border:1px solid #e0e5eb;border-radius:6px;background:#fff;color:#5c687a;font:inherit;font-size:12px}
.floor-editor .plant-size-fields input:focus{outline:2px solid var(--bheed);outline-offset:1px}
.floor-editor .plant-size-fields input:disabled{background:#f4f6f8;color:#a0a8b3}
.floor-editor .plant-office-size>small{display:block;font-size:10px;line-height:1.6;color:#929caa;margin-top:9px}
.floor-editor [data-plan-canvas]{touch-action:none}
.lock-button.locked{background:#fff8f5;border-color:#eddbd4;color:#bc7367}
.wall-art-shortcut{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:34px;padding:8px 10px;margin:0 0 10px;border:1px solid var(--bheed-soft);border-radius:6px;background:var(--bheed-soft);color:var(--bheed-ink);font-family:inherit;font-size:11px;font-weight:500;text-align:left;cursor:pointer}
.wall-art-shortcut:hover{background:var(--bheed-soft);border-color:var(--bheed)}
.wall-art-details>summary{display:flex;align-items:center;gap:8px;list-style-position:inside;font-weight:550}
.wall-art-details>summary:before{content:'▸';font-size:11px;color:#8a929b}.wall-art-details[open]>summary:before{content:'▾'}
.wall-art-details>summary [data-art-count]{margin-left:auto;font-size:10px;font-weight:400;color:#949ba4}
.wall-art-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:13px 0}
.wall-art-choice{display:flex;align-items:center;flex-direction:column;justify-content:flex-start;min-width:0;padding:4px 3px 8px;gap:3px;border:1px solid #e6e8eb;border-radius:6px;background:#fafaf8;cursor:pointer}
.wall-art-choice canvas{display:block;width:100%;height:auto;image-rendering:pixelated}
.wall-art-choice>span{font-size:9px;line-height:1.4;color:#626c76;text-align:center}
.wall-art-choice:hover{background:var(--bheed-soft);border-color:var(--bheed)}.wall-art-choice:disabled{opacity:.5;cursor:default}
.wall-art-list{display:flex;flex-direction:column;gap:9px;margin-top:13px}
.wall-art-list .wall-art-item{display:flex;flex-direction:column;gap:9px;padding:10px;border:1px solid #e5e8eb;border-radius:7px;background:#fff}
.wall-art-preview{display:flex;gap:10px;align-items:center;min-width:0}
.wall-art-preview canvas{width:56px;height:38px;flex:0 0 56px;image-rendering:pixelated}
.wall-art-preview img{display:block;width:56px!important;height:38px!important;object-fit:cover;border:3px solid #a57d55;border-radius:0!important}
.wall-art-preview strong{font-size:10px;font-weight:550;line-height:1.4;color:#495463;overflow-wrap:anywhere}
.wall-art-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.wall-art-fields label{display:flex;min-width:0;flex-direction:column;color:#7b8592;font-size:9px;gap:4px}
.wall-art-fields select{margin:0!important;height:29px!important;width:100%;min-width:0;background:#fff;color:#526171;border:1px solid #dfe4e8;border-radius:4px;font-size:10px;padding:0 5px}
.wall-art-fields .wall-art-position input{margin:5px 0!important;width:100%}
.wall-art-list .wall-art-remove{align-self:flex-start;border:0!important;background:transparent!important;color:#9d6b60!important;font-size:10px;padding:2px 0!important;cursor:pointer}
.wall-art-empty{font-size:10px;color:#929ba6;line-height:1.6}
.furniture-item>span{color:#67717d}.furniture-categories button.active{background:var(--bheed-soft);color:var(--bheed-ink)}
@media(max-width:760px){.wall-art-gallery{grid-template-columns:repeat(4,minmax(0,1fr))}.wall-art-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.wall-art-empty{grid-column:1/-1}}
@media(max-width:440px){.wall-art-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.wall-art-list{grid-template-columns:1fr}}

/* Oficina: un solo scroll. El catálogo no debe atrapar la rueda dentro de otro panel. */
.studio-dialog:not(.avatar-mode){overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#b7bec8 transparent;-webkit-overflow-scrolling:touch}
.studio-dialog:not(.avatar-mode) .studio-room-controls{height:auto;min-height:0;max-height:none;overflow:visible;overscroll-behavior:auto;padding-right:0}
.studio-dialog:not(.avatar-mode) .studio-room-controls>*{flex:0 0 auto}
.studio-dialog:not(.avatar-mode) .furniture-catalog{height:auto;max-height:none;overflow:visible}
.studio-dialog:not(.avatar-mode)::-webkit-scrollbar{width:9px}
.studio-dialog:not(.avatar-mode)::-webkit-scrollbar-thumb{background:#b7bec8;border:2px solid transparent;border-radius:6px;background-clip:padding-box}

.studio-dialog .selected-art-tools{display:flex;align-items:flex-start;flex-direction:column;gap:8px;margin-top:11px;padding-top:12px;border-top:1px solid #e4e8ee;text-align:left}
.studio-dialog .selected-art-tools[hidden]{display:none!important}
.selected-art-tools strong{font-size:11px;font-weight:550;color:#5b6775}.studio-dialog .selected-art-tools p{margin:0;font-size:10px;color:#85909d}
.selected-art-tools button{border:1px solid #eadbd6;border-radius:5px;background:#fff;color:#a16d5e;padding:6px 9px;font:inherit;font-size:10px;cursor:pointer}
.wall-art-list .wall-art-item.selected{border-color:var(--bheed);background:var(--bheed-soft)}
.wall-art-wall{font-size:9px;color:#8a929b;line-height:1.4}
.wall-art-actions{display:flex;gap:12px;justify-content:space-between;align-items:center}
.wall-art-actions .wall-art-move{height:28px;padding:0 8px;border:1px solid var(--bheed-soft);border-radius:4px;background:var(--bheed-soft);color:var(--bheed-ink);font-size:10px;cursor:pointer}
.wall-art-actions .wall-art-remove{align-self:center}


/* Compañero personal en el editor y junto al personaje. */
.studio-dialog.avatar-mode .avatar-preview-scene canvas[data-avatar-pet]{position:absolute;inset:auto 5px 12px auto;width:136px;height:122px;max-width:48%;max-height:36%;pointer-events:none;object-fit:contain;image-rendering:pixelated}
.studio-dialog [data-avatar-pet][hidden]{display:none!important}
.studio-dialog .pet-options canvas{width:96px;height:80px;aspect-ratio:6/5;object-fit:contain}.studio-dialog .pet-options button{min-height:126px}
.companion-settings{display:grid;grid-template-columns:1fr 1fr;gap:12px}.companion-settings label,.companion-car-color{font-size:11px;color:#7b8794}.companion-settings input[type=text]{display:block;width:100%;height:34px;padding:0 9px;margin-top:8px;border:1px solid #dfe4e8;border-radius:5px;background:#fff;color:#536171;font:inherit}
.companion-settings input[type=color],.companion-car-color input{display:block;width:100%;height:34px;padding:3px;margin-top:8px;border:1px solid #dfe4e8;border-radius:5px;background:#fff}
.companion-original{margin-top:10px;border:1px solid #e0e4e8;border-radius:5px;padding:7px 9px;background:#fff;color:#82909d;font-size:10px;cursor:pointer}
.studio-dialog .companion-match-car{display:flex;align-items:center;gap:8px;font-size:11px;color:#82909d;margin:10px 0}.companion-match-car input{accent-color:var(--bheed)}
.companion-scenes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.companion-scenes>div{min-width:0;border:1px solid #e7eaed;border-radius:7px;background:#f8faf9;text-align:center;padding:6px 3px 10px}.companion-scenes canvas{display:block;width:100%;height:auto;image-rendering:pixelated}.companion-scenes span{font-size:10px;color:#8b969f}
@media(max-width:760px){.studio-dialog.avatar-mode .avatar-preview-scene canvas[data-avatar-pet]{width:112px;height:100px;max-width:45%;max-height:36%}.companion-settings{grid-template-columns:1fr}.companion-scenes{grid-template-columns:1fr}.studio-dialog .pet-options canvas{width:80px;height:72px}.companion-scenes canvas{max-width:180px;margin:auto}}

.avatar-badge[hidden],.map-self-badge[hidden]{display:none!important}
