/* iOS grouped explorer, with compact Object/Group Tree interactions.
   No backdrop filters or chart overlays: presentation stays outside Navigation. */
#sidebar.workspace-sidebar{--explorer-blue:#007aff;--explorer-muted:#85858c;--explorer-paper:#fff;--explorer-line:#e8e8ed;background:#f2f2f7;color:#242428;font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text',system-ui,sans-serif}
.workspace-sidebar :is(#objects-section,#groups-section){background:#f2f2f7}
.workspace-sidebar :is(#tree,#groups){padding:2px 10px 14px;background:transparent;font-size:12px;scrollbar-gutter:stable;scrollbar-width:thin;scroll-padding-top:36px}
.workspace-sidebar #objects-section>.offsets{display:none}
.workspace-sidebar .panel-head{height:39px;min-height:39px;padding:0 11px 0 14px;background:#f2f2f7;border:0;box-shadow:none;font-size:13px;font-weight:650;letter-spacing:-.25px;color:#28282d;flex-wrap:nowrap;white-space:nowrap}
.workspace-sidebar .panel-head button{width:25px;height:25px;min-width:25px;border-radius:8px;margin-left:3px;background:transparent;color:#77777e;border:0}
.workspace-sidebar .panel-head button:first-of-type{margin-left:auto}
.workspace-sidebar .panel-head button:hover{background:#e5e5eb;color:var(--explorer-blue)}
.workspace-sidebar :is(#collapse-objects,#collapse-groups) img{transform:rotate(90deg);width:13px;height:13px}
.workspace-sidebar :is(#expand-objects,#expand-groups) img{transform:rotate(-90deg);width:13px;height:13px}
.workspace-sidebar .search{margin:1px 12px 8px;height:30px;border:0;border-radius:9px;background:#e7e7ed;box-shadow:none}
.workspace-sidebar .search img{opacity:.5;width:15px;height:15px}
.workspace-sidebar .search input{font-family:inherit;font-size:12px;color:#33333a;background:transparent}
.workspace-sidebar .search input::placeholder{color:#797983}
.workspace-sidebar .search:focus-within{background:#fff;box-shadow:0 0 0 2px #007aff30}
.workspace-sidebar .tree-options{gap:5px;padding:0 12px 8px;border:0}
.workspace-sidebar .tree-options select{height:27px;font-size:10px;padding:3px 6px;border:0;border-radius:7px;background:#fff;box-shadow:0 1px 2px #24243a05}
.workspace-sidebar .tree-options label{font-size:10px;line-height:23px;color:#85858d;gap:6px}
.workspace-sidebar .tree-options input[type=checkbox]{width:13px;height:13px;min-height:13px}
.workspace-sidebar .sidebar-collection{margin:8px 0 5px;border:0;border-radius:0;background:transparent;overflow:visible}
.workspace-sidebar .sidebar-collection>summary{display:flex;align-items:center;gap:6px;list-style:none;padding:5px 5px 5px 7px;min-height:28px;box-sizing:border-box;background:#f2f2f7;color:#73737d;border-radius:6px;font-size:10px;line-height:16px;font-weight:600;letter-spacing:.05px;position:sticky;top:0;z-index:2;cursor:pointer;user-select:none}
.workspace-sidebar .sidebar-collection>summary::-webkit-details-marker{display:none}
.workspace-sidebar .sidebar-collection>summary::marker{content:''}
.workspace-sidebar .sidebar-collection>summary:hover{color:#37373f;background:#eaeaef}
.workspace-sidebar .sidebar-section-name{order:0;flex:1;min-width:0}
.workspace-sidebar .sidebar-count{order:1;float:none;min-width:16px;line-height:16px;text-align:center;color:#777781;background:transparent;border-radius:6px;padding:0 2px;font-size:10px;font-weight:500;font-variant-numeric:tabular-nums}
.workspace-sidebar summary>.sidebar-chevron{order:2;width:10px;height:10px}
.workspace-sidebar .sidebar-collection-body{padding:3px 4px;background:var(--explorer-paper);border-radius:11px;box-shadow:0 1px 3px #20204003}
.workspace-sidebar details.sidebar-collection:not([open])>.sidebar-collection-body{display:none}
.workspace-sidebar .row{display:flex;align-items:center;gap:5px;min-height:29px;height:auto;position:relative;margin:0;border:1px solid transparent;border-radius:7px;padding:3px 5px 3px calc(var(--sidebar-indent,0px) + 3px);box-sizing:border-box;outline-offset:-2px}
.workspace-sidebar .sidebar-collection-body>.row+.row:before{content:'';position:absolute;left:30px;right:6px;top:-1px;height:1px;background:#f0f0f4;pointer-events:none}
.workspace-sidebar .row.sidebar-detailed:not(.sidebar-curve){min-height:31px;padding-top:3px;padding-bottom:3px}
.workspace-sidebar .tree-parent{background:transparent;box-shadow:none}
.workspace-sidebar .row.active{background:#e8ebf3}
.workspace-sidebar .row.active:not(.selected){border-color:transparent}
.workspace-sidebar .row.selected{background:#e0edff;border-color:transparent;color:#005ac6}
.workspace-sidebar .row:hover{background:#e9eff9}
.workspace-sidebar .row:focus-visible,.workspace-sidebar summary:focus-visible{outline:2px solid #007aff80;outline-offset:-2px}
.workspace-sidebar .row .disclosure{width:17px;height:24px;min-width:17px;margin:0;border:0;border-radius:6px;background:transparent;flex:none;padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer}
.workspace-sidebar .row .disclosure:hover{background:#007aff12}
.workspace-sidebar .sidebar-chevron{width:11px;height:11px;flex:none;opacity:.45;transition:transform .15s ease}
.workspace-sidebar [open]>summary>.sidebar-chevron,.workspace-sidebar .disclosure[data-open=true]>.sidebar-chevron{transform:rotate(90deg)}
.workspace-sidebar .row .sidebar-toggle-target{display:inline-flex;align-items:center;justify-content:center;flex:none;width:20px;height:24px;margin:0;padding:0;border:0;cursor:pointer}
.workspace-sidebar input[type=checkbox]{appearance:none;width:16px;height:16px;min-height:16px;flex:none;margin:0;border:1.2px solid #c7c7cf;border-radius:50%;background:#fff;position:relative;cursor:pointer;box-shadow:none;transition:background-color .12s,border-color .12s}
.workspace-sidebar input[type=checkbox]:hover{border-color:var(--explorer-blue)}
.workspace-sidebar input[type=checkbox]:checked,.workspace-sidebar input[type=checkbox]:indeterminate{background:var(--explorer-blue);border-color:var(--explorer-blue);box-shadow:none}
.workspace-sidebar input[type=checkbox]:checked::after{content:'';position:absolute;inset:0;background:#fff;mask:url('../../../icons/check.svg') center/12px 12px no-repeat;-webkit-mask:url('../../../icons/check.svg') center/12px 12px no-repeat}
.workspace-sidebar input[type=checkbox]:indeterminate::after{content:'';position:absolute;width:7px;height:2px;left:3px;top:6px;background:#fff;border-radius:1px;mask:none;-webkit-mask:none}
.workspace-sidebar input[type=checkbox]:disabled{opacity:.4;cursor:default}
.workspace-sidebar input[type=checkbox]:focus-visible{outline:2px solid #007aff80;outline-offset:2px}
.workspace-sidebar .row .type-icon,.workspace-sidebar .sidebar-swatch{width:12px;height:12px;flex:none;margin:0}
.workspace-sidebar .sidebar-swatch{border-radius:4px;border:0;box-shadow:inset 0 0 0 1px #00000008}
.workspace-sidebar .sidebar-copy{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1}
.workspace-sidebar .row .name{line-height:17px;font-size:12px;font-weight:400;letter-spacing:-.12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.workspace-sidebar .row.active .name,.workspace-sidebar .row.sidebar-track .name{font-weight:600}
.workspace-sidebar .sidebar-detail{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;font-size:9px;line-height:12px;color:#74747e;letter-spacing:0}
.workspace-sidebar :is(.sidebar-curve,.sidebar-track) .sidebar-copy{flex-direction:row;align-items:center;gap:7px}
.workspace-sidebar :is(.sidebar-curve,.sidebar-track) .name{flex:1}
.workspace-sidebar :is(.sidebar-curve,.sidebar-track) .sidebar-detail{flex:none;max-width:50%;font-variant-numeric:tabular-nums;text-align:right}
.workspace-sidebar .sidebar-track .sidebar-detail{max-width:70%}
.workspace-sidebar #groups .sidebar-curve[data-group=true]{padding-left:calc(var(--sidebar-indent,0px) + 3px + max(17px,24px / var(--density,1)) + 5px)}
.workspace-sidebar .sidebar-scope{padding:4px 7px 5px;font-size:10px;color:#797983}
.workspace-sidebar .forecast-layer{display:grid;grid-template-columns:1fr;gap:5px;margin:0;padding:9px 7px;border:0;border-radius:8px;background:#fff}
.workspace-sidebar .forecast-layer+.forecast-layer{border-top:1px solid var(--explorer-line);border-radius:0 0 8px 8px}
.workspace-sidebar .forecast-layer label{display:grid;grid-template-columns:16px minmax(0,1fr) auto;align-items:center;gap:6px;white-space:normal;line-height:16px;font-size:11px;font-weight:500;cursor:pointer}
.workspace-sidebar .forecast-name{min-width:0;overflow-wrap:break-word}
.workspace-sidebar .forecast-layer select{width:100%;max-width:none;min-width:0;height:28px;padding:4px 7px;font-family:inherit;font-size:11px;border:0;border-radius:7px;background:#f3f3f8;color:#565660;box-shadow:none}
.workspace-sidebar .forecast-meta{display:flex;align-items:center;gap:5px;color:#777781;font-size:9px}
.workspace-sidebar .forecast-badge{font-size:8px;line-height:16px;border-radius:5px;background:#f0ecfa;color:#8a71b5;padding:0 5px;font-weight:600;letter-spacing:.1px}
.workspace-sidebar .forecast-help{margin:3px 0 4px;font-size:9px;line-height:14px;color:#777782;padding:4px 7px}
#sidebar.workspace-sidebar~#sidebar-divider{background:#e6e6ec}
#sidebar.workspace-sidebar .h-divider{height:9px;background:#ededf3;position:relative;cursor:row-resize}
#sidebar.workspace-sidebar .h-divider::after{content:'';position:absolute;top:3px;left:calc(50% - 13px);height:3px;width:26px;background:#c6c6d0;border-radius:3px}
.workspace-sidebar :is(.forecast-layer,.row){scroll-margin-top:36px}
@media(prefers-reduced-motion:reduce){.workspace-sidebar .sidebar-chevron,.workspace-sidebar input[type=checkbox]{transition:none}}
@media(max-width:650px){
 .workspace-sidebar .row,.workspace-sidebar .row.sidebar-detailed:not(.sidebar-curve){min-height:44px;padding-top:3px;padding-bottom:3px}
 .workspace-sidebar .row .sidebar-toggle-target{width:24px;height:36px}
 .workspace-sidebar .row .disclosure{width:24px;min-width:24px;height:36px}
 .workspace-sidebar input[type=checkbox]{width:18px;height:18px;min-height:18px}
 .workspace-sidebar input[type=checkbox]:indeterminate::after{left:4px;top:7px}
 .workspace-sidebar .panel-head{min-height:42px;height:42px;font-size:14px}
 .workspace-sidebar .sidebar-collection>summary{min-height:36px;padding-top:8px;padding-bottom:8px}
 .workspace-sidebar .forecast-layer label{min-height:30px;grid-template-columns:18px minmax(0,1fr) auto}
 .workspace-sidebar .forecast-layer select{height:34px}
}

@media(prefers-contrast:more){.workspace-sidebar .sidebar-chevron{opacity:1}.workspace-sidebar :is(.sidebar-detail,.sidebar-count,.sidebar-scope,.forecast-help,.forecast-meta){color:#53535e}.workspace-sidebar .sidebar-collection-body{box-shadow:inset 0 0 0 1px #bcbcc5}}
/* One nested source tree. The collection headers are real folders inside a bore,
   never cards or headings outside its branch. */
.workspace-sidebar #tree{margin:0 10px 8px;padding:5px 4px 12px;background:#fff;border-radius:11px;scrollbar-gutter:auto}
.workspace-sidebar #tree>.tree-branch+.tree-branch{margin-top:3px}
.workspace-sidebar #tree .tree-children{margin-left:6px;padding-left:4px;border-left:1px solid #e4e7ed}
.workspace-sidebar #tree .source-tree-group{margin:0;border:0;background:transparent;border-radius:0}
.workspace-sidebar #tree .source-tree-group>summary{position:static;min-height:29px;padding:3px 4px;gap:4px;background:transparent;border-radius:6px;color:#555d6b;font-size:11px;letter-spacing:0}
.workspace-sidebar #tree .source-tree-group>summary:hover{background:#f0f4fb}
.workspace-sidebar #tree .source-tree-group>summary>.sidebar-chevron{order:0;width:11px;height:11px}
.workspace-sidebar #tree .source-tree-group>summary>.sidebar-folder{order:1;width:12px;height:12px;opacity:.6;flex:none}
.workspace-sidebar #tree .source-tree-group>summary>.sidebar-section-name{order:2;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:500}
.workspace-sidebar #tree .source-tree-group>summary>.sidebar-count{order:3;min-width:12px;padding:0 1px;font-size:9px}
.workspace-sidebar #tree .source-tree-group>.sidebar-collection-body{margin-left:6px;padding:0 0 0 4px;border-left:1px solid #e4e7ed;border-radius:0;background:transparent;box-shadow:none}
.workspace-sidebar #tree .source-tree-group>.sidebar-collection-body>.row+.row:before{display:none}
.workspace-sidebar #tree .row{min-height:28px;border-radius:5px;gap:4px}
.workspace-sidebar #tree .row.sidebar-detailed:not(.sidebar-curve){min-height:31px}
.workspace-sidebar #tree .row .name{font-size:11.5px}
.workspace-sidebar #tree .row.active{background:#edf3fb}
.workspace-sidebar #tree .row.selected{background:#deebff}
.workspace-sidebar #tree .source-plan-row{padding-left:20px!important;font-size:10px}
@media(max-width:650px){
 .workspace-sidebar #tree .row,.workspace-sidebar #tree .row.sidebar-detailed:not(.sidebar-curve){min-height:44px}
 .workspace-sidebar #tree .source-tree-group>summary{min-height:38px}
 .workspace-sidebar #tree .tree-children,.workspace-sidebar #tree .source-tree-group>.sidebar-collection-body{margin-left:7px;padding-left:5px}
}
