.nyxEqV4{color-scheme:dark;--bg:#050a13;--surface:#091426;--panel:#0d1a30;--panel2:#101e35;--border:#23334b;--stroke:#304460;--ink:#e7efff;--text:#cedcf7;--muted:#879bbd;--blue:#275bde;--bluehi:#3e77f7;--mint:#62e6b8;--gold:#ffd07f;--red:#ff9999}
.nyxEqV4,.nyxEqV4 *{box-sizing:border-box}
.nyxEqV4 button{font:inherit;cursor:pointer;color:inherit}
.nyxEqV4 button:focus-visible{outline:2px solid #8ac2ff;outline-offset:2px}
.nyxEqV4 button:disabled{opacity:.35;cursor:not-allowed}
.nyxEqV4 strong{font-weight:730}
.nyxEqV4 .mono{font-variant-numeric:tabular-nums}
.nyxEqV4 h1,.nyxEqV4 h2,.nyxEqV4 h3,.nyxEqV4 p{margin:0}
.nyxEqV4 .muted{color:var(--muted)}
.nyxEqV4 .tiny{font-size:11px}
.nyxEqV4 .section-label{font-size:12px;font-weight:740;color:#dde7fa}
.nyxEqV4 .demo-background{position:fixed;inset:0;background:radial-gradient(ellipse at 70% 20%,#111c38 0%,#08101f 46%,#030812 100%);overflow:hidden}
.nyxEqV4 .ghostline{position:absolute;left:5%;width:90%;height:1px;background:#1d2948;opacity:.7}
.nyxEqV4 .ghostline.a{top:18%}
.nyxEqV4 .ghostline.b{top:67%}
.nyxEqV4 .ghostline.c{top:83%}
.nyxEqV4 .app-ghost{position:absolute;left:4%;top:5%;font-size:12px;color:#273e5e;letter-spacing:4px}
.nyxEqV4 .reopen{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);display:none;border:1px solid #4873bd;background:#183673;border-radius:12px;padding:15px 22px;color:white;z-index:10}
.nyxEqV4 .backdrop{position:fixed;inset:0;background:#01040ba8;display:grid;place-items:center;padding:16px;z-index:20}
.nyxEqV4 .outer{width:min(1180px,100%);height:min(790px,calc(100dvh - 32px));min-height:580px;background:linear-gradient(180deg,#0c182d 0%,#081121 100%);border:1px solid var(--stroke);border-radius:14px;box-shadow:0 24px 90px #000c;display:flex;flex-direction:column;overflow:hidden}
.nyxEqV4 .tophead{min-height:47px;flex-shrink:0;padding:0 14px;display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--border);background:#0d1930}
.nyxEqV4 .headtitle{font-weight:750}
.nyxEqV4 .logo{color:#9cc4ff;font-size:17px}
.nyxEqV4 .headchip{font-size:11px;border:1px solid #33528a;border-radius:5px;background:#1a376b;padding:4px 7px;color:#cce1ff}
.nyxEqV4 .headsmall{font-size:11px;color:var(--muted)}
.nyxEqV4 .headright{margin-left:auto;display:flex;align-items:center;gap:7px}
.nyxEqV4 .iconbtn{height:30px;min-width:30px;border:1px solid #30405c;border-radius:8px;background:#17243b;padding:4px 9px}
.nyxEqV4 .iconbtn:hover{background:#233a62}
.nyxEqV4 .layout{min-height:0;flex:1;display:grid;grid-template-columns:266px minmax(0,1fr)}
.nyxEqV4 .sidebar{min-height:0;border-right:1px solid var(--border);background:#0a1528;display:flex;flex-direction:column;gap:10px;padding:12px}
.nyxEqV4 .left-block{border:1px solid var(--border);background:#0d192c;border-radius:10px;padding:11px}
.nyxEqV4 .block-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:9px}
.nyxEqV4 .detailbtn{border:1px solid #2e456e;border-radius:7px;background:#172740;color:#bbd1f6;padding:5px 7px;font-size:11px}
.nyxEqV4 .summary-stats{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.nyxEqV4 .stat-mini{background:#111f35;border:1px solid #21334c;border-radius:7px;padding:8px 9px;display:flex;justify-content:space-between;align-items:center;gap:5px}
.nyxEqV4 .stat-mini span{font-size:12px;color:#aabbd4}
.nyxEqV4 .stat-mini b{font-size:14px}
.nyxEqV4 .stat-mini .atk{color:#8cb8ff}
.nyxEqV4 .stat-mini .hp{color:#ffbb76}
.nyxEqV4 .side-counts{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.nyxEqV4 .counter{background:#102039;border:1px solid #253f66;border-radius:8px;padding:10px}
.nyxEqV4 .counter b{display:block;font-size:19px;margin:5px 0 0}
.nyxEqV4 .counter span{color:#8da9ce;font-size:11px}
.nyxEqV4 .set-line{display:flex;gap:8px;justify-content:space-between;padding:6px 0;border-top:1px solid #1d2b40;color:#b9c8e0;font-size:11px}
.nyxEqV4 .set-line:first-of-type{border-top:0}
.nyxEqV4 .sidebottom{margin-top:auto;color:#607ba0;font-size:11px;line-height:1.6;padding:4px}
.nyxEqV4 .work{min-width:0;min-height:0;display:flex;flex-direction:column;gap:9px;padding:11px 13px 12px}
.nyxEqV4 .select-area{flex-shrink:0;display:grid;gap:6px}
.nyxEqV4 .tabline{display:flex;gap:6px;min-width:0;align-items:center}
.nyxEqV4 .tablabel{min-width:39px;color:#8198bc;font-size:11px}
.nyxEqV4 .tabs{display:flex;gap:6px;flex-wrap:wrap;min-width:0}
.nyxEqV4 .tab{border:1px solid #293b57;border-radius:999px;background:#101c31;padding:6px 11px;color:#b8caea;font-size:12px;font-weight:640;white-space:nowrap}
.nyxEqV4 .tab.active{border-color:#366cd2;background:#2457cf;color:#fff}
.nyxEqV4 .tab.small{padding:6px 9px;font-size:11px}
.nyxEqV4 .tab.locked{opacity:.58}
.nyxEqV4 .item-card{min-height:0;flex:1;display:flex;flex-direction:column;border:1px solid #243653;background:#0b1629;border-radius:11px;overflow:hidden}
.nyxEqV4 .item-head{display:flex;align-items:center;gap:12px;padding:12px;border-bottom:1px solid #243653;min-height:65px}
.nyxEqV4 .item-symbol{height:41px;width:41px;display:grid;place-items:center;background:#172d51;border:1px solid #34518b;border-radius:8px;font-size:21px;color:#d9eaff}
.nyxEqV4 .item-header{min-width:0;flex:1}
.nyxEqV4 .item-header h2{font-size:16px}
.nyxEqV4 .item-sub{font-size:11px;color:#8ca5c6;margin-top:4px}
.nyxEqV4 .state-tags{display:flex;flex-wrap:wrap;gap:5px;justify-content:flex-end}
.nyxEqV4 .tag{font-size:11px;border:1px solid #2b4267;background:#12243e;padding:5px 8px;border-radius:6px;color:#c6d8f5}
.nyxEqV4 .tag.warn{border-color:#735c36;color:#f2c78b}
.nyxEqV4 .item-body{display:flex;flex-direction:column;min-height:0;flex:1;padding:11px 12px 12px;gap:9px}
.nyxEqV4 .equipment-stats{display:flex;flex-wrap:wrap;align-content:flex-start;gap:7px;border:1px solid #21344f;background:#0f1e34;border-radius:10px;padding:12px}
.nyxEqV4 .bigstat{border:1px solid #243a5e;border-radius:999px;background:#142640;padding:7px 10px;font-size:12px}
.nyxEqV4 .bigstat b{color:#b6d4ff}
.nyxEqV4 .bigstat.atk b{color:#79b6ff}
.nyxEqV4 .bigstat.hp b{color:#ffbd72}
.nyxEqV4 .source-line{font-size:11px;color:#8399ba;padding:0 2px}
.nyxEqV4 .gridfiller{flex:1;display:flex;align-items:center;justify-content:center;min-height:18px;color:#526985;font-size:11px}
.nyxEqV4 .operations{flex-shrink:0;border:1px solid #273e63;background:#0d1b33;border-radius:9px;padding:11px}
.nyxEqV4 .operationtitle{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px}
.nyxEqV4 .operationgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.nyxEqV4 .op{border:1px solid #344d78;background:#152743;border-radius:8px;min-height:44px;padding:7px;display:flex;align-items:center;justify-content:center;gap:5px;font-weight:700;color:#e0eaff}
.nyxEqV4 .op.primary{background:#2054cb;border-color:#346fe9}
.nyxEqV4 .op:hover{filter:brightness(1.22)}
.nyxEqV4 .status{min-height:21px;flex-shrink:0;font-size:11px;color:#9cbbe8;padding:3px 2px}
.nyxEqV4 .status.bad{color:#ffaaa6}
.nyxEqV4 .scroll-note{font-size:11px;color:#7490b7}
.nyxEqV4 .modal-shade{position:fixed;inset:0;z-index:99990;background:#01050bd9;padding:14px;display:none;align-items:center;justify-content:center}
.nyxEqV4 .modal-shade.open{display:flex}
.nyxEqV4 .inner-modal{width:min(990px,100%);height:min(680px,calc(100dvh - 28px));min-height:0;background:#0b1526;border:1px solid #2a3e5b;border-radius:17px;box-shadow:0 24px 70px #000b;display:flex;flex-direction:column;overflow:hidden}
.nyxEqV4 .modal-header{display:flex;justify-content:space-between;align-items:center;padding:15px 18px;border-bottom:1px solid #23334b;flex-shrink:0}
.nyxEqV4 .modal-header h2{font-size:20px;letter-spacing:.2px}
.nyxEqV4 .modal-label{color:#92a5c4;font-size:11px;margin-top:5px}
.nyxEqV4 .modal-close{border:1px solid #334967;border-radius:10px;background:#192941;width:35px;height:35px;font-size:22px}
.nyxEqV4 .modal-body{min-height:0;flex:1;padding:14px;display:flex;gap:12px}
.nyxEqV4 .modal-panel{border:1px solid #273951;background:#101b2d;border-radius:12px;padding:13px;min-width:0}
.nyxEqV4 .panel-label{color:#d2def3;font-weight:750;margin-bottom:10px;font-size:13px}
.nyxEqV4 .scroll-layout{display:grid;grid-template-columns:34% minmax(0,1fr);width:100%;gap:12px;min-height:0}
.nyxEqV4 .scroll-abilities{display:flex;flex-direction:column}
.nyxEqV4 .scroll-stats{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.nyxEqV4 .scroll-stat{background:#182338;border:1px solid #33405a;border-radius:10px;min-height:53px;padding:10px 9px;display:flex;align-items:center;justify-content:space-between;gap:5px}
.nyxEqV4 .scroll-stat span{font-size:12px;color:#c1d0e4}
.nyxEqV4 .scroll-stat strong{color:#e3ecff;font-size:14px}
.nyxEqV4 .scroll-stat small{color:#89b9fd;font-size:11px}
.nyxEqV4 .scroll-legend{font-size:11px;line-height:1.65;color:#91a3c0;margin-top:13px}
.nyxEqV4 .scroll-right{display:flex;flex-direction:column;gap:12px;min-height:0}
.nyxEqV4 .scroll-counters{flex-shrink:0}
.nyxEqV4 .counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.nyxEqV4 .countbox{border:1px solid #314562;border-radius:10px;padding:10px 8px;background:#17233a;text-align:center}
.nyxEqV4 .countbox span{font-size:11px;color:#aabbd6;display:block}
.nyxEqV4 .countbox b{font-size:21px;display:block;margin-top:3px;white-space:nowrap}
.nyxEqV4 .progress{height:5px;border-radius:4px;background:#26344e;overflow:hidden;margin-top:10px}
.nyxEqV4 .progress>i{display:block;height:100%;width:0%;background:#4d83f7}
.nyxEqV4 .scroll-buttons{flex:1;display:flex;flex-direction:column;min-height:0}
.nyxEqV4 .button-list{display:grid;grid-template-columns:1fr 1fr;gap:9px;align-content:start}
.nyxEqV4 .scroll-btn{background:linear-gradient(180deg,#203962,#182c4e);border:1px solid #38517a;border-radius:12px;padding:12px 9px;min-height:48px;color:#e7efff;font-size:12px;font-weight:760;text-align:center}
.nyxEqV4 .scroll-btn small{color:#9ab6e4;font-size:11px;margin-left:4px}
.nyxEqV4 .scroll-btn:hover:not(:disabled){background:#2b4b83}
.nyxEqV4 .scroll-btn.expand{border-color:#6e603e;background:#403622;color:#ffe2a7}
.nyxEqV4 .scroll-feedback{min-height:27px;display:flex;align-items:center;font-size:11px;color:#9ed5b6;flex-shrink:0;margin-top:auto;padding-top:7px}
.nyxEqV4 .scroll-feedback.err{color:#ffaeaa}
.nyxEqV4 .pendingbox{border:1px solid #385e74;background:#15253a;border-radius:9px;padding:8px;font-size:12px;margin-top:7px;display:none}
.nyxEqV4 .pendingbox.show{display:block}
.nyxEqV4 .pending-actions{display:flex;gap:7px;margin-top:8px}
.nyxEqV4 .pendbtn{border:1px solid #4e6996;background:#25457d;border-radius:7px;padding:8px 12px;font-weight:700;flex:1}
.nyxEqV4 .flame-modal{width:min(640px,100%);height:auto;max-height:calc(100dvh - 28px)}
.nyxEqV4 .flame-body{display:flex;flex-direction:column;gap:12px;padding:15px;overflow:auto}
.nyxEqV4 .flame-ability{border:1px solid #293f63;border-radius:13px;background:#101d33;padding:14px}
.nyxEqV4 .flame-group-header{display:flex;justify-content:space-between;align-items:center;gap:5px;margin-bottom:10px}
.nyxEqV4 .flame-tag{font-size:11px;color:#b7c9e8;border:1px solid #2d4267;border-radius:6px;padding:5px 8px}
.nyxEqV4 .flame-values{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.nyxEqV4 .flame-attr{background:#17253d;border:1px solid #2d4265;padding:10px 7px;border-radius:11px;text-align:center}
.nyxEqV4 .flame-attr span{font-size:11px;color:#aebed6;display:block}
.nyxEqV4 .flame-attr b{font-size:18px;color:#daecff;display:block;margin-top:5px}
.nyxEqV4 .flame-compare{display:none;grid-template-columns:1fr 1fr;gap:10px}
.nyxEqV4 .flame-compare.show{display:grid}
.nyxEqV4 .comparebox{background:#13233b;border:1px solid #355078;padding:12px;border-radius:11px}
.nyxEqV4 .comparebox.highlight{border-color:#567fc0}
.nyxEqV4 .comparebox h3{font-size:12px;margin-bottom:10px;color:#a4bee8}
.nyxEqV4 .compareline{display:flex;justify-content:space-between;border-top:1px solid #273b5a;padding:8px 0;font-size:12px}
.nyxEqV4 .compareline:first-of-type{border-top:0}
.nyxEqV4 .flame-footer{border-top:1px solid #243650;padding:13px 15px 15px}
.nyxEqV4 .flame-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.nyxEqV4 .flame-btn{min-height:49px;border:1px solid #3c5991;background:#1c3d87;border-radius:11px;font-weight:760;font-size:13px}
.nyxEqV4 .flame-btn small{display:block;font-size:10px;color:#c1d7ff;margin-top:4px}
.nyxEqV4 .flame-feedback{font-size:12px;color:#abc4e8;margin-bottom:9px;min-height:15px}
.nyxEqV4 .flame-decide{display:none;gap:10px;grid-template-columns:1fr 1fr}
.nyxEqV4 .flame-decide.show{display:grid}
.nyxEqV4 .flame-decide button{min-height:46px;border:1px solid #456598;border-radius:10px;background:#214b98;font-weight:740}
.nyxEqV4 .flame-decide button.secondary{background:#182a48}
.nyxEqV4 .toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);border:1px solid #335b8c;background:#101f37;color:#e2efff;border-radius:9px;padding:9px 15px;box-shadow:0 15px 55px #000b;font-size:12px;z-index:100010;opacity:0;pointer-events:none;transition:opacity .18s;max-width:90%;text-align:center}
.nyxEqV4 .toast.show{opacity:1}
.nyxEqV4 .flame-modal .modal-header{padding:13px 15px}
@media (max-width:800px){.nyxEqV4 .backdrop{padding:8px}
.nyxEqV4 .outer{height:calc(100dvh - 16px);min-height:0;border-radius:11px}
.nyxEqV4 .layout{grid-template-columns:1fr;display:flex;flex-direction:column;overflow:hidden}
.nyxEqV4 .sidebar{padding:9px;border-right:0;border-bottom:1px solid #253957;flex-shrink:0;gap:5px}
.nyxEqV4 .sidebar .left-block{padding:8px}
.nyxEqV4 .summary-stats{grid-template-columns:repeat(4,1fr);gap:5px}
.nyxEqV4 .stat-mini{padding:6px 5px;flex-direction:column;gap:1px}
.nyxEqV4 .stat-mini span{font-size:10px}
.nyxEqV4 .stat-mini b{font-size:12px}
.nyxEqV4 .sidebar .left-block:nth-child(n/**/+2),.nyxEqV4 .sidebottom{display:none}
.nyxEqV4 .work{padding:9px;gap:7px;min-height:0;flex:1;overflow:auto;scrollbar-width:thin}
.nyxEqV4 .tabline{align-items:flex-start}
.nyxEqV4 .tablabel{padding-top:7px}
.nyxEqV4 .tabs{flex-wrap:nowrap;overflow:auto;scrollbar-width:none}
.nyxEqV4 .tabs::-webkit-scrollbar{display:none}
.nyxEqV4 .tab{padding:7px 10px}
.nyxEqV4 .item-head{padding:9px;min-height:55px}
.nyxEqV4 .item-symbol{width:36px;height:36px}
.nyxEqV4 .item-header h2{font-size:14px}
.nyxEqV4 .item-body{padding:8px;gap:7px}
.nyxEqV4 .equipment-stats{padding:8px;gap:5px}
.nyxEqV4 .bigstat{padding:6px 8px;font-size:11px}
.nyxEqV4 .gridfiller{display:none}
.nyxEqV4 .operationgrid{grid-template-columns:repeat(4,1fr);gap:5px}
.nyxEqV4 .op{min-height:40px;padding:6px 4px;font-size:12px}
.nyxEqV4 .operations{padding:8px}
.nyxEqV4 .headsmall{display:none}
.nyxEqV4 .headchip{font-size:10px}
.nyxEqV4 .modal-shade{padding:8px}
.nyxEqV4 .inner-modal{height:min(740px,calc(100dvh - 16px));border-radius:13px}
.nyxEqV4 .modal-header{padding:11px 12px}
.nyxEqV4 .modal-header h2{font-size:17px}
.nyxEqV4 .modal-body{padding:9px}
.nyxEqV4 .scroll-layout{display:flex;flex-direction:column;gap:8px;overflow:auto;scrollbar-width:thin}
.nyxEqV4 .scroll-abilities{flex:0 0 auto}
.nyxEqV4 .scroll-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.nyxEqV4 .scroll-stat{flex-direction:column;text-align:center;gap:3px;min-height:48px;padding:8px 4px}
.nyxEqV4 .scroll-stat span{font-size:10px}
.nyxEqV4 .scroll-stat strong{font-size:12px}
.nyxEqV4 .scroll-stat small{font-size:10px}
.nyxEqV4 .scroll-legend{display:none}
.nyxEqV4 .modal-panel{padding:9px}
.nyxEqV4 .panel-label{font-size:12px;margin-bottom:7px}
.nyxEqV4 .scroll-right{flex:1}
.nyxEqV4 .countbox{padding:8px 4px}
.nyxEqV4 .countbox b{font-size:17px}
.nyxEqV4 .button-list{gap:7px}
.nyxEqV4 .scroll-btn{min-height:43px;padding:8px 5px;font-size:11px}
.nyxEqV4 .flame-modal{height:auto;max-height:calc(100dvh - 16px)}
.nyxEqV4 .flame-values{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.nyxEqV4 .flame-attr{padding:8px 3px}
.nyxEqV4 .flame-attr b{font-size:14px}
.nyxEqV4 .flame-body{padding:10px;gap:8px}
.nyxEqV4 .flame-footer{padding:10px}
.nyxEqV4 .flame-btn{font-size:11px;padding:7px 3px}
.nyxEqV4 .flame-btn small{font-size:10px}}
@media (max-width:400px){.nyxEqV4 .sidebar{padding:7px}
.nyxEqV4 .tophead{padding:0 8px;gap:6px}
.nyxEqV4 .headchip{display:none}
.nyxEqV4 .work{padding:7px}
.nyxEqV4 .operationgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
.nyxEqV4 .item-head{align-items:flex-start}
.nyxEqV4 .state-tags{max-width:132px}
.nyxEqV4 .tag{font-size:10px;padding:3px 5px}
.nyxEqV4 .scroll-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.nyxEqV4 .scroll-stat{padding:6px 2px}
.nyxEqV4 .countbox b{font-size:15px}
.nyxEqV4 .flame-attr b{font-size:13px}}
@media (max-height:700px) and (min-width:801px){.nyxEqV4 .outer{min-height:0}
.nyxEqV4 .sidebar{overflow:auto}
.nyxEqV4 .gridfiller{display:none}
.nyxEqV4 .equipment-stats{padding:8px}
.nyxEqV4 .item-body{padding:8px}
.nyxEqV4 .operations{padding:8px}
.nyxEqV4 .item-head{padding:7px}
.nyxEqV4 .sidebottom{display:none}}
@media (min-width:801px){.nyxEqV4 .outer{height:min(652px,calc(100dvh - 32px));min-height:520px}
.nyxEqV4 .inner-modal:not(.flame-modal){height:min(625px,calc(100dvh - 28px))}}
@media (max-width:800px){.nyxEqV4 .outer{height:auto;max-height:calc(100dvh - 16px);min-height:0}
.nyxEqV4 .layout{flex:0 1 auto;overflow:auto}
.nyxEqV4 .sidebar{flex:0 0 auto}
.nyxEqV4 .work{flex:0 1 auto;overflow:visible}
.nyxEqV4 .item-card{flex:0 0 auto}
.nyxEqV4 .item-body{flex:0 0 auto}
.nyxEqV4 .scroll-layout{overflow:auto}}
.nyxEqV4 .mobile-summary-bar{display:none}
.nyxEqV4 .side-tabs{display:flex;gap:5px;margin-bottom:12px;padding-bottom:9px;border-bottom:1px solid #273850}
.nyxEqV4 .side-tab{flex:1;min-height:35px;background:#14233b;color:#a9c0e4;border:1px solid #2d415f;border-radius:8px;font-weight:760;font-size:12px}
.nyxEqV4 .side-tab.active{background:#285bd1;border-color:#3972ee;color:#fff}
.nyxEqV4 .side-pane[hidden]{display:none!important}
.nyxEqV4 .side-main{flex:1;min-height:0;display:flex;flex-direction:column}
.nyxEqV4 .side-pane{min-height:0}
.nyxEqV4 .side-main .stat-mini{min-height:42px}
.nyxEqV4 .summary-foot{font-size:10px;color:#7e95ba;line-height:1.65;margin-top:12px}
.nyxEqV4 .set-placeholder{padding:24px 11px;text-align:center;border:1px solid #263c5d;background:#101f35;border-radius:10px;color:#bbccdf;line-height:1.6}
.nyxEqV4 .set-placeholder .set-dot{font-size:27px;color:#86adf9;display:block;margin-bottom:6px}
.nyxEqV4 .set-placeholder strong{display:block;color:#e4efff;font-size:14px}
.nyxEqV4 .set-placeholder p{font-size:11px;margin-top:9px;color:#97acca}
.nyxEqV4 .layout{grid-template-columns:274px minmax(0,1fr)}
.nyxEqV4 .item-body{gap:9px}
.nyxEqV4 .gear-stat-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:26px}
.nyxEqV4 .equipment-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;border:none;background:transparent;padding:0}
.nyxEqV4 .bigstat{border:1px solid #2b4264;border-radius:10px;background:linear-gradient(180deg,#142842,#11223b);padding:11px 13px;min-height:78px;display:flex;flex-direction:column;justify-content:center;gap:5px;min-width:0}
.nyxEqV4 .bigstat span{font-weight:760;font-size:12px;color:#a9c0df}
.nyxEqV4 .bigstat b{font-size:23px;color:#e2edff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nyxEqV4 .bigstat.atk b{color:#81b8ff}
.nyxEqV4 .bigstat.hp b{color:#ffbd82}
.nyxEqV4 .source-line{font-size:11px;padding:1px 1px 3px}
.nyxEqV4 .source-panel{min-height:0;flex:1;display:flex;flex-direction:column;border:1px solid #263b59;border-radius:10px;padding:11px 12px;background:#0d1b30;overflow:auto}
.nyxEqV4 .source-panel.collapsed{display:none}
.nyxEqV4 .source-title{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:9px}
.nyxEqV4 .source-title strong{font-size:12px;color:#d4e5fa}
.nyxEqV4 .source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;min-height:0}
.nyxEqV4 .source-card{border:1px solid #263b58;background:#112139;border-radius:8px;display:flex;gap:8px;align-items:flex-start;padding:10px;min-width:0}
.nyxEqV4 .source-card-name{font-weight:800;color:#9fc4ff;white-space:nowrap;font-size:11px;min-width:30px}
.nyxEqV4 .source-card-value{font-size:11px;line-height:1.55;color:#9aafcc;min-width:0;word-break:break-word}
.nyxEqV4 .source-card-value b{font-size:11px;color:#dbeaff}
.nyxEqV4 .source-panel:not(.collapsed) + .operations{margin-top:0}
.nyxEqV4 .operations{margin-top:auto}
.nyxEqV4 .summary-modal{width:min(520px,100%);height:auto;max-height:calc(100dvh - 20px)}
.nyxEqV4 .summary-modal-body{padding:14px;overflow:auto}
.nyxEqV4 .mobile-full-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.nyxEqV4 .mobile-full-stats .stat-mini{display:flex;flex-direction:column;gap:5px;padding:13px 5px}
.nyxEqV4 .mobile-full-stats .stat-mini b{font-size:16px}
.nyxEqV4 .mobile-counts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.nyxEqV4 .probability-modal{width:min(540px,100%);height:auto;max-height:calc(100dvh - 20px)}
.nyxEqV4 .prob-body{padding:15px}
.nyxEqV4 .prob-tabs{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:13px}
.nyxEqV4 .prob-tab{padding:8px 12px;background:#12223b;border:1px solid #2d4365;border-radius:8px;color:#b0c5e6}
.nyxEqV4 .prob-tab.active{background:#2557c6;border-color:#4b7bf0;color:white}
.nyxEqV4 .prob-description{padding:16px;border:1px solid #2c4362;border-radius:10px;color:#afc3e4;font-size:12px;line-height:1.8;background:#102039}
@media (min-width:801px){.nyxEqV4 .source-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.nyxEqV4 .source-panel{padding:8px 10px}
.nyxEqV4 .source-title{margin-bottom:5px}
.nyxEqV4 .source-card{display:block;padding:7px 8px;min-height:35px}
.nyxEqV4 .source-card-name{display:inline;margin-right:5px}
.nyxEqV4 .source-card-value{display:inline}
.nyxEqV4 .outer{height:min(680px,calc(100dvh - 28px));min-height:540px}
.nyxEqV4 .work{gap:7px}
.nyxEqV4 .item-body{overflow:hidden}
.nyxEqV4 .equipment-stats{gap:8px}
.nyxEqV4 .bigstat{min-height:75px}
.nyxEqV4 .source-panel{min-height:85px}}
@media (max-width:800px){.nyxEqV4 .layout{display:flex;flex-direction:column}
.nyxEqV4 .sidebar{display:none!important}
.nyxEqV4 .mobile-summary-bar{display:flex;flex-shrink:0;align-items:center;gap:8px;justify-content:space-between;padding:8px 11px;background:#101f37;border-bottom:1px solid #2c4364}
.nyxEqV4 .mobile-summary-title{display:flex;flex-direction:column;gap:2px;min-width:0}
.nyxEqV4 .mobile-summary-eyebrow{font-size:10px;color:#96aacf;font-weight:730}
.nyxEqV4 .mobile-summary-pair{font-size:12px;color:#c0d3f1;white-space:nowrap}
.nyxEqV4 .mobile-summary-pair b{color:#e3eeff}
.nyxEqV4 .mobile-summary-open{border:1px solid #3c5d90;border-radius:8px;background:#1a396f;padding:8px 10px;color:#d9eaff;font-size:11px;font-weight:720;white-space:nowrap}
.nyxEqV4 .item-card{flex:0 0 auto}
.nyxEqV4 .item-body{padding:8px;gap:7px}
.nyxEqV4 .gear-stat-heading{min-height:24px}
.nyxEqV4 .equipment-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:0;border:0}
.nyxEqV4 .bigstat{border-radius:8px;min-height:59px;padding:7px 4px;gap:4px;text-align:center;align-items:center}
.nyxEqV4 .bigstat span{font-size:10px}
.nyxEqV4 .bigstat b{font-size:15px;max-width:100%}
.nyxEqV4 .source-panel{display:none;flex:0 0 auto;padding:9px}
.nyxEqV4 .source-panel.expanded:not(.collapsed){display:flex}
.nyxEqV4 .source-grid{grid-template-columns:1fr 1fr}
.nyxEqV4 .source-card{padding:8px}
.nyxEqV4 .source-card-value{font-size:10px}
.nyxEqV4 .summary-modal-body{padding:12px}
.nyxEqV4 .mobile-full-stats .stat-mini{padding:12px 3px}
.nyxEqV4 .mobile-full-stats .stat-mini b{font-size:14px}}
@media (max-width:400px){.nyxEqV4 .bigstat{min-height:54px}
.nyxEqV4 .bigstat b{font-size:14px}
.nyxEqV4 .mobile-summary-open{padding:7px 8px;font-size:10px}
.nyxEqV4 .source-grid{grid-template-columns:1fr}
.nyxEqV4 .gear-stat-heading .tiny{display:none}}
/* B4-R2 live shell overrides: V4 owns the layout, not the SQL authority. */
#equipHubModal > div{width:min(1260px,98vw)!important;height:min(800px,94dvh)!important;max-height:94dvh!important;min-height:0!important;background:#091426!important;}
#equipHubTabs{display:none!important}
#equipHubBody{padding:0!important;overflow:hidden!important;min-height:0!important;height:100%!important}
.nyxEqV4{--bg:#050a13;--surface:#091426;--panel:#0d1a30;--panel2:#101e35;--border:#23334b;--stroke:#304460;--ink:#e7efff;--text:#cedcf7;--muted:#879bbd;--blue:#275bde;--bluehi:#3e77f7;--mint:#62e6b8;--gold:#ffd07f;--red:#ff9999;color:var(--ink);font-family:system-ui,-apple-system,'Noto Sans TC','Microsoft JhengHei',sans-serif;font-size:13px;box-sizing:border-box}
.nyxEqV4 button{font:inherit;cursor:pointer}
.nyxEqV4 button:disabled{opacity:.4;cursor:not-allowed}
.nyxEqV4 .outer{width:100%;height:100%;min-height:0;border:0;border-radius:0;box-shadow:none}
.nyxEqV4 .headright .iconbtn{font-size:12px}
.nyxEqV4 .summary-stats{align-content:start}
.nyxEqV4 .summary-foot{font-size:11px;line-height:1.5;color:#8fa4c4;margin-top:10px}
.nyxEqV4 .source-card{overflow:hidden}
.nyxEqV4 .source-card-value{overflow-wrap:anywhere}
.nyxEqV4 .bigstat{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border-radius:10px;min-height:69px}
.nyxEqV4 .bigstat span{color:#9fb4d5;font-size:12px}
.nyxEqV4 .bigstat b{font-size:19px;white-space:nowrap}
.nyxEqV4 .equipment-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.nyxEqV4 .source-panel{border:1px solid #2a4060;background:#0e1d33;border-radius:9px;padding:10px;display:flex;flex-direction:column;gap:8px}
.nyxEqV4 .source-panel.collapsed{display:none}
.nyxEqV4 .source-title{display:flex;justify-content:space-between;gap:6px;color:#c4d4ee;font-size:12px}
.nyxEqV4 .source-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.nyxEqV4 .source-card{background:#13233a;border:1px solid #2d4363;border-radius:7px;padding:9px}
.nyxEqV4 .source-card-name{font-size:11px;color:#8da9ce;margin-bottom:5px}
.nyxEqV4 .source-card-value{font-size:11px;line-height:1.6;color:#d5e4f8}
.nyxEqV4 .source-card-value b{color:#a7d2ff}
.nyxEqV4 .gear-stat-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}
.nyxEqV4 .mobile-summary-bar{display:none}
.nyxEqV4 .side-tabs{display:flex;gap:5px;margin-bottom:9px}
.nyxEqV4 .side-tab{flex:1;border:1px solid #31435f;border-radius:7px;background:#14233b;padding:8px 6px;font-size:12px}
.nyxEqV4 .side-tab.active{border-color:#3d73d5;background:#2456be}
.nyxEqV4 .side-pane[hidden]{display:none!important}
.nyxEqV4 .set-line{display:block;line-height:1.5}
.nyxEqV4 .set-line strong{color:#e0e9fc}
.nyxEqV4 .set-line small{display:block;color:#9baed0}
.nyxEqV4 .set-placeholder{font-size:12px;color:#a4b8d9;line-height:1.7}
.nyxEqV4 .set-placeholder p{margin-top:6px}
.nyxEqV4 .mobile-full-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.nyxEqV4 .summary-modal-body{padding:14px;overflow:auto}
.nyxEqV4 .summary-modal{width:min(580px,100%);height:auto;max-height:92dvh}
.nyxEqV4 .modal-shade{z-index:100090}
.nyxEqV4 .flame-compare{overflow:auto}
.nyxEqV4 .compareline strong{color:#c4dcff}
.nyxEqV4 .button-list{overflow:auto;padding-right:2px}
.nyxEqV4 .scroll-layout{overflow:hidden}
.nyxEqV4 .scroll-right{overflow:hidden}
.nyxEqV4 .flame-attr{min-width:0}
.nyxEqV4 .flame-attr b{overflow-wrap:anywhere}
.nyxEqV4 .op:disabled{opacity:.38}
.nyxEqV4 .modal-shade .inner-modal{color:#e8f0ff}
.nyxEqV4 .readonlyhint{color:#8da5c9;font-size:11px;line-height:1.5}
@media(max-width:800px){
 #equipHubModal{padding:5px!important}
 #equipHubModal > div{width:100%!important;height:calc(100dvh - 10px)!important;max-height:none!important}
 .nyxEqV4 .mobile-summary-bar{display:flex}
 .nyxEqV4 .sidebar{display:none!important}
 .nyxEqV4 .equipment-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
 .nyxEqV4 .bigstat{min-height:57px;gap:3px;padding:6px 2px}
 .nyxEqV4 .bigstat span{font-size:10px}
 .nyxEqV4 .bigstat b{font-size:14px}
 .nyxEqV4 .source-panel{display:none}
 .nyxEqV4 .source-panel.expanded{display:flex}
 .nyxEqV4 .source-panel.expanded.collapsed{display:none}
 .nyxEqV4 .source-grid{grid-template-columns:1fr 1fr}
 .nyxEqV4 .source-panel .source-card{padding:8px}
 .nyxEqV4 .inner-modal{min-height:0}
 .nyxEqV4 .modal-body{overflow:auto}
 .nyxEqV4 .scroll-layout{overflow:auto}
 .nyxEqV4 .scroll-right{overflow:visible}
 .nyxEqV4 .button-list{overflow:visible}
 .nyxEqV4 .flame-values{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:400px){.nyxEqV4 .source-grid{grid-template-columns:1fr}.nyxEqV4 .op{font-size:11px}.nyxEqV4 .headchip{display:none}}


/* NYX Equipment V4 / B4-R3 — CSS-only refinement.
   Scoped to .nyxEqV4: no starforce core, roll mechanics, SQL or markup changes.
   Keep these rules grouped by viewport so subsequent tweaks have one clear override area.
*/
.nyxEqV4{
  --eq-focus:#a5d2ff;
  --eq-hover:#1c355a;
  --eq-edge:#324e75;
  --eq-shadow:0 20px 65px rgba(0,0,0,.58);
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
.nyxEqV4 :is(.layout,.work,.sidebar,.item-card,.item-body,.source-panel,.modal-body,.scroll-layout,.scroll-right,.flame-body,.summary-modal-body,.prob-body){min-width:0}
.nyxEqV4 :is(.summary-stats,.equipment-stats,.scroll-stats,.flame-values,.source-grid,.button-list,.counts){min-width:0}
.nyxEqV4 :is(.stat-mini,.bigstat,.scroll-stat,.flame-attr,.source-card,.countbox){min-width:0;font-variant-numeric:tabular-nums}
.nyxEqV4 :is(.stat-mini b,.bigstat b,.scroll-stat strong,.flame-attr b,.countbox b){font-variant-numeric:tabular-nums}
.nyxEqV4 :is(.bigstat b,.stat-mini b,.countbox b,.flame-attr b){max-width:100%;overflow-wrap:anywhere;word-break:normal;text-overflow:clip;white-space:normal;line-height:1.22}
.nyxEqV4 :is(.tab,.side-tab,.op,.scroll-btn,.flame-btn,.detailbtn,.iconbtn,.mobile-summary-open,.pendbtn,.prob-tab){transition:background-color .13s ease,border-color .13s ease,box-shadow .13s ease,color .13s ease}
.nyxEqV4 :is(.tab,.side-tab,.op,.scroll-btn,.flame-btn,.detailbtn,.iconbtn,.mobile-summary-open,.pendbtn,.prob-tab):focus-visible{outline:2px solid var(--eq-focus);outline-offset:2px}
.nyxEqV4 :is(.tab,.side-tab,.op,.scroll-btn,.flame-btn,.detailbtn,.iconbtn,.mobile-summary-open,.pendbtn,.prob-tab):not(:disabled):active{filter:brightness(1.1)}
.nyxEqV4 :is(.scroll-layout,.button-list,.flame-body,.summary-modal-body,.prob-body,.source-panel,.sidebar,.work){scrollbar-width:thin;scrollbar-color:#42618e transparent}
.nyxEqV4 .tophead{background:#101d34}
.nyxEqV4 .headtitle{letter-spacing:.2px}
.nyxEqV4 .left-block{border-color:#2a3e5e}
.nyxEqV4 .item-card{border-color:#2b4062;box-shadow:inset 0 1px 0 rgba(200,225,255,.025)}
.nyxEqV4 .item-symbol{flex:0 0 41px}
.nyxEqV4 .item-header h2{line-height:1.3}
.nyxEqV4 .state-tags{align-items:center}
.nyxEqV4 .equipment-stats{align-content:start}
.nyxEqV4 .bigstat{min-height:70px;background:#142640;border-color:#355077;justify-content:center}
.nyxEqV4 .bigstat span{letter-spacing:.4px}
.nyxEqV4 .bigstat b{font-size:clamp(15px,1.45vw,21px)}
.nyxEqV4 .source-line{line-height:1.5}
.nyxEqV4 .source-panel{background:#0f1c31;border-color:#2a4163;overscroll-behavior:contain}
.nyxEqV4 .source-grid{align-content:start}
.nyxEqV4 .source-card{min-height:0}
.nyxEqV4 .source-card-value{overflow-wrap:anywhere}
.nyxEqV4 .operations{background:#10203a;border-color:#2b4369}
.nyxEqV4 .op{min-height:43px}
.nyxEqV4 .op.primary{background:#2459d2;border-color:#4479ea}
.nyxEqV4 .tab.active,.nyxEqV4 .side-tab.active,.nyxEqV4 .prob-tab.active{box-shadow:inset 0 0 0 1px rgba(255,255,255,.07)}
.nyxEqV4 .modal-shade{background:rgba(2,6,16,.86)}
.nyxEqV4 .inner-modal{box-shadow:var(--eq-shadow)}
.nyxEqV4 .modal-header{background:#101e34}
.nyxEqV4 .modal-close{flex:0 0 35px}
.nyxEqV4 .scroll-layout{grid-template-columns:minmax(230px,34%) minmax(0,1fr)}
.nyxEqV4 .scroll-abilities{min-width:0}
.nyxEqV4 .scroll-right{min-width:0}
.nyxEqV4 .scroll-btn{line-height:1.4}
.nyxEqV4 .scroll-btn small{display:inline;color:#b8cef4}
.nyxEqV4 .countbox b{font-size:clamp(15px,1.8vw,21px)}
.nyxEqV4 .flame-modal{width:min(700px,100%)}
.nyxEqV4 .flame-attr{min-width:0}
.nyxEqV4 .flame-footer{background:#0d192d}
.nyxEqV4 .flame-actions{gap:8px}
.nyxEqV4 .flame-btn{min-height:47px;line-height:1.3}
.nyxEqV4 .prob-body{overflow:auto}
.nyxEqV4 .prob-tab{min-height:39px}
/* Desktop: stable two-panel geometry, ability grid and fixed action footer. */
@media (min-width:1001px){
  .nyxEqV4 .layout{grid-template-columns:278px minmax(0,1fr)}
  .nyxEqV4 .sidebar{gap:9px}
  .nyxEqV4 .work{gap:8px}
  .nyxEqV4 .source-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .nyxEqV4 .source-card{min-height:38px}
  .nyxEqV4 .item-body{overflow:hidden}
  .nyxEqV4 .source-panel{min-height:78px;max-height:190px;overflow-y:auto;flex:0 1 auto}
  .nyxEqV4 .operations,.nyxEqV4 .source-panel:not(.collapsed) + .operations{margin-top:auto}
}
/* Narrow laptop: avoid squeezing side summary and single-equipment details. */
@media (min-width:801px) and (max-width:1000px){
  .nyxEqV4 .layout{grid-template-columns:232px minmax(0,1fr)}
  .nyxEqV4 .sidebar{padding:9px}
  .nyxEqV4 .work{padding:9px}
  .nyxEqV4 .source-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .nyxEqV4 .bigstat{min-height:64px;padding:8px 5px}
  .nyxEqV4 .bigstat b{font-size:16px}
  .nyxEqV4 .source-panel{max-height:175px;overflow:auto;flex:0 1 auto}
  .nyxEqV4 .operations,.nyxEqV4 .source-panel:not(.collapsed) + .operations{margin-top:auto}
  .nyxEqV4 .scroll-layout{grid-template-columns:minmax(210px,32%) minmax(0,1fr)}
}
/* Mobile: one vertical scroller (the main dashboard), horizontal category strips. */
@media (max-width:800px){
  #equipHubModal > div{max-height:calc(100dvh - 10px)!important}
  .nyxEqV4 .outer{height:100%;max-height:100%;min-height:0;overflow:hidden}
  .nyxEqV4 .layout{min-height:0;flex:1 1 auto;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
  .nyxEqV4 .mobile-summary-bar{flex-shrink:0}
  .nyxEqV4 .work{min-height:0;flex:0 0 auto;overflow:visible;padding:9px;gap:8px}
  .nyxEqV4 .select-area{min-width:0}
  .nyxEqV4 .tabline{min-width:0}
  .nyxEqV4 .tabs{flex-wrap:nowrap;min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .nyxEqV4 .item-card{flex:0 0 auto;overflow:visible}
  .nyxEqV4 .item-body{flex:0 0 auto;overflow:visible}
  .nyxEqV4 .item-head{gap:8px}
  .nyxEqV4 .item-symbol{flex:0 0 36px}
  .nyxEqV4 .state-tags{gap:4px}
  .nyxEqV4 .equipment-stats{gap:5px}
  .nyxEqV4 .bigstat{min-height:57px;padding:7px 3px}
  .nyxEqV4 .bigstat span{font-size:10px}
  .nyxEqV4 .bigstat b{font-size:clamp(11px,3.3vw,16px);line-height:1.2}
  .nyxEqV4 .source-panel{display:none;max-height:none;overflow:visible}
  .nyxEqV4 .source-panel.expanded:not(.collapsed){display:flex}
  .nyxEqV4 .operations,.nyxEqV4 .source-panel:not(.collapsed) + .operations{margin-top:0}
  .nyxEqV4 .op{min-height:41px}
  /* Dialogs own their scroll area; no nested scrolling in scroll buttons. */
  .nyxEqV4 .modal-shade{padding:7px}
  .nyxEqV4 .inner-modal{height:min(740px,calc(100dvh - 14px));max-height:calc(100dvh - 14px)}
  .nyxEqV4 .modal-body{min-height:0;overflow:hidden}
  .nyxEqV4 .scroll-layout{min-height:0;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
  .nyxEqV4 .scroll-abilities,.nyxEqV4 .scroll-right{flex:0 0 auto;overflow:visible}
  .nyxEqV4 .button-list{overflow:visible}
  .nyxEqV4 .scroll-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
  .nyxEqV4 .scroll-stat{min-height:49px}
  .nyxEqV4 .scroll-btn{min-height:44px}
  .nyxEqV4 .flame-modal{height:auto;max-height:calc(100dvh - 14px)}
  .nyxEqV4 .flame-body{overflow-y:auto;overscroll-behavior:contain}
  .nyxEqV4 .flame-values{grid-template-columns:repeat(2,minmax(0,1fr))}
  .nyxEqV4 .flame-footer{flex:0 0 auto}
  .nyxEqV4 .summary-modal,.nyxEqV4 .probability-modal{max-height:calc(100dvh - 14px)}
  .nyxEqV4 .summary-modal-body,.nyxEqV4 .prob-body{min-height:0;overflow-y:auto}
}
@media (max-width:400px){
  .nyxEqV4 .layout{font-size:12px}
  .nyxEqV4 .item-head{flex-wrap:wrap}
  .nyxEqV4 .state-tags{justify-content:flex-start}
  .nyxEqV4 .bigstat{min-height:53px}
  .nyxEqV4 .bigstat b{font-size:clamp(10px,3.4vw,14px)}
  .nyxEqV4 .flame-actions{gap:5px}
  .nyxEqV4 .flame-btn{font-size:11px;padding:6px 2px}
  .nyxEqV4 .flame-btn small{font-size:9px}
}
@media (max-height:670px) and (min-width:801px){
  .nyxEqV4 .outer{min-height:0}
  .nyxEqV4 .sidebar{overflow-y:auto}
  .nyxEqV4 .item-head{min-height:53px;padding:7px 10px}
  .nyxEqV4 .bigstat{min-height:51px;padding:5px 7px}
  .nyxEqV4 .item-body{gap:6px;padding:7px}
  .nyxEqV4 .source-panel{max-height:115px;min-height:0}
  .nyxEqV4 .operations{padding:7px}
}
@media (prefers-reduced-motion:reduce){
  .nyxEqV4 :is(.tab,.side-tab,.op,.scroll-btn,.flame-btn,.detailbtn,.iconbtn,.mobile-summary-open,.pendbtn,.prob-tab){transition:none}
}


/* === B4-R4 Approved R4 simplified presentation (CSS-only) === */
/* NYX Equipment B4-R4 — visual design comparison only.
   Pure CSS, scoped to V4. Keep original starforce modal untouched. */
.nyxEqV4{
  --eq4-canvas:#071222;
  --eq4-card:#0f2138;
  --eq4-elevated:#152b47;
  --eq4-edge:#30496b;
  --eq4-accent:#67c6f6;
  --eq4-text:#ecf5ff;
  --eq4-muted:#95b0d0;
  --eq4-glow:rgba(58,144,236,.13);
  color:var(--eq4-text);
}
.nyxEqV4 .outer{background:var(--eq4-canvas)}
.nyxEqV4 .tophead{background:#0d2037;border-bottom:1px solid #2b4564;min-height:52px;padding-inline:17px}
.nyxEqV4 .headtitle{font-size:14px;letter-spacing:.04em}
.nyxEqV4 .headchip{background:#193b58;border-color:#33799b;color:#bfe8ff}
.nyxEqV4 .sidebar{background:#081624;border-right:1px solid #274462;padding:15px 13px;gap:12px}
.nyxEqV4 .left-block{background:transparent;border-color:#253e59;border-radius:13px;padding:12px}
.nyxEqV4 .side-tabs{gap:0;border-bottom:1px solid #2a4664;margin-bottom:14px;padding:0}
.nyxEqV4 .side-tab{background:transparent!important;border:0!important;border-radius:0!important;color:#8fa8c8!important;min-height:38px;font-size:12px;box-shadow:none!important}
.nyxEqV4 .side-tab.active{color:#f0f8ff!important;border-bottom:2px solid #6dc7ff!important;background:linear-gradient(0deg,rgba(66,142,232,.11),transparent)!important}
.nyxEqV4 .section-label{font-size:12px;color:#d8ecff;letter-spacing:.03em}
.nyxEqV4 .summary-stats{gap:1px 12px}
.nyxEqV4 .stat-mini{min-height:40px;background:transparent;border:0;border-bottom:1px solid #1b344e;border-radius:0;padding:6px 2px}
.nyxEqV4 .stat-mini span{color:#89a9c8;font-size:12px;font-weight:600}
.nyxEqV4 .stat-mini b{font-size:17px;font-weight:770;color:#ecf6ff}
.nyxEqV4 .stat-mini .atk{color:#6dc7ff}
.nyxEqV4 .stat-mini .hp{color:#ffcb86}
.nyxEqV4 .summary-foot{line-height:1.55;color:#7692af;margin-top:14px}
.nyxEqV4 .counter{background:#112842;border-color:#2e5275;border-radius:10px;padding:12px}
.nyxEqV4 .counter b{font-size:24px;color:#eaf5ff;margin-top:8px}
.nyxEqV4 .work{background:radial-gradient(ellipse at 70% 10%,rgba(28,74,121,.12),transparent 50%),#09192a;padding:16px 17px;gap:12px}
.nyxEqV4 .tabline{gap:9px}
.nyxEqV4 .tablabel{font-size:12px;font-weight:650;color:#799ab9}
.nyxEqV4 .tabs{gap:5px}
.nyxEqV4 .tab{background:transparent;border-color:transparent;border-radius:8px;padding:8px 13px;color:#a3bad4;font-weight:720}
.nyxEqV4 .tab:hover:not(.active){background:#142b47;border-color:#27405d}
.nyxEqV4 .tab.active{background:#1c466d;border-color:#3b94cc;color:#e8f7ff;box-shadow:inset 0 -2px 0 #7ad0ff!important}
.nyxEqV4 .tab.locked{opacity:.48}
.nyxEqV4 .item-card{background:#0b192b;border-color:#2b4c6c;border-radius:14px;box-shadow:0 8px 30px rgba(0,0,0,.15)}
.nyxEqV4 .item-head{background:#0f233a;min-height:70px;border-bottom:1px solid #294969;padding:12px 15px}
.nyxEqV4 .item-symbol{width:45px;height:45px;flex:0 0 45px;border-radius:11px;background:#193b61;border-color:#3f789c;box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}
.nyxEqV4 .item-header h2{font-size:18px;letter-spacing:.02em}
.nyxEqV4 .item-sub{color:#8fabc8}
.nyxEqV4 .tag{background:#142940;border-color:#315474;border-radius:7px}
.nyxEqV4 .item-body{gap:11px;padding:13px 15px 14px}
.nyxEqV4 .gear-stat-heading{min-height:30px}
.nyxEqV4 .equipment-stats{gap:9px}
.nyxEqV4 .bigstat{position:relative;min-height:92px;align-items:flex-start;justify-content:center;text-align:left;gap:6px;padding:12px 15px;border-radius:11px;background:linear-gradient(155deg,#173452,#102339);border:1px solid #355775;box-shadow:inset 0 1px 0 rgba(202,230,255,.035)}
.nyxEqV4 .bigstat:after{content:"";position:absolute;left:15px;bottom:10px;width:26px;height:2px;border-radius:2px;background:#558fbd;opacity:.5}
.nyxEqV4 .bigstat span{font-size:12px;letter-spacing:.09em;color:#9dbbda}
.nyxEqV4 .bigstat b{font-size:clamp(19px,1.7vw,28px);line-height:1.15;color:#f0f6ff;font-weight:750}
.nyxEqV4 .bigstat.atk{border-color:#376a91;background:linear-gradient(155deg,#173e61,#112840)}
.nyxEqV4 .bigstat.atk b{color:#80d4ff}
.nyxEqV4 .bigstat.atk:after{background:#63c8ff;opacity:.85}
.nyxEqV4 .bigstat.hp b{color:#ffcb89}
.nyxEqV4 .bigstat.hp:after{background:#f8b975;opacity:.85}
.nyxEqV4 .source-line{font-size:12px;color:#8eaac8}
.nyxEqV4 .source-panel{border:0;background:#0d2136;border-radius:12px;padding:12px 13px;max-height:198px}
.nyxEqV4 .source-title{margin-bottom:7px}
.nyxEqV4 .source-title strong{font-size:13px;color:#dceeff}
.nyxEqV4 .source-grid{gap:8px}
.nyxEqV4 .source-card{background:#142a44;border:0;border-left:3px solid #345e86;border-radius:7px;padding:9px 10px;line-height:1.45;min-height:45px}
.nyxEqV4 .source-card-name{display:block;color:#8ac2f2;font-size:11px;font-weight:780;margin-bottom:3px}
.nyxEqV4 .source-card-value{display:block;font-size:11px;color:#c2d5ec;line-height:1.45}
.nyxEqV4 .operations{background:#0f233b;border:1px solid #315374;border-radius:11px;padding:12px}
.nyxEqV4 .operationtitle{margin-bottom:10px}
.nyxEqV4 .operationgrid{gap:8px}
.nyxEqV4 .op{min-height:46px;background:#193551;border:1px solid #3c5c7d;border-radius:9px;font-size:13px;box-shadow:none}
.nyxEqV4 .op.primary{background:#22598e;border-color:#53a6e8;color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.12)}
.nyxEqV4 .op:hover:not(:disabled){background:#245078;filter:none}
.nyxEqV4 .op.primary:hover:not(:disabled){background:#2678af}
.nyxEqV4 .inner-modal{border-color:#345a80;background:#0b1b2d}
.nyxEqV4 .modal-header{background:#0e2841;border-color:#315373}
.nyxEqV4 .scroll-btn{background:#193a5c;border-color:#345e83}
.nyxEqV4 .scroll-btn.expand{background:#443a29;border-color:#957349}
.nyxEqV4 .flame-ability{background:#102840;border-color:#315776}
@media(min-width:1001px){
 .nyxEqV4 .layout{grid-template-columns:292px minmax(0,1fr)}
 .nyxEqV4 .source-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .nyxEqV4 .source-panel{flex:0 1 auto;overflow:auto}
 .nyxEqV4 .operations{margin-top:auto}
}
@media(min-width:801px) and (max-width:1000px){
 .nyxEqV4 .layout{grid-template-columns:240px minmax(0,1fr)}
 .nyxEqV4 .work{padding:11px;gap:7px}
 .nyxEqV4 .item-body{padding:10px;gap:7px}
 .nyxEqV4 .bigstat{min-height:70px;padding:8px 10px}
 .nyxEqV4 .bigstat:after{bottom:6px;left:10px}
 .nyxEqV4 .source-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .nyxEqV4 .source-panel{max-height:148px;overflow:auto}
}
@media(max-width:800px){
 .nyxEqV4 .tophead{min-height:44px;padding:0 9px}
 .nyxEqV4 .work{padding:9px;gap:7px}
 .nyxEqV4 .tab{padding:7px 10px;border-radius:7px}
 .nyxEqV4 .item-head{min-height:58px;padding:9px 10px}
 .nyxEqV4 .item-symbol{width:36px;height:36px;flex-basis:36px;border-radius:8px}
 .nyxEqV4 .item-header h2{font-size:15px}
 .nyxEqV4 .item-body{padding:9px;gap:7px}
 .nyxEqV4 .bigstat{min-height:57px;padding:7px 7px;align-items:center;text-align:center;gap:3px}
 .nyxEqV4 .bigstat:after{left:50%;transform:translateX(-50%);bottom:4px;width:18px}
 .nyxEqV4 .bigstat span{font-size:10px;letter-spacing:.03em}
 .nyxEqV4 .bigstat b{font-size:clamp(12px,3.6vw,16px)}
 .nyxEqV4 .source-panel{max-height:none}
 .nyxEqV4 .source-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .nyxEqV4 .operations{padding:9px}
 .nyxEqV4 .op{min-height:42px;font-size:12px}
 .nyxEqV4 .mobile-summary-bar{background:#0f2941;border-bottom-color:#315d7f}
}
@media(max-width:400px){
 .nyxEqV4 .bigstat{padding:6px 3px;min-height:53px}
 .nyxEqV4 .bigstat b{font-size:clamp(11px,3.4vw,14px)}
 .nyxEqV4 .op{font-size:11px}
}
@media(prefers-reduced-motion:reduce){.nyxEqV4 *{scroll-behavior:auto}}

/* === B4-R4 Approved R5 tier frame and star highlights (official state only) === */
/* NYX Equipment CSS R5 — LIVE tier/star presentation, extends approved R4.
   Reuses original tier palette and star FX thresholds, does not touch core/game SQL.
   Styles are limited to the selected equipment card and its small star/tier labels. */
.nyxEqV4 .outer{
  border:1px solid #294867;
  box-shadow:0 26px 90px rgba(0,0,0,.53), 0 0 0 1px rgba(122,181,227,.035);
}
.nyxEqV4 .item-card{isolation:isolate;transition:border-color .18s,box-shadow .18s}
.nyxEqV4 .item-header h2{font-weight:850}
.nyxEqV4 .item-header .grade-name{display:inline-block}
.nyxEqV4 .tier-mark{font-weight:820;letter-spacing:.04em}
.nyxEqV4 .star-mark{font-weight:800;white-space:nowrap;position:relative}
.nyxEqV4 .star-crown{font-size:14px;margin-left:3px;color:#ffe08e;vertical-align:1px;filter:drop-shadow(0 0 4px rgba(255,233,151,.6))}
/* Low and middle tiers use their established label colors, no excessive effects. */
.nyxEqV4 .item-card.tier-n .grade-name,.nyxEqV4 .item-card.tier-n .tier-mark{color:#b2bdc9}
.nyxEqV4 .item-card.tier-r .grade-name,.nyxEqV4 .item-card.tier-r .tier-mark{color:#79d995}
.nyxEqV4 .item-card.tier-sr .grade-name,.nyxEqV4 .item-card.tier-sr .tier-mark{color:#82bfff}
.nyxEqV4 .item-card.tier-ssr .grade-name,.nyxEqV4 .item-card.tier-ssr .tier-mark{color:#cf9dff}
/* Tier accents exist on each card, not on the whole panel. */
.nyxEqV4 .item-card.tier-ur{border:1px solid #d38338;box-shadow:0 0 0 1px rgba(255,170,77,.1),0 0 18px rgba(245,145,35,.17)}
.nyxEqV4 .item-card.tier-ur .item-head{border-bottom-color:#624b30}
.nyxEqV4 .item-card.tier-ur .grade-name,.nyxEqV4 .item-card.tier-ur .tier-mark{color:#ffb56b}
.nyxEqV4 .item-card.tier-lr{border:1px solid #ed6b53;box-shadow:0 0 0 1px rgba(255,100,79,.11),0 0 20px rgba(241,85,66,.19)}
.nyxEqV4 .item-card.tier-lr .item-head{border-bottom-color:#6f3d43}
.nyxEqV4 .item-card.tier-lr .grade-name,.nyxEqV4 .item-card.tier-lr .tier-mark{color:#ff9281}
/* SLR: moving rainbow ONLY on the equipment frame, never around the full window. */
.nyxEqV4 .item-card.tier-slr{
  border:2px solid transparent;
  background:linear-gradient(#0b192b,#0b192b) padding-box,
    linear-gradient(110deg,#f94494,#ffc273,#fff39b,#8bf3e6,#80bbff,#ceabff,#ff7ab2) border-box;
  background-size:100% 100%,330% 330%;
  box-shadow:0 0 17px rgba(108,193,255,.17),0 0 29px rgba(255,158,215,.09);
  animation:nyxR5SLRFlow 5.5s linear infinite;
}
.nyxEqV4 .item-card.tier-slr .item-head{border-bottom-color:#48628a}
.nyxEqV4 .item-card.tier-slr .item-symbol{border-color:#cfadff;box-shadow:0 0 10px rgba(163,156,255,.25)}
.nyxEqV4 .item-card.tier-slr .grade-name{
  color:#f8db9b;
  background:linear-gradient(90deg,#ffe4a3 5%,#fffbe9 32%,#bffaff 52%,#f3b9ff 78%,#ffe4a3 100%);
  background-size:240% 100%;-webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;animation:nyxR5TextFlow 7s linear infinite;
}
.nyxEqV4 .item-card.tier-slr .tier-mark{
  border-color:#b793e0;color:#fff4d4;background:#332645;
  box-shadow:inset 0 0 9px rgba(233,169,255,.1);
}
/* Star tiers from original equipment_v1: 20+ shimmer, 25+ rainbow, 30+ glow, configured max crown. */
.nyxEqV4 .item-card.star20 .star-mark{border-color:#9d773a;color:#ffd57d;box-shadow:0 0 9px rgba(245,177,60,.13)}
.nyxEqV4 .item-card.star20 .star-glyph{display:inline-block;color:#ffd77d;text-shadow:0 0 6px rgba(245,201,72,.6);animation:nyxR5StarPulse 1.7s ease-in-out infinite alternate}
.nyxEqV4 .item-card.star25 .star-mark{border-color:#8e79c8;box-shadow:0 0 13px rgba(153,143,255,.15)}
.nyxEqV4 .item-card.star25 .star-glyph{
  background:linear-gradient(90deg,#ff9baf,#ffd591,#f7ffad,#87eee6,#a8caff,#e2baff,#ff9baf);
  background-size:300% 100%;-webkit-background-clip:text;background-clip:text;
  color:#ffd591;-webkit-text-fill-color:transparent;
  animation:nyxR5TextFlow 5s linear infinite,nyxR5StarPulse 1.8s ease-in-out infinite alternate;
}
.nyxEqV4 .item-card.star30 .star-mark{border-color:#e7d3a0;box-shadow:0 0 0 1px rgba(255,238,187,.12),0 0 17px rgba(255,225,151,.25)}
.nyxEqV4 .item-card.star30 .star-crown{animation:nyxR5Crown 2.6s ease-in-out infinite alternate}
@keyframes nyxR5SLRFlow{0%{background-position:0 0,0% 50%}100%{background-position:0 0,100% 50%}}
@keyframes nyxR5TextFlow{0%{background-position:0% 50%}100%{background-position:100% 50%}}
@keyframes nyxR5StarPulse{from{opacity:.82}to{opacity:1}}
@keyframes nyxR5Crown{from{filter:drop-shadow(0 0 3px #ffdc7a)}to{filter:drop-shadow(0 0 9px #fff4bc)}}
@media(prefers-reduced-motion:reduce){
  .nyxEqV4 .item-card.tier-slr,.nyxEqV4 .grade-name,.nyxEqV4 .star-glyph,.nyxEqV4 .star-crown{animation:none!important}
}
@media(max-width:800px){
 .nyxEqV4 .star-crown{font-size:12px}
 .nyxEqV4 .item-card.tier-slr{box-shadow:0 0 13px rgba(129,176,251,.17)}
}

/* B4-R8: adaptive category/slot tabs, compact gear cards, full-size source dialog. */
.nyxEqV4 .tabline{align-items:start}
.nyxEqV4 .tabs{flex:1;display:flex;flex-wrap:wrap!important;overflow:visible!important;gap:5px;min-width:0}
.nyxEqV4 .tabs .tab{flex:1 1 85px;min-width:max-content;text-align:center;padding:6px 8px;font-size:12px}
.nyxEqV4 .equipment-stats .bigstat{min-height:53px;padding:7px 10px;gap:3px}
.nyxEqV4 .equipment-stats .bigstat:after{display:none}
.nyxEqV4 .equipment-stats .bigstat b{font-size:clamp(15px,1.45vw,20px)}
.nyxEqV4 .equipment-stats .bigstat span{font-size:11px}
.nyx-r8-source-overlay{position:fixed;inset:0;z-index:2147483000;background:rgba(0,8,23,.78);display:flex;align-items:center;justify-content:center;padding:16px;color:#e8f3ff}
.nyx-r8-source-dialog{width:min(900px,96vw);max-height:90dvh;display:flex;flex-direction:column;min-height:0;border:1px solid #38618d;border-radius:14px;background:#101e34;box-shadow:0 14px 50px #0009;overflow:hidden}
.nyx-r8-source-dialog header{display:flex;justify-content:space-between;align-items:center;padding:14px 17px;background:#17304c;border-bottom:1px solid #315274}
.nyx-r8-source-dialog header button{background:#264565;color:#fff;border:1px solid #52759b;border-radius:7px;padding:5px 13px;cursor:pointer}
.nyx-r8-source-content{padding:14px;overflow-y:auto;min-height:0}
.nyx-r8-source-content .source-panel{display:block!important;overflow:visible!important;max-height:none!important;min-height:0!important;border:0!important;padding:0!important;background:transparent!important}
.nyx-r8-source-content .source-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
@media(max-width:600px){.nyxEqV4 .tabs .tab{flex-basis:65px;padding:6px 5px;font-size:11px}.nyx-r8-source-content .source-grid{grid-template-columns:1fr}}

.nyx-r8-source-content .source-title{display:flex;justify-content:space-between;gap:10px;color:#b2d6f8;margin:0 0 12px;font-size:13px;flex-wrap:wrap}
.nyx-r8-source-content .source-card{min-width:0;background:#142a44;border-left:3px solid #3d85b2;border-radius:8px;padding:11px 12px;line-height:1.5}
.nyx-r8-source-content .source-card-name{display:block;color:#8ac2f2;font-size:12px;font-weight:700;margin-bottom:5px}
.nyx-r8-source-content .source-card-value{display:block;color:#d0e5fc;font-size:13px;overflow-wrap:anywhere}
.nyx-r8-source-content .source-card-value b{color:#a7d2ff}

/* SQL027: compact equipped capabilities + side-by-side three-line potentials. */
.nyxEqV4 .equipment-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.nyxEqV4 .bigstat{min-height:0;padding:6px 9px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:5px;border-radius:7px}
.nyxEqV4 .bigstat span{font-size:11px}
.nyxEqV4 .bigstat b{font-size:14px}
.nyxEqV4 .potential-overview{background:#101f36;border:1px solid #2b4264;border-radius:10px;padding:9px}
.nyxEqV4 .potential-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.nyxEqV4 .potential-head strong{font-size:12px}
.nyxEqV4 .potential-head small{font-size:10px;color:#98b2d4}
.nyxEqV4 .potential-two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.nyxEqV4 .potential-col{min-width:0;background:#0e192d;border:1px solid #283c5b;border-radius:7px;padding:7px}
.nyxEqV4 .potential-col-title{display:flex;align-items:center;justify-content:space-between;color:#c5dfff;font-size:11px;margin-bottom:5px;gap:5px}
.nyxEqV4 .potential-col-title span{color:#90aed4;font-size:10px}
.nyxEqV4 .potential-row{border-top:1px solid #253852;padding:5px 0;display:flex;justify-content:space-between;gap:5px;align-items:center;min-width:0}
.nyxEqV4 .potential-row span{font-size:10px;color:#8fa8ca;white-space:nowrap}
.nyxEqV4 .potential-row strong{font-size:11px;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nyxEqV4 .potential-inactive{opacity:.64}
.nyxEqV4 .operationgrid{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:800px){.nyxEqV4 .operationgrid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:520px){.nyxEqV4 .equipment-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.nyxEqV4 .potential-two-col{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.nyxEqV4 .potential-col{padding:5px}.nyxEqV4 .potential-row{display:block}.nyxEqV4 .potential-row strong{display:block;text-align:left}.nyxEqV4 .operationgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* Fix2-UI1: compact five-column Chinese equipment values; no clipped controls.
   Only visible strings and responsive presentation change; no game rules. */
@media (min-width:1101px){
  .nyxEqV4 .equipment-stats{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
}
@media (min-width:801px) and (max-width:1100px){
  .nyxEqV4 .equipment-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
}
@media (max-width:800px){
  .nyxEqV4 .equipment-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
}
@media (max-width:520px){
  .nyxEqV4 .equipment-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
}
.nyxEqV4 .equipment-stats .bigstat{min-height:43px;padding:6px 9px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:6px;text-align:left;border-radius:8px}
.nyxEqV4 .equipment-stats .bigstat span{font-size:11px;letter-spacing:0;line-height:1.3;white-space:normal}
.nyxEqV4 .equipment-stats .bigstat b{font-size:clamp(13px,1.1vw,18px);line-height:1.25;text-align:right;flex-shrink:0}
.nyxEqV4 .equipment-stats .bigstat:after{display:none}
@media (min-width:801px){
  .nyxEqV4 .work{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
  .nyxEqV4 .item-card{flex:0 0 auto;overflow:visible}
  .nyxEqV4 .item-body{flex:0 0 auto;overflow:visible}
  .nyxEqV4 .operations,.nyxEqV4 .source-panel:not(.collapsed) + .operations{margin-top:0}
}
@media (max-width:520px){
  .nyxEqV4 .equipment-stats .bigstat{min-height:44px;padding:5px 7px}
  .nyxEqV4 .equipment-stats .bigstat span{font-size:10px}
  .nyxEqV4 .equipment-stats .bigstat b{font-size:14px}
}

/* S7: native server-backed odds and star panels; independent from historical engines. */
.nyxEqV4 .rate-table{display:grid;gap:6px;max-height:38vh;overflow:auto}
.nyxEqV4 .rate-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 9px;border-radius:8px;background:#17243b;font-size:12px}
.nyxEqV4 .rate-row span{flex:1;min-width:0}.nyxEqV4 .rate-row small{color:#a0b4d6}
.nyxEqV4 .star-modal .modal-panel,.nyxEqV4 .rates-modal .modal-panel{padding:14px;max-height:72vh;overflow:auto}
.nyxEqV4 .star-modal .button-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}
@media(max-width:520px){.nyxEqV4 .rate-row{flex-wrap:wrap}.nyxEqV4 .star-modal .button-list{grid-template-columns:1fr}}

.nyxEqV4 .nyeq-odds{display:grid;grid-template-columns:1fr 1fr;overflow:auto;align-items:start}.nyxEqV4 .nyeq-odds .rate-group{padding:7px 8px;margin-top:6px;color:#a9ccff;border-bottom:1px solid #344e72;font-size:12px}.nyxEqV4 .nyeq-odds .modal-panel{overflow:visible;max-height:none}.nyxEqV4 .nyeq-odds p.readonlyhint{grid-column:1/-1}.nyxEqV4 .rate-row strong{white-space:normal;word-break:break-word}@media(max-width:620px){.nyxEqV4 .nyeq-odds{grid-template-columns:1fr}}

/* S8: original Web starforce dialog composition, SQL021-only operations. */
.nyxEqV4 .original-star-modal{width:min(710px,100%);height:auto!important;max-height:calc(100dvh - 24px);background:#111721;border-color:#37445b;border-radius:19px}
.nyxEqV4 .original-star-modal .modal-header{border:0;background:#141a25;padding:16px 22px 10px}
.nyxEqV4 .original-star-modal .modal-header h2{font-size:19px}
.nyxEqV4 .star-original-layout{padding:12px 22px 20px;overflow:auto;min-height:0;display:flex;flex-direction:column;gap:12px}
.nyxEqV4 .sf-star-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.nyxEqV4 .sf-star-box{background:#202630;border:1px solid #3e4756;border-radius:20px;min-height:104px;display:flex;flex-direction:column;gap:7px;align-items:center;justify-content:center}
.nyxEqV4 .sf-star-box span{font-size:13px;color:#b7becb}
.nyxEqV4 .sf-star-box strong{font-size:27px;color:#edf3ff;font-variant-numeric:tabular-nums}
.nyxEqV4 .sf-star-box.next strong,.nyxEqV4 .sf-star-box.next span{color:#8cc9ff}
.nyxEqV4 .sf-detail-card{background:#202630;border:1px solid #3e4756;border-radius:20px;padding:16px 20px;display:flex;flex-direction:column;gap:15px}
.nyxEqV4 .sf-info-line{font-size:14px;color:#d7deeb;display:flex;flex-wrap:wrap;gap:6px;align-items:baseline;line-height:1.55}
.nyxEqV4 .sf-info-line strong{color:#f2f6ff;font-weight:800}
.nyxEqV4 .sf-info-line small{color:#9eb0c5;font-size:11px}
.nyxEqV4 .sf-info-line.gain{color:#94cfff;font-weight:750}
.nyxEqV4 .sf-info-line.gain strong{color:#a4d4ff}
.nyxEqV4 .sf-protect-state{align-self:flex-start;font-size:12px;color:#b2baca;border:1px solid #485366;border-radius:99px;padding:5px 11px;background:#242b36}
.nyxEqV4 .sf-protect-box{border:1px solid #455067;border-radius:14px;background:#252a35;padding:14px 15px}
.nyxEqV4 .sf-protect-title{font-size:13px;color:#ced7e6;margin-bottom:9px;font-weight:700}
.nyxEqV4 .sf-protect-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.nyxEqV4 .sf-protect-option{border:1px solid #475164;border-radius:11px;padding:11px 9px;display:flex;align-items:center;gap:8px;min-width:0;font-size:12px;color:#e4ebf8;background:#222833;cursor:pointer}
.nyxEqV4 .sf-protect-option input,.nyxEqV4 .sf-safeguard-option input{accent-color:#6fa9ff;width:17px;height:17px;flex:none}
.nyxEqV4 .sf-protect-option span{flex:1;min-width:0}.nyxEqV4 .sf-protect-option em{font-style:normal;white-space:nowrap;color:#aebcd4}
.nyxEqV4 .sf-protect-option.dim,.nyxEqV4 .sf-safeguard-option.dim{opacity:.55;cursor:not-allowed}
.nyxEqV4 .sf-bottom-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.nyxEqV4 .sf-safeguard-option{display:flex;align-items:center;gap:9px;font-size:12px;color:#bbc6d8;cursor:pointer}
.nyxEqV4 .sf-star-go{flex:1;max-width:440px;min-height:56px;border-radius:17px;border:1px solid #4775ae;background:linear-gradient(180deg,#365b8e,#223f6b);color:#eff6ff;font-size:15px;font-weight:850;box-shadow:0 3px 8px #06132855}
.nyxEqV4 .sf-star-go:hover:not(:disabled){background:linear-gradient(180deg,#4679bf,#28548b)}
.nyxEqV4 .sf-star-go:disabled{opacity:.48;cursor:not-allowed}
.nyxEqV4 .original-star-modal .scroll-feedback{min-height:16px;margin:0;padding:0;color:#b9d3ee}
@media(max-width:540px){.nyxEqV4 .original-star-modal{width:100%;max-height:calc(100dvh - 18px)}.nyxEqV4 .original-star-modal .modal-header{padding:13px 17px 7px}.nyxEqV4 .star-original-layout{padding:9px 15px 15px;gap:10px}.nyxEqV4 .sf-star-row{gap:9px}.nyxEqV4 .sf-star-box{min-height:80px;border-radius:15px}.nyxEqV4 .sf-star-box strong{font-size:23px}.nyxEqV4 .sf-detail-card{padding:13px;border-radius:16px;gap:12px}.nyxEqV4 .sf-protect-box{padding:11px}.nyxEqV4 .sf-protect-items{grid-template-columns:1fr}.nyxEqV4 .sf-bottom-row{flex-direction:column;align-items:stretch}.nyxEqV4 .sf-star-go{max-width:none;width:100%}}

/* S9 — restore original Web starforce visual effects as stylesheet-only rules.
   The old starforce_core_table_v1.js is NOT loaded: SQL021 remains sole authority.
   Namespaced to Equipment V4.1 to avoid leaking effects into other modals. */
.nyxEqV4 .original-star-modal{position:relative;isolation:isolate;box-shadow:0 24px 70px rgba(0,0,0,.64),inset 0 1px rgba(255,255,255,.07)}
.nyxEqV4 .original-star-modal .sf-star-box{position:relative;overflow:hidden;background:linear-gradient(145deg,#222b3a 0%,#1a2332 100%);box-shadow:inset 0 1px rgba(255,255,255,.035)}
.nyxEqV4 .original-star-modal .sf-star-box::before{content:'★';position:absolute;top:-20px;right:10px;font-size:78px;color:rgba(180,207,255,.03);pointer-events:none}
.nyxEqV4 .original-star-modal .sf-star-box strong{position:relative;z-index:1;letter-spacing:.4px;text-shadow:0 2px 10px rgba(0,0,0,.25)}
.nyxEqV4 .original-star-modal .sf-star-box.next{border-color:#436287;background:linear-gradient(145deg,#24364e 0%,#1a293f 100%)}
.nyxEqV4 .original-star-modal .sf-star-box[data-tier="20"] strong{animation:nyxSfOriginalShimmer 1.2s ease-in-out infinite;text-shadow:0 0 10px rgba(255,255,255,.30)}
.nyxEqV4 .original-star-modal .sf-star-box[data-tier="25"] strong{color:transparent;background-image:linear-gradient(90deg,#ff3b3b,#ffbf00,#3bff6a,#3bb6ff,#8a3bff,#ff3bb6,#ff3b3b);background-size:300% 100%;-webkit-background-clip:text;background-clip:text;animation:nyxSfOriginalRainbow 1.6s linear infinite;text-shadow:0 0 13px rgba(255,255,255,.19)}
@keyframes nyxSfOriginalShimmer{0%,100%{filter:brightness(1)}50%{filter:brightness(1.6)}}
@keyframes nyxSfOriginalRainbow{0%{background-position:0% 50%}100%{background-position:100% 50%}}
.nyxEqV4 .original-star-modal .sf-detail-card{box-shadow:inset 0 1px rgba(255,255,255,.035);line-height:1.6}
.nyxEqV4 .original-star-modal .sf-info-line.gain{padding:6px 0 1px;border-top:1px solid rgba(143,178,221,.15)}
.nyxEqV4 .original-star-modal .sf-protect-option:has(input:checked),.nyxEqV4 .original-star-modal .sf-safeguard-option:has(input:checked){border-color:#5c94d9;background:#233d5b;color:#e0f3ff}
.nyxEqV4 .original-star-modal .sf-protect-option:focus-within,.nyxEqV4 .original-star-modal .sf-safeguard-option:focus-within{outline:2px solid #76b2ff;outline-offset:2px}
.nyxEqV4 .original-star-modal .sf-star-go{transition:background .2s,box-shadow .2s,transform .2s}
.nyxEqV4 .original-star-modal .sf-star-go:hover:not(:disabled){box-shadow:0 5px 20px rgba(50,124,224,.33);transform:translateY(-1px)}
.nyxEqV4 .original-star-modal[data-sf-result="success"]{animation:nyxSfOriginalPulse .55s ease-out}
.nyxEqV4 .original-star-modal[data-sf-result="failure"]{animation:nyxSfOriginalShake .45s ease-in-out}
.nyxEqV4 .original-star-modal[data-sf-result="destroyed"]{animation:nyxSfOriginalShake .6s ease-in-out}
.nyxEqV4 .original-star-modal[data-sf-result]::after{position:absolute;inset:0;z-index:10;pointer-events:none;display:grid;place-items:center;font-weight:900;font-size:24px;letter-spacing:1px;text-shadow:0 2px 12px #000;background:radial-gradient(circle at 50% 50%,rgba(30,70,95,.3),transparent 55%);animation:nyxSfOriginalResult 1.1s ease-in-out both}
.nyxEqV4 .original-star-modal[data-sf-result="success"]::after{content:'強化成功！';color:#9dffd0}
.nyxEqV4 .original-star-modal[data-sf-result="failure"]::after{content:'強化失敗';color:#ff9b9b}
.nyxEqV4 .original-star-modal[data-sf-result="destroyed"]::after{content:'裝備已損毀';color:#ffc37b}
@keyframes nyxSfOriginalPulse{0%,100%{transform:scale(1)}60%{transform:scale(1.017)}}
@keyframes nyxSfOriginalShake{0%,100%{transform:translateX(0)}20%{transform:translateX(-7px)}40%{transform:translateX(6px)}60%{transform:translateX(-4px)}80%{transform:translateX(3px)}}
@keyframes nyxSfOriginalResult{0%{opacity:0;transform:translateY(6px) scale(.98)}15%,72%{opacity:1;transform:translateY(0) scale(1)}100%{opacity:0;transform:translateY(-2px) scale(1.03)}}
@media(prefers-reduced-motion:reduce){.nyxEqV4 .original-star-modal[data-sf-result],.nyxEqV4 .original-star-modal[data-sf-result]::after,.nyxEqV4 .original-star-modal .sf-star-box strong{animation:none!important}}

/* V7.1.1 PC equipment / potential visual cleanup. Server-owned values. */
.nyxEqV4 .nyeq-view-tabs,.nyxEqV4 .nyeq-rate-tabs,.nyxEqV4 .nyeq-rate-class{display:flex;gap:6px;flex-wrap:wrap}
.nyxEqV4 .nyeq-view-tabs{display:inline-flex;margin-left:12px}
.nyxEqV4 .nyeq-view-tabs button,.nyxEqV4 .nyeq-rate-tab{background:#152a45;border:1px solid #385579;color:#c6daef;border-radius:9px;padding:7px 11px;font-size:12px;cursor:pointer;min-width:0}
.nyxEqV4 .nyeq-view-tabs button.active,.nyxEqV4 .nyeq-rate-tab.active{background:#285183;color:#fff;border-color:#80b6f5;box-shadow:inset 0 0 0 1px #8bbaff55}
.nyxEqV4 .nyeq-gear-overview{display:flex;flex-direction:column;gap:8px;min-width:0}
.nyxEqV4 .nyeq-gear-main,.nyxEqV4 .nyeq-gear-potential{min-width:0}
.nyxEqV4 .nyeq-gear-main #v4-gearDetailsInfo{display:none}
.nyxEqV4 .nyeq-gear-overview.nyeq-details{display:grid;grid-template-columns:minmax(0,1.03fr) minmax(0,1fr);align-items:stretch;gap:10px}
.nyxEqV4 .nyeq-details .nyeq-gear-main{border:1px solid #315177;border-radius:12px;background:#13283f;padding:10px;min-width:0;overflow:auto;max-height:330px}
.nyxEqV4 .nyeq-details .nyeq-gear-main #v4-gearDetailsInfo{display:block}
.nyxEqV4 .nyeq-detail-identity{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}
.nyxEqV4 .nyeq-detail-identity strong{font-size:14px}
.nyxEqV4 .nyeq-detail-identity span{font-size:11px;color:#9bbce6}
.nyxEqV4 .nyeq-detail-group{border-top:1px solid #2c4462;padding:7px 0 3px}
.nyxEqV4 .nyeq-detail-group strong{font-size:11px;color:#91c1f6}
.nyxEqV4 .nyeq-detail-group p{margin:3px 0 0;font-size:11px;line-height:1.5;color:#dbe9fb}
.nyxEqV4 .nyeq-details .equipment-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:7px}
.nyxEqV4 .nyeq-details .bigstat{min-width:0;padding:5px!important;min-height:45px}
.nyxEqV4 .nyeq-details .bigstat b{font-size:14px!important}
.nyxEqV4 .nyeq-details .nyeq-gear-potential{max-height:330px;overflow:auto;border:1px solid #315177;border-radius:12px;background:#13283f;padding:5px}
.nyxEqV4 .nyeq-details .potential-overview{margin:0;border:0;background:transparent;padding:5px}
.nyxEqV4 .nyeq-details .potential-two-col{grid-template-columns:1fr;gap:7px}
.nyxEqV4 .nyeq-rate-tabs{position:sticky;top:-12px;z-index:2;padding:8px 0 11px;background:#102039;border-bottom:1px solid #2a4363;margin-bottom:12px}
.nyxEqV4 .nyeq-odds [data-rates-pane][hidden]{display:none!important}
.nyxEqV4 .nyeq-odds .modal-panel{min-height:240px}
.nyxEqV4 .nyeq-scroll-rate{padding:9px 10px;border-bottom:1px solid #253e5e}
.nyxEqV4 .nyeq-scroll-rate .rate-row{padding:0;border:0}
.nyxEqV4 .nyeq-scroll-rate>small{display:block;margin:5px 0 0;color:#a7c5ea;font-size:11px;line-height:1.5}
.nyxEqV4 .nyeq-odds-notice{padding:12px;background:#1b3855;border:1px solid #5081a8;border-radius:10px;color:#cce4fc;font-size:12px;line-height:1.6}
.nyxEqV4 .nyeq-chaos-pool{margin-top:14px;padding:11px;border:1px solid #2c476c;border-radius:12px;background:#12243c}
.nyxEqV4 .nyeq-chaos-pool h4{margin:0 0 10px;font-size:14px;color:#c5e5ff}
.nyxEqV4 .nyeq-chaos-group{margin-bottom:12px;padding:11px;background:#182f4a;border-radius:10px}
.nyxEqV4 .nyeq-chaos-group>strong{font-size:13px}
.nyxEqV4 .nyeq-chaos-group>small{display:block;color:#96b9d9;margin:3px 0 8px}
.nyxEqV4 .nyeq-chaos-chances{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.nyxEqV4 .nyeq-chaos-chances>div{display:flex;align-items:center;justify-content:space-between;gap:4px;padding:7px;border:1px solid #315478;border-radius:7px;font-size:11px}
.nyxEqV4 .nyeq-chaos-chances b{white-space:nowrap;color:#d1e7ff}
.nyxEqV4 .nyeq-flame-rates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
.nyxEqV4 .nyeq-flame-rate-box{border:1px solid #315177;border-radius:10px;background:#142c45;padding:9px;font-size:12px}
.nyxEqV4 .nyeq-flame-rate-box>div{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.nyxEqV4 .nyeq-flame-rate-box span{font-size:10px;color:#bad3ee}
.nyxEqV4 .nyeq-flame-table-wrap{overflow:auto;max-height:390px;margin-top:10px}
.nyxEqV4 .nyeq-flame-table{width:100%;border-collapse:collapse;font-size:11px;min-width:580px}
.nyxEqV4 .nyeq-flame-table th,.nyxEqV4 .nyeq-flame-table td{padding:8px 7px;border-bottom:1px solid #324967;text-align:right;white-space:nowrap}
.nyxEqV4 .nyeq-flame-table td:first-child,.nyxEqV4 .nyeq-flame-table th:first-child{text-align:left;white-space:normal}
.nyxEqV4 .nyeq-flame-table th{position:sticky;top:0;background:#172d47;color:#bde1ff}
.nyxEqV4 .nyeq-rate-class{margin:8px 0}
@media(max-width:1050px){.nyxEqV4 .nyeq-details .equipment-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.nyxEqV4 .nyeq-chaos-chances{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.nyxEqV4 .nyeq-gear-overview.nyeq-details{grid-template-columns:1fr}.nyxEqV4 .nyeq-flame-rates{grid-template-columns:1fr}.nyxEqV4 .nyeq-rate-tabs{position:static}}

/* V7.1.2 PC rate sheet: one full-width content column, pinned tabs. */
.nyxEqV4 .rates-modal{width:min(1040px,calc(100vw - 48px));max-width:1040px}
.nyxEqV4 .nyeq-odds{display:flex!important;flex-direction:column!important;grid-template-columns:none!important;gap:0;min-width:0;overflow:auto}
.nyxEqV4 .nyeq-odds>.nyeq-rate-tabs{position:sticky;top:0;left:0;width:100%;flex-shrink:0;z-index:8;background:#101f35;padding:10px 4px;margin:0 0 10px;display:flex;flex-wrap:wrap}
.nyxEqV4 .nyeq-odds>[data-rates-pane]{width:100%;max-width:none!important;min-width:0;display:block;overflow:visible}
.nyxEqV4 .nyeq-odds>.readonlyhint{width:100%}
.nyxEqV4 .nyeq-detail-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.nyxEqV4 .nyeq-detail-line{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:3px;padding:7px;background:#142b45;border-radius:7px;border:1px solid #2c486b;font-size:12px}
.nyxEqV4 .nyeq-detail-line strong{color:#cce4ff}
.nyxEqV4 .nyeq-detail-line small{flex-basis:100%;color:#91abc8;font-size:10px}
.nyxEqV4 .nyeq-source-table-wrap{overflow:auto;max-height:55vh}
.nyxEqV4 .nyeq-source-table{border-collapse:collapse;min-width:660px;width:100%;font-size:12px;font-variant-numeric:tabular-nums}
.nyxEqV4 .nyeq-source-table th,.nyxEqV4 .nyeq-source-table td{padding:11px 9px;border-bottom:1px solid #2e4562;text-align:right;white-space:nowrap}
.nyxEqV4 .nyeq-source-table th:first-child{text-align:left}
.nyxEqV4 .nyeq-source-table thead th{background:#17304a;color:#d5e6ff;position:sticky;top:0}
.nyxEqV4 .nyeq-source-table .origin-base{color:#b8cbde}
.nyxEqV4 .nyeq-source-table .origin-evolution{color:#c6a6f1}
.nyxEqV4 .nyeq-source-table .origin-scroll{color:#e8bf7c}
.nyxEqV4 .nyeq-source-table .origin-star{color:#85cae8}
.nyxEqV4 .nyeq-source-table .origin-flame{color:#f0aa80}
.nyxEqV4 .nyeq-source-table .origin-total{font-weight:700;color:#f6faff}
.nyxEqV4 .nyeq-source-special{display:flex;gap:8px;flex-wrap:wrap;align-items:center;padding:12px}
.nyxEqV4 .nyeq-source-special span{background:#1a3854;border-radius:5px;padding:5px 8px}
@media(max-width:1100px){.nyxEqV4 .nyeq-detail-list{grid-template-columns:1fr}}

.nyx-r8-source-content .source-grid{display:block!important;min-width:0}
.nyxEqV4 .nyeq-odds .modal-panel{max-height:none!important;overflow:visible!important}
.nyxEqV4 .nyeq-odds .rate-table{max-height:none;overflow:visible}
/* Detailed view already carries the final total on each line; do not repeat the old chips beneath it. */
.nyxEqV4 .nyeq-gear-overview.nyeq-details .equipment-stats{display:none}


/* V7.1.2 display-only hotfix: prevent odds tabs/footer from covering the scrollable content. */
.nyxEqV4 .rates-modal .nyeq-odds{display:flex!important;flex-direction:column!important;min-width:0;min-height:0;gap:0!important;overflow:hidden!important;padding:0!important}
.nyxEqV4 .rates-modal .nyeq-odds>.nyeq-rate-tabs{position:relative!important;top:auto!important;left:auto!important;width:100%!important;z-index:1;flex:0 0 auto;padding:12px 16px!important;margin:0!important;background:#12243d!important;border-bottom:1px solid #2f4a6d;box-sizing:border-box}
.nyxEqV4 .rates-modal .nyeq-rate-content{flex:1 1 auto;min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden;padding:14px 16px 18px;scrollbar-width:thin;scrollbar-color:#5e7ca0 #12243d;overscroll-behavior:contain}
.nyxEqV4 .rates-modal .nyeq-rate-content>[data-rates-pane]{display:block;width:100%;max-width:none!important;min-width:0;overflow:visible!important;max-height:none!important;box-sizing:border-box}
.nyxEqV4 .rates-modal .nyeq-odds>.readonlyhint{position:relative!important;flex:0 0 auto;width:100%!important;margin:0!important;padding:10px 16px;border-top:1px solid #2f4a6d;background:#102039;z-index:1;line-height:1.45}
/* Starfire rate display: each tier owns its own compact cell, never a run-on sentence. */
.nyxEqV4 .rates-modal .nyeq-flame-rates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0 20px}
.nyxEqV4 .rates-modal .nyeq-flame-rate-box{padding:13px;min-width:0}
.nyxEqV4 .rates-modal .nyeq-flame-rate-box>strong{font-size:14px;display:block;margin-bottom:10px}
.nyxEqV4 .rates-modal .nyeq-flame-tier-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0!important}
.nyxEqV4 .rates-modal .nyeq-flame-tier-list>span{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0;border:1px solid #395979;background:#10223b;border-radius:6px;padding:7px 8px;color:#cfdef0;font-variant-numeric:tabular-nums;font-size:12px;white-space:nowrap}
.nyxEqV4 .rates-modal .nyeq-flame-tier-list em{font-style:normal;color:#9fc7f1;font-weight:700}
.nyxEqV4 .rates-modal .nyeq-flame-tier-list b{font-size:12px;color:#f0f6ff}
.nyxEqV4 .rates-modal .nyeq-flame-table-wrap{max-height:none;overflow-x:auto;overflow-y:visible}
.nyxEqV4 .rates-modal .nyeq-flame-table{font-size:12px}
.nyxEqV4 .rates-modal .nyeq-flame-table th,.nyxEqV4 .rates-modal .nyeq-flame-table td{padding:10px 11px}
@media(max-width:980px){.nyxEqV4 .rates-modal .nyeq-flame-rates{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.nyxEqV4 .rates-modal .nyeq-flame-rates{grid-template-columns:1fr}.nyxEqV4 .rates-modal .nyeq-rate-content{padding:10px}.nyxEqV4 .rates-modal .nyeq-odds>.nyeq-rate-tabs{padding:9px!important}}

/* Source dialog lives directly under document.body; .nyxEqV4 scoped table styles cannot reach it. */
.nyx-r8-source-overlay,.nyx-r8-source-overlay *{box-sizing:border-box}
.nyx-r8-source-dialog{font-family:system-ui,-apple-system,'Microsoft JhengHei',sans-serif;color:#e9f3ff}
.nyx-r8-source-content .nyeq-source-table-wrap{display:block;width:100%;max-height:60dvh;overflow:auto;border:1px solid #315174;border-radius:9px;scrollbar-width:thin;scrollbar-color:#517ba7 transparent}
.nyx-r8-source-content .nyeq-source-table{width:100%;min-width:680px;border-collapse:separate;border-spacing:0;font-size:13px;font-variant-numeric:tabular-nums;line-height:1.5}
.nyx-r8-source-content .nyeq-source-table th,.nyx-r8-source-content .nyeq-source-table td{padding:11px 12px;border-bottom:1px solid #294361;text-align:right;white-space:nowrap;vertical-align:middle;background:#11243c}
.nyx-r8-source-content .nyeq-source-table thead th{position:sticky;top:0;z-index:1;background:#1b3958;color:#dcecff;border-bottom:2px solid #42648b;font-weight:750}
.nyx-r8-source-content .nyeq-source-table tr:nth-child(even) td,.nyx-r8-source-content .nyeq-source-table tr:nth-child(even) th{background:#162c46}
.nyx-r8-source-content .nyeq-source-table th:first-child{text-align:left;min-width:110px}
.nyx-r8-source-content .nyeq-source-table tbody tr:hover td,.nyx-r8-source-content .nyeq-source-table tbody tr:hover th{background:#203a58}
.nyx-r8-source-content .nyeq-source-table .origin-base{color:#b8cbdc}
.nyx-r8-source-content .nyeq-source-table .origin-evolution{color:#cbb0ff}
.nyx-r8-source-content .nyeq-source-table .origin-scroll{color:#f3cc8a}
.nyx-r8-source-content .nyeq-source-table .origin-star{color:#94d9f2}
.nyx-r8-source-content .nyeq-source-table .origin-flame{color:#ffb88f}
.nyx-r8-source-content .nyeq-source-table .origin-total{font-weight:800;color:#fff;background:#20405e}
.nyx-r8-source-content .nyeq-source-special{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 0}
.nyx-r8-source-content .nyeq-source-special span{padding:7px 10px;background:#1a3854;border:1px solid #345b81;border-radius:7px}


/* V7.1.2 Display Hotfix 2 — independent enhancement odds window.
   No legacy .nyeq-odds grid or .rate-table width constraints apply here. */
.nyxEqV4 .inner-modal.rates-modal{
  width:min(1140px,calc(100vw - 32px));max-width:1140px;
  height:min(780px,calc(100dvh - 32px));max-height:calc(100dvh - 20px);
  display:flex;flex-direction:column;overflow:hidden;
}
.nyxEqV4 .rates-modal .modal-header{flex:0 0 auto}
.nyxEqV4 .rates-modal .nyeq-rates-layout{
  flex:1 1 auto;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;
  color:#e5f0ff;
}
.nyxEqV4 .rates-modal .nyeq-rates-tabs{
  flex:0 0 auto;display:flex;flex-wrap:wrap;align-items:center;gap:8px;
  padding:14px 18px;background:#12243c;border-bottom:1px solid #2c4867;
}
.nyxEqV4 .rates-modal .nyeq-rates-tab,
.nyxEqV4 .rates-modal .nyeq-rates-subtab{
  border:1px solid #385879;border-radius:9px;background:#162e4b;color:#d3e6fc;
  font-size:13px;font-weight:650;padding:9px 15px;white-space:nowrap;line-height:1.2;
}
.nyxEqV4 .rates-modal .nyeq-rates-tab.active,
.nyxEqV4 .rates-modal .nyeq-rates-subtab.active{
  color:#f7fbff;background:#2d5484;border-color:#85b8f1;box-shadow:inset 0 0 0 1px #4776a8;
}
.nyxEqV4 .rates-modal .nyeq-rates-scroll{
  display:block;flex:1 1 0;min-width:0;min-height:0;width:100%;overflow-y:auto;overflow-x:hidden;
  padding:18px 20px 24px;scrollbar-width:thin;scrollbar-color:#6182a7 #12243a;
  overscroll-behavior:contain;
}
.nyxEqV4 .rates-modal .nyeq-rates-pane{width:100%;max-width:none;min-width:0;min-height:0;display:block;padding:0;overflow:visible}
.nyxEqV4 .rates-modal .nyeq-rates-pane[hidden],
.nyxEqV4 .rates-modal .nyeq-rates-unavailable[hidden]{display:none!important}
.nyxEqV4 .rates-modal .nyeq-rates-pane h3{font-size:17px;color:#dcecff;margin:0 0 4px;font-weight:750}
.nyxEqV4 .rates-modal .nyeq-rates-caption{font-size:12px;color:#9db9d8;margin:0 0 16px;line-height:1.5}
.nyxEqV4 .rates-modal .nyeq-rates-grid{
  display:grid;width:100%;min-width:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;align-items:stretch;
}
.nyxEqV4 .rates-modal .nyeq-rates-card{
  min-width:0;display:flex;flex-direction:column;gap:8px;background:#192f4b;border:1px solid #355273;
  border-radius:12px;padding:16px;box-shadow:inset 0 1px 0 #ffffff08;
}
.nyxEqV4 .rates-modal .nyeq-rates-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.nyxEqV4 .rates-modal .nyeq-rates-card-head strong{font-size:15px;color:#eef6ff}
.nyxEqV4 .rates-modal .nyeq-rates-card-head b{font-size:15px;color:#c0e2ff;white-space:nowrap;font-variant-numeric:tabular-nums}
.nyxEqV4 .rates-modal .nyeq-rates-card>small{font-size:12px;line-height:1.45;color:#a4bedc;overflow-wrap:anywhere}
.nyxEqV4 .rates-modal .nyeq-rates-footer{
  flex:0 0 auto;padding:12px 18px;background:#10243e;border-top:1px solid #2d4868;
  color:#92b7df;font-size:12px;line-height:1.45;
}
.nyxEqV4 .rates-modal .nyeq-rates-unavailable{padding:16px;border:1px solid #486b92;border-radius:12px;background:#182e4a;color:#deecff}
.nyxEqV4 .rates-modal .nyeq-rate-class{display:flex;gap:8px;margin:13px 0 15px;flex-wrap:wrap}
.nyxEqV4 .rates-modal .nyeq-chaos-pool{width:100%;min-width:0;margin:16px 0}
.nyxEqV4 .rates-modal .nyeq-chaos-chances{grid-template-columns:repeat(4,minmax(0,1fr))}
.nyxEqV4 .rates-modal .nyeq-flame-rates{grid-template-columns:repeat(3,minmax(0,1fr))}
.nyxEqV4 .rates-modal .nyeq-flame-table-wrap{width:100%;max-height:none;overflow-x:auto;overflow-y:visible}
@media(max-width:900px){
  .nyxEqV4 .rates-modal .nyeq-rates-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .nyxEqV4 .rates-modal .nyeq-chaos-chances{grid-template-columns:repeat(2,minmax(0,1fr))}
  .nyxEqV4 .rates-modal .nyeq-flame-rates{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:580px){
  .nyxEqV4 .inner-modal.rates-modal{width:calc(100vw - 12px);height:calc(100dvh - 12px);max-height:calc(100dvh - 12px)}
  .nyxEqV4 .rates-modal .nyeq-rates-tabs{padding:10px;gap:5px}
  .nyxEqV4 .rates-modal .nyeq-rates-tab{padding:8px 9px;font-size:12px}
  .nyxEqV4 .rates-modal .nyeq-rates-scroll{padding:12px}
  .nyxEqV4 .rates-modal .nyeq-rates-grid,
  .nyxEqV4 .rates-modal .nyeq-flame-rates{grid-template-columns:1fr}
  .nyxEqV4 .rates-modal .nyeq-rates-footer{padding:9px 12px;font-size:11px}
}
/* S6 Fix1: a slot keeps its SQL021 upgrades, while physical gear is selectable in its header. */
.nyxEqV4 .item-head .item-header{flex:0 1 230px;min-width:118px}
.nyxEqV4 .nyeq-wear-widget{flex:1 1 250px;min-width:0;max-width:490px;display:flex;flex-direction:column;gap:4px;padding:2px 0}
.nyxEqV4 .nyeq-wear-caption{color:#98b9de;font-size:11px;font-weight:750;line-height:1.2}
.nyxEqV4 .nyeq-wear-row{display:flex;align-items:center;min-width:0;gap:5px}
.nyxEqV4 .nyeq-wear-row select{height:32px;flex:1 1 120px;min-width:0;border:1px solid #355a86;border-radius:7px;background:#112b4a;color:#edf5ff;font-size:12px;padding:4px 7px}
.nyxEqV4 .nyeq-wear-btn{flex-shrink:0;min-height:32px;border:1px solid #4589d1;border-radius:7px;background:#1e5a96;color:#fff;font-size:12px;font-weight:730;padding:5px 9px;cursor:pointer}
.nyxEqV4 .nyeq-wear-btn.secondary{border-color:#375273;background:#172f4d}
.nyxEqV4 .nyeq-wear-btn:disabled{opacity:.45;cursor:not-allowed}
.nyxEqV4 .nyeq-wear-hint{font-size:10px;min-height:12px;color:#9acbb5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:1120px){.nyxEqV4 .item-head{flex-wrap:wrap}.nyxEqV4 .nyeq-wear-widget{order:4;flex-basis:100%;max-width:none}.nyxEqV4 .state-tags{margin-left:auto}}
@media(max-width:640px){.nyxEqV4 .nyeq-wear-widget{flex:1 1 100%}.nyxEqV4 .nyeq-wear-row{flex-wrap:wrap}.nyxEqV4 .nyeq-wear-row select{flex-basis:100%}.nyxEqV4 .item-head .item-header{flex:1 1 130px}}

/* V7.3.0 A1 - physical gear appearance / server-ranked wearable picker. */
.nyxEqV4 .nyeq-a1-title-click{border:0;background:transparent;color:inherit;text-align:left;cursor:pointer;font:inherit;padding:0;}
.nyxEqV4 .item-symbol.nyeq-a1-title-click{display:flex;align-items:center;justify-content:center;overflow:hidden;}
.nyxEqV4 .item-symbol.nyeq-a1-title-click img{width:100%;height:100%;object-fit:contain;}
.nyeq-a1-backdrop{position:fixed;inset:0;z-index:2147483200;background:rgba(3,9,19,.82);display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box;}
.nyeq-a1-modal{width:min(480px,100%);max-height:min(85vh,760px);overflow:hidden;display:flex;flex-direction:column;background:#15273e;border:1px solid #5b769b;box-shadow:0 20px 70px #000a;border-radius:15px;color:#f2f6ff;}
.nyeq-a1-modal header{display:flex;justify-content:space-between;align-items:center;padding:15px 18px;border-bottom:1px solid #3b536d;}
.nyeq-a1-modal header button{background:none;color:#ebf0fa;border:0;font-size:26px;cursor:pointer;}
.nyeq-a1-modal footer{display:flex;justify-content:flex-end;gap:10px;padding:12px 18px;border-top:1px solid #3b536d;}
.nyeq-a1-modal footer button{background:#225d9b;border:1px solid #5084b9;color:white;padding:9px 16px;border-radius:9px;cursor:pointer;}
.nyeq-a1-title{padding:18px;display:flex;gap:16px;align-items:center;}.nyeq-a1-title h3{margin:0 0 6px;font-size:20px;}.nyeq-a1-title small{color:#a9c0d9;}
.nyeq-a1-image{width:66px;height:66px;flex:0 0 66px;display:flex;align-items:center;justify-content:center;border:1px solid #48627b;background:#0e1d31;border-radius:10px;font-size:31px;overflow:hidden;}
.nyeq-a1-image img{width:100%;height:100%;object-fit:contain;}
.nyeq-a1-detail-rows{padding:8px 18px 18px;overflow-y:auto;}.nyeq-a1-detail-row{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #284058;}
.nyeq-a1-detail-row span{color:#b5c8dd;}
.nyeq-a1-guide{margin:12px 18px;color:#abc6e5;font-size:13px;}
.nyeq-a1-items{min-height:120px;max-height:52vh;overflow-y:auto;padding:0 16px 12px;display:flex;flex-direction:column;gap:8px;}
.nyeq-a1-choice{border:1px solid #345875;border-radius:10px;background:#1a3450;color:white;text-align:left;padding:10px;display:flex;align-items:center;gap:12px;cursor:pointer;}
.nyeq-a1-choice:hover,.nyeq-a1-choice.selected{background:#24517a;border-color:#79b6f0;}
.nyeq-a1-choice-info{display:flex;flex-direction:column;gap:5px;min-width:0;overflow-wrap:anywhere;}.nyeq-a1-choice-info small{color:#bdcfe5;font-size:12px;}
@media(max-width:600px){.nyeq-a1-modal{max-height:90vh;}.nyeq-a1-backdrop{padding:8px;}.nyeq-a1-image{width:52px;height:52px;flex-basis:52px;}}

.nyeq-a1-hover{position:fixed;z-index:2147483199;max-width:min(345px,calc(100vw - 16px));padding:10px 12px;border:1px solid #6692bc;border-radius:9px;background:#102339;color:#eaf4ff;box-shadow:0 10px 25px #000b;pointer-events:none;font-size:13px;line-height:1.5;}

/* V7.5.0-R1: compact set effect cards, inactive effects visible but muted. */
.nyxEqV4 .nyeq-set-card{border:1px solid #273b56;border-radius:9px;padding:8px 10px;margin:6px 0;background:#101f32;line-height:1.4}
.nyxEqV4 .nyeq-set-card.is-active{border-color:#608aca;background:#152b43}
.nyxEqV4 .nyeq-set-card.is-locked{opacity:.62}
.nyxEqV4 .nyeq-set-title{display:flex;align-items:center;justify-content:space-between;gap:8px}
.nyxEqV4 .nyeq-set-title strong{font-size:12px}
.nyxEqV4 .nyeq-set-title small{font-size:10px;color:#9db4d5}
.nyxEqV4 .nyeq-set-effects{display:flex;flex-wrap:wrap;gap:4px 7px;margin-top:5px}
.nyxEqV4 .nyeq-set-effects span{font-size:10px;color:#c5d7ef;white-space:normal}

/* V7.5.0-R4: separate physical sets and independent grade resonance. */
.nyeq-r4-set{border:1px solid #355476;border-radius:10px;background:#101f35;padding:10px;margin:8px 0;color:#dceaf8}
.nyeq-r4-set>strong{display:block;margin-bottom:8px;font-size:13px}
.nyeq-r4-stage-list{display:grid;gap:5px}
.nyeq-r4-stage{display:flex;justify-content:space-between;gap:9px;flex-wrap:wrap;opacity:.67;font-size:12px}
.nyeq-r4-stage.active{color:#8ff0c4;opacity:1}
.nyeq-r4-stage span{color:#c3d6ed}
.nyeq-r4-comparison{display:flex;gap:6px;flex-wrap:wrap}
.nyeq-r4-comparison>span{font-size:12px;padding:5px 7px;border-radius:6px;background:#1d384e}
.nyeq-r4-comparison .positive{color:#9df5ca}.nyeq-r4-comparison .negative{color:#ffb9b2}

/* FIX2 UI repair: scoped to the LEFT set pane; no styles for the right equipment work area. */
.nyxEqV4 #v4-sideSets .nyeq-compact-set,
.nyxEqV4 .summary-modal-body .nyeq-compact-set {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 9px;width:100%;margin:6px 0;padding:10px 11px;background:#10243b;border:1px solid #315370;border-radius:9px;color:#e4f2ff;text-align:left;cursor:pointer;}
.nyxEqV4 #v4-sideSets .nyeq-compact-set strong,.nyxEqV4 .summary-modal-body .nyeq-compact-set strong{font-size:12px;overflow-wrap:anywhere;}
.nyxEqV4 #v4-sideSets .nyeq-compact-set span,.nyxEqV4 .summary-modal-body .nyeq-compact-set span{font-size:12px;color:#9ed0fc;white-space:nowrap;}
.nyxEqV4 #v4-sideSets .nyeq-compact-set small,.nyxEqV4 .summary-modal-body .nyeq-compact-set small{grid-column:1/-1;font-size:11px;color:#9fb7d2;}
.nyxEqV4 #v4-sideSets .nyeq-compact-set:hover,.nyxEqV4 .summary-modal-body .nyeq-compact-set:hover{border-color:#82bfff;background:#193657;}
.nyxEqV4 .nyeq-grade-heading{margin-top:13px;}
.nyeq-set-modal-shade{position:fixed;inset:0;z-index:2147483100;display:flex;justify-content:center;align-items:center;padding:18px;background:#020912c9;}
.nyeq-set-modal{width:min(560px,96vw);max-height:min(680px,88vh);overflow:hidden;display:flex;flex-direction:column;background:#14263e;color:#e8f3ff;border:1px solid #6385ac;border-radius:13px;box-shadow:0 25px 70px #000b;}
.nyeq-set-modal header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 18px;border-bottom:1px solid #31506d;}
.nyeq-set-modal header button{border:1px solid #496584;border-radius:8px;background:#264362;color:#fff;padding:6px 10px;cursor:pointer;}
.nyeq-set-modal-body{padding:13px 18px 18px;overflow-y:auto;display:grid;gap:8px;}
.nyeq-set-modal-stage{display:grid;gap:7px;padding:11px;border:1px solid #38506b;border-radius:8px;background:#0c1e32;color:#a9bdd7;}
.nyeq-set-modal-stage.active{border-color:#46896c;color:#8cebb8;}
.nyeq-set-modal-stage b{font-size:13px;}.nyeq-set-modal-stage span{font-size:12px;line-height:1.55;}
.nyeq-set-modal-note{font-size:12px;line-height:1.5;color:#b9cde6;}

/* FIX3 - left-hand set details only; existing equipment controls and right pane untouched. */
.nyeq-set-modal .nyeq-fix3-parts{display:grid;gap:5px;margin-bottom:13px;padding:10px;border:1px solid #304a66;border-radius:9px;background:#102039}
.nyeq-set-modal .nyeq-fix3-parts-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:5px 10px;padding-bottom:6px;color:#d9e8ff}
.nyeq-set-modal .nyeq-fix3-parts-head span{font-size:11px;color:#99b2d0}
.nyeq-set-modal .nyeq-fix3-part{display:grid;grid-template-columns:106px minmax(0,1fr) 20px;gap:8px;align-items:center;padding:5px 8px;border-radius:5px;font-size:12px;color:#8297b3;background:#13263c}
.nyeq-set-modal .nyeq-fix3-part b{font-weight:500;overflow-wrap:anywhere;text-align:right}
.nyeq-set-modal .nyeq-fix3-part em{font-style:normal;text-align:center}
.nyeq-set-modal .nyeq-fix3-part.equipped{color:#8aefd0;background:#163a3c}
.nyeq-set-modal .nyeq-fix3-requirement{font-size:12px;line-height:1.6;color:#e9bb86;padding:8px 10px;margin-bottom:12px;border:1px solid #715432;border-radius:8px}
.nyeq-set-modal .nyeq-fix3-requirement.met{color:#80e4bc;border-color:#377d6b}
/* V8.4.10: compact flame decision, CSS-only decorative styling. */
.nyxEqV4 .flame-modal{width:min(740px,100%);border:1px solid #547fae;background:linear-gradient(145deg,#101f36,#0b1728);box-shadow:0 18px 60px #000a,inset 0 1px 0 #76b5ff44}
.nyxEqV4 .flame-body{gap:10px;padding:12px}.nyxEqV4 .flame-ability{padding:10px;border-color:#375c89}
.nyxEqV4 .flame-values{grid-template-columns:repeat(auto-fit,minmax(110px,1fr))}.nyxEqV4 .flame-attr{padding:8px;min-width:0;background:linear-gradient(140deg,#213b5b,#14243c)}
.nyxEqV4 .flame-compare{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.nyxEqV4 .comparebox{min-width:0;padding:10px}.nyxEqV4 .comparebox.highlight{border-color:#70b6ff;background:linear-gradient(145deg,#183452,#10243b)}
.nyxEqV4 .flame-decide button[data-choice=new]{background:linear-gradient(180deg,#2a62b9,#174483);border-color:#7eb7fb}.nyxEqV4 .flame-decide button:only-child{grid-column:1/-1}
@media(max-width:500px){.nyxEqV4 .flame-body{padding:8px;gap:7px}.nyxEqV4 .flame-ability{padding:8px}.nyxEqV4 .flame-values{grid-template-columns:repeat(2,minmax(0,1fr))}.nyxEqV4 .comparebox{padding:7px}.nyxEqV4 .compareline{gap:5px;font-size:11px}.nyxEqV4 .flame-decide{gap:7px}.nyxEqV4 .flame-decide button{min-height:42px;font-size:12px}}

/* V10.0.0 display hotfix: mode tabs and Startrace have their own V4 scope. */
.nyxEqV4.nyx-equip-mode-tabs{display:flex;flex-wrap:wrap;gap:8px;padding:9px 12px;flex-shrink:0;border-bottom:1px solid #304460;background:#101e35}
.nyx-equip-mode-tabs .op{flex:0 1 auto;min-height:40px;padding:7px 12px;white-space:nowrap}
.nyx-equip-mode-tabs .op[aria-pressed="true"]{opacity:1;border-color:#709eff;background:#2457cf;color:#fff;cursor:default}
.nyxEqV4.nyx-startrace-view{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:16px;overflow:auto;min-height:0;flex:1;color:var(--text);line-height:1.5}
.nyx-startrace-view h2{font-size:20px;color:var(--ink)}
.nyx-startrace-view h3{font-size:16px;color:var(--ink)}
.nyx-startrace-view .op{align-self:flex-start;padding:8px 14px;min-height:44px;margin:4px 0}
.nyx-startrace-view .op:disabled{opacity:.55}
.nyx-startrace-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:8px}
.nyx-startrace-metrics>div{min-width:0;padding:10px 12px;background:var(--panel2);border:1px solid var(--stroke);border-radius:9px}
.nyx-startrace-metrics small{display:block;color:var(--muted);font-size:12px}
.nyx-startrace-metrics strong{display:block;overflow-wrap:anywhere;font-size:16px;color:var(--ink);font-variant-numeric:tabular-nums}
.nyx-startrace-line{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0;padding:12px;background:var(--panel2);border:1px solid var(--stroke);border-radius:10px}
.nyx-startrace-line details{border-top:1px solid var(--stroke);padding-top:8px;overflow-wrap:anywhere}
.nyx-startrace-line summary{cursor:pointer;color:#a9c9ff}
@media(max-width:600px){.nyxEqV4.nyx-equip-mode-tabs{gap:6px;padding:8px}.nyx-equip-mode-tabs .op{flex:1 1 40%;min-width:0}.nyxEqV4.nyx-startrace-view{padding:12px;gap:10px}.nyx-startrace-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.nyx-startrace-line .op{width:100%}}

/* V10.1.1 startrace equipment: reusable cards, one probability table. */
.nyx-st-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.nyx-st-head h2,.nyx-st-head h3{margin:0}.nyx-st-value{font-size:25px;color:#ead29b;font-variant-numeric:tabular-nums}.nyx-st-lines{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}.nyx-st-sub{display:grid;gap:8px;padding:12px;background:#0d192c;border:1px solid #2c405b;border-radius:10px}.nyx-st-sub progress,.np-st-level{width:100%;height:10px;accent-color:#72b9a5}.nyx-st-sub small{color:#a7bbd7}.nyx-st-max{background:#19392e;color:#9de6b9;padding:8px;border-radius:7px;text-align:center}.nyx-st-note{color:#9fb3d0;font-size:12px}.nyx-st-block{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap}.nyx-st-rates-overlay{position:fixed;inset:0;z-index:10010;background:#000b;display:grid;place-items:center;padding:14px}.nyx-st-rates-card{width:min(850px,100%);max-height:90dvh;display:flex;flex-direction:column;background:#101f34;border:1px solid #446286;border-radius:14px;padding:16px;color:#dfeaff}.nyx-st-rates-body{overflow:auto;min-height:0}.nyx-st-rates-body table{width:100%;border-collapse:collapse;white-space:pre-line}.nyx-st-rates-body th,.nyx-st-rates-body td{padding:10px;border-bottom:1px solid #344861;text-align:left;font-size:13px}.nyx-st-rates-body th{color:#b9d8ff}.nyx-st-rates-body td{font-variant-numeric:tabular-nums}@media(max-width:720px){.nyx-st-lines{grid-template-columns:1fr}.nyx-st-rates-body th,.nyx-st-rates-body td{padding:6px;font-size:12px}.nyx-st-head{flex-wrap:wrap}}

/* V10.1.2: shared startrace surfaces and flame count projection */
.nyxEqV4.nyx-startrace-view{padding:0 12px 12px;gap:8px;overflow-anchor:none;scrollbar-gutter:stable}
.nyx-st-fixed{position:sticky;top:0;z-index:2;background:#0b1628;padding:8px 0;border-bottom:1px solid #304460;display:grid;gap:6px}
.nyx-st-fixed>.nyx-st-head{justify-content:flex-start;flex-wrap:wrap}.nyx-st-fixed h2{margin-right:auto}.nyx-st-fixed .op{min-height:34px;margin:0;padding:5px 9px;font-size:12px}
.nyx-st-lines{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:8px}.nyx-startrace-line{padding:9px;gap:6px}.nyx-startrace-line .nyx-st-value{font-size:22px}.nyx-st-sub{padding:7px;gap:5px}.nyx-st-sub .op{width:100%;min-height:34px;margin:0;padding:6px}.nyx-st-sub progress{height:7px}.nyx-st-max{padding:6px;font-size:12px}.nyx-st-na{opacity:.55}.nyx-st-na .nyx-st-max{background:#1b293b;color:#9baec4}.nyx-st-note{margin:0}
.nyx-st-rates-card{height:min(720px,90dvh);padding:12px;min-height:0}.nyx-st-rates-card>.nyx-st-head{flex:none;padding:0 0 8px;border-bottom:1px solid #344861}.nyx-st-rates-card>.nyx-st-head .op{min-height:34px;padding:5px 12px}.nyx-st-rates-body{flex:1;scrollbar-gutter:stable}.nyx-st-rates-body>p{color:#a9bdd8;font-size:12px;margin:8px 0}.nyx-st-rates-body thead th{position:sticky;top:0;z-index:1;background:#1a3049}.nyx-st-rates-body tbody tr:nth-child(even){background:#16263b}.nyx-st-rate-pair{display:flex;justify-content:space-between;gap:8px;min-width:72px}.nyx-st-rate-outcomes>span{display:inline-flex;flex-direction:column;align-items:center;min-width:45px;margin:2px 5px 2px 0;gap:2px}.nyx-st-rate-outcomes small{font-size:10px;color:#a7b8cf}.nyx-st-rate-success b{color:#8de6b0}.nyx-st-rate-stay b{color:#e7c981}.nyx-st-rate-drop b{color:#ff9292}.nyx-st-result-group{padding:10px;border-bottom:1px solid #344861}.nyx-st-result-group h3{margin:0 0 8px}.nyx-st-result-group .nyx-st-block{padding:6px 0;border-top:1px solid #253b54}
.nyeq-flame-counts{margin:0 0 14px}.nyeq-flame-counts p{font-size:12px;color:#9fb7d2;margin:3px 0 8px}.nyeq-flame-count-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.nyeq-flame-count-grid>div{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:9px 12px;border:1px solid #315171;background:#142c43;border-radius:8px}.nyeq-flame-count-grid b{font-size:16px;color:#c8e1ff;font-variant-numeric:tabular-nums}
@media(max-width:1050px){.nyx-st-lines{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.nyx-st-lines{grid-template-columns:1fr}.nyx-st-fixed{position:static}.nyx-st-fixed .nyx-startrace-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.nyx-st-na{display:none}.nyeq-flame-count-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.nyx-st-rates-body table{min-width:450px}}
.nyx-st-rates-overlay{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.nyx-st-rates-card{min-width:0;max-width:100%;overflow:hidden}.nyx-st-rates-body{min-width:0;width:100%}.nyx-st-rates-card>.nyx-st-head h2{font-size:18px;flex:1;min-width:0}.nyx-st-rates-card>.nyx-st-head .op{flex:none}

/* V10.1.3: compact shared result panel, fixed EXP read-only. */
.nyx-st-results-card .nyx-st-results-body{display:flex;flex-direction:column;gap:8px;padding:4px 2px 8px;overflow:auto;overflow-anchor:none}
.nyx-st-results-body .nyx-st-result-note{margin:3px 0;color:#a9bdd8;font-size:12px;line-height:1.5}
.nyx-st-results-body .nyx-st-result-group{flex:none;background:#13243a;border:1px solid #304763;border-radius:9px;padding:9px;min-width:0}
.nyx-st-results-body .nyx-st-result-title{display:flex;align-items:center;gap:8px;min-width:0;padding:0 2px 6px}
.nyx-st-results-body .nyx-st-result-title h3{margin:0;font-size:15px;flex:1}.nyx-st-result-level{font-size:12px;color:#a4bad5;white-space:nowrap}.nyx-st-result-value{font-size:17px;color:#ead29b;font-variant-numeric:tabular-nums;white-space:nowrap}
.nyx-st-results-body .nyx-st-block{display:grid;grid-template-columns:85px minmax(0,1fr) 142px;align-items:center;gap:8px;padding:7px 0 2px;border-top:1px solid #29415b;margin:0;min-width:0}.nyx-st-results-body .nyx-st-block.is-fixed{grid-template-columns:85px minmax(0,1fr)}
.nyx-st-result-range{font-size:12px;color:#b6cde6;white-space:nowrap}.nyx-st-result-slots{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;min-width:0}
.nyx-st-result-slot{display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 2px;background:#1a344a;border:1px solid #355872;border-radius:6px;min-width:0}.nyx-st-result-slot small{color:#a6bfd9;font-size:10px}.nyx-st-result-slot strong{color:#bce8dc;font-size:15px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.nyx-st-result-slot.is-empty{background:#101d30;border-color:#283b53}.nyx-st-result-slot.is-empty strong{color:#768ba7}
.nyx-st-result-action{display:grid;gap:3px;text-align:center}.nyx-st-results-body .nyx-st-result-action .op{margin:0;width:100%;min-height:32px;padding:4px 7px;font-size:12px}.nyx-st-result-action small{font-size:11px;color:#adc1d9}.nyx-st-result-fixed,.nyx-st-result-empty{font-size:12px;color:#a9bdd8;margin:3px 2px 5px}.nyx-st-result-fixed{color:#8ed7bf}
@media(max-width:620px){.nyx-st-results-body .nyx-st-block,.nyx-st-results-body .nyx-st-block.is-fixed{grid-template-columns:minmax(0,1fr);gap:5px}.nyx-st-result-action{grid-template-columns:1fr 1fr;align-items:center}.nyx-st-result-slot strong{font-size:13px}.nyx-st-results-body .nyx-st-result-group{padding:7px}.nyx-st-results-body .nyx-st-result-title h3{font-size:14px}}

.nyxEqV4 .nyx-st-stage-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}.nyxEqV4 .nyx-st-stage-tabs .op[aria-selected="true"]{border-color:#73b1de;background:#254765;color:#eef7ff}
/* R3 static vector-style line badges (no network request). */
.nyx-st-r3-icon{width:36px;height:36px;flex:0 0 36px;border-radius:9px;border:1px solid #8c9cdb;background:radial-gradient(circle at 35% 30%,#c3a8ff,#55439b 58%,#182446);display:grid;place-items:center;color:#f4eaff;box-shadow:inset 0 0 6px #d7c7ff77}
.nyx-st-r3-icon:before{font-size:22px;line-height:1;font-weight:bold;text-shadow:0 1px 3px #142036}
.nyx-st-icon-exp:before{content:"✦"}.nyx-st-icon-main:before{content:"◆"}.nyx-st-icon-attack:before{content:"⚔"}.nyx-st-icon-vital:before{content:"♥"}.nyx-st-icon-defense:before{content:"⬟"}
.nyx-st-icon-exp{background:radial-gradient(circle at 35% 30%,#ffe99f,#b87c24 60%,#30234b)}.nyx-st-icon-attack{background:radial-gradient(circle at 35% 30%,#ffcbab,#ad4656 60%,#30234b)}.nyx-st-icon-vital{background:radial-gradient(circle at 35% 30%,#c9ffe5,#338b81 60%,#193b47)}.nyx-st-icon-defense{background:radial-gradient(circle at 35% 30%,#b9e5ff,#346fae 60%,#182446)}
.nyx-startrace-line>.nyx-st-head>h3{margin-right:auto}

/* T1.4.1 UI: keep original single-star controls; add independent auto page. */
.nyxEqV4 .original-star-modal{width:min(1120px,100%);max-width:100%}
.nyxEqV4 .sf-responsive-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);min-height:0;overflow:auto;gap:0;scrollbar-color:#46576d #172235;scrollbar-width:thin}
.nyxEqV4 .sf-responsive-layout .sf-single-pane{overflow:visible;min-width:0}
.nyxEqV4 .sf-auto-pane{border-left:1px solid #344258;padding:12px 20px 20px;min-width:0;display:flex;flex-direction:column;gap:12px}
.nyxEqV4 .sf-auto-pane h3{margin:0;font-size:17px;color:#dbe9fb}.nyxEqV4 .sf-auto-note{margin:0;font-size:12px;line-height:1.6;color:#aabbd0;overflow-wrap:anywhere}
.nyxEqV4 #v4-starAutoControls{display:flex;flex-direction:column;gap:12px;min-width:0}.nyxEqV4 .sf-auto-current{padding:15px;background:#203048;border:1px solid #3b5575;border-radius:13px;display:grid;justify-items:center;gap:5px}.nyxEqV4 .sf-auto-current strong{font-size:27px;color:#a4d3ff}.nyxEqV4 .sf-auto-current small{font-size:12px;color:#afc3dc}
.nyxEqV4 .sf-auto-target{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;color:#d7e4f5}.nyxEqV4 .sf-auto-target select{background:#172235;border:1px solid #4b6384;color:#eaf3ff;border-radius:8px;padding:9px 13px;font:inherit;min-width:94px;min-height:38px;color-scheme:dark}
.nyxEqV4 .sf-auto-pane .sf-protect-items{grid-template-columns:1fr}.nyxEqV4 .sf-auto-go,.nyxEqV4 .sf-page-btn{font:inherit;font-weight:700;min-height:44px;border:1px solid #4c789d;border-radius:10px;background:#294c70;color:#e9f4ff;cursor:pointer;padding:9px 12px}.nyxEqV4 .sf-auto-go.stop{background:#57353d;border-color:#95636a}.nyxEqV4 .sf-auto-go:disabled{opacity:.5;cursor:not-allowed}.nyxEqV4 .sf-page-btn{display:none;background:#203149;border-color:#435a78}
.nyxEqV4 .sf-auto-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:8px}.nyxEqV4 .sf-auto-metrics>div{background:#1c2a40;border:1px solid #37495f;border-radius:9px;padding:9px 4px;display:grid;justify-items:center;gap:4px}.nyxEqV4 .sf-auto-metrics small{font-size:11px;color:#aabbd0}.nyxEqV4 .sf-auto-metrics strong{font-size:18px;color:#e6effb}.nyxEqV4 .sf-auto-feedback{font-size:12px;line-height:1.55;color:#b6d6ef;overflow-wrap:anywhere}
@media(max-width:760px){.nyxEqV4 .original-star-modal{width:100%}.nyxEqV4 .sf-responsive-layout{display:block}.nyxEqV4 .sf-auto-pane{border-left:0;padding:12px 16px 18px}.nyxEqV4 .sf-page-btn{display:block;width:100%}.nyxEqV4 .sf-responsive-layout[data-sf-page=single] .sf-auto-pane,.nyxEqV4 .sf-responsive-layout[data-sf-page=auto] .sf-single-pane{display:none}.nyxEqV4 .sf-responsive-layout .sf-single-pane{overflow:visible}.nyxEqV4 .sf-auto-pane .sf-auto-go{width:100%}}
