/* NYX V6.5.0: replaces the retired map/range controls with the approved V5 world UI. */
.r9-shell .r650-command{padding:8px 16px!important;gap:4px!important;min-height:118px}
.r9-shell .r650-grid{display:grid;grid-template-columns:minmax(0,1fr) 245px minmax(0,1fr);gap:13px;align-items:stretch;width:100%;min-width:0}
.r650-skills{min-width:0;display:grid;align-content:center;gap:7px;overflow:visible;max-height:none!important}
.r650-skill-row{display:grid;grid-template-columns:43px minmax(0,1fr);gap:6px;align-items:center;min-width:0}
.r650-group-label{color:#a8c1db;font-size:12px;font-weight:800}
.r650-slots{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;min-width:0}
.r9-shell .r650-skill-chip{display:grid;align-content:center;gap:1px;text-align:center;min-height:46px;min-width:0;padding:3px 3px;overflow:hidden;white-space:nowrap}
.r650-skill-chip strong{font-size:11px;text-overflow:ellipsis;overflow:hidden}
.r650-skill-chip span{font-size:9px;text-overflow:ellipsis;overflow:hidden}
.r650-empty-slot{display:grid;place-items:center;min-height:44px;background:#14243c;border:1px dashed #293e5e;border-radius:9px;color:#56708e}
.r650-world-center{display:grid;place-items:center;min-width:0}
.r9-shell .r650-world-button{height:104px;width:100%;font-size:23px;background:linear-gradient(140deg,#2d5580,#244467);border-color:#5377a0;border-radius:17px;box-shadow:0 10px 25px #031120a8}
.r650-combat{display:grid;grid-template-rows:1fr 1fr;align-items:center;gap:8px;min-width:0}
.r650-combat-main,.r650-combat-options{display:flex;align-items:center;gap:8px;min-width:0}
.r650-combat-main .r9-cta{min-height:54px;font-size:16px;padding:8px 18px}
.r650-combat-options .r9-cta{font-size:13px;min-height:38px;padding:7px 12px}
.r650-combat-options .r650-drops-button{margin-left:auto;white-space:nowrap}
.r650-difficulty-label{font-size:12px;color:#bdd3ea;white-space:nowrap}
.r650-combat-options select{background:#1d304e;color:#ebf4ff;border:1px solid #3c5576;border-radius:10px;padding:8px;max-width:130px;min-width:100px;min-height:38px}
.r9-shell .r9-exploration-state{color:#c9e0f7;font-size:12px;white-space:nowrap;flex:0 0 auto;font-variant-numeric:tabular-nums}
.r9-shell .r650-inline-float{padding:5px 9px;min-height:32px;font-size:12px;margin-left:auto;white-space:nowrap}
.r650-overlay{position:fixed;inset:0;background:#030913c9;display:grid;place-items:center;padding:14px;z-index:21000;backdrop-filter:blur(4px)}
.r650-overlay[hidden]{display:none!important}
.r650-dialog{width:min(1320px,100%);max-height:calc(100dvh - 32px);background:#101d34;border:1px solid #3c5779;border-radius:20px;overflow:hidden;box-shadow:0 26px 70px #000b;display:flex;flex-direction:column;color:#e5f0ff}
.r650-dialog-head{display:flex;align-items:center;gap:12px;background:#182b47;padding:15px 19px;border-bottom:1px solid #344d6b}
.r650-dialog-head h2{font-size:19px;margin:0}.r650-dialog-head small{font-size:12px;color:#a4bcd8}
.r650-map-switch{display:flex;margin-left:auto;gap:3px;background:#0b1a2c;border-radius:9px;padding:3px}
.r650-map-switch button{background:transparent;color:#b2c7e1;border:0;border-radius:7px;padding:7px 10px}
.r650-map-switch button[aria-pressed=true]{background:#2d5a91;color:#fff}
.r650-close{background:#293d5e;border:0;border-radius:10px;color:#fff;font-size:18px;width:37px;height:37px}
.r650-world-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;overflow:auto;min-height:0}
.r650-world-canvas{min-width:0;min-height:540px;padding:22px;background:radial-gradient(ellipse at 20% 25%,#3260575c,transparent 35%),radial-gradient(ellipse at 79% 75%,#74493746,transparent 35%),linear-gradient(145deg,#112939,#101e33);position:relative}
.r650-world-canvas.is-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;align-content:start;min-height:0}
.r650-map-node{border:1px solid #527294;border-radius:12px;background:#192e4ced;color:#e9f5ff;text-align:center;padding:9px 7px;display:grid;gap:4px;cursor:pointer}
.r650-world-canvas.is-nodes .r650-map-node{position:absolute;transform:translate(-50%,-50%);width:clamp(107px,15%,138px);min-height:75px;box-shadow:0 9px 17px #0008}
.r650-map-node:hover{background:#24476a;border-color:#94bfec}
.r650-map-node.chosen{border-color:#e8c37e;background:#424057}
.r650-map-node.current{box-shadow:0 0 0 2px #4cc9ad61,0 7px 17px #0015}
.r650-map-node.locked{opacity:.64}
.r650-map-node small{font-size:10px;color:#afc5dc}.r650-map-node strong{font-size:13px}.r650-map-node span{font-size:10px;color:#a9cce3}
.r650-world-details{min-width:0;padding:20px;background:#172944;border-left:1px solid #344b69;overflow:auto}
.r650-world-details h3{margin:0 0 5px;font-size:22px}.r650-world-details p{color:#b8c9df;font-size:12px;line-height:1.55}
.r650-detail-info{font-size:12px;color:#a4bfd8;margin:14px 0}.r650-world-details h4{margin:18px 0 9px;font-size:13px}
.r650-tier-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.r650-tier{color:#cfe1f7;background:#1e3554;border:1px solid #395575;padding:9px 6px;border-radius:9px;font-size:12px;cursor:pointer}
.r650-tier.selected{border-color:#e5bc74;background:#39435e}.r650-tier.locked{opacity:.58}
.r650-detail-progress{display:grid;gap:8px;margin:17px 0}
.r650-detail-progress strong{font-size:22px;color:#89dadd}
.r650-progress-track{height:10px;border-radius:99px;overflow:hidden;background:#36485e}.r650-progress-track i{display:block;height:100%;width:0;background:linear-gradient(90deg,#427fdd,#36c5b1)}
.r650-detail-progress span{font-size:12px;color:#bad0e6}
.r650-requirement{min-height:38px}
.r650-confirm{width:100%;padding:12px 10px;border:1px solid #5986e4;border-radius:11px;background:#3266df;color:#fff;font-size:14px;font-weight:800}
.r650-confirm:disabled{opacity:.45;cursor:not-allowed}
.r650-dialog-foot{padding:10px 16px;background:#111e34;border-top:1px solid #294462;color:#a9bed7;font-size:12px}
.r650-drops-dialog{width:min(1000px,100%)}.r650-drop-body{padding:19px;overflow:auto}
#r650DropMapInfo{font-size:17px;font-weight:800;margin-bottom:9px}#r650DropStatInfo{font-size:12px;color:#bcd2e9;line-height:1.7;margin-bottom:15px}
.r650-drop-table{width:100%;border-collapse:collapse;font-size:12px}.r650-drop-table th,.r650-drop-table td{border-bottom:1px solid #304b6a;text-align:left;padding:9px 7px}.r650-drop-table th{color:#9dc6ed}
@media(min-width:781px){.r9-shell{grid-template-rows:70px 124px 44px minmax(0,1fr) 76px!important}}
@media(max-width:1480px){.r9-shell .r650-grid{grid-template-columns:minmax(0,1fr) 205px minmax(0,1fr);gap:8px}.r650-world-button{font-size:18px!important}.r650-slots{gap:3px}.r650-combat-options{gap:5px}.r650-combat-options .r9-cta{font-size:11px;padding:5px 7px}.r650-combat-main .r9-cta{font-size:14px}}
@media(max-width:1080px){.r9-shell .r650-grid{grid-template-columns:1fr 1fr}.r650-world-center{grid-column:1;grid-row:1}.r650-combat{grid-column:2;grid-row:1}.r650-skills{grid-column:1/-1;grid-row:2}.r9-shell .r650-world-button{height:90px}.r650-world-layout{grid-template-columns:minmax(0,1fr) 290px}}
@media(max-width:780px){.r9-shell .r650-command{padding:7px!important}.r9-shell .r650-grid{grid-template-columns:1fr;gap:7px}.r650-world-center,.r650-combat,.r650-skills{grid-column:1;grid-row:auto}.r9-shell .r650-world-button{height:54px!important;font-size:16px!important}.r650-combat-main .r9-cta{min-height:37px}.r650-combat-options{flex-wrap:wrap}.r650-skill-row{grid-template-columns:36px minmax(0,1fr)}.r650-skill-chip strong{font-size:10px}.r9-shell .r650-skill-chip{min-height:39px}.r650-empty-slot{min-height:39px}.r9-shell .r9-status-strip{grid-template-columns:1fr 1fr}.r9-shell .r9-exploration-state{grid-column:1/-1}.r650-world-layout{display:block}.r650-world-canvas{min-height:380px}.r650-world-canvas.is-nodes .r650-map-node{width:clamp(70px,16%,97px);padding:4px;min-height:60px}.r650-map-node strong{font-size:10px}.r650-map-node span{font-size:9px}.r650-world-details{border-top:1px solid #344b69}.r650-dialog-head h2{font-size:16px}}

/* V6.5.0 mobile: the old 123px command strip cannot contain the new 2x6 skills,
   enlarged world map and combat controls. Keep the battlefield visible. */
@media(max-width:780px){
 .r9-shell{grid-template-rows:61px auto auto minmax(0,1fr) 61px!important}
 .r9-shell .r650-command{max-height:38dvh;overflow-y:auto;overflow-x:hidden}
 .r9-shell .r650-grid{gap:6px}
 .r650-combat{grid-template-rows:auto auto;gap:5px}
 .r650-world-canvas.is-list{grid-template-columns:1fr 1fr}
}

/* V7.1: large scrolling node atlas; keep existing dialog and right-hand panel. */
.r650-world-layout{overflow:hidden;height:min(69dvh,660px);flex:1}
.r710-world-scroll{overflow:auto;min-width:0;min-height:0;overscroll-behavior:contain;scrollbar-gutter:stable}
.r650-world-canvas.is-nodes{min-width:1000px;min-height:1160px;background:radial-gradient(ellipse at 12% 15%,#3260575c,transparent 30%),radial-gradient(ellipse at 80% 74%,#74493746,transparent 40%),linear-gradient(145deg,#112939,#101e33)}
.r650-world-canvas.is-list{min-height:max-content;overflow:visible}
.r650-world-canvas.is-nodes .r650-map-node{width:155px;max-width:none}
@media(max-width:1080px){.r650-world-layout{height:min(75dvh,680px)}}
@media(max-width:780px){.r650-world-layout{height:min(75dvh,660px);overflow:auto}.r710-world-scroll{height:390px;overflow:auto}.r650-world-canvas.is-nodes{min-width:900px;min-height:1040px}.r650-world-canvas.is-nodes .r650-map-node{width:125px;min-height:73px}.r650-world-details{max-height:390px;overflow:auto}}

/* V7.5.0-R2: grouped, authoritative map-loot preview; no client-side loot rolls. */
.r650-drops-dialog{height:min(770px,calc(100dvh - 28px));max-width:1080px}
.r650-drops-dialog .r650-drop-body{flex:1;min-height:0;overscroll-behavior:contain;scrollbar-gutter:stable}
.r750-drop-note{font-size:12px;line-height:1.6;color:#aac4df;background:#102640;border:1px solid #304f75;border-radius:9px;padding:9px 12px;margin:0 0 13px}
.r750-drop-note strong{color:#f2d18f}
.r750-drop-sections{display:grid;gap:14px}
.r750-drop-section{background:#0e1c32;border:1px solid #304765;border-radius:13px;padding:12px;min-width:0}
.r750-drop-title{margin:0 0 9px;font-size:14px;font-weight:800;color:#e9f2ff}
.r750-gear-groups{display:grid;gap:9px}
.r750-gear-group{border:1px solid #3a5476;border-radius:10px;background:#132840;overflow:hidden}
.r750-gear-summary{display:flex;gap:12px;flex-wrap:wrap;align-items:center;padding:11px 13px;cursor:pointer;list-style:none}
.r750-gear-summary::-webkit-details-marker{display:none}
.r750-gear-summary strong{font-size:13px}
.r750-gear-chance{color:#f7d083;font-weight:800;font-size:13px}
.r750-gear-count{margin-left:auto;color:#a9bfd7;font-size:11px}
.r750-gear-items{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:10px;border-top:1px solid #304b6a;max-height:380px;overflow:auto}
.r750-gear-item{display:flex;align-items:center;gap:9px;min-width:0;padding:8px;background:#1b3351;border:1px solid #315277;border-radius:9px}
.r750-gear-icon{display:grid;place-items:center;flex:0 0 38px;height:38px;background:#0c2036;border-radius:8px;font-size:20px}
.r750-gear-icon img{width:36px;height:36px;object-fit:contain}
.r750-gear-info{display:grid;gap:4px;min-width:0}
.r750-gear-info strong{overflow-wrap:anywhere;font-size:12px;line-height:1.35}
.r750-gear-info small{font-size:10px;color:#a4c2df}
.r750-drop-empty{color:#b1c4d8;font-size:12px;padding:8px}
@media(max-width:800px){.r750-gear-items{grid-template-columns:repeat(2,minmax(0,1fr))}.r650-drops-dialog{height:calc(100dvh - 20px)}.r650-drops-dialog .r650-drop-body{padding:11px}.r750-gear-summary{gap:7px}}
@media(max-width:430px){.r750-gear-items{grid-template-columns:1fr}.r650-drop-table{font-size:11px}}

/* Shortcut manager: fixed existing 6+6 HUD slots, no combat layout rewrite. */
.r9-shell .r650-skill-manage{border:1px dashed #67a9d6;background:#1b3652;color:#e6f3ff;cursor:pointer}
.nyx-shortcuts-backdrop[hidden]{display:none!important}
.nyx-shortcuts-backdrop{position:fixed;inset:0;z-index:9900;background:rgba(2,9,21,.78);display:grid;place-items:center;padding:14px}
.nyx-shortcuts-dialog{width:min(860px,98vw);max-height:min(770px,92vh);display:flex;flex-direction:column;background:#15263f;border:1px solid #477397;border-radius:14px;color:#e4efff;box-shadow:0 12px 50px #000a;overflow:hidden}
.nyx-shortcuts-dialog>header,.nyx-shortcuts-dialog>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 17px;background:#213858}
.nyx-shortcuts-dialog h2,.nyx-shortcuts-dialog h3,.nyx-shortcuts-dialog h4{margin:0}
.nyx-shortcuts-dialog>header h2{font-size:19px}.nyx-shortcuts-dialog button{cursor:pointer;color:inherit;border-radius:7px;border:1px solid #46678f;background:#213a59;padding:8px 9px}
.nyx-shortcuts-help{margin:10px 17px;font-size:12px;color:#bbcee5}
.nyx-shortcuts-body{padding:5px 17px 17px;overflow-y:auto;display:grid;gap:14px}
.nyx-shortcut-group{padding:12px;border:1px solid #344d6e;border-radius:10px}
.nyx-shortcut-group h3{font-size:15px;margin-bottom:9px}
.nyx-shortcuts-slots{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}
.nyx-shortcut-slot{display:flex;min-width:0;position:relative}.nyx-shortcut-slot>button:first-child{width:100%;min-height:48px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:23px}.nyx-shortcut-clear{position:absolute;right:3px;top:3px;padding:0 5px!important;color:#ffd1ce!important}
.nyx-shortcuts-options h4{font-size:12px;color:#b3c9e9;margin:12px 0 7px}
.nyx-shortcuts-options>div{display:flex;flex-wrap:wrap;gap:5px}.nyx-shortcuts-options button{font-size:12px}.nyx-shortcuts-options small{font-size:10px;color:#a6c6e5}
.nyx-shortcuts-dialog button.selected{border-color:#70c7ff;background:#275a88;box-shadow:inset 0 0 0 1px #63baff}
@media(max-width:650px){.nyx-shortcuts-slots{grid-template-columns:repeat(3,minmax(0,1fr))}.nyx-shortcuts-dialog>header h2{font-size:16px}.nyx-shortcuts-dialog>footer{font-size:11px}}
/* Content-box inherited by older themes must not push the modal off-screen. */
.nyx-shortcuts-dialog,.nyx-shortcuts-dialog *{box-sizing:border-box}
.nyx-shortcuts-dialog{max-width:100%;min-width:0}
.nyx-shortcuts-dialog{width:min(860px,calc(100vw - 28px))}

/* MAP2: author CSS must not override the hidden attribute. */
.r650-detail-progress[hidden],#r650WorldSelect[hidden]{display:none!important}
#r650WorldSelect{background:#1b344d;color:#e1eafa;border:1px solid #45637f;border-radius:6px;padding:5px 9px;margin-top:6px;max-width:100%}

/* RECONNECT-R2: keep the six attack slot positions; auto switch is independent. */
.nyx-shortcut-slot:has([data-shortcut-auto]){flex-direction:column;gap:3px}.nyx-shortcut-slot>[data-shortcut-auto]{width:100%;min-height:28px}.nyx-shortcuts-options button[data-shortcut-auto]{min-width:42px}
