/* A vertical strategy workspace, with a bounded market picker. */
#nativeShortPanel { flex-direction:column; min-width:0; gap:14px; padding-bottom:16px; overflow-y:auto; scrollbar-gutter:stable; }
#nativeShortPanel > .ns-intro, #nativeShortPanel > .ns-workspace, #nativeShortPanel > .ns-card { flex-shrink:0; }
#nativeShortPanel.hidden { display:none; }
#nativeShortPanel .scanner-toolbar { flex-wrap:wrap; gap:8px; flex-shrink:0; }
#nativeShortPanel .scanner-toolbar > * { max-width:100%; }
.ns-intro, .ns-card { background:var(--bg-secondary); border:1px solid var(--border); border-radius:8px; padding:14px; min-width:0; }
.ns-intro p, .ns-card p { margin:6px 0 10px; line-height:1.55; }
.ns-note, .ns-reason, .ns-empty { color:var(--text-muted); font-size:12px; line-height:1.5; }
.ns-intro ol { display:flex; flex-wrap:wrap; gap:12px 26px; padding-left:24px; margin:8px 0; }
.ns-workspace { display:grid; grid-template-columns:minmax(230px,300px) minmax(0,1fr); gap:14px; min-width:0; align-items:start; }
.ns-market-picker { min-width:0; }
.ns-market-picker summary { cursor:pointer; font-weight:600; margin-bottom:12px; }
.ns-market-picker summary span { display:block; font-size:12px; color:var(--text-muted); font-weight:400; }
#nsRows { list-style:none; margin:0; padding:0; max-height:700px; overflow:auto; }
#nsRows li { margin:0 0 6px; }
#nsRows button { display:block; width:100%; text-align:left; color:var(--text-primary); background:var(--bg-primary); border:1px solid var(--border); border-radius:6px; padding:10px; cursor:pointer; overflow-wrap:anywhere; }
#nsRows button[aria-pressed="true"] { border-color:var(--blue); box-shadow:inset 3px 0 var(--blue); }
#nsRows button:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
#nsRows strong, #nsRows span { display:block; }
#nsRows small { color:var(--text-muted); font-weight:400; }
.ns-stage { margin:4px 0; font-size:12px; }
.ns-detail-area { min-width:0; display:flex; flex-direction:column; gap:14px; }
.ns-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 20px; }
.ns-facts div { min-width:0; }
.ns-facts dt { font-size:12px; color:var(--text-muted); }
.ns-facts dd { margin:3px 0 0; overflow-wrap:anywhere; font-size:13px; }
.ns-chart-controls, .ns-backtest-controls { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:10px 0; }
.ns-chart-controls label, .ns-backtest-controls label { display:flex; flex-wrap:wrap; align-items:center; gap:6px; font-size:12px; min-width:0; max-width:100%; }
.ns-chart-controls select, .ns-backtest-controls select { min-width:0; max-width:100%; }
#nsChart { width:100%; min-width:0; overflow:hidden; touch-action:pan-y; }
#nsChart svg { display:block; width:100%; height:auto; color:var(--text-primary); }
#nsChart text { fill:currentColor; font-size:10px; }
.ns-grid { stroke:var(--border); stroke-width:.5; }
.ns-up { fill:#238c70; stroke:#238c70; }
.ns-down { fill:#c44e62; stroke:#c44e62; }
.ns-volume-bin { fill:#8493a3; opacity:.3; }
.ns-va-bin { fill:#5c8cc4; opacity:.5; }
.ns-poc-bin { fill:#d99636; opacity:.7; }
.ns-level { stroke:#a48142; stroke-width:.8; stroke-dasharray:5 3; }
.ns-anchor { fill:none; stroke:#748aaf; stroke-width:1; stroke-dasharray:3 3; }
.ns-fvg { fill:#c44e62; opacity:.15; }
.ns-marker { stroke:#8c79b5; stroke-width:.6; stroke-dasharray:2 4; }
.ns-table-wrap { width:100%; min-width:0; overflow-x:auto; }
.ns-table { width:100%; border-collapse:collapse; font-size:12px; }
.ns-table th, .ns-table td { padding:9px 10px; text-align:right; border-bottom:1px solid var(--border); white-space:nowrap; }
.ns-table th:first-child { text-align:left; }
.ns-table .ns-chosen { background:var(--bg-tertiary); }
@media (max-width:960px) {
    .ns-workspace { grid-template-columns:minmax(0,1fr); }
    #nsRows { max-height:300px; }
}
@media (max-width:540px) {
    #nativeShortPanel .scanner-toolbar { padding:10px; }
    #nativeShortPanel .mkt-search { width:100%; }
    .ns-intro, .ns-card { padding:10px; }
    .ns-intro ol { display:block; }
    .ns-intro li { margin:6px 0; }
    .ns-facts { grid-template-columns:minmax(0,1fr); }
}
