/* Independent Build Lab UI.  The data comes from the official module metadata
   already bundled with this app; this intentionally does not reuse another site's art or markup. */
.build-account-read{grid-column:span 2}.build-account-read>span{display:flex;gap:7px}.build-account-read input{min-width:0;flex:1}.build-account-read .button{margin-top:5px;flex:none}
@media(max-width:650px){.build-account-read{grid-column:auto}}
.build-page{margin-top:8px;color:#dfe9ff}.build-hero{display:flex;justify-content:space-between;gap:24px;padding:30px 32px;background:radial-gradient(circle at 76% 0,#304b87 0,rgba(48,75,135,.1) 28%),linear-gradient(135deg,#101a31,#172b4b);border:1px solid #354c7a;box-shadow:inset 0 -1px 0 rgba(119,160,255,.28)}.build-hero h1{margin:4px 0;font-size:35px;letter-spacing:-1px;color:#fff}.build-hero p{margin:0;color:#aebfdd}.build-hero-actions{display:flex;align-items:center;gap:8px}.build-hero-actions input{width:155px;background:#0f1b32;border-color:#47618d;color:#fff}.build-shell{background:#0d172a;border:1px solid #263d66;border-top:0;padding:22px}.build-select-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.build-select-grid label{color:#a7bbdf}.build-select-grid input,.build-page .catalog-picker-trigger{background:#101d35;border-color:#3a527e;color:#eef4ff}.build-page .catalog-picker-menu{background:#101d35;border-color:#45608f}.build-page .catalog-picker-menu button{color:#e6efff}.build-page .catalog-picker-menu button:hover,.build-page .catalog-picker-menu button.selected{background:#243d70;color:#90b9ff}.build-workspace{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(350px,.9fr);gap:18px;margin-top:22px}.build-loadout,.build-library,.community-builds{border:1px solid #2b426c;background:#111d34;padding:17px}.build-section-heading{display:flex;align-items:start;justify-content:space-between;gap:10px;margin-bottom:13px}.build-section-heading h2{color:#fff;font-size:17px}.build-section-heading p{margin:3px 0 0;color:#9db0cf;font-size:12px}.loadout-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px}.loadout-side{min-width:0;border:1px solid #294263;background:#0d172a;padding:12px}.loadout-title{display:flex;justify-content:space-between;gap:8px;color:#dfe9ff;font-size:13px;padding-bottom:9px;border-bottom:1px solid #263c5e}.loadout-title span{color:#75a7ff;font-size:12px}.loadout-title span.over{color:#ff8290}.empty-loadout{padding:20px 8px;color:#8296b8;font-size:12px}.equipped-module{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid #243956}.equipped-module>div:first-child{min-width:0}.equipped-module b{display:block;color:#e9f0ff;font-size:12px}.equipped-module small{display:block;margin-top:3px;color:#94afd7;font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere}.module-level{display:flex;align-items:center;gap:4px;flex:none}.module-level button{width:22px;height:22px;border:1px solid #46618e;background:#172946;color:#dce9ff;border-radius:4px;cursor:pointer}.module-level span{min-width:35px;color:#a9c8ff;font-size:11px;text-align:center}.module-level .remove-module{border-color:#8c4657;color:#ff9cab}.build-results{margin-top:14px;padding:13px;border:1px solid #294263;background:#0b1527}.build-results h2{color:#fff;font-size:15px;margin-bottom:8px}.result-stat{display:flex;justify-content:space-between;padding:5px 0;border-bottom:1px solid #20334e;color:#a6b9d8;font-size:12px}.result-stat b{color:#74adff}.build-results p{margin:11px 0 0;color:#aac0e4;font-size:12px}.library-search{width:100%;background:#0d172a!important;border-color:#385174!important;color:#e7f0ff!important}.build-filter-row{display:flex;gap:6px;flex-wrap:wrap;margin:11px 0}.build-filter-row button{padding:5px 8px;border:1px solid #3a527c;border-radius:5px;background:transparent;color:#aebfdd;font:700 11px/1 inherit;cursor:pointer}.build-filter-row button.active{background:#2c60c7;border-color:#4e88f2;color:#fff}.library-count{margin:0 0 7px;color:#8396b7;font-size:11px}.module-library-list{max-height:675px;overflow:auto;padding-right:4px}.library-module{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:9px;align-items:center;padding:9px 3px;border-top:1px solid #263b5b}.library-module img{width:36px;height:36px;object-fit:contain;background:#0a1425}.library-module b{display:block;color:#edf3ff;font-size:12px}.library-module small,.library-module p{display:block;margin:2px 0 0;color:#91a9ce;font-size:11px;line-height:1.35;white-space:pre-wrap;overflow-wrap:anywhere}.build-page .button.outline{background:#152643;color:#93bcff;border-color:#5175af}.build-page .button.primary{background:#356bd4;border-color:#578bf2}.community-builds{margin-top:18px}.community-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.community-grid article{display:grid;gap:4px;padding:12px;border:1px solid #294263;background:#0d172a}.community-grid b{color:#f0f5ff}.community-grid span,.community-grid small{color:#9db0cf;font-size:12px}.community-grid button{justify-self:start;margin-top:4px}.build-page .form-message{color:#9dc0ff}.build-page .form-message.error{color:#ff9ba9!important}
@media(max-width:940px){.build-workspace{grid-template-columns:1fr}.build-hero{align-items:flex-start;flex-direction:column}.build-hero-actions{width:100%;flex-wrap:wrap}.build-hero-actions input{flex:1;min-width:160px}}@media(max-width:650px){.build-shell{padding:12px}.build-select-grid,.loadout-columns,.community-grid{grid-template-columns:1fr}.build-hero{padding:22px 18px}.build-hero h1{font-size:29px}.build-hero-actions .button{flex:1}.module-library-list{max-height:480px}}

/* Build Lab deliberately uses the same light card system as Market and Monitor. */
.build-page{margin-top:0;color:var(--ink)}.build-hero{align-items:center;padding:24px 26px;background:var(--surface);border:1px solid var(--line);border-radius:10px 10px 0 0;box-shadow:var(--shadow)}.build-hero h1{color:var(--ink);font-size:31px}.build-hero p{color:var(--muted)}.build-hero-actions{align-items:center;justify-content:flex-end;flex-wrap:wrap;max-width:520px}.build-hero-actions input,.build-hero-actions textarea{margin:0;background:#fff;border-color:#cbd6e4;color:var(--ink)}.build-hero-actions textarea{width:100%;height:42px;resize:vertical;min-height:42px;padding:8px 10px;border-radius:5px;font:inherit;outline:0}.build-hero-actions textarea:focus{border-color:#5281dc;box-shadow:0 0 0 3px rgba(45,97,202,.11)}.build-shell{padding:22px;background:transparent;border:1px solid var(--line);border-top:0;border-radius:0 0 10px 10px}.build-select-grid label{color:#31435f}.build-select-grid input,.build-page .catalog-picker-trigger{background:#fff;border-color:#cbd6e4;color:var(--ink)}.build-page .catalog-picker-menu{background:#fff;border-color:#cbd6e4;box-shadow:var(--shadow)}.build-page .catalog-picker-menu button{color:#31435f}.build-page .catalog-picker-menu button:hover,.build-page .catalog-picker-menu button.selected{background:var(--blue-pale);color:var(--blue)}.build-workspace{grid-template-columns:minmax(0,1.1fr) minmax(330px,.9fr)}.build-loadout,.build-library,.community-builds,.public-build-panel,.leaderboard-panel,.player-panel{background:var(--surface);border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow)}.build-section-heading h2,.build-results h2,.build-snapshot h2{color:var(--ink)}.build-section-heading p{color:var(--muted)}.loadout-side{background:#fbfcff;border-color:#d9e3f0}.loadout-title{color:#31435f;border-color:#dce3ed}.loadout-title span{color:var(--blue)}.loadout-title span.over{color:var(--red)}.empty-loadout{color:var(--muted)}.equipped-module{border-color:#e1e7f0}.equipped-module b{color:var(--ink)}.equipped-module small{color:#60728c}.module-level button{background:#fff;border-color:#b9c9df;color:#315681}.module-level span{color:#47688f}.module-level .remove-module{border-color:#e4abb5;color:#ce3446}.build-results,.build-snapshot,.tuning-panel{background:#f7f9fc;border:1px solid #dce5f1}.build-results{border-radius:7px}.result-stat{color:#586d89;border-color:#e1e7ef}.result-stat b{color:var(--blue)}.build-results p{color:#526984}.library-search{background:#fff!important;border-color:#cbd6e4!important;color:var(--ink)!important}.build-filter-row button{border-color:#c4d2e4;color:#49627f}.build-filter-row button.active{background:var(--blue);border-color:var(--blue)}.library-count{color:var(--muted)}.library-module{border-color:#e0e7f0}.library-module img{background:#f5f8fc}.library-module b{color:var(--ink)}.library-module small,.library-module p{color:#5a708d}.build-page .button.outline{background:#fff;color:var(--blue);border-color:#afc2e4}.build-page .button.primary{background:var(--blue);border-color:var(--blue)}.build-page .form-message{color:#2a6ab1}.build-page .form-message.error{color:#cf3144!important}.build-snapshot,.tuning-panel{margin-top:14px;padding:13px;border-radius:7px}.snapshot-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:9px}.snapshot-grid article{display:grid;gap:3px;border:1px solid #d8e2ef;background:#fff;padding:10px}.snapshot-grid small{color:var(--muted)}.snapshot-grid b{color:#233b61}.snapshot-grid span{font-size:12px;color:#57708e}.tuning-panel .build-section-heading{margin-bottom:8px}.tuning-nodes{display:flex;flex-wrap:wrap;gap:6px;max-height:240px;overflow:auto}.tuning-nodes button{border:1px solid #c2d1e5;background:#fff;color:#385674;border-radius:5px;padding:6px 8px;font:700 12px/1.2 inherit;cursor:pointer}.tuning-nodes button.active{background:#e9f2ff;color:#205db9;border-color:#6e9ce1}.tuning-nodes button.selected{box-shadow:0 0 0 2px rgba(45,97,202,.2)}.tuning-detail{display:grid;gap:4px;margin-top:10px;padding:10px;border-left:3px solid #2d61ca;background:#fff;color:#526984;font-size:12px}.tuning-detail b{color:#233b61}.public-build-panel,.leaderboard-panel,.player-panel{padding:18px}.community-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.community-grid article{background:#fff;border-color:#d9e3ef;border-radius:7px}.community-grid b{color:#233b61}.community-grid span,.community-grid small,.community-grid p{color:#60728c}.community-grid p{margin:3px 0;font-size:12px;white-space:pre-wrap}.public-author{font-weight:800;color:#2a6ab1!important;font-size:12px}.leaderboard-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:10px;align-items:end}.leaderboard-filters label{margin:0}.ranking-list{display:grid;margin-top:16px;border:1px solid #dce4ee;border-radius:7px;overflow:hidden}.ranking-list article{display:grid;grid-template-columns:50px minmax(140px,.6fr) minmax(220px,1fr) auto;gap:12px;align-items:center;padding:11px 13px;background:#fff;border-bottom:1px solid #e1e7ef}.ranking-list article:nth-child(even){background:#f8faff}.ranking-list article:last-child{border-bottom:0}.ranking-list strong{font-size:18px;color:#2d61ca}.ranking-list b{display:block;color:#253b5c}.ranking-list span,.ranking-list small{display:block;color:#657792;font-size:12px;overflow-wrap:anywhere}.player-panel{margin-top:18px}.player-section{border-top:1px solid #dde5ee;padding:11px 0}.player-section h3{font-size:13px;color:#315681;text-transform:capitalize}.player-section p{margin:5px 0;color:#62738b;font-size:12px;overflow-wrap:anywhere}
@media(max-width:940px){.build-workspace{grid-template-columns:1fr}.leaderboard-filters{grid-template-columns:1fr 1fr}.ranking-list article{grid-template-columns:44px minmax(120px,1fr) auto}.ranking-list small{grid-column:2/-1}}@media(max-width:650px){.build-hero{padding:20px 16px}.build-hero-actions{max-width:none}.build-shell{padding:12px}.snapshot-grid,.community-grid,.leaderboard-filters{grid-template-columns:1fr}.ranking-list article{grid-template-columns:40px 1fr}.ranking-list small{grid-column:1/-1}.ranking-list article .button{grid-column:2}.public-build-panel,.leaderboard-panel,.player-panel{padding:13px}}

.tuning-tree-wrap{margin-top:12px;overflow:auto;border:1px solid #d8e3f0;background:radial-gradient(circle at 30% 20%,#f7fbff,#edf3fa)}.tuning-tree{position:relative;display:grid;grid-template-columns:repeat(18,32px);grid-template-rows:repeat(18,32px);gap:2px;min-width:610px;min-height:610px;padding:18px;background-image:radial-gradient(#b7c7df 1px,transparent 1px);background-size:32px 32px}.tuning-tree button{position:relative;display:grid;place-items:center;width:32px;height:32px;padding:0;border:1px solid #b9cbe1;background:#f5f8fc;color:#65809e;box-shadow:inset 0 0 0 1px #fff;cursor:pointer;overflow:hidden}.tuning-tree button:before{content:'✦';position:absolute;font-size:15px;color:#7892ae}.tuning-tree button i{position:relative;z-index:1;font-style:normal;font-size:14px}.tuning-tree button img{position:relative;z-index:2;width:100%;height:100%;object-fit:contain;background:#eef4fb}.tuning-tree button.active{border-color:#3e92e5;background:#d8efff;box-shadow:0 0 10px rgba(33,133,222,.45)}.tuning-tree button.active:before{color:#167bd0}.tuning-tree button.selected{border-color:#df9d20;box-shadow:0 0 0 2px rgba(234,174,46,.25),0 0 12px rgba(234,174,46,.35)}.tuning-tree button:hover{transform:scale(1.1);z-index:3;border-color:#2d61ca}.tuning-detail{border-left-color:#1a8ce6}

/* The marketplace, monitor, public builds, and Build Lab share one wider desktop canvas. */
.topbar-inner,.app-shell{max-width:1540px}.app-shell{padding-left:24px;padding-right:24px}

/* Do not let the light Build Lab palette leak into the global dark theme. */
html[data-theme="dark"] .build-hero,html[data-theme="dark"] .build-loadout,html[data-theme="dark"] .build-library,html[data-theme="dark"] .public-build-panel,html[data-theme="dark"] .leaderboard-panel,html[data-theme="dark"] .player-panel{background:var(--surface);border-color:var(--line)}html[data-theme="dark"] .build-shell{border-color:var(--line)}html[data-theme="dark"] .build-hero-actions input,html[data-theme="dark"] .build-hero-actions textarea,html[data-theme="dark"] .build-select-grid input,html[data-theme="dark"] .build-page .catalog-picker-trigger,html[data-theme="dark"] .library-search,html[data-theme="dark"] .build-page .button.outline{background:#172237!important;border-color:#455a78!important;color:var(--ink)!important}html[data-theme="dark"] .build-page .catalog-picker-menu{background:#172237;border-color:#455a78}html[data-theme="dark"] .build-page .catalog-picker-menu button{color:var(--ink)}html[data-theme="dark"] .build-page .catalog-picker-menu button:hover,html[data-theme="dark"] .build-page .catalog-picker-menu button.selected{background:var(--blue-pale);color:var(--blue)}html[data-theme="dark"] .build-select-grid label,html[data-theme="dark"] .loadout-title,html[data-theme="dark"] .build-section-heading h2,html[data-theme="dark"] .build-results h2,html[data-theme="dark"] .build-snapshot h2,html[data-theme="dark"] .library-module b,html[data-theme="dark"] .community-grid b{color:var(--ink)}html[data-theme="dark"] .loadout-side,html[data-theme="dark"] .build-results,html[data-theme="dark"] .build-snapshot,html[data-theme="dark"] .tuning-panel{background:var(--soft);border-color:#40516b}html[data-theme="dark"] .snapshot-grid article,html[data-theme="dark"] .community-grid article,html[data-theme="dark"] .ranking-list article,html[data-theme="dark"] .ranking-list article:nth-child(even),html[data-theme="dark"] .tuning-detail{background:#172237;border-color:#40516b}html[data-theme="dark"] .equipped-module,html[data-theme="dark"] .loadout-title,html[data-theme="dark"] .result-stat,html[data-theme="dark"] .library-module,html[data-theme="dark"] .player-section{border-color:#40516b}html[data-theme="dark"] .equipped-module small,html[data-theme="dark"] .build-results p,html[data-theme="dark"] .library-module small,html[data-theme="dark"] .library-module p,html[data-theme="dark"] .community-grid span,html[data-theme="dark"] .community-grid small,html[data-theme="dark"] .community-grid p,html[data-theme="dark"] .ranking-list span,html[data-theme="dark"] .ranking-list small,html[data-theme="dark"] .player-section p,html[data-theme="dark"] .snapshot-grid span,html[data-theme="dark"] .tuning-detail{color:var(--muted)}html[data-theme="dark"] .snapshot-grid b,html[data-theme="dark"] .tuning-detail b,html[data-theme="dark"] .ranking-list b,html[data-theme="dark"] .player-section h3{color:var(--ink)}html[data-theme="dark"] .module-level button{background:#172237;border-color:#455a78;color:var(--ink)}html[data-theme="dark"] .tuning-tree-wrap{background:#111927;border-color:#40516b}html[data-theme="dark"] .tuning-tree{background-color:#162137;background-image:radial-gradient(#455a78 1px,transparent 1px)}html[data-theme="dark"] .tuning-tree button{background:#202d43;border-color:#40516b;color:#aab8cf;box-shadow:inset 0 0 0 1px #273750}html[data-theme="dark"] .tuning-tree button:before{color:#90a7c7}html[data-theme="dark"] .tuning-tree button img{background:#202d43}

.official-board-note{align-self:end;padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:var(--soft);color:var(--muted);font-size:12px}html[data-theme="dark"] .official-board-note{border-color:#455a78;background:#172237;color:var(--muted)}

/* Nexon's supplied module and tuning artwork is mostly white.  An opaque blue
   surface keeps those official icons visible in the light theme. */
html:not([data-theme="dark"]) .library-module img{background:#365f9e;border:1px solid #294d84;border-radius:5px;padding:2px}html:not([data-theme="dark"]) .tuning-tree button{background:#4d78ad;border-color:#365f91;box-shadow:inset 0 0 0 1px rgba(255,255,255,.25)}html:not([data-theme="dark"]) .tuning-tree button:before,html:not([data-theme="dark"]) .tuning-tree button i{color:#fff;text-shadow:0 1px 1px rgba(10,35,76,.65)}html:not([data-theme="dark"]) .tuning-tree button img{background:#4d78ad;filter:drop-shadow(0 1px 1px rgba(10,35,76,.65))}html:not([data-theme="dark"]) .tuning-tree button.active{background:#1b91d6;border-color:#0875bf;box-shadow:0 0 10px rgba(24,133,218,.55)}html:not([data-theme="dark"]) .tuning-tree button.active img{background:#1b91d6}html:not([data-theme="dark"]) .tuning-tree button.selected{border-color:#d88900;box-shadow:0 0 0 2px rgba(234,174,46,.35),0 0 12px rgba(234,174,46,.45)}.leaderboard-filters .button{min-height:40px}
.public-build-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:4px}.community-grid .public-build-actions button{margin-top:0}.build-page .button.danger{background:#fff5f6;color:#c73346;border-color:#edb1bc}html[data-theme="dark"] .build-page .button.danger{background:#3a1f2a;color:#ffb8c2;border-color:#89505e}

/* The leaderboard is intentionally an information-dense command board: it
   keeps the official API's data visible instead of reducing it to a plain
   list of names. */
.leaderboard-command{padding:0!important;overflow:hidden;border-color:#29466d!important;background:#0d172a!important;color:#dce8fa!important;box-shadow:none!important}.leaderboard-command .leaderboard-banner{display:flex;align-items:end;justify-content:space-between;gap:24px;padding:26px 30px 22px;background:radial-gradient(ellipse at 78% 0,#425c83 0,rgba(45,74,111,.26) 30%,transparent 63%),linear-gradient(115deg,rgba(42,68,102,.9),rgba(13,23,42,.98));border-bottom:1px solid #325172}.leaderboard-command .leaderboard-banner .overline{color:#4ad7ff}.leaderboard-command .leaderboard-banner h2{margin:3px 0;font-size:32px;line-height:1.15;color:#fff;letter-spacing:2px}.leaderboard-command .leaderboard-banner p{margin:0;color:#9fb4d2}.leaderboard-command .official-board-note{margin:0;max-width:340px;border-color:#3a5f86;background:rgba(7,16,31,.45);color:#a9bdd8}.leaderboard-command .leaderboard-filters{grid-template-columns:repeat(4,minmax(0,1fr)) auto;padding:18px 24px;background:#111c32;border-bottom:1px solid #29425f}.leaderboard-command .leaderboard-filters label{color:#91a8c7}.leaderboard-command .catalog-picker-trigger{background:#121f36!important;border-color:#42628a!important;color:#f0f6ff!important}.leaderboard-command .catalog-picker-menu{background:#14223a!important;border-color:#42628a!important}.leaderboard-command .catalog-picker-menu button{color:#e1edff!important}.leaderboard-command .catalog-picker-menu button:hover,.leaderboard-command .catalog-picker-menu button.selected{background:#24466f!important;color:#61ddff!important}.leaderboard-command .button.primary{background:#1269bf!important;border-color:#36a9e3!important;color:#fff!important}.leaderboard-command>.form-message{margin:12px 24px}.leaderboard-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;padding:18px 24px 26px;background-image:radial-gradient(rgba(124,169,223,.25) 1px,transparent 1px);background-size:75px 75px}.leaderboard-results{min-width:0;border:1px solid #294564;background:#111d33}.ranking-table-head{display:grid;grid-template-columns:48px 132px minmax(210px,.85fr) minmax(165px,.65fr) auto;gap:12px;align-items:center;padding:12px 16px;background:#213b60;color:#8da4c4;font-size:11px;letter-spacing:.7px;text-transform:uppercase}.leaderboard-command .ranking-list{margin:0!important;border:0!important;border-radius:0!important;background:transparent!important}.leaderboard-command .ranking-list>article{grid-template-columns:48px 132px minmax(210px,.85fr) minmax(165px,.65fr) auto!important;gap:12px;padding:12px 16px!important;background:rgba(19,32,55,.96)!important;border-color:#28415f!important}.leaderboard-command .ranking-list>article:nth-child(even){background:rgba(25,41,67,.96)!important}.leaderboard-command .ranking-list>article:hover{background:#1d3659!important}.leaderboard-command .ranking-list strong{font-size:25px!important;color:#afc2dc!important;text-align:center}.leaderboard-command .ranking-list strong.podium{color:#ffbd57!important;text-shadow:0 0 18px rgba(255,158,52,.42)}.leaderboard-command .ranking-list time{color:#28d6ff;font:700 15px/1 ui-monospace,SFMono-Regular,Consolas,monospace}.rank-player{display:flex;align-items:center;gap:10px;min-width:0}.leaderboard-command .rank-player b{font-size:15px!important;color:#f2f6ff!important;overflow-wrap:anywhere}.leaderboard-command .rank-player span,.leaderboard-command .rank-details span,.leaderboard-command .rank-details small{display:block;color:#91a7c6!important;font-size:12px}.rank-details{display:flex;flex-wrap:wrap;gap:4px 9px}.leaderboard-command .rank-details span{padding:2px 6px;border:1px solid #355778;background:#172944}.leaderboard-command .rank-details small{width:100%;overflow-wrap:anywhere}.leaderboard-command .ranking-list>article>.button{background:transparent!important;border-color:#496d98!important;color:#7fc8ff!important;white-space:nowrap}.leaderboard-command .rank-avatar{border-color:#4d81bd!important;background:#284c7e!important}.leaderboard-command .rank-player-panel{background:#101b2f!important;border-color:#3a6089!important;border-left-color:#23c6ff!important;color:#dfe9fa}.leaderboard-command .rank-player-panel .build-section-heading h2{color:#fff!important}.leaderboard-command .rank-player-panel .build-section-heading p{color:#a4b7d1!important}.leaderboard-command .rank-player-panel .button.primary{background:#1372ca!important;border-color:#4fc8ff!important}.leaderboard-command .player-sections{grid-template-columns:1fr!important;gap:14px!important}.leaderboard-command .rank-player-panel .player-section{padding:13px!important;border-color:#304e70!important;background:#13223a!important}.leaderboard-command .rank-player-panel .player-section h3{color:#53d8ff!important;font-size:15px;text-transform:none!important}.player-group{margin-top:12px;padding-top:10px;border-top:1px solid #2d4968}.player-group:first-of-type{margin-top:0;padding-top:0;border-top:0}.player-group h4{margin:0 0 5px;color:#89a7ce;font-size:11px;font-weight:700;letter-spacing:.5px;overflow-wrap:anywhere}.leaderboard-command .ranking-list .player-data-row{align-items:flex-start!important;padding:11px 0!important;border-top-color:#2d4968!important}.player-data-content{min-width:0;flex:1}.leaderboard-command .player-data-content>b{color:#eef6ff!important;font-size:13px}.player-field-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:6px;margin-top:6px}.player-field-grid span{display:grid;gap:1px;padding:5px 7px;background:#0d182b;border:1px solid #284562;min-width:0}.player-field-grid small{color:#7893b5;font-size:10px;overflow-wrap:anywhere}.player-field-grid em{color:#e6efff;font-size:12px;font-style:normal;overflow-wrap:anywhere}.leaderboard-sidebar{display:grid;align-content:start;gap:12px}.leaderboard-side-card{padding:16px;border:1px solid #34526f;background:rgba(18,31,53,.94);box-shadow:inset 2px 0 #256b9e}.leaderboard-side-card>small{display:block;margin-bottom:10px;color:#8199bb;font-size:11px;letter-spacing:.6px}.season-card>b{display:block;color:#26d8ff;font-size:21px;line-height:1.25}.season-card p{margin:8px 0;color:#a8bbd6;font-size:12px}.season-card>strong{margin-right:5px;color:#fff;font-size:26px}.season-card>span{color:#9db0ca;font-size:11px}.distribution-row{display:grid;grid-template-columns:75px 1fr 25px;align-items:center;gap:7px;margin:8px 0;color:#b5c6dc;font-size:12px}.distribution-row>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.distribution-row i{height:6px;background:#252c3c}.distribution-row i b{display:block;height:100%;background:linear-gradient(90deg,#f36c25,#ffb070)}.distribution-row em{font-style:normal;color:#a7bdd9;text-align:right}.platform-pills{display:flex;gap:7px;flex-wrap:wrap}.platform-pills span{border:1px solid #42658b;padding:4px 7px;color:#99bbdd;font-size:11px}.platform-pills b{margin-left:4px;color:#fff}.api-note p{margin:0;color:#91a6c4;font-size:12px;line-height:1.7}.leaderboard-command .empty-loadout{padding:42px 24px;color:#91a6c4}.leaderboard-page>.page-heading{display:none}
@media(max-width:1120px){.leaderboard-layout{grid-template-columns:1fr}.leaderboard-sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}.ranking-table-head,.leaderboard-command .ranking-list>article{grid-template-columns:45px 120px minmax(180px,1fr) minmax(135px,.6fr) auto!important}}@media(max-width:760px){.leaderboard-command .leaderboard-banner{align-items:flex-start;flex-direction:column;padding:21px 16px}.leaderboard-command .leaderboard-filters{grid-template-columns:1fr 1fr;padding:14px}.leaderboard-command .leaderboard-filters .button{grid-column:1/-1}.leaderboard-layout{padding:14px}.leaderboard-sidebar{grid-template-columns:1fr}.ranking-table-head{display:none}.leaderboard-command .ranking-list>article{grid-template-columns:38px 1fr auto!important;gap:9px;padding:12px!important}.leaderboard-command .ranking-list>article time{grid-column:2}.leaderboard-command .ranking-list>article .rank-player{grid-column:2}.leaderboard-command .ranking-list>article .rank-details{grid-column:2/-1}.leaderboard-command .ranking-list>article>.button{grid-column:3;grid-row:1/3}.leaderboard-command .rank-player-panel{grid-column:1/-1!important}.player-field-grid{grid-template-columns:1fr 1fr}}

/* Do not force a dark dashboard.  The ranking page follows the site's chosen
   light/dark setting; these are the normal light-theme values. */
html:not([data-theme="dark"]) .leaderboard-command{background:#fff!important;border-color:#d7e1ef!important;color:var(--ink)!important;box-shadow:var(--shadow)!important}html:not([data-theme="dark"]) .leaderboard-command .leaderboard-banner{background:linear-gradient(120deg,#f8fbff,#eef5ff);border-color:#d8e4f2}html:not([data-theme="dark"]) .leaderboard-command .leaderboard-banner h2{color:#152d51}html:not([data-theme="dark"]) .leaderboard-command .leaderboard-banner p{color:#627895}html:not([data-theme="dark"]) .leaderboard-command .official-board-note{background:#fff;border-color:#cfdeee;color:#637895}html:not([data-theme="dark"]) .leaderboard-command .leaderboard-filters{background:#fff;border-color:#dce6f1}html:not([data-theme="dark"]) .leaderboard-command .leaderboard-filters label{color:#31435f}html:not([data-theme="dark"]) .leaderboard-layout{background:#f8fbff;background-image:none}html:not([data-theme="dark"]) .leaderboard-results{background:#fff;border-color:#d8e3ef}html:not([data-theme="dark"]) .ranking-table-head{background:#edf4fd;color:#607895}html:not([data-theme="dark"]) .leaderboard-command .ranking-list>article,html:not([data-theme="dark"]) .leaderboard-command .ranking-list>article:nth-child(even){background:#fff!important;border-color:#dfe7f1!important}html:not([data-theme="dark"]) .leaderboard-command .ranking-list>article:nth-child(even){background:#f9fbfe!important}html:not([data-theme="dark"]) .leaderboard-command .ranking-list>article:hover{background:#f0f7ff!important}html:not([data-theme="dark"]) .leaderboard-command .ranking-list strong{color:#2d61ca!important}html:not([data-theme="dark"]) .leaderboard-command .ranking-list strong.podium{color:#d98c00!important;text-shadow:none}html:not([data-theme="dark"]) .leaderboard-command .rank-player b{color:#223c64!important}html:not([data-theme="dark"]) .leaderboard-command .rank-player span,html:not([data-theme="dark"]) .leaderboard-command .rank-details span,html:not([data-theme="dark"]) .leaderboard-command .rank-details small{color:#607895!important}html:not([data-theme="dark"]) .leaderboard-command .rank-details span{background:#f3f7fc;border-color:#d7e2ee}html:not([data-theme="dark"]) .leaderboard-command .rank-avatar{background:#365f9e!important;border-color:#b8cbe4!important}html:not([data-theme="dark"]) .leaderboard-command .rank-player-panel{background:#f7faff!important;border-color:#cbdcf0!important;color:#253b5c}html:not([data-theme="dark"]) .leaderboard-command .rank-player-panel .build-section-heading h2{color:#223c64!important}html:not([data-theme="dark"]) .leaderboard-command .rank-player-panel .build-section-heading p{color:#607895!important}html:not([data-theme="dark"]) .leaderboard-command .rank-player-panel .player-section{background:#fff!important;border-color:#dbe5f1!important}html:not([data-theme="dark"]) .leaderboard-command .rank-player-panel .player-section h3{color:#1473cf!important}html:not([data-theme="dark"]) .player-group{border-color:#dfe7f1}html:not([data-theme="dark"]) .player-group h4{color:#557190}html:not([data-theme="dark"]) .leaderboard-command .ranking-list .player-data-row{border-color:#e1e8f1!important}html:not([data-theme="dark"]) .leaderboard-command .player-data-content>b{color:#253b5c!important}html:not([data-theme="dark"]) .player-field-grid span{background:#fbfcff;border-color:#d9e4f0}html:not([data-theme="dark"]) .player-field-grid small{color:#5b789d}html:not([data-theme="dark"]) .player-field-grid em{color:#1f3557}html:not([data-theme="dark"]) .leaderboard-side-card{background:#fff;border-color:#d5e1ef;box-shadow:inset 2px 0 #2d8bd6}html:not([data-theme="dark"]) .leaderboard-side-card>small,html:not([data-theme="dark"]) .season-card p,html:not([data-theme="dark"]) .season-card>span,html:not([data-theme="dark"]) .api-note p{color:#617895}html:not([data-theme="dark"]) .season-card>b{color:#1473cf}html:not([data-theme="dark"]) .season-card>strong{color:#223c64}html:not([data-theme="dark"]) .distribution-row{color:#526b8c}html:not([data-theme="dark"]) .distribution-row i{background:#e9eef5}html:not([data-theme="dark"]) .distribution-row em{color:#526b8c}html:not([data-theme="dark"]) .platform-pills span{border-color:#b9cce2;color:#365f8d}html:not([data-theme="dark"]) .platform-pills b{color:#223c64}

/* Profile details follow the reference site's equipment-first hierarchy. */
.player-profile{display:grid;grid-template-columns:205px minmax(0,1fr);gap:16px}.profile-identity{align-self:start;padding:16px;background:#f4f8fd;border:1px solid #cfddec;display:grid;gap:7px}.profile-avatar{width:92px;height:108px;background:#355f9d;display:grid;place-items:center;overflow:hidden;color:#fff;font-size:34px}.profile-avatar img{width:100%;height:100%;object-fit:cover}.profile-identity h3{margin:2px 0 0;color:#1d3558;font-size:17px;overflow-wrap:anywhere}.profile-identity>p{margin:0;color:#53718e;font-size:12px}.profile-ranks{display:flex;gap:12px;padding:10px 0;border-top:1px solid #d6e2ef;border-bottom:1px solid #d6e2ef}.profile-ranks span{display:grid;color:#607896;font-size:10px}.profile-ranks b{color:#1873c7;font-size:22px}.profile-identity>small{color:#5a7190;font-size:11px;overflow-wrap:anywhere}.profile-content{display:grid;gap:13px;min-width:0}.profile-panel{padding:14px;border:1px solid #cddceb;background:#fff}.profile-panel-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:11px}.profile-panel-title h3{margin:0;color:#223b60;font-size:17px}.profile-panel-title span{color:#8aa0ba;font-size:10px;letter-spacing:1px}.equipment-card{display:grid;grid-template-columns:76px minmax(0,1fr) auto;align-items:center;gap:12px;padding:11px;background:#f5f9fe;border:1px solid #d6e4f2}.equipment-card>img,.reactor-card>img,.component-grid>article>img{width:68px;height:56px;object-fit:contain;background:#365f9e;padding:3px}.equipment-name{min-width:0;display:grid;gap:3px}.equipment-name b,.reactor-card b,.component-grid b{color:#1e385f;font-size:15px;overflow-wrap:anywhere}.equipment-name small,.reactor-card small,.component-grid small{color:#68819d;font-size:11px}.equipment-card>strong{display:grid;text-align:right;color:#1f79ce;font-size:16px}.equipment-card>strong small{font-weight:400;color:#68819d;font-size:10px}.module-slot-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:10px}.profile-module{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:7px;padding:7px;border:1px solid #d7e2ef;background:#fbfcff;min-height:48px}.profile-module img{width:30px;height:30px;object-fit:contain;background:#365f9e;border-radius:3px}.profile-module b{display:block;color:#28466e;font-size:11px;overflow-wrap:anywhere}.profile-module small{display:block;color:#66809d;font-size:10px}.profile-module em{color:#1681cf;font-size:11px;font-style:normal;font-weight:800}.profile-facts{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.profile-facts span{display:grid;gap:1px;padding:5px 7px;border:1px solid #d9e4ef;background:#f7faff;max-width:100%;min-width:100px}.profile-facts small{color:#6b83a0;font-size:10px}.profile-facts b{color:#315171;font-size:11px;overflow-wrap:anywhere}.outfit-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:10px}.outfit-grid article{display:grid;grid-template-columns:26px 1fr;gap:3px 7px;align-items:center;padding:7px;border:1px solid #d7e3ef;background:#fbfcff}.outfit-grid img{grid-row:span 2;width:25px;height:25px;object-fit:contain;background:#365f9e}.outfit-grid span{font-size:10px;color:#6a83a1}.outfit-grid b{font-size:11px;color:#29486f;overflow-wrap:anywhere}.weapon-card+.weapon-card{margin-top:11px;padding-top:11px;border-top:1px solid #dce6f0}.reactor-card{display:grid;grid-template-columns:68px minmax(0,1fr);gap:11px;align-items:start;padding:10px;background:#f7faff;border:1px solid #d7e3ef}.component-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.component-grid>article{display:grid;grid-template-columns:46px minmax(0,1fr);gap:9px;padding:10px;border:1px solid #d7e3ef;background:#fbfcff}.component-grid>article>img{width:42px;height:40px}.raw-api-details{border:1px dashed #c5d6e9;padding:10px;color:#55708f}.raw-api-details summary{cursor:pointer;color:#2a69ad;font-weight:700}.raw-api-details .player-sections{margin-top:10px}.raw-api-details .player-section{background:#fff}.leaderboard-command,.leaderboard-command .leaderboard-filters,.leaderboard-command .leaderboard-banner,.leaderboard-results,.leaderboard-command .ranking-list>article,.leaderboard-command .ranking-list>article:nth-child(even),.leaderboard-command .rank-player-panel{color:#1c3458!important}.leaderboard-command{background:#fff!important;border-color:#d7e1ef!important;box-shadow:var(--shadow)!important}.leaderboard-command .leaderboard-banner{background:linear-gradient(120deg,#f8fbff,#eef5ff)!important;border-color:#d8e4f2!important}.leaderboard-command .leaderboard-banner h2{color:#152d51!important}.leaderboard-command .leaderboard-banner p{color:#627895!important}.leaderboard-command .official-board-note{background:#fff!important;border-color:#cfdeee!important;color:#637895!important}.leaderboard-command .leaderboard-filters{background:#fff!important;border-color:#dce6f1!important}.leaderboard-command .leaderboard-filters label{color:#31435f!important}.leaderboard-layout{background:#f8fbff!important;background-image:none!important}.leaderboard-results{background:#fff!important;border-color:#d8e3ef!important}.ranking-table-head{background:#edf4fd!important;color:#607895!important}.leaderboard-command .ranking-list>article,.leaderboard-command .ranking-list>article:nth-child(even){background:#fff!important;border-color:#dfe7f1!important}.leaderboard-command .ranking-list>article:nth-child(even){background:#f9fbfe!important}.leaderboard-command .ranking-list>article:hover{background:#f0f7ff!important}.leaderboard-command .ranking-list strong{color:#2d61ca!important}.leaderboard-command .ranking-list strong.podium{color:#d98c00!important;text-shadow:none!important}.leaderboard-command .rank-player b,.leaderboard-command .rank-player-panel .build-section-heading h2{color:#223c64!important}.leaderboard-command .rank-player span,.leaderboard-command .rank-details span,.leaderboard-command .rank-details small,.leaderboard-command .rank-player-panel .build-section-heading p{color:#607895!important}.leaderboard-command .rank-details span{background:#f3f7fc!important;border-color:#d7e2ee!important}.leaderboard-command .rank-avatar{background:#365f9e!important;border-color:#b8cbe4!important}.leaderboard-command .rank-player-panel{background:#f7faff!important;border-color:#cbdcf0!important}.leaderboard-command .rank-player-panel .player-section{background:#fff!important;border-color:#dbe5f1!important}.leaderboard-command .rank-player-panel .player-section h3{color:#1473cf!important}.leaderboard-command .ranking-list .player-data-row{border-color:#e1e8f1!important}.leaderboard-command .player-field-grid span{background:#fbfcff!important;border-color:#d9e4f0!important}.leaderboard-command .player-field-grid small{color:#5b789d!important}.leaderboard-command .player-field-grid em{color:#1f3557!important}.leaderboard-command .leaderboard-side-card{background:#fff!important;border-color:#d5e1ef!important;box-shadow:inset 2px 0 #2d8bd6!important}.leaderboard-command .leaderboard-side-card>small,.leaderboard-command .season-card p,.leaderboard-command .season-card>span,.leaderboard-command .api-note p{color:#617895!important}.leaderboard-command .season-card>b{color:#1473cf!important}.leaderboard-command .season-card>strong{color:#223c64!important}.leaderboard-command .distribution-row{color:#526b8c!important}.leaderboard-command .distribution-row i{background:#e9eef5!important}.leaderboard-command .distribution-row em{color:#526b8c!important}.leaderboard-command .platform-pills span{border-color:#b9cce2!important;color:#365f8d!important}.leaderboard-command .platform-pills b{color:#223c64!important}
@media(max-width:940px){.player-profile{grid-template-columns:1fr}.profile-identity{grid-template-columns:92px minmax(0,1fr);align-items:center}.profile-identity .profile-ranks,.profile-identity>small{grid-column:1/-1}.module-slot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.equipment-card{grid-template-columns:56px minmax(0,1fr)}.equipment-card>img{width:52px;height:48px}.equipment-card>strong{grid-column:2;text-align:left}.module-slot-grid,.component-grid{grid-template-columns:1fr}.outfit-grid{grid-template-columns:1fr 1fr}.profile-facts span{flex:1 1 120px}}

.leaderboard-command .catalog-picker-trigger{background:#fff!important;border-color:#c9d8e9!important;color:#1d3558!important}.leaderboard-command .catalog-picker-trigger i{color:#46719e!important}.leaderboard-command .catalog-picker-menu{background:#fff!important;border-color:#c9d8e9!important}.leaderboard-command .catalog-picker-menu button{color:#294563!important}.leaderboard-command .catalog-picker-menu button:hover,.leaderboard-command .catalog-picker-menu button.selected{background:#eef6ff!important;color:#146ec0!important}
.leaderboard-command .catalog-picker.choice-picker .catalog-picker-trigger{background:#fff!important;background-color:#fff!important;color:#1d3558!important;border:1px solid #c9d8e9!important}.profile-panel .outfit-grid{display:none}.profile-panel .outfit-grid.standalone-outfit-grid{display:grid}.profile-unavailable{border-style:dashed;background:#fafcff}.profile-unavailable p{margin:0;color:#617895;font-size:12px;line-height:1.6}
.profile-medal{display:grid;grid-template-columns:34px minmax(0,1fr);gap:8px;align-items:center;padding:8px;border:1px solid #d2dfed;background:#fff}.profile-medal img{width:32px;height:32px;object-fit:contain;background:#eef4fb}.profile-medal div{display:grid;gap:1px;min-width:0}.profile-medal small,.profile-medal span{color:#68819d;font-size:10px}.profile-medal b{color:#29486f;font-size:12px;overflow-wrap:anywhere}.equipment-card{grid-template-columns:88px minmax(0,1fr) auto;overflow:hidden}.equipment-card>img{box-sizing:border-box;width:76px;height:64px;justify-self:center;object-position:center top}.equipment-name{padding-left:3px}
.equipment-card:not(:has(img)){grid-template-columns:minmax(0,1fr) auto}.equipment-card:not(:has(img)) .equipment-name{padding-left:0}.reactor-card:not(:has(img)),.component-grid>article:not(:has(img)){grid-template-columns:minmax(0,1fr)}.reactor-card:not(:has(img))>div,.component-grid>article:not(:has(img))>div{grid-column:1/-1}.reactor-card .profile-facts,.component-grid .profile-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,max-content));align-items:start}.reactor-card .profile-facts span,.component-grid .profile-facts span{min-width:0;background:#eef4fc}.weapon-card .module-slot-grid{margin-left:0}.outfit-grid article{min-height:52px}
.runtime-failure{position:fixed;z-index:9999;inset:18px auto auto 50%;transform:translateX(-50%);display:grid;gap:5px;min-width:320px;max-width:calc(100vw - 36px);padding:14px 17px;border:1px solid #df9ca7;border-radius:8px;background:#fff4f5;color:#8b2432;box-shadow:0 12px 30px rgba(53,28,33,.2)}.runtime-failure span{font-size:12px;line-height:1.5}

/* Build-library badges and imported account snapshots make it clear what is
   equipped, which family a module belongs to, and what was preserved from a
   leaderboard account beyond the editable primary weapon. */
.module-tags,.snapshot-module-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:4px}.module-tags span,.snapshot-module-tags span{display:inline-flex;align-items:center;border:1px solid #b9cce2;background:#f5f9ff;color:#3c5f87;padding:2px 5px;font-size:10px;line-height:1.2}.module-tags .module-tier-Tier1{border-color:#9caec4;color:#52667f}.module-tags .module-tier-Tier2{border-color:#4285db;color:#1766b6}.module-tags .module-tier-Tier3{border-color:#c18a19;color:#9a6500;background:#fff8e9}.module-tags .module-tier-Tier4{border-color:#a65ac8;color:#8732ac;background:#fbf1ff}.library-module.equipped{background:#eef8ff;border-left:3px solid #1788cf;padding-left:8px}.imported-snapshot{margin-top:14px;padding:13px;border:1px solid #93bee1;border-radius:7px;background:#f5fbff}.imported-snapshot .build-section-heading{margin-bottom:8px}.snapshot-loadout{display:grid;gap:4px;padding:9px 0;border-top:1px solid #d6e5f2}.snapshot-loadout:first-of-type{border-top:0}.snapshot-loadout b{color:#24466b;font-size:12px}.snapshot-loadout small{color:#617c9b;font-size:11px}.snapshot-loadout .snapshot-module-tags span{background:#fff}.snapshot-loadout.compact{padding-bottom:5px}

/* There is only one imported-account summary. The editable three-card summary
   repeats it, so keep that legacy card out of the Build Lab. Reactor/component
   option chips use the same amber treatment as the account snapshot reference:
   amber means an official rolled/equipped option, not a rarity guess. */
.build-snapshot{display:none!important}.imported-snapshot .snapshot-loadout.compact .snapshot-module-tags span{color:#a56600;border-color:#d8a548;background:#fff9ea;font-weight:700}.imported-snapshot .snapshot-loadout.compact .snapshot-module-tags span::first-line{color:#a56600}.profile-panel .reactor-card .profile-facts b,.profile-panel .component-grid .profile-facts b{color:#a56600}
html[data-theme="dark"] .imported-snapshot .snapshot-loadout.compact .snapshot-module-tags span{color:#ffbd57;border-color:#705226;background:#292238}html[data-theme="dark"] .profile-panel .reactor-card .profile-facts b,html[data-theme="dark"] .profile-panel .component-grid .profile-facts b{color:#ffbd57}
.build-results::before{content:'容量为粗算 · 未计极化';display:block;margin:-1px 0 9px;color:#8a6330;font-size:11px;font-weight:700}.build-results::before{border-bottom:1px solid #e3d7c3;padding-bottom:7px}html[data-theme="dark"] .build-results::before{color:#ffbd57;border-color:#654d31}

/* Profile layout overrides: keep equipment cards full width even when a
   metadata image is unavailable, and keep every icon visually centered. */
.weapon-card{display:block;width:100%;min-width:0}.weapon-card .equipment-card{width:100%;min-width:0}.equipment-card>img{align-self:center;object-position:center}.outfit-grid article{min-height:74px;grid-template-columns:38px minmax(0,1fr);align-content:center}.outfit-grid img{width:34px;height:34px;align-self:center;justify-self:center;object-position:center}.tuning-panel>p{margin:0 0 10px;color:#617895;font-size:12px}.profile-tuning-board{display:grid;grid-template-columns:repeat(18,32px);grid-auto-rows:32px;gap:2px;min-height:120px;max-width:100%;overflow:auto;padding:18px;border:1px solid #d7e4f1;background-image:radial-gradient(#b7d0e9 1px,transparent 1px);background-size:32px 32px}.profile-tuning-board article{display:grid;place-items:center;min-width:0;min-height:0;border:1px solid #b9cbe1;background:#f5f8fc;box-shadow:inset 0 0 0 1px #fff}.profile-tuning-board article.active{border-color:#3e92e5;background:#d8efff;box-shadow:0 0 10px rgba(33,133,222,.45)}.profile-tuning-board img{width:100%;height:100%;object-fit:contain;object-position:center}.profile-tuning-board span{color:#65809e;font-size:15px;line-height:1}.profile-tuning-board article.active span{color:#167bd0}

/* Profile weapon cards need enough horizontal space for both slot labels and
   module names; three narrow columns caused text to overlap the next card. */
.profile-content>.profile-panel{min-width:0;width:100%;box-sizing:border-box}.profile-panel .weapon-card,.profile-panel .reactor-card{width:100%!important;max-width:none!important;min-width:0;box-sizing:border-box}.profile-panel .weapon-card .module-slot-grid{display:grid!important;width:100%!important;grid-template-columns:repeat(2,minmax(0,1fr))}.weapon-card .profile-module{grid-template-columns:34px minmax(0,1fr) auto;min-height:52px}.weapon-card .profile-module b,.weapon-card .profile-module small{overflow-wrap:anywhere}.profile-panel .reactor-card{display:grid!important;grid-template-columns:72px minmax(0,1fr)!important}.profile-panel .reactor-card>img{grid-column:1;grid-row:1;align-self:center}.profile-panel .reactor-card>div{grid-column:2;min-width:0}.reactor-card .profile-facts{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}.component-grid .profile-facts{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}
@media(max-width:700px){.weapon-card .module-slot-grid{grid-template-columns:1fr}}

/* The player profile is rendered inside a grid.  Give loadout cards an
   explicit full track so a browser never sizes them to a module's min-content
   width (which was the cause of one-character-wide names and overlapping art). */
.profile-content>.profile-panel:has(> .weapon-card),.profile-content>.profile-panel:has(> .reactor-card){display:block!important;inline-size:100%!important;min-inline-size:0!important;box-sizing:border-box}
.profile-content>.profile-panel>.weapon-card{display:block!important;inline-size:100%!important;min-inline-size:0!important;box-sizing:border-box}
.profile-content>.profile-panel>.weapon-card>.equipment-card{display:grid!important;inline-size:100%!important;min-inline-size:0!important;box-sizing:border-box;grid-template-columns:76px minmax(180px,1fr) minmax(92px,max-content)!important}
.profile-content>.profile-panel>.weapon-card>.equipment-card>img{grid-column:1;grid-row:1;width:68px!important;height:56px!important;max-width:68px;justify-self:center;align-self:center}
.profile-content>.profile-panel>.weapon-card>.equipment-card>.equipment-name{grid-column:2;grid-row:1;min-inline-size:0;overflow-wrap:anywhere}
.profile-content>.profile-panel>.weapon-card>.equipment-card>strong{grid-column:3;grid-row:1;min-inline-size:0}
.profile-content>.profile-panel>.weapon-card>.module-slot-grid{display:grid!important;inline-size:100%!important;min-inline-size:0!important;grid-template-columns:repeat(auto-fit,minmax(250px,1fr))!important;box-sizing:border-box}
.profile-content>.profile-panel>.weapon-card .profile-module{min-inline-size:0}.profile-content>.profile-panel>.weapon-card .profile-module>div{min-inline-size:0;overflow-wrap:anywhere}
.profile-content>.profile-panel>.reactor-card{display:grid!important;inline-size:100%!important;min-inline-size:0!important;box-sizing:border-box;grid-template-columns:76px minmax(0,1fr)!important;align-items:center!important}
.profile-content>.profile-panel>.reactor-card>img{grid-column:1!important;grid-row:1!important;width:68px!important;height:56px!important;max-width:68px;justify-self:center;align-self:center}
.profile-content>.profile-panel>.reactor-card>div{grid-column:2!important;grid-row:1!important;min-inline-size:0!important;overflow-wrap:anywhere}
@media(max-width:700px){.profile-content>.profile-panel>.weapon-card>.equipment-card{grid-template-columns:64px minmax(0,1fr)!important}.profile-content>.profile-panel>.weapon-card>.equipment-card>strong{grid-column:2;grid-row:2;text-align:left}.profile-content>.profile-panel>.weapon-card>.module-slot-grid{grid-template-columns:1fr!important}.profile-content>.profile-panel>.reactor-card{grid-template-columns:64px minmax(0,1fr)!important}}

/* Inactive nodes remain visible but deliberately subdued; activated nodes are
   the only bright cells, both in the account view and after importing. */
html:not([data-theme="dark"]) .tuning-tree button{background:#617b9d;border-color:#4c668a;opacity:.56}html:not([data-theme="dark"]) .tuning-tree button.active{background:#168ed4;border-color:#0875bf;opacity:1}html:not([data-theme="dark"]) .tuning-tree button.selected{opacity:1}

/* Tuning positions come from the selected account preset. These controls are
   buttons so each official node exposes its supplied details. */
.profile-tuning-presets{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 10px}.profile-tuning-presets button{padding:5px 8px;border:1px solid #b8cae1;border-radius:4px;background:#fff;color:#466584;font:700 11px/1.2 inherit;cursor:pointer}.profile-tuning-presets button.active{border-color:#238bd5;background:#e7f5ff;color:#126eaf}.profile-tuning-board button{display:grid;place-items:center;min-width:0;min-height:0;width:32px;height:32px;padding:0;border:1px solid #b9cbe1;background:#f5f8fc;box-shadow:inset 0 0 0 1px #fff;cursor:pointer;overflow:hidden}.profile-tuning-board button.active{border-color:#3e92e5;background:#d8efff;box-shadow:0 0 10px rgba(33,133,222,.45)}.profile-tuning-board button:hover{transform:scale(1.1);z-index:2}.profile-tuning-board button.selected{border-color:#d88900;box-shadow:0 0 0 2px rgba(234,174,46,.35),0 0 12px rgba(234,174,46,.45)}.profile-tuning-board button img{width:100%;height:100%;object-fit:contain;object-position:center;background:#587da9;opacity:.46}.profile-tuning-board button.active img{background:#267fc3;opacity:1}.profile-tuning-board button span{color:#567391;font-size:15px;line-height:1}.profile-tuning-board button.active span{color:#fff}.profile-medal i{font-style:normal;opacity:.75}

/* Account modules retain their official tier distinction and expose the exact
   cached level rows without turning player snapshots into editable builds. */
.profile-module{cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease}.profile-module:hover{box-shadow:0 0 0 2px rgba(31,121,206,.16)}.profile-module.tier-tier1{border-left:3px solid #4d82c6}.profile-module.tier-tier2{border-left:3px solid #865fbd}.profile-module.tier-tier3{border-left:3px solid #c6922e}.profile-module.tier-tier4{border-left:3px solid #c65069}.tuning-total{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:7px;margin:0 0 11px;padding:10px;border:1px solid #cadceb;background:#f8fbff}.tuning-total>b{grid-column:1/-1;color:#24476e;font-size:12px}.tuning-total>span{display:grid;gap:2px;padding:7px;border-left:2px solid #1b91d8;background:#eef5fd}.tuning-total small,.tuning-total em{color:#66809d;font-size:10px;font-style:normal}.tuning-total strong{color:#1474be;font-size:13px}.module-detail-backdrop{position:fixed;z-index:1000;inset:0;display:flex;justify-content:flex-end;background:rgba(8,16,29,.72);backdrop-filter:blur(4px)}.module-detail-drawer{position:relative;width:min(560px,100%);min-height:100%;overflow:auto;padding:34px 30px;background:linear-gradient(160deg,#213b5f,#101c30);border-left:2px solid #269ee8;color:#e9f4ff;box-shadow:-16px 0 45px rgba(0,0,0,.34)}.module-detail-drawer>img{display:block;width:112px;height:112px;margin:0 auto 15px;object-fit:contain}.module-detail-drawer>p{margin:0;color:#42ceff;font-size:12px}.module-detail-drawer>h2{margin:6px 0 0;font-size:28px;line-height:1.12;color:#fff}.module-detail-drawer>small{display:block;margin-top:4px;color:#a8bdd8;letter-spacing:1.4px}.module-detail-close{position:absolute;right:16px;top:16px;width:34px;height:34px;border:1px solid #567391;background:#13243c;color:#fff;font-size:25px;line-height:1;cursor:pointer}.module-detail-meta{display:grid;grid-template-columns:1fr 1fr;margin:21px 0;border:1px solid #385575}.module-detail-meta span{display:grid;gap:5px;min-height:58px;padding:10px;border-right:1px solid #385575;border-bottom:1px solid #385575;background:rgba(68,105,151,.18)}.module-detail-meta span:nth-child(2n){border-right:0}.module-detail-meta span:nth-last-child(-n+2){border-bottom:0}.module-detail-meta small{color:#9eb3d0;font-size:10px}.module-detail-meta b{overflow-wrap:anywhere;color:#fff;font-size:13px}.module-detail-drawer section{margin-top:22px}.module-detail-drawer section h3{margin:0 0 9px;padding-bottom:8px;border-bottom:1px solid #385575;color:#fff;font-size:16px}.module-detail-effect{white-space:pre-wrap;line-height:1.7;color:#d4e4f7}.module-level-effects{display:grid;gap:6px}.module-level-effects article{display:grid;grid-template-columns:58px 1fr;gap:3px 10px;padding:9px;border:1px solid #385575;background:rgba(12,25,44,.45)}.module-level-effects article.active{border-color:#2bc9ff;background:rgba(29,132,189,.22);box-shadow:inset 3px 0 #2bc9ff}.module-level-effects article>b{grid-row:span 2;color:#35d2ff}.module-level-effects article>span{color:#a5bad5;font-size:11px}.module-level-effects article>p{grid-column:1/-1;white-space:pre-wrap;margin:4px 0 0;color:#e2edf9;font-size:12px;line-height:1.55}@media(max-width:600px){.tuning-total{grid-template-columns:1fr}.module-detail-drawer{padding:30px 18px}.module-detail-drawer>h2{font-size:24px}}

/* Theme corrections are deliberately late in this file: several legacy profile
   rules force white surfaces with `!important`. The module inspector follows
   the active site theme instead of always using a dark-only drawer. */
.module-detail-backdrop{background:rgba(30,48,74,.34)}
.module-detail-drawer{background:var(--surface);border-left-color:var(--blue);color:var(--ink);box-shadow:-16px 0 45px rgba(33,59,99,.2)}
.module-detail-drawer>p,.module-level-effects article>b{color:var(--blue)}
.module-detail-drawer>h2,.module-detail-meta b,.module-detail-drawer section h3,.module-detail-effect{color:var(--ink)}
.module-detail-drawer>small,.module-detail-meta small,.module-level-effects article>span{color:var(--muted)}
.module-detail-close{border-color:var(--line);background:var(--soft);color:var(--ink)}
.module-detail-meta,.module-detail-meta span,.module-detail-drawer section h3,.module-level-effects article{border-color:var(--line)}
.module-detail-meta span,.module-level-effects article{background:var(--soft)}
.module-level-effects article.active{border-color:var(--blue);background:var(--blue-pale);box-shadow:inset 3px 0 var(--blue)}
html[data-theme="dark"] .build-page,html[data-theme="dark"] .build-hero,html[data-theme="dark"] .build-shell,html[data-theme="dark"] .build-loadout,html[data-theme="dark"] .build-library,html[data-theme="dark"] .build-results,html[data-theme="dark"] .imported-snapshot,html[data-theme="dark"] .tuning-panel,html[data-theme="dark"] .public-build-panel,html[data-theme="dark"] .leaderboard-command,html[data-theme="dark"] .leaderboard-command .ranking-list,html[data-theme="dark"] .leaderboard-command .rank-player-panel,html[data-theme="dark"] .leaderboard-command .rank-player-panel .player-section,html[data-theme="dark"] .leaderboard-command .leaderboard-side-card,html[data-theme="dark"] .profile-panel,html[data-theme="dark"] .profile-identity,html[data-theme="dark"] .equipment-card,html[data-theme="dark"] .profile-module,html[data-theme="dark"] .reactor-card,html[data-theme="dark"] .component-grid>article,html[data-theme="dark"] .outfit-grid article,html[data-theme="dark"] .profile-medal,html[data-theme="dark"] .tuning-total,html[data-theme="dark"] .profile-tuning-board,html[data-theme="dark"] .profile-tuning-board article,html[data-theme="dark"] .profile-tuning-presets button{background:var(--surface)!important;color:var(--ink)!important}
html[data-theme="dark"] .leaderboard-command .ranking-list>article,html[data-theme="dark"] .profile-facts span,html[data-theme="dark"] .leaderboard-command .player-field-grid span,html[data-theme="dark"] .reactor-card .profile-facts span,html[data-theme="dark"] .component-grid .profile-facts span,html[data-theme="dark"] .tuning-total>span,html[data-theme="dark"] .snapshot-module-tags span,html[data-theme="dark"] .profile-tuning-board button{background:var(--soft)!important;color:var(--ink)!important}
html[data-theme="dark"] .build-page *,html[data-theme="dark"] .leaderboard-command *,html[data-theme="dark"] .profile-panel *{border-color:var(--line)}
html[data-theme="dark"] .build-page small,html[data-theme="dark"] .build-page p,html[data-theme="dark"] .leaderboard-command small,html[data-theme="dark"] .leaderboard-command p,html[data-theme="dark"] .profile-panel small,html[data-theme="dark"] .profile-panel p,html[data-theme="dark"] .profile-medal small,html[data-theme="dark"] .profile-medal span,html[data-theme="dark"] .tuning-total small,html[data-theme="dark"] .tuning-total em{color:var(--muted)!important}
html[data-theme="dark"] .module-detail-backdrop{background:rgba(3,9,20,.68)}
html[data-theme="dark"] .module-detail-drawer{background:var(--surface);color:var(--ink);box-shadow:-16px 0 45px rgba(0,0,0,.34)}
html[data-theme="dark"] .module-detail-drawer>h2,html[data-theme="dark"] .module-detail-meta b,html[data-theme="dark"] .module-detail-drawer section h3,html[data-theme="dark"] .module-detail-effect{color:var(--ink)}
html[data-theme="dark"] .module-detail-drawer>small,html[data-theme="dark"] .module-detail-meta small,html[data-theme="dark"] .module-level-effects article>span{color:var(--muted)}
html[data-theme="dark"] .module-detail-close,html[data-theme="dark"] .module-detail-meta span,html[data-theme="dark"] .module-level-effects article{background:var(--soft);border-color:var(--line);color:var(--ink)}
/* Explicit text overrides for legacy leaderboard rules that set pale-blue
   text with `!important`; without these, the dark cards are readable only at
   very high brightness. */
.module-level-effects article>p{color:var(--ink)}
html[data-theme="dark"] .leaderboard-command .leaderboard-banner,html[data-theme="dark"] .leaderboard-command .leaderboard-filters,html[data-theme="dark"] .leaderboard-layout,html[data-theme="dark"] .leaderboard-results,html[data-theme="dark"] .ranking-table-head{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] .leaderboard-command .official-board-note,html[data-theme="dark"] .leaderboard-command .rank-details span,html[data-theme="dark"] .leaderboard-command .catalog-picker-trigger,html[data-theme="dark"] .leaderboard-command .catalog-picker-menu,html[data-theme="dark"] .leaderboard-command .catalog-picker.choice-picker .catalog-picker-trigger{background:var(--soft)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] .leaderboard-command .rank-player b,html[data-theme="dark"] .leaderboard-command .rank-player-panel .build-section-heading h2,html[data-theme="dark"] .leaderboard-command .rank-player-panel .player-section h3,html[data-theme="dark"] .leaderboard-command .season-card>b,html[data-theme="dark"] .leaderboard-command .season-card>strong,html[data-theme="dark"] .leaderboard-command .leaderboard-side-card b,html[data-theme="dark"] .leaderboard-command .player-field-grid em,html[data-theme="dark"] .leaderboard-command .catalog-picker-menu button{color:var(--ink)!important}
html[data-theme="dark"] .leaderboard-command .rank-player span,html[data-theme="dark"] .leaderboard-command .rank-details span,html[data-theme="dark"] .leaderboard-command .rank-details small,html[data-theme="dark"] .leaderboard-command .rank-player-panel .build-section-heading p,html[data-theme="dark"] .leaderboard-command .leaderboard-banner p,html[data-theme="dark"] .leaderboard-command .official-board-note,html[data-theme="dark"] .leaderboard-command .player-field-grid small,html[data-theme="dark"] .leaderboard-command .leaderboard-side-card>small,html[data-theme="dark"] .leaderboard-command .season-card p,html[data-theme="dark"] .leaderboard-command .season-card>span,html[data-theme="dark"] .leaderboard-command .api-note p,html[data-theme="dark"] .leaderboard-command .distribution-row,html[data-theme="dark"] .leaderboard-command .distribution-row em,html[data-theme="dark"] .leaderboard-command .platform-pills span{color:var(--muted)!important}

/* Leaderboard rows mirror the reference layout: rank, descendant portrait,
   player summary, then an expandable loadout directly under that player. */
.ranking-list>article{grid-template-columns:50px 46px minmax(175px,.65fr) minmax(220px,1fr) auto}.rank-avatar{width:42px;height:42px;border:1px solid #b8cbe4;background:#355f9d;display:grid;place-items:center;overflow:hidden;color:#fff;font-weight:900}.rank-avatar img{width:100%;height:100%;object-fit:cover}.rank-player-panel{grid-column:1/-1;margin:2px 0 4px;padding:16px;border:1px solid #cbdcf0;border-left:3px solid #2e86de;border-radius:7px;background:#f7faff}.rank-player-panel .build-section-heading{margin-bottom:11px}.player-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.rank-player-panel .player-section{padding:10px;border:1px solid #dbe5f1;background:#fff}.rank-player-panel .player-section h3{margin:0 0 7px}.ranking-list .player-data-row{display:flex;align-items:center;gap:9px;min-height:0;margin:0;padding:7px 0;border:0;border-top:1px solid #e1e8f1;background:transparent!important}.ranking-list .player-data-row:first-of-type{border-top:0}.player-data-row img{width:34px;height:34px;object-fit:contain;background:#365f9e;border-radius:4px}.player-data-row b{font-size:12px}.player-data-row p{margin:2px 0 0;color:#60728c;font-size:11px;overflow-wrap:anywhere}@media(max-width:940px){.ranking-list>article{grid-template-columns:44px 42px minmax(130px,1fr) auto}.ranking-list>article>small{grid-column:3/-1}.player-sections{grid-template-columns:1fr}}@media(max-width:650px){.ranking-list>article{grid-template-columns:38px 40px 1fr}.ranking-list>article>small{grid-column:2/-1}.ranking-list>article>.button{grid-column:3}.rank-player-panel{grid-column:1/-1;padding:12px}}

/* Official module art is predominantly white.  Give every use a stable blue
   canvas and restore tier cues after broad dark-theme border normalization. */
.library-module>img,.module-detail-drawer>img{box-sizing:border-box;background:#365f9e;border:1px solid #294d84;border-radius:6px;padding:3px;filter:drop-shadow(0 1px 1px rgba(8,28,62,.42))}
.library-module:has(.module-tier-Tier1){box-shadow:inset 3px 0 #6f9ed4}.library-module:has(.module-tier-Tier2){box-shadow:inset 3px 0 #a974df}.library-module:has(.module-tier-Tier3){box-shadow:inset 3px 0 #f0b548}.library-module:has(.module-tier-Tier4){box-shadow:inset 3px 0 #eb748c}
html[data-theme="dark"] .library-module>img{background:#315e9f!important;border-color:#6390cc!important}html[data-theme="dark"] .library-module:has(.module-tier-Tier1){box-shadow:inset 3px 0 #75adf0!important}html[data-theme="dark"] .library-module:has(.module-tier-Tier2){box-shadow:inset 3px 0 #bf87f2!important}html[data-theme="dark"] .library-module:has(.module-tier-Tier3){box-shadow:inset 3px 0 #ffc65a!important}html[data-theme="dark"] .library-module:has(.module-tier-Tier4){box-shadow:inset 3px 0 #ff7992!important}
.profile-equipment-card{cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.profile-equipment-card:hover{transform:translateY(-1px);border-color:var(--blue)!important;box-shadow:0 4px 13px rgba(35,91,166,.16)}
.equipment-detail-drawer .module-detail-meta{grid-template-columns:1fr 1fr}.equipment-detail-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px}.equipment-detail-facts article{display:grid;gap:4px;padding:10px;border:1px solid var(--line);background:var(--soft)}.equipment-detail-facts small{color:var(--muted);font-size:11px}.equipment-detail-facts b{overflow-wrap:anywhere;color:var(--ink);font-size:13px}.equipment-detail-facts>p{grid-column:1/-1;margin:0;color:var(--muted);font-size:12px}
html[data-theme="dark"] .module-detail-drawer>img{background:#315e9f;border-color:#6390cc}html[data-theme="dark"] .profile-equipment-card:hover{box-shadow:0 4px 15px rgba(2,7,17,.42)}html[data-theme="dark"] .equipment-detail-facts article{background:var(--soft);border-color:var(--line)}

/* The dark profile reset normalizes every border, so restore the distinct
   official module tiers on player loadout cards after that reset. */
html[data-theme="dark"] .profile-panel .profile-module.tier-tier1{border-left:3px solid #75adf0!important}html[data-theme="dark"] .profile-panel .profile-module.tier-tier2{border-left:3px solid #bf87f2!important}html[data-theme="dark"] .profile-panel .profile-module.tier-tier3{border-left:3px solid #ffc65a!important}html[data-theme="dark"] .profile-panel .profile-module.tier-tier4{border-left:3px solid #ff7992!important}
