.plans-shell{max-width:1100px;margin:auto;padding:24px;color:var(--text,#eaecef)}
.plan-order-no{font-family:ui-monospace,monospace;font-size:12px;color:#a3aebb;overflow-wrap:anywhere;user-select:text}
.plan-position{margin:12px 0;padding:12px;background:#12161b;border:1px solid #303843;border-radius:6px;font-variant-numeric:tabular-nums}.plan-position p{margin:0 0 8px}.plan-position small{display:block;margin-top:8px;color:#a3aebb;line-height:1.6}
#draft-exit-metrics,#draft-minimum{flex-basis:100%;margin:0}
#staged-exit-choice{flex-basis:100%;min-width:0;line-height:1.65}#staged-exit-choice>span{display:flex;align-items:center;gap:8px}#staged-exit{width:18px;height:18px;flex-shrink:0;accent-color:#55b5ed}#staged-exit-choice small,#tp1-percent-choice small{color:#a3aebb;font-size:12px}#draft-exit{flex-basis:100%;margin:0}
#sweep-probe-choice{flex-basis:100%;min-width:0;line-height:1.65;padding:12px;border:1px solid #343b44;border-radius:6px}#sweep-probe-choice>span{display:flex;align-items:center;gap:8px}#sweep-probe{width:18px;height:18px;flex-shrink:0;accent-color:#55b5ed}#sweep-probe-rule{color:#a3aebb;font-size:12px}
.plans-shell [hidden]{display:none!important}.plans-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:20px}.plans-shell h1{font-size:26px;margin:0}.plans-shell h2{font-size:19px;margin:0 0 12px}
.plans-shell a{color:#55b5ed}.plans-card{background:#161a1e;border:1px solid #2b3139;border-radius:10px;padding:20px;margin-bottom:18px}.plans-card p{line-height:1.6;overflow-wrap:anywhere}
.plans-fields,#login-form{display:flex;gap:16px;align-items:end;flex-wrap:wrap}.plans-shell label{display:flex;flex-direction:column;gap:8px;font-size:13px;min-width:190px}.plans-shell input,.plans-shell select{box-sizing:border-box;width:100%}
.plans-list{display:grid;gap:14px}.execution-item{min-width:0;border:1px solid #343b44;border-left:3px solid #56616f;border-radius:8px;padding:16px}.execution-item[data-status-tone=active]{border-left-color:#55b5ed}.execution-item[data-status-tone=attention]{border-left-color:#e8b34c}.execution-item[data-status-tone=failed]{border-left-color:#f6465d}
.execution-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.execution-item h3{margin:0;font-size:16px;overflow-wrap:anywhere}.execution-item p{margin:10px 0}.execution-actions{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}.plan-status{font-size:12px;border-radius:20px;padding:5px 10px;white-space:nowrap;font-weight:600}.status-active{color:#69c3f5;background:#162d3a}.status-attention{color:#f6c766;background:#342b17}.status-failed{color:#ff8091;background:#391e25}.status-ended{color:#b7bdc6;background:#282e36}
.plan-result{display:flex;align-items:baseline;gap:8px 14px;flex-wrap:wrap;margin:12px 0;padding:12px;border:1px solid #303843;border-radius:6px;background:#12161b}.plan-result>span{font-size:13px;color:#a3aebb}.result-value{font-size:20px;font-variant-numeric:tabular-nums}.plan-result>small{flex-basis:100%;font-size:12px;color:#9aa7b6;line-height:1.6}.plans-shell .pnl-profit{color:#0ecb81}.plans-shell .pnl-loss{color:#f6465d}.plans-shell .pnl-neutral{color:#b7bdc6}
.status-healthy{color:#0ecb81;background:#112d25}.holding-status{display:table;border-radius:6px;padding:7px 10px;font-size:13px;line-height:1.6}.plan-event[data-status-tone=healthy]::before{background:#0ecb81}.plan-event[data-status-tone=attention]::before{background:#f6c766}.plan-event[data-status-tone=failed]::before{background:#ff8091}
.plan-prices{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:12px;margin:16px 0}.plan-prices div{min-width:0}.plan-prices dt{color:#8b99aa;font-size:12px;margin-bottom:6px}.plan-prices dd{margin:0;font-size:14px;line-height:1.5;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.plan-quantity{font-size:13px;color:#b7c5d6}
.plan-filters{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 12px}.plan-filters button{display:flex;align-items:center;gap:8px;min-height:40px;padding:8px 14px;border:1px solid #343b44;border-radius:7px;background:#191e24;color:#a3aebb}.plan-filters button>span{min-width:18px;padding:1px 5px;border-radius:4px;background:#2a313b;font-size:12px}.plan-filters .filter-active[aria-pressed=true]{border-color:#55b5ed;background:#182c39;color:#79cdfc}.plan-filters .filter-ended[aria-pressed=true]{border-color:#9b91cf;background:#272339;color:#c6bdf2}.plan-filters .filter-all[aria-pressed=true]{border-color:#f6bc42;background:#322a17;color:#f6cc72}.plans-empty{padding:20px 0}
#network{font-weight:600}#network.mainnet{color:#f6bc42}#network.demo{color:#55b5ed}#plans-error,.history-error{color:#f6465d;white-space:pre-wrap}.plans-scroll{max-width:100%;overflow:auto}.plans-shell table{width:100%;border-collapse:collapse;font-size:13px}.plans-shell td,.plans-shell th{padding:10px;text-align:left;border-bottom:1px solid #343b44;white-space:nowrap}.plans-shell th{color:#8b99aa;font-weight:500}
.plans-network{display:flex;gap:8px;flex-wrap:wrap}.plans-network button{min-height:40px;padding:8px 16px;border:1px solid #343b44;border-radius:6px}.plans-network button[aria-pressed=true]{opacity:1;border-color:#55b5ed;color:#55b5ed;background:#182b38}#network-mainnet[aria-pressed=true]{border-color:#f6bc42;color:#f6bc42;background:#322a17}
.plan-history{margin-top:14px;border-top:1px solid #343b44}.plan-history>summary{padding:14px 0 2px;cursor:pointer;color:#83c9ef;font-size:14px;min-height:28px}.plan-history[open]>summary{padding-bottom:12px}.history-summary-note{margin-left:14px;color:#7e8b9b;font-size:12px}.plan-history-body{padding-top:4px}.plan-history-body h4{font-size:14px;margin:22px 0 8px}.history-accounting{font-size:13px;line-height:1.7}.history-status{font-size:12px}.plans-shell summary:focus-visible,.plans-shell button:focus-visible{outline:2px solid #69c3f5;outline-offset:4px;border-radius:4px}
.plan-timeline{list-style:none;padding:0;margin:0}.plan-event{position:relative;margin-left:5px;padding:10px 0 14px 18px;border-left:1px solid #3d4857}.plan-event:last-child{border-left-color:transparent}.plan-event::before{content:"";position:absolute;left:-4px;top:16px;width:7px;height:7px;border-radius:50%;background:#6b8ba4}.event-heading{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;font-size:12px}.event-state{padding:3px 7px;border-radius:4px;font-size:12px;font-weight:500}.plan-event>p{margin:8px 0;font-size:13px}.event-facts>summary{cursor:pointer;font-size:12px;color:#84b6d8;min-height:25px}.event-facts dl{margin:8px 0 0;padding:10px 12px;border:1px solid #303943;border-radius:6px;background:#12171d}.event-facts dl>div{display:grid;grid-template-columns:130px minmax(0,1fr);gap:8px;padding:6px 0;font-size:12px;line-height:1.6}.event-facts dt{color:#8b99aa}.event-facts dd{margin:0;overflow-wrap:anywhere}.history-more{margin-top:12px}
@media(max-width:700px){.plans-shell{padding:12px}.plans-card{padding:14px}.execution-item{padding:12px}.plans-fields>*{flex:1;min-width:180px}.plan-prices{grid-template-columns:1fr 1fr;gap:14px}.plan-prices>div:first-child{grid-column:1/-1}.history-summary-note{display:block;margin:6px 0 0 15px}.event-facts dl>div{grid-template-columns:100px minmax(0,1fr)}.result-value{font-size:19px}.execution-head{gap:9px}.plan-filters{gap:6px}.plan-filters button{padding:8px 10px}}
.dependency-graph { overflow:auto; max-width:100%; margin-top:16px; border:1px solid var(--border,#29343d); border-radius:12px; }
.dependency-graph > p { padding:12px; }
.dependency-graph svg { display:block; color:#648078; }
.dependency-edge { fill:none; stroke:currentColor; stroke-width:2; }
.dependency-node { cursor:pointer; outline:none; }
.dependency-node rect { fill:#152326; stroke:#45635f; stroke-width:1.5; }
.dependency-node:hover rect,.dependency-node:focus rect { stroke:#9fe4cd; stroke-width:3; }
.dependency-node[data-state=PROFIT] rect { stroke:#66dab0; }
.dependency-node[data-state=INVALID] rect { stroke:#e3a66d; }
.dependency-node[data-state=ENDED] { opacity:.7; }
.dependency-node text { fill:#dcebe7; font-size:13px; }
.dependency-node .dependency-title { font-size:16px; font-weight:600; }
.dependency-node .dependency-order { font-family:monospace; fill:#9eb7b0; }
.dependency-node .dependency-state { fill:#a5dac9; }
.plans-fields > .dependency-choice { flex:0 0 100%; box-sizing:border-box; width:100%; min-width:0; margin:0; border:1px solid var(--border,#29343d); border-radius:10px; padding:12px; }
.dependency-options { display:grid; gap:8px; max-height:360px; overflow-y:auto; overflow-x:hidden; }
.plans-fields .dependency-option { display:flex; flex-direction:row; box-sizing:border-box; width:100%; min-width:0; align-items:flex-start; gap:10px; border:1px solid #354742; border-radius:8px; padding:10px; cursor:pointer; }
.dependency-option input[type=checkbox] { flex:none; width:18px; min-width:18px; margin:3px 0 0; }
.dependency-option span { flex:1; min-width:0; overflow-wrap:anywhere; }
.dependency-option strong,.dependency-option small { display:block; margin-bottom:5px; }
.dependency-node .dependency-prices { font-size:12px; fill:#c2d6cf; }
#dependency-section { min-width:0; }
#dependency-section > summary { display:flex; align-items:center; gap:12px; min-height:28px; cursor:pointer; list-style:none; }
#dependency-section > summary::-webkit-details-marker { display:none; }
#dependency-section > summary::before { content:"▸"; color:#83c9ef; transition:transform .15s; }
#dependency-section[open] > summary::before { transform:rotate(90deg); }
#dependency-section > summary h2 { flex:1; margin:0; }
#dependency-section > summary span { color:#83c9ef; font-size:13px; }
#dependency-section:not([open]) .graph-collapse-label,#dependency-section[open] .graph-expand-label { display:none; }
