/* Ship Depot follows Fleet's dark panels, borders and typography. */
.sccnc-depot{max-width:1600px;margin:0 auto;color:#e9f7ff;position:relative}
.sccnc-depot[hidden],.sccnc-depot [hidden]{display:none!important}
.sccnc-depot .sccnc-card{background:linear-gradient(145deg,rgba(8,30,48,.98),rgba(4,18,31,.98));border:1px solid rgba(92,190,255,.22);border-radius:16px;padding:19px;color:#e9f7ff;box-shadow:0 12px 34px rgba(0,0,0,.19);margin:0;min-width:0}
.sccnc-depot .sccnc-card h1,.sccnc-depot .sccnc-card h2,.sccnc-depot .sccnc-card h3{margin:0;color:#f2fbff}
.sccnc-depot h2{font-size:20px}.sccnc-depot h3{font-size:15px}
.sccnc-depot-heading{display:grid;grid-template-columns:minmax(200px,1fr) minmax(280px,1.4fr) minmax(135px,.55fr);gap:20px;align-items:start;margin-bottom:16px!important}
.sccnc-depot-heading h1{font-size:29px;letter-spacing:-.035em}.sccnc-depot-heading p{margin:5px 0 0;color:#a8d2e8;font-size:13px}
.sccnc-depot-version{text-align:right;display:grid;gap:6px;color:#9cbdd0;font-size:12px}.sccnc-depot-version strong{color:#9edbff;font-size:13px;overflow-wrap:anywhere}
.sccnc-depot-search{position:relative;z-index:8}
.sccnc-depot-search input,.sccnc-depot-modal-dialog input{width:100%;min-height:42px;background:rgba(0,10,20,.74);border:1px solid rgba(99,192,244,.3);border-radius:10px;padding:9px 12px;color:#eaf9ff;box-sizing:border-box;font:inherit}
.sccnc-depot-search input:focus,.sccnc-depot-modal-dialog input:focus{outline:2px solid rgba(54,174,254,.55);outline-offset:1px}
.sccnc-depot-results{position:absolute;z-index:20;top:46px;left:0;right:0;max-height:330px;overflow:auto;border:1px solid rgba(98,194,255,.35);border-radius:10px;background:#071d30;box-shadow:0 16px 32px rgba(0,0,0,.48)}
.sccnc-depot-result{display:grid;width:100%;text-align:left;border:0;border-bottom:1px solid rgba(98,194,255,.1);padding:10px 12px;color:#eaf7ff;background:transparent;cursor:pointer;gap:3px}
.sccnc-depot-result:hover,.sccnc-depot-result:focus-visible{background:rgba(75,174,247,.18);outline:0}.sccnc-depot-result small{color:#99bbd1;font-size:11px}
.sccnc-depot-result-empty{padding:13px;color:#a7cfe5}
.sccnc-depot-scopes,.sccnc-depot-modes{display:flex;flex-wrap:wrap;gap:4px;margin-top:9px}
.sccnc-depot-scope,.sccnc-depot-mode{background:rgba(70,144,190,.09);color:#a5c9dc;border:1px solid rgba(99,192,244,.19);border-radius:8px;padding:6px 10px;font-size:12px;font-weight:600;cursor:pointer}
.sccnc-depot-scope.is-active,.sccnc-depot-mode.is-active{color:#fff;background:rgba(43,155,233,.27);border-color:rgba(101,198,255,.62)}
.sccnc-depot-scope:disabled{opacity:.4;cursor:not-allowed}.sccnc-depot-message{margin-bottom:16px!important;color:#a7cde0!important}.sccnc-depot-message.is-error{color:#ffb6b1!important;border-color:#af5360!important}
.sccnc-depot-body{display:grid;gap:14px}.sccnc-depot-row{display:grid;grid-template-columns:minmax(0,39fr) minmax(0,61fr);gap:14px;align-items:start}.sccnc-depot-bottom{align-items:start}
.sccnc-depot-ship-image{display:block;width:100%;max-height:310px;object-fit:contain;margin-top:14px;border-radius:12px;background:rgba(1,12,22,.5)}
.sccnc-depot-ship-placeholder{display:grid;place-items:center;font-size:100px;min-height:190px;margin:12px 0;color:#3885ad;background:radial-gradient(ellipse at center,rgba(20,92,139,.20),transparent 70%)}
.sccnc-depot-pair{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid rgba(99,192,244,.12);padding:10px 0;font-size:13px}
.sccnc-depot-pair span{color:#a0c1d5}.sccnc-depot-pair strong{color:#ecfaff;text-align:right}
.sccnc-depot-ship-actions{display:flex;gap:8px;margin-top:15px;flex-wrap:wrap}
.sccnc-depot-mfd-summary{display:flex;gap:14px;margin:15px 0;flex-wrap:wrap}.sccnc-depot-mfd-summary .sccnc-depot-metric{flex:1 1 130px}
.sccnc-depot-mfd-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(76px,1fr));gap:8px;margin:14px 0;align-items:stretch}
.sccnc-depot-mfd-column{display:flex;align-items:center;flex-direction:column;border:1px solid rgba(76,173,235,.21);background:linear-gradient(180deg,rgba(57,145,193,.09),rgba(2,16,27,.5));border-radius:10px;padding:10px 4px;min-width:0;gap:8px}
.sccnc-depot-mfd-label{color:#a8d1e7;font-size:11px;line-height:1.2;text-align:center;word-break:break-word;min-height:28px;display:grid;place-items:center}
.sccnc-depot-mfd-pips{display:flex;flex-direction:column;justify-content:flex-end;align-items:stretch;gap:4px;min-height:132px;width:min(100%,43px)}
.sccnc-depot-pip{display:block;width:100%;height:13px;border-radius:2px;border:1px solid rgba(82,182,240,.32);background:rgba(50,116,151,.14);cursor:pointer;transition:background .13s,border-color .13s}
.sccnc-depot-pip.is-on{background:linear-gradient(90deg,#46c7f6,#60d9e1);border-color:#84edff;box-shadow:0 0 6px rgba(54,191,239,.23)}
.sccnc-depot-pip:hover:not(:disabled),.sccnc-depot-pip:focus-visible{outline:2px solid #b0e8ff;outline-offset:2px}
.sccnc-depot-pip:disabled{cursor:not-allowed;opacity:.42}
.sccnc-depot-mfd-count{color:#d5f3ff;font-size:12px;font-variant-numeric:tabular-nums}.sccnc-depot-caveat{color:#9abfd2;font-size:12px;line-height:1.5;margin:12px 0 0}
.sccnc-depot-component-group{margin-top:14px;border:1px solid rgba(87,177,238,.18);border-radius:11px;overflow:hidden}
.sccnc-depot-component-group h3{padding:11px 13px;background:rgba(69,144,191,.11);border-bottom:1px solid rgba(87,177,238,.14);font-size:13px}
.sccnc-depot-component{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid rgba(87,177,238,.12)}.sccnc-depot-component:last-child{border-bottom:0}
.sccnc-depot-component-info{min-width:0;display:grid;gap:3px}.sccnc-depot-component-info strong{font-size:13px;overflow-wrap:anywhere}.sccnc-depot-component-info small{font-size:11px;color:#9bbfd4;overflow-wrap:anywhere}
.sccnc-depot-edit{flex:0 0 auto;border:1px solid rgba(102,194,246,.3);border-radius:8px;background:rgba(61,156,222,.13);color:#c8edff;cursor:pointer;font-size:18px;width:34px;height:34px}
.sccnc-depot-edit:hover,.sccnc-depot-edit:focus-visible{background:rgba(62,159,232,.31);outline:1px solid #78caef}
.sccnc-depot-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.sccnc-depot-stat{display:grid;align-content:start;gap:13px}.sccnc-depot-damage{grid-column:1/-1}
.sccnc-depot-damage-numbers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.sccnc-depot-metric{border:1px solid rgba(91,178,232,.14);background:rgba(255,255,255,.025);border-radius:10px;padding:12px 14px;min-width:0;display:grid;gap:4px}
.sccnc-depot-metric span{font-size:12px;color:#9ebed1}.sccnc-depot-metric strong{font-size:23px;letter-spacing:-.03em;color:#edfbff;word-break:break-word;font-variant-numeric:tabular-nums}
.sccnc-depot-modal{position:fixed;inset:0;z-index:100001;display:grid;place-items:center;padding:20px;box-sizing:border-box}.sccnc-depot-modal-scrim{position:absolute;inset:0;background:rgba(0,8,16,.8)}
.sccnc-depot-modal-dialog{position:relative;width:min(630px,100%);max-height:min(85vh,800px);display:flex;flex-direction:column;gap:13px;box-shadow:0 26px 80px rgba(0,0,0,.6)!important}
.sccnc-depot-modal-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.sccnc-depot-modal-list{overflow:auto;min-height:70px;padding:2px;display:grid;align-content:start;gap:5px}
.sccnc-depot-option{display:grid;text-align:left;gap:4px;width:100%;padding:11px 12px;background:rgba(60,148,194,.06);border:1px solid rgba(99,192,244,.16);border-radius:9px;color:#e6f8ff;cursor:pointer}
.sccnc-depot-option small{color:#a2c9dc}.sccnc-depot-option:hover,.sccnc-depot-option:focus-visible,.sccnc-depot-option.is-active{border-color:#6cbaf1;background:rgba(65,153,221,.2)}
@media(max-width:1200px){.sccnc-depot-heading{grid-template-columns:minmax(140px,.8fr) minmax(250px,1.5fr)}.sccnc-depot-version{grid-column:1/-1;text-align:left;display:flex;gap:10px}.sccnc-depot-row{grid-template-columns:minmax(0,42fr) minmax(0,58fr)}.sccnc-depot-stats{grid-template-columns:1fr}.sccnc-depot-mfd-grid{grid-template-columns:repeat(auto-fit,minmax(63px,1fr))}}
@media(max-width:760px){.sccnc-depot-heading,.sccnc-depot-row{grid-template-columns:minmax(0,1fr)}.sccnc-depot-heading{gap:13px}.sccnc-depot-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.sccnc-depot-ship-image{max-height:240px}.sccnc-depot-mfd-grid{grid-template-columns:repeat(auto-fit,minmax(64px,1fr))}}
@media(max-width:520px){.sccnc-depot .sccnc-card{padding:14px}.sccnc-depot-stats{grid-template-columns:1fr}.sccnc-depot-damage-numbers{gap:7px}.sccnc-depot-metric{padding:10px}.sccnc-depot-metric strong{font-size:20px}.sccnc-depot-mfd-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sccnc-depot-modal{padding:9px}.sccnc-depot-modal-top h2{font-size:17px}.sccnc-depot-scopes{gap:3px}.sccnc-depot-scope{padding:6px 7px}}
.sccnc-depot-power-error{color:#ffb7aa;background:rgba(206,64,64,.12);border:1px solid rgba(244,98,91,.32);border-radius:8px;font-size:12px;padding:9px 11px}
.sccnc-depot-mfd-grid:not(.sccnc-depot-mfd-support){grid-template-columns:repeat(3,minmax(0,1fr));max-width:440px;margin-left:auto;margin-right:auto}
.sccnc-depot-mfd-extras{border-top:1px solid rgba(98,194,255,.15);padding-top:10px;margin-top:14px}.sccnc-depot-mfd-extras summary{color:#a3cbe0;font-size:12px;font-weight:600;cursor:pointer;padding:4px 0}.sccnc-depot-mfd-support{grid-template-columns:repeat(auto-fit,minmax(72px,1fr))}

/* Fleet-identical ship card and equipment rows; Ship Depot adds only selectors. */
.sccnc-depot .sccnc-depot-ship.sccnc-fleet-card{padding:0!important;overflow:hidden;background:linear-gradient(180deg,rgba(10,36,54,.82),rgba(4,20,33,.9))}
.sccnc-depot-ship .sccnc-fleet-card-image{aspect-ratio:16/8.2;max-height:360px;margin:0}
.sccnc-depot-ship .sccnc-fleet-card-image img{object-fit:cover}
.sccnc-depot-ship .sccnc-fleet-card-title h3{font-size:17px}
.sccnc-depot-ship .sccnc-fleet-card-body{padding:14px}
.sccnc-depot-ship .sccnc-fleet-meta{margin-top:9px;padding-top:8px}
.sccnc-depot .sccnc-depot-components{padding:16px!important}
.sccnc-depot-components>h2{margin-bottom:12px!important}
.sccnc-depot .sccnc-depot-equipment-list{max-height:none;overflow:visible;scrollbar-gutter:auto;grid-template-columns:repeat(2,minmax(0,1fr))}
.sccnc-depot-equipment-item{align-items:start;min-height:66px;gap:6px}
.sccnc-depot-equipment-item .sccnc-fleet-equipment-detail{padding-top:5px}
.sccnc-depot-equipment-item .sccnc-fleet-equipment-detail strong{white-space:normal;overflow-wrap:anywhere;line-height:1.24}
.sccnc-depot-equipment-item .sccnc-fleet-equipment-meta{flex-wrap:wrap;overflow:visible!important;line-height:1.2!important;gap:5px}
.sccnc-depot-component-select{display:block;width:100%;max-width:100%;min-height:31px;margin:7px 0 3px;padding:5px 28px 5px 8px;color:#bde3f7;background:#071e2f;border:1px solid rgba(100,191,242,.34);border-radius:7px;cursor:pointer;font-size:11px;text-overflow:ellipsis}
.sccnc-depot-component-select:focus-visible{outline:2px solid #6fcdf6;outline-offset:1px}
.sccnc-depot-component-select:disabled{opacity:.65;cursor:progress}

/* RSI-inspired power MFD: power output, WPN / THR / SHLD scales, system rail. */
.sccnc-depot-panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.sccnc-depot-flight-modes{display:flex;border:1px solid rgba(94,193,236,.36);background:rgba(2,16,28,.68);border-radius:7px;padding:3px;gap:3px}
.sccnc-depot-flight-mode{border:0;border-radius:5px;background:transparent;color:#8bbfd4;padding:7px 16px;min-width:66px;font-size:11px;font-weight:850;letter-spacing:.11em;cursor:pointer}
.sccnc-depot-flight-mode.is-active{background:rgba(73,205,236,.23);box-shadow:inset 0 0 0 1px rgba(108,221,250,.48);color:#e2faff}
.sccnc-depot-power-screen{min-width:0;font-variant-numeric:tabular-nums}
.sccnc-depot-mfd-band{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:1px 3px 9px;border-bottom:1px solid rgba(142,222,245,.21);font-size:11px;letter-spacing:.075em;font-weight:850;color:#b2e1ef}
.sccnc-depot-mfd-signal{color:#86c9e0}
.sccnc-depot-mfd-readout{color:#d1effa}
.sccnc-depot-mfd-display{display:grid;grid-template-columns:minmax(74px,1fr) minmax(0,3.2fr) 48px;gap:12px;padding:14px 0 10px;align-items:stretch;min-width:0}
.sccnc-depot-mfd-output{display:flex;flex-direction:column;justify-content:flex-start;min-width:0;border-right:1px solid rgba(137,217,246,.22);padding-right:9px}
.sccnc-depot-mfd-heading{display:block;font-size:10px;letter-spacing:.11em;text-transform:uppercase;color:#b6e5f2;font-weight:800}
.sccnc-depot-output-number{margin-top:14px;color:#e2f9ff;font-size:24px;line-height:1.1;letter-spacing:-.05em;white-space:nowrap}
.sccnc-depot-mfd-output small{color:#89bfda;margin-top:7px;font-size:10px}
.sccnc-depot-mfd-output-rule{height:1px;background:rgba(119,205,231,.25);margin:12px 0}
.sccnc-depot-mfd-restore{background:rgba(49,124,164,.14);border:1px solid rgba(121,207,242,.25);border-radius:5px;color:#a0d7ec;padding:6px;font-size:10px;font-weight:800;cursor:pointer;line-height:1.3}
.sccnc-depot-mfd-restore:hover{background:rgba(61,163,199,.29)}
.sccnc-depot-mfd-bars{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;min-width:0}
.sccnc-depot .sccnc-depot-mfd-column{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-end;gap:6px;padding:0;background:none;border:0;border-radius:0;min-width:0}
.sccnc-depot-mfd-column-value{text-align:center;color:#e3f5fc;font-size:13px;font-weight:850}
.sccnc-depot .sccnc-depot-mfd-pips{display:flex;flex-direction:column;justify-content:flex-end;gap:2px;min-height:0;width:100%;height:196px}
.sccnc-depot .sccnc-depot-pip{flex:1 1 0;height:auto;min-height:4px;width:100%;max-width:100%;padding:0;border:1px solid rgba(125,190,218,.29);border-radius:2px;background:rgba(81,129,150,.21);transition:background .15s,border-color .15s}
.sccnc-depot .sccnc-depot-pip.is-ghost{background:rgba(44,69,84,.11);border-style:dashed;border-color:rgba(92,146,161,.13);pointer-events:none}
.sccnc-depot .sccnc-depot-pip.is-on{background:linear-gradient(90deg,#73cfe2,#b1ecf4);box-shadow:0 0 5px rgba(110,226,241,.20);border-color:rgba(189,250,255,.8)}
.sccnc-depot .sccnc-depot-pip:disabled:not(.is-on){opacity:.7;cursor:not-allowed}
.sccnc-depot-mfd-column-foot{text-align:center;color:#d6eef8;border-radius:4px;padding:8px 0;background:rgba(103,197,225,.23);font-weight:900;font-size:12px;letter-spacing:.11em}
.sccnc-depot-mfd-column.is-inactive{opacity:.28}
.sccnc-depot-mfd-rail{display:flex;flex-direction:column;gap:5px;align-self:start}
.sccnc-depot-mfd-rail-key{border:1px solid rgba(128,191,223,.25);border-radius:4px;padding:10px 1px;text-align:center;font-weight:850;font-size:10px;color:#a4cbda;background:rgba(24,53,76,.28)}
.sccnc-depot-mfd-rail-key.is-selected{color:#f0fcff;border-color:#60c8eb;background:rgba(59,156,197,.33)}
.sccnc-depot-mfd-secondary{margin-top:8px;border-top:1px solid rgba(123,195,225,.2);padding-top:12px}
.sccnc-depot-mfd-secondary-scales{display:grid;grid-template-columns:repeat(auto-fit,minmax(66px,1fr));gap:12px;padding-top:10px}
.sccnc-depot-mfd-column.is-secondary .sccnc-depot-mfd-pips{height:80px}
.sccnc-depot-mfd-column.is-secondary .sccnc-depot-mfd-column-foot{font-size:9px;letter-spacing:0;overflow-wrap:anywhere;padding:6px 2px}
.sccnc-depot-mfd-column.is-secondary .sccnc-depot-mfd-column-value{font-size:10px}
.sccnc-depot-mfd-switchboard{margin-top:15px;border:1px solid rgba(136,212,240,.17);border-radius:7px;overflow:hidden}
.sccnc-depot-mfd-switchboard-title{display:flex;justify-content:space-between;gap:5px;background:rgba(59,137,175,.13);color:#9ed3e6;font-size:10px;text-transform:uppercase;letter-spacing:.06em;font-weight:800;padding:9px}
.sccnc-depot-mfd-switch-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:240px;overflow:auto;scrollbar-width:thin}
.sccnc-depot-mfd-switch-row{display:flex;align-items:center;justify-content:space-between;min-width:0;gap:7px;padding:6px 9px;border-bottom:1px solid rgba(126,188,218,.12)}
.sccnc-depot-mfd-switch-text{min-width:0;display:grid;gap:2px}
.sccnc-depot-mfd-switch-text strong{color:#cfeef9;font-size:10px;font-weight:700;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.sccnc-depot-mfd-switch-text small{color:#699eb8;font-size:9px}
.sccnc-depot-power-toggle{flex:0 0 auto;width:60px;padding:5px 3px;color:#6ff1c9;font-size:9px;font-weight:850;border:1px solid rgba(81,209,170,.38);border-radius:5px;background:rgba(29,132,104,.13);cursor:pointer}
.sccnc-depot-power-toggle.is-off{color:#f5a194;border-color:rgba(239,145,121,.36);background:rgba(169,65,57,.14)}
.sccnc-depot-power-toggle:focus-visible{outline:2px solid #d2f5ff;outline-offset:2px}
.sccnc-depot-power-screen .sccnc-depot-caveat{margin:12px 0 0;font-size:11px}
@media(max-width:1200px){.sccnc-depot-mfd-display{gap:7px;grid-template-columns:minmax(66px,.9fr) minmax(0,3fr) 40px}.sccnc-depot-output-number{font-size:18px}.sccnc-depot-mfd-bars{gap:5px}}
@media(max-width:760px){.sccnc-depot .sccnc-depot-equipment-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.sccnc-depot .sccnc-depot-equipment-list,.sccnc-depot-mfd-switch-list{grid-template-columns:1fr}.sccnc-depot-mfd-display{grid-template-columns:minmax(59px,.8fr) minmax(0,3fr) 37px;gap:5px}.sccnc-depot-output-number{font-size:14px}.sccnc-depot-mfd-restore{padding:5px 2px;font-size:9px}.sccnc-depot-mfd-rail-key{font-size:9px;padding:8px 1px}.sccnc-depot-mfd-column-foot{font-size:10px}.sccnc-depot-mfd-modes{flex-wrap:wrap}}
.sccnc-depot-missile-choices{margin-top:8px;padding:7px 0 0;border-top:1px solid rgba(105,189,231,.13)}
.sccnc-depot-missile-choice>small{display:block;white-space:normal;color:#87b9d2;font-size:10px}
.sccnc-depot-missile-choice+.sccnc-depot-missile-choice{margin-top:6px;padding-top:6px;border-top:1px solid rgba(105,189,231,.08)}

/* Ship Depot density: use the available workspace, including dashboard embeds. */
.sccnc-depot{container-type:inline-size}
.sccnc-depot .sccnc-card{padding:14px;border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.15)}
.sccnc-depot h2{font-size:17px}
.sccnc-depot-heading{grid-template-columns:minmax(175px,.8fr) minmax(260px,1.35fr) minmax(105px,.45fr);gap:14px;align-items:center;margin-bottom:10px!important}
.sccnc-depot-heading h1{font-size:25px}
.sccnc-depot-heading p{font-size:12px;line-height:1.35}
.sccnc-depot-search input{min-height:36px;padding:6px 10px}
.sccnc-depot-results{top:40px}
.sccnc-depot-scopes{gap:5px;margin-top:6px}
.sccnc-depot-scope{padding:5px 8px;font-size:11px}
.sccnc-depot-version{font-size:11px}
.sccnc-depot-body{gap:10px}
.sccnc-depot-row{grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:10px}
.sccnc-depot-bottom{grid-template-columns:minmax(0,1.48fr) minmax(0,1fr)}

/* Ship identity: shorter image and two-column spec matrix instead of long rows. */
.sccnc-depot-ship .sccnc-fleet-card-image{aspect-ratio:16/6;max-height:210px}
.sccnc-depot-ship .sccnc-fleet-card-image img{object-fit:contain}
.sccnc-depot-ship .sccnc-fleet-card-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 12px;padding:12px}
.sccnc-depot-ship .sccnc-fleet-card-title{grid-column:1/-1;align-items:center;margin-bottom:4px}
.sccnc-depot-ship .sccnc-fleet-card-title h3{font-size:16px}
.sccnc-depot-ship .sccnc-fleet-meta{display:grid;align-content:start;gap:2px;margin:0;padding:6px 3px;border-top:1px solid rgba(116,195,235,.11);font-size:10px;min-width:0}
.sccnc-depot-ship .sccnc-fleet-meta span{line-height:1.2}
.sccnc-depot-ship .sccnc-fleet-meta strong{font-size:11px;text-align:left;white-space:normal;overflow-wrap:anywhere;line-height:1.25}
.sccnc-depot-ship .sccnc-depot-ship-actions{grid-column:1/-1;margin-top:6px}
.sccnc-depot-ship .sccnc-depot-ship-actions .sccnc-button{padding:6px 11px;font-size:11px}

/* Equipment and performance consume space proportionate to their content. */
.sccnc-depot .sccnc-depot-components{padding:12px!important}
.sccnc-depot-components>h2{margin-bottom:9px!important}
.sccnc-depot .sccnc-depot-equipment-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:6px;border:0;background:transparent}
.sccnc-depot .sccnc-depot-equipment-item{grid-template-columns:26px minmax(0,1fr);gap:7px;align-items:start;min-height:55px;padding:7px;border:1px solid rgba(105,189,231,.14)!important;border-radius:8px;background:rgba(61,137,176,.04)}
.sccnc-depot-equipment-item .sccnc-fleet-equipment-icon-wrap{width:26px;height:27px}
.sccnc-depot-equipment-item .sccnc-fleet-equipment-icon{width:22px;height:22px}
.sccnc-depot-equipment-item .sccnc-fleet-equipment-detail{padding-top:0}
.sccnc-depot-equipment-item .sccnc-fleet-equipment-detail strong{font-size:11.5px;line-height:1.25;overflow-wrap:anywhere}
.sccnc-depot-equipment-item .sccnc-fleet-equipment-meta{gap:4px;margin-top:3px!important}
.sccnc-depot-component-select{min-height:29px;margin:5px 0 0;padding:4px 22px 4px 7px;font-size:10.5px}
.sccnc-depot-missile-choices{margin-top:5px;padding-top:5px}
.sccnc-depot-missile-choice+.sccnc-depot-missile-choice{margin-top:4px;padding-top:4px}
.sccnc-depot-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;align-content:start}
.sccnc-depot .sccnc-depot-stat{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:11px;align-content:start}
.sccnc-depot-stat h3{grid-column:1/-1;font-size:13px}
.sccnc-depot-stat .sccnc-depot-metric{padding:7px 9px;gap:3px;border-radius:7px}
.sccnc-depot-stat .sccnc-depot-metric span{font-size:10.5px}
.sccnc-depot-stat .sccnc-depot-metric strong{font-size:17px;line-height:1.15;word-break:normal;overflow-wrap:anywhere}
.sccnc-depot-stat .sccnc-depot-damage-numbers,.sccnc-depot-stat .sccnc-depot-modes{grid-column:1/-1}
.sccnc-depot-stat .sccnc-depot-damage-numbers{gap:7px}
.sccnc-depot-stat .sccnc-depot-modes{margin-top:1px}
.sccnc-depot-stat .sccnc-depot-mode{padding:5px 7px;font-size:11px}
.sccnc-depot .sccnc-depot-damage{grid-column:1/-1}
.sccnc-depot-stat .sccnc-depot-pair{display:grid;gap:2px;padding:5px 0;font-size:10.5px}
.sccnc-depot-stat .sccnc-depot-pair strong{text-align:left}

/* Every active component category has its own fully interactive MFD scale. */
.sccnc-depot-panel-head{gap:8px}
.sccnc-depot-flight-mode{padding:5px 13px;min-width:58px}
.sccnc-depot-mfd-band{font-size:10px;padding:0 2px 6px}
.sccnc-depot-mfd-display{grid-template-columns:minmax(95px,112px) minmax(0,1fr);gap:12px;padding:9px 0 3px}
.sccnc-depot-mfd-output{padding-right:9px}
.sccnc-depot-mfd-heading{font-size:9.5px}
.sccnc-depot-output-number{margin-top:8px;font-size:19px;letter-spacing:-.035em}
.sccnc-depot-mfd-output small{margin-top:5px;font-size:9.5px}
.sccnc-depot-mfd-output-rule{margin:10px 0}
.sccnc-depot-mfd-restore{padding:6px 4px;font-size:9px}
.sccnc-depot-mfd-bars{grid-template-columns:repeat(auto-fit,minmax(64px,1fr));gap:7px;align-items:end}
.sccnc-depot .sccnc-depot-mfd-column{gap:5px}
.sccnc-depot-mfd-column-value{font-size:11px;line-height:1.2;white-space:nowrap;font-variant-numeric:tabular-nums}
.sccnc-depot .sccnc-depot-mfd-pips{height:132px;gap:1px}
.sccnc-depot .sccnc-depot-pip{flex:0 1 10px;min-height:2px}
.sccnc-depot-mfd-column-foot{display:grid;place-items:center;min-height:29px;padding:4px 2px;font-size:10px;line-height:1.2;letter-spacing:0;overflow-wrap:anywhere}
.sccnc-depot-mfd-switchboard{margin-top:9px}
.sccnc-depot-mfd-switchboard-title{padding:7px 8px}
.sccnc-depot-mfd-switch-list{grid-template-columns:repeat(3,minmax(0,1fr));max-height:164px}
.sccnc-depot-mfd-switch-row{padding:5px 7px;gap:5px}
.sccnc-depot-mfd-switch-text strong{font-size:10px}
.sccnc-depot-mfd-switch-text small{font-size:9px}
.sccnc-depot-power-toggle{width:53px;min-height:27px}
.sccnc-depot-power-screen .sccnc-depot-caveat{font-size:10px;line-height:1.4;margin-top:8px}

/* Container-based breakpoints also handle narrow dashboard panels on wide monitors. */
@container (max-width:1100px){
    .sccnc-depot-heading{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)}
    .sccnc-depot-version{grid-column:1/-1;display:flex;gap:8px;text-align:left}
    .sccnc-depot-row,.sccnc-depot-bottom{grid-template-columns:minmax(0,1fr)}
    .sccnc-depot-ship .sccnc-fleet-card-image{aspect-ratio:16/4.6;max-height:200px}
    .sccnc-depot-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container (max-width:700px){
    .sccnc-depot-heading{grid-template-columns:minmax(0,1fr);gap:10px}
    .sccnc-depot-version{grid-column:auto}
    .sccnc-depot .sccnc-depot-equipment-list{grid-template-columns:repeat(2,minmax(0,1fr))}
    .sccnc-depot-mfd-switch-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container (max-width:540px){
    .sccnc-depot .sccnc-depot-equipment-list{grid-template-columns:minmax(0,1fr)}
    .sccnc-depot-mfd-display{grid-template-columns:minmax(0,1fr);gap:9px}
    .sccnc-depot-mfd-output{display:flex;align-items:center;gap:8px;padding:0 0 8px;border-right:0;border-bottom:1px solid rgba(137,217,246,.22);flex-wrap:wrap}
    .sccnc-depot-output-number{margin:0 0 0 auto;font-size:18px}
    .sccnc-depot-mfd-output small,.sccnc-depot-mfd-output-rule{display:none}
    .sccnc-depot-mfd-restore{margin-left:0}
    .sccnc-depot-mfd-bars{grid-template-columns:repeat(auto-fit,minmax(58px,1fr));gap:6px}
    .sccnc-depot .sccnc-depot-mfd-pips{height:108px}
    .sccnc-depot-stats{grid-template-columns:minmax(0,1fr)}
    .sccnc-depot-ship .sccnc-fleet-card-image{aspect-ratio:16/7}
}
@container (max-width:370px){
    .sccnc-depot-ship .sccnc-fleet-card-body{grid-template-columns:minmax(0,1fr)}
    .sccnc-depot-mfd-switch-list{grid-template-columns:minmax(0,1fr)}
}

/* Exact per-loadout MFD: compact scales, individual component power switches. */
.sccnc-depot-mfd-display{grid-template-columns:minmax(112px,140px) minmax(0,1fr);gap:10px}
.sccnc-depot-mfd-bars{grid-template-columns:repeat(auto-fit,minmax(59px,1fr));gap:6px;align-items:stretch}
.sccnc-depot .sccnc-depot-mfd-column{align-items:center;justify-content:end;gap:4px;padding:3px 2px 0;min-width:0}
.sccnc-depot-mfd-column-value{font-size:10px;line-height:1.1}
.sccnc-depot .sccnc-depot-mfd-pips{height:100px;gap:2px;width:100%;max-width:56px}
.sccnc-depot .sccnc-depot-pip{min-height:3px}
.sccnc-depot-mfd-component-toggle{width:31px;height:30px;display:grid;place-items:center;padding:4px;border:1px solid rgba(83,225,176,.42);background:rgba(21,139,105,.13);border-radius:6px;color:#8af5d0;cursor:pointer}
.sccnc-depot-mfd-component-toggle .sccnc-fleet-equipment-icon-wrap,.sccnc-depot-generator .sccnc-fleet-equipment-icon-wrap{width:23px;height:23px;display:grid;place-items:center}
.sccnc-depot-mfd-component-toggle .sccnc-fleet-equipment-icon,.sccnc-depot-generator .sccnc-fleet-equipment-icon{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
.sccnc-depot-mfd-component-toggle.is-off,.sccnc-depot-generator.is-off{border-color:rgba(236,133,129,.5);background:rgba(161,52,50,.16);color:#ed9996}
.sccnc-depot-mfd-component-toggle.is-off .sccnc-fleet-equipment-icon-wrap:after{content:'';position:absolute;width:26px;height:1.5px;background:currentColor;transform:rotate(-42deg)}
.sccnc-depot-mfd-component-toggle .sccnc-fleet-equipment-icon-wrap{position:relative}
.sccnc-depot-mfd-column.is-offline .sccnc-depot-mfd-pips{opacity:.32}
.sccnc-depot-mfd-component-toggle:focus-visible,.sccnc-depot-generator:focus-visible{outline:2px solid #c9f6ff;outline-offset:2px}
.sccnc-depot-mfd-column-foot{display:block;max-width:100%;min-height:0;padding:3px 2px!important;font-size:9px;letter-spacing:0;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sccnc-depot-mfd-generators{display:grid;gap:4px;margin-top:9px;padding-top:7px;border-top:1px solid rgba(120,205,231,.19)}
.sccnc-depot-generator{display:flex;align-items:center;gap:5px;min-width:0;padding:4px 5px;border-radius:5px;background:rgba(21,139,105,.13);border:1px solid rgba(83,225,176,.35);color:#c8f4e6;font-size:10px;text-align:left;cursor:pointer}
.sccnc-depot-generator span:last-child{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sccnc-depot-mfd-band{padding-bottom:5px}
.sccnc-depot-mfd-display{padding:7px 0 2px}
.sccnc-depot-output-number{margin-top:6px;font-size:18px}
.sccnc-depot-mfd-output small{margin-top:3px}
.sccnc-depot-mfd-restore{margin-top:9px;padding:5px 4px}
.sccnc-depot-power-screen .sccnc-depot-caveat{margin-top:6px;font-size:9px;line-height:1.3}

/* The installed component is the selected value; the right chevron opens only compatible parts. */
.sccnc-depot-component-picker{position:relative;margin-top:5px;min-width:0}
.sccnc-depot-component-picker.is-open{z-index:21}
.sccnc-depot .sccnc-depot-equipment-item{position:relative}
.sccnc-depot .sccnc-depot-equipment-item:has(.sccnc-depot-component-picker.is-open){z-index:25}
.sccnc-depot-component-trigger{display:flex;align-items:center;justify-content:space-between;gap:7px;width:100%;min-height:30px;padding:5px 7px 5px 9px;background:#08273a;border:1px solid rgba(98,192,243,.33);border-radius:6px;color:#d1effe;text-align:left;cursor:pointer;font-size:11px;font-weight:700}
.sccnc-depot-component-trigger:hover,.sccnc-depot-component-trigger[aria-expanded="true"]{background:#12394f;border-color:#65b9dc}
.sccnc-depot-component-trigger:focus-visible{outline:2px solid #75d4f4;outline-offset:1px}
.sccnc-depot-component-selected{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.sccnc-depot-component-trigger svg{flex:0 0 14px;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round;stroke-linecap:round;transition:transform .15s}
.sccnc-depot-component-trigger[aria-expanded="true"] svg{transform:rotate(180deg)}
.sccnc-depot-component-popover{position:absolute;z-index:40;right:0;top:calc(100% + 3px);width:min(355px,calc(100vw - 36px));max-width:calc(100vw - 36px);background:#071f30;border:1px solid #427a9b;border-radius:8px;padding:7px;box-shadow:0 15px 35px rgba(0,0,0,.65)}
.sccnc-depot-component-popover[hidden]{display:none!important}
.sccnc-depot-component-search{display:block;width:100%;min-height:32px;margin:0 0 6px;padding:5px 8px;border:1px solid rgba(111,194,235,.35);border-radius:5px;background:#0a3044;color:#e6f8ff;font-size:12px}
.sccnc-depot-component-options{max-height:235px;overflow-y:auto;overscroll-behavior:contain;display:grid;gap:3px;scrollbar-width:thin}
.sccnc-depot-component-option{display:grid;gap:2px;padding:7px 9px;background:transparent;border:1px solid transparent;border-radius:5px;color:#d8f1fd;text-align:left;cursor:pointer}
.sccnc-depot-component-option span{font-size:11.5px;line-height:1.2;font-weight:700}
.sccnc-depot-component-option small{font-size:10px;color:#8dbbd1}
.sccnc-depot-component-option:hover,.sccnc-depot-component-option:focus-visible{background:rgba(67,153,205,.2);border-color:rgba(98,192,243,.35)}
.sccnc-depot-component-option.is-active{background:rgba(63,164,176,.14);border-color:rgba(95,222,189,.4)}
.sccnc-depot-component-loading{font-size:11px;padding:10px;color:#a0c8df}
@container (max-width:540px){
  .sccnc-depot-mfd-display{grid-template-columns:minmax(0,1fr);gap:7px}
  .sccnc-depot-mfd-output{flex-direction:row;align-items:center;gap:8px;flex-wrap:wrap}
  .sccnc-depot-mfd-generators{margin:0;padding:0;border:0;grid-auto-flow:column;grid-auto-columns:minmax(38px,max-content)}
  .sccnc-depot-mfd-bars{grid-template-columns:repeat(auto-fit,minmax(54px,1fr));gap:5px}
  .sccnc-depot .sccnc-depot-mfd-pips{height:92px}
}

/* Make better use of Full HD desktops without adding horizontal overflow. */
.sccnc-depot{max-width:1760px}
.sccnc-depot .sccnc-depot-components:has(.sccnc-depot-component-picker.is-open){position:relative;z-index:20}

.sccnc-depot-mfd-column-foot{display:grid;justify-items:center;gap:2px;width:100%;line-height:1.05}
.sccnc-depot-mfd-column-foot strong{font-size:9px;letter-spacing:.01em}
.sccnc-depot-mfd-column-foot small{display:block;width:100%;font-size:8px;font-weight:500;color:#98cce2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Cockpit MFD layout: all power rails are visible together, as one row.
   WeaponGun is one shared rail (pilot, turret and PDC guns); coolers and
   other individually powered components retain their own rails. */
.sccnc-depot-mfd-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 2px 11px;border-bottom:1px solid rgba(142,222,245,.19)}
.sccnc-depot-mfd-header h2{font-size:15px!important;font-weight:750}
.sccnc-depot-mfd-counter{white-space:nowrap;font-size:12px;color:#97c7df;font-variant-numeric:tabular-nums}
.sccnc-depot-mfd-counter strong{font-size:21px;color:#a9ecff}
.sccnc-depot-mfd-scroller{overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin;margin:9px -3px 0;padding:2px 3px 8px}
.sccnc-depot-mfd-bars{--mfd-bar-width:54px;display:grid;grid-template-columns:repeat(var(--mfd-count),var(--mfd-bar-width));gap:calc(var(--mfd-bar-width) / 2);width:max-content;min-width:100%;justify-content:center;align-items:end}
.sccnc-depot .sccnc-depot-mfd-column{display:flex;flex-direction:column;align-items:center;justify-content:end;gap:4px;padding:0;min-width:0;position:relative}
.sccnc-depot-mfd-column-value{font-size:11px;line-height:1.15;min-height:13px;font-weight:850;color:#d7f9ff}
.sccnc-depot .sccnc-depot-mfd-pips{height:128px;display:flex;flex-direction:column;justify-content:flex-end;gap:2px;width:100%;max-width:var(--mfd-bar-width);min-height:0;flex:0 0 128px}
.sccnc-depot .sccnc-depot-pip{display:block;flex:1 1 auto;max-height:15px;min-height:3px;border:1px solid rgba(125,190,218,.29);border-radius:3px;width:100%;padding:0}
.sccnc-depot .sccnc-depot-pip.is-on{background:linear-gradient(90deg,#73cfe2,#b1ecf4);border-color:rgba(189,250,255,.75)}
.sccnc-depot-mfd-pip-placeholder{display:grid;place-items:center;height:14px;background:rgba(81,129,150,.21);border-radius:3px;color:#6d9fbc;font-size:11px}
.sccnc-depot-mfd-component-toggle{border:0;background:transparent!important;color:#84d7ef;width:100%;max-width:54px;min-height:30px;border-radius:5px;padding:3px;display:grid;place-items:center;cursor:pointer}
.sccnc-depot-mfd-component-toggle .sccnc-fleet-equipment-icon-wrap{display:grid;place-items:center;width:25px;height:25px}
.sccnc-depot-mfd-component-toggle .sccnc-fleet-equipment-icon{width:22px;height:22px}
.sccnc-depot-mfd-component-toggle.is-off,.sccnc-depot-mfd-component-toggle.is-blocked{color:#527c91}
.sccnc-depot-mfd-component-toggle:disabled{cursor:not-allowed}
.sccnc-depot .sccnc-depot-mfd-column.is-offline .sccnc-depot-mfd-pips,.sccnc-depot .sccnc-depot-mfd-column.is-mode-blocked .sccnc-depot-mfd-pips{opacity:.48}
.sccnc-depot .sccnc-depot-mfd-column-foot{display:block;padding:0!important;background:none;border:0;color:#b9e0f3;text-align:center;width:100%;line-height:1.2;min-height:24px;font-size:9px;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sccnc-depot-mfd-column-foot strong{font-size:9px}
.sccnc-depot-mfd-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px;padding-top:12px;border-top:1px solid rgba(142,222,245,.2)}
.sccnc-depot-mfd-footer .sccnc-depot-flight-modes{display:flex;min-width:0;gap:3px}
.sccnc-depot-mfd-footer .sccnc-depot-flight-mode{padding:7px 11px;font-size:10px;letter-spacing:0;text-transform:uppercase;min-width:0;white-space:nowrap}
.sccnc-depot-mfd-footer .sccnc-depot-mfd-restore{margin:0;padding:8px 12px;min-height:34px;font-size:11px;white-space:nowrap;color:#d9f5ff;border-color:rgba(113,216,243,.55);background:rgba(49,124,164,.26)}
.sccnc-depot-equipment-power{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border:1px solid rgba(83,225,176,.4);border-radius:6px;background:rgba(21,139,105,.12);color:#8af5d0;cursor:pointer}
.sccnc-depot-equipment-power.is-off{color:#ed9996;border-color:rgba(236,133,129,.5);background:rgba(161,52,50,.16)}
.sccnc-depot-equipment-power .sccnc-fleet-equipment-icon-wrap{width:21px;height:21px;display:grid;place-items:center}
.sccnc-depot-equipment-power .sccnc-fleet-equipment-icon{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.7}
.sccnc-depot-equipment-power:focus-visible,.sccnc-depot-mfd-footer .sccnc-depot-flight-mode:focus-visible,.sccnc-depot-mfd-footer .sccnc-depot-mfd-restore:focus-visible{outline:2px solid #c9f6ff;outline-offset:2px}
@container (max-width:540px){
    .sccnc-depot-mfd-header{padding-bottom:8px}
    .sccnc-depot-mfd-counter strong{font-size:18px}
    .sccnc-depot .sccnc-depot-mfd-pips{height:103px;flex-basis:103px}
    .sccnc-depot-mfd-footer{gap:5px}
    .sccnc-depot-mfd-footer .sccnc-depot-flight-mode{padding:7px 8px;font-size:9px}
    .sccnc-depot-mfd-footer .sccnc-depot-mfd-restore{padding:6px 9px}
}

.sccnc-depot .sccnc-depot-mfd-pips{position:relative}
.sccnc-depot-mfd-minimum{position:absolute;bottom:3px;left:0;right:0;text-align:center;font-size:10px;font-weight:700;line-height:1;color:#588ea8;pointer-events:none;z-index:1}

/* Rail readouts follow the cockpit scale: the current allocation is written
   inside its top powered segment, not on a separate row above every rail. */
.sccnc-depot .sccnc-depot-pip{position:relative;overflow:visible}
.sccnc-depot .sccnc-depot-pip-amount{position:absolute;inset:-1px 0 auto;display:grid;place-items:center;min-height:100%;font-size:11px;font-weight:850;line-height:1;color:#052431;pointer-events:none}
.sccnc-depot .sccnc-depot-pip.is-minimum .sccnc-depot-pip-minimum{position:absolute;inset:0;display:grid;place-items:center;font-size:10px;font-weight:700;line-height:1;color:#668eaa;pointer-events:none}
.sccnc-depot .sccnc-depot-pip:focus-visible{outline:2px solid #b8efff;outline-offset:1px;z-index:2}
.sccnc-depot .sccnc-depot-mfd-scroller{padding-top:7px}

/* PIP minimums are a single component-specific control, sized to the same
   PIP units as separate steps. Keep SCCNC's existing colors and geometry. */
.sccnc-depot .sccnc-depot-mfd-pips .sccnc-depot-pip{
    flex:0 var(--pip-units,1) calc(var(--pip-units,1) * 15px + (var(--pip-units,1) - 1) * 2px);
    max-height:calc(var(--pip-units,1) * 15px + (var(--pip-units,1) - 1) * 2px);
}
.sccnc-depot .sccnc-depot-pip.is-grouped.is-on .sccnc-depot-pip-amount{
    min-height:15px;height:15px;
}
