/* Every branch is one native basket. Orbit motion means management health, never a new fill. */
.active-baskets{position:relative;min-width:0;max-width:100%;border-top:1px solid #31566645;background:#05121b65;padding:10px 21px 7px;overflow:hidden}.ab-header{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:28px}.ab-header>div{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}.ab-header h3{font-size:12px;line-height:1.4;font-weight:500;margin:0;color:var(--text)}.ab-management-state{font-size:9px;line-height:1.5;color:var(--muted)}.ab-header p{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--muted);white-space:nowrap;line-height:1.5;margin:0}.ab-header p strong{font-size:16px;font-weight:500;color:var(--text);font-variant-numeric:tabular-nums}.ab-header p i{height:10px;width:1px;background:var(--line);margin-inline:7px}.ab-scroll{overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;overscroll-behavior:contain;max-width:100%;direction:ltr;outline-offset:-2px}.ab-scroll:focus-visible{outline:1px solid var(--cyan)}.ab-network{display:flex;align-items:flex-start;position:relative;max-width:none;min-height:119px;padding-top:28px;direction:ltr}.ab-network-lines{position:absolute;inset:0;width:100%;height:116px;pointer-events:none}.ab-branch,.ab-branch-current{fill:none;stroke-width:.7;stroke-linecap:round;stroke:var(--cyan);opacity:.13}.ab-branch-current{stroke-dasharray:3 29;opacity:.5;stroke-width:1;animation:ab-management-flow 3.6s linear infinite;animation-play-state:paused}.ab-entry-hub{position:relative;flex:none;width:76px;display:flex;flex-direction:column;align-items:center;gap:4px;margin-top:13px;pointer-events:none}.ab-entry-hub svg{width:35px;height:35px;fill:none;stroke:var(--cyan);stroke-width:1;stroke-linejoin:round;opacity:.7}.ab-entry-hub span{font-size:8px;letter-spacing:.08em;color:var(--muted);line-height:1.3}.ab-hub-orbit{stroke-dasharray:10 6;transform-origin:21px 21px;animation:ab-management-orbit 18s linear infinite;animation-play-state:paused}.ab-basket{position:relative;flex:none;display:flex;align-items:flex-start;gap:8px;width:200px;min-height:85px;padding:8px 8px 7px 6px;margin-inline:7px;background:linear-gradient(110deg,#0e2c3bb3,#0b1b28b3);border:1px solid #35647542;border-radius:7px;text-align:left;color:var(--text);cursor:pointer;transition:border-color 150ms ease,background 150ms ease;box-shadow:inset 0 1px #afffed06} /* taste-skill-ignore: User chose luminous cyan command-room cards; every branch carries an actual native basket. */
.ab-basket:hover{border-color:#69dbc888;background:#123747cc}.ab-basket:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}.ab-orbit-node{flex:none;width:45px;height:45px;display:block;margin-top:7px}.ab-stage-orbit{width:45px;height:45px;fill:none;stroke:var(--muted);font-family:inherit}.ab-orbit-track{stroke:#3e677554;stroke-width:.7}.ab-orbit-current{stroke:var(--cyan);stroke-width:1;stroke-dasharray:11 31;transform-origin:26px 26px;animation:ab-management-orbit 14s linear infinite;animation-play-state:paused;opacity:.45}.ab-stage-tick{fill:#17313f;stroke:#4d7889;stroke-width:.65}.ab-stage-tick.is-highest{fill:var(--cyan);stroke:var(--cyan);stroke-width:1}.ab-stage-orbit text{fill:var(--text);stroke:none;font-size:11px;font-weight:500}.ab-basket-main{display:block;min-width:0;flex:1}.ab-asset{display:flex;align-items:center;gap:6px;line-height:1.35}.ab-asset strong{font-size:10px;font-weight:550;letter-spacing:.025em}.ab-asset small{font-size:9px;color:var(--muted)}.ab-asset i{font-size:10px;color:var(--muted);font-style:normal;margin-left:auto}.ab-pnl{display:block;margin-top:3px;font-size:17px;line-height:1.2;font-weight:500;font-variant-numeric:tabular-nums;letter-spacing:-.015em}.ab-pnl[data-tone=gain]{color:var(--gain)}.ab-pnl[data-tone=loss]{color:var(--loss)}.ab-pnl[data-tone=neutral]{color:var(--muted)}.ab-floating{display:block;font-size:8px;line-height:1.5;color:var(--muted);margin-top:2px}.ab-floating b{font-weight:400;color:var(--text);font-variant-numeric:tabular-nums;margin-left:3px}.ab-basket-meta{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:8px;line-height:1.5;color:var(--muted);margin-top:2px}.ab-basket-meta>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ab-basket-meta>span:last-child{white-space:nowrap;font-variant-numeric:tabular-nums}.ab-position-count{display:block;font-size:8px;line-height:1.5;color:var(--muted);margin-top:1px;white-space:nowrap}.ab-basket[data-basket-state=protected]{border-color:#43a48655}.ab-basket[data-basket-state=protected] .ab-basket-meta>span:first-child{color:var(--gain)}.ab-basket[data-basket-state=recovery] .ab-basket-meta>span:first-child{color:var(--amber)}.ab-overflow-note{font-size:9px;line-height:1.5;color:var(--muted);margin:1px 0 0}.ab-overflow-note a{color:var(--cyan)}.ab-empty{display:flex;align-items:center;gap:12px;min-height:60px;color:var(--muted);font-size:11px;line-height:1.7}.ab-empty svg{width:35px;height:35px;fill:none;stroke:var(--muted);stroke-width:.8;opacity:.55}.active-baskets[data-motion=on] .ab-branch-current,.active-baskets[data-motion=on] .ab-hub-orbit,.active-baskets[data-motion=on] .ab-orbit-current{animation-play-state:running}.active-baskets[data-scope=unavailable] .ab-header p strong{color:var(--muted)}
html[data-theme=light] .active-baskets{background:#dbeef544;border-color:#8abac64d}html[data-theme=light] .ab-basket{background:linear-gradient(110deg,#f7fdffeb,#e3f2f5);border-color:#98bdca;box-shadow:inset 0 1px #fff} /* taste-skill-ignore: User-selected luminous panel depth is preserved in the light theme. */
html[data-theme=light] .ab-basket:hover{background:#e3f5f3;border-color:#4b9e99}html[data-theme=light] .ab-stage-tick{fill:#d6e9ee;stroke:#90b3bf}html[data-theme=light] .ab-stage-tick.is-highest{fill:var(--cyan);stroke:var(--cyan)}html[data-theme=light] .ab-orbit-track{stroke:#81acb762}
@keyframes ab-management-flow{to{stroke-dashoffset:-96}}@keyframes ab-management-orbit{to{transform:rotate(360deg)}}
@media(max-width:700px){.active-baskets{padding:11px 14px 8px}.ab-header{align-items:flex-start;gap:12px}.ab-header>div{display:block}.ab-header h3{font-size:12px}.ab-management-state{display:block;margin-top:3px;font-size:9px;max-width:190px}.ab-header p{font-size:9px;gap:4px;flex-wrap:wrap;justify-content:flex-end;max-width:136px}.ab-header p strong{font-size:15px}.ab-header p i{margin-inline:3px}.ab-network{padding-top:25px;min-height:123px}.ab-basket{min-height:90px;padding-top:9px}.ab-asset strong{font-size:11px}.ab-floating,.ab-basket-meta,.ab-position-count{font-size:9px}.ab-pnl{font-size:18px}.ab-empty{font-size:11px;min-height:63px}.ab-entry-hub span{font-size:8px}}
@media(prefers-reduced-motion:reduce){.active-baskets *{animation:none!important;transition:none!important}}
.ab-pnl:before{content:'Net ';font-size:8px;line-height:1.4;color:var(--muted);font-weight:400;margin-inline-end:4px;letter-spacing:0}html[lang=fa] .ab-pnl:before{content:'خالص ';font-size:9px}

/* Existing baskets remain managed while the new-entry pipeline is paused. */
body[data-studio-motion=stop] #command-active-baskets[data-motion=on] .ab-branch-current,body[data-studio-motion=stop] #command-active-baskets[data-motion=on] .ab-hub-orbit,body[data-studio-motion=stop] #command-active-baskets[data-motion=on] .ab-orbit-current{animation-play-state:running!important}
