.sx-twin { --sx-line:#45626c; padding:clamp(.75rem,2vw,1.3rem); background:#102832; border:1px solid var(--sx-line); border-radius:.65rem; color:#e2eeee; min-width:0 }
.sx-twin p { line-height:1.5; margin:.55rem 0 .85rem }
.sx-controls { display:grid; gap:.7rem .85rem; grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr)); padding:.45rem 0 }
.sx-controls[hidden] { display:none }
.sx-controls label { display:flex; flex-direction:column; gap:.28rem; font-size:.96rem; align-items:stretch; min-width:0; color:#d4e6e8 }
.sx-controls select,.sx-twin button { max-width:100%; min-width:0; min-height:44px; font:inherit; color:#e1f0ef; background:#173740; border:1px solid #62838b; border-radius:.33rem; padding:.44rem .6rem; }
.sx-controls input[type=range] { margin:0; width:100%; min-height:28px; accent-color:#80dac6; }
.sx-controls output { font:500 .95rem var(--mono,monospace); color:#98e4cf; }
.sx-twin .sx-basis { padding:.55rem 0; color:#b5d1d4; }
.sx-legend { display:flex; gap:.5rem 1rem; flex-wrap:wrap; align-items:center; }
.sx-legend span::before { content:''; display:inline-block; width:1.45rem; border-top:3px solid #78e3cd; margin:0 .4rem .18rem 0; }
.sx-legend .sx-key-lab::before { border-top:3px dashed #ffc581; }
.sx-chart { width:100%; height:218px; background:#0d202b; margin:.65rem 0; border-radius:.35rem; }
.sx-chart svg { display:block; width:100%; height:100%; }
.sx-chart text { font:14px system-ui,sans-serif; fill:#cde0e2; }
.sx-results { width:100%; table-layout:fixed; border-collapse:collapse; margin:1rem 0; font-size:.95rem; }
.sx-results caption { text-align:left; font-weight:650; margin-bottom:.35rem; }
.sx-results th,.sx-results td { text-align:left; padding:.45rem .25rem; border-bottom:1px solid var(--sx-line); overflow-wrap:anywhere; }
.sx-results td { font-variant-numeric:tabular-nums; }
.sx-results thead th:first-child { width:46%; }
.sx-twin button { cursor:pointer; }
.sx-feedback:not(:empty) { margin:.75rem 0; padding:.75rem; border-left:.24rem solid #8cddc7; background:#19353e; }
.sx-feedback p:last-child { margin-bottom:0; }
.sx-twin summary { color:#a7e5d8; cursor:pointer; padding:.7rem 0; }
.sx-twin :focus-visible { outline:2px solid #f6cd8e; outline-offset:2px; }
