/* Model Explorer uses DAVINCI's shared glass and panel tokens. */
/* The arrow alone, at the very left edge: no button around it (Eddy 2026-11-21: "remove this arrow button and keep arrow shape alone pushed
   to the left to max left"). The area that takes the click stays 52 px tall; a soft shadow keeps the gold arrow readable over a light model. */
#model-explorer-toggle{position:fixed;left:0;top:50%;transform:translateY(-50%);z-index:calc(var(--dv-layer-panel,28) + 1);display:grid;place-items:center;width:24px;height:52px;padding:0;border:0;border-radius:0;background:none;color:var(--dv-gold);font:32px/1 var(--dv-font);cursor:pointer;text-shadow:0 1px 6px rgba(0,0,0,.55)}
#model-explorer-toggle[hidden]{display:none}
#model-explorer-toggle:hover{filter:brightness(1.25)}
#model-explorer-toggle:focus-visible{outline:2px solid var(--dv-gold);outline-offset:3px}
body.v7-model-open #v7-model-drawer{left:60px;right:auto;width:280px;max-width:calc(100vw - 76px);z-index:var(--dv-layer-panel,28);background:var(--dv-pane);border:1px solid var(--dv-edge);border-radius:var(--dv-r-panel);backdrop-filter:blur(var(--dv-blur)) saturate(1.6);-webkit-backdrop-filter:blur(var(--dv-blur)) saturate(1.6);box-shadow:var(--dv-shadow);color:var(--dv-text);font-family:var(--dv-font)}
/* Reserve a separate lane for the existing model shortcuts. */
body.v7-model-open :is(#v8-cameras,#v8-drawings,#v8-board){left:352px}
/* On phones the shortcuts stay above the scrollable explorer instead. */
@media(max-width:600px){
 body.v7-model-open #v7-model-drawer{top:258px;bottom:108px}
 body.v7-model-open :is(#v8-cameras,#v8-drawings,#v8-board){left:60px}
}

/* The drawer is the only scrolling container. Keep controls beside each part. */
#v7-model-drawer { scrollbar-width: thin; }
#v7-model-drawer #object-list { max-height: none; overflow: visible; }
#v7-model-drawer .tree-level,
#v7-model-drawer .nav-bottom { display: none; }
.v8-tree-line, .v8-tree-group-tools { display: flex; align-items: center; gap: 4px; min-width: 0; }
.v8-tree-model strong { flex: 1; font-weight: 500; }
.v8-tree-group { border-top: 1px solid var(--dv-edge); margin-top: 4px; }
.v8-tree-group summary { cursor: pointer; padding: 8px 4px; }
.v8-tree-group-tools { justify-content: flex-end; }
#object-list .v8-tree-object { margin-inline-start: 4px; }
#object-list .v8-tree-pick { min-width: 0; flex: 1; gap: 4px; text-align: left; overflow-wrap: anywhere; }
#object-list .v8-tree-action { width: auto; flex: none; padding: 5px 7px; font-size: 11px; }
#object-list .v8-tree-action:hover, #object-list .v8-tree-pick:hover { background: var(--dv-hover); }
#object-list [hidden] { display: none !important; }

/* Models (one per building) hold their categories (2026-11-16). */
#object-list .v8-tree-building > summary { font-weight: 600; color: var(--dv-gold); }
#object-list .v8-tree-category { margin-inline-start: 10px; border-top-color: transparent; }
#object-list .v8-tree-category > summary { padding: 6px 4px; font-size: 13px; opacity: .92; }
#object-list .v8-tree-category .v8-tree-object { margin-inline-start: 10px; }
#object-list .v8-tree-rename { width: 100%; box-sizing: border-box; margin: 6px 0; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--dv-gold); background: var(--dv-pane); color: var(--dv-text); font: inherit; }
#object-list .v8-tree-how { padding: 0 4px 8px; font-size: 11px; line-height: 1.4; color: rgba(255,255,255,.62); }
#object-list .v8-tree-sub { margin-inline-start: 10px; border-top-color: transparent; }
#object-list .v8-tree-sub > summary { padding: 5px 4px; font-size: 12px; opacity: .88; }
