/* Shell presentation only: native chart and geology drawing stay in Navigation. */
.tree-options{display:flex;flex-wrap:wrap;gap:5px;padding:5px 8px;border-bottom:1px solid var(--line);font-size:10px}
.tree-options select{min-width:0;flex:1;font-size:10px;padding:3px;height:24px}
.tree-options label{display:flex;align-items:center;gap:4px;width:100%;color:var(--muted)}
.tree-options input{width:12px;height:12px;margin:0}
.panel-head button{margin-left:4px;min-width:22px}.panel-head button:first-of-type{margin-left:auto}
.tree-branch{display:block}.tree-parent{position:relative;top:auto;z-index:auto;background:var(--panel,#fff);box-shadow:0 1px 0 #e2e8f0}
.tree-parent.active{background:#edf5ff}.tree-parent.selected{background:#dbeafe}
#tree .row{min-width:0}.group-label{position:sticky;top:0;z-index:4;background:#f3f6fa}
#toolbar-context{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#50677e;font-size:10px}
#plot-toolbar{max-width:calc(100% - 16px);overflow-x:auto;scrollbar-width:none;gap:3px;flex-wrap:nowrap;justify-content:safe flex-end}
#plot-toolbar button{flex-shrink:0}#plot-toolbar .navigation-target{flex-shrink:0}
#quick-look{position:absolute;right:12px;bottom:58px;z-index:7;width:min(260px,calc(100% - 24px));max-height:34%;overflow:auto;background:rgba(255,255,255,.97);border:1px solid #c6d3e1;border-radius:9px;box-shadow:0 6px 24px #19344822;padding:8px;font-size:10px;color:#324c65}
#quick-look[hidden]{display:none}#quick-look strong{font-size:12px}#quick-look p{margin:5px 0 8px;color:#58718b}
#quick-look div{display:flex;justify-content:space-between;gap:8px;padding:3px 0}#quick-look b{font-variant-numeric:tabular-nums;white-space:nowrap}#quick-look small{display:block;color:#71849b;font-size:9px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#quick-look .quick-sample{display:grid;grid-template-columns:1fr auto;border-top:1px solid #e3eaf1;margin-top:6px;padding-top:6px}#quick-look .quick-sample small{grid-column:1/-1}
.profile-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:8px 0;padding:8px;border:1px solid var(--line);border-radius:6px}
.profile-row input{flex:1;min-width:130px}.profile-row small{color:var(--muted)}.profile-row button{padding:5px 8px;font-size:11px}
@media(max-width:900px){#toolbar-context{display:none}#plot-toolbar{justify-content:flex-start;left:8px;transform:none}#plot-toolbar .navigation-target select{max-width:125px}}
/* Author display:flex rules must not override native hidden semantics. */
[hidden]{display:none!important}

#quick-look.expanded{width:min(330px,calc(100% - 24px));max-height:58%}
#quick-look-details{width:100%;padding:4px;margin-top:6px;color:#436585;background:#edf4fb;border:0;font-size:10px}
.target-parameters{display:grid;grid-template-columns:1fr 1fr;gap:4px 14px}.target-parameters p{grid-column:1/-1}
.reference-choice{border:1px solid var(--line);border-radius:7px;margin:10px 0;padding:10px}.reference-choice>small{display:block;color:var(--muted);font-size:11px;margin-top:6px}
@media(max-width:650px){.target-parameters{grid-template-columns:1fr}}

/* One object graph: source browser above, visible track/layer controls below. */
.sidebar-collection{margin:3px 5px 7px;border:1px solid #e1e7ef;border-radius:9px;background:var(--panel,#fff);overflow:hidden}
.sidebar-collection>summary{display:list-item;list-style-position:inside;cursor:pointer;padding:8px 7px;color:#334b65;font-size:11px;font-weight:600;background:#f4f7fb;user-select:none}
.sidebar-collection>summary:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
.sidebar-count{float:right;font-size:10px;font-weight:500;color:#5d7087;font-variant-numeric:tabular-nums}
.sidebar-collection-body{padding:2px 3px 4px}.sidebar-collection .row{border-radius:6px}
.row.sidebar-detailed{height:auto;min-height:37px;padding-top:4px;padding-bottom:4px;box-sizing:border-box}
.sidebar-copy{display:flex;flex-direction:column;flex:1;min-width:0;gap:3px}.sidebar-copy .name{flex:none}.sidebar-detail{font-size:9px;color:#5a6d83;line-height:1.25;white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sidebar-swatch{width:10px;height:10px;border-radius:3px;flex:none;margin-right:2px;border:1px solid #0000000c}
.sidebar-scope{padding:3px 9px 5px;color:#5a6d83;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#groups .row input[type=checkbox]{width:14px;height:14px}
/* Keep sources readable as the viewport changes; tracks retain their own scale. */
@media(max-width:1400px){header #project{width:clamp(130px,17vw,220px);max-width:220px}header #well{width:clamp(110px,13vw,180px);max-width:180px}header #bore{width:130px;max-width:130px}header #show-graphs span{display:none}}
@media(max-width:1100px){header #save-view{display:none}header #show-graphs{width:30px;flex-shrink:0}header #project{width:145px}header #well{width:120px}}
@media(max-height:760px){#sidebar .panel-head{min-height:25px}.sidebar-collection>summary{min-height:26px}.row.sidebar-detailed{min-height:31px}.sidebar-detail{-webkit-line-clamp:1}}
/* Anchor the phone menu to the header, rather than to its folder icon. */
@media(max-width:650px){header #file-actions{position:static}header .file-popup{left:8px;right:8px;top:calc(100% + 4px);width:auto;min-width:0;max-width:none;max-height:calc(100vh - 84px);max-height:calc(100dvh - 84px);overflow-y:auto;overscroll-behavior:contain}}
