/* Extend the existing dark battle panels; no full-screen management overlays. */
:root{--header-height:38px}
#game-shell#game-shell#game-shell .topbar{gap:5px;position:relative;overflow:visible}
.fragment-wallet{display:flex!important;flex-wrap:wrap;align-items:center;gap:8px;color:#80e5d4!important;font-size:16px!important;font-weight:700}
.fragment-wallet img{width:32px;height:32px;object-fit:contain}.fragment-wallet b{font-size:19px}
.fragment-summary{background:#142d38;border:1px solid #44717b;padding:10px;border-radius:6px}
.fragment-summary #unlock-passive-point{width:100%;min-height:38px;color:#15212d;background:#d1b36b;font-weight:700}
.point-footer{position:sticky;bottom:0;background:#11212e;padding:8px;z-index:3}.point-footer #point-apply{min-height:38px;background:#cfb16b;color:#14212a;font-weight:700}.point-footer #point-apply:disabled{background:#254841;color:#a7dacc;opacity:1}
#skills-dialog#skills-dialog#skills-dialog#skills-dialog[data-skills-tab=active]{--skill-main-width:min(420px,38vw);width:var(--skill-main-width)!important;max-width:var(--skill-main-width)!important;overflow:visible!important;contain:none!important}
#skills-dialog#skills-dialog#skills-dialog#skills-dialog .specialization-layout{display:block;overflow:visible;position:static;min-height:0}
#skills-dialog#skills-dialog#skills-dialog#skills-dialog #skill-collection{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;overflow:visible;min-width:0}
#skills-dialog #skill-detail-sheet>header{display:none}
#skills-dialog[data-skills-tab=active] #skill-detail-sheet{display:none}
#skills-dialog[data-skills-tab=active][data-skill-detail=true] #skill-detail-sheet{display:flex;flex-direction:column;position:absolute;right:calc(100% + 8px);top:0;width:min(380px,36vw);height:100%;min-height:0;padding:8px;background:#101f2df7;border:1px solid #607e91;border-radius:6px;overflow:hidden}
#skills-dialog[data-skills-tab=active] #skill-detail-sheet>header{display:flex;justify-content:space-between;align-items:center;flex:none;padding-bottom:8px;font-size:14px}
#skills-dialog#skills-dialog#skills-dialog #specialization-detail{overflow-y:auto!important;overflow-x:hidden!important;min-height:0;flex:1;width:100%;max-height:none!important}
#skills-dialog:not([data-skills-tab=active]) #skill-detail-sheet{display:flex;flex-direction:column;min-height:0;height:100%;overflow:hidden}
#skills-dialog:not([data-skills-tab=active]) .specialization-layout{flex:1;overflow:hidden!important}
#skills-dialog[data-skills-tab=active] .dialog-footer{display:none}
#skills-dialog#skills-dialog#skills-dialog .skill-list-button{min-width:0;padding:6px;gap:4px;min-height:44px}.skill-list-button span{min-width:0}.skill-list-button strong{white-space:nowrap;font-size:12px}.skill-list-button small{white-space:nowrap;font-size:11px}
#skills-dialog #skill-detail-sheet .trait-list,#skills-dialog #skill-detail-sheet .core-trait-list{display:grid;grid-template-columns:1fr;gap:8px}
:root[data-side-panel=skills-dialog][data-skill-detail=true]{--occupied-width:calc(min(420px,38vw) + min(380px,36vw) + 8px)}
.gem-filter,.gem-presets{display:flex;flex-wrap:wrap;gap:5px;align-items:center;margin-bottom:8px}.gem-presets button,.gem-filter button{min-height:32px;padding:5px 8px;font-size:12px}.gem-filter [aria-pressed=true]{border-color:#76dac9;background:#20504e}.gem-tile-name{display:block;font-size:12px;line-height:16px;color:#e0edf4}.gem-inventory-tile{height:auto!important;min-height:75px}.utility-summary{padding:6px;background:#172735;font-size:12px}.utility-summary p{margin:6px 0}
.update-notes details{padding:12px;border:1px solid #395467;background:#142533;margin-bottom:8px;border-radius:6px}.update-notes summary{cursor:pointer;display:flex;flex-direction:column;gap:6px}.update-notes p{line-height:1.7;overflow-wrap:anywhere}.update-notes small{color:#a3bacb}.notes-footer{position:sticky;bottom:0;display:flex;gap:8px;padding:10px 0;background:#10202d}.notes-footer button{flex:1;min-height:40px}.update-editor{display:flex;flex-direction:column;gap:10px;margin-top:22px;padding-top:16px;border-top:1px solid #4e667a}.update-editor label{display:flex;flex-direction:column;gap:5px}.update-editor input,.update-editor textarea{max-width:100%;min-width:0}.exp-ranking-list article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:10px;border-bottom:1px solid #395267}.exp-ranking-list small{grid-column:1/-1;color:#9dbbce}
#live-tabs{flex-wrap:wrap!important;overflow:visible!important}#live-content{min-width:0;overflow-x:hidden!important}#live-content .rank-filters{flex-wrap:wrap}#live-content select{max-width:100%;min-width:0}
#expeditions-dialog .expedition-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}#expeditions-dialog .expedition-tabs button{padding:4px;font-size:12px}#expedition-wallet{grid-column:1/-1}
.topbar>.regions{display:none!important}.topbar{height:calc(38px + env(safe-area-inset-top,0px))!important;min-height:38px;display:flex!important;gap:5px;align-items:center}.topbar .battle-brand{flex:none}.topbar .hud-actions{display:flex!important;gap:4px;align-items:center;margin-left:auto;position:static!important;width:auto!important}.topbar #boss-controls,.topbar #combat-menu,.topbar #combat-menu-items{display:contents!important}.topbar #combat-menu-toggle,.topbar .hud-actions svg,.topbar .hud-actions img,.topbar .hud-actions small{display:none!important}.topbar .hud-actions button{position:relative;min-width:46px;width:auto;min-height:30px;height:30px;margin:0;padding:4px 7px;font-size:12px;line-height:18px;border:1px solid #3d586a;background:#182d3a;color:#d7e8ef;white-space:nowrap}.topbar .hud-actions button>div{display:flex;gap:3px;align-items:center}.topbar .top-actions{order:3;margin-left:0!important;display:flex;flex:none;gap:3px}.topbar #auto-skills-state{font-size:10px}.topbar #header-more{order:4;position:relative;flex:none;font-size:12px}.topbar #header-more summary{padding:7px;border:1px solid #526e81;cursor:pointer;list-style:none}.topbar #header-more>div{position:absolute;right:0;top:100%;z-index:100;width:190px;display:grid;grid-template-columns:1fr 1fr;gap:5px;background:#112331;border:1px solid #526e81;padding:8px}.topbar #header-more button{min-height:34px;font-size:12px;padding:5px}.topbar #header-more button svg,.topbar #header-more small{display:none}.topbar #header-more #session-playtime{grid-column:1/-1}.topbar #boss-options{display:none!important}
@media(max-width:1000px){.topbar .battle-brand{display:none!important}.topbar .top-actions:empty{display:none!important}.topbar .hud-actions{margin:0;flex:1;justify-content:space-between;gap:3px}.topbar .hud-actions button{min-width:0;padding:4px 5px}.topbar .top-actions{gap:0}#skills-dialog#skills-dialog#skills-dialog#skills-dialog #skill-collection{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.point-footer button{transition:none!important}}
#auto-priority-button>span+span{margin-left:3px}.expedition-content-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:0 0 8px}.expedition-content-tabs button{min-height:38px;border:1px solid #4f6678;background:#142b3a;color:#c8d9e2;font-weight:700}.expedition-content-tabs button.active{border-color:#79d7c9;background:#24534f;color:#fff;box-shadow:inset 0 -3px #8fe9d9}#nightmare-content{padding:8px;max-height:calc(100dvh - 190px);overflow-y:auto}.nightmare-rules{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:12px 0}.nightmare-rules span{padding:10px 4px;text-align:center;border:1px solid #71578b;background:#241b32;border-radius:7px}.nightmare-rules b{display:block;color:#e7c2ff}#nightmare-ranking p{display:flex;justify-content:space-between;gap:12px;padding:7px;border-bottom:1px solid #ffffff18;margin:0}#nightmare-result{padding:12px;margin:10px 0;border:1px solid #b27ad2;background:#251731;border-radius:8px;text-align:center}
@media(max-width:600px){#auto-priority-button>span{display:block;line-height:12px}#auto-priority-button>span+span{margin-left:0}.nightmare-rules{gap:3px}.nightmare-rules span{font-size:12px}#nightmare-ranking p{font-size:12px}}
.nightmare-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0 0 10px}.nightmare-tabs button{min-width:0;min-height:38px;padding:7px 10px;border:1px solid #5b526b;border-radius:5px;background:#181c29;color:#c9c4d3;font-size:14px;font-weight:700;white-space:nowrap}.nightmare-tabs button.active{border-color:#bd83db;background:#3a2449;color:#f4ddff;box-shadow:inset 0 -3px #bd83db}.nightmare-shop-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;margin-bottom:8px;border:1px solid #71578b;border-radius:7px;background:#21172c}.nightmare-shop-head h3,.nightmare-shop-head p{margin:0}.nightmare-shop-head p{margin-top:3px;color:#b8afc2;font-size:12px}.nightmare-shop-head>strong{flex:none;color:#e7c2ff;font-size:14px;white-space:nowrap}.nightmare-shop-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.nightmare-shop-item{display:flex;flex-direction:column;justify-content:space-between;min-width:0;min-height:118px;padding:10px;border:1px solid #ffffff1f;border-radius:7px;background:#111d28}.nightmare-shop-item>div{min-width:0}.nightmare-shop-item strong{display:block;color:#f0e8f4;font-size:14px;line-height:1.35;overflow-wrap:anywhere}.nightmare-shop-item small{display:block;margin-top:3px;color:#9eb0ba;font-size:11px;line-height:1.35}.nightmare-gem-choice{width:100%;height:30px;margin-top:7px;padding:3px 7px;border:1px solid #5d6d7c;border-radius:4px;background:#0d1821;color:#e8edf2;font-size:12px}.nightmare-shop-item footer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:2px 8px;margin-top:8px}.nightmare-shop-item footer>span{color:#d8b1ed;font-size:12px;white-space:nowrap}.nightmare-shop-item footer>small{margin:0;text-align:right;white-space:nowrap}.nightmare-shop-item footer button{grid-column:1/-1;width:100%;min-height:32px;margin-top:4px;border:1px solid #bd83db;border-radius:4px;background:#49305a;color:#fff;font-size:12px;font-weight:700}.nightmare-shop-item footer button:disabled{border-color:#47505a;background:#28303a;color:#87909a}.nightmare-rank-name{flex:1;min-width:0;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nightmare-rank-name em{margin-left:5px;font-style:normal;font-size:11px;font-weight:700;color:#d9bd83}.nightmare-rank-name em[data-class=cleric]{color:#79d8bf}.nightmare-rank-name em[data-class=gladiator]{color:#e29678}#nightmare-ranking p>span:last-child{flex:none;white-space:nowrap;text-align:right}
@media(max-width:600px){.nightmare-tabs{position:sticky;top:0;z-index:2;background:#102330;padding-bottom:5px}.nightmare-shop-head{align-items:flex-start;padding:8px}.nightmare-shop-head>strong{font-size:12px}.nightmare-shop-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.nightmare-shop-item{min-height:112px;padding:8px}.nightmare-shop-item strong{font-size:12px}.nightmare-shop-item footer{grid-template-columns:1fr}.nightmare-shop-item footer>small{text-align:left}.nightmare-shop-item footer button{grid-column:1}.nightmare-gem-choice{font-size:11px;padding-inline:4px}#nightmare-ranking p{display:grid;grid-template-columns:auto minmax(0,1fr);gap:3px 7px;align-items:center}#nightmare-ranking p>span:last-child{grid-column:2;text-align:left;color:#b8c5cc}.nightmare-rank-name{width:100%}}
/* v175 compact nightmare shop and single-row ranking */
.nightmare-shop-item{min-height:82px;padding:8px}.nightmare-shop-item>header,.nightmare-shop-meta{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0}.nightmare-shop-item>header strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nightmare-shop-item>header span{color:#d8b1ed;font-size:12px;white-space:nowrap}.nightmare-shop-meta{margin-top:4px}.nightmare-shop-meta small{min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nightmare-shop-meta small:last-child{text-align:right}.nightmare-shop-item footer{display:grid;grid-template-columns:minmax(0,1fr) 58px;align-items:center;gap:7px;margin-top:7px}.nightmare-shop-item footer>span{min-width:0}.nightmare-shop-item footer button{grid-column:auto;min-height:28px;margin:0;padding:3px 6px}.nightmare-gem-choice{height:28px;margin:0}.nightmare-ranking-head,#nightmare-ranking p{display:grid;grid-template-columns:34px 56px minmax(88px,1fr) 52px 62px 112px;align-items:center;gap:7px;min-width:0}.nightmare-ranking-head{padding:6px 5px;border:1px solid #40515d;border-bottom:0;border-radius:5px 5px 0 0;background:#152a35;color:#9fb0b9;font-size:10px;font-weight:700;text-align:left}.nightmare-ranking-head span:nth-last-child(-n+2){text-align:right}#nightmare-ranking{max-height:310px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border-radius:0 0 5px 5px}#nightmare-ranking p{margin:0}.nightmare-ranking-empty{display:block!important;padding:10px;text-align:center}
@media(max-width:600px){.nightmare-shop-item{min-height:78px;padding:7px}.nightmare-shop-item>header,.nightmare-shop-meta{gap:5px}.nightmare-shop-item>header strong{font-size:11.5px}.nightmare-shop-item>header span,.nightmare-shop-meta small{font-size:10px}.nightmare-shop-item footer{grid-template-columns:minmax(0,1fr) 48px;gap:5px;margin-top:5px}.nightmare-shop-item footer button{min-height:26px;font-size:10.5px}.nightmare-gem-choice{height:26px;font-size:10.5px}#nightmare-ranking{max-height:280px}#nightmare-ranking p{display:flex;gap:5px;padding:7px 4px;font-size:11px;white-space:nowrap}#nightmare-ranking p>b{width:28px}.nightmare-rank-name{width:auto}.nightmare-rank-name em{font-size:9.5px;margin-left:3px}#nightmare-ranking p>span:last-child{grid-column:auto;text-align:right;color:#b8c5cc;font-size:10.5px}}
.nightmare-entry-row{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:7px;align-items:stretch}.nightmare-entry-row>.gold-button{width:100%;margin:0}.nightmare-entry-row>#nightmare-daily-status{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;padding:6px 8px;border:1px solid #71578b;border-radius:5px;background:#241b32;text-align:center}.nightmare-entry-row>#nightmare-daily-status b{color:#e7c2ff;font-size:13px;line-height:1.25;white-space:nowrap}.nightmare-entry-row>#nightmare-daily-status small{margin-top:3px;color:#b8afc2;font-size:10px;line-height:1.2;white-space:nowrap}.nightmare-entry-row>#nightmare-daily-status[data-complete=true]{border-color:#59616b;background:#20242b}.nightmare-entry-row>#nightmare-daily-status[data-complete=true] b{color:#c3c9ce}.nightmare-rank-level{color:#d7dee2;white-space:nowrap}.nightmare-rank-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nightmare-rank-class{font-style:normal;font-size:11px;font-weight:700;text-align:left;color:#e5ba87;white-space:nowrap}.nightmare-rank-class[data-class=cleric]{color:#e7d79f}.nightmare-rank-class[data-class=gladiator]{color:#93c8d7}.nightmare-rank-power{color:#d7dee2;text-align:right;white-space:nowrap}.nightmare-rank-result{text-align:right;white-space:nowrap}
@media(max-width:600px){.nightmare-shop-item{min-height:78px;padding:7px}.nightmare-shop-item>header,.nightmare-shop-meta{gap:5px}.nightmare-shop-item>header strong{font-size:11.5px}.nightmare-shop-item>header span,.nightmare-shop-meta small{font-size:10px}.nightmare-shop-item footer{grid-template-columns:minmax(0,1fr) 48px;gap:5px;margin-top:5px}.nightmare-shop-item footer button{min-height:26px;font-size:10.5px}.nightmare-gem-choice{height:26px;font-size:10.5px}.nightmare-ranking-head,#nightmare-ranking p{display:grid;grid-template-columns:25px 39px minmax(42px,1fr) 35px 43px 82px;gap:3px;padding-left:3px;padding-right:3px;font-size:9px}.nightmare-ranking-head{padding-top:5px;padding-bottom:5px}#nightmare-ranking{max-height:280px}.nightmare-entry-row{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:5px}.nightmare-entry-row>#nightmare-daily-status{padding:5px 4px}.nightmare-entry-row>#nightmare-daily-status b{font-size:11px}.nightmare-entry-row>#nightmare-daily-status small{font-size:9px}.nightmare-rank-class,.nightmare-rank-level,.nightmare-rank-power,.nightmare-rank-result{font-size:9px}}
