/* Swing Command v1: scoped styles; legacy controls untouched. */
#swingCommand{color:var(--ui-text,#eef3fa);padding:16px 0 24px}
#swingCommand .sc-heading{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
#swingCommand .sc-heading h2{font-size:clamp(22px,3vw,32px);margin:0}
#swingCommand .sc-muted,#swingCommand .sc-setup,#swingCommand .sc-time{color:var(--ui-muted,#a4b3c9);font-size:14px}
#swingCommand .sc-controls{position:sticky;top:0;z-index:5;background:var(--ui-bg,#0b1120);padding:12px 0;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
#swingCommand .sc-controls button[aria-pressed="true"]{border-color:var(--ui-action,#8bbcff)!important;background:var(--ui-active,#1e3554)!important}
#swingCommand .sc-controls input{flex:1 1 150px;min-width:100px}
#swingCommand .sc-controls select{flex:0 1 190px}
#swingCommand .sc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:12px}
#swingCommand .sc-tile{background:var(--ui-surface,#121c2d);border:1px solid var(--ui-border,#2a3a51);border-radius:14px;padding:15px;min-width:0}
#swingCommand .sc-tile-head{display:flex;justify-content:space-between;gap:8px;align-items:center}
#swingCommand .sc-state{font-size:12px;border:1px solid var(--ui-border,#2a3a51);border-radius:999px;padding:3px 7px;white-space:nowrap}
#swingCommand .sc-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}
#swingCommand .sc-stats div{min-width:0}
#swingCommand .sc-stats dt{font-size:12px;color:var(--ui-muted,#a4b3c9)}
#swingCommand .sc-stats dd{margin:0;font-weight:700;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#swingCommand .sc-actions{display:flex;flex-wrap:wrap;gap:7px}
#swingCommand .sc-actions button{flex:1 1 95px;font-size:13px!important;padding:8px!important}
#swingCommand .sc-detail-shell{position:fixed;inset:0;z-index:10000;background:rgba(0,0,0,.75);display:grid;place-items:center;padding:14px}
#swingCommand .sc-detail-shell[hidden]{display:none}
#swingCommand #scDetail{width:min(680px,100%);max-height:85vh;overflow:auto;background:var(--ui-surface,#121c2d);border:1px solid var(--ui-border,#2a3a51);border-radius:18px;padding:22px}
#swingCommand #scFresh[data-status="stale"]{color:var(--ui-warn,#f3c477)}
@media(max-width:600px){#swingCommand .sc-controls{position:static}#swingCommand .sc-grid{grid-template-columns:1fr}#swingCommand .sc-controls button{font-size:13px!important;padding:8px!important}#swingCommand .sc-heading{display:block}}
