/* Scope choices sit above the existing open Team Hub layout. */
html .app-shell .main-content .hub-scope-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin:4px 0 24px;color:#eef2f8}
html .app-shell .main-content .hub-scope-switch{display:flex;gap:5px;padding:5px;border:1px solid #74839755;border-radius:999px;background:#161c29;max-width:100%}
html .app-shell .main-content .hub-scope-switch button{border:1px solid transparent;border-radius:999px;background:transparent;color:#d0d7e2!important;padding:12px 23px;font:inherit;font-size:13px;font-weight:700;line-height:1.2;cursor:pointer;min-height:44px;white-space:nowrap}
html .app-shell .main-content .hub-scope-switch button.selected{color:#fff4f7!important;background:#941c3b!important;border-color:#d78ca04d;box-shadow:inset 0 1px #ffffff1f}
html .app-shell .main-content .hub-scope-switch button:hover:not(:disabled){color:#fff4f7!important;background:#ffffff0a}
html .app-shell .main-content .hub-scope-note{font-size:12px;line-height:1.6;color:#c3ccd9!important;margin:0;max-width:420px}
html .app-shell .main-content .hub-company-label{display:flex;flex-direction:column;gap:8px;min-width:0;flex:1;color:#eef2f8!important}
html .app-shell .main-content .hub-company-label span{font-size:11px;letter-spacing:.12em;color:#e5adbb!important}
html .app-shell .main-content .hub-company-label strong{font-size:17px;line-height:1.5;overflow-wrap:anywhere;color:#f2f5fa!important}
html .app-shell .main-content .hub-team-relationships{display:flex;flex-direction:column;gap:15px;padding:18px 0 8px;color:#dbe1eb}
html .app-shell .main-content .hub-team-parent{margin:0;font-size:13px;line-height:1.6;color:#cbd3df!important}
html .app-shell .main-content .hub-team-parent>span{font-size:10px;letter-spacing:.1em;color:#f0a0b4!important;margin-right:10px}
html .app-shell .main-content .hub-team-parent strong{color:#f2f5fa!important}
html .app-shell .main-content .hub-subteam-links{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
html .app-shell .main-content .hub-subteam-links-label{font-size:11px;letter-spacing:.1em;color:#b6c1d0!important;margin-right:4px}
html .app-shell .main-content .hub-subteam-link{display:inline-flex;align-items:center;gap:10px;min-height:42px;border:1px solid #8b94a34d;border-radius:12px;padding:10px 14px;background:#181f2c!important;color:#e7edf7!important;cursor:pointer;max-width:100%;font:inherit}
html .app-shell .main-content .hub-subteam-link strong{font-size:12px;overflow-wrap:anywhere;color:#f4f6fa!important}
html .app-shell .main-content .hub-subteam-link span{font-size:11px;color:#c3cbd8!important;white-space:nowrap}
html .app-shell .main-content .hub-subteam-link:hover{border-color:#de819a;background:#2a2031!important}
html .app-shell .main-content :is(.hub-scope-switch button,.hub-subteam-link):focus-visible{outline:2px solid #f4b0c3;outline-offset:3px}
html .app-shell .main-content .hub-scope-switch button:disabled{opacity:.6;cursor:wait}
@media(max-width:640px){html .app-shell .main-content .hub-scope-toolbar{display:grid;justify-content:stretch;gap:10px;margin-bottom:18px}html .app-shell .main-content .hub-scope-switch{width:max-content}html .app-shell .main-content .hub-scope-switch button{padding:12px 19px}html .app-shell .main-content .hub-subteam-links{align-items:stretch}html .app-shell .main-content .hub-subteam-links-label{width:100%}html .app-shell .main-content .hub-subteam-link{flex-wrap:wrap;gap:4px 12px}}
@media(forced-colors:active){html .app-shell .main-content :is(.hub-scope-switch button,.hub-subteam-link){color:ButtonText!important;background:ButtonFace!important;border-color:ButtonText}html .app-shell .main-content .hub-scope-switch button.selected{color:HighlightText!important;background:Highlight!important}}
@media print{.hub-scope-toolbar,.hub-team-relationships{display:none!important}}

/* Owner hierarchy: open rows, visible relationships, and the shared dark palette. */
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin {
 --hierarchy-line:rgba(255,255,255,.10);
 margin:0 0 36px;padding:0 0 30px;border:0!important;border-bottom:1px solid var(--hierarchy-line)!important;
 background:transparent!important;border-radius:0!important;box-shadow:none!important;min-width:0;scroll-margin-top:24px;
 color:#dce2ec!important;
}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin :is(h2,h3,h4,strong) {color:#f7f8fc!important;overflow-wrap:anywhere}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin h2 {font-size:24px!important;line-height:1.3;letter-spacing:-.035em;margin:0 0 8px;font-weight:600}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin h3 {font-size:17px!important;line-height:1.4;letter-spacing:-.02em;margin:0;font-weight:550}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin h4 {font-size:13px!important;line-height:1.5;margin:0 0 8px;font-weight:600;letter-spacing:.04em}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin :is(p,small,label,span) {color:#bfc8d7!important;font-size:13px!important;line-height:1.65}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin p {margin:0;overflow-wrap:anywhere}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-heading {display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:26px}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-heading > div {flex:1 1 330px;min-width:0}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-eyebrow {color:#ffa8b7!important;letter-spacing:.12em;font-size:12px!important;font-weight:600;margin-bottom:7px}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-team-count {font-size:12px!important;letter-spacing:.07em;color:#d9dfeb!important;padding:8px 0;white-space:nowrap}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-editor {border-top:1px solid var(--hierarchy-line);border-bottom:1px solid var(--hierarchy-line);padding:24px 0;margin-bottom:28px;scroll-margin-top:24px}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-form {display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr) minmax(0,1.1fr);gap:18px 20px;margin-top:20px}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .field {display:grid;gap:8px;min-width:0;margin:0}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .field > span {color:#c7d0df!important;font-size:12px!important;font-weight:550;letter-spacing:.035em}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin select {width:100%;min-width:0;min-height:46px;padding:10px 36px 10px 13px;border:1px solid rgba(255,255,255,.18)!important;border-radius:12px!important;background-color:#171c25!important;color:#f0f3f9!important;font-size:14px!important;line-height:1.5;box-shadow:none!important;color-scheme:dark}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin option {color:#f0f3f9!important;background:#171c25!important}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin :is(select,button):disabled {opacity:.55;cursor:not-allowed}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin :is(select,button):focus-visible {outline:2px solid #ffbdca!important;outline-offset:4px;box-shadow:none!important}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-explanation {grid-column:1/-1;padding:17px 0 0;border-top:1px solid var(--hierarchy-line);display:grid;gap:5px}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-explanation > p:first-child {font-size:15px!important;color:#edf1f8!important}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin :is(.hub-hierarchy-note,.hub-hierarchy-draft,.hub-hierarchy-counts) {font-size:12px!important;color:#b5bfce!important;line-height:1.65}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-editor > .hub-hierarchy-note {margin-top:16px}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin :is(.hub-hierarchy-error,.hub-hierarchy-notice) {grid-column:1/-1;padding:12px 0 12px 14px;border-left:2px solid #e66b82;font-size:13px!important;color:#ffc6d0!important;background:transparent!important}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-notice {border-left-color:#aab8cd;color:#e4eaf4!important}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-form-actions {grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-top:2px}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-form-actions > p {flex:1 1 260px}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-form-actions > div {display:flex;align-items:center;gap:10px;flex-wrap:wrap}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin button {min-height:44px;line-height:1.45;font-size:12px!important;white-space:normal;overflow-wrap:anywhere}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .btn {border-radius:12px!important;padding:10px 16px;box-shadow:none!important}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .btn.secondary {border:1px solid rgba(255,255,255,.18)!important;background:rgba(255,255,255,.04)!important;color:#edf1f8!important}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .btn.primary {background:#a51b36!important;border:1px solid #ca3856!important;color:#fff6f8!important}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .btn.primary:hover:not(:disabled) {background:#b62340!important}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .text-button {color:#ffc0cc!important;background:transparent!important;border:0!important;padding:8px 4px;min-height:44px;text-decoration:none}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .text-button:hover:not(:disabled) {text-decoration:underline;text-underline-offset:4px}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-saved-heading {display:flex;justify-content:space-between;gap:12px 24px;align-items:baseline;flex-wrap:wrap;margin-bottom:12px}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-saved-heading p {font-size:12px!important;max-width:440px}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-tree {list-style:none;margin:0;padding:0;min-width:0}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-node {list-style:none;margin:0;padding:0;border:0;background:transparent!important;min-width:0}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-row {display:flex;justify-content:space-between;align-items:center;gap:14px;border-bottom:1px solid var(--hierarchy-line);padding:16px 0 16px calc(min(var(--hub-hierarchy-depth,0),4) * 16px);min-width:0}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-person {min-width:0;flex:1 1 260px}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-name {display:flex;gap:5px 10px;align-items:center;flex-wrap:wrap;margin-bottom:3px}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-name strong {font-size:15px!important;font-weight:550;line-height:1.55}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-role {font-size:12px!important;color:#bec9d9!important;line-height:1.5;white-space:normal}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-role.is-leader {color:#ffa9ba!important}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-archived {font-size:12px!important;border:1px solid rgba(255,255,255,.16);border-radius:5px;padding:1px 6px;color:#b8c2d1!important}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-person > p {font-size:12px!important}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-row-actions {display:flex;flex:0 0 auto;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-edit {min-width:64px}
html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin :is(.hub-hierarchy-unassigned,.hub-hierarchy-review) {margin-top:26px}
@media(max-width:900px) {
 html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-form {grid-template-columns:repeat(2,minmax(0,1fr))}
 html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-form > label:first-child {grid-column:1/-1}
}
@media(max-width:620px) {
 html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin h2 {font-size:22px!important}
 html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-heading {gap:8px;margin-bottom:20px}
 html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-form {grid-template-columns:minmax(0,1fr);gap:16px}
 html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-editor {padding:20px 0}
 html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-form-actions > div {width:100%;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
 html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-form-actions button {width:100%}
 html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-row {flex-wrap:wrap;gap:8px;padding-left:calc(min(var(--hub-hierarchy-depth,0),2) * 12px)}
 html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-person {flex-basis:100%}
 html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-row-actions {justify-content:flex-start;gap:14px}
 html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin .hub-hierarchy-saved-heading {gap:6px}
}
@media(forced-colors:active) {
 html[data-hub-theme="dark"] .app-shell .main-content .hub-subteam-admin :is(button,select) {forced-color-adjust:auto!important}
}
