/* Inherits C&C tokens; the MFD uses its own full-viewport surface. */
.sccnc-copilot{width:100%;max-width:none;min-width:0;box-sizing:border-box;margin:0;padding:24px!important}
.sccnc-copilot-heading{display:flex;align-items:center;gap:18px;margin-bottom:22px}
.sccnc-copilot-heading img{width:64px;height:64px;object-fit:contain;border-radius:12px}
.sccnc-copilot-heading h2{margin:0 0 5px}
.sccnc-copilot-heading p{margin:0;color:var(--sccnc-muted,#8ca8b6)}
.sccnc-copilot-buttons{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:25px}
.sccnc-copilot-download{position:relative;align-self:flex-start}
.sccnc-copilot-download summary{display:inline-flex;align-items:center;gap:12px;cursor:pointer;list-style:none;user-select:none}
.sccnc-copilot-download summary::-webkit-details-marker{display:none}
.sccnc-copilot-download summary::after{content:"▾";font-size:14px;line-height:1}
.sccnc-copilot-download[open] summary::after{content:"▴"}
.sccnc-copilot-download summary:focus-visible{outline:2px solid #39cbbf;outline-offset:3px}
.sccnc-copilot-download-menu{position:absolute;top:calc(100% + 6px);left:0;min-width:190px;z-index:20;padding:6px;border:1px solid rgba(110,168,190,.45);border-radius:9px;background:var(--sccnc-bg,#0c2536);box-shadow:0 9px 22px rgba(0,0,0,.35)}
.sccnc-copilot-download-menu a{display:block;padding:10px 13px;color:var(--sccnc-text,#e1f4f9);text-decoration:none;border-radius:6px;white-space:nowrap}
.sccnc-copilot-download-menu a:hover,.sccnc-copilot-download-menu a:focus-visible{background:rgba(57,203,191,.15);color:inherit;outline:none}
.sccnc-copilot-settings-title{border-top:1px solid rgba(127,167,179,.23);padding-top:21px}
.sccnc-copilot h3{margin:0 0 18px}
.sccnc-copilot h4{margin:24px 0 12px;font-size:14px;font-weight:650}
.sccnc-copilot-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:9px 15px}
.sccnc-copilot-switch{min-height:49px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 13px;border:1px solid rgba(128,172,188,.25);background:rgba(66,117,132,.08);border-radius:9px;cursor:pointer;position:relative;color:inherit;box-sizing:border-box}
.sccnc-copilot-switch input{position:absolute;opacity:0;width:1px;height:1px}
.sccnc-copilot-switch i{position:relative;flex:none;width:42px;height:24px;background:#4a6470;border-radius:20px;transition:background .12s}
.sccnc-copilot-switch i:after{content:'';position:absolute;top:3px;left:3px;width:18px;height:18px;background:white;border-radius:50%;transition:transform .12s}
.sccnc-copilot-switch input:checked+i{background:#119e9e}
.sccnc-copilot-switch input:checked+i:after{transform:translateX(18px)}
.sccnc-copilot-switch input:focus-visible+i{outline:2px solid #fff;outline-offset:2px}
.sccnc-copilot-remote{max-width:485px;margin-top:18px}
.sccnc-copilot-actions{display:flex;gap:17px;align-items:center;margin-top:20px}
body.sccnc-copilot-mfd{margin:0;min-height:100vh;min-height:100dvh;background:#081723;color:#e9f9ff;font-family:system-ui,Segoe UI,sans-serif}
#sccnc-mfd-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:clamp(10px,1.6vw,20px);padding:clamp(12px,2.5vw,42px)}
.sccnc-mfd-cell{min-height:100px;border:1px solid #24536b;border-radius:11px;background:linear-gradient(140deg,#122e43,#0e2435);display:flex;flex-direction:column;justify-content:center;gap:8px;padding:13px 18px;box-sizing:border-box}
.sccnc-mfd-label{font-weight:650;font-size:12px;letter-spacing:.13em;color:#80bdcd}
.sccnc-mfd-cell strong{font-size:clamp(22px,3vw,35px);font-variant-numeric:tabular-nums;font-weight:550}
.sccnc-mfd-bar{height:7px;border-radius:10px;background:#304859;overflow:hidden}
.sccnc-mfd-bar span{display:block;height:100%;background:#31d6c0}
#sccnc-mfd-offline{text-align:center;color:#90afbf;margin-top:17vh}
#sccnc-mfd-grid[hidden],#sccnc-mfd-offline[hidden],.sccnc-mfd-cell[hidden]{display:none}
#sccnc-mfd-fullscreen{position:fixed;z-index:10;right:8px;bottom:8px;width:35px;height:35px;border:1px solid #31566b;border-radius:7px;background:#142f43;color:#bfd7e0;opacity:.55;cursor:pointer}
@media(max-width:650px){.sccnc-copilot{padding:15px!important}.sccnc-copilot-position{grid-template-columns:repeat(2,1fr)}#sccnc-mfd-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;gap:8px}.sccnc-mfd-cell{min-height:90px;padding:11px}.sccnc-mfd-cell strong{font-size:21px}}

/* Compact, grouped catalog; no tall individual metric cards. */
.sccnc-copilot-group{margin:12px 0 16px;padding:11px 12px 12px;border:1px solid rgba(128,172,188,.23);border-radius:9px;background:rgba(30,72,92,.09)}
.sccnc-copilot-group h5{margin:0 0 10px;font-weight:700;font-size:13px;letter-spacing:.02em;color:var(--sccnc-text,#d1ebf2)}
.sccnc-copilot-group .sccnc-copilot-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,175px),1fr));gap:6px 9px}
.sccnc-copilot-group .sccnc-copilot-switch{min-height:35px;padding:5px 10px;border-radius:6px;font-size:12px;line-height:1.3}
.sccnc-copilot-group .sccnc-copilot-switch i{width:33px;height:19px}
.sccnc-copilot-group .sccnc-copilot-switch i:after{width:13px;height:13px}
.sccnc-copilot-group .sccnc-copilot-switch input:checked+i:after{transform:translateX(14px)}
.sccnc-mfd-bar span.over-limit{background:#f45c6b}
.sccnc-mfd-cell strong.over-limit{color:#f45c6b}
@media(max-width:650px){.sccnc-copilot-group{padding:9px}.sccnc-copilot-group .sccnc-copilot-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:370px){.sccnc-copilot-group .sccnc-copilot-options{grid-template-columns:1fr}}

/* Body-temperature presentation: provisional UX thresholds, applied to raw °C. */
.sccnc-mfd-cell strong.temp-cold{color:#69b8ff}
.sccnc-mfd-cell strong.temp-warm{color:#ffd36d}
.sccnc-mfd-cell strong.temp-hot{color:#f5616b}

/* Overlay personalization */
.sccnc-copilot-layout,.sccnc-copilot-themes{border:0;padding:0;margin:0;display:flex;gap:12px;flex-wrap:wrap}
.sccnc-copilot-layout label,.sccnc-copilot-theme-option{display:flex;align-items:center;gap:9px;padding:9px 14px;border:1px solid rgba(132,180,195,.3);border-radius:8px;cursor:pointer}
.sccnc-copilot-layout label:has(input:checked),.sccnc-copilot-theme-option:has(input:checked){border-color:#30cabe;background:rgba(48,202,190,.10)}
.sccnc-copilot-theme-option span{width:20px;height:20px;display:inline-block;border-radius:50%;background:linear-gradient(145deg,#1d5b76,#30d7c1)}
.sccnc-copilot-theme-option.blue span{background:linear-gradient(145deg,#122851,#3b84ee)}
.sccnc-copilot-theme-option.red span{background:linear-gradient(145deg,#501b2a,#eb4c60)}
.sccnc-copilot-theme-option.gold span{background:linear-gradient(145deg,#553611,#e6aa31)}
.sccnc-copilot-theme-option.purple span{background:linear-gradient(145deg,#2f164e,#ad70f5)}
.sccnc-copilot-theme-option.auto span{background:conic-gradient(from 45deg,#3b84ee 0 25%,#eb4c60 25% 50%,#e6aa31 50% 75%,#8b5cf6 75% 100%)}

/* Telemetry and settings are separate views, no page reloads. */
.sccnc-copilot [hidden]{display:none!important}
.sccnc-copilot-settings-title{border:0;padding:0}
.sccnc-copilot-settings-title p{margin:-8px 0 16px;color:var(--sccnc-muted,#8ca8b6);font-size:13px}
.sccnc-copilot-actions{min-height:24px}
.sccnc-copilot-position{border:0;margin:0;padding:0}
.sccnc-copilot-position-map{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:7px;width:min(100%,530px);aspect-ratio:16/9;border:2px solid rgba(122,164,182,.48);border-radius:10px;padding:12px;background:linear-gradient(135deg,rgba(28,70,93,.50),rgba(8,24,35,.95));box-sizing:border-box}
.sccnc-copilot-position-choice{display:flex;min-width:0;min-height:0;cursor:pointer;position:relative;align-items:center;justify-content:center}
.sccnc-copilot-position-choice.top-left{grid-area:1/1}.sccnc-copilot-position-choice.top-center{grid-area:1/2}.sccnc-copilot-position-choice.top-right{grid-area:1/3}
.sccnc-copilot-position-choice.middle-left{grid-area:2/1}.sccnc-copilot-position-choice.middle-right{grid-area:2/3}
.sccnc-copilot-position-choice.bottom-left{grid-area:3/1}.sccnc-copilot-position-choice.bottom-center{grid-area:3/2}.sccnc-copilot-position-choice.bottom-right{grid-area:3/3}
.sccnc-copilot-position-choice input{position:absolute;opacity:0;width:1px;height:1px}
.sccnc-copilot-position-marker{width:85%;height:75%;border:1px solid rgba(110,186,194,.45);border-radius:5px;box-sizing:border-box;background:rgba(16,73,84,.25);display:flex;flex-direction:column;justify-content:space-evenly;gap:3px;padding:8px 14px}
.sccnc-copilot-position-marker b{height:3px;background:rgba(90,185,193,.42);border-radius:3px}
.sccnc-copilot-position-choice:hover .sccnc-copilot-position-marker{border-color:#39cbbf;background:rgba(57,203,191,.14)}
.sccnc-copilot-position-choice input:checked+.sccnc-copilot-position-marker{border:2px solid #30e3cf;background:rgba(30,190,178,.34);box-shadow:0 0 0 2px rgba(57,203,191,.22)}
.sccnc-copilot-position-choice input:checked+.sccnc-copilot-position-marker b{background:#7df1e2}
.sccnc-copilot-position-choice input:focus-visible+.sccnc-copilot-position-marker{outline:2px solid #fff;outline-offset:3px}
.sccnc-copilot-tile-hint{color:var(--sccnc-muted,#8ca8b6);margin:10px 0}
@media(max-width:650px){.sccnc-copilot-position-map{padding:7px;gap:5px}.sccnc-copilot-position-marker{padding:4px 8px}}

.sccnc-copilot-opacity{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:22px 0 8px;font-weight:600}
.sccnc-copilot-opacity output{font-variant-numeric:tabular-nums;color:#71e5d4}
.sccnc-copilot-opacity-range{display:block;width:min(100%,530px);margin:0 0 22px;accent-color:#30cabe;cursor:pointer}
.sccnc-copilot-opacity-range:focus-visible{outline:2px solid #fff;outline-offset:5px}

/* Typed telemetry collections on the browser MFD. */
.sccnc-mfd-collections{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:14px;margin:16px 0}
.sccnc-copilot-collection{min-width:0;padding:13px;border:1px solid rgba(128,172,188,.25);border-radius:10px;background:rgba(44,94,116,.11)}
.sccnc-copilot-collection h4{margin:0 0 12px;font-size:15px;color:inherit}
.sccnc-copilot-collection-row{display:flex;gap:8px;align-items:flex-start;justify-content:space-between;border-top:1px solid rgba(130,166,184,.14);padding:9px 0;font-size:12px}
.sccnc-copilot-collection-row:first-child{border-top:0}
.sccnc-copilot-collection-row strong{font-size:12px;font-weight:650;overflow-wrap:anywhere;min-width:0;max-width:65%}
.sccnc-copilot-collection-detail{display:flex;flex-wrap:wrap;gap:5px;justify-content:flex-end;text-align:right;color:var(--sccnc-text-muted,#a2bcca);font-variant-numeric:tabular-nums}
.sccnc-copilot-flag{font-size:11px;border-radius:4px;background:rgba(120,140,160,.16);padding:2px 5px;white-space:nowrap}
.sccnc-copilot-flag.is-on{color:#50e0bf;background:rgba(40,180,142,.12)}
body.sccnc-copilot-mfd .sccnc-copilot-collection{background:#112d40;border-color:#24536b}
body.sccnc-copilot-mfd .sccnc-mfd-collections{padding:0 clamp(12px,2.5vw,42px)}
.sccnc-mfd-collections[hidden],.sccnc-copilot-collection[hidden]{display:none!important}

/* Full field telemetry remains separate from the compact browser MFD. */
.sccnc-copilot-diagnostic-search{display:flex;flex-direction:column;gap:6px;max-width:440px;margin:18px 0}
.sccnc-copilot-diagnostic-search input{padding:10px 12px;background:rgba(8,26,40,.45);color:inherit;border:1px solid rgba(120,165,190,.4);border-radius:7px}
.sccnc-copilot-diag-list{display:grid;gap:5px;margin-top:16px}
.sccnc-copilot-diag-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1.5fr) minmax(150px,1fr);min-width:0;gap:10px;align-items:center;padding:9px 12px;border:1px solid rgba(110,165,190,.19);border-radius:7px;background:rgba(45,90,110,.07);font-size:13px}
.sccnc-copilot-diag-row code{overflow-wrap:anywhere;color:var(--sccnc-text,#c3e7f0);font-size:12px}
.sccnc-copilot-diag-row>span:nth-child(2){min-width:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.sccnc-copilot-diag-choices{display:flex;flex-wrap:wrap;gap:7px 12px}
.sccnc-copilot-diag-choices label{white-space:nowrap;cursor:pointer}
.sccnc-copilot-diag-choices input{accent-color:#16b9ae}
.sccnc-copilot-mfd-choices{margin:18px 0;border:1px solid rgba(128,172,188,.29);padding:12px;border-radius:9px}
.sccnc-copilot-mfd-choices>summary{cursor:pointer;font-weight:650}
@media(max-width:720px){.sccnc-copilot-diag-row{grid-template-columns:1fr;gap:6px}}

/* Only show a short warning when new telemetry data is actually observed. */
.sccnc-copilot-capability-notice{margin:8px 0 12px;color:#efbd65;font-weight:650}
.sccnc-copilot-capability-notice[hidden]{display:none}

/* Live Star Copilot MFD and Access Manager. The rails reuse Depot's
 * source-defined PIP geometry and indicative Auto preset, not live allocations. */
.sccnc-live-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:14px clamp(14px,2.4vw,34px);border-bottom:1px solid rgba(115,208,237,.24);background:linear-gradient(140deg,#0b2639,#0a1b29)}
.sccnc-live-identity{display:flex;gap:12px;align-items:center;min-width:0}
.sccnc-live-identity img{width:42px;height:42px;object-fit:contain;border-radius:9px}
.sccnc-live-identity>div{display:grid;gap:3px;min-width:0}
.sccnc-live-identity strong{letter-spacing:.06em;font-size:15px}
.sccnc-live-identity span{color:#a2c8d8;font-size:12px;overflow:hidden;text-overflow:ellipsis;max-width:min(45vw,500px);white-space:nowrap}
.sccnc-live-nav,.sccnc-live-tabs{display:flex;align-items:center;gap:5px;border:1px solid rgba(94,193,236,.36);background:rgba(2,16,28,.68);border-radius:9px;padding:4px}
.sccnc-live-nav a,.sccnc-live-tabs button{border:0;background:transparent;color:#9bc6db;padding:9px 16px;text-decoration:none;border-radius:6px;cursor:pointer;font-size:12px;font-weight:750;letter-spacing:.05em;white-space:nowrap;font-family:inherit}
.sccnc-live-nav a:hover,.sccnc-live-tabs button:hover{color:#f1fcff;background:rgba(85,165,202,.14)}
.sccnc-live-nav a[aria-current="page"],.sccnc-live-tabs button[aria-selected="true"]{background:rgba(73,205,236,.23);box-shadow:inset 0 0 0 1px rgba(108,221,250,.48);color:#e2faff}
.sccnc-live-nav a:focus-visible,.sccnc-live-tabs button:focus-visible,.sccnc-live-action:focus-visible{outline:2px solid #c1faff;outline-offset:2px}
.sccnc-live-badge{display:inline-flex;align-items:center;border:1px solid rgba(180,209,228,.23);border-radius:8px;padding:8px 13px;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#abc2d3;background:rgba(59,95,119,.1)}
.sccnc-live-badge.is-online{color:#70ead8;border-color:rgba(78,230,193,.45);background:rgba(28,156,135,.13)}
.sccnc-live-main{max-width:1500px;margin:0 auto;padding:18px clamp(12px,2.4vw,35px) 55px;box-sizing:border-box}
.sccnc-live-tabs{width:max-content;margin-bottom:18px}
.sccnc-live-surface{min-width:0}
.sccnc-live-section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:17px}
.sccnc-live-section-heading h1{margin:0 0 7px;font-size:clamp(20px,2.5vw,29px);font-weight:750;color:#e8faff}
.sccnc-live-section-heading p{margin:0;max-width:780px;color:#94bcd0;font-size:12px;line-height:1.55}
.sccnc-live-power-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(240px,1fr);gap:16px;align-items:start}
.sccnc-live-board,.sccnc-live-side,.sccnc-live-access-card{background:linear-gradient(150deg,rgba(13,41,62,.82),rgba(6,23,36,.9));border:1px solid rgba(94,181,215,.25);border-radius:12px;padding:20px;box-sizing:border-box;min-width:0}
.sccnc-live-board .sccnc-depot-mfd-bars{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,2.5vw,32px);padding:19px 0 2px;max-width:650px;margin:auto}
.sccnc-depot .sccnc-live-power-column{gap:8px;align-items:stretch}
.sccnc-depot .sccnc-live-power-column .sccnc-depot-mfd-pips{height:210px}
.sccnc-live-power-column .sccnc-depot-mfd-column-foot{font-size:14px}
.sccnc-live-power-column .sccnc-depot-mfd-column-value{font-size:13px;color:#91c4d6}
.sccnc-live-power-column.is-energized .sccnc-depot-mfd-column-value{color:#92f5e9}
.sccnc-live-power-column.is-unknown .sccnc-depot-mfd-pips{opacity:.3}
.sccnc-live-power-label{text-align:center;color:#b7d8e7;font-size:12px;font-weight:650}
.sccnc-live-rail-actions,.sccnc-live-system-actions,.sccnc-live-access-actions{display:flex;gap:7px;justify-content:center}
.sccnc-live-action{min-width:0;flex:1 1 auto;padding:9px 10px;border:1px solid rgba(103,209,228,.39);color:#bcf1fd;border-radius:6px;background:rgba(59,145,181,.21);font:750 11px/1.25 system-ui,Segoe UI,sans-serif;cursor:pointer;transition:background .12s}
.sccnc-live-action:hover:not(:disabled){background:rgba(59,180,211,.4)}
.sccnc-live-action:disabled{opacity:.38;cursor:not-allowed}
.sccnc-live-side h2{font-size:15px;margin:0 0 12px;color:#d9f1f7}
.sccnc-live-systems{display:grid;gap:2px}
.sccnc-live-system{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;min-height:42px;border-bottom:1px solid rgba(118,194,223,.13);padding:7px 0;box-sizing:border-box}
.sccnc-live-system>span{font-size:12px;color:#a9cadc;flex:1 1 100px}
.sccnc-live-system>strong{font-size:12px;font-variant-numeric:tabular-nums;color:#a8bbca}
.sccnc-live-system>strong.is-energized{color:#8fe8d9}
.sccnc-live-system-actions{width:100%;justify-content:end;max-width:170px;margin-left:auto}
.sccnc-live-system-actions .sccnc-live-action{padding:6px}
.sccnc-live-readouts{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:11px;margin-top:16px}
.sccnc-live-readout{background:rgba(25,58,78,.6);border:1px solid rgba(103,183,216,.21);border-radius:10px;padding:13px;display:grid;gap:7px}
.sccnc-live-readout>span{color:#9dc6d8;font-size:12px}
.sccnc-live-readout>strong{font-size:23px;font-weight:650;color:#e5faff;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.sccnc-live-access-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:15px}
.sccnc-live-access-card h2{font-size:16px;margin:0 0 25px;color:#d6f1fa}
.sccnc-live-access-state{display:block;text-align:center;font-size:clamp(22px,3vw,30px);font-weight:600;color:#a9e5f1;min-height:45px}
.sccnc-live-access-actions{margin-top:24px;flex-wrap:wrap}
.sccnc-live-access-actions .sccnc-live-action{padding:12px}
.sccnc-live-command-feedback{padding:12px 16px;margin:0 0 16px;border:1px solid rgba(74,209,199,.43);background:rgba(21,112,112,.15);border-radius:9px;color:#a7ecf2;font-size:13px}
.sccnc-live-command-feedback.is-error{border-color:rgba(220,112,115,.6);background:rgba(164,53,60,.14);color:#fbb6b8}
.sccnc-live-command-feedback[hidden],.sccnc-live-surface[hidden]{display:none!important}
body.sccnc-copilot-mfd #sccnc-mfd-offline{margin:15px 0;padding:14px 17px;color:#adcadb;font-size:13px;text-align:center;border:1px dashed rgba(103,169,203,.28);border-radius:9px}
body.sccnc-copilot-mfd #sccnc-mfd-offline.is-warning{color:#efcf91;border-color:rgba(225,191,119,.36)}
body.sccnc-copilot-mfd #sccnc-mfd-offline[hidden]{display:none!important}
body.sccnc-copilot-mfd #sccnc-mfd-grid{padding:0}
@media(max-width:850px){.sccnc-live-power-layout{grid-template-columns:1fr}.sccnc-live-board .sccnc-depot-mfd-bars{max-width:580px}.sccnc-live-identity span{max-width:40vw}}
@media(max-width:620px){.sccnc-live-header{gap:11px}.sccnc-live-badge{order:3}.sccnc-live-nav{order:2;margin-left:auto}.sccnc-live-nav a{padding:8px 10px;font-size:11px}.sccnc-live-identity strong{font-size:13px}.sccnc-live-identity span{max-width:160px}.sccnc-live-board,.sccnc-live-side,.sccnc-live-access-card{padding:14px}.sccnc-live-board .sccnc-depot-mfd-bars{gap:9px}.sccnc-depot .sccnc-live-power-column .sccnc-depot-mfd-pips{height:150px}.sccnc-live-power-label{font-size:10px}.sccnc-live-rail-actions{gap:3px}.sccnc-live-rail-actions .sccnc-live-action{padding:7px 3px;font-size:10px}}


/* Live MFD: intrinsic PIP geometry and an independently fitted viewport layout. */
html:has(body.sccnc-live-page-mfd){height:100%;overflow:hidden;overscroll-behavior:none}
body.sccnc-live-page-mfd{
  width:100%;height:100vh;height:100dvh;max-height:100dvh;min-height:0;
  overflow:hidden;overscroll-behavior:none;box-sizing:border-box;
  padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  display:flex;flex-direction:column;touch-action:manipulation;
}
body.sccnc-live-page-mfd .sccnc-live-header{
  display:flex;flex:0 0 auto;min-height:40px;gap:10px;flex-wrap:nowrap;align-items:center;
  padding:5px clamp(8px,1.5vw,18px);
}
body.sccnc-live-page-mfd .sccnc-live-identity{flex:1 1 auto;min-width:0;gap:8px;overflow:hidden}
body.sccnc-live-page-mfd .sccnc-live-identity img{width:28px;height:28px}
body.sccnc-live-page-mfd .sccnc-live-identity strong{font-size:12px;letter-spacing:.02em}
body.sccnc-live-page-mfd .sccnc-live-identity span{max-width:25vw;font-size:10px}
body.sccnc-live-page-mfd .sccnc-live-nav{flex:0 0 auto;gap:2px;padding:2px;max-width:none}
body.sccnc-live-page-mfd .sccnc-live-nav a{font-size:11px;padding:7px clamp(7px,1vw,13px)}
body.sccnc-live-page-mfd .sccnc-live-badge{flex:0 0 auto;font-size:10px;padding:5px 8px}
body.sccnc-live-page-mfd #sccnc-mfd-fullscreen{
  position:static;flex:0 0 30px;width:30px;height:30px;opacity:1;
  border-radius:6px;border-color:rgba(100,191,220,.45);background:rgba(52,138,170,.17);
  font-size:19px;line-height:1;display:grid;place-items:center;
}
body.sccnc-live-page-mfd #sccnc-mfd-fullscreen[hidden]{display:none!important}
body.sccnc-live-page-mfd .sccnc-live-main{
  flex:1 1 auto;min-height:0;max-height:100%;width:100%;max-width:none;
  padding:clamp(5px,1.1vmin,13px);margin:0 auto;
  overflow:hidden;display:block;box-sizing:border-box;
}
body.sccnc-live-page-mfd .sccnc-live-power-surface{
  position:relative;display:flex;flex-direction:column;width:100%;margin:0;max-height:100%;min-width:0;
  gap:clamp(4px,.8vmin,10px);overflow:hidden;box-sizing:border-box;
}
body.sccnc-live-page-mfd .sccnc-live-board{
  display:flex;flex-direction:column;flex:0 0 auto;width:100%;max-width:none;
  min-height:0;padding:clamp(7px,1.15vmin,14px);overflow:hidden;
  border-radius:9px;
}
body.sccnc-live-page-mfd .sccnc-depot-mfd-header{
  display:flex;flex:0 0 auto;align-items:center;padding:0 1px 7px;margin:0;
}
body.sccnc-live-page-mfd .sccnc-depot-mfd-header h2{font-size:clamp(13px,1.7vw,17px)!important;margin:0}
body.sccnc-live-page-mfd .sccnc-depot-mfd-counter{font-size:11px}
/* Fields without an actual game-telemetry reading are not presented as dashes. */
body.sccnc-live-page-mfd .sccnc-live-depot-readouts{display:none!important}
body.sccnc-live-page-mfd .sccnc-depot-mfd-scroller{
  flex:0 0 auto;min-height:0;width:100%;min-width:0;margin:5px 0 0;
  padding:0;overflow:hidden;box-sizing:border-box;
}
body.sccnc-live-page-mfd .sccnc-live-board .sccnc-depot-mfd-bars{
  --mfd-pip-height:15px;
  --mfd-bar-width:auto;
  display:grid;grid-template-columns:repeat(var(--live-columns,10),minmax(0,1fr));
  gap:clamp(5px,1.25vmin,13px) clamp(4px,.9vmin,13px);
  width:100%;max-width:100%;min-width:0;height:auto;min-height:0;
  padding:2px 0 0;margin:0;box-sizing:border-box;align-items:end;justify-items:stretch;
}
body.sccnc-live-page-mfd .sccnc-depot .sccnc-live-power-column{
  display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:3px;
  min-width:0;min-height:0;padding:0;
}
body.sccnc-live-page-mfd .sccnc-live-power-column .sccnc-depot-mfd-column-value{
  flex:0 0 auto;display:block;min-height:12px;margin:0;font-size:12px;line-height:1;
  text-align:center;color:#88aebd;
}
body.sccnc-live-page-mfd .sccnc-depot .sccnc-live-power-column .sccnc-depot-mfd-pips{
  display:flex;flex-direction:column;justify-content:flex-end;gap:2px;
  height:auto;flex:0 0 auto;
  min-height:0;width:100%;max-width:68px;overflow:hidden;
}
body.sccnc-live-page-mfd .sccnc-live-power-column .sccnc-depot-pip,
body.sccnc-live-page-mfd .sccnc-depot .sccnc-depot-mfd-pips .sccnc-depot-pip{
  /* A block has the sum of its source-defined PIPs, including normal gaps. */
  --live-block-height:calc(var(--pip-units,1) * var(--mfd-pip-height) + (var(--pip-units,1) - 1) * 2px);
  display:block;flex:0 0 var(--live-block-height)!important;height:var(--live-block-height)!important;
  min-height:var(--live-block-height);max-height:var(--live-block-height);
  box-sizing:border-box;border:1px solid rgba(97,160,188,.37);border-radius:2px;
  padding:0;width:100%;opacity:.9;cursor:not-allowed;
  background:rgba(53,100,128,.32);
}
body.sccnc-live-page-mfd .sccnc-live-power-column .sccnc-depot-mfd-pip-placeholder{min-height:18px}
body.sccnc-live-page-mfd .sccnc-depot .sccnc-live-power-column .sccnc-depot-mfd-column-foot{
  flex:0 0 auto;display:block;width:100%;height:auto;min-height:19px;
  max-width:100%;padding:3px 0!important;margin:0;overflow:hidden;
  background:rgba(38,110,143,.17);border:1px solid rgba(91,173,206,.37);
  border-radius:4px;box-sizing:border-box;text-align:center;
}
body.sccnc-live-page-mfd .sccnc-live-power-column .sccnc-depot-mfd-column-foot strong{
  display:block;font-size:clamp(9px,1.3vw,12px);line-height:1.15;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
body.sccnc-live-page-mfd .sccnc-live-mode-row{
  display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;
  gap:8px;padding-top:6px;margin-top:8px;border-top:1px solid rgba(125,198,222,.20);
}
body.sccnc-live-page-mfd .sccnc-live-mode-row .sccnc-depot-flight-modes{display:flex;gap:4px}
body.sccnc-live-page-mfd .sccnc-live-mode-row .sccnc-depot-flight-mode{
  font-size:11px;font-weight:800;min-width:46px;padding:6px 12px;
  color:#acd0dd;border:1px solid rgba(92,157,189,.42);
  border-radius:5px;background:rgba(44,103,131,.20);
}
body.sccnc-live-page-mfd .sccnc-live-mode-row .sccnc-depot-flight-mode.is-active{
  background:rgba(35,176,188,.27);border-color:#45bfd0;color:#d5faff;
}
body.sccnc-live-page-mfd .sccnc-live-mode-row .sccnc-depot-flight-mode:disabled:not(.is-active){opacity:.5}
body.sccnc-live-page-mfd .sccnc-live-mode-caption{font-size:11px;color:#8bc3db}
body.sccnc-live-page-mfd .sccnc-live-annunciators{
  display:grid;grid-template-columns:repeat(10,minmax(0,1fr));flex:0 0 auto;
  gap:clamp(3px,.7vmin,8px);min-width:0;
}
body.sccnc-live-page-mfd .sccnc-live-annunciator{
  display:grid;place-items:center;box-sizing:border-box;height:clamp(26px,4.2vmin,35px);
  min-width:0;border:1px solid rgba(104,152,176,.28);border-radius:5px;
  font-size:clamp(10px,1.4vw,12px);font-weight:850;letter-spacing:.025em;
  background:#102637;color:#607b88;
}
body.sccnc-live-page-mfd .sccnc-live-annunciator.is-off{
  color:#668192;background:rgba(29,51,65,.28);border-color:rgba(99,137,158,.28);
}
/* White outlined = no active warning (cockpit NOMINAL), never a green lamp. */
body.sccnc-live-page-mfd .sccnc-live-annunciator.is-nominal{
  color:#edf7ff;background:#102637;border-color:rgba(230,245,255,.92);
  box-shadow:none;
}
body.sccnc-live-page-mfd .sccnc-live-annunciator.is-warning{
  color:#ffe5a0;background:rgba(199,131,18,.26);border-color:rgba(246,193,76,.83);
  box-shadow:inset 0 0 13px rgba(220,164,43,.22);
}
body.sccnc-live-page-mfd .sccnc-live-annunciator.is-critical{
  color:#ffd1cf;background:rgba(187,34,48,.38);border-color:rgba(255,82,90,.92);
  box-shadow:inset 0 0 14px rgba(244,44,57,.29),0 0 8px rgba(244,44,57,.12);
}
body.sccnc-live-page-mfd .sccnc-live-annunciator.is-unknown{
  color:#516b7d;opacity:.78;border-style:dashed;
}
@keyframes sccnc-live-annunciator-pulse{50%{filter:brightness(.70)}}
body.sccnc-live-page-mfd .sccnc-live-annunciator.is-flashing{animation:sccnc-live-annunciator-pulse 1s steps(2,end) infinite}
@media(prefers-reduced-motion:reduce){body.sccnc-live-page-mfd .sccnc-live-annunciator.is-flashing{animation:none}}
body.sccnc-live-page-mfd .sccnc-live-flight-actions{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));flex:0 0 auto;
  gap:clamp(4px,.8vmin,10px);min-width:0;
}
/* Aircraft-style, two-position controls. All four have full-size touch targets. */
body.sccnc-live-page-mfd .sccnc-live-flight-action{
  position:relative;display:flex;flex-direction:column;align-items:center;justify-content:space-between;
  gap:4px;box-sizing:border-box;min-height:76px;min-width:0;padding:6px 8px 7px;
  border:1px solid rgba(103,173,198,.51);border-radius:7px;
  background:linear-gradient(160deg,#18364a,#0b2435 80%);color:#d9f4ff;
  box-shadow:inset 0 1px rgba(186,228,244,.1),0 2px 3px rgba(0,0,0,.22);
  touch-action:manipulation;
}
body.sccnc-live-page-mfd .sccnc-live-flight-action .sccnc-live-flight-label{
  display:block;max-width:100%;font-size:clamp(11px,1.35vw,15px);font-weight:850;
  letter-spacing:.07em;line-height:1.1;text-transform:uppercase;white-space:nowrap;
}
body.sccnc-live-page-mfd .sccnc-live-switch-track{
  display:block;position:relative;width:min(100%,190px);height:40px;
  border:1px solid #38586b;border-radius:6px;
  background:linear-gradient(180deg,#061520,#102e40 48%,#081824);
  box-shadow:inset 0 3px 8px rgba(0,0,0,.65),0 1px rgba(139,210,238,.11);
  flex:0 0 auto;
}
body.sccnc-live-page-mfd .sccnc-live-switch-track::before{
  content:'';position:absolute;left:16%;right:16%;top:13px;height:9px;
  border-radius:10px;background:#030c16;box-shadow:inset 0 1px 2px #000,0 1px rgba(124,202,237,.14);
}
body.sccnc-live-page-mfd .sccnc-live-switch-stop{
  position:absolute;bottom:2px;z-index:1;font-size:9px;line-height:1;
  font-weight:800;color:#7495a7;letter-spacing:.04em;
}
body.sccnc-live-page-mfd .sccnc-live-switch-stop.is-left{left:8px}
body.sccnc-live-page-mfd .sccnc-live-switch-stop.is-right{right:8px}
body.sccnc-live-page-mfd .sccnc-live-switch-lever{
  position:absolute;top:3px;left:3px;z-index:2;width:38%;height:24px;
  box-sizing:border-box;border:1px solid #a2c0cb;border-radius:5px;
  background:linear-gradient(180deg,#d9e4e5 0%,#7e9faa 20%,#a8bfc6 38%,#4d7788 65%,#294857 100%);
  box-shadow:inset 0 1px 2px rgba(255,255,255,.55),0 3px 4px rgba(0,0,0,.65);
  transition:left .19s cubic-bezier(.2,.85,.2,1);
}
body.sccnc-live-page-mfd .sccnc-live-switch-lever::after{
  content:'';position:absolute;top:3px;bottom:3px;left:50%;width:3px;
  transform:translateX(-50%);border-radius:3px;
  background:rgba(9,43,61,.5);box-shadow:5px 0 rgba(255,255,255,.2),-5px 0 rgba(255,255,255,.2);
}
body.sccnc-live-page-mfd .sccnc-live-flight-action.is-engaged .sccnc-live-switch-lever{left:calc(62% - 3px)}
body.sccnc-live-page-mfd .sccnc-live-flight-action.is-engaged .sccnc-live-switch-stop.is-right,
body.sccnc-live-page-mfd .sccnc-live-flight-action:not(.is-engaged):not(.is-unknown):not(.is-transitioning) .sccnc-live-switch-stop.is-left{color:#8debd9}
body.sccnc-live-page-mfd .sccnc-live-flight-action.is-engaged{border-color:rgba(91,217,171,.66)}
/* A deployed landing gear is amber in the ship cockpit, not green. */
body.sccnc-live-page-mfd .sccnc-live-flight-action[data-live-flight-action="gear"].is-engaged{border-color:rgba(246,193,76,.82)}
body.sccnc-live-page-mfd .sccnc-live-flight-action[data-live-flight-action="gear"].is-engaged .sccnc-live-switch-stop.is-right{color:#ffd37c}
body.sccnc-live-page-mfd .sccnc-live-flight-action.is-unknown .sccnc-live-switch-lever,
body.sccnc-live-page-mfd .sccnc-live-flight-action.is-transitioning .sccnc-live-switch-lever{
  left:31%;filter:saturate(.4);opacity:.65;
}
body.sccnc-live-page-mfd .sccnc-live-flight-action.is-momentary .sccnc-live-call-plate{
  display:grid;place-items:center;box-sizing:border-box;flex:0 0 auto;
  width:min(100%,190px);height:40px;border:1px solid #4b9bb4;border-radius:6px;
  background:linear-gradient(180deg,#276786,#17405a);color:#e3f9ff;
  font-size:clamp(11px,1.25vw,14px);font-weight:850;letter-spacing:.11em;
  box-shadow:inset 0 1px rgba(207,246,255,.17),0 3px 0 #071724;
}
body.sccnc-live-page-mfd .sccnc-live-flight-action.is-momentary:active:not(:disabled) .sccnc-live-call-plate{
  transform:translateY(2px);box-shadow:inset 0 2px 7px rgba(0,0,0,.45);
}
body.sccnc-live-page-mfd .sccnc-live-flight-action:disabled{opacity:.60}
body.sccnc-live-page-mfd .sccnc-live-flight-action.is-unknown:disabled{opacity:.40}
body.sccnc-live-page-mfd .sccnc-live-flight-action:focus-visible{outline:2px solid #a8f8ff;outline-offset:2px}
@media(prefers-reduced-motion:reduce){body.sccnc-live-page-mfd .sccnc-live-switch-lever{transition:none}}
body.sccnc-live-page-mfd .sccnc-live-command-feedback{
  position:absolute;top:52px;left:50%;transform:translateX(-50%);z-index:20;
  width:min(540px,90%);margin:0;padding:8px;box-sizing:border-box;
  box-shadow:0 10px 25px rgba(0,0,0,.45);text-align:center;
}
/* A nonmodal notice over the cockpit, based on fresh pilot/vehicle evidence. */
body.sccnc-live-page-mfd .sccnc-live-vehicle-notice{
  /* Center above the actual MFD panel, not in the unused viewport space. */
  position:absolute;inset:0;z-index:30;display:grid;place-items:center;
  padding:max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));
  box-sizing:border-box;pointer-events:none;
}
body.sccnc-live-page-mfd .sccnc-live-vehicle-notice[hidden]{display:none!important}
body.sccnc-live-page-mfd .sccnc-live-vehicle-notice-card{
  display:flex;align-items:center;gap:16px;width:min(100%,540px);box-sizing:border-box;
  padding:22px 24px;border:1px solid #d8aa5a;border-radius:12px;
  background:rgba(15,28,39,.97);color:#ffe2ac;text-align:left;
  box-shadow:0 12px 46px rgba(0,0,0,.7),inset 0 1px rgba(255,226,172,.08);
}
body.sccnc-live-page-mfd .sccnc-live-vehicle-notice-icon{
  display:grid;place-items:center;flex:0 0 34px;height:34px;
  border:2px solid currentColor;border-radius:50%;font-size:23px;font-weight:800;
}
body.sccnc-live-page-mfd .sccnc-live-vehicle-notice-card p{
  margin:0;font-size:clamp(15px,2.2vw,19px);line-height:1.5;font-weight:600;overflow-wrap:break-word;
}
@media(max-width:400px){
  body.sccnc-live-page-mfd .sccnc-live-vehicle-notice-card{padding:18px 16px;gap:12px}
}
/* Connection status is already displayed in the header; no blocking second notice. */
body.sccnc-live-page-mfd #sccnc-mfd-offline{display:none!important}
@media(max-width:620px){
  body.sccnc-live-page-mfd .sccnc-live-header{gap:5px;padding:3px 6px;min-height:38px}
  body.sccnc-live-page-mfd .sccnc-live-identity{gap:5px}
  body.sccnc-live-page-mfd .sccnc-live-identity img{width:23px;height:23px}
  body.sccnc-live-page-mfd .sccnc-live-identity strong{font-size:10px}
  body.sccnc-live-page-mfd .sccnc-live-identity span{font-size:9px;max-width:25vw}
  body.sccnc-live-page-mfd .sccnc-live-nav a{padding:6px 5px;font-size:10px}
  body.sccnc-live-page-mfd .sccnc-live-badge{display:none}
  body.sccnc-live-page-mfd #sccnc-mfd-fullscreen{flex-basis:28px;width:28px;height:28px}
  body.sccnc-live-page-mfd .sccnc-live-main{padding:5px}
  body.sccnc-live-page-mfd .sccnc-live-board{padding:7px}
  body.sccnc-live-page-mfd .sccnc-live-annunciators{grid-template-columns:repeat(5,minmax(0,1fr))}
  body.sccnc-live-page-mfd .sccnc-live-flight-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-height:440px) and (orientation:landscape){
  body.sccnc-live-page-mfd .sccnc-live-header{min-height:30px;padding:2px 7px}
  body.sccnc-live-page-mfd .sccnc-live-identity img{width:21px;height:21px}
  body.sccnc-live-page-mfd .sccnc-live-board{padding:5px 7px}
  body.sccnc-live-page-mfd .sccnc-depot-mfd-header{padding-bottom:4px}
  body.sccnc-live-page-mfd .sccnc-live-board .sccnc-depot-mfd-bars{gap:3px 4px}
  body.sccnc-live-page-mfd .sccnc-live-annunciators{grid-template-columns:repeat(10,minmax(0,1fr))}
  body.sccnc-live-page-mfd .sccnc-live-flight-actions{grid-template-columns:repeat(5,minmax(0,1fr))}
  body.sccnc-live-page-mfd .sccnc-live-annunciator{height:25px}
  body.sccnc-live-page-mfd .sccnc-live-flight-action{min-height:64px;padding:4px 5px 5px;gap:2px}
  body.sccnc-live-page-mfd .sccnc-live-switch-track,body.sccnc-live-page-mfd .sccnc-live-flight-action.is-momentary .sccnc-live-call-plate{height:36px}
  body.sccnc-live-page-mfd .sccnc-live-mode-row{margin-top:5px;padding-top:4px}
  body.sccnc-live-page-mfd .sccnc-live-mode-row .sccnc-depot-flight-mode{padding:4px 10px}
}
@media(max-height:580px) and (orientation:portrait){
  body.sccnc-live-page-mfd .sccnc-live-annunciator{height:25px}
  body.sccnc-live-page-mfd .sccnc-live-flight-action{min-height:65px;padding:4px 5px 5px}
}

/* Landscape cockpit occupies the complete usable viewport without scrolling.
   Portrait retains the compact controls and doesn't stretch the rail area. */
@media (orientation:landscape){
  body.sccnc-live-page-mfd .sccnc-live-main{display:flex;flex-direction:column}
  body.sccnc-live-page-mfd .sccnc-live-power-surface{
    flex:1 1 auto;height:100%;min-height:0;max-height:none;
  }
  body.sccnc-live-page-mfd .sccnc-live-board{flex:1 1 auto;min-height:0}
  body.sccnc-live-page-mfd .sccnc-depot-mfd-scroller{
    display:flex;flex:1 1 auto;min-height:0;align-items:stretch;
  }
  body.sccnc-live-page-mfd .sccnc-live-board .sccnc-depot-mfd-bars{
    height:100%;min-height:0;flex:1 1 auto;align-items:stretch;
  }
  body.sccnc-live-page-mfd .sccnc-depot .sccnc-live-power-column{
    height:100%;min-height:0;justify-content:flex-end;
  }
  body.sccnc-live-page-mfd .sccnc-depot .sccnc-live-power-column .sccnc-depot-mfd-pips{
    height:auto;flex:0 0 auto;min-height:0;
    max-width:clamp(44px,10vmin,86px);
  }
  body.sccnc-live-page-mfd .sccnc-live-annunciator{height:clamp(27px,5.5vmin,34px)}
  body.sccnc-live-page-mfd .sccnc-live-flight-action{min-height:clamp(64px,10.5vmin,92px)}
}
@media(max-height:380px) and (orientation:landscape){
  body.sccnc-live-page-mfd .sccnc-live-header{min-height:28px}
  body.sccnc-live-page-mfd .sccnc-live-main{padding:4px}
  body.sccnc-live-page-mfd .sccnc-live-power-surface{gap:4px}
  body.sccnc-live-page-mfd .sccnc-live-mode-row{padding-top:3px;margin-top:3px}
  body.sccnc-live-page-mfd .sccnc-live-flight-action{min-height:59px;padding:3px 5px 4px}
  body.sccnc-live-page-mfd .sccnc-live-switch-track,
  body.sccnc-live-page-mfd .sccnc-live-flight-action.is-momentary .sccnc-live-call-plate{height:31px}
  body.sccnc-live-page-mfd .sccnc-live-switch-lever{height:20px;top:2px}
  body.sccnc-live-page-mfd .sccnc-live-switch-track::before{top:10px}
}

/* Stock weapon PIP window: non-powerable slots remain clearly distinguished. */
body.sccnc-live-page-mfd .sccnc-live-power-column .sccnc-depot-pip.is-ghost{
  background:rgba(30,56,72,.12);border-style:dashed;border-color:rgba(86,143,163,.17);opacity:.48;
}

/* Copilot-specific workbench tab surfaces; scope away from other plugin tabs. */
.sccnc-copilot>.sccnc-workbench-tabs{gap:8px;margin-top:18px;overflow:visible;border-bottom:1px solid rgba(111,205,255,.46)}
.sccnc-copilot>.sccnc-workbench-tabs button{flex-shrink:0;margin-bottom:-1px;border:1px solid rgba(111,205,255,.28);border-bottom-color:rgba(111,205,255,.46);border-radius:12px 12px 0 0;background:#0b2639;color:#98bfd3;box-shadow:none}
.sccnc-copilot>.sccnc-workbench-tabs button[aria-selected="true"]{z-index:2;border:1px solid rgba(111,205,255,.60);border-top:2px solid #49bddf;border-bottom-color:#102d42;background:#102d42;color:#fff;box-shadow:none}
.sccnc-copilot>.sccnc-workbench-tabs button:first-child{border-top-left-radius:0;margin-left:0}
.sccnc-copilot>[data-sccnc-copilot-panel]{padding:18px 16px 8px;border:1px solid rgba(111,205,255,.46);border-top:0;border-radius:0 0 9px 9px;background:#102d42;min-width:0}
.sccnc-copilot .sccnc-copilot-tile-borders{max-width:530px;margin:13px 0 20px}
@media(max-width:650px){.sccnc-copilot>.sccnc-workbench-tabs{gap:5px;overflow-x:auto;overflow-y:hidden}.sccnc-copilot>.sccnc-workbench-tabs button{min-width:0;padding-inline:10px}.sccnc-copilot>[data-sccnc-copilot-panel]{padding:13px 10px 6px}}

/* Source-defined rails stay visible on a stale stream; only their controls
   become inactive. An explicitly OFF subsystem has a wrapping down-chevron
   animation, independent of the (unavailable) live PIP allocation. */
body.sccnc-live-page-mfd .sccnc-live-power-column .sccnc-depot-mfd-pips{position:relative;isolation:isolate}
body.sccnc-live-page-mfd .sccnc-live-power-column.is-unknown .sccnc-depot-mfd-pips{opacity:.82}
body.sccnc-live-page-mfd .sccnc-live-power-column.is-powered .sccnc-depot-mfd-pips{opacity:1}
body.sccnc-live-page-mfd .sccnc-live-power-column.is-powered .sccnc-depot-pip.is-on{
  /* Same bright, readable energized tiles as Ship Depot. These PIPs show
     the Depot Auto illustration, not a measured in-game allocation. */
  background:linear-gradient(90deg,#73cfe2,#b1ecf4);
  border-color:rgba(189,250,255,.85);box-shadow:0 0 5px rgba(110,226,241,.25);
  opacity:1;
}
body.sccnc-live-page-mfd .sccnc-live-power-column .sccnc-depot-pip.is-on .sccnc-depot-pip-amount{
  display:grid;place-items:center;min-height:var(--mfd-pip-height);
  font-size:11px;font-weight:850;color:#052431;
}
body.sccnc-live-page-mfd .sccnc-live-power-column .sccnc-depot-pip.is-on .sccnc-depot-pip-minimum{display:none}
/* Actual OFF components use the cockpit warning-rail treatment: each
   source-sized PIP is one red tile, separated by the ordinary 2px PIP gap.
   The moving chevron is clipped by its own tile, so it cannot bridge gaps. */
body.sccnc-live-page-mfd .sccnc-live-power-column.is-switched-off .sccnc-depot-mfd-pips{
  opacity:1;box-shadow:0 0 9px rgba(161,64,76,.17);
}
body.sccnc-live-page-mfd .sccnc-live-power-column.is-switched-off .sccnc-depot-mfd-pips .sccnc-depot-pip{
  position:relative;overflow:hidden;opacity:1;isolation:isolate;
  border-color:#bb6470;background:
    repeating-linear-gradient(0deg,transparent 0 2px,rgba(211,109,118,.055) 2px 3px),
    linear-gradient(110deg,#722b37,#4e1c29);
  box-shadow:inset 0 0 5px rgba(204,113,123,.12);
}
/* The same wide, solid V fills every segment from edge to edge. It moves down
   one full tile per cycle and reappears from the top without a visible jump. */
body.sccnc-live-page-mfd .sccnc-live-power-column.is-switched-off .sccnc-depot-mfd-pips .sccnc-depot-pip::after{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath fill='%23d77c86' fill-opacity='.78' d='M0 0 L50 66 L100 0 L100 30 L50 100 L0 30 Z'/%3E%3C/svg%3E");
  background-repeat:repeat-y;background-size:100% var(--mfd-pip-height);
  background-position:0 0;
  animation:sccnc-live-off-arrows 1.3s linear infinite;
}
@keyframes sccnc-live-off-arrows{to{background-position:0 var(--mfd-pip-height)}}
/* Fixed central caution badge: triangle, lightning and framed OFFLINE. It
   overlays the moving arrows but never expands or reallocates the PIP rail. */
body.sccnc-live-page-mfd .sccnc-live-offline-mark{
  display:none;position:absolute;inset:0;z-index:3;pointer-events:none;
  flex-direction:column;align-items:center;justify-content:center;
  --sccnc-offline-badge-width:min(100%,56px);
  gap:2px;padding:0 1px;box-sizing:border-box;min-width:0;min-height:0;
  text-align:center;
  filter:drop-shadow(0 1px 2px rgba(23,0,5,.66));
}
body.sccnc-live-page-mfd .sccnc-live-power-column.is-switched-off .sccnc-live-offline-mark{display:flex}
body.sccnc-live-page-mfd .sccnc-live-offline-mark svg{
  display:block;flex:0 1 48px;width:var(--sccnc-offline-badge-width);height:auto;max-height:48px;min-height:0;margin-inline:auto;
  overflow:visible;filter:drop-shadow(0 0 1px rgba(214,125,134,.65));
}
body.sccnc-live-page-mfd .sccnc-live-offline-caption{
  display:flex;flex:0 0 auto;align-items:center;justify-content:center;
  box-sizing:border-box;width:var(--sccnc-offline-badge-width);max-width:100%;margin-inline:auto;
  padding:2px 2px;line-height:1;white-space:nowrap;text-align:center;
  font-size:9px;font-weight:900;letter-spacing:0;text-transform:uppercase;
  color:#e2afb1;background:#30151d;border:1px solid #bd7780;
  box-shadow:0 0 2px rgba(193,112,121,.48),inset 0 0 2px rgba(188,97,107,.12);
  transform:none;
}
/* Small PIP pools keep their honest heights; shrink the emblem into them. */
body.sccnc-live-page-mfd .sccnc-depot-mfd-pips.is-offline-compact .sccnc-live-offline-mark{gap:0;--sccnc-offline-badge-width:min(100%,34px)}
body.sccnc-live-page-mfd .sccnc-depot-mfd-pips.is-offline-compact .sccnc-live-offline-mark svg{
  flex-basis:23px;max-height:23px;
}
body.sccnc-live-page-mfd .sccnc-depot-mfd-pips.is-offline-compact .sccnc-live-offline-caption{
  font-size:7px;line-height:1;padding:1px 2px;letter-spacing:0;
}
body.sccnc-live-page-mfd .sccnc-depot-mfd-pips.is-offline-tiny .sccnc-live-offline-mark{--sccnc-offline-badge-width:min(100%,30px)}
body.sccnc-live-page-mfd .sccnc-depot-mfd-pips.is-offline-tiny .sccnc-live-offline-mark svg{
  flex-basis:8px;max-width:11px;max-height:8px;
}
body.sccnc-live-page-mfd .sccnc-depot-mfd-pips.is-offline-tiny .sccnc-live-offline-caption{
  font-size:5px;line-height:1;padding:0 1px;
}
body.sccnc-live-page-mfd .sccnc-live-power-column.is-switched-off .sccnc-depot-mfd-column-value{color:#d9a0a6}
body.sccnc-live-page-mfd .sccnc-live-power-column .sccnc-depot-mfd-column-foot:is(button){
  display:flex;justify-content:center;align-items:center;cursor:pointer;font-family:inherit;color:#d5eff9;
}
body.sccnc-live-page-mfd .sccnc-live-power-column .sccnc-depot-mfd-column-foot:is(button):hover:not(:disabled){
  background:rgba(63,169,203,.28);border-color:rgba(135,220,247,.9);
}
body.sccnc-live-page-mfd .sccnc-live-power-column .sccnc-depot-mfd-column-foot:is(button):focus-visible{outline:2px solid #c1faff;outline-offset:2px}
body.sccnc-live-page-mfd .sccnc-live-power-column .sccnc-depot-mfd-column-foot:is(button):disabled{cursor:default}
body.sccnc-live-page-mfd .sccnc-live-power-column.is-switched-off .sccnc-depot-mfd-column-foot{border-color:rgba(191,105,116,.59);color:#e4c4c8}
body.sccnc-live-page-mfd .sccnc-live-power-surface.is-telemetry-inactive .sccnc-live-power-column{
  opacity:.77;filter:grayscale(.65);pointer-events:none;
}
body.sccnc-live-page-mfd .sccnc-live-power-surface.is-telemetry-inactive .sccnc-live-power-column .sccnc-depot-mfd-pips{opacity:1}
body.sccnc-live-page-mfd .sccnc-live-power-surface.is-telemetry-inactive .sccnc-live-power-column .sccnc-depot-pip{
  background:rgba(55,89,110,.36);border-color:rgba(108,151,178,.48);
}
body.sccnc-live-page-mfd .sccnc-live-power-surface.is-telemetry-inactive .sccnc-live-annunciator,
body.sccnc-live-page-mfd .sccnc-live-power-surface.is-telemetry-inactive .sccnc-live-flight-action{
  opacity:.4;filter:grayscale(.85);pointer-events:none;
}
body.sccnc-live-page-mfd .sccnc-live-power-surface.is-telemetry-inactive .sccnc-live-annunciator{animation-play-state:paused}
body.sccnc-live-page-mfd .sccnc-live-power-surface.is-telemetry-inactive .sccnc-depot-pip::after{animation-play-state:paused}
body.sccnc-live-page-mfd .sccnc-live-power-surface.is-telemetry-inactive .sccnc-live-offline-mark{display:none!important}
@media(prefers-reduced-motion:reduce){
  body.sccnc-live-page-mfd .sccnc-live-power-column.is-switched-off .sccnc-depot-pip::after{animation:none}
}

/* Whole-ship shutdown: subsystem rails, annunciators and flight controls are
   unlit/inactive, not individually switched OFF. Keep the main POWER control
   available to restore power without altering the last known gear position. */
body.sccnc-live-page-mfd .sccnc-live-power-column.is-power-inactive{opacity:.55;filter:grayscale(.9)}
body.sccnc-live-page-mfd .sccnc-live-power-column.is-power-inactive .sccnc-depot-mfd-pips{opacity:1}
body.sccnc-live-page-mfd .sccnc-live-power-column.is-power-inactive .sccnc-depot-pip{
  background:rgba(55,89,110,.36);border-color:rgba(108,151,178,.48);
}
body.sccnc-live-page-mfd .sccnc-live-power-column.is-power-inactive .sccnc-depot-mfd-column-foot{
  border-color:rgba(91,173,206,.37);color:#88aebd;
}
body.sccnc-live-page-mfd .sccnc-live-annunciator.is-power-inactive{
  opacity:.4;filter:grayscale(1);box-shadow:none;animation:none;
  background:#102637;color:#607b88;border-color:rgba(104,152,176,.28);
}
body.sccnc-live-page-mfd .sccnc-live-flight-action.is-power-inactive{
  opacity:.4;filter:grayscale(1);pointer-events:none;
  border-color:rgba(103,173,198,.51);
}
body.sccnc-live-page-mfd .sccnc-live-flight-action.is-power-inactive .sccnc-live-switch-stop{color:#7495a7}

/* 4.1.27 MFD-only cockpit layout. Based on 4.1.23, without the empty-rail
   viewport stretching regression: rails/annunciators/controls stay together. */
body.sccnc-live-page-mfd .sccnc-live-main{
  padding:clamp(3px,.65vmin,7px);display:block;overflow:hidden;
}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell{
  width:100%;height:max-content;max-height:100%;min-height:0;min-width:0;display:grid;
  grid-template-columns:minmax(0,1fr) clamp(64px,8vw,80px);
  grid-template-rows:auto;align-items:stretch;
  gap:clamp(3px,.6vmin,7px);
}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell>.sccnc-live-power-surface{
  display:flex;flex-direction:column;flex:0 1 auto;
  width:100%;height:max-content;max-height:100%;min-height:0;min-width:0;
  margin:0;align-self:start;overflow:hidden;
  gap:clamp(3px,.65vmin,8px);
}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-board{
  display:flex;flex-direction:column;flex:0 1 auto;
  width:100%;height:auto;max-height:none;min-height:0;min-width:0;
  padding:clamp(4px,.8vmin,9px);overflow:hidden;
}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-depot-mfd-scroller{
  display:block;flex:0 1 auto;overflow:hidden;width:100%;
  min-height:0;margin:0;padding:0;box-sizing:border-box;
}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-board .sccnc-depot-mfd-bars{
  height:auto;min-height:0;width:100%;max-width:100%;margin:0;
  padding:2px 0 0;flex:none;align-items:end;
}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-depot .sccnc-live-power-column{
  height:auto;min-height:0;justify-content:flex-end;
}
body.sccnc-live-page-mfd .sccnc-live-mfd-toolbar{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  position:relative;align-items:center;flex:0 0 auto;
  width:100%;height:30px;min-height:0;max-height:30px;
  padding:0 2px!important;margin:0;gap:4px;
  border:0!important;border-bottom:0!important;box-shadow:none!important;
}
body.sccnc-live-page-mfd .sccnc-live-mfd-toolbar .sccnc-live-identity{
  display:flex;align-items:center;gap:5px;flex:0 1 auto;
  min-width:0;overflow:hidden;white-space:nowrap;
}
body.sccnc-live-page-mfd .sccnc-live-mfd-toolbar .sccnc-live-identity img{
  width:22px;height:22px;flex:0 0 22px;
}
body.sccnc-live-page-mfd .sccnc-live-mfd-toolbar .sccnc-live-identity strong{
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:clamp(10px,1.4vw,13px);letter-spacing:0;
}
body.sccnc-live-page-mfd .sccnc-live-ship-class{
  display:flex;align-items:center;justify-content:center;gap:4px;
  min-width:0;font-size:clamp(10px,1.4vw,13px);
  color:#9abfce;white-space:nowrap;
}
body.sccnc-live-page-mfd .sccnc-live-ship-class strong{
  min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;
  font-size:inherit;font-weight:800;color:#e5faff;
}
body.sccnc-live-page-mfd .sccnc-live-mfd-sidebar{
  display:flex;flex-direction:column;align-items:stretch;
  align-self:stretch;gap:8px;min-height:0;height:auto;
  box-sizing:border-box;padding:6px 4px;border:1px solid rgba(94,181,215,.35);
  border-radius:9px;background:linear-gradient(160deg,#102d42,#091d2d);
}
body.sccnc-live-page-mfd .sccnc-live-mfd-status{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:5px;min-height:60px;flex:0 0 auto;padding:5px 1px;
  border:1px solid rgba(112,175,201,.28);border-radius:7px;
  background:rgba(30,53,67,.36);color:#9aafbc;
  box-sizing:border-box;font-size:clamp(10px,1.3vw,13px);font-weight:850;text-align:center;
}
body.sccnc-live-page-mfd .sccnc-live-status-dot{
  display:block;width:15px;height:15px;border:3px solid currentColor;
  box-sizing:border-box;border-radius:50%;opacity:.85;
}
body.sccnc-live-page-mfd .sccnc-live-mfd-status.is-online{
  color:#83edcd;border-color:rgba(68,216,159,.55);background:rgba(21,117,90,.18);
}
body.sccnc-live-page-mfd .sccnc-live-mfd-status.is-online .sccnc-live-status-dot{
  background:currentColor;box-shadow:0 0 10px rgba(78,233,180,.5);
}
body.sccnc-live-page-mfd #sccnc-mfd-fullscreen{
  display:grid;place-items:center;position:static;flex:0 0 auto;
  box-sizing:border-box;width:100%;min-width:0;height:66px;padding:0;
  border:1px solid rgba(100,191,220,.64);border-radius:9px;
  color:#c6f5ff;background:rgba(46,139,173,.26);opacity:1;
  cursor:pointer;touch-action:manipulation;
}
body.sccnc-live-page-mfd #sccnc-mfd-fullscreen.is-engaged{
  background:rgba(32,166,147,.27);border-color:#5bdccb;
}
body.sccnc-live-page-mfd #sccnc-mfd-fullscreen:focus-visible{
  outline:2px solid #c1faff;outline-offset:2px;
}
body.sccnc-live-page-mfd #sccnc-mfd-fullscreen[hidden]{display:none!important}
body.sccnc-live-page-mfd .sccnc-live-wake-state{
  display:grid;place-items:center;align-self:center;flex:0 0 auto;
  width:40px;height:40px;box-sizing:border-box;padding:0;
  border:1px solid rgba(113,159,182,.38);border-radius:7px;
  font-size:21px;color:#7d9eb0;background:rgba(27,76,98,.2);
  cursor:pointer;touch-action:manipulation;
}
body.sccnc-live-page-mfd .sccnc-live-wake-state.is-active{
  color:#8af2cb;border-color:rgba(104,225,173,.52);background:rgba(35,129,94,.2);
}
body.sccnc-live-page-mfd .sccnc-live-wake-state.is-unavailable{
  color:#ffc78c;border-color:rgba(245,179,95,.60);background:rgba(147,89,36,.18);
}
body.sccnc-live-page-mfd .sccnc-live-mfd-sidebar .sccnc-depot-mfd-counter{
  display:block;align-self:center;font-size:10px;line-height:1.35;
  text-align:center;white-space:normal;overflow-wrap:anywhere;color:#8db7c7;
}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-power-column .sccnc-depot-mfd-column-foot{
  min-height:29px;padding:5px 1px!important;
}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-annunciator{
  height:clamp(48px,8vmin,66px);font-size:clamp(10px,1.6vw,15px);
}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-flight-action{
  min-height:110px;padding:7px 6px;gap:4px;
}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-switch-track,
body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-flight-action.is-momentary .sccnc-live-call-plate{height:54px}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-switch-track::before{top:18px}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-switch-lever{top:5px;height:35px}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-switch-stop{font-size:10px;bottom:3px}
@media(min-width:450px){
  body.sccnc-live-page-mfd .sccnc-live-ship-class{
    position:absolute;left:50%;transform:translateX(-50%);max-width:55%;
  }
}
@media(max-width:620px){
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell{
    grid-template-columns:minmax(0,1fr) 61px;gap:3px;
  }
  body.sccnc-live-page-mfd .sccnc-live-mfd-sidebar{padding:4px 3px;gap:6px}
  body.sccnc-live-page-mfd .sccnc-live-mfd-status{min-height:54px;font-size:10px}
  body.sccnc-live-page-mfd #sccnc-mfd-fullscreen{height:60px}
  body.sccnc-live-page-mfd .sccnc-live-mfd-toolbar{height:27px;max-height:27px}
  body.sccnc-live-page-mfd .sccnc-live-mfd-toolbar .sccnc-live-identity{gap:3px}
  body.sccnc-live-page-mfd .sccnc-live-mfd-toolbar .sccnc-live-identity img{
    width:19px;height:19px;flex-basis:19px;
  }
  body.sccnc-live-page-mfd .sccnc-live-mfd-toolbar .sccnc-live-identity strong{font-size:10px}
  body.sccnc-live-page-mfd .sccnc-live-ship-class{font-size:10px;gap:3px}
  body.sccnc-live-page-mfd .sccnc-live-annunciators{grid-template-columns:repeat(5,minmax(0,1fr))}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-annunciator{height:50px}
  body.sccnc-live-page-mfd .sccnc-live-flight-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-flight-action{
    min-height:96px;padding:5px 3px;gap:3px;
  }
  body.sccnc-live-page-mfd .sccnc-live-flight-label{font-size:10px;letter-spacing:0}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-switch-track,
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-flight-action.is-momentary .sccnc-live-call-plate{height:47px}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-switch-track::before{top:15px}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-switch-lever{top:4px;height:29px}
}
@media(orientation:landscape){
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-annunciators{grid-template-columns:repeat(10,minmax(0,1fr))}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-flight-actions{grid-template-columns:repeat(5,minmax(0,1fr))}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-annunciator{height:clamp(44px,7.5vmin,60px)}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-flight-action{min-height:96px}
}
@media(max-height:440px) and (orientation:landscape){
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-annunciator{height:44px}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-flight-action{min-height:86px;padding:4px 3px}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-switch-track,
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-flight-action.is-momentary .sccnc-live-call-plate{height:43px}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-switch-lever{height:27px;top:4px}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-switch-track::before{top:14px}
}

/* Never shrink the 4.1.23 native PIP minimum on short screens. The fit
   routine enlarges a complete PIP unit only when viewport room permits. */
@media (max-width:359px) and (max-height:600px) and (orientation:portrait){
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-flight-action{min-height:85px;padding:4px 2px;gap:2px}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-annunciator{height:43px}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-switch-track,
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-flight-action.is-momentary .sccnc-live-call-plate{height:41px}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-switch-track::before{top:13px}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-switch-lever{height:26px;top:3px}
}
@media (max-height:440px) and (orientation:landscape){
  body.sccnc-live-page-mfd .sccnc-live-mfd-toolbar{height:24px;max-height:24px}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-board{padding:3px 5px}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-power-surface{gap:2px}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-power-column .sccnc-depot-mfd-column-foot{min-height:19px;padding:3px 0!important}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-annunciator{height:26px;font-size:10px}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-flight-action{min-height:59px;padding:2px 3px;gap:2px}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-switch-track,
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-flight-action.is-momentary .sccnc-live-call-plate{height:33px}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-switch-track::before{top:10px}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-switch-lever{height:19px;top:2px}
}

/* Preserve the native 4.1.23 PIP geometry even when a rare tall ship cannot
   fit all rails on a short display. Never clip them invisibly. */
body.sccnc-live-page-mfd .sccnc-depot-mfd-scroller.is-overflowing{
  overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;
  scrollbar-color:rgba(112,193,221,.5) transparent;
}

/* Larger portrait-phone MFD rails: spend unused cockpit height on wider
   multi-row layouts without modifying Desktop, Depot or game PIP allocations. */
@media (max-width:620px) and (orientation:portrait){
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-board{
    padding-inline:3px;
  }
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-board .sccnc-depot-mfd-bars{
    column-gap:2px;
    row-gap:7px;
  }
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-depot .sccnc-live-power-column .sccnc-depot-mfd-pips{
    max-width:100px;
  }
}

/* The standalone MFD uses the complete available viewport width, including
   ultrawide monitors; its layout is independent of Depot's content cap. */
body.sccnc-live-page-mfd .sccnc-live-main{
  width:100%;max-width:none;margin-inline:auto;
}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell>.sccnc-live-power-surface{
  max-width:none;
}

/* MFD-only viewport fit. All sizing is in layout coordinates (no transform or
   zoom), so labels, touch targets and the sidebar reflow together. JS chooses
   the largest common PIP unit that fits the actual remaining cockpit height. */
body.sccnc-live-page-mfd .sccnc-live-mfd-shell{
  --mfd-ui-scale:1;
  max-height:min(100%,var(--mfd-height-limit,100vw));
  grid-template-rows:minmax(0,auto);
  grid-template-columns:minmax(0,1fr) clamp(64px,calc(80px * var(--mfd-ui-scale)),140px);
  gap:clamp(3px,calc(5px * var(--mfd-ui-scale)),12px);
}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell>.sccnc-live-power-surface{
  gap:clamp(3px,calc(7px * var(--mfd-ui-scale)),13px);
  max-height:min(100%,var(--mfd-height-limit,100vw));
  overflow-y:auto;overscroll-behavior-y:contain;
}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-board{
  flex:0 0 auto;
  padding:clamp(4px,calc(8px * var(--mfd-ui-scale)),16px);
}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-mfd-toolbar{
  height:calc(30px * var(--mfd-ui-scale));max-height:none;
}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-mfd-toolbar .sccnc-live-identity img{
  width:calc(22px * var(--mfd-ui-scale));height:calc(22px * var(--mfd-ui-scale));
  flex-basis:calc(22px * var(--mfd-ui-scale));
}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-mfd-toolbar .sccnc-live-identity strong,
body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-ship-class{
  font-size:clamp(10px,calc(12px * var(--mfd-ui-scale)),19px);
}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-board .sccnc-depot-mfd-bars{
  /* Separate neighboring component buttons/rails; cap the gap on narrow grids. */
  column-gap:clamp(3px,3%,calc(14px * var(--mfd-ui-scale)));
  row-gap:clamp(5px,calc(7px * var(--mfd-ui-scale)),14px);
}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-power-column .sccnc-depot-mfd-column-value{
  font-size:clamp(11px,calc(12px * var(--mfd-ui-scale)),19px);
  min-height:calc(12px * var(--mfd-ui-scale));
}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-depot .sccnc-live-power-column .sccnc-depot-mfd-pips{
  /* The rail and its abbreviation button share the full grid column. */
  width:100%;max-width:none;box-sizing:border-box;
}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-power-column .sccnc-depot-mfd-column-foot{
  min-height:calc(29px * var(--mfd-ui-scale));
  padding:calc(5px * var(--mfd-ui-scale)) 1px!important;
}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-power-column .sccnc-depot-mfd-column-foot strong{
  font-size:clamp(9px,calc(11px * var(--mfd-ui-scale)),18px);
}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-annunciator{
  height:calc(clamp(48px,8vmin,66px) * var(--mfd-ui-scale));
  font-size:clamp(10px,calc(13px * var(--mfd-ui-scale)),21px);
}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-flight-action{
  min-height:calc(110px * var(--mfd-ui-scale));
  padding:calc(7px * var(--mfd-ui-scale)) calc(6px * var(--mfd-ui-scale));
  gap:calc(4px * var(--mfd-ui-scale));
}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-flight-label{
  font-size:clamp(10px,calc(13px * var(--mfd-ui-scale)),21px);
}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-switch-track,
body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-flight-action.is-momentary .sccnc-live-call-plate{
  width:min(100%,calc(190px * var(--mfd-ui-scale)));
  height:calc(54px * var(--mfd-ui-scale));
}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-switch-track::before{
  top:calc(18px * var(--mfd-ui-scale));height:calc(9px * var(--mfd-ui-scale));
}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-switch-lever{
  top:calc(5px * var(--mfd-ui-scale));height:calc(35px * var(--mfd-ui-scale));
}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-switch-stop{
  font-size:clamp(9px,calc(10px * var(--mfd-ui-scale)),16px);
  bottom:calc(3px * var(--mfd-ui-scale));
}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-mfd-sidebar{
  padding:calc(6px * var(--mfd-ui-scale)) calc(4px * var(--mfd-ui-scale));
  gap:calc(8px * var(--mfd-ui-scale));
  max-height:var(--mfd-height-limit,100vw);
  overflow-y:auto;overscroll-behavior-y:contain;
}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-mfd-status{
  min-height:calc(60px * var(--mfd-ui-scale));
  font-size:clamp(10px,calc(12px * var(--mfd-ui-scale)),18px);
}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell #sccnc-mfd-fullscreen{
  height:calc(66px * var(--mfd-ui-scale));
}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell #sccnc-mfd-fullscreen svg{
  width:calc(34px * var(--mfd-ui-scale));height:calc(34px * var(--mfd-ui-scale));
}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-wake-state{
  width:calc(40px * var(--mfd-ui-scale));height:calc(40px * var(--mfd-ui-scale));
  font-size:calc(21px * var(--mfd-ui-scale));
}
body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-mfd-sidebar .sccnc-depot-mfd-counter{
  font-size:clamp(10px,calc(11px * var(--mfd-ui-scale)),16px);
}
@media(max-width:620px){
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell{grid-template-columns:minmax(0,1fr) calc(61px * var(--mfd-ui-scale))}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-mfd-toolbar{height:calc(27px * var(--mfd-ui-scale))}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-annunciator{height:calc(50px * var(--mfd-ui-scale))}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-flight-action{min-height:calc(96px * var(--mfd-ui-scale))}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-switch-track,
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-flight-action.is-momentary .sccnc-live-call-plate{height:calc(47px * var(--mfd-ui-scale))}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell #sccnc-mfd-fullscreen{height:calc(60px * var(--mfd-ui-scale))}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-mfd-status{min-height:calc(54px * var(--mfd-ui-scale))}
}
@media(orientation:landscape){
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-annunciator{height:calc(clamp(44px,7.5vmin,60px) * var(--mfd-ui-scale))}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-flight-action{min-height:calc(96px * var(--mfd-ui-scale))}
}
@media(max-height:440px) and (orientation:landscape){
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-mfd-toolbar{height:calc(24px * var(--mfd-ui-scale))}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-annunciator{height:calc(26px * var(--mfd-ui-scale))}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-flight-action{min-height:calc(59px * var(--mfd-ui-scale))}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-switch-track,
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-flight-action.is-momentary .sccnc-live-call-plate{height:calc(33px * var(--mfd-ui-scale))}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-switch-track::before{top:calc(10px * var(--mfd-ui-scale))}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-switch-lever{top:calc(2px * var(--mfd-ui-scale));height:calc(19px * var(--mfd-ui-scale))}
}
@media(max-width:359px) and (max-height:600px) and (orientation:portrait){
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-flight-action{min-height:calc(85px * var(--mfd-ui-scale))}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-annunciator{height:calc(43px * var(--mfd-ui-scale))}
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-switch-track,
  body.sccnc-live-page-mfd .sccnc-live-mfd-shell .sccnc-live-flight-action.is-momentary .sccnc-live-call-plate{height:calc(41px * var(--mfd-ui-scale))}
}
