.cockpit-page { --cockpit-cyan:#7ceaf2; --cockpit-green:#8ef0b4; background:radial-gradient(ellipse at 25% 5%,#1b1433 0,transparent 55%),#060b13; color:#edf4f9; min-height:100vh; }
.cockpit-page::before,.cockpit-page::after { display:none; }
.cockpit-main { width:min(1600px,calc(100% - 48px)) !important; margin:auto; padding:84px 0 24px !important; }
.cockpit-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:20px; }
.cockpit-heading-actions { display:flex; flex-direction:column; align-items:flex-end; gap:10px; flex-shrink:0; }
.cockpit-next-step { display:inline-flex; align-items:center; min-height:44px; padding:10px 16px; border:1px solid #a0f8dc; border-radius:10px; background:#8ef0b4; color:#092921; font-size:14px; font-weight:750; text-decoration:none; }
.cockpit-next-step[hidden] { display:none; }
.cockpit-next-step:hover { background:#b5ffcf; }
.cockpit-eyebrow { margin:0 0 6px; color:var(--cockpit-cyan); font-size:11px; font-weight:800; letter-spacing:.16em; text-transform:uppercase; }
.cockpit-heading h1 { font-size:clamp(25px,2.3vw,36px); line-height:1.15; letter-spacing:-.035em; margin:0; color:#fff; background:none; -webkit-text-fill-color:initial; }
.cockpit-link-state { display:flex; align-items:center; gap:8px; color:#a7bac8; font-size:12px; }
.cockpit-link-state i { width:7px; height:7px; border-radius:50%; background:var(--cockpit-green); box-shadow:0 0 12px #8ef0b444; }
.cockpit-workspace { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(360px,1fr); gap:20px; align-items:start; }
.cockpit-flight-column,.cockpit-reference { display:grid; gap:16px; min-width:0; }
.cockpit-scene { position:relative; overflow:hidden; border:1px solid #6581a54a; border-radius:16px; isolation:isolate; background:#080d17; box-shadow:0 20px 55px #0005; }
.cockpit-scene>img { display:block; width:100%; height:auto; }
.cockpit-scene-caption { position:absolute; bottom:12px; left:14px; right:14px; display:flex; justify-content:space-between; gap:12px; color:#d3d9e5; font-size:10px; text-shadow:0 1px 6px #000; }
.cockpit-scene-caption>span:first-child { font-size:9px; letter-spacing:.15em; color:#cad2e2; }
.cockpit-monitor { position:absolute; display:flex; align-items:center; justify-content:center; flex-direction:column; color:#8aa2b5; gap:4px; font-family:Consolas,monospace; text-align:center; background:radial-gradient(ellipse,#06131be6,#030a11bb); border-radius:3px; }
.cockpit-monitor>span { font-size:clamp(7px,.65vw,10px); letter-spacing:.12em; }
.cockpit-monitor>strong { font-size:clamp(8px,.85vw,13px); letter-spacing:.04em; }
.cockpit-monitor i { width:8px; height:8px; border-radius:50%; background:#566275; }
.cockpit-monitor-nav { left:24.2%; top:61%; width:10.5%; height:12%; transform:rotate(4deg); }
.cockpit-monitor-main { left:40%; top:60.8%; width:19.8%; height:14.5%; transform:rotate(3deg); }
.cockpit-monitor-main>strong { color:var(--cockpit-cyan); font-size:clamp(11px,1.1vw,17px); }
.cockpit-monitor-main small { color:#67b4c7; font-size:clamp(5px,.5vw,8px); }
.cockpit-monitor-rotor { left:66.7%; top:64%; width:11.8%; height:12.5%; transform:rotate(4deg); }
.cockpit-monitor.is-online { color:var(--cockpit-green); box-shadow:inset 0 0 20px #2eae8a12; }
.cockpit-monitor.is-online i { background:var(--cockpit-green); box-shadow:0 0 12px #8ef0b499; }
.cockpit-monitor-rotor.is-online i { width:15px; height:15px; border-radius:50%; background:conic-gradient(from 0deg,transparent 0 20%,#8ef0b4 20% 25%,transparent 25% 45%,#8ef0b4 45% 50%,transparent 50% 70%,#8ef0b4 70% 75%,transparent 75% 95%,#8ef0b4 95% 100%); animation:cockpit-rotor 2s linear infinite; }
@keyframes cockpit-rotor { to { transform:rotate(360deg); } }
.cockpit-panel { background:linear-gradient(140deg,#111d2b,#0b141f); border:1px solid #7c9cb32a; border-radius:14px; padding:18px; min-width:0; }
.cockpit-panel-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.cockpit-panel-heading h2 { font-size:15px; margin:0; line-height:1.3; color:#f2f7fb; }
.cockpit-panel-heading small { font-size:10px; color:#97adbf; text-align:right; }
.cockpit-file { position:absolute; top:18px; left:18px; width:min(390px,calc(100% - 36px)); padding:12px 16px; border-radius:8px; background:linear-gradient(100deg,#030912c9,#03091270); color:#fff; text-shadow:0 1px 3px #000; }
.cockpit-file .cockpit-panel-heading { margin-bottom:8px; }
.cockpit-file h2 { font-family:Consolas,monospace; font-size:13px; color:#fff; }
.cockpit-readonly { border:1px solid #ffffff40; padding:3px 7px; border-radius:20px; color:#fff; font-size:9px; white-space:nowrap; }
.cockpit-task { margin:0 0 12px; font-size:13px; line-height:1.6; color:#bacbd8; }
.cockpit-page code { color:#c7f4f5; font-family:Consolas,monospace; }
.cockpit-page pre { font-family:Consolas,monospace; white-space:pre-wrap; overflow-wrap:anywhere; margin:0; }
#source-config { padding:0; background:none; border:0; color:#fff; font-size:13px; line-height:1.5; tab-size:2; }
.cockpit-console .CodeMirror { height:320px; font-size:14px; line-height:1.6; border:1px solid #7c9cb333; border-radius:8px; background:#070f19; }
.cockpit-console .CodeMirror-scroll { min-height:0; }
.cockpit-console .CodeMirror-gutters { background:#070f19; border-color:#7c9cb322; }
.cockpit-controls { display:flex; gap:10px; margin:12px 0; }
.cockpit-controls button { min-height:44px; border-radius:9px; padding:10px 17px; font:inherit; font-size:13px; font-weight:750; cursor:pointer; }
.cockpit-run { flex:1; background:var(--cockpit-cyan); border:1px solid #b4fcff; color:#08202b; }
.cockpit-reset { background:#182738; border:1px solid #96b8cf38; color:#cad9e3; }
.cockpit-controls button:disabled { opacity:.6; cursor:wait; }
.cockpit-page #console-output { color:#a9c2d0; font-size:12px; line-height:1.65; height:auto; min-height:44px; max-height:100px; padding:12px; border-radius:8px; overflow:auto; }
.cockpit-page #console-output.is-error { color:#ffc1ba; }
.cockpit-status dl { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:14px 0; }
.cockpit-status dl>div { border-left:2px solid #70899c66; padding-left:10px; }
.cockpit-status dt { font-size:11px; color:#9cb1c2; }
.cockpit-status dd { font-size:15px; margin:4px 0 0; font-weight:750; }
.cockpit-status dd.is-online { color:var(--cockpit-green); }
#run-feedback { color:#bdceda; font-size:13px; line-height:1.6; margin:0; }
.cockpit-help { padding:0; }
.cockpit-help summary { display:flex; justify-content:space-between; align-items:center; padding:17px 18px; font-size:13px; font-weight:700; list-style:none; cursor:pointer; min-height:44px; }
.cockpit-help summary::-webkit-details-marker { display:none; }
.cockpit-help summary>span { color:var(--cockpit-cyan); }
.cockpit-help[open] summary>span { transform:rotate(45deg); }
.cockpit-help>div { padding:0 18px 16px; color:#bdceda; font-size:13px; line-height:1.65; }
.cockpit-help p { margin:0 0 12px; }
.cockpit-help pre { padding:10px; background:#050e17; font-size:12px; border-radius:6px; margin-bottom:12px; }
.cockpit-help .cockpit-help-note { margin:0; color:#90a8ba; font-size:12px; }
.cockpit-complete { padding:20px; border:1px solid #8ef0b455; background:linear-gradient(135deg,#12312b,#101e25); border-radius:14px; }
.cockpit-complete[hidden] { display:none; }
.cockpit-complete h2 { font-size:23px; margin:5px 0 8px; color:var(--cockpit-green); }
.cockpit-complete p { font-size:13px; line-height:1.6; margin:0 0 8px; }
.cockpit-complete small { display:block; font-size:12px; color:#bdd0c9; }
.cockpit-complete a { display:inline-block; margin-top:14px; color:#c5fff0; font-weight:700; font-size:13px; }
.cockpit-page :focus-visible { outline:2px solid var(--cockpit-cyan); outline-offset:4px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media (max-width:1100px) {
    .cockpit-main { width:calc(100% - 32px) !important; padding-top:90px !important; }
    .cockpit-workspace { grid-template-columns:minmax(0,1.55fr) minmax(360px,1fr); gap:14px; }
    .cockpit-panel { padding:14px; }
    .cockpit-help { padding:0; }
    .cockpit-monitor { gap:2px; }
    .cockpit-monitor>strong { font-size:8px; }
    .cockpit-monitor-main>strong { font-size:11px; }
    .cockpit-scene-caption { font-size:8px; bottom:9px; left:9px; right:9px; }
    .cockpit-scene-caption>span:first-child { display:none; }
    .cockpit-link-state { font-size:10px; }
    .cockpit-file { top:10px; left:12px; padding:6px 10px; width:310px; max-width:calc(100% - 24px); }
    .cockpit-file h2 { font-size:12px; }
    #source-config { font-size:12px; line-height:1.35; }
    .cockpit-console .CodeMirror { font-size:13px; height:300px; }
    .cockpit-controls { flex-wrap:wrap; }
    .cockpit-controls button { padding:10px; }
}
@media (max-width:850px) {
    .cockpit-workspace { grid-template-columns:minmax(0,1fr); }
    .cockpit-heading { align-items:flex-start; }
    .cockpit-link-state { display:none; }
    .cockpit-monitor>strong { font-size:10px; }
    .cockpit-monitor-main>strong { font-size:14px; }
}
@media (max-width:560px) {
    .cockpit-file { top:6px; left:6px; padding:6px; max-height:52%; overflow:auto; }
    #source-config { font-size:10px; }
    .cockpit-panel-heading small { font-size:9px; }
}
@media (prefers-reduced-motion:reduce) { .cockpit-monitor-rotor.is-online i { animation:none; } }
