
/* v1.0.5 · Accessible collapsible navigation and organization tree */
.nav-fold-button{display:inline-grid;place-items:center;flex:none;width:32px;height:32px;border:1px solid var(--oa-theme-line);border-radius:7px;background:var(--oa-theme-surface);color:var(--oa-theme-ink);font:bold 21px/1 system-ui,sans-serif;cursor:pointer}
.nav-fold-button:hover,.nav-restore-rail:hover{background:var(--oa-theme-soft)}
.nav-restore-rail{display:none;flex-direction:column;align-items:center;justify-content:flex-start;gap:12px;padding:12px 0;width:100%;min-height:140px;flex:1;border:0;background:transparent;color:var(--oa-theme-ink);cursor:pointer}
.nav-restore-rail b{font-size:24px;line-height:1}
.nav-restore-rail span{writing-mode:vertical-rl;letter-spacing:3px;font-size:15px;font-weight:700}
.nav-fold-button:focus-visible,.nav-restore-rail:focus-visible,.org-node-toggle:focus-visible{outline:2px solid var(--oa-theme-ink);outline-offset:2px}
.portal-hub{--hub-system-w:198px;--hub-feature-w:248px;grid-template-columns:var(--hub-system-w) var(--hub-feature-w) minmax(0,1fr);align-items:stretch}
.portal-hub.systems-collapsed{--hub-system-w:48px}
.portal-hub.features-collapsed{--hub-feature-w:48px}
.portal-hub.workbench-layout,.portal-hub.workbench-layout.features-collapsed{grid-template-columns:var(--hub-system-w) minmax(0,1fr)}
.portal-hub .hub-systems,.portal-hub .hub-features{grid-column:auto;grid-row:auto;min-width:0}
.portal-hub .hub-display{grid-column:auto;grid-row:auto;min-width:0}
.portal-hub .hub-system-heading{display:flex;align-items:center;gap:6px;padding:10px 8px}
.hub-system-heading>div{flex:1;min-width:0}
.hub-system-heading b{font-size:14px;line-height:1.45}
.hub-system-heading small{font-size:11px;line-height:1.4}
.hub-system-heading .hub-symbol{width:25px;height:25px}
.hub-system-heading .nav-fold-button{width:28px;height:32px}
.portal-hub .hub-system b{font-size:14px}
.portal-hub .hub-system{min-height:70px}
.portal-hub .hub-feature-main{font-size:15px;min-height:48px}
.portal-hub .hub-feature-icon{width:28px;height:28px;font-size:13px}
.portal-hub .hub-chevron{font-size:19px;font-weight:700;color:var(--oa-theme-ink)}
.portal-hub .hub-features-heading{font-size:15px}
.portal-hub .hub-features-toggle{width:32px;height:32px;font-size:20px;color:var(--oa-theme-ink)}
.portal-hub .hub-children button{font-size:14px;min-height:35px}
.portal-hub.systems-collapsed>.hub-systems>:is(.hub-system-heading,.hub-system-scroll,.hub-systems-bottom){display:none!important}
.portal-hub.systems-collapsed>.hub-systems>.hub-systems-rail{display:flex}
.portal-hub.features-collapsed>.hub-features .hub-features-rail{justify-content:flex-start;min-height:140px;padding-top:12px}
.portal-hub.features-collapsed>.hub-features .hub-features-rail span{font-size:15px}
.app:not(.hub-portal-active).module-nav-collapsed{grid-template-columns:48px minmax(0,1fr)}
.app:not(.hub-portal-active).module-nav-collapsed>.sidebar{width:48px;min-width:0}
.app.module-nav-collapsed>.sidebar>:is(.brand,.side-label,.module-nav,.side-foot){display:none!important}
.app.module-nav-collapsed>.sidebar>#moduleNavRestore{display:flex}
.oa-module-heading{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:13px}
.oa-module-heading span{min-width:0;letter-spacing:.2px}
.app:not(.hub-portal-active) .module-text strong{font-size:14px}
.app:not(.hub-portal-active) .module-text small{font-size:11px}
.contacts-workspace{grid-template-columns:minmax(315px,335px) minmax(0,1fr)}
.contacts-workspace.org-panel-collapsed{grid-template-columns:48px minmax(0,1fr)}
.contacts-workspace .org-panel{min-width:0}
.contacts-workspace .org-panel .panel-head{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:14px 12px}
.contacts-workspace .org-panel h3{font-size:18px;line-height:1.4}
.contacts-workspace .org-panel .panel-head small{font-size:14px;line-height:1.5}
.contacts-workspace.org-panel-collapsed>.org-panel>:is(.panel-head,.org-tree){display:none!important}
.contacts-workspace.org-panel-collapsed>.org-panel>.org-panel-rail{display:flex}
.org-tree{padding:9px 6px 14px;max-height:calc(100vh - 235px);min-height:240px;overflow:auto}
.org-line{display:flex;align-items:center;gap:2px;padding-left:calc(6px + var(--depth)*15px);margin:2px 0;border-radius:6px;min-width:0}
.org-line:hover,.org-line.active{background:var(--oa-theme-soft)}
.org-tree .org-row{display:grid;grid-template-columns:22px minmax(0,1fr) 28px;gap:6px;min-height:42px;height:auto;flex:1;min-width:0;padding:6px 7px 6px 0;font-size:15px;line-height:1.5;color:var(--oa-theme-text);background:transparent}
.org-tree .org-row.active{color:var(--oa-theme-ink);background:transparent;font-weight:700}
.org-tree .org-row:hover{background:transparent}
.org-name{white-space:normal;overflow-wrap:anywhere;text-align:left}
.org-tree .org-row small{font-size:14px;color:var(--oa-theme-ink);font-variant-numeric:tabular-nums;font-weight:600}
.org-tree .org-icon{font-size:20px;line-height:1;color:var(--oa-theme-ink);font-weight:700}
.org-tree .org-chevron{font-size:19px;line-height:1;color:var(--oa-theme-ink);width:28px;height:32px;flex:none;display:grid;place-items:center;font-weight:800}
.org-node-toggle{background:transparent;border:0;border-radius:5px;cursor:pointer}
.org-node-toggle:hover{background:var(--oa-theme-line)}
.org-tree .org-leaf{font-size:19px;color:var(--oa-theme-text);opacity:.65}
.org-children[hidden]{display:none!important}
@media(max-width:1250px){.portal-hub{--hub-system-w:180px;--hub-feature-w:225px}.portal-hub.systems-collapsed{--hub-system-w:48px}.portal-hub.features-collapsed{--hub-feature-w:48px}.contacts-workspace{grid-template-columns:290px minmax(0,1fr)}}
@media(max-width:970px){.portal-hub:not(.workbench-layout){grid-template-columns:var(--hub-system-w) minmax(0,1fr)}.portal-hub:not(.workbench-layout)>.hub-display{grid-column:1/-1}.portal-hub.features-collapsed:not(.workbench-layout){grid-template-columns:var(--hub-system-w) 48px minmax(0,1fr)}.portal-hub.features-collapsed:not(.workbench-layout)>.hub-display{grid-column:3}.portal-hub .hub-system-heading b{display:block}.portal-hub .hub-system-heading small{display:none}.contacts-workspace:not(.org-panel-collapsed){grid-template-columns:1fr}.org-tree{max-height:380px;min-height:0}.portal-hub.features-collapsed>.hub-features .hub-features-rail{flex-direction:column;padding:12px 0}.portal-hub.features-collapsed>.hub-features .hub-features-rail span{writing-mode:vertical-rl;letter-spacing:3px}}
@media(max-width:600px){.portal-hub{--hub-system-w:128px;--hub-feature-w:180px}.portal-hub .hub-system-heading .hub-symbol{display:none}.portal-hub .hub-system-heading b{font-size:12px}.portal-hub .hub-system b{font-size:12px}.portal-hub .hub-feature-main{font-size:13px}.portal-hub.features-collapsed:not(.workbench-layout)>.hub-display{grid-column:1/-1}.contacts-workspace.org-panel-collapsed{grid-template-columns:42px minmax(0,1fr)}.app:not(.hub-portal-active).module-nav-collapsed{grid-template-columns:42px minmax(0,1fr)}.app:not(.hub-portal-active).module-nav-collapsed>.sidebar{width:42px}}
