.solarwind-test { --sw-cyan:#6ce2ed; --sw-gold:#ffd599; }
.sw-shell{margin:18px 0;border:1px solid #2b5064;border-radius:20px;overflow:hidden;background:linear-gradient(135deg,#061422,#102c3d);color:#e4f3fa;min-width:0}
.sw-shell-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:15px;padding:22px 24px 8px}.sw-shell-heading h3{font-size:1.5rem;margin:7px 0}.sw-shell-heading p{color:#bcd6e3;font-size:.8rem;margin:0}.sw-shell-heading .eyebrow{color:#81e0e9;font-size:.67rem}.solarwind-test .sw-shell button{background:#123044;border-color:#3b6479;color:#e1f8ff}.solarwind-test .sw-shell button[aria-pressed=true]{background:#16647b}
.sw-shell-status{padding:0 24px;color:#c0dae7;font-size:.76rem;margin:7px 0}.sw-shell-empty{padding:34px 24px;line-height:1.7;color:#c5dbe6;font-size:.84rem;margin:0}.sw-shell-canvas{display:block;width:100%;height:clamp(270px,30vw,380px);touch-action:pan-y}
.sw-shell-legend{padding:0 36px 0 58px}.sw-shell-legend strong{font-size:.76rem;font-weight:650}.sw-shell-legend .sw-colorbar{margin-top:8px}.sw-shell-reading{font-size:.76rem;line-height:1.6;padding:6px 24px;margin:0;color:#d7eaf4;min-height:32px}.sw-shell-note{font-size:.75rem;line-height:1.7;margin:12px 0 0;padding:15px 24px;color:#b8d1df;background:#0b2030;border-top:1px solid #284658}.sw-shell canvas:focus-visible{outline-offset:-3px}
@media(max-width:500px){.sw-shell-heading{padding:18px 14px 7px}.sw-shell-heading h3{font-size:1.25rem}.sw-shell-heading .sw-metrics{width:100%;flex-wrap:wrap}.sw-shell-status,.sw-shell-reading{padding-left:14px;padding-right:14px}.sw-shell-canvas{height:270px}.sw-shell-legend{padding-left:43px;padding-right:20px}.sw-shell-note{padding:14px}.sw-shell-empty{padding:25px 14px}}
.solarwind-test [hidden] {display:none!important;}
.solarwind-test button,.solarwind-test select,.solarwind-test input {font:inherit;}
.solarwind-test button {border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);padding:9px 13px;min-height:40px;cursor:pointer;font-size:.8rem;font-weight:750;}
.solarwind-test button:disabled {opacity:.45;cursor:default;}
.solarwind-test button:hover {filter:brightness(.96);}
.solarwind-test button[aria-pressed="true"] {background:#164d66;color:#e1fcff;border-color:#377d96;}
.solarwind-test :is(button,input):focus-visible {outline:3px solid #dea345;outline-offset:3px;}
.sw-status {padding:13px 16px;background:#e8f5fa;color:#315969;border-left:4px solid #2f8ba5;border-radius:10px;font-size:.82rem;line-height:1.7;}
.sw-toolbar,.sw-actions {display:flex;flex-wrap:wrap;align-items:center;gap:9px;}
.sw-toolbar {justify-content:space-between;margin:17px 0;}
.sw-actions label {font-size:.76rem;color:var(--muted);}
.sw-metrics {display:flex;gap:7px;}
.sw-display {display:grid;grid-template-columns:minmax(0,1fr) 300px;border:1px solid #2d6173;border-radius:20px;overflow:hidden;box-shadow:0 14px 35px #081a352b;background:#061423;}
.sw-scene {position:relative;isolation:isolate;min-width:0;aspect-ratio:1.12;background:radial-gradient(ellipse at 48% 52%,#11304a,#050d1b 74%);overflow:hidden;}
.sw-scene canvas {display:block;width:100%;height:100%;position:absolute;inset:0;touch-action:pan-y;}
.sw-scene-top,.sw-scene-bottom {position:absolute;left:17px;right:17px;display:flex;justify-content:space-between;align-items:center;gap:12px;pointer-events:none;}
.sw-scene-top {top:17px;align-items:start;}
.sw-badge {display:inline-block;padding:7px 10px;border:1px solid #4f9aab;border-radius:99px;color:#c1f7ff;background:#123d51e6;font-size:.72rem;font-weight:800;}
.sw-scene-top p {color:#bdd4e5;font-size:.72rem;line-height:1.6;margin-block:8px;max-width:420px;}
.sw-scene-bottom {bottom:15px;color:#b6d2e5;font-size:.68rem;}
.sw-zoom {display:flex;gap:5px;pointer-events:auto;}
.sw-zoom button {min-height:35px;padding:7px 10px;background:#10283be6;border-color:#3b6a7c;color:#dbfaff;}
.sw-empty {position:absolute;inset:43% 12% auto;text-align:center;color:#d5ebf9;line-height:1.7;font-size:.9rem;}
.sw-map-reading {position:absolute;left:15px;right:15px;bottom:65px;max-width:440px;padding:9px 12px;background:#081e32ed;color:#dbf4ff;border:1px solid #407383;border-radius:9px;pointer-events:none;font-size:.76rem;line-height:1.5;}
.sw-readout {padding:23px 20px;background:linear-gradient(140deg,#132b3d,#081727);color:#deedf7;}
.sw-readout .eyebrow {font-size:.64rem;color:#8ad6e4;}
.sw-readout h3 {font-size:1.05rem;color:#f0fbff;margin:8px 0 15px;}
.sw-object-buttons {display:flex;flex-wrap:wrap;gap:7px;}
.sw-object-buttons button {font-size:.75rem;background:#102e41;color:#caeaf6;border-color:#315b70;min-height:35px;padding:7px 10px;}
.sw-object-buttons button[aria-pressed="true"] {background:#20728b;border-color:#7bdeed;color:white;}
.sw-stereo-toggles {display:grid;gap:9px;padding:15px 0;border-bottom:1px solid #315064;}
.sw-stereo-toggles label,.sw-motion-toggle {font-size:.73rem;color:#c5dce8;display:flex;gap:7px;align-items:center;}
.sw-stereo-toggles p {font-size:.68rem;color:#b5c8da;line-height:1.65;margin:0;}
.sw-object-heading {padding-top:19px;}
.sw-object-heading strong {display:block;font-size:1.5rem;color:#92e8ef;}
.sw-object-heading small {display:block;font-size:.69rem;color:#bbd1de;margin-top:7px;line-height:1.6;}
.sw-facts {margin-block:10px;}
.sw-facts > div {border-bottom:1px solid #274252;padding:12px 0;}
.sw-facts dt {font-size:.68rem;color:#b9cfdc;line-height:1.6;}
.sw-facts dd {margin:5px 0 0;color:#f0faff;font-weight:800;font-size:1rem;}
.sw-readout-note {font-size:.69rem;line-height:1.75;color:#b5ccdc;}
.sw-legend {padding:18px 20px;color:var(--ink);border:1px solid var(--line);border-radius:13px;margin-top:15px;background:var(--surface);}
.sw-legend > div:first-child {display:flex;gap:10px;align-items:center;justify-content:space-between;font-size:.8rem;}
.sw-colorbar {height:14px;border-radius:7px;margin-top:13px;background:var(--sw-field-gradient,#4040b0);border:1px solid #65899d;}
.sw-legend-ticks {position:relative;height:22px;font-size:.68rem;color:var(--muted);}
.sw-legend-ticks > span {position:absolute;top:6px;}
.sw-legend p {font-size:.73rem;line-height:1.7;color:var(--muted);margin-bottom:0;}
.sw-timeline {padding:17px 19px;margin-top:16px;border:1px solid var(--line);border-radius:14px;background:var(--surface);}
.sw-timeline-heading {display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;}
.sw-timeline-heading strong {font-size:.9rem;color:var(--ink);}
.sw-timeline-heading p,.sw-loading {font-size:.77rem;color:var(--muted);line-height:1.65;}
.sw-timeline input[type="range"] {width:100%;accent-color:#2486a1;margin:15px 0 8px;cursor:pointer;}
.sw-time-limits {display:flex;justify-content:space-between;gap:16px;color:var(--muted);font-size:.69rem;}
.sw-model-info {margin-top:16px;padding:19px;border-left:4px solid #3794a4;border-radius:12px;background:#3690a50a;color:var(--ink);}
.sw-earth {margin-top:17px;padding:23px 21px 17px;border:1px solid #315f73;border-radius:18px;background:linear-gradient(125deg,#102d42,#061524);color:#deeff9;}
.sw-earth-heading {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;}
.sw-earth-heading .eyebrow {color:#80dce7;font-size:.66rem;}
.sw-earth-heading h3 {color:#effaff;font-size:1.28rem;margin:8px 0;}
.sw-earth-heading p {color:#b8d3e4;font-size:.8rem;margin:0;}
.sw-earth-model {color:#bde9f3;background:#173b50;border:1px solid #396c82;border-radius:99px;padding:8px 12px;font-size:.7rem;}
.sw-earth-readings {display:flex;align-items:center;flex-wrap:wrap;gap:16px 30px;margin:22px 0 14px;}
.sw-earth-readings > div {min-width:140px;}
.sw-earth-readings span {display:block;color:#bfd6e4;font-size:.73rem;}
.sw-earth-readings strong {display:block;color:#57e5ed;font-size:1.5rem;margin-top:5px;}
.sw-earth-readings > div:nth-child(2) strong {color:#ffbb6d;}
.sw-earth-readings > p {margin:0 0 0 auto;font-size:.79rem;color:#d6eaf6;line-height:1.6;max-width:300px;}
.sw-earth-key {display:flex;flex-wrap:wrap;gap:16px;font-size:.69rem;color:#ffe2a2;margin-top:13px;}
.sw-earth-key span+span {color:#b8cede;}
.sw-earth-chart {display:block;width:100%;height:390px;overflow:visible;cursor:crosshair;border-radius:8px;}
.sw-earth-chart:focus-visible {outline:3px solid #dea345;outline-offset:4px;}
.sw-earth-chart text {font-family:system-ui,sans-serif;}
.sw-earth-axis-title {font-size:12px;font-weight:700;}
.sw-earth-tick {fill:#bfd1df;font-size:11px;}
.sw-earth-grid {stroke:#95bfd5;stroke-opacity:.13;stroke-width:1;}
.sw-earth-now {stroke:#b8cede;stroke-dasharray:4 5;stroke-width:1.2;}
.sw-earth-marker {stroke:#ffe2a2;stroke-width:1.6;}
.sw-earth-tooltip {margin:0 0 10px;padding:9px 12px;background:#193c51;border:1px solid #426d83;border-radius:8px;color:#e4f6ff;font-size:.78rem;line-height:1.65;}
.sw-earth-empty,.sw-earth-note,.sw-earth-help {color:#bed2e1;font-size:.74rem;line-height:1.8;}
.sw-earth-help {margin:3px 0;}
.sw-earth-note {padding-top:12px;border-top:1px solid #2c4b60;margin-bottom:0;}
@media(max-width:600px){.sw-earth {padding:18px 12px 14px;}.sw-earth-readings {gap:15px;}.sw-earth-readings > div {min-width:0;flex:1;}.sw-earth-readings strong {font-size:1.15rem;}.sw-earth-readings > p {margin-left:0;max-width:none;flex-basis:100%;}.sw-earth-heading h3 {font-size:1.12rem;}.sw-earth-chart {height:390px;}}
.sw-model-info h3 {font-size:1rem;margin-block:8px;}
.sw-model-info p {font-size:.78rem;color:var(--muted);line-height:1.8;}
.sw-details {margin-top:20px;color:var(--muted);font-size:.77rem;line-height:1.8;}
.sw-details summary {cursor:pointer;color:var(--ink);font-weight:800;}
.sw-dialog {width:min(96vw,1600px);max-height:96dvh;padding:17px;overflow:auto;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink);}
.sw-dialog::backdrop {background:#020819eb;backdrop-filter:blur(6px);}
.sw-dialog > header {display:flex;align-items:center;justify-content:space-between;gap:15px;}
.sw-dialog > header h3 {font-size:1rem;}
.sw-readout .sw-history-open {margin-top:13px;background:#17465d;color:#d7f8ff;border-color:#448ca3;}
.sw-history-dialog {width:min(96vw,1100px);}
.sw-history-dialog > header {position:sticky;top:-17px;z-index:2;padding-block:8px;background:var(--surface);}
.sw-history-nav {display:flex;flex-wrap:wrap;gap:7px;margin:12px 0;}
.sw-history-dialog .sw-earth {margin-top:10px;}
.sw-history-playback {margin-top:15px;}
.sw-history-playback button,.sw-earth [data-sw-history-retry] {background:#17465d;color:#d7f8ff;border-color:#448ca3;}
body:has(.sw-dialog[open]) {overflow:hidden;}
.solarwind-test .sw-visually-hidden {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
@media(max-width:1050px){.sw-display {grid-template-columns:minmax(0,1fr);}.sw-scene {aspect-ratio:1.15;}.sw-facts {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}.sw-stereo-toggles {grid-template-columns:repeat(2,minmax(0,1fr));}.sw-stereo-toggles p {grid-column:1/-1;}}
@media(max-width:600px){body:has([data-admin-subpanel="sonnenwind"].is-active){min-width:0;}.solarwind-test .panel-heading{display:block;}.sw-scene{aspect-ratio:.72;}.sw-scene-top,.sw-scene-bottom{left:10px;right:10px;gap:6px;}.sw-scene-top p{font-size:.66rem;max-width:240px;}.sw-scene-bottom>span{max-width:100px;line-height:1.5;font-size:.6rem;}.sw-zoom button{padding:6px 8px;}.sw-facts{grid-template-columns:repeat(2,minmax(0,1fr));}.sw-stereo-toggles{grid-template-columns:1fr;}.sw-toolbar,.sw-actions{gap:7px;}.sw-actions label{font-size:.7rem;}.sw-readout,.sw-timeline,.sw-legend{padding:15px;}.sw-dialog{padding:10px;width:97vw;}.sw-model-info{padding:14px;}.sw-scene-bottom{bottom:12px;}.sw-readout-note{font-size:.72rem;}}
