/* Jetline cosmetics: the visible side of every Cosmetic Store item (see ng/cosmetics.js).
   Loaded after ng/game.css. Every rule is keyed on an equipped item's body class (theme-<id>, cosmetic-<category>-<id>),
   so with nothing equipped the command centre looks exactly as before. Appearance only. */

/* ---------- Old minimal accents (ng/game.css "Cosmetic accents") neutralised: each item now has a real effect ---------- */
body.v9[class*="cosmetic-livery-"] #v9Fleet .v9-panel{border-top:1px solid var(--c-border)!important}
body.v9[class*="cosmetic-livery-"] #fleet .plane{border-top:1px solid var(--line)!important}
body.v9.cosmetic-badge-founder-badge-set .v9-topbar{box-shadow:0 1px 0 rgba(16,24,40,.02)}
body.v9.cosmetic-uniform-operations-uniforms #staff .staff-card{box-shadow:none!important}

/* ---------- Store: accurate previews (JetCosmetics.previewHtml) ---------- */
body.v9 .p4-cosmetic-body p.p4-scope{flex:none}
body.v9 .jl-preview{position:relative;height:112px;flex:none;overflow:hidden;border-bottom:1px solid var(--c-border);background:#0a1428}
body.v9 .jl-preview>svg,body.v9 .jl-preview-sky>svg{display:block;width:100%;height:100%}
body.v9 .jl-preview-sky{position:absolute;inset:0;background:linear-gradient(180deg,#bcd3ea 0%,#dce8f4 70%,#e9eff5 100%)}
body.v9 .jl-preview-tag{position:absolute;left:8px;bottom:8px;padding:2px 7px;border-radius:999px;background:rgba(8,12,20,.72);color:#fff;font:600 10.5px/1.5 var(--font);letter-spacing:.06em;text-transform:uppercase}

/* ---------- Themes: the Today deck (dashboard) ---------- */
body.v9.theme-midnight-runway .ng-deck{--deck-ink:#e9edf2;--deck-ink-2:#b9c2ce;--deck-ink-3:#8f9aaa;--deck-line:rgba(160,180,200,.15);--deck-c1:#1c2533;--deck-c2:#0e1115;--deck-border:#2a313b;--deck-head:#ffffff;--deck-key:#ffffff;--deck-accent:#7aaeff;--deck-live:#f2b22e;--deck-hover:rgba(160,180,200,.07);--deck-track:rgba(160,180,200,.18);--deck-badge:rgba(160,180,200,.12);--deck-pos:#5ad6b6;--deck-neg:#ff8a80}
body.v9.theme-radar-green .ng-deck{--deck-ink:#e6efea;--deck-ink-2:#b8cabf;--deck-ink-3:#8fa398;--deck-line:rgba(63,207,142,.16);--deck-c1:#123026;--deck-c2:#0a120f;--deck-border:#24332d;--deck-head:#f2fff8;--deck-key:#f2fff8;--deck-accent:#3fcf8e;--deck-live:#e8c547;--deck-hover:rgba(63,207,142,.07);--deck-track:rgba(63,207,142,.18);--deck-badge:rgba(63,207,142,.12);--deck-pos:#6be3ab;--deck-neg:#ff8f83}
body.v9.theme-executive-black .ng-deck{--deck-ink:#efede8;--deck-ink-2:#c9c5bb;--deck-ink-3:#9a958a;--deck-line:rgba(201,162,74,.17);--deck-c1:#211d15;--deck-c2:#09090b;--deck-border:#3a3324;--deck-head:#fff8e6;--deck-key:#fff8e6;--deck-accent:#ddb862;--deck-live:#e0b25a;--deck-hover:rgba(201,162,74,.07);--deck-track:rgba(201,162,74,.2);--deck-badge:rgba(201,162,74,.12);--deck-pos:#6bd3b0;--deck-neg:#ff8a7f}
/* Terminal Light: the deck becomes an airport departures display (black board, signage-yellow times). */
body.v9.theme-terminal-light .ng-deck{--deck-ink:#f1ede2;--deck-ink-2:#d4cfc2;--deck-ink-3:#a8a291;--deck-line:rgba(243,195,22,.15);--deck-c1:#2a2925;--deck-c2:#0d0d0c;--deck-border:#2c2b26;--deck-head:#ffffff;--deck-key:#f3c316;--deck-accent:#f3c316;--deck-live:#f3c316;--deck-hover:rgba(243,195,22,.07);--deck-track:rgba(241,237,226,.18);--deck-badge:rgba(241,237,226,.12);--deck-pos:#6fdcaa;--deck-neg:#ff8a7f}
body.v9[class*="theme-"] .ng-deck{background:radial-gradient(90% 120% at 18% 40%,var(--deck-c1) 0%,var(--deck-c2) 60%);border-color:var(--deck-border)}
body.v9[class*="theme-"] .ng-deck-board-head h2,body.v9[class*="theme-"] .ng-deck-board .v9-empty b{color:var(--deck-head)!important}
body.v9[class*="theme-"] .ng-board-time{color:var(--deck-key)!important}
body.v9[class*="theme-"] .ng-board-no{color:var(--deck-head)!important}
body.v9[class*="theme-"] .ng-board tbody tr:hover td,body.v9[class*="theme-"] .ng-board tbody tr:focus-visible td{background:var(--deck-hover)}
body.v9[class*="theme-"] .ng-board tbody tr:focus-visible{outline-color:var(--deck-accent)}
body.v9[class*="theme-"] .ng-board-prog{background:var(--deck-track)}
body.v9[class*="theme-"] .ng-board-prog i{background:var(--deck-live)}
body.v9[class*="theme-"] .ng-board .status-badge{background:var(--deck-badge)}
body.v9[class*="theme-"] .ng-board .status-badge:is(.in-flight,.departed,.boarding){color:var(--deck-live)}
body.v9[class*="theme-"] .ng-strip .v9-kpi{color:var(--deck-head)}
body.v9[class*="theme-"] .ng-strip .v9-kpi:hover{background:var(--deck-hover)}
body.v9[class*="theme-"] .ng-strip .v9-kpi-value.v9-pos{color:var(--deck-pos)!important}
body.v9[class*="theme-"] .ng-strip .v9-kpi-value.v9-neg{color:var(--deck-neg)!important}
body.v9[class*="theme-"] .ng-strip .v9-xpbar{background:var(--deck-track)}
body.v9[class*="theme-"] .ng-strip .v9-xpbar i{background:var(--deck-accent)}
body.v9[class*="theme-"] .ng-strip .v9-spark path{stroke:var(--deck-accent)}
body.v9[class*="theme-"] .ng-strip .v9-spark path.area{fill:color-mix(in srgb,var(--deck-accent) 15%,transparent)}
body.v9[class*="theme-"] .ng-globe-tip{background:color-mix(in srgb,var(--deck-c2) 94%,transparent);border-color:var(--deck-line)}

/* ---------- Globe tokens (read by ng/network-globe.js; unset = the original chart colours) ---------- */
body.v9.theme-midnight-runway{--globe-ocean:#0b0f15;--globe-rim:#3d6fb8;--globe-grid:#232b36;--globe-coast:#8fa9c9;--globe-profit:#5ad6b6;--globe-loss:#ff8a80;--globe-unflown:#8f9aaa;--globe-hub:#ffffff;--globe-airport:#c8d3e0;--globe-live:#f2b22e;--globe-bg:radial-gradient(80% 90% at 50% 45%,#1c2533 0%,#0b0d10 70%)}
body.v9.theme-radar-green{--globe-ocean:#04100b;--globe-rim:#1f9e6a;--globe-grid:#10392a;--globe-coast:#4fd69a;--globe-profit:#6be3ab;--globe-loss:#ff8f83;--globe-unflown:#7d978a;--globe-hub:#f2fff8;--globe-airport:#b9f0d4;--globe-live:#e8c547;--globe-bg:radial-gradient(80% 90% at 50% 45%,#123026 0%,#050b08 70%)}
body.v9.theme-executive-black{--globe-ocean:#0a0a0c;--globe-rim:#8a6a2c;--globe-grid:#2a2418;--globe-coast:#c9a24a;--globe-profit:#6bd3b0;--globe-loss:#ff8a7f;--globe-unflown:#9a958a;--globe-hub:#fff8e6;--globe-airport:#efe3c2;--globe-live:#e0b25a;--globe-bg:radial-gradient(80% 90% at 50% 45%,#211d15 0%,#050506 70%)}
body.v9.theme-terminal-light{--globe-ocean:#121210;--globe-rim:#8c7a3a;--globe-grid:#2a2925;--globe-coast:#e9e5da;--globe-profit:#6fdcaa;--globe-loss:#ff8a7f;--globe-unflown:#a8a291;--globe-hub:#f3c316;--globe-airport:#f1ede2;--globe-live:#ff9f1a;--globe-bg:radial-gradient(80% 90% at 50% 45%,#2a2925 0%,#0d0d0c 70%)}
body.v9[class*="theme-"] .ng-map-globe{background:var(--globe-bg)}
/* The 2D deck chart (WebGL off or effects reduced) follows the same tokens. */
body.v9 .ng-deck .ng-mini-route.profit{stroke:var(--globe-profit,#5fd3a2)}
body.v9 .ng-deck .ng-mini-route.loss{stroke:var(--globe-loss,#ff8a7f)}
body.v9 .ng-deck .ng-mini-route.unflown{stroke:var(--globe-unflown,#9fb4d3)}
body.v9 .ng-deck .ng-mini-ap{fill:var(--globe-airport,#c9d8ee)}
body.v9 .ng-deck .ng-mini-ap.hub{fill:var(--globe-hub,#fff);stroke:var(--deck-c2,#0a1428)}
body.v9 .ng-deck .ng-mini-live{fill:var(--globe-live,#f2b22e);stroke:var(--deck-c2,#0a1428)}

/* ---------- Night Operations Map: near-black ocean, cyan routes, amber airports (beats any theme on maps) ---------- */
body.v9.cosmetic-map-night-operations-map{--globe-ocean:#01060d;--globe-rim:#0f8fbf;--globe-grid:#0b3346;--globe-coast:#2cc4ea;--globe-profit:#3fdcff;--globe-loss:#ff6f91;--globe-unflown:#5f86a3;--globe-hub:#ffd98a;--globe-airport:#ffb547;--globe-live:#ffffff;--globe-bg:radial-gradient(80% 90% at 50% 45%,#06263a 0%,#01060d 72%)}
body.v9.cosmetic-map-night-operations-map .ng-map-globe{background:var(--globe-bg)}
body.v9.cosmetic-map-night-operations-map .ng-deck-globe{background:radial-gradient(85% 90% at 50% 42%,#06263a 0%,#01060d 75%)}
body.v9.cosmetic-map-night-operations-map .ng-deck .ng-globe-caption{color:#9fc7da}
/* The 2D chart: tokens scoped to the map stage, so its legend, zoom and tips turn night as well. */
body.v9.cosmetic-map-night-operations-map .v9-map-stage{
  --c-map-ocean:#02070d;--c-map-land:#0a1824;--c-map-border:#1f7a99;--c-map-grid:rgba(44,196,234,.11);--c-map-airport:#c98a2e;
  --c-surface:#07121c;--c-surface-2:#0b1824;--c-surface-3:#0f2130;--c-border:#16374a;--c-border-strong:#21506a;
  --c-text:#e8f6ff;--c-text-2:#b6d0e0;--c-text-3:#8aa9bd;--c-good:#3fdcff;--c-bad:#ff6f91;--c-live:#ffffff;--c-accent:#7fe8ff;
  background:#02070d;color-scheme:dark}
body.v9.cosmetic-map-night-operations-map .m-border{opacity:.6}
body.v9.cosmetic-map-night-operations-map .m-route.profit{stroke:#3fdcff}
body.v9.cosmetic-map-night-operations-map .m-route.loss{stroke:#ff6f91}
body.v9.cosmetic-map-night-operations-map .m-route.unflown{stroke:#5f86a3}
body.v9.cosmetic-map-night-operations-map .m-ap{fill:#c98a2e;opacity:.5}
body.v9.cosmetic-map-night-operations-map .m-ap.net{fill:#ffb547;stroke:#02070d;opacity:1}
body.v9.cosmetic-map-night-operations-map .m-ap.hub{fill:#ffd98a;stroke:#ff9f1a;opacity:1}
body.v9.cosmetic-map-night-operations-map .m-ap:hover{fill:#ffe2a6;opacity:1}
body.v9.cosmetic-map-night-operations-map .m-label{fill:#e8f6ff;stroke:#0a1824}
body.v9.cosmetic-map-night-operations-map .m-flight path{fill:#ffffff;stroke:#02070d}
body.v9.cosmetic-map-night-operations-map .m-flight.selected path{fill:#7fe8ff}
body.v9.cosmetic-map-night-operations-map .m-trail{stroke:#ffffff}
body.v9.cosmetic-map-night-operations-map .lg-plane{border-bottom-color:#ffffff}
body.v9.cosmetic-map-night-operations-map .ng-deck .ng-mini-ap.hub,body.v9.cosmetic-map-night-operations-map .ng-deck .ng-mini-live{stroke:#01060d}

/* ---------- Liveries: tail mark beside each aircraft in My Fleet (image token set by ng/cosmetics.js) ---------- */
body.v9[class*="cosmetic-livery-"] #v9FleetTable tr[data-uid]>td:first-child>.v9-code::before,
body.v9[class*="cosmetic-livery-"] #fleetList .owned-aircraft .registration::before{content:"";display:inline-block;width:24px;height:18px;margin-right:7px;vertical-align:-4px;border-radius:5px;background:var(--jl-tailmark) center/cover no-repeat,linear-gradient(180deg,#bcd3ea,#e9eff5);box-shadow:inset 0 0 0 1px rgba(16,24,40,.18)}

/* ---------- Premium Cabin Pack: seat materials in the cabin editor and on aircraft pages ---------- */
body.v9.cosmetic-cabin-premium-cabin-pack .cab9-Y{background:repeating-linear-gradient(45deg,#3d4f66 0 3px,#46597232 3px 6px),#3d4f66!important}
body.v9.cosmetic-cabin-premium-cabin-pack .cab9-W{background:linear-gradient(180deg,#2a8287,#1f6f73 55%,#195b5e)!important}
body.v9.cosmetic-cabin-premium-cabin-pack .cab9-J{background:linear-gradient(180deg,#8e2c41,#7a2335 55%,#641c2b)!important;box-shadow:inset 0 0 0 1px rgba(224,184,106,.55)}
body.v9.cosmetic-cabin-premium-cabin-pack .cab9-F{background:repeating-linear-gradient(90deg,#6b4423 0 5px,#7a5030 5px 7px),#6b4423!important;box-shadow:inset 0 0 0 1px #c9a24a}
body.v9.cosmetic-cabin-premium-cabin-pack .cab9-seg{border-right-color:#efe6d2}
body.v9 .cab9-finish{display:grid;gap:6px;padding:10px 12px;border-radius:10px;background:#201b14;border:1px solid #57482a}
body.v9 .cab9-finish-head{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;color:#e3d6b8}
body.v9 .cab9-finish-head b{display:inline-flex;align-items:center;gap:6px;color:#f1cf6e;font-weight:700;letter-spacing:.04em;text-transform:uppercase;font-size:11.5px}
body.v9 .cab9-finish-head b::before{content:"";width:8px;height:8px;border-radius:2px;background:#c9a24a;transform:rotate(45deg)}
body.v9 .cab9-finish .jl-seatmap{display:block;width:100%;height:auto;max-height:84px}
body.v9.cosmetic-cabin-premium-cabin-pack .in-cab{color:#fff}
body.v9.cosmetic-cabin-premium-cabin-pack .in-cab.first{background:repeating-linear-gradient(90deg,#6b4423 0 6px,#77502e 6px 8px);box-shadow:inset 0 -3px #c9a24a}
body.v9.cosmetic-cabin-premium-cabin-pack .in-cab.business{background:linear-gradient(180deg,#8e2c41,#6f2031)}
body.v9.cosmetic-cabin-premium-cabin-pack .in-cab.premiumEconomy{background:linear-gradient(180deg,#2a8287,#1b6266)}
body.v9.cosmetic-cabin-premium-cabin-pack .in-cab.economy{background:repeating-linear-gradient(45deg,#3d4f66 0 3px,#44566e 3px 6px)}
body.v9.cosmetic-cabin-premium-cabin-pack .in-cabin{border-color:#c9a24a}

/* ---------- Operations Uniforms: a uniform figure per role group on the Staff page ---------- */
body.v9 .jl-uni{display:inline-flex;align-items:flex-end;justify-content:center;flex:none;width:24px;height:24px;margin-right:8px;vertical-align:middle;border-radius:7px;background:var(--c-surface-3);border:1px solid var(--c-border);overflow:hidden}
body.v9 .jl-uni svg{width:20px;height:22px;display:block}
body.v9 .jl-uni-cell>.jl-uni{float:left;width:30px;height:30px;margin:1px 10px 0 0}
body.v9 .jl-uni-cell>.jl-uni svg{width:25px;height:28px}
body.v9 #staffMarket .staff-role-title{display:flex;align-items:center}
body.v9 #staffOverview .role-meter .row>span:first-child{display:inline-flex;align-items:center}
body.v9 #staffOverview .jl-uni{width:20px;height:20px;margin-right:6px}
body.v9 #staffOverview .jl-uni svg{width:17px;height:19px}

/* ---------- Founder Badge Set: the badge beside the airline name (ui-shell-9.js) ---------- */
body.v9 .jl-founder{display:none}
@media (min-width:521px){body.v9.cosmetic-badge-founder-badge-set .v9-airline{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:10px;align-items:center}}  /* phones hide the airline name block, badge included */
@media (max-width:700px){body.v9.cosmetic-badge-founder-badge-set .jl-founder{width:26px;height:26px}}
body.v9.cosmetic-badge-founder-badge-set .jl-founder{display:block;grid-row:1/span 2;width:30px;height:30px;border-radius:50%;box-shadow:0 0 0 2px var(--c-surface),0 0 0 3px rgba(201,162,74,.55)}
body.v9.cosmetic-badge-founder-badge-set .jl-founder svg{display:block;width:100%;height:100%}
body.v9.cosmetic-badge-founder-badge-set .v9-airline-name,body.v9.cosmetic-badge-founder-badge-set .v9-airline-sub{grid-column:2}

/* ---------- Route Opening Pack: decorative celebration (never takes input; skipped with reduced effects) ---------- */
.jl-sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important}
.jl-celebrate,.jl-celebrate *{pointer-events:none!important}
.jl-celebrate{position:fixed;z-index:2147483000;left:50%;top:calc(var(--topbar-h,60px) + 18px);width:min(440px,calc(100vw - 32px));transform:translateX(-50%);animation:jl-cel-life 1.9s cubic-bezier(.2,.7,.2,1) both}
.jl-cel-card{display:grid;gap:2px;padding:10px 14px 14px;border-radius:14px;background:radial-gradient(120% 140% at 50% 0%,#17305a 0%,#0a1428 70%);border:1px solid rgba(242,178,46,.45);box-shadow:0 24px 60px rgba(6,13,28,.45),0 0 0 1px rgba(255,255,255,.04) inset;color:#fff;overflow:hidden}
.jl-cel-card svg{display:block;width:100%;height:auto;overflow:visible}
.jl-cel-text{display:flex;justify-content:center;align-items:baseline;gap:10px;font:600 14px/1.3 var(--font,system-ui,sans-serif);text-align:center}
.jl-cel-text b{color:#ffd27a;font-weight:700;letter-spacing:.02em}
.jl-cel-text span{color:#e8eef7;font-variant-numeric:tabular-nums}
.jl-cel-arc{fill:none;stroke:#f2b22e;stroke-width:2.5;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;animation:jl-cel-draw 1.05s .12s cubic-bezier(.45,0,.35,1) forwards}
.jl-cel-ap{fill:#f2b22e}
.jl-cel-ap.b{opacity:0;animation:jl-cel-pop .3s 1.05s ease-out forwards}
.jl-cel-ring{fill:none;stroke:#ffd27a;stroke-width:2;opacity:0;transform-box:fill-box;transform-origin:center;animation:jl-cel-ring .7s 1.1s ease-out forwards}
.jl-cel-plane path,.jl-cel-jet path{fill:#ffffff}
.jl-cel-spark{fill:#ffd27a;opacity:0;transform-box:fill-box;transform-origin:center;animation:jl-cel-spark .6s ease-out forwards}
.jl-cel-runway{fill:#1a2b48;stroke:rgba(143,180,232,.35)}
.jl-cel-light{fill:#f2b22e;opacity:.15;animation:jl-cel-light .35s ease-out forwards}
@keyframes jl-cel-life{0%{opacity:0;transform:translate(-50%,-10px) scale(.97)}12%{opacity:1;transform:translate(-50%,0) scale(1)}80%{opacity:1;transform:translate(-50%,0)}100%{opacity:0;transform:translate(-50%,-6px)}}
@keyframes jl-cel-draw{to{stroke-dashoffset:0}}
@keyframes jl-cel-pop{from{opacity:0}to{opacity:1}}
@keyframes jl-cel-ring{0%{opacity:.9;transform:scale(1)}100%{opacity:0;transform:scale(3.2)}}
@keyframes jl-cel-spark{0%{opacity:0;transform:scale(.3) rotate(0)}50%{opacity:1}100%{opacity:0;transform:scale(1.15) rotate(45deg)}}
@keyframes jl-cel-light{to{opacity:1}}
@media (prefers-reduced-motion:reduce){.jl-celebrate{display:none}}
html.jl-reduced-effects .jl-celebrate{display:none}
