/* 结构突破页面的增量样式，其余复用 leaders.css / swing.css */
.st-alertbar{
  border:1px solid #263044;
  border-radius:10px;
  background:#0f1622;
  padding:10px 12px;
  margin:0 0 18px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:stretch;
}
.st-alertbar-idle{color:#8b97ab;font-size:13px;padding:8px 2px}
.st-alertbar.has-alert{border-color:#ff4d4f;box-shadow:0 0 0 1px rgba(255,77,79,.35) inset}
.st-alertbar.has-near{border-color:#f0a020}
.st-card{
  flex:1 1 240px;
  min-width:220px;
  border-radius:8px;
  padding:9px 11px;
  background:#141c29;
  border-left:4px solid #f0a020;
}
.st-card.hit{border-left-color:#ff4d4f;background:#1d1418}
.st-card .st-card-head{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.st-card .st-card-name{font-weight:600;font-size:14px;color:#e8edf6}
.st-card .st-card-time{font-size:11px;color:#7d8798}
.st-card .st-card-body{margin-top:5px;font-size:12px;color:#a7b2c4;line-height:1.6}
.st-card .st-card-price{color:#ff4d4f;font-weight:600}
.st-card .st-card-tag{display:inline-block;font-size:11px;padding:1px 6px;border-radius:4px;background:rgba(255,77,79,.14);color:#ff7875}
.st-card.near .st-card-tag{background:rgba(240,160,32,.16);color:#f0a020}

.st-level{display:inline-block;font-size:12px;padding:2px 7px;border-radius:5px;border:1px solid #2a3549;color:#9fb0c9}
.st-level.long{border-color:#7a5cff;color:#b7a4ff;background:rgba(122,92,255,.12)}
.st-level.intermediate{border-color:#1f9d75;color:#5fd3a8;background:rgba(31,157,117,.12)}
.st-level.short{color:#9fb0c9}
.st-level.pending{color:#7d8798;border-style:dashed}

.st-state{display:inline-block;font-size:12px;padding:2px 7px;border-radius:5px}
.st-state.hit{background:rgba(255,77,79,.15);color:#ff7875;font-weight:600}
.st-state.near{background:rgba(240,160,32,.15);color:#f0a020}
.st-state.wait{color:#8b97ab}
.st-state.broken{background:rgba(0,181,120,.14);color:#33d6a0}
.st-state.stale{color:#7d8798;font-style:normal}

.st-up{color:#ff4d4f}
.st-down{color:#00b578}
.st-alert-list{list-style:none;margin:10px 0 0;padding:0}
.st-alert-list li{padding:7px 0;border-bottom:1px solid #1c2637;font-size:13px;color:#a7b2c4}
.st-alert-list li:last-child{border-bottom:none}
.st-alert-list b{color:#e8edf6}
.st-alert-list .hit{color:#ff7875;font-weight:600}
.st-alert-list .near{color:#f0a020}
.st-chart{width:100%;height:auto;background:#0d1520;border:1px solid #223047;border-radius:8px;margin:8px 0 4px}
.st-chart text{font-size:10px;fill:#7d8798}
.st-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:#8b97ab;margin:0 0 10px}
.st-legend i{display:inline-block;width:10px;height:10px;margin-right:5px;border-radius:2px;vertical-align:-1px}
.st-dialog-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin:6px 0 14px}
.st-dialog-facts div{background:#131b28;border:1px solid #223047;border-radius:7px;padding:7px 9px;font-size:12px;color:#8b97ab}
.st-dialog-facts b{display:block;color:#e8edf6;font-size:14px;margin-top:3px}
@media (max-width:720px){
  .st-card{flex:1 1 100%}
}

/* 作战单与持仓 */
.st-plan-card{background:#0f1622;border:1px solid #223047;border-radius:9px;padding:8px 10px;min-width:0}
.st-plan-head{display:flex;gap:7px;align-items:baseline;flex-wrap:wrap}
.st-plan-head b{font-size:15px;color:#e8edf6}
.st-plan-tag{font-size:11px;padding:1px 7px;border-radius:4px;background:rgba(122,92,255,.14);color:#b7a4ff}
.st-plan-score{margin-left:auto;font-size:12px;color:#7d8798}
.st-plan-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 9px;margin:6px 0 4px}
.st-plan-facts div{border-top:1px solid #223047;padding-top:4px;min-width:0;font-size:11px;color:#8b97ab}
.st-plan-facts b{display:block;color:#e8edf6;font-size:13px;margin-top:1px;line-height:1.35;overflow-wrap:anywhere}
.st-plan-note{margin:4px 0 0;font-size:12px;line-height:1.4}
.st-plan-state{margin:4px 0 0;font-size:12px;color:#f0a020}
.st-pos-del{background:#1b2534;border:1px solid #2a3549;color:#c7d2e4;border-radius:5px;padding:3px 9px;font-size:12px;cursor:pointer}
.st-pos-del:hover{border-color:#ff4d4f;color:#ff7875}
.st-pos-del:disabled{opacity:.5;cursor:default}


#st-plan{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,370px),1fr));gap:8px;max-width:1080px}
#st-plan>p{grid-column:1/-1;margin:0}

.st-plan-identity{display:grid;line-height:1.25;gap:2px}
.st-plan-code{color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}

.st-buy-blink{animation:st-buy-blink 1.4s ease-in-out infinite}
@keyframes st-buy-blink{50%{opacity:.34}}
@media (prefers-reduced-motion:reduce){
 .st-buy-blink{animation:none;text-decoration:underline;text-decoration-color:var(--amber);text-underline-offset:.2em}
}

.st-breadth{padding:8px 12px;border:1px solid var(--border);border-radius:6px;margin:8px 0}
.st-breadth.strong{color:#65d6a6}.st-breadth.weak{color:#f0b90b}

.st-ma20-status{padding:8px 12px;border:1px solid #766125;border-radius:6px;margin:8px 0;color:#f0b90b;background:#f0b90b0b}

.st-capital-status{padding:8px 12px;border:1px solid var(--border);border-radius:6px;margin:8px 0;color:var(--text)}
#st-plan>.st-capital-excluded{grid-column:1/-1;color:#f0b90b;border-left:3px solid #f0b90b;padding:5px 8px}
