/* Shared editor presentation, loaded after each lab's existing theme. */
.lab-bar #edit-room{font-size:12px;padding:8px 12px;min-height:36px}
.scene-stage{display:flex;align-items:stretch;gap:10px;min-width:0}
.scene-stage>.scene{flex:1;min-width:0}
.edit-tools{display:flex;flex-direction:column;align-items:stretch;gap:6px;width:62px;flex:0 0 62px;margin:0;padding:8px 0}
.edit-tools button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;min-height:57px;padding:7px 2px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--muted);font-size:10px;line-height:1.2}
.edit-tools button span{font-size:20px;line-height:1.1}.edit-tools button:hover{border-color:var(--cyan);color:var(--text)}
.edit-tools button[aria-pressed=true]{border-color:var(--cyan);color:var(--cyan);box-shadow:inset 3px 0 var(--cyan)}
.object-editor h2{margin-top:8px}.object-editor .inspector-hint{margin-bottom:18px}
.object-property{padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.object-property label{font-size:13px;display:flex;justify-content:space-between;gap:12px}.object-property output{font-family:ui-monospace,monospace;color:var(--cyan)}
.object-property small{font-size:11px;color:var(--muted);line-height:1.6}
.object-editor #edit-status{font-size:12px;line-height:1.6;margin:18px 0;color:var(--muted);min-height:0}
.editor-history{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 22px}.editor-history .button{font-size:12px;padding:9px 10px;min-height:38px;flex:1}
.room-size{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 0}
.room-size summary{cursor:pointer;font-size:13px;list-style-position:inside}.room-size summary span{float:right;color:var(--muted);font-family:ui-monospace,monospace}
.room-size .editor-dimensions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}
.room-size .editor-dimensions label{display:flex;align-items:flex-start;flex-direction:column}.room-size input{width:100%;padding:10px}
.room-size .editor-dimensions select{width:100%;min-width:0;font-size:12px;padding-left:6px}.room-size .button{font-size:12px;padding:9px}
.room-size .editor-note{margin-top:12px}.restore-room{font-size:12px;min-height:36px;padding:8px 0;margin-top:8px}
.scene-feedback{position:absolute;z-index:7;bottom:12px;left:12px;right:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f8fcfdef;border:1px solid #c2d5de;border-radius:7px;padding:10px 12px;color:#17394b;font-size:11px;line-height:1.5;pointer-events:none}
.scene-feedback button{pointer-events:auto;flex:none;border:0;border-left:1px solid #c2d5de;background:none;color:#087d89;padding:4px 0 4px 10px;font-size:11px}
.editing .room-caption{bottom:82px}.editing .overlay-label{visibility:hidden}.editing .tile-label{color:#24495c;text-shadow:none;cursor:crosshair}
.editing .tile-label .tile-arrow,.editing .tile-label:not(.terminal-label):not(.wall-label) .tile-value{display:none}
.editing .tile-label .tile-coordinate{opacity:0}.editing .tile-label:focus-visible .tile-coordinate,.editing .tile-label:hover .tile-coordinate,.editing .tile-label[aria-pressed=true] .tile-coordinate{opacity:1}


.fallback-grid .placement-valid{border:2px dashed #087d89}
.is-editing .simulation-bottom,.is-editing .learning-bar{display:none}
.is-editing .lab-bar{margin-bottom:12px}
@media(max-width:800px){
 .scene-stage{flex-direction:column;gap:8px}.edit-tools{flex-direction:row;flex:0 0 auto;width:100%;padding:0;gap:6px}.edit-tools button{flex:1;width:auto;min-width:0;min-height:50px;font-size:11px}
 .edit-tools button[aria-pressed=true]{box-shadow:inset 0 -2px var(--cyan)}
 .scene-stage>.scene{flex:auto}.is-editing .inspector{padding-top:18px}
 .lab-bar{flex-wrap:wrap}.lab-bar #edit-room{margin-left:auto}.scenario-label{margin-left:auto}
}
@media(max-width:600px){
 .lab-bar .lab-title{order:0}.lab-bar #edit-room{order:1}.lab-bar .icon-button{order:2}.lab-bar .scenario-label{order:3;width:100%;font-size:11px;justify-content:space-between;gap:10px}.lab-bar .scenario-label select{max-width:none;flex:1}
 .scene-feedback{left:8px;right:8px;bottom:8px;padding:8px 10px;gap:8px;font-size:10px;min-height:46px}.editing .room-caption{bottom:82px}
 .object-editor{padding:0 4px}.object-editor .inspector-hint{margin-top:12px}
}

.editing .tile-label:not(.terminal-label){min-width:32px;min-height:32px}
