/* Fenêtre Niveaux et objets : catégories identifiées par titre, badge et couleur. */
#levelList{gap:12px;padding-top:8px;}
#levelList>.level-item{min-height:40px;background:#202b22;border:1px solid #65765d;border-left-color:#a7c49b!important;font-weight:700;font-size:12px;}
#levelList>.level-item.active{background:#caf46c;color:#17200f;}
.model-list-group{--category-color:#79bdff;--category-bg:#152535;--category-active:#244b70;border:1px solid #79bdff55;border-radius:10px;padding:8px;min-width:0;}
.model-list-group-object{--category-color:#ffb45e;--category-bg:#302419;--category-active:#65401e;border-color:#ffb45e55;}
.model-list-group h3{display:block;margin:0 0 8px;padding:2px 0 7px;border-bottom:1px solid #ffffff18;color:var(--category-color);font-size:12px;line-height:1.4;font-weight:750;}
.model-group-rows{display:grid;gap:7px;}
.model-group-empty{margin:3px 0;color:#bac5ca;font-size:11px;}
#levelList .model-list-group .level-item{display:grid;grid-template-columns:minmax(0,1fr);justify-items:start;gap:5px;padding:8px 9px;background:var(--category-bg);color:#f0f4f8;border:1px solid #ffffff15;border-left:3px solid var(--category-color)!important;border-radius:8px;min-width:0;}
#levelList .model-list-group .level-item:hover{background:var(--category-active);}
#levelList .model-list-group .level-item.active{background:var(--category-active);border-color:var(--category-color);box-shadow:0 0 0 1px var(--category-color);color:#fff;}
#levelList .level-item .model-kind-badge{color:var(--category-color);font-size:10px;font-style:normal;font-weight:700;border:1px solid #ffffff24;border-radius:4px;padding:2px 5px;}
#levelList .model-list-group .level-item>span{max-width:100%;overflow-wrap:anywhere;font-size:12px;font-weight:700;line-height:1.4;}
#levelList .model-list-group .level-item small{font-size:10px;line-height:1.4;color:#d4dce4;opacity:1;}
#levelList .model-list-group .level-order-handle{margin:0;padding:0;min-height:28px;}
#levelList .model-list-group .level-order-handle:before{width:22px;height:24px;flex-basis:22px;background:transparent;border-color:#ffffff35;color:var(--category-color);font-size:14px;box-shadow:none;}
#levelList .level-align,#levelList .level-visibility{color:var(--category-color)!important;border:1px solid #ffffff20;background:var(--category-bg);}
#levelList .level-visibility.off{opacity:.5;}
#levelList .level-row.level-order-dragging{outline-color:var(--category-color);}
.levels-module #addLevelBtn{grid-column:1/-1;font-size:11px;padding:9px 6px;}
#addModelEntryDialog select,#addModelEntryDialog input{display:block;width:100%;margin:7px 0 16px;}
canvas.glb-point-picking{cursor:crosshair!important;touch-action:none;}
#levelTransformDialog .glb-number-stepper{display:grid;grid-template-columns:minmax(0,1fr) 28px 28px;gap:3px;align-items:center;margin-top:4px;}
#levelTransformDialog .glb-number-stepper input{width:100%;min-width:0;height:34px;margin:0;appearance:textfield;-moz-appearance:textfield;}
#levelTransformDialog .glb-number-stepper input::-webkit-inner-spin-button,#levelTransformDialog .glb-number-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0;}
#levelTransformDialog .glb-step-button{width:28px;height:34px;min-width:28px;margin:0;padding:0;font-size:18px;line-height:1;border:1px solid #79bdff80;background:#203548;color:#fff;border-radius:6px;touch-action:manipulation;}
#levelTransformDialog .glb-step-button:hover{background:#355b7c;}
#levelTransformDialog .glb-step-button:focus-visible{outline:2px solid #caf46c;outline-offset:2px;}
@media(max-width:560px){#levelTransformDialog .transform-grid{grid-template-columns:1fr;}}
