/* Scoped to the existing lower team section; no upper-page layout changes. */
#view-team #teamTree.tt-ready{border:0;border-radius:0;overflow:visible;color:#263c4c;font-size:14px;line-height:1.65;--tt-line:#dbe4ec;--tt-bg:#fff;--tt-child-bg:#f0f4f8;--tt-muted:#536a7c;--tt-gold:#84621b}
#view-team .team-tree-section{scroll-margin-top:80px}
#view-team .team-tree-section .tree-summary{color:#52697b;font-size:13px}
#view-team .team-tree-section .tree-summary b{white-space:normal;overflow-wrap:anywhere;color:#84621b}
#teamTree.tt-ready *{box-sizing:border-box;min-width:0}
#teamTree.tt-ready button{font:inherit;cursor:pointer;touch-action:manipulation;white-space:normal;overflow-wrap:anywhere}
#teamTree .tt-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:0 0 10px;color:var(--tt-muted);font-size:13px}
#teamTree .tt-toolbar button{border:0;background:transparent;color:var(--tt-gold);min-height:44px;padding:8px 4px}
#teamTree .tt-toolbar button:disabled{opacity:.6;cursor:default}
#teamTree .tt-member{background:var(--tt-bg);border:1px solid var(--tt-line);border-radius:12px;overflow:hidden;margin:0 0 12px}
#teamTree .tt-card{padding:15px 14px 0}
#teamTree .tt-title{display:flex;gap:10px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap}
#teamTree .tt-title strong{font-size:16px;color:inherit;overflow-wrap:anywhere}
#teamTree .tt-title strong:before{content:'';display:inline-block;width:6px;height:6px;background:#b6933d;border-radius:50%;margin-inline-end:8px;vertical-align:middle}
#teamTree .tt-status{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:12px;color:var(--tt-muted)}
#teamTree .tt-badge{padding:2px 7px;border-radius:5px;background:#edf2f5;color:#475d6c}
#teamTree .tt-badge.tt-active{background:#eaf4ee;color:#326a4c}
#teamTree .tt-badge.tt-frozen,#teamTree .tt-badge.tt-disabled{background:#fff0e6;color:#8b4b26}
#teamTree .tt-parent{margin-top:9px;color:var(--tt-muted);overflow-wrap:anywhere;font-size:13px}
#teamTree .tt-meta{display:flex;gap:3px 16px;flex-wrap:wrap;margin:6px 0 10px;color:var(--tt-muted);font-size:13px}
#teamTree .tt-action{display:flex;justify-content:space-between;gap:12px;align-items:center;width:100%;text-align:start;padding:10px 0;min-height:48px;border:0;border-top:1px solid var(--tt-line);background:transparent;color:var(--tt-gold);font-size:13px}
#teamTree .tt-action>span{flex:none;font-size:20px}
#teamTree .tt-none{padding:12px 0;border-top:1px solid var(--tt-line);color:var(--tt-muted);font-size:13px}
#teamTree .tt-children{padding:12px 10px 1px 19px;border-top:1px solid var(--tt-line);background:var(--tt-child-bg);position:relative}
#teamTree[dir=rtl] .tt-children{padding:12px 19px 1px 10px}
#teamTree .tt-children:before{content:'';position:absolute;inset-inline-start:9px;top:42px;bottom:24px;width:2px;background:#c9d6e2}
#teamTree .tt-child{position:relative}
#teamTree .tt-child .tt-title strong:before{display:none}
#teamTree .tt-group{font-size:12px;color:var(--tt-muted);margin:0 0 10px;overflow-wrap:anywhere}
#teamTree [data-depth="3"] .tt-children{padding-inline:5px}
#teamTree [data-depth="3"] .tt-children:before{display:none}
#teamTree .tt-more,#teamTree .tt-message button{background:var(--tt-bg);border:1px solid var(--tt-line);border-radius:8px;min-height:48px;padding:10px 14px;color:var(--tt-gold);width:100%;margin:4px 0 12px}
#teamTree .tt-message{padding:22px 14px;border:1px solid var(--tt-line);background:var(--tt-bg);border-radius:10px;font-size:14px;color:var(--tt-muted);line-height:1.9;text-align:center;overflow-wrap:anywhere}
#teamTree .tt-message button{margin-top:12px}
#teamTree .tt-path{padding:9px 11px;background:var(--tt-child-bg);border-radius:8px;margin:10px 0;font-size:12px;color:var(--tt-muted);overflow-wrap:anywhere}
#teamTree .tt-path>span{display:block;margin-bottom:5px}
#teamTree .tt-path-arrow{display:inline-block;padding:0 4px}
#teamTree[dir=rtl] .tt-path-arrow{transform:scaleX(-1)}
#teamTree button:focus-visible{outline:2px solid #9a752c;outline-offset:-3px}
#teamTree [hidden]{display:none!important}
body.dark #view-team #teamTree.tt-ready{color:#e5edf4;--tt-line:#354959;--tt-bg:#192a36;--tt-child-bg:#10212d;--tt-muted:#b6c6d4;--tt-gold:#e4c677}
@media(max-width:360px){#teamTree .tt-card{padding:12px 10px 0}#teamTree .tt-children{padding-inline:10px 5px}#teamTree[dir=rtl] .tt-children{padding-inline:10px 5px}#teamTree .tt-children:before{inset-inline-start:4px}#teamTree .tt-meta{display:grid;gap:4px}#teamTree .tt-title{gap:5px}}
