/*
 * Canonical Hangar + shared subpage command layout authority.
 *
 * SkyfallUiPresentationPolicy owns viewport measurement/classification and
 * publishes the canonical responsive scale. This stylesheet only owns authored
 * Hangar/shared-command geometry. Standalone Season geometry lives in season-result-presentation.css.
 * Runtime presentation clients may create/reparent DOM but must not inject
 * layout styles or write inline geometry.
 */
:root[data-sf-viewport-policy="unified"]{
  --sf-subpage-fit:var(--sf-responsive-scale,1);
  --sf-subpage-ui:var(--sf-responsive-scale,1);
  --sf-subpage-text:var(--sf-responsive-scale,1);
  --sf-subpage-space:var(--sf-responsive-scale,1);
  --sf-subpage-command-h:calc(72px * var(--sf-subpage-ui));
  --sf-subpage-control-h:calc(38px * var(--sf-subpage-ui));
  --sf-subpage-close:calc(60px * var(--sf-subpage-ui));
  --sf-subpage-command-margin-y:calc(8px * var(--sf-subpage-ui));
  --sf-subpage-command-margin-x:calc(14px * var(--sf-subpage-space));
  --sf-subpage-rail-card-w:calc(148px * var(--sf-subpage-fit));
  --sf-subpage-rail-card-h:calc(104px * var(--sf-subpage-fit));
  --sf-subpage-rail-gap:calc(10px * var(--sf-subpage-fit));
  --sf-subpage-rail-pad-top:calc(14px * var(--sf-subpage-fit));
  --sf-subpage-rail-pad-bottom:calc(6px * var(--sf-subpage-fit));
  /* Shared Hangar/Season rail roles alias the global typography SSOT. */
  --sf-subpage-rail-font-title:var(--sf-type-body-sm);
  --sf-subpage-rail-font-meta:var(--sf-type-caption);
  --sf-subpage-rail-font-micro:var(--sf-type-micro);
  --sf-subpage-rail-font-control:var(--sf-type-body-sm);
}

/* Hangar retains detailed raw-token aliases for its workspace; the shared root is likewise floor-free for Season/Result/Settlement. */
html:root[data-sf-viewport-policy="unified"] body #customize{
  --sf-subpage-command-h:calc(72px * var(--sf-subpage-ui));
  --sf-subpage-control-h:calc(38px * var(--sf-subpage-ui));
  --sf-subpage-close:calc(60px * var(--sf-subpage-ui));
  --sf-subpage-rail-card-w:calc(148px * var(--sf-subpage-fit));
  --sf-subpage-rail-card-h:calc(104px * var(--sf-subpage-fit));
  --sf-subpage-rail-gap:calc(10px * var(--sf-subpage-fit));
  --sf-subpage-rail-pad-top:calc(14px * var(--sf-subpage-fit));
  --sf-subpage-rail-pad-bottom:calc(6px * var(--sf-subpage-fit));
  --hangar-line:calc(1px * var(--sf-subpage-fit));
  --hangar-line-strong:calc(2px * var(--sf-subpage-fit));
}

/* Resolve rail typography inside the page root so the aliases consume the same
   mobile-authored semantic type projection as the rest of Hangar/Season. */
html:root[data-sf-viewport-policy="unified"] body :is(#customize,#sfSeasonResultPresentation,#sfBadgeCollection,#sfPilotPage){
  --sf-subpage-rail-font-title:var(--sf-type-body-sm);
  --sf-subpage-rail-font-meta:var(--sf-type-caption);
  --sf-subpage-rail-font-micro:var(--sf-type-micro);
  --sf-subpage-rail-font-control:var(--sf-type-body-sm);
}


/* --------------------------------------------------------------------------
   Shared command rail — Hangar + Season top chrome
   -------------------------------------------------------------------------- */
html:root[data-sf-viewport-policy="unified"] body :is(#customize,#sfSeasonResultPresentation,#sfBadgeCollection,#sfPilotPage) .sfUnifiedCommandBar{
  --sf-command-h:var(--sf-subpage-command-h);position:relative!important;z-index:12;display:grid!important;
  grid-template-columns:max-content minmax(0,1fr) max-content!important;align-items:center!important;
  width:100%;min-width:0;height:var(--sf-subpage-command-h)!important;min-height:var(--sf-subpage-command-h)!important;
  gap:calc(8px * var(--sf-subpage-space))!important;padding:calc(5px * var(--sf-subpage-space)) calc(7px * var(--sf-subpage-space))!important;
  border:0!important;background:linear-gradient(90deg,rgba(5,16,23,.96),rgba(3,10,15,.9) 62%,rgba(4,11,16,.96))!important;box-shadow:none!important;overflow:visible!important;
  font-family:var(--sf-ui-font-body);box-sizing:border-box!important
}
html:root[data-sf-viewport-policy="unified"] body :is(#customize,#sfSeasonResultPresentation,#sfBadgeCollection,#sfPilotPage) .sfUnifiedCommandBar::after{content:'';position:absolute;left:0;right:0;bottom:0;height:1px;background:linear-gradient(90deg,rgba(67,232,255,.55),rgba(67,232,255,.11) 40%,rgba(255,179,2,.18) 78%,transparent);pointer-events:none}
html:root[data-sf-viewport-policy="unified"] body :is(#customize,#sfSeasonResultPresentation,#sfBadgeCollection,#sfPilotPage) .sfUnifiedCommandLeading{display:flex;align-items:center;gap:calc(5px * var(--sf-subpage-space))!important;min-width:0}
html:root[data-sf-viewport-policy="unified"] body :is(#customize,#sfSeasonResultPresentation,#sfBadgeCollection,#sfPilotPage) .sfUnifiedCommandTitle{min-width:0;color:#eefbff;font-size:var(--sf-type-title)!important;font-weight:950;line-height:1;letter-spacing:.09em;white-space:nowrap}
html:root[data-sf-viewport-policy="unified"] body :is(#customize,#sfSeasonResultPresentation,#sfBadgeCollection,#sfPilotPage) .sfUnifiedCommandCenter{display:flex;align-items:center;justify-content:center;gap:calc(8px * var(--sf-subpage-space))!important;min-width:0;overflow:hidden}
html:root[data-sf-viewport-policy="unified"] body :is(#customize,#sfSeasonResultPresentation,#sfBadgeCollection,#sfPilotPage) .sfUnifiedCommandMetric{display:grid;grid-template-columns:auto auto;align-items:center;gap:calc(5px * var(--sf-subpage-space))!important;min-width:0;white-space:nowrap}
html:root[data-sf-viewport-policy="unified"] body :is(#customize,#sfSeasonResultPresentation,#sfBadgeCollection,#sfPilotPage) .sfUnifiedCommandMetric small{color:#587988;font-size:var(--sf-type-caption)!important;font-weight:700;line-height:1;letter-spacing:.12em}
html:root[data-sf-viewport-policy="unified"] body :is(#customize,#sfSeasonResultPresentation,#sfBadgeCollection,#sfPilotPage) .sfUnifiedCommandMetric b{min-width:0;overflow:hidden;text-overflow:ellipsis;color:#dff6ff;font-size:var(--sf-type-body-sm)!important;font-weight:900;line-height:1;letter-spacing:.04em}
html:root[data-sf-viewport-policy="unified"] body :is(#customize,#sfSeasonResultPresentation,#sfBadgeCollection,#sfPilotPage) .sfUnifiedCommandMetric.callsign{flex:0 1 auto;min-height:var(--sf-subpage-control-h)!important;padding:0!important;border:0!important;background:transparent!important}
html:root[data-sf-viewport-policy="unified"] body :is(#customize,#sfSeasonResultPresentation,#sfBadgeCollection,#sfPilotPage) .sfUnifiedCommandMetric.callsign b{max-width:calc(150px * var(--sf-subpage-ui))!important}
html:root[data-sf-viewport-policy="unified"] body :is(#customize,#sfSeasonResultPresentation,#sfBadgeCollection,#sfPilotPage) .sfUnifiedCommandAccount{position:relative!important;flex:0 0 auto;height:var(--sf-subpage-control-h)!important;min-height:var(--sf-subpage-control-h)!important;padding-inline:calc(5px * var(--sf-subpage-space))!important;border:0!important;box-shadow:none!important;clip-path:none!important;background:transparent!important;color:#b8d4df!important;font-size:var(--sf-type-body-sm)!important;font-weight:850;line-height:1;letter-spacing:.08em;text-decoration-line:underline;text-decoration-color:rgba(184,212,223,.62);text-decoration-thickness:calc(1px * var(--sf-subpage-ui));text-underline-offset:calc(2px * var(--sf-subpage-ui));cursor:pointer;white-space:nowrap;transition:color .14s ease,opacity .14s ease,text-decoration-color .14s ease!important}
html:root[data-sf-viewport-policy="unified"] body :is(#customize,#sfSeasonResultPresentation,#sfBadgeCollection,#sfPilotPage) .sfUnifiedCommandAccount:is(:hover,:focus-visible){outline:none!important;background:transparent!important;color:#eefcff!important;text-decoration-color:#eefcff;opacity:1}
html:root[data-sf-viewport-policy="unified"] body :is(#customize,#sfSeasonResultPresentation,#sfBadgeCollection,#sfPilotPage) .sfUnifiedCommandResources{display:flex;align-items:center;justify-content:flex-end;gap:calc(5px * var(--sf-subpage-space))!important;min-width:0;white-space:nowrap}
html:root[data-sf-viewport-policy="unified"] body :is(#customize,#sfSeasonResultPresentation,#sfSettlement,#sfBadgeCollection,#sfPilotPage) .sfUnifiedCommandResource{display:inline-flex;align-items:center;gap:calc(4px * var(--sf-subpage-space))!important;min-width:0;min-height:var(--sf-subpage-control-h)!important;padding:0 calc(5px * var(--sf-subpage-space))!important;color:#dff6ff;white-space:nowrap}
html:root[data-sf-viewport-policy="unified"] body :is(#customize,#sfSeasonResultPresentation,#sfSettlement,#sfBadgeCollection,#sfPilotPage) .sfUnifiedCommandResource+.sfUnifiedCommandResource{border-left:1px solid rgba(108,158,178,.14)}
html:root[data-sf-viewport-policy="unified"] body :is(#customize,#sfSeasonResultPresentation,#sfSettlement,#sfBadgeCollection,#sfPilotPage) .sfUnifiedCommandResource b{display:inline-flex;align-items:center;justify-content:center;min-width:calc(5ch + calc(4px * var(--sf-subpage-space)));padding-inline:calc(2px * var(--sf-subpage-space))!important;box-sizing:border-box;color:#eefbff;font-size:var(--sf-type-body-sm)!important;font-weight:950;line-height:1;font-variant-numeric:tabular-nums}
html:root[data-sf-viewport-policy="unified"] body :is(#customize,#sfSeasonResultPresentation,#sfSettlement,#sfBadgeCollection,#sfPilotPage) .sfUnifiedResourceGlyph{display:grid;place-items:center;width:calc(22px * var(--sf-subpage-ui))!important;height:calc(22px * var(--sf-subpage-ui))!important;flex:0 0 auto;box-sizing:border-box}
html:root[data-sf-viewport-policy="unified"] body :is(#customize,#sfSeasonResultPresentation) .sfUnifiedCommandBar .sfUnifiedCommandResources{grid-column:3}
html:root[data-sf-viewport-policy="unified"] body #customize .sfUnifiedCommandBar::after{height:var(--hangar-line)}
html:root[data-sf-viewport-policy="unified"] body #customize .sfUnifiedCommandResource+.sfUnifiedCommandResource{border-left-width:var(--hangar-line)}
html:root[data-sf-viewport-policy="unified"] body #customize .sfUnifiedCommandMetric.callsign b{max-width:calc(150px * var(--sf-subpage-ui))!important}
html:root[data-sf-viewport-policy="unified"] body #customize .sfUnifiedCommandAccount{text-decoration-thickness:calc(1px * var(--sf-subpage-ui));text-underline-offset:calc(2px * var(--sf-subpage-ui))}
html:root[data-sf-viewport-policy="unified"] body #customize .sfUnifiedCommandResource b{min-width:calc(5ch + calc(4px * var(--sf-subpage-space)));padding-inline:calc(2px * var(--sf-subpage-space))!important}
html:root[data-sf-viewport-policy="unified"] body #customize .sfUnifiedResourceGlyph{width:calc(22px * var(--sf-subpage-ui))!important;height:calc(22px * var(--sf-subpage-ui))!important}
html:root[data-sf-viewport-policy="unified"] body #sfSettlement .sfUnifiedCommandResource b{min-width:calc(5ch + calc(4px * var(--sf-subpage-space)));padding-inline:calc(2px * var(--sf-subpage-space))!important}
html:root[data-sf-viewport-policy="unified"] body #sfSettlement .sfUnifiedResourceGlyph{width:calc(22px * var(--sf-subpage-ui))!important;height:calc(22px * var(--sf-subpage-ui))!important}
html:root[data-sf-viewport-policy="unified"] body :is(#customize,#sfSeasonResultPresentation,#sfSettlement,#sfBadgeCollection,#sfPilotPage) .sfUnifiedCommandResource.coin b{color:#fff0ba}
html:root[data-sf-viewport-policy="unified"] body :is(#customize,#sfSeasonResultPresentation,#sfBadgeCollection,#sfPilotPage) .sfUnifiedGemGlyph svg{width:100%;height:100%;overflow:visible;filter:drop-shadow(0 0 calc(3px * var(--sf-subpage-ui)) rgba(52,255,164,.24))}
html:root[data-sf-viewport-policy="unified"] body :is(#customize,#sfSeasonResultPresentation,#sfBadgeCollection,#sfPilotPage) .sfUnifiedGemGlyph .gemBody{fill:#32e875;stroke:#9affc0;stroke-width:1.2;stroke-linejoin:round}
html:root[data-sf-viewport-policy="unified"] body :is(#customize,#sfSeasonResultPresentation,#sfBadgeCollection,#sfPilotPage) .sfUnifiedGemGlyph .gemFacet{fill:none;stroke:rgba(5,91,52,.72);stroke-width:1.15;stroke-linecap:round;stroke-linejoin:round}
html:root[data-sf-viewport-policy="unified"] body :is(#customize,#sfSeasonResultPresentation,#sfBadgeCollection,#sfPilotPage) .sfUnifiedCommandResource.gem b{color:#8dffb4}
html:root[data-sf-viewport-policy="unified"] body #customize .sfUnifiedCommandResource.gem[data-unavailable="true"]{opacity:.36;filter:saturate(.25);cursor:default}
html:root[data-sf-viewport-policy="unified"] body #customize .sfUnifiedDailySupply{position:relative;display:inline-grid;place-items:center;width:var(--sf-subpage-control-h)!important;height:var(--sf-subpage-control-h)!important;min-width:var(--sf-subpage-control-h)!important;min-height:var(--sf-subpage-control-h)!important;padding:0!important;border:var(--hangar-line) solid rgba(255,213,95,.28)!important;border-radius:calc(4px * var(--sf-subpage-ui))!important;background:rgba(255,199,47,.08)!important;color:#ffe697!important;cursor:pointer;transition:background .14s ease,border-color .14s ease,color .14s ease,opacity .14s ease!important}
html:root[data-sf-viewport-policy="unified"] body #customize .sfUnifiedDailySupply .sfLobbyFreeIcon{width:calc(22px * var(--sf-subpage-ui))!important;height:calc(22px * var(--sf-subpage-ui))!important;fill:none;stroke:currentColor;stroke-width:2}
html:root[data-sf-viewport-policy="unified"] body #customize .sfUnifiedDailySupply .sfLobbyFreeIcon path{fill:currentColor;stroke:none}
html:root[data-sf-viewport-policy="unified"] body #customize .sfUnifiedDailySupplyStatus{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
html:root[data-sf-viewport-policy="unified"] body #customize .sfUnifiedDailySupply:is(:hover,:focus-visible):not(:disabled){outline:none!important;background:rgba(255,199,47,.15)!important;border-color:rgba(255,226,134,.58)!important;color:#fff3c0!important}
html:root[data-sf-viewport-policy="unified"] body #customize .sfUnifiedDailySupply:disabled{cursor:default;opacity:.5}
html:root[data-sf-viewport-policy="unified"] body #customize .sfUnifiedDailySupply[hidden]{display:none!important}
html:root[data-sf-viewport-policy="unified"] body :is(#customize,#sfSeasonResultPresentation,#sfSettlement,#sfBadgeCollection,#sfPilotPage) .sfUnifiedCommandCloseSlot{display:grid;place-items:center;width:var(--sf-subpage-close)!important;height:var(--sf-subpage-close)!important;min-width:var(--sf-subpage-close)!important;min-height:var(--sf-subpage-close)!important;flex-basis:var(--sf-subpage-close)!important}
/* The shared 60px authored hit target remains proportional to the canonical 460px viewport scale.
   The visible 38px SVG is shared by every Hangar/Pilot/Season back action. */
html:root[data-sf-viewport-policy="unified"] body :is(#customize,#sfSeasonResultPresentation,#sfSettlement,#sfBadgeCollection,#sfPilotPage) .sfUnifiedCommandCloseSlot :is(#btnCustomizeBack,.sfUnifiedPageBack){position:static!important;display:grid!important;place-items:center!important;box-sizing:border-box!important;width:var(--sf-subpage-close)!important;height:var(--sf-subpage-close)!important;min-width:var(--sf-subpage-close)!important;min-height:var(--sf-subpage-close)!important;margin:0!important;padding:0!important;border:1px solid rgba(126,198,220,.28)!important;border-radius:calc(11px * var(--sf-subpage-ui))!important;background:rgba(77,145,174,.11)!important;box-shadow:none!important;clip-path:none!important;color:#e4f7ff!important;opacity:1;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:color .14s ease,background .14s ease,border-color .14s ease!important}
html:root[data-sf-viewport-policy="unified"] body :is(#customize,#sfSeasonResultPresentation,#sfSettlement,#sfBadgeCollection,#sfPilotPage) .sfUnifiedCommandCloseSlot .sfUnifiedBackIcon{display:block;width:calc(38px * var(--sf-subpage-ui));height:calc(38px * var(--sf-subpage-ui));fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
html:root[data-sf-viewport-policy="unified"] body :is(#customize,#sfSeasonResultPresentation,#sfSettlement,#sfBadgeCollection,#sfPilotPage) .sfUnifiedCommandCloseSlot :is(#btnCustomizeBack,.sfUnifiedPageBack):is(:hover,:focus-visible){outline:calc(2px * var(--sf-subpage-ui)) solid rgba(112,226,251,.8)!important;outline-offset:calc(2px * var(--sf-subpage-ui));border-color:rgba(125,229,251,.7)!important;background:rgba(83,177,204,.23)!important;color:#fff!important}


/* --------------------------------------------------------------------------
   Hangar — fullscreen 3D stage + HUD overlay + horizontal customization shelf
   -------------------------------------------------------------------------- */
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-sf-workspace-layout="true"]{
  --hangar-header-h:calc(var(--sf-safe-content-top) + var(--sf-subpage-command-h));
  --hangar-toolbar-h:calc(36px * var(--sf-subpage-fit));
  --hangar-toolbar-control-h:calc(32px * var(--sf-subpage-fit));
  --hangar-shelf-arrow:calc(38px * var(--sf-subpage-fit));
  --hangar-shelf-pad-x:calc(10px * var(--sf-subpage-fit));
  --hangar-shelf-pad-y:calc(6px * var(--sf-subpage-fit));
  --hangar-shelf-gap:calc(4px * var(--sf-subpage-fit));
  --hangar-card-w:var(--sf-subpage-rail-card-w);--hangar-card-h:var(--sf-subpage-rail-card-h);
  --hangar-skin-w:calc(184px * var(--sf-subpage-fit));--hangar-skin-h:var(--sf-subpage-rail-card-h);
  --hangar-gap:var(--sf-subpage-rail-gap);
  --hangar-shelf-h:calc(var(--hangar-toolbar-h) + var(--hangar-card-h) + var(--hangar-shelf-gap) + var(--hangar-shelf-pad-y) + max(var(--hangar-shelf-pad-y),var(--sf-safe-area-bottom,0px)));
  --hangar-card-inset:calc(6px * var(--sf-subpage-fit));
  --hangar-card-copy-h:calc(28px * var(--sf-subpage-fit));
  /* Performance HUD geometry follows the same proportional subpage owner as the rest of Hangar. */
  --hangar-performance-width:calc(300px * var(--sf-subpage-ui));
  --hangar-performance-offset-y:calc(12px * var(--sf-subpage-ui));
  --hangar-performance-clearance:calc(14px * var(--sf-subpage-ui));
  --hangar-performance-gap:calc(6px * var(--sf-subpage-ui));
  --hangar-performance-pad-y:calc(9px * var(--sf-subpage-ui));
  --hangar-performance-pad-x:calc(11px * var(--sf-subpage-space));
  --hangar-performance-row-gap:calc(5px * var(--sf-subpage-ui));
  --hangar-performance-track-h:calc(5px * var(--sf-subpage-ui));
  position:absolute!important;inset:0!important;
  width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
  margin:0!important;padding:0!important;display:block!important;overflow:hidden!important;border:0!important;border-radius:0!important;background:#02070b!important;box-shadow:none!important;isolation:isolate
}

html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-sf-workspace-layout="true"]>.customHeader{
  position:absolute!important;z-index:30!important;left:0!important;right:0!important;top:0!important;height:var(--hangar-header-h)!important;min-height:0!important;margin:0!important;padding:0!important;display:block!important;grid-template-columns:none!important;gap:0!important;border:0!important;background:linear-gradient(180deg,rgba(2,8,12,.94),rgba(2,8,12,.78) 72%,transparent)!important;pointer-events:auto
}
html:root[data-sf-viewport-policy="unified"] body #customize .customHeader>.sfUnifiedCommandBar{
  width:auto!important;margin:var(--sf-safe-content-top) var(--sf-safe-content-right) 0 var(--sf-safe-content-left)!important
}

html:root[data-sf-viewport-policy="unified"] body #customize .customTop{position:absolute!important;z-index:1!important;inset:0!important;display:block!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPreview{position:absolute!important;z-index:1!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important}
html:root[data-sf-viewport-policy="unified"] body #customize #customPreviewMount{
  position:absolute!important;z-index:0!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;aspect-ratio:auto!important;overflow:hidden!important;
  border:0!important;border-radius:0!important;background:#061018!important;box-shadow:none!important;touch-action:none!important;cursor:grab
}
html:root[data-sf-viewport-policy="unified"] body #customize #customPreviewMount:active{cursor:grabbing}
html:root[data-sf-viewport-policy="unified"] body #customize #hangarPreviewFeed{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;z-index:0!important;touch-action:none!important}
html:root[data-sf-viewport-policy="unified"] body #customize #customPreviewMount::after{content:'';position:absolute;z-index:1;inset:0;pointer-events:none;background:none}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarPreviewHint{position:absolute;z-index:4;left:max(calc(7px * var(--sf-subpage-space)),var(--sf-safe-area-left,0px));top:calc(var(--hangar-header-h) + calc(12px * var(--sf-subpage-ui)));padding:calc(3px * var(--sf-subpage-ui)) calc(4px * var(--sf-subpage-space));border-left:var(--hangar-line) solid rgba(67,232,255,.25);background:rgba(3,11,17,.26);color:rgba(159,195,208,.5);font:750 var(--sf-type-caption)/1 var(--sf-ui-font-display);letter-spacing:.1em;pointer-events:none}

html:root[data-sf-viewport-policy="unified"] body #customize #hangarPerformancePanel{
  left:max(calc(12px * var(--sf-subpage-space)),var(--sf-safe-area-left,0px))!important;
  top:calc(var(--hangar-header-h) + var(--hangar-performance-offset-y))!important;
  width:var(--hangar-performance-width)!important;
  max-height:calc(100% - var(--hangar-header-h) - var(--hangar-shelf-h) - var(--hangar-performance-clearance))!important;
  gap:var(--hangar-performance-gap)!important;
  padding:var(--hangar-performance-pad-y) var(--hangar-performance-pad-x)!important;
  border-radius:calc(6px * var(--sf-subpage-ui))!important
}
html:root[data-sf-viewport-policy="unified"] body #customize #hangarPerformancePanel .hangarPerfHeader{padding-bottom:calc(5px * var(--sf-subpage-ui))!important;column-gap:calc(6px * var(--sf-subpage-space))!important}
html:root[data-sf-viewport-policy="unified"] body #customize #hangarPerformancePanel .hangarPerfMetrics{gap:var(--hangar-performance-row-gap)!important}
html:root[data-sf-viewport-policy="unified"] body #customize #hangarPerformancePanel .hangarPerfMetric{column-gap:calc(4px * var(--sf-subpage-space))!important;row-gap:calc(3px * var(--sf-subpage-ui))!important}
html:root[data-sf-viewport-policy="unified"] body #customize #hangarPerformancePanel .hangarPerfTrack{height:var(--hangar-performance-track-h)!important}
html:root[data-sf-viewport-policy="unified"] body #customize #hangarPerformancePanel .hangarPerfPair{gap:calc(4px * var(--sf-subpage-space))!important}
html:root[data-sf-viewport-policy="unified"] body #customize #hangarPerformancePanel .hangarPerfFireControl{gap:calc(4px * var(--sf-subpage-ui)) calc(6px * var(--sf-subpage-space))!important;padding-top:calc(5px * var(--sf-subpage-ui))!important}

html:root[data-sf-viewport-policy="unified"] body #customize .hangarStageHud{position:absolute!important;z-index:12!important;inset:0!important;pointer-events:none!important}
html:root[data-sf-viewport-policy="unified"] body #customize #hangarActionBar{
  position:absolute!important;right:max(calc(7px * var(--sf-subpage-space)),var(--sf-safe-area-right,0px))!important;bottom:calc(var(--hangar-shelf-h) + calc(7px * var(--sf-subpage-ui)))!important;
  display:grid!important;grid-template-columns:minmax(calc(76px * var(--sf-subpage-ui)),1fr) auto!important;align-items:center!important;gap:calc(5px * var(--sf-subpage-space))!important;width:max-content!important;min-width:calc(240px * var(--sf-subpage-ui))!important;min-height:calc(28px * var(--sf-subpage-ui))!important;margin:0!important;padding:calc(4px * var(--sf-subpage-ui)) calc(5px * var(--sf-subpage-space))!important;
  border:var(--hangar-line) solid rgba(96,154,178,.18)!important;border-radius:calc(5px * var(--sf-subpage-ui))!important;background:linear-gradient(100deg,rgba(4,14,21,.76),rgba(3,10,15,.9))!important;box-shadow:0 calc(12px * var(--sf-subpage-fit)) calc(28px * var(--sf-subpage-fit)) rgba(0,0,0,.26)!important;backdrop-filter:blur(calc(8px * var(--sf-subpage-fit)));-webkit-backdrop-filter:blur(calc(8px * var(--sf-subpage-fit)));pointer-events:auto!important
}
/* PARTS retains the shared action HUD, but stops it blanketing the 3D work surface. */
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-parts="true"] #hangarActionBar{
 width:calc(200px * var(--sf-subpage-ui))!important;min-width:0!important;
 max-width:calc(100% - calc(175px * var(--sf-subpage-ui)))!important;
 grid-template-columns:1fr!important;justify-items:stretch!important;
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-parts="true"] #hangarActionBar .hangarStoreSelectionInfo{display:none!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-parts="true"] #hangarActionBar .hangarActionButtons{grid-column:1!important;display:flex!important;justify-content:center!important;flex-wrap:wrap!important;width:100%!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-parts="true"] #hangarActionBar .hangarActionButtons>button{flex:1 1 44%!important}
html:root[data-sf-viewport-policy="unified"] body #customize #hangarActionBar .hangarStoreSelectionInfo{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:center!important;gap:calc(1px * var(--sf-subpage-space)) calc(4px * var(--sf-subpage-space))!important;min-width:0!important}
html:root[data-sf-viewport-policy="unified"] body #customize #hangarActionBar .hangarStoreSelectionInfo small{grid-column:1/-1;color:#668493!important;font-size:var(--sf-subpage-rail-font-meta)!important;letter-spacing:.14em!important}
html:root[data-sf-viewport-policy="unified"] body #customize #hangarActionBar .hangarStoreSelectionInfo b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#ecfaff!important;font-size:var(--sf-type-body-lg)!important}
html:root[data-sf-viewport-policy="unified"] body #customize #hangarActionBar :is(.hangarStoreSelectionInfo span,.hangarSelectedPrice){margin:0!important;color:#8dff5a!important;font-size:var(--sf-subpage-rail-font-meta)!important;white-space:nowrap!important}
html:root[data-sf-viewport-policy="unified"] body #customize #hangarActionBar .hangarActionButtons{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:calc(2px * var(--sf-subpage-space))!important;min-width:0!important}
html:root[data-sf-viewport-policy="unified"] body #customize #hangarActionBar .hangarActionButtons>button{height:calc(20px * var(--sf-subpage-ui))!important;min-height:calc(20px * var(--sf-subpage-ui))!important;min-width:calc(44px * var(--sf-subpage-ui))!important;margin:0!important;padding:0 calc(4px * var(--sf-subpage-space))!important;border:var(--hangar-line) solid rgba(104,162,187,.24)!important;border-radius:calc(3px * var(--sf-subpage-ui))!important;background:rgba(7,18,25,.82)!important;color:#aac6d2!important;box-shadow:none!important;font-size:var(--sf-subpage-rail-font-control)!important;letter-spacing:.06em!important;white-space:nowrap!important}
html:root[data-sf-viewport-policy="unified"] body #customize #hangarActionBar .hangarActionButtons>button:not(:disabled):is(:hover,:focus-visible){outline:none!important;border-color:rgba(67,232,255,.52)!important;color:#effcff!important;background:rgba(67,232,255,.08)!important}
html:root[data-sf-viewport-policy="unified"] body #customize #hangarActionBar .hangarActionButtons>.hangarStoreCommit:not(:disabled){border-color:rgba(255,179,2,.66)!important;background:linear-gradient(180deg,rgba(255,179,2,.95),rgba(205,139,9,.94))!important;color:#071016!important;font-weight:950!important;box-shadow:0 calc(4px * var(--sf-subpage-fit)) calc(16px * var(--sf-subpage-fit)) rgba(255,179,2,.12)!important}
html:root[data-sf-viewport-policy="unified"] body #customize #hangarActionBar .hangarActionButtons>button:disabled{opacity:.3!important}

/* Page-scoped cart stays inside the existing Hangar action HUD, never a second overlay owner. */
html:root[data-sf-viewport-policy="unified"] body #customize #hangarActionBar .hangarCartCheckout{
 display:flex!important;flex-direction:column!important;gap:calc(4px * var(--sf-subpage-space))!important;
 width:calc(196px * var(--sf-subpage-ui));min-width:0
}
html:root[data-sf-viewport-policy="unified"] body #customize #hangarActionBar .hangarCartPanel{
 display:grid;gap:calc(3px * var(--sf-subpage-ui));min-width:0;
 border-bottom:var(--hangar-line) solid rgba(104,162,187,.22);
 padding-bottom:calc(4px * var(--sf-subpage-space))
}
html:root[data-sf-viewport-policy="unified"] body #customize #hangarActionBar :is(.hangarCartHeading,.hangarCartTotal){
 display:flex;align-items:center;justify-content:space-between;gap:calc(5px * var(--sf-subpage-space));
 font:800 var(--sf-type-label) var(--sf-ui-font-body);color:#d7eef8
}
html:root[data-sf-viewport-policy="unified"] body #customize #hangarActionBar .hangarCartHeading small{font-size:var(--sf-type-caption);color:#8dff5a}
html:root[data-sf-viewport-policy="unified"] body #customize #hangarActionBar .hangarCartLines{
 display:grid;align-content:start;max-height:calc(77px * var(--sf-subpage-ui));min-height:0;
 overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin
}
html:root[data-sf-viewport-policy="unified"] body #customize #hangarActionBar .hangarCartLine{
 display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:calc(4px * var(--sf-subpage-space));
 padding:calc(2px * var(--sf-subpage-ui)) 0;border-bottom:var(--hangar-line) solid rgba(104,162,187,.12);
 font:700 var(--sf-type-caption) var(--sf-ui-font-body)
}
html:root[data-sf-viewport-policy="unified"] body #customize #hangarActionBar .hangarCartLine span{
 min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#d8e9f0
}
html:root[data-sf-viewport-policy="unified"] body #customize #hangarActionBar .hangarCartLine b{color:#8dff5a;white-space:nowrap;font:700 var(--sf-type-caption) var(--sf-ui-font-data)}
html:root[data-sf-viewport-policy="unified"] body #customize #hangarActionBar .hangarCartLine button{
 display:grid;place-items:center;width:calc(18px * var(--sf-subpage-ui));height:calc(18px * var(--sf-subpage-ui));
 padding:0;border:var(--hangar-line) solid rgba(140,173,187,.35);border-radius:calc(2px * var(--sf-subpage-ui));
 background:rgba(20,36,46,.8);color:#e9adb2;cursor:pointer;font:800 var(--sf-type-label) var(--sf-ui-font-body)
}
html:root[data-sf-viewport-policy="unified"] body #customize #hangarActionBar .hangarCartLine button:is(:hover,:focus-visible){border-color:#ff9a9a;color:#fff;outline:none}
html:root[data-sf-viewport-policy="unified"] body #customize #hangarActionBar .hangarCartEmpty{
 margin:0;padding:calc(3px * var(--sf-subpage-space)) 0;color:#7797a6;font:700 var(--sf-type-caption) var(--sf-ui-font-body)
}
html:root[data-sf-viewport-policy="unified"] body #customize #hangarActionBar .hangarCartTotal b{font-family:var(--sf-ui-font-data);color:#8dff5a}
html:root[data-sf-viewport-policy="unified"] body #customize #hangarActionBar .hangarCartCheckout .hangarActionButtons{width:100%!important;justify-content:flex-end!important;flex-wrap:wrap!important}
html:root[data-sf-viewport-policy="unified"] body #customize #hangarActionBar .hangarCartCheckout .hangarCartPurchase{flex:1 1 auto!important}


html:root[data-sf-viewport-policy="unified"] body #customize .customCatalog{
  position:absolute!important;z-index:20!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;height:var(--hangar-shelf-h)!important;min-width:0!important;min-height:0!important;margin:0!important;
  padding:var(--hangar-shelf-pad-y) max(var(--hangar-shelf-pad-x),var(--sf-safe-area-right,0px)) max(var(--hangar-shelf-pad-y),var(--sf-safe-area-bottom,0px)) max(var(--hangar-shelf-pad-x),var(--sf-safe-area-left,0px))!important;display:grid!important;grid-template-rows:var(--hangar-toolbar-h) minmax(0,1fr)!important;gap:var(--hangar-shelf-gap)!important;
  border:0!important;border-top:var(--hangar-line) solid rgba(67,232,255,.13)!important;background:linear-gradient(180deg,rgba(3,10,15,.78),rgba(2,8,12,.95) 30%,rgba(2,7,11,.99))!important;box-shadow:0 calc(-18px * var(--sf-subpage-fit)) calc(42px * var(--sf-subpage-fit)) rgba(0,0,0,.24)!important;backdrop-filter:blur(calc(10px * var(--sf-subpage-fit)));-webkit-backdrop-filter:blur(calc(10px * var(--sf-subpage-fit)))
}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarToolbar{display:flex!important;align-items:center!important;min-width:0!important;width:100%!important;height:var(--hangar-toolbar-h)!important;margin:0!important;padding:0!important;gap:calc(2px * var(--sf-subpage-fit))!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;white-space:nowrap!important}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarToolbar::-webkit-scrollbar{display:none}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarToolbarSpacer{position:relative!important;flex:0 0 calc(8px * var(--sf-subpage-fit))!important;min-width:calc(8px * var(--sf-subpage-fit))!important;height:calc(12px * var(--sf-subpage-fit))!important}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarToolbarSpacer::after{content:'';position:absolute;left:50%;top:calc(5px * var(--sf-subpage-fit));bottom:calc(5px * var(--sf-subpage-fit));width:calc(1px * var(--sf-subpage-fit));background:linear-gradient(180deg,transparent,rgba(67,232,255,.3),transparent)}
html:root[data-sf-viewport-policy="unified"] body #customize :is(.hangarModeTab,.hangarCategoryTab){position:relative!important;flex:0 0 auto!important;height:var(--hangar-toolbar-control-h)!important;min-height:var(--hangar-toolbar-control-h)!important;margin:0!important;padding:0 calc(5px * var(--sf-subpage-fit))!important;border:0!important;border-radius:calc(7px * var(--sf-subpage-fit))!important;background:transparent!important;box-shadow:none!important;color:#718c99!important;font-size:var(--sf-subpage-rail-font-control)!important;font-weight:850!important;letter-spacing:.07em!important;white-space:nowrap!important}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarModeTab{min-width:calc(42px * var(--sf-subpage-fit))!important;background:rgba(9,22,31,.56)!important}
html:root[data-sf-viewport-policy="unified"] body #customize :is(.hangarModeTab,.hangarCategoryTab):is(:hover,:focus-visible){outline:none!important;color:#eaf9ff!important;background:rgba(67,232,255,.055)!important}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarModeTab.active{color:#dff8ff!important;background:rgba(67,232,255,.1)!important;box-shadow:inset 0 0 0 var(--hangar-line) rgba(67,232,255,.2)!important}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarCategoryTab.active{color:#fff0bc!important}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarCategoryTab.active::after{content:'';position:absolute;left:calc(9px * var(--sf-subpage-fit));right:calc(9px * var(--sf-subpage-fit));bottom:calc(1px * var(--sf-subpage-fit));height:calc(2px * var(--sf-subpage-fit));border-radius:calc(2px * var(--sf-subpage-fit));background:#ffb302;box-shadow:0 0 calc(8px * var(--sf-subpage-fit)) rgba(255,179,2,.28)}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarCategoryTab[hidden]{display:none!important}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarShelfFrame{display:grid!important;grid-template-columns:var(--hangar-shelf-arrow) minmax(0,1fr) var(--hangar-shelf-arrow)!important;align-items:stretch!important;gap:var(--hangar-shelf-gap)!important;min-width:0!important;min-height:0!important;height:100%!important}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarShelfArrow{display:grid!important;place-items:center!important;width:var(--hangar-shelf-arrow)!important;min-width:var(--hangar-shelf-arrow)!important;height:100%!important;min-height:0!important;padding:0!important;border:var(--hangar-line) solid rgba(84,142,167,.16)!important;border-radius:calc(7px * var(--sf-subpage-fit))!important;background:rgba(6,17,24,.68)!important;color:#8eabb7!important;font:500 var(--sf-type-heading)/1 var(--sf-ui-font-display)!important;cursor:pointer!important;touch-action:manipulation!important;transition:opacity .14s ease,color .14s ease,border-color .14s ease!important}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarShelfArrow:not(:disabled):is(:hover,:focus-visible){outline:none!important;color:#fff!important;border-color:rgba(67,232,255,.5)!important}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarShelfArrow:disabled{opacity:.18!important;cursor:default!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-shelf-overflow="false"] .hangarShelfArrow{visibility:hidden!important;pointer-events:none!important}
html:root[data-sf-viewport-policy="unified"] body #customize #customGrid.hangarCatalogGrid{
  --hangar-current-card-w:var(--hangar-card-w);--hangar-current-card-h:var(--hangar-card-h);display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:flex-start!important;gap:var(--hangar-gap)!important;
  width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;margin:0!important;padding:calc(2px * var(--sf-subpage-fit)) calc(4px * var(--sf-subpage-fit))!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x proximity;scroll-behavior:smooth;overscroll-behavior-x:contain;scrollbar-width:none!important
}
html:root[data-sf-viewport-policy="unified"] body #customize #customGrid.hangarCatalogGrid::-webkit-scrollbar{display:none}
html:root[data-sf-viewport-policy="unified"] body #customize #customGrid.hangarCatalogGrid.hangarSkinGrid{--hangar-current-card-w:var(--hangar-skin-w);--hangar-current-card-h:var(--hangar-skin-h);max-width:none!important}
html:root[data-sf-viewport-policy="unified"] body #customize #customGrid.hangarCatalogGrid>.hangarCatalogCard{
  position:relative!important;flex:0 0 var(--hangar-current-card-w)!important;width:var(--hangar-current-card-w)!important;height:var(--hangar-current-card-h)!important;min-width:var(--hangar-current-card-w)!important;min-height:var(--hangar-current-card-h)!important;max-width:var(--hangar-current-card-w)!important;max-height:var(--hangar-current-card-h)!important;
  margin:0!important;padding:0!important;overflow:hidden!important;border:var(--hangar-line) solid var(--hangar-card-outline,rgba(98,156,181,.22))!important;border-radius:calc(8px * var(--sf-subpage-fit))!important;background:var(--hangar-card-surface,linear-gradient(180deg,rgba(9,21,30,.94),rgba(4,11,16,.97)))!important;box-shadow:none!important;scroll-snap-align:center!important;transform:none!important
}
html:root[data-sf-viewport-policy="unified"] body #customize #customGrid.hangarCatalogGrid>.hangarCatalogCard:is(:hover,:focus-visible){outline:none!important;border-color:rgba(67,232,255,.58)!important;background:var(--hangar-card-hover-surface,linear-gradient(180deg,rgba(11,28,39,.98),rgba(5,13,19,.98)))!important}
/* One card-state grammar for PAINT, TUNING aircraft/guns and every PART slot.
   Selected: thin cyan edge. Equipped: thick orange edge. Both: orange outer + cyan inner. */
html:root[data-sf-viewport-policy="unified"] body #customize #customGrid.hangarCatalogGrid>.hangarCatalogCard.is-preview{border-color:#43e8ff!important;box-shadow:none!important}
html:root[data-sf-viewport-policy="unified"] body #customize #customGrid.hangarCatalogGrid>.hangarCatalogCard.is-equipped{border:calc(4px * var(--sf-subpage-fit)) solid #ffa328!important;outline:none!important;box-shadow:none!important}
html:root[data-sf-viewport-policy="unified"] body #customize #customGrid.hangarCatalogGrid>.hangarCatalogCard.is-preview.is-equipped{border-color:#ffa328!important;box-shadow:inset 0 0 0 calc(2px * var(--sf-subpage-fit)) #43e8ff!important}
html:root[data-sf-viewport-policy="unified"] body #customize #customGrid.hangarCatalogGrid>.hangarCatalogCard>.hangarCatalogVisual{position:absolute!important;left:var(--hangar-card-inset)!important;right:var(--hangar-card-inset)!important;top:var(--hangar-card-inset)!important;bottom:var(--hangar-card-copy-h)!important;width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border-radius:calc(5px * var(--sf-subpage-fit))!important}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarCatalogCardCopy{position:absolute!important;z-index:4!important;left:var(--hangar-card-inset)!important;right:var(--hangar-card-inset)!important;bottom:var(--hangar-card-inset)!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:calc(2px * var(--sf-subpage-fit))!important;min-width:0!important;pointer-events:none!important;text-align:left!important}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarCatalogCardCopy strong{display:block!important;width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:#e8f6fc!important;font:800 var(--sf-subpage-rail-font-title)/1.15 var(--sf-ui-font-body)!important}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarCatalogCardCopy small{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:#7694a2!important;font:700 var(--sf-subpage-rail-font-meta)/1.1 var(--sf-ui-font-display)!important}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarSkinVisual{position:absolute!important;inset:var(--hangar-card-inset) var(--hangar-card-inset) var(--hangar-card-copy-h)!important;display:grid!important;grid-template-columns:minmax(0,1fr) calc(40px * var(--sf-subpage-fit))!important;gap:calc(8px * var(--sf-subpage-fit))!important;padding:calc(8px * var(--sf-subpage-fit))!important;border-radius:calc(5px * var(--sf-subpage-fit))!important;background:radial-gradient(circle at 35% 30%,rgba(67,232,255,.07),transparent 54%),rgba(3,10,15,.7)!important}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarSkinPrimary{display:grid!important;grid-template-columns:1fr 1fr!important;gap:calc(6px * var(--sf-subpage-fit))!important;min-width:0!important;overflow:hidden!important;border-radius:calc(4px * var(--sf-subpage-fit))!important}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarSkinParts{display:grid!important;grid-template-rows:1fr 1fr!important;gap:calc(6px * var(--sf-subpage-fit))!important;min-width:0!important}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarSkinPart{position:relative!important;display:block!important;min-height:0!important;overflow:hidden!important;border:var(--hangar-line) solid rgba(255,255,255,.06)!important;border-radius:calc(4px * var(--sf-subpage-fit))!important}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarSkinPrimary>.hangarCatalogVisual,html:root[data-sf-viewport-policy="unified"] body #customize .hangarSkinPart>.hangarCatalogVisual{position:relative!important;inset:auto!important;width:100%!important;height:100%!important;min-height:0!important;border-radius:calc(3px * var(--sf-subpage-fit))!important}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarSkinPart>i{right:calc(6px * var(--sf-subpage-fit))!important;bottom:calc(4px * var(--sf-subpage-fit))!important;font-size:var(--sf-subpage-rail-font-micro)!important}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarEquipmentVisual{position:absolute!important;inset:var(--hangar-card-inset) var(--hangar-card-inset) var(--hangar-card-copy-h)!important;height:auto!important;min-height:0!important;padding:calc(6px * var(--sf-subpage-fit))!important;align-items:flex-start!important;justify-content:flex-end!important;text-align:left!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel:is([data-hangar-category="airframe"],[data-hangar-category="pattern"]) #customGrid.hangarCatalogGrid>.hangarCatalogCard>:is(.hangarAirframeCardVisual,.hangarCatalogVisual){position:absolute!important;left:var(--hangar-card-inset)!important;right:var(--hangar-card-inset)!important;top:var(--hangar-card-inset)!important;bottom:var(--hangar-card-copy-h)!important;width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border-radius:calc(5px * var(--sf-subpage-fit))!important}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarEquipmentVisual strong{font-size:var(--sf-type-body)!important}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarEquipmentVisual small{font-size:var(--sf-subpage-rail-font-meta)!important}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarAcquisitionBadge{top:calc(8px * var(--sf-subpage-fit))!important;right:var(--hangar-acquisition-right,calc(5px * var(--sf-subpage-fit)))!important;left:var(--hangar-acquisition-left,auto)!important;min-width:0!important;height:calc(18px * var(--sf-subpage-fit))!important;padding:0 calc(4px * var(--sf-subpage-fit))!important;border-radius:calc(8px * var(--sf-subpage-fit))!important;font-size:var(--sf-subpage-rail-font-micro)!important}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarAcquisitionBadge[data-position="left"]{left:calc(5px * var(--sf-subpage-fit))!important;right:auto!important}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarAcquisitionBadge[data-source="season"]{max-width:calc(40px * var(--sf-subpage-fit));height:auto!important;min-height:calc(18px * var(--sf-subpage-fit));white-space:normal;line-height:1.05;overflow-wrap:anywhere}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarCatalogCard:not(.hangarPartCard)>.hangarAcquisitionBadge[data-source="new"]{top:calc(30px * var(--sf-subpage-fit))!important}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarEmpty{flex:1 0 100%!important;height:100%!important;min-height:0!important;border:var(--hangar-line) dashed rgba(67,232,255,.16)!important;background:rgba(5,13,20,.5)!important}


html:root[data-sf-viewport-policy="unified"][data-sf-composition="phone-short"] body #customize #customGrid.hangarCatalogGrid{scroll-snap-type:x mandatory}

/* Auxiliary Hangar card/action chrome also follows the same floor-free tokens. */
html:root[data-sf-viewport-policy="unified"] body #customize .hangarCartCheck{border-width:var(--hangar-line);top:calc(40px * var(--sf-subpage-fit))!important;left:calc(6px * var(--sf-subpage-fit))!important;width:calc(28px * var(--sf-subpage-fit))!important;height:calc(28px * var(--sf-subpage-fit))!important}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarMascotRewardEffectMark{border-width:var(--hangar-line);left:calc(4px * var(--sf-subpage-fit));bottom:calc(4px * var(--sf-subpage-fit));min-width:calc(26px * var(--sf-subpage-fit));height:calc(15px * var(--sf-subpage-fit));padding:0 calc(4px * var(--sf-subpage-fit));border-radius:calc(4px * var(--sf-subpage-fit))}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarMascotProgressSummary{gap:calc(5px * var(--sf-subpage-fit));margin-top:calc(2px * var(--sf-subpage-fit))}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarMascotProgressHead{gap:calc(7px * var(--sf-subpage-fit))}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarMascotProgressHead>span{display:inline!important}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarMascotMilestoneList{gap:calc(4px * var(--sf-subpage-fit))}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarMascotMilestone{border-width:var(--hangar-line);gap:calc(3px * var(--sf-subpage-fit));padding:calc(3px * var(--sf-subpage-fit)) calc(5px * var(--sf-subpage-fit));border-radius:calc(5px * var(--sf-subpage-fit))}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarGunSmartTag{padding:calc(2px * var(--sf-subpage-ui)) calc(4px * var(--sf-subpage-space));border-radius:calc(3px * var(--sf-subpage-ui))}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel:is([data-hangar-category="airframe"],[data-hangar-category="gun"]) #hangarActionBar .hangarStoreSelectionInfo{gap:calc(2px * var(--sf-subpage-ui)) calc(8px * var(--sf-subpage-space))}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarActionButtons .hangarCartPurchase{gap:calc(6px * var(--sf-subpage-space))}

html:root[data-sf-viewport-policy="unified"] body #customize .hangarAcquisitionBadge{backdrop-filter:blur(calc(4px * var(--sf-subpage-fit)));text-shadow:0 calc(1px * var(--sf-subpage-fit)) calc(3px * var(--sf-subpage-fit)) rgba(0,0,0,.72)}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarAcquisitionBadge[data-source]{box-shadow:inset 0 0 0 var(--hangar-line) currentColor,0 0 calc(11px * var(--sf-subpage-fit)) color-mix(in srgb,currentColor 18%,transparent)}

html:root[data-sf-viewport-policy="unified"] body #customize .hangarCartCheck{box-shadow:0 0 calc(12px * var(--sf-subpage-fit)) rgba(141,255,90,.2)}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarMascotRewardEffectMark{box-shadow:0 0 calc(9px * var(--sf-subpage-fit)) rgba(67,232,255,.14)}
/* Remove Ads entry in the Hangar/Shop command bar (capability-gated by the command bar client). */
html:root[data-sf-viewport-policy="unified"] body #customize .sfUnifiedRemoveAds{display:inline-flex;align-items:center;gap:calc(5px * var(--sf-subpage-space));height:var(--sf-subpage-control-h);padding-inline:calc(8px * var(--sf-subpage-space));border:1px solid rgba(255,179,2,.5);background:rgba(255,179,2,.07);color:#ffd05a;font:900 var(--sf-type-caption)/1 var(--sf-ui-font-data);letter-spacing:.08em;white-space:nowrap;cursor:pointer}
html:root[data-sf-viewport-policy="unified"] body #customize .sfUnifiedRemoveAds[hidden]{display:none}
html:root[data-sf-viewport-policy="unified"] body #customize .sfUnifiedRemoveAdsMark{position:relative;padding:calc(2px * var(--sf-subpage-ui)) calc(3px * var(--sf-subpage-ui));border:1px solid currentColor;border-radius:calc(3px * var(--sf-subpage-ui));font-size:var(--sf-type-micro);text-decoration:line-through}
html:root[data-sf-viewport-policy="unified"] body #customize .sfUnifiedRemoveAds[data-owned="true"]{border-color:rgba(141,255,90,.55);background:rgba(141,255,90,.07);color:#baff9d}
html:root[data-sf-viewport-policy="unified"] body #customize .sfUnifiedRemoveAds:is(:hover,:focus-visible){outline:none;border-color:#ffd05a}

/* Hangar section layout — shared subpage viewport tokens remain the only scale owner. */
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="home"] .customCatalog,
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="home"] :is(#hangarPerformancePanel,#hangarActionBar,#hangarTuningSlots){display:none!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="home"] #customPreviewMount{width:60%!important;right:auto!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel:not([data-hangar-section="home"]) #hangarSectionHub{display:none!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="home"] #hangarSectionHub{
 position:absolute;z-index:18;left:60%;right:0;top:var(--hangar-header-h);bottom:0;transform:none;
 display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:calc(12px * var(--sf-subpage-fit));
 width:40%;height:auto;min-width:0;min-height:0;
 padding:calc(12px * var(--sf-subpage-fit)) max(calc(16px * var(--sf-subpage-space)),var(--sf-safe-area-right,0px)) max(calc(12px * var(--sf-subpage-fit)),var(--sf-safe-area-bottom,0px)) calc(16px * var(--sf-subpage-space));
 box-sizing:border-box;border-left:var(--hangar-line) solid rgba(80,173,202,.2);background:linear-gradient(90deg,rgba(3,12,19,.95),#061018);pointer-events:none
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="home"] #hangarSectionHub>button{
 min-width:0;min-height:0;flex:0 1 auto;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:calc(8px * var(--sf-subpage-fit));
 padding:calc(16px * var(--sf-subpage-fit));text-align:left;
 border:var(--hangar-line) solid rgba(80,173,202,.42);border-radius:calc(8px * var(--sf-subpage-fit));
 background:linear-gradient(145deg,rgba(15,40,52,.96),rgba(4,14,24,.98));color:#eef9ff;pointer-events:auto;cursor:pointer;touch-action:manipulation
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="home"] #hangarSectionHub>button>.hangarSectionNewBadge{top:calc(8px * var(--sf-subpage-fit));right:calc(8px * var(--sf-subpage-fit));z-index:1}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="home"] #hangarSectionHub>button:is(:hover,:focus-visible){outline:none;border-color:#ffcb78;background:linear-gradient(145deg,rgba(37,60,71,.97),rgba(11,26,37,.98))}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="home"] #hangarSectionHub small{font:800 var(--sf-type-caption) var(--sf-ui-font-display);color:#81a8bb}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="home"] #hangarSectionHub strong{font:950 var(--sf-type-display) var(--sf-ui-font-display);color:#fff0cb}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="home"] #hangarSectionHub span{font:700 var(--sf-type-body-sm) var(--sf-ui-font-body);color:#b3d0dc;line-height:1.3}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel:not([data-hangar-section="tuning"]) #hangarTuningSlots{display:none!important}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarTuningFilterTab[hidden]{display:none!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"]{
 --hangar-tuning-left:53%;--hangar-tuning-gap:calc(8px * var(--sf-subpage-space));
 --hangar-tuning-action-h:calc(150px * var(--sf-subpage-fit))
}
/* Tuning preview spans the workspace for its right-side action HUD, but must not create
   a stacking context above the right catalog. Only the action HUD belongs above it. */
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .customPreview{
 z-index:auto!important;pointer-events:none!important
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #customPreviewMount{
 top:var(--hangar-header-h)!important;left:0!important;right:auto!important;bottom:42%!important;
 width:var(--hangar-tuning-left)!important;height:auto!important;
 background:radial-gradient(ellipse at center,#102834,#030c13 75%)!important;
 border-right:var(--hangar-line) solid rgba(111,157,177,.22)!important;
 pointer-events:auto!important
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarStageHud{z-index:24!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarTuningSlots{
 position:absolute;z-index:15;left:max(var(--hangar-tuning-gap),var(--sf-safe-area-left,0px));bottom:calc(42% + var(--hangar-tuning-gap));
 width:calc(var(--hangar-tuning-left) - calc(2 * var(--hangar-tuning-gap)));pointer-events:none
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarTuningSlots .hangarPartsSlots{
 position:static!important;width:100%!important;max-width:none!important;
 display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:calc(5px * var(--sf-subpage-fit));pointer-events:none
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarPartsSlots>header{grid-column:1/-1;padding:0;border:0;font-size:var(--sf-type-caption)}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarPartsSlots button{
 display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) auto!important;
 place-items:center!important;gap:0!important;aspect-ratio:1/1!important;width:100%!important;height:auto!important;min-height:0!important;
 padding:calc(3px * var(--sf-subpage-fit))!important;border:var(--hangar-line) solid rgba(130,176,190,.38)!important;
 border-radius:calc(5px * var(--sf-subpage-fit))!important;background:var(--part-grade-slot-fill,rgba(9,27,38,.9))!important;overflow:hidden!important;pointer-events:auto
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarPartsSlots button[aria-pressed="true"]{border-color:#ffca76!important;background:var(--part-grade-slot-fill,rgba(71,52,34,.94))!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarPartSocketArt{height:100%!important;width:100%!important;min-height:0!important;overflow:hidden}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarPartSlotCopy{width:100%;text-align:center!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarPartSlotCopy strong{font-size:var(--sf-type-caption)!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] :is(.hangarPartSlotNumber,.hangarPartSlotCopy small,.hangarPartSocketTier){display:none!important}

html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarPerformancePanel{
 position:absolute!important;display:flex!important;flex-direction:column!important;box-sizing:border-box!important;left:max(var(--hangar-tuning-gap),var(--sf-safe-area-left,0px))!important;
 top:calc(58% + var(--hangar-tuning-gap))!important;right:auto!important;bottom:max(calc(5px * var(--sf-subpage-fit)),var(--sf-safe-area-bottom,0px))!important;
 width:calc(var(--hangar-tuning-left) - calc(2 * var(--hangar-tuning-gap)))!important;height:auto!important;
 min-height:0!important;max-height:none!important;overflow-y:auto!important;overscroll-behavior:contain;
 border:var(--hangar-line) solid rgba(116,169,190,.34)!important;
 background:linear-gradient(155deg,rgba(15,34,47,.97),rgba(5,17,28,.98))!important;
 pointer-events:auto!important;scrollbar-width:thin
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarPerformancePanel .hangarPartsDetails{
 position:relative!important;inset:auto!important;top:auto!important;right:auto!important;
 display:block;width:100%!important;max-width:none!important;max-height:none!important;min-height:0!important;
 margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
 box-shadow:none!important;backdrop-filter:none!important;background:transparent!important;overflow:visible!important
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarPartHero{
 display:flex!important;min-height:calc(38px * var(--sf-subpage-fit))!important;margin:calc(4px * var(--sf-subpage-fit)) 0!important
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarPartHeroArt{
 width:calc(46px * var(--sf-subpage-fit))!important;height:calc(38px * var(--sf-subpage-fit))!important;flex:0 0 auto
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarPartMetricList{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:calc(3px * var(--sf-subpage-fit))!important
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarPartMetric{
 min-height:0!important;padding:calc(4px * var(--sf-subpage-fit))!important
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarPartMetricTrack{
 grid-column:1/-1;grid-row:3;position:relative;height:calc(6px * var(--sf-subpage-fit));background:rgba(75,110,131,.2);overflow:hidden
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarPartMetricTrack i,
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarPartMetricTrack em{
 position:absolute;left:0;top:0;bottom:0;display:block;max-width:100%;border-radius:calc(3px * var(--sf-subpage-fit))
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarPartMetricTrack i{width:var(--part-old);background:#597584}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarPartMetricTrack em{width:var(--part-new);background:rgba(104,214,183,.82);height:50%;top:50%}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarPartMetric[data-delta="loss"] .hangarPartMetricTrack em{background:#ee9494}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .customCatalog{
 left:var(--hangar-tuning-left)!important;right:0!important;top:var(--hangar-header-h)!important;bottom:0!important;
 width:calc(100% - var(--hangar-tuning-left))!important;height:auto!important;min-height:0!important;
 padding:calc(6px * var(--sf-subpage-fit)) max(calc(7px * var(--sf-subpage-fit)),var(--sf-safe-area-right,0px)) calc(var(--hangar-tuning-action-h) + max(calc(8px * var(--sf-subpage-fit)),var(--sf-safe-area-bottom,0px))) calc(7px * var(--sf-subpage-fit))!important;
 display:grid!important;grid-template-rows:var(--hangar-toolbar-h) minmax(0,1fr)!important;gap:calc(4px * var(--sf-subpage-fit))!important;
 border-top:0!important;border-left:var(--hangar-line) solid rgba(100,161,181,.35)!important;
 background:linear-gradient(150deg,#0a1b28,#040f18)!important;backdrop-filter:none!important
}
/* The tuning rail reserves checkout height only for its current cart contents. */
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"]:has(#hangarActionBar[data-cart-count="0"]) .customCatalog{--hangar-tuning-action-h:calc(52px * var(--sf-subpage-fit))}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"]:has(#hangarActionBar[data-cart-count="1"]) .customCatalog{--hangar-tuning-action-h:calc(104px * var(--sf-subpage-fit))}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"]:has(#hangarActionBar[data-cart-count="2"]) .customCatalog{--hangar-tuning-action-h:calc(114px * var(--sf-subpage-fit))}
/* Parts actions occupy two rows even without cart items; reserve their actual dock height. */
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"][data-hangar-category="parts"]:has(#hangarActionBar[data-cart-count="0"]) .customCatalog{--hangar-tuning-action-h:calc(96px * var(--sf-subpage-fit))}
/* A retained Shop cart adds a summary above the two-row Parts action dock. */
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"][data-hangar-category="parts"]:has(#hangarActionBar[data-cart-count="1"]) .customCatalog{--hangar-tuning-action-h:calc(124px * var(--sf-subpage-fit))}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarShelfFrame{
 display:block!important;height:100%!important;min-height:0!important;overflow:hidden!important
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarShelfArrow{display:none!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #customGrid.hangarTuningGrid{
 display:grid!important;grid-template-columns:repeat(auto-fill,minmax(calc(95px * var(--sf-subpage-fit)),1fr))!important;
 grid-auto-rows:calc(112px * var(--sf-subpage-fit))!important;align-items:stretch!important;align-content:start!important;
 justify-content:stretch!important;gap:calc(7px * var(--sf-subpage-fit))!important;
 width:100%!important;height:100%!important;padding:calc(3px * var(--sf-subpage-fit))!important;scroll-padding-bottom:calc(4px * var(--sf-subpage-fit))!important;
 overflow-y:auto!important;overflow-x:hidden!important;scroll-snap-type:none!important;scroll-behavior:auto!important;scrollbar-width:thin!important
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #customGrid.hangarTuningGrid>.hangarCatalogCard{
 width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;
 flex:initial!important;margin:0!important;scroll-snap-align:none!important
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarActionBar{
 z-index:25!important;
 right:max(calc(8px * var(--sf-subpage-fit)),var(--sf-safe-area-right,0px))!important;
 bottom:max(calc(8px * var(--sf-subpage-fit)),var(--sf-safe-area-bottom,0px))!important;
 left:auto!important;top:auto!important;
 /* Account for the right-side safe inset in both offset and width so checkout never crosses the 53% stage boundary. */
 width:calc(100% - var(--hangar-tuning-left) - max(calc(8px * var(--sf-subpage-fit)),var(--sf-safe-area-right,0px)) - calc(8px * var(--sf-subpage-fit)))!important;
 min-width:0!important;max-width:none!important;height:auto!important;min-height:calc(36px * var(--sf-subpage-fit))!important;
 display:flex!important;justify-content:center!important;flex-wrap:wrap!important;pointer-events:auto!important
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarActionBar .hangarStoreSelectionInfo{display:none!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarActionBar .hangarActionButtons{display:flex!important;flex-wrap:wrap!important;justify-content:center!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarActionBar .hangarCartCheckout{width:100%!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarActionBar .hangarActionButtons{justify-content:flex-end!important}

/* Battle-box count badges retain their visual rules; MY GEAR geometry stays at the hub layout owner above. */
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="home"] #hangarSectionHub>button{
 position:relative;overflow:hidden
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="home"] #hangarSectionHub .hangarBoxCount{
 position:absolute;right:calc(9px * var(--sf-subpage-fit));top:calc(8px * var(--sf-subpage-fit));
 display:grid;place-items:center;min-width:calc(24px * var(--sf-subpage-fit));height:calc(24px * var(--sf-subpage-fit));
 padding:0 calc(5px * var(--sf-subpage-fit));border:1px solid #ffcb78;border-radius:999px;color:#ffeac4;
 background:rgba(98,57,22,.65);font:900 var(--sf-type-label)/1 var(--sf-ui-font-data)
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel:not([data-hangar-section="boxes"]) #hangarBoxPage{display:none!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="boxes"] :is(.customCatalog,#hangarPerformancePanel,#hangarActionBar,#hangarTuningSlots){display:none!important}
html:root[data-sf-viewport-policy="unified"] body #customize #hangarBoxPage{
 position:absolute;z-index:27;top:var(--hangar-header-h);bottom:0;left:0;right:0;
 display:grid;place-items:center;overflow:auto;pointer-events:auto;
 background:linear-gradient(100deg,rgba(2,12,21,.91),rgba(6,23,33,.77) 57%,rgba(2,9,17,.94));
}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarBoxWorkbench{
 --box-factor:var(--sf-subpage-fit);width:min(80%,calc(540px * var(--box-factor)));
 min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
 gap:calc(8px * var(--box-factor));padding:calc(12px * var(--box-factor));
 color:#e6f7ff;text-align:center;font-family:var(--sf-ui-font-body)
}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarBoxWorkbench p{margin:0;font:600 var(--sf-type-body-sm)/1.4 var(--sf-ui-font-body)}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarBoxEyebrow{font:800 var(--sf-type-caption) var(--sf-ui-font-data);letter-spacing:.17em;color:#83b0c6}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarBoxWorkbench h2{font:950 var(--sf-type-heading) var(--sf-ui-font-display);letter-spacing:.08em;margin:0;color:#ffe2a2}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarBoxObject{
 --box-size:calc(154px * var(--box-factor));width:var(--box-size);height:calc(var(--box-size) * .95);
 position:relative;flex:0 0 auto;
 background:url("./assets/ui/icons/winter-parts-box.webp?v=c1e9e806b3d38119") center / contain no-repeat;
 filter:drop-shadow(0 calc(13px * var(--box-factor)) calc(13px * var(--box-factor)) rgba(0,0,0,.65))
}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarBoxObject[data-opened="true"]{animation:sfBoxPrizeChest .68s ease-out both}
html:root[data-sf-viewport-policy="unified"] body #customize :is(.hangarBoxDescription,.hangarBoxBalance){margin:0;font:800 var(--sf-type-body-sm)/1.3 var(--sf-ui-font-body);color:#b6d1de}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarBoxBalance strong{color:#ffdf99;margin-left:calc(8px * var(--box-factor));font:950 var(--sf-type-heading)/1 var(--sf-ui-font-data)}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarBoxActions{display:flex;flex-wrap:wrap;justify-content:center;gap:calc(10px * var(--box-factor))}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarBoxActions>[data-hangar-box-action="openAll"]{background:linear-gradient(#ffb36b,#d9682c);border-color:#ffd0a1}
html:root[data-sf-viewport-policy="unified"] body #customize :is(.hangarBoxWorkbench,.hangarBoxActions)>button{
 min-width:calc(182px * var(--box-factor));min-height:var(--sf-control-height-md);
 border:1px solid #ffe2a1;border-radius:calc(5px * var(--box-factor));background:linear-gradient(#f6d48c,#cf973c);
 color:#1a1c23;font:950 var(--sf-type-label)/1 var(--sf-ui-font-display);cursor:pointer
}
.hangarPartsWorkbench{font:600 var(--sf-type-caption)/1.4 var(--sf-ui-font-body);color:#bdd5df;padding:var(--sf-space-sm);pointer-events:auto}
.hangarPartsWorkbench summary{cursor:pointer;color:#ffe1a0;font-weight:800}
.hangarPartsWorkbench p{margin:var(--sf-space-sm) 0}
.hangarPartsWorkbench button{font:700 var(--sf-type-caption) var(--sf-ui-font-body);min-height:var(--sf-control-height-sm);padding:var(--sf-space-xs) var(--sf-space-sm);border:1px solid #68899b;border-radius:var(--sf-space-xs);background:#132e3e;color:#e9f8ff;cursor:pointer}
.hangarPartsWorkbench button:disabled{opacity:.4;cursor:default}
.hangarPartWeight{font:700 var(--sf-type-caption) var(--sf-ui-font-data);color:#acc6d4}
.hangarPartWeight[data-overweight="true"]{color:#ff9393}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarBoxWorkbench button:disabled{opacity:.5;cursor:default}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarBoxEmpty{font:750 var(--sf-type-caption)/1.25 var(--sf-ui-font-body);color:#8daab7}
html:root[data-sf-viewport-policy="unified"] body #customize .hangarBoxError{font:800 var(--sf-type-caption)/1.1 var(--sf-ui-font-body);color:#f6a5a5}
/* Read-only weapon telemetry from shared combat/equipment policy. */
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel:not([data-hangar-section="tuning"]) #hangarCombatPreview{display:none!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarCombatPreview{
 position:absolute;z-index:17;left:max(calc(9px * var(--sf-subpage-fit)),var(--sf-safe-area-left,0px));
 top:calc(var(--hangar-header-h) + calc(3px * var(--sf-subpage-fit)));
 width:calc(var(--hangar-tuning-left) - max(calc(9px * var(--sf-subpage-fit)),var(--sf-safe-area-left,0px)) - calc(9px * var(--sf-subpage-fit)));
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:calc(5px * var(--sf-subpage-fit));pointer-events:none
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarCombatWeapon{
 display:flex;flex-direction:column;gap:calc(2px * var(--sf-subpage-fit));min-width:0;
 padding:calc(5px * var(--sf-subpage-fit)) calc(7px * var(--sf-subpage-fit));
 border:1px solid rgba(124,168,194,.31);border-radius:calc(5px * var(--sf-subpage-fit));
 background:linear-gradient(165deg,rgba(8,29,43,.93),rgba(7,19,30,.86))
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarCombatWeapon strong{
 color:#ffe0b5;font:900 var(--sf-type-caption)/1.05 var(--sf-ui-font-body);
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarCombatWeapon span{
 display:flex;justify-content:space-between;gap:calc(3px * var(--sf-subpage-fit));min-width:0;
 color:#9cbacb;font:700 var(--sf-type-caption)/1.1 var(--sf-ui-font-body);white-space:nowrap
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarCombatWeapon b{
 color:#f4f8ff;font:850 var(--sf-type-caption)/1.1 var(--sf-ui-font-data);white-space:nowrap
}

/* Small loadout sockets orbit the actual aircraft preview instead of forming a second equipment rail. */
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarTuningSlots{
 top:calc(var(--hangar-header-h) + calc(5px * var(--sf-subpage-fit)))!important;
 bottom:calc(42% + calc(5px * var(--sf-subpage-fit)))!important;
 left:max(calc(9px * var(--sf-subpage-fit)),var(--sf-safe-area-left,0px))!important;
 width:calc(var(--hangar-tuning-left) - calc(18px * var(--sf-subpage-fit)))!important;
 height:auto!important
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarTuningSlots .hangarPartsSlots{
 position:relative!important;display:block!important;width:100%!important;height:100%!important;pointer-events:none!important
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarPartsSlots>header{display:none!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarSocketGroup{
 position:absolute!important;width:calc(58px * var(--sf-subpage-fit))!important;
 display:flex;flex-direction:column;gap:calc(3px * var(--sf-subpage-fit));pointer-events:none!important;text-align:center
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarSocketGroup[data-socket-group="motor"]{top:24%!important;left:17%!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarSocketGroup[data-socket-group="frame"]{top:24%!important;right:17%!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarSocketGroup[data-socket-group="battery"]{bottom:7%!important;left:17%!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarSocketGroup[data-socket-group="propeller"]{bottom:7%!important;right:17%!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarSocketGroup[data-socket-group="module"]{bottom:8%!important;left:calc(50% - calc(29px * var(--sf-subpage-fit)))!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarSocketHeading{
 display:block;width:100%;color:#aacee0;font:850 var(--sf-type-caption)/1 var(--sf-ui-font-body);
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 4px #07131a
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarTuningSlots .hangarPartsSlots .hangarSocketGroup button{
 position:relative!important;width:100%!important;height:calc(54px * var(--sf-subpage-fit))!important;aspect-ratio:auto!important;
 display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:stretch!important;
 padding:calc(3px * var(--sf-subpage-fit))!important;gap:calc(2px * var(--sf-subpage-fit))!important;
 border:1px solid rgba(141,188,205,.55)!important;pointer-events:auto!important;
 box-shadow:0 calc(3px * var(--sf-subpage-fit)) calc(14px * var(--sf-subpage-fit)) rgba(0,0,0,.66)!important
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarTuningSlots .hangarPartsSlots .hangarSocketGroup .hangarPartSocketArt{
 flex:1 1 auto!important;height:0!important;min-height:0!important;max-height:none!important;overflow:hidden
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarPartSlotName{
 flex:0 0 auto;width:100%;display:block;min-width:0;color:#f1f7ff;
 font:850 var(--sf-type-micro)/1.05 var(--sf-ui-font-body);white-space:normal;overflow:hidden;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarPerformancePanel .hangarPerfHeader{
 padding:calc(3px * var(--sf-subpage-fit)) calc(5px * var(--sf-subpage-fit))!important
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarPerformancePanel .hangarPerfMetrics{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:calc(4px * var(--sf-subpage-fit))!important;min-height:0!important
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarPerformancePanel .hangarPerfMetric{
 min-width:0!important;padding:calc(3px * var(--sf-subpage-fit)) calc(5px * var(--sf-subpage-fit))!important
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarPerformancePanel .hangarPartsDetails{
 margin-top:calc(6px * var(--sf-subpage-fit))!important;
 padding-top:calc(5px * var(--sf-subpage-fit))!important;border-top:1px solid rgba(116,169,190,.28)!important
}

html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarTuningSlots .hangarPartsSlots{
 inset:0 auto auto 0!important;top:0!important;left:0!important;right:auto!important;bottom:auto!important;
 max-width:none!important;max-height:none!important;margin:0!important;padding:0!important
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarTuningSlots .hangarSocketGroup{
 width:calc(58px * var(--sf-subpage-fit))!important
}

/* Compact common aircraft metrics: preserve every metric when FLARES and BOOST join the shared gauges. */
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarPerformancePanel .hangarPerfHeader{
 padding-top:0!important;padding-bottom:calc(3px * var(--sf-subpage-fit))!important;min-height:0!important
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarPerformancePanel .hangarPerfHeader>b{font-size:var(--sf-type-title)!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarPerformancePanel .hangarPerfMetrics{
 gap:calc(3px * var(--sf-subpage-fit))!important
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarPerformancePanel .hangarPerfMetric{
 padding:calc(2px * var(--sf-subpage-fit)) calc(4px * var(--sf-subpage-fit))!important;
 row-gap:calc(2px * var(--sf-subpage-fit))!important;column-gap:calc(3px * var(--sf-subpage-fit))!important
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarPerformancePanel .hangarPerfMetricHead>span{font-size:var(--sf-type-caption)!important;letter-spacing:0!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarPerformancePanel :is(.hangarPerfDelta,.hangarPerfPair){font-size:var(--sf-type-body-sm)!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarPerformancePanel .hangarPerfTrack{height:calc(4px * var(--sf-subpage-fit))!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="paint"][data-hangar-category="airframe"] #hangarPerformancePanel{
 overflow-y:auto!important;scrollbar-width:thin;pointer-events:auto!important
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="paint"][data-hangar-category="airframe"] #hangarPerformancePanel .hangarPerfMetrics{
 gap:calc(2px * var(--sf-subpage-ui))!important
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="paint"][data-hangar-category="airframe"] #hangarPerformancePanel .hangarPerfMetric{
 row-gap:calc(1px * var(--sf-subpage-ui))!important
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="paint"][data-hangar-category="airframe"] #hangarPerformancePanel .hangarPerfTrack{
 height:calc(3px * var(--sf-subpage-ui))!important
}

/* TUNING always shows the same ten aircraft gauges for AIRFRAME, GUN and PARTS selections. */
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarPerformancePanel .hangarPerfMetric{
 display:grid!important
}

/* Tuning sockets (phase 1 refine): a single row docked at the bottom of the stage, in slot order, each with its
   label directly above it. Nothing sits on top of the aircraft and no label can overlap a neighbouring socket. */
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarTuningSlots .hangarPartsSlots{
 display:flex!important;align-items:flex-end!important;justify-content:center!important;
 gap:calc(8px * var(--sf-subpage-fit))!important;padding:0 0 calc(4px * var(--sf-subpage-fit))!important
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarTuningSlots .hangarPartsSlots .hangarSocketGroup[data-socket-group]{
 position:static!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
 flex:0 0 auto!important;width:calc(66px * var(--sf-subpage-fit))!important
}
/* Part cards carry a name line and two trade rows, so the tuning grid rows are a little taller. */
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #customGrid.hangarTuningGrid{grid-auto-rows:calc(148px * var(--sf-subpage-fit))!important}
/* Part card anatomy: artwork in the upper part, name line and trade rows in a solid band below it. The two never overlap. */
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #customGrid.hangarTuningGrid>.hangarPartCard .hangarCatalogVisual{
 position:absolute!important;inset:0 0 auto 0!important;width:100%!important;height:46%!important;padding:calc(5px * var(--sf-subpage-fit))!important
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #customGrid.hangarTuningGrid>.hangarPartCard .hangarCatalogCardCopy{
 position:absolute!important;inset:46% 0 0 0!important;height:auto!important;
 display:flex!important;flex-direction:column!important;justify-content:flex-start!important;gap:calc(3px * var(--sf-subpage-fit))!important;
 padding:calc(5px * var(--sf-subpage-fit)) calc(6px * var(--sf-subpage-fit))!important;text-align:left!important;
 background:linear-gradient(180deg,var(--part-card-copy-top,rgba(20,34,47,.96)),var(--part-card-copy-bottom,rgba(12,24,34,.98)))!important
}

/* Combat info (gun / missile / flare) is one compact line per weapon so the strip stays above the aircraft instead of
   covering its top. On a narrow stage a line may wrap, never taller than the old three-row box. */
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarCombatPreview{align-items:start}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarCombatPreview .hangarCombatWeapon{
 flex-direction:row;flex-wrap:wrap;align-items:baseline;column-gap:calc(7px * var(--sf-subpage-fit));row-gap:calc(1px * var(--sf-subpage-fit));
 padding:calc(3px * var(--sf-subpage-fit)) calc(6px * var(--sf-subpage-fit))
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarCombatPreview .hangarCombatWeapon strong{flex:0 0 auto}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarCombatPreview .hangarCombatWeapon span{flex:0 0 auto;justify-content:flex-start;gap:calc(3px * var(--sf-subpage-fit))}

/* Casual tuning combat read-out uses icons and pips; the flight hexagon displays canonical numeric stats. */
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarCombatPreview{display:flex!important;justify-content:flex-start;gap:calc(8px * var(--sf-subpage-fit))}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarCombatPreview .hangarCombatWeapon{
 flex:0 0 auto;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:calc(5px * var(--sf-subpage-fit));
 padding:calc(3px * var(--sf-subpage-fit)) calc(8px * var(--sf-subpage-fit)) calc(3px * var(--sf-subpage-fit)) calc(4px * var(--sf-subpage-fit));
 border-radius:calc(16px * var(--sf-subpage-fit))
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarCombatIcon{width:calc(24px * var(--sf-subpage-fit));height:calc(24px * var(--sf-subpage-fit));object-fit:contain;display:block}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarCombatPips{display:inline-flex;gap:calc(3px * var(--sf-subpage-fit))}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarCombatPips i{width:calc(6px * var(--sf-subpage-fit));height:calc(12px * var(--sf-subpage-fit));border-radius:calc(2px * var(--sf-subpage-fit));background:#e6f1f6}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarCombatPips i[data-pip="added"]{background:#7ff0b6;box-shadow:0 0 calc(6px * var(--sf-subpage-fit)) rgba(127,240,182,.7)}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarCombatPips i[data-pip="removed"]{background:transparent;outline:1px dashed #ff9d94;outline-offset:-1px}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarCombatAmmoCount{align-items:center;font:850 var(--sf-type-caption)/1.1 var(--sf-ui-font-data)}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarCombatAmmoCount i{font-style:normal;color:#9cbacb}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarCombatAmmoCount b[data-direction="up"]{color:#7ff0b6}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarCombatAmmoCount b[data-direction="down"]{color:#ff9d94}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarPerformancePanel :is(.hangarPerfPair,.hangarPerfDelta){display:none!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarPerformancePanel .hangarPartsDetails{display:none!important}
/* Hexagon read-out of the six airframe traits. */
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarPerformancePanel .hangarPerfRadar{display:block;width:100%;height:calc(100% - calc(40px * var(--sf-subpage-fit)));margin:0 auto;overflow:visible}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarRadarRing{fill:rgba(120,170,195,.05);stroke:rgba(140,190,212,.28);stroke-width:1}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarRadarSpoke{stroke:rgba(140,190,212,.2);stroke-width:1}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarRadarCurrent{fill:rgba(67,232,255,.3);stroke:#43e8ff;stroke-width:2;stroke-linejoin:round}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarRadarPreview{fill:rgba(255,209,102,.14);stroke:#ffd166;stroke-width:2;stroke-dasharray:5 3;stroke-linejoin:round}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarRadarLabel{fill:#cfe3ee;font:800 12px/1 var(--sf-ui-font-body)}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarRadarLabel.is-up{fill:#7ff0b6}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarRadarLabel.is-down{fill:#ff9d94}

/* Unified tuning stage: the left side is one scene, not a stage on top of a separate stats box. The aircraft owns the
   upper part; along the bottom the hexagon sits on the left and the five sockets on the right, both drawn straight on
   the stage with no panel frame. */
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #customPreviewMount{bottom:0!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarPerformancePanel{
 top:auto!important;height:38%!important;
 width:calc(var(--hangar-tuning-left) * .44)!important;
 padding:0 calc(4px * var(--sf-subpage-fit))!important;
 background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;overflow:visible!important
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarPerformancePanel::before,html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarPerformancePanel::after{display:none!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarPerformancePanel .hangarPerfHeader{border:0!important;padding:0 calc(4px * var(--sf-subpage-fit))!important;min-height:0!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarPerformancePanel .hangarPerfHeader small{display:none!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarPerformancePanel .hangarPerfRadar{height:calc(100% - calc(26px * var(--sf-subpage-fit)))!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarTuningSlots{
 top:auto!important;bottom:max(calc(5px * var(--sf-subpage-fit)),var(--sf-safe-area-bottom,0px))!important;height:38%!important;
 left:calc(var(--hangar-tuning-left) * .44)!important;width:calc(var(--hangar-tuning-left) * .56 - calc(8px * var(--sf-subpage-fit)))!important
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarTuningSlots .hangarPartsSlots{align-items:center!important;align-content:center!important;flex-wrap:nowrap!important;gap:calc(6px * var(--sf-subpage-fit))!important;padding:0!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarTuningSlots .hangarPartsSlots .hangarSocketGroup[data-socket-group]{flex:0 1 auto!important;width:min(calc(60px * var(--sf-subpage-fit)),calc((100% - calc(24px * var(--sf-subpage-fit))) / 5))!important}

/* Tuning stage, final arrangement: the aircraft sits small at the centre of the trait hexagon, the five sockets form
   one row below it and the weapon chips close the stage at the bottom. */
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarPerformancePanel{
 top:calc(var(--hangar-header-h) + calc(4px * var(--sf-subpage-fit)))!important;bottom:36%!important;height:auto!important;
 width:calc(var(--hangar-tuning-left) - max(var(--hangar-tuning-gap),var(--sf-safe-area-left,0px)) - var(--hangar-tuning-gap))!important;pointer-events:none!important;
 padding-top:calc(8px * var(--sf-subpage-fit))!important
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarRadarCurrent{fill:rgba(67,232,255,.13)}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarRadarPreview{fill:rgba(255,209,102,.08)}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarTuningSlots{
 left:max(var(--hangar-tuning-gap),var(--sf-safe-area-left,0px))!important;
 width:calc(var(--hangar-tuning-left) - max(var(--hangar-tuning-gap),var(--sf-safe-area-left,0px)) - var(--hangar-tuning-gap))!important;
 top:auto!important;height:calc(86px * var(--sf-subpage-fit))!important;bottom:calc(48px * var(--sf-subpage-fit))!important
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarCombatPreview{
 top:auto!important;bottom:max(calc(8px * var(--sf-subpage-fit)),var(--sf-safe-area-bottom,0px))!important;justify-content:center!important
}

/* Larger hexagon: it takes the whole stage above the socket row. The weapon chips move to a column down the right
   edge of the stage, and the hexagon keeps clear of that column. */
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarPerformancePanel{
 bottom:calc(100px * var(--sf-subpage-fit))!important;
 padding-right:calc(96px * var(--sf-subpage-fit))!important
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarTuningSlots{bottom:max(calc(8px * var(--sf-subpage-fit)),var(--sf-safe-area-bottom,0px))!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarCombatPreview{
 top:calc(var(--hangar-header-h) + calc(10px * var(--sf-subpage-fit)))!important;bottom:auto!important;
 flex-direction:column!important;align-items:flex-end!important;justify-content:flex-start!important;gap:calc(6px * var(--sf-subpage-fit))!important
}

/* The aircraft is drawn in front of the hexagon: the hexagon layer sits behind the (transparent) preview canvas and
   carries the stage backdrop. Nothing is reserved for the weapon column, which simply overlays the stage. */
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #customPreviewMount{z-index:9!important;background:transparent!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarPerformancePanel{z-index:0!important;padding-right:calc(4px * var(--sf-subpage-fit))!important;padding-top:0!important}
/* The tuning backdrop belongs to the bounded stage, not to an overflow-visible radar pseudo-element.
   A 100vh radar backdrop could paint over the right catalog in Mobile Safari. */
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .customTop{
 background:radial-gradient(ellipse at 50% 38%,#102834,#030c13 75%) left top / var(--hangar-tuning-left) 100% no-repeat!important
}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarPerformancePanel::before{display:none!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarPerformancePanel .hangarPerfHeader{position:absolute!important;z-index:1;top:calc(6px * var(--sf-subpage-fit));left:calc(6px * var(--sf-subpage-fit))}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarPerformancePanel .hangarPerfRadar{height:100%!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarRadarLabel{font:800 6.5px/1 var(--sf-ui-font-body)}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarRadarValue{font:700 6px/1 var(--sf-ui-font-data)}
/* The resource bar's lower edge used to be hidden under the opaque preview; the tuning stage is transparent, so the
   bar is clipped to the header band here. */
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .sfShopEconomyBar{clip-path:inset(0 0 calc(100% - var(--hangar-header-h) + calc(6px * var(--sf-subpage-fit))) 0)!important}
/* The stage HUD must not form its own stacking layer here: its children are ordered individually against the preview
   canvas, so the hexagon can sit behind the aircraft while sockets, weapon chips and actions stay in front of it. */
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] .hangarStageHud{z-index:auto!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarTuningSlots{z-index:15!important}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #hangarCombatPreview{z-index:17!important}


/* BOXES keeps its server-pending chest glow and one confirmed dissolve before
   the existing global Reward Presentation owner shows the receipt. No extra clock. */
html:root[data-sf-viewport-policy="unified"] body #customize .hangarBoxWorkbench[data-opening="true"] .hangarBoxObject{
 animation:sfBoxWaiting 1.05s ease-in-out infinite
}
@keyframes sfBoxWaiting{
 0%,100%{transform:scale(1) rotate(-1deg);filter:drop-shadow(0 10px 10px rgba(0,0,0,.7))}
 50%{transform:scale(1.08) rotate(2deg);filter:drop-shadow(0 0 18px rgba(255,216,136,.65))}
}
@keyframes sfBoxPrizeChest{
 0%{opacity:1;transform:scale(1)}
 50%{opacity:1;transform:scale(1.18)}
 100%{opacity:0;transform:scale(1.8)}
}
@media (prefers-reduced-motion:reduce){
 html:root[data-sf-viewport-policy="unified"] body #customize .hangarBoxWorkbench[data-opening="true"] .hangarBoxObject,
 html:root[data-sf-viewport-policy="unified"] body #customize .hangarBoxObject[data-opened="true"]{animation:none;opacity:0}
}

/* Long v3 combinations wrap inside part cards without disappearing behind the action dock. */
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="tuning"] #customGrid.hangarTuningGrid>.hangarPartCard .hangarPartCardHead strong{
 white-space:normal!important;overflow:hidden!important;text-overflow:clip!important;word-break:keep-all!important;
 display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
 line-height:1.15!important
}
/* Career-locked Hangar sections stay visible as upcoming goals. */
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="home"] #hangarSectionHub>button:disabled{opacity:.55;cursor:not-allowed;border-color:rgba(157,183,194,.3)}
html:root[data-sf-viewport-policy="unified"] body #customize .customPanel[data-hangar-section="home"] #hangarSectionHub .hangarSectionUnlock{color:#ffcf4a;font:800 var(--sf-type-label) var(--sf-ui-font-body)}

/* TUNING-only materials balance consumes the authoritative Parts Client snapshot. */
html:root[data-sf-viewport-policy="unified"] body #customize .sfUnifiedCommandResource.materials[hidden]{display:none!important}
html:root[data-sf-viewport-policy="unified"] body #customize .sfUnifiedCommandResource.materials b{color:#a8e9ff}
html:root[data-sf-viewport-policy="unified"] body #customize .sfUnifiedMaterialsGlyph{display:inline-flex;align-items:center;justify-content:center;width:calc(22px * var(--sf-subpage-ui));height:calc(22px * var(--sf-subpage-ui));color:#6de5f6}
html:root[data-sf-viewport-policy="unified"] body #customize .sfUnifiedMaterialsGlyph svg{width:100%;height:100%;fill:rgba(48,155,196,.18);stroke:currentColor;stroke-width:1.9;stroke-linejoin:round}
