[data-biosignal-visualization-root] { min-width:0; margin-top:1rem; }
.sc-bv-shell { display:grid; gap:1rem; min-width:0; padding:clamp(1rem,2vw,1.5rem); border:1px solid rgba(93,29,55,.2); border-radius:18px; background:linear-gradient(180deg,rgba(255,255,255,.99),rgba(246,248,249,.99)); box-shadow:0 18px 45px rgba(30,20,28,.08); }
.sc-bv-header { display:grid; gap:.65rem; }
.sc-bv-header h3,.sc-bv-header p,.sc-bv-card h4 { margin:0; }
.sc-bv-kicker { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.75rem; font-weight:800; letter-spacing:.1em; color:#5d1d37; }
.sc-bv-status { display:flex; flex-wrap:wrap; gap:.5rem; }
.sc-bv-status span { padding:.42rem .65rem; border:1px solid rgba(93,29,55,.2); border-radius:999px; background:#fff; color:#441429; font-size:.78rem; font-weight:750; }
.sc-bv-workspace { display:grid; grid-template-columns:minmax(300px,.72fr) minmax(0,1.28fr); gap:1rem; min-width:0; }
.sc-bv-card { display:grid; align-content:start; gap:.8rem; min-width:0; padding:1rem; border:1px solid rgba(20,20,20,.12); border-radius:14px; background:#fff; }
.sc-bv-results { display:grid; gap:1rem; min-width:0; }
.sc-bv-controls label,.sc-bv-two-columns label { display:grid; gap:.35rem; min-width:0; color:#222; font-size:.8rem; font-weight:750; }
.sc-bv-controls input,.sc-bv-controls select,.sc-bv-controls textarea { box-sizing:border-box; width:100%; min-width:0; padding:.68rem .75rem; border:1px solid rgba(20,20,20,.22); border-radius:9px; background:#fff; color:#151515; font:inherit; }
.sc-bv-controls textarea,.sc-bv-card pre { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; }
.sc-bv-two-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; }
.sc-bv-actions,.sc-bv-export-actions { display:flex; flex-wrap:wrap; gap:.5rem; }
.sc-bv-actions button,.sc-bv-export-actions button,.sc-bv-controls fieldset>button,.sc-bv-annotation-list button { min-height:42px; padding:.62rem .8rem; border:1px solid #5d1d37; border-radius:9px; background:#5d1d37; color:#fff; font:inherit; font-size:.8rem; font-weight:800; cursor:pointer; }
.sc-bv-actions button:hover,.sc-bv-export-actions button:hover,.sc-bv-controls fieldset>button:hover,.sc-bv-annotation-list button:hover { background:#3e1124; }
.sc-bv-controls fieldset { display:grid; gap:.65rem; min-width:0; margin:0; padding:.8rem; border:1px solid rgba(93,29,55,.18); border-radius:11px; }
.sc-bv-controls legend { padding:0 .35rem; color:#5d1d37; font-size:.8rem; font-weight:800; }
.sc-bv-channel-options { display:flex; flex-wrap:wrap; gap:.45rem; }
.sc-bv-check { display:flex!important; grid-template-columns:auto 1fr!important; align-items:center; gap:.35rem!important; padding:.4rem .55rem; border:1px solid rgba(20,20,20,.13); border-radius:999px; background:#fafafa; }
.sc-bv-check input { width:auto; margin:0; }
.sc-bv-annotation-list { display:grid; gap:.35rem; }
.sc-bv-annotation-list button { text-align:left; background:#fff; color:#5d1d37; font-weight:700; }
.sc-bv-output-header { display:flex; align-items:center; justify-content:space-between; gap:.75rem; }
.sc-bv-chart-wrap { max-width:100%; min-height:300px; overflow-x:auto; border-radius:12px; background:#fbfbfb; -webkit-overflow-scrolling:touch; }
.sc-bv-svg { display:block; width:100%; min-width:760px; height:auto; }
.sc-bv-background { fill:#fff; }
.sc-bv-lane { fill:rgba(93,29,55,.025); stroke:rgba(20,20,20,.1); }
.sc-bv-gridline { stroke:rgba(20,20,20,.09); stroke-width:1; }
.sc-bv-tick,.sc-bv-label,.sc-bv-range,.sc-bv-legend text { fill:#3b3036; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12px; }
.sc-bv-label { font-size:14px; font-weight:800; }
.sc-bv-range { fill:#786c72; font-size:10px; }
.sc-bv-raw,.sc-bv-filtered { fill:none; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.sc-bv-raw { stroke:#5d1d37; opacity:.46; }
.sc-bv-filtered { stroke:#0b7b61; stroke-width:3; }
.sc-bv-channel-1 .sc-bv-raw { stroke:#214d8f; }.sc-bv-channel-1 .sc-bv-filtered{stroke:#b05d12;}
.sc-bv-channel-2 .sc-bv-raw { stroke:#713b8f; }.sc-bv-channel-2 .sc-bv-filtered{stroke:#1d6e82;}
.sc-bv-channel-3 .sc-bv-raw { stroke:#8b3d32; }.sc-bv-channel-3 .sc-bv-filtered{stroke:#477327;}
.sc-bv-annotation rect { fill:rgba(175,65,92,.12); stroke:rgba(93,29,55,.36); stroke-dasharray:4 3; }.sc-bv-annotation text{fill:#5d1d37;font-size:11px;font-weight:800;}
.sc-bv-annotation-artifact rect { fill:rgba(197,86,31,.13); }.sc-bv-annotation-quality rect{fill:rgba(20,116,139,.12);}.sc-bv-annotation-intervention rect{fill:rgba(51,130,65,.12);}
.sc-bv-card pre { box-sizing:border-box; max-width:100%; min-height:260px; max-height:620px; margin:0; padding:1rem; overflow:auto; border-radius:12px; background:#070a09; color:#74f59a; font-size:.76rem; line-height:1.55; white-space:pre-wrap; overflow-wrap:anywhere; }
.sc-bv-boundary { margin:0; padding:.85rem 1rem; border-left:4px solid #5d1d37; background:rgba(93,29,55,.06); color:#3b3036; font-size:.8rem; line-height:1.55; }
@media (max-width:960px){.sc-bv-workspace{grid-template-columns:1fr}.sc-bv-controls textarea{min-height:220px}}
@media (max-width:760px){.sc-bv-shell{padding:.82rem;border-radius:14px}.sc-bv-card{padding:.82rem}.sc-bv-two-columns{grid-template-columns:1fr}.sc-bv-actions,.sc-bv-export-actions,.sc-bv-output-header{display:grid;grid-template-columns:1fr}.sc-bv-actions button,.sc-bv-export-actions button,.sc-bv-controls fieldset>button{width:100%;min-height:44px}.sc-bv-svg{min-width:680px}.sc-bv-chart-wrap{min-height:260px}}
