/* Éditeur de couche : utilise les couleurs du thème existant. */
[hidden]{display:none!important}
.mode-tabs{display:flex;gap:6px;margin:0 20px 18px;border-bottom:1px solid var(--border);padding-bottom:10px}
.mode-tabs button{border-radius:7px 7px 0 0;padding:12px 22px;font-weight:600}
.mode-tabs [aria-selected=true]{border-color:var(--orange);color:var(--orange);box-shadow:inset 0 -2px var(--orange)}
input[type=text]{display:block;width:100%;min-width:0;margin-top:7px;border:1px solid var(--border);background:var(--bg);border-radius:5px;color:var(--text);padding:9px 7px}
.editor-actions{display:flex;flex-wrap:wrap;gap:6px}.editor-actions button{font-size:11px;padding:8px}
.wide-button{width:100%;font-size:11px}.layer-assignments{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-height:280px;overflow:auto;padding:2px}
.layer-assignments select{margin-top:4px}.custom-editor{padding:22px;margin-bottom:14px}
.editor-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.editor-heading h2{margin-bottom:0}
.editor-summary{font:12px Consolas,monospace;text-align:right;color:var(--orange);line-height:1.6}
.plan-shortcuts{display:flex;flex-wrap:wrap;gap:6px;margin-top:17px}
.plan-shortcuts button{padding:9px 19px;font-weight:600}
.plan-shortcuts [aria-pressed=true]{color:var(--orange);border-color:var(--orange);box-shadow:inset 0 -2px var(--orange)}
.editor-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:17px 0}
.editor-toolbar button{font-size:11px;padding:9px}.editor-toolbar label{margin-left:auto;display:flex;align-items:center;gap:9px}
.editor-toolbar select{width:90px;margin:0}
#layerEditor{width:100%;height:clamp(260px,40vh,490px);display:block;border:1px solid var(--border);border-radius:8px;background:var(--bg);touch-action:none;user-select:none}
#layerEditor [data-crate]{cursor:grab}#layerEditor.dragging [data-crate]{cursor:grabbing}
#layerEditor text{pointer-events:none;font-family:'Segoe UI',Arial,sans-serif}
#layerEditor:focus-visible{outline:2px solid var(--orange);outline-offset:3px}
.selection-controls{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:12px;align-items:center;margin-top:16px}
.selection-controls strong{font-size:12px;line-height:1.6}.selection-controls input,.selection-controls select{margin-top:5px}
.drop-legend{display:flex;flex-wrap:wrap;gap:6px;margin-top:15px;max-height:155px;overflow:auto}
.drop-chip{display:inline-flex;align-items:center;gap:7px;padding:6px 9px;border:1px solid var(--border);border-radius:5px;font-size:10px;color:var(--text)}
.drop-chip i{width:8px;height:8px;border-radius:2px}.drop-chip.empty{border-style:dashed;color:var(--muted)}
:root[data-theme=light] input[type=text]{background:white;color:#18333e;border-color:#b8cbd4}
body[data-plan-mode=custom] .scene-legend{max-height:38px;overflow:hidden}
@media(max-width:1100px){.custom-editor{padding:16px}.selection-controls{grid-template-columns:1fr 1fr 1fr}.selection-controls strong{grid-column:1/-1}.editor-toolbar label{margin-left:0}}
@media(max-width:760px){.mode-tabs{margin:0 12px 12px}.mode-tabs button{padding:11px 15px;flex:1}.custom-editor{order:-1;margin:0}.editor-heading{align-items:flex-start}.editor-summary{font-size:10px}.editor-toolbar{gap:6px}#layerEditor{height:320px}.selection-controls{gap:7px}.layer-assignments{grid-template-columns:repeat(3,minmax(0,1fr))}}
