/* Layout follows the supplied working-editor screenshots. */
body.reference-editor{--accent:#22b2d0;--panel:#121827;--surface:#1c2535;--line:#2d3a4f;--muted:#8b9fb9;font-size:12px}
body.reference-editor header{height:37px;min-height:37px;flex-wrap:nowrap;gap:12px;padding:3px 12px;justify-content:flex-start}
body.reference-editor header .header-mission{flex:0 1 auto;max-width:250px}
body.reference-editor header button{font-size:12px;padding:3px 9px;border-radius:1px;height:25px}
body.reference-editor header .actions{margin-left:auto;gap:0;flex-wrap:nowrap}
body.reference-editor #tactical-tools{display:flex;order:initial;flex-basis:auto;flex-wrap:nowrap;margin-left:auto;margin-right:0;gap:0}
body.reference-editor:not([data-workspace=map]) #tactical-tools{display:none}
body.reference-editor #workbench-menu{margin-left:8px}
body.reference-editor #workbench-menu summary{height:25px;padding:3px 7px;font-size:11px}
body.reference-editor .primary-views button.active,body.reference-editor [data-tool].active{color:#fff!important;background:#22b2d0!important;border-color:#22b2d0!important}
body.reference-editor .app{display:flex;min-height:0}
body.reference-editor .rail{width:280px;padding:0;display:flex;min-height:0}
body.reference-editor .side-tabs{height:35px;padding:5px 10px;gap:4px;align-items:center}
body.reference-editor .side-tabs button{padding:3px 8px;font-size:11px}
body.reference-editor .side-tabs button.active{border:0;border-radius:1px;color:white!important;background:#22b2d0!important}
body.reference-editor #reference-collapse{margin-left:auto;padding:3px 0;color:#8ea7bf;background:none;border:0;min-width:15px}
body.reference-editor .side-content{height:auto;flex:1;min-height:0;padding:0;overflow:auto}
body.reference-editor #side-entities{display:flex;flex-direction:column;overflow:hidden}
#entity-subtabs{display:flex;flex-shrink:0;height:30px;border-bottom:1px solid var(--line);align-items:stretch}
#entity-subtabs button{flex:1;font-size:11px;padding:4px 2px;border:0;border-radius:0;background:none;color:var(--muted)}
#entity-subtabs button.active{background:none!important;color:#2bc8e3!important;border-bottom:1px solid #2bc8e3}
body.reference-editor #entity-list{overflow:auto;flex:1;min-height:0}
body.reference-editor #entity-search{flex-shrink:0;width:calc(100% - 16px);margin:6px 8px;padding:5px 7px;font-size:11px}
.reference-entity{display:flex;align-items:center;gap:6px;height:29px;width:100%;text-align:left;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;padding:5px 9px;font-size:12px;white-space:nowrap}
.reference-entity:hover{background:#1a2639}.reference-entity.selected{background:#23354a;border-left:2px solid #22b2d0;padding-left:7px}
.entity-name{min-width:0;overflow:hidden;text-overflow:ellipsis;flex:1}.entity-tail{color:#89a3c2;font-size:11px;flex-shrink:0;max-width:70px;overflow:hidden;text-overflow:ellipsis}
.entity-dot{width:8px;height:8px;border-radius:50%;background:#61c36a;flex-shrink:0}.entity-dot.enemy{background:#ee8484}.zone-dot{width:10px;height:10px;border:1px solid #c0deef;border-radius:50%;flex-shrink:0}
.entity-badge{font-size:10px;background:#1c293d;color:#91aac6;padding:1px 4px;flex-shrink:0;border-radius:1px}
.entity-badge.state-InProgress{background:#285780;color:#fff}.entity-badge.state-Idle{background:#4b4f5a;color:#fff}.entity-badge.state-Completed{background:#409653;color:#fff}.entity-badge.state-Failed{background:#853633;color:#fff}
.entity-empty{font-size:11px;color:var(--muted);padding:8px 10px}.entity-add-footer{display:flex;gap:4px;padding:7px 8px;border-top:1px solid var(--line);flex-shrink:0}.entity-add-footer button{font-size:11px;padding:5px 7px;border-radius:1px;background:transparent;border-style:dashed;color:#91aac6}#entity-add{flex:1}
.reference-info{padding:12px 10px;border-bottom:1px solid var(--line)}.reference-info h3{margin:3px 7px 6px;font-size:10px;font-weight:400;color:#809abb;letter-spacing:.6px}.reference-info>button{display:block;width:100%;text-align:left;font:11px/1.3 Consolas,monospace;color:#8ea7c9;border:0;background:none;padding:7px 7px;overflow:hidden;text-overflow:ellipsis;border-radius:0}.reference-info>button:hover{background:#1c293b;color:#dce7ef}#reference-add-message{display:flex;gap:5px;margin-top:8px}#reference-add-message input{flex:1;padding:5px 6px;font-size:11px;background:#1b2535}#reference-add-message button{font-size:10px;padding:4px 7px}
body.reference-editor #side-factions,body.reference-editor #side-charts{padding:10px 15px}
body.reference-editor .map-layout,body.reference-editor .flow-layout{display:grid;grid-template-columns:minmax(0,1fr);min-height:0;flex:1}
body.reference-editor .map-layout.inspector-open,body.reference-editor .flow-layout.inspector-open{grid-template-columns:minmax(0,1fr) 315px}
body.reference-editor .inspector{background:#121827;padding:0 12px 14px;border-left:1px solid var(--line);border-top:0;min-width:0;max-height:none}
.reference-inspector-head{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:3;height:33px;margin:0 -12px 12px;padding:0 12px;border-bottom:1px solid var(--line);background:#121827;color:#829cbc;font-size:11px}
.reference-inspector-head button{border:0;background:none;color:#829cbc;font-size:19px!important;padding:0 2px!important}
.legacy-inspector-label{display:none}.typed-panel label{font-size:11px;margin:10px 0}.typed-panel label>input,.typed-panel label>select,.typed-panel label>textarea{margin-top:3px;font-size:12px;padding:6px 8px;background:#1c2535;border-radius:1px}.typed-panel .segment{display:flex;gap:5px;margin:3px 0 8px}.typed-panel .segment button{flex:1;font-size:11px;padding:4px 7px;border-radius:1px}.typed-panel .segment button.active{background:#22b2d0!important;color:white!important;border-color:#22b2d0!important}.typed-panel h3{font-size:11px;color:#819cbd;margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}.typed-panel .wide{display:block;width:100%;font-size:11px;text-align:center;margin:6px 0;padding:6px;border-style:dashed;color:#8fa5c1;background:transparent}.typed-panel .checkbox-row{justify-content:flex-start;gap:18px}.typed-panel .form-grid{gap:8px}.typed-panel small{font-size:10px}.unit-event-row{display:flex;align-items:center;justify-content:space-between;padding:5px 0;gap:7px;font-size:11px}.unit-event-row button{background:none;border-radius:1px;font-size:10px;padding:2px 7px;color:#8ea6c4}.unit-event-row button.configured{border:0;color:#24c2df;text-decoration:underline;max-width:115px;overflow:hidden;text-overflow:ellipsis}.typed-panel .danger{width:100%;margin-top:12px;background:#31181d;border-color:#943d42;color:#ef9898;font-size:11px;padding:6px;border-radius:1px}
body.reference-editor [data-panel=map]>.viewbar{display:none}
body.reference-editor [data-panel=flow]>.viewbar{padding:5px 12px;min-height:38px;gap:8px;flex-wrap:nowrap;background:#121827}
body.reference-editor .semantic-legend{gap:5px 11px;display:flex;align-items:center;flex-wrap:wrap}.semantic-legend label{display:flex;align-items:center;gap:4px;margin:0;white-space:nowrap}.semantic-legend label small{font-size:10px;color:#7e9abb}.semantic-legend label span{font-size:9px;padding:1px 4px}
body.reference-editor #graph-add{font-size:11px;padding:4px 7px}
body.reference-editor #reference-graph-tools{display:block!important;position:relative;flex-shrink:0}#reference-graph-tools summary,#map-more-tools summary{cursor:pointer;list-style:none;border:1px solid var(--line);background:var(--surface);padding:4px 7px;font-size:11px;border-radius:1px}
#reference-graph-tools>div{position:absolute;right:0;top:28px;width:330px;max-width:85vw;z-index:40;border:1px solid var(--line);background:#152033;padding:12px;box-shadow:0 12px 25px #0008}#reference-graph-tools .tools{display:flex;gap:5px;margin-bottom:12px}#reference-graph-tools .flow-objective-tools,#reference-graph-tools .flow-link-tools{display:flex;border-top:1px solid var(--line);margin-top:10px;padding-top:10px;font-size:11px}#reference-graph-tools label{display:block;width:100%;margin:0}#reference-graph-tools select{display:block;width:100%;max-width:none;margin-top:5px}
#map-more-tools{position:relative}#map-more-tools[open]{position:relative}#map-more-tools button{display:block;width:130px;margin:0;border-radius:0!important}#map-more-tools[open]{background:#152033;z-index:50}#map-more-tools:not([open])>button{display:none}
body.reference-editor #graph-viewport{background:#0b0f1b}
body.reference-editor .graph-node{border-left:1px solid #2c3c51;min-height:60px}body.reference-editor .graph-node .node-input,body.reference-editor .graph-node .node-connect{width:13px;height:13px;opacity:.65;left:auto;top:30px;right:-7px}body.reference-editor .graph-node .node-input{left:-7px;right:auto}body.reference-editor .graph-node:hover .node-input,body.reference-editor .graph-node:hover .node-connect,body.reference-editor .graph-node.selected .node-input,body.reference-editor .graph-node.selected .node-connect{opacity:1}
body.reference-editor .map-unit-label{background:transparent;font-size:10px;text-shadow:0 1px 2px #000,1px 0 2px #000;padding:2px 3px;max-width:150px}
.map-zone-label{color:#fff;font-size:10px;text-shadow:0 1px 2px #000,1px 0 2px #000;white-space:nowrap;pointer-events:none}.map-zone-label.selected{color:#5fe9ed}
body.reference-editor #map-hint{left:5px;top:auto;bottom:5px;background:#101827aa;border-radius:0;padding:3px 6px}body.reference-editor #coordinate-readout{left:5px;bottom:29px;border-radius:0;padding:3px 6px}
body.reference-editor footer{height:21px;font-size:10px;padding:3px 12px;overflow:hidden}body.reference-editor footer span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body.reference-editor #parser-status{display:none}
body.reference-editor.sidebar-collapsed .rail{width:28px}.sidebar-collapsed .side-tabs{padding:3px}.sidebar-collapsed .side-tabs>[data-side],.sidebar-collapsed .side-content{display:none!important}.sidebar-collapsed #reference-collapse{margin:auto}
.library-file-actions{display:flex;gap:8px;flex-wrap:wrap;padding-top:15px;border-top:1px solid var(--line)}
@media(max-width:1400px){body.reference-editor .rail{width:235px}body.reference-editor .map-layout.inspector-open,body.reference-editor .flow-layout.inspector-open{grid-template-columns:minmax(0,1fr) 295px}body.reference-editor .header-mission{max-width:200px}.semantic-legend label small{display:none}}
@media(max-width:1000px){body.reference-editor header{gap:5px}body.reference-editor .header-mission{max-width:155px}body.reference-editor .rail{width:215px}body.reference-editor header button{font-size:11px;padding:3px 6px}body.reference-editor #tactical-tools{margin-left:auto}body.reference-editor .map-layout.inspector-open,body.reference-editor .flow-layout.inspector-open{grid-template-columns:minmax(0,1fr) 265px}}
@media(max-width:760px){body.reference-editor{height:100dvh;overflow:hidden}body.reference-editor header{height:auto;flex-wrap:wrap;min-height:37px}body.reference-editor header .header-mission{flex:1;max-width:180px}body.reference-editor #tactical-tools{order:5;flex-basis:100%;justify-content:center}body.reference-editor .app{display:flex;flex-direction:column;min-height:0}body.reference-editor .rail{width:100%;height:170px;flex-shrink:0;border-bottom:1px solid var(--line)}body.reference-editor .side-tabs{height:30px}body.reference-editor .side-content{min-height:0}body.reference-editor #entity-subtabs{height:27px}body.reference-editor .reference-entity{height:26px;font-size:11px}.entity-add-footer{padding:3px 8px}.entity-add-footer button{padding:3px 7px}body.reference-editor main{flex:1;min-height:0}body.reference-editor main>section{height:100%;min-height:0}body.reference-editor .map-layout.inspector-open,body.reference-editor .flow-layout.inspector-open{grid-template-columns:minmax(0,1fr)}body.reference-editor .map-stage,body.reference-editor #graph-viewport{height:auto;min-height:0}body.reference-editor .inspector{position:absolute;right:0;top:0;bottom:0;width:min(300px,85%);z-index:30;box-shadow:-10px 0 25px #0007}body.reference-editor .map-layout,body.reference-editor .flow-layout{position:relative}body.reference-editor .sidebar-collapsed .rail{height:30px;width:100%}.sidebar-collapsed .side-tabs{justify-content:flex-end;width:100%}.sidebar-collapsed #reference-collapse{margin:0 8px}body.reference-editor [data-panel=flow]>.viewbar{flex-wrap:wrap;gap:5px;padding:4px 7px;min-height:32px}body.reference-editor .semantic-legend{flex-basis:100%;gap:3px 6px}.semantic-legend label span{font-size:8px}body.reference-editor #map-hint{max-width:calc(100% - 10px)}body.reference-editor .scroll-content{overflow:auto}}

body.reference-editor .map-unit-label{width:max-content;max-width:210px;white-space:nowrap;top:40px;font-size:10px;line-height:1.2}
body.reference-editor .unit-marker{width:44px;height:44px}body.reference-editor .tactical-symbol{width:44px;height:44px}
#map-more-tools>button{position:relative}#map-more-tools[open]{position:absolute;top:5px;margin-left:240px}body.reference-editor #tactical-tools{padding-right:58px;position:relative}#map-more-tools{position:absolute;right:0;top:0}#map-more-tools[open]{right:0;top:0;margin-left:0}

body.reference-editor .typed-panel label{margin:7px 0}body.reference-editor .typed-panel label>input,body.reference-editor .typed-panel label>select{height:29px;padding:4px 7px}body.reference-editor .typed-panel small{line-height:1.4}body.reference-editor .typed-panel h3{margin-top:12px;padding-top:10px}

@media(max-width:760px){body.reference-editor header{display:grid;grid-template-columns:auto 1fr auto;gap:5px;padding:4px 8px}body.reference-editor #library-open{grid-column:1;grid-row:1}body.reference-editor header .header-mission{grid-column:2;grid-row:1;max-width:none}body.reference-editor header>#undo{grid-column:3;grid-row:1}body.reference-editor .primary-views{grid-column:1;grid-row:2;order:initial}body.reference-editor header .actions{grid-column:2 / 4;grid-row:2;justify-self:end;margin:0}body.reference-editor header .actions #save{display:inline-block}body.reference-editor #tactical-tools{grid-column:1 / 4;grid-row:3;order:initial;width:100%;justify-content:center;padding-right:58px;margin:0}}

.player-asset-error{padding:8px;border-left:2px solid #ef8a88;background:#351d24;color:#ffb5b0;font-size:11px;line-height:1.5}.player-asset-hint{color:#dfc77f!important}#place-asset optgroup,#unit-type optgroup{color:#dfc77f;font-weight:600}#place-asset option,#unit-type option{color:#dce7ef;font-weight:400}

.evaluator-objectives{margin:12px 0;padding:9px;border:1px solid var(--line)}.evaluator-objectives legend{font-size:11px;color:var(--muted)}.evaluator-objectives .check{align-items:flex-start}.evaluator-objectives .check small{margin-top:2px;font-size:10px}.evaluator-objectives button{font-size:11px;margin-top:7px}

.loadout-slot{display:grid!important;grid-template-columns:82px minmax(0,1fr);gap:8px;align-items:center;margin:4px 0!important}.loadout-slot select,.loadout-slot input{margin:0!important;font-size:11px!important;padding:3px 5px!important;height:26px!important}.loadout-preset{display:flex;gap:5px;margin:8px 0}.loadout-preset select{font-size:11px}.loadout-preset button{font-size:10px}.loadout-magazine{margin:14px 0}.loadout-magazine .loadout-slot{grid-template-columns:minmax(0,1fr) 72px}.loadout-slot span{font-size:10px}

.loadout-slot{grid-template-columns:102px minmax(0,1fr)}.loadout-slot>span{white-space:nowrap;font-size:9px}

body.reference-editor .side-tabs{padding:5px 7px;gap:2px}body.reference-editor .side-tabs button{padding:3px 6px;font-size:10px}body.reference-editor #side-charts{padding:10px}.chart-intro h2{font-size:14px;margin:3px 0 5px}.chart-section{border-top:1px solid var(--line);padding:10px 0;margin:8px 0}.chart-section>summary{cursor:pointer;color:#9cd7e6;font-size:12px;font-weight:600;padding:3px 0}.chart-section label{font-size:11px;margin:9px 0}.chart-section small{display:block;color:var(--muted);font-size:10px;line-height:1.5;margin:7px 0;overflow-wrap:anywhere}.chart-section input,.chart-section select{width:100%;font-size:11px;padding:5px 6px}.chart-section input[type=checkbox]{width:auto}.chart-section .check{display:flex;align-items:center;gap:6px}.chart-section button{font-size:11px;padding:6px 8px}.chart-button-row{display:flex;flex-wrap:wrap;gap:5px;margin:9px 0}.chart-opacity{display:flex;align-items:center;gap:8px;color:var(--muted);margin:0 0 10px!important}.chart-opacity input{flex:1;min-width:0;padding:0}.chart-waypoint{display:grid;grid-template-columns:15px 1fr 1fr 25px;gap:4px;align-items:center;border-top:1px solid #26364a}.chart-waypoint label{font-size:9px;min-width:0}.chart-waypoint input{padding:4px;width:100%;font-size:10px}.chart-waypoint button{padding:4px}.chart-waypoint b{font-size:10px}#chart-route-points{max-height:240px;overflow:auto}#depth-dialog{width:min(1000px,94vw)}#depth-profile{width:100%;height:300px}body.reference-editor #tactical-tools{gap:2px}

.route-waypoint-marker{width:22px;height:22px;border-radius:50%;padding:0;border:1px solid #74dbe5;background:#123848;color:#e5fbff;font-size:11px;z-index:30}

.zone-handle{padding:0;border:2px solid #84e9ef;box-shadow:0 0 0 2px #102b36a0;background:#183342;color:#d8fcff;z-index:45;touch-action:none}.zone-center{width:21px;height:21px;border-radius:50%;font-size:17px;line-height:16px;cursor:pointer}.zone-center.selected{background:#197f96;cursor:move}.zone-edge{width:13px;height:13px;border-radius:1px;cursor:crosshair;z-index:46}.editor-context-menu{position:fixed;z-index:10000;min-width:200px;max-width:290px;padding:5px;border:1px solid #3f6178;border-radius:2px;background:#152133;box-shadow:0 8px 30px #0008}.editor-context-menu button{display:block;width:100%;text-align:left;border:0;background:transparent;color:#d5e8f4;padding:8px 11px;font-size:12px}.editor-context-menu button:hover,.editor-context-menu button:focus{background:#24465b;outline:none}.context-menu-title{padding:7px 10px;color:#84cadc;font-size:11px;border-bottom:1px solid var(--line);overflow:hidden;text-overflow:ellipsis}.context-place-items{padding-left:12px;border-left:1px solid #395268;margin-left:13px}.context-place-items.collapsed{display:none}.editor-context-menu [data-context-action$=delete]{color:#ffaaa1}#graph-selection-box{position:absolute;z-index:15;pointer-events:none;border:1px solid #4bd1e9;background:#39c2dc22}#graph-selection-status{position:absolute;z-index:16;left:8px;top:8px;padding:5px 8px;background:#163b50;border:1px solid #3f9cb3;color:#bdeffd;font-size:11px}body.reference-editor .graph-node.selected{box-shadow:0 0 0 2px #39cae0}

#graph-viewport{user-select:none}

.zone-edge[data-zone-handle=north],.zone-edge[data-zone-handle=south]{cursor:ns-resize}.zone-edge[data-zone-handle=east],.zone-edge[data-zone-handle=west]{cursor:ew-resize}.zone-edge[data-zone-handle=nw],.zone-edge[data-zone-handle=se]{cursor:nwse-resize}.zone-edge[data-zone-handle=ne],.zone-edge[data-zone-handle=sw]{cursor:nesw-resize}

.heading-control{display:flex;align-items:center;gap:10px}.heading-control input{flex:1;min-width:0}#unit-heading-dial{width:76px;height:76px;flex:0 0 76px;overflow:visible;touch-action:none;cursor:crosshair}#unit-heading-dial circle{fill:#0e1725;stroke:#4e6e88;stroke-width:1.5}#unit-heading-dial text{fill:#aac4d8;font-size:9px}.heading-ticks{stroke:#7896ae;fill:none}.heading-needle path{fill:#31d6ed}#unit-heading-dial .heading-pivot{fill:#31d6ed;stroke:none}#unit-heading-dial:focus{outline:1px solid #31d6ed;border-radius:50%}.unit-direction{position:absolute;width:68px;height:68px;left:50%;top:22px;margin-left:-34px;margin-top:-34px;pointer-events:none;transform-origin:50% 50%}.unit-direction svg{width:100%;height:100%;fill:#38e0f3;filter:drop-shadow(0 1px 2px #061421)}.measure-endpoint{width:27px;height:27px;border-radius:50%;border:2px solid #fff;font-weight:700;color:#09232b;background:#56e6d0;box-shadow:0 1px 6px #000;z-index:50;cursor:grab}.measure-endpoint.measure-end{background:#ffd36c}.chart-waypoint-actions{display:flex;gap:5px;margin:3px 0 9px}.chart-waypoint-actions button{font-size:11px}

.graph-navigation-tools{display:flex;gap:4px;align-items:center}.graph-navigation-tools button{display:flex;align-items:center;gap:5px;padding:4px 7px;font-size:10px}.graph-navigation-tools svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}#graph-viewport.hand-tool,#graph-viewport.hand-tool *{cursor:grab!important}#graph-viewport.hand-tool:active,#graph-viewport.hand-tool:active *{cursor:grabbing!important}#graph-viewport.area-selecting,#graph-viewport.area-selecting *{cursor:crosshair!important}

body.reference-editor .graph-node .node-title{font-weight:400}
body.reference-editor [data-panel=flow]>.viewbar>.graph-navigation-tools{display:flex!important}

#map-area-selection-box{position:absolute;border:1px solid #66e5ef;background:#36cee927;pointer-events:none;z-index:100}#map-area-selection-status{position:absolute;bottom:45px;left:12px;z-index:100;padding:5px 9px;font-size:11px;background:#152e3b;color:#a9eef3}.coordinate-marker.selected{outline:2px solid #50e6ed;outline-offset:3px}.map-zone-label.selected{color:#75f1ff;text-shadow:0 1px 2px #081924}.zone-center.selected{box-shadow:0 0 0 2px #59dce9}

body.reference-editor .graph-node .node-title{font-size:11px;font-weight:400;line-height:1.25}body.reference-editor .graph-node .node-context{font-size:10px;font-weight:400}

/* Squadron controls */
.squad-member{display:flex;gap:8px;align-items:center;margin:8px 0}.squad-member input{width:auto}#squadron-dialog{width:min(540px,90vw);max-height:85vh;overflow:auto}#squadron-dialog fieldset{max-height:230px;overflow:auto}.squad-preview{white-space:pre;text-align:center;color:var(--accent,#7ad6d1);background:rgba(120,210,210,.05);padding:12px}
body.v2-editor #entity-list .squad-create-row{padding:0 14px 14px;border-bottom:1px solid var(--line);margin-bottom:12px}
body.v2-editor #entity-list .squad-create{display:block;width:100%;text-align:left;padding:9px 12px;font-size:12px;line-height:1.4;min-height:36px}
body.v2-editor #entity-list .squad-create:disabled{opacity:.45;cursor:not-allowed}
body.v2-editor #entity-list .squad-list{margin:10px 10px 16px;border:1px solid #304557;border-radius:2px;background:#101d2b;overflow:hidden}
body.v2-editor #entity-list .squad-list>summary{display:flex;align-items:stretch;list-style:none;cursor:pointer;background:#1a2b3b;border-bottom:1px solid #304557}
body.v2-editor #entity-list .squad-list:not([open])>summary{border-bottom:0}
body.v2-editor #entity-list .squad-list>summary::-webkit-details-marker{display:none}
body.v2-editor #entity-list .squad-list>summary::before{display:none;content:none}
body.v2-editor #entity-list .squad-header{flex:1;width:auto;min-width:0;border:0;min-height:58px;padding:10px;grid-template-columns:20px minmax(0,1fr);column-gap:9px}
body.v2-editor #entity-list .squad-header .entity-name{font-weight:600;color:#c4e5e8}
body.v2-editor #entity-list .squad-chevron{display:flex;width:32px;flex-shrink:0;align-items:center;justify-content:center;color:#8babb8;border-left:1px solid #304557}
body.v2-editor #entity-list .squad-chevron svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5;transition:transform .12s}
body.v2-editor #entity-list .squad-list[open] .squad-chevron svg{transform:rotate(90deg)}
body.v2-editor #entity-list .squad-chevron:hover{color:#82dfd5;background:#213847}
body.v2-editor #entity-list .squad-child{padding:11px 10px 11px 16px;grid-template-columns:20px minmax(0,1fr);column-gap:9px;border-left:2px solid #304e5b;margin-left:10px;width:calc(100% - 10px)}
body.v2-editor #entity-list .squad-child:last-child{border-bottom:0}
body.v2-editor #entity-list .reference-entity:has(>.entity-type-icon){grid-template-columns:20px minmax(0,1fr)}
body.v2-editor #entity-list .entity-type-icon{width:20px;height:20px;grid-column:1;grid-row:1 / span 2;align-self:center;flex-shrink:0;color:#8da7b9}
body.v2-editor #entity-list .entity-type-icon.friendly{color:#79c9b9}body.v2-editor #entity-list .entity-type-icon.enemy{color:#ee9292}
