:root{
  --fw160-bg:#05101b;--fw160-panel:#071a2a;--fw160-panel2:#0a2235;--fw160-gold:#d69a28;--fw160-gold2:#f2c45d;--fw160-line:#a76e18;--fw160-text:#f7edd8;--fw160-muted:#b7c5d3;--fw160-blue:#0b2840;
}
html{background:#030b13}
body.v161{margin:0;background:radial-gradient(circle at 50% -10%,#12304b 0,#06111d 46%,#030a12 100%);color:var(--fw160-text);font-family:Inter,Segoe UI,Arial,sans-serif;min-height:100vh}
body.v161::before,body.v161::after{content:"";position:fixed;z-index:4;top:70px;width:70px;height:180px;filter:drop-shadow(0 10px 14px #000a);pointer-events:none;clip-path:polygon(0 0,100% 0,100% 84%,50% 100%,0 84%)}
body.v161::before{left:18px;background:url('v160/alliance-banner.png') top center/contain no-repeat;border:0;box-shadow:none;clip-path:none}
body.v161::after{right:18px;background:url('v160/horde-banner.png') top center/contain no-repeat;border:0;box-shadow:none;clip-path:none}
body.v161 .fw-site-header{max-width:1500px;margin:0 auto;background:linear-gradient(#07131f,#050e17);border:1px solid #b57a1c;border-bottom-color:#d19b39;box-shadow:0 8px 26px #0008,inset 0 -1px 0 #f0bf5a26}
body.v161 .fw-site-header .fw-shell-inner{max-width:1400px;min-height:72px;padding:0 86px}
body.v161 .fw-site-header a.fw-wordmark{width:230px;height:58px}
body.v161 .fw-site-header .fw-main-nav{gap:12px}
body.v161 .fw-site-header .fw-main-nav a{padding:11px 18px;border:1px solid transparent;border-radius:7px;color:#f6efe1;font-weight:700;text-shadow:0 1px 2px #000}
body.v161 .fw-site-header .fw-main-nav a:hover{border-color:#8f611b;background:#15120a;color:#ffd779}
body.v161 .fw-site-header .fw-main-nav a[aria-current]{border-color:#c7922e;background:linear-gradient(#5a3a0a,#1b160d);color:#ffe5a5;box-shadow:0 0 18px #d39a2833,inset 0 0 0 1px #f2c35a24}
body.v161 .hero,body.v161 .fw-page-intro,body.v161 .gear-hero,body.v161 .atlas-heading{position:relative;overflow:hidden;max-width:1500px;margin:0 auto;border-left:1px solid #9b6417;border-right:1px solid #9b6417;border-bottom:1px solid #a76e18;background:#071522}
body.v161 .hero::before,body.v161 .fw-page-intro::before,body.v161 .gear-hero::before,body.v161 .atlas-heading::before{content:"";position:absolute;inset:0;background-position:center;background-size:cover;opacity:.55;filter:saturate(.92) contrast(1.06)}
body.v161 .hero::after,body.v161 .fw-page-intro::after,body.v161 .gear-hero::after,body.v161 .atlas-heading::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#07111df5 0%,#07111dd8 42%,#07111d66 76%,#07111d22),linear-gradient(0deg,#06111dc7 0%,transparent 58%);pointer-events:none}
body.v161.dungeons-page .hero::before{background-image:url('v160/dungeons-left.jpg'),url('v160/dungeons-right.jpg');background-position:left center,right center;background-size:42% 100%,48% 100%;background-repeat:no-repeat;opacity:.9}
body.v161.gear-page .gear-hero::before{background-image:url('v160/gear-scene.jpg');background-position:right center;background-size:auto 100%;background-repeat:no-repeat;opacity:.92}
body.v161.guides-page .fw-page-intro::before{background-image:url('v160/guides-scene.jpg');background-position:right center;background-size:auto 100%;background-repeat:no-repeat;opacity:.96}
body.v161.atlas-page .atlas-heading::before{background-image:url('v160/atlas-left.jpg'),url('v160/atlas-right.jpg');background-position:left center,right center;background-size:50% 100%,44% 100%;background-repeat:no-repeat;opacity:.92}
body.v161 .hero>.wrap,body.v161 .fw-page-intro>* ,body.v161 .gear-hero>*,body.v161 .atlas-heading>*{position:relative;z-index:2}
body.v161 .hero{padding:42px 0 38px}
body.v161 .hero .wrap{max-width:1400px;padding:0 86px}
body.v161 .eyebrow,body.v161 .fw-eyebrow,body.v161 .atlas-eyebrow{color:#f2b947!important;font-size:11px!important;font-weight:900!important;letter-spacing:.23em!important;text-transform:uppercase}
body.v161 h1,body.v161 h2,body.v161 h3{font-family:Cinzel,Georgia,serif;color:#f6d48c;text-shadow:0 2px 2px #000,0 0 16px #d8972722}
body.v161 h1{font-size:clamp(42px,5vw,70px);letter-spacing:-.02em;text-transform:uppercase;margin:8px 0 10px}
body.v161 .lead,body.v161 .fw-lead,body.v161 .gear-hero p,body.v161 .atlas-heading p{color:#f0eee7!important;max-width:680px;font-size:15px}
body.v161 main.wrap,body.v161 .gear-wrap,body.v161 .fw-container,body.v161 .atlas-main{max-width:1500px;margin:0 auto;border-left:1px solid #875914;border-right:1px solid #875914;background:linear-gradient(180deg,#06111c 0,#04101a 100%);padding-left:86px;padding-right:86px}
body.v161 main.wrap{padding-top:22px}
body.v161 .dungeon-filter-panel,body.v161 .character-panel,body.v161 .gear-panel,body.v161 .panel,body.v161 .mapwrap,body.v161 .fw-path-card{background:linear-gradient(180deg,#0a2234,#061725)!important;border:1px solid #b67818!important;box-shadow:inset 0 0 0 1px #e0ad4c18,0 7px 20px #0005!important;border-radius:7px!important}
body.v161 .dungeon-filter-panel{padding:16px 18px;margin:18px 0 20px}
body.v161 input,body.v161 select,body.v161 button.filter,body.v161 .gear-tabs button,body.v161 .faction-toggle button{background:#061522!important;border:1px solid #6d7e8f!important;color:#f7f2e8!important;border-radius:6px!important}
body.v161 .dungeon-filter-panel input:focus,body.v161 .dungeon-filter-panel select:focus,body.v161 select:focus{border-color:#d49a30!important;box-shadow:0 0 0 2px #d49a3026!important}
body.v161 .dungeon-result-line button,body.v161 .gear-tabs button[aria-selected=true],body.v161 .faction-toggle button[aria-pressed=true],body.v161 .gear-button,body.v161 .gear-actions a,body.v161 .gear-actions button{background:linear-gradient(#6d4508,#2a1a05)!important;border:1px solid #c88920!important;color:#ffe2a0!important;box-shadow:inset 0 0 0 1px #f5c86f1e}
body.v161 .grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
body.v161 .card{border:1px solid #b87918!important;border-radius:6px!important;background:#071a29!important;box-shadow:0 5px 18px #0007!important;overflow:hidden}
body.v161 .card:hover{transform:translateY(-2px);border-color:#efbd55!important;box-shadow:0 8px 24px #000a,0 0 20px #d5901d18!important}
body.v161 .card .art{aspect-ratio:16/8.3;height:auto!important;border-bottom:1px solid #8b5c16;background:#07121d}
body.v161 .card .art::after{background:linear-gradient(0deg,#07131fe8 0,transparent 62%)}
body.v161 .card .tag{border-color:#e2a83c!important;color:#ffd675!important;background:#060d14e8!important;font-weight:800}
body.v161 .card .content{padding:14px 15px 13px}
body.v161 .card .content h3{font-size:18px;margin:0 0 8px}
body.v161 .card .content h3 a{color:#f5d28a!important;text-decoration:none}
body.v161 .pill{border:1px solid #496175!important;background:#0c2031!important;color:#cbd8e5!important;border-radius:5px!important;padding:2px 7px!important;font-size:10px!important}
body.v161 .card .open{display:flex!important;justify-content:space-between;align-items:center;border-top:1px solid #466070;margin-top:13px;padding-top:10px;color:#ffcf69!important;font-size:11px;text-decoration:none}
body.v161 .catalog-status{font-size:10px}
body.v161 footer.fw-site-footer{max-width:1500px;margin:0 auto;border:1px solid #8f5d17;border-top-color:#bb7d1d;background:#050d15}
body.v161 .fw-site-footer .fw-footer-inner{max-width:1400px;padding:18px 86px}
/* Guides */
body.v161.guides-page .fw-container{padding-top:0}
body.v161.guides-page .fw-page-intro{padding:36px 86px 34px!important;min-height:210px;display:flex;flex-direction:column;justify-content:center}
body.v161.guides-page .fw-guide-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:18px 0 26px}
body.v161.guides-page .fw-guide-card{min-height:290px;padding:22px 18px;text-align:center;align-items:center}
body.v161.guides-page .fw-card-icon{width:68px;height:68px;margin:0 auto 16px;border:2px solid #c58a24!important;background:#040b12!important;border-radius:9px!important;overflow:hidden;box-shadow:0 0 0 3px #07131d,0 0 20px #e9ad2d20}
body.v161.guides-page .fw-card-icon img{width:100%;height:100%;object-fit:cover;display:block}
body.v161.guides-page .fw-guide-card h2{font-size:20px;margin:0 0 8px;color:#f6d48c}
body.v161.guides-page .fw-guide-card p{text-align:center;font-size:12px;color:#d6dee7;margin-bottom:18px}
body.v161.guides-page .fw-card-action{width:100%;justify-content:center;border:1px solid #a56d19;border-radius:6px;padding:9px 10px;background:linear-gradient(#3a2609,#171006);color:#ffd979!important}
body.v161.guides-page .fw-guide-note{border-top:1px solid #8b5c16;padding-bottom:30px}
/* Gear */
body.v161.gear-page .gear-wrap{width:auto;padding-top:0;padding-bottom:36px}
body.v161.gear-page .gear-hero{margin:0 -86px 22px;padding:34px 86px 30px;min-height:220px}
body.v161.gear-page .gear-hero h1{text-transform:uppercase;font-size:clamp(40px,4.6vw,64px)}
body.v161.gear-page .character-panel{grid-template-columns:1.2fr 1fr auto;padding:16px;margin:0 0 12px}
body.v161.gear-page .gear-tabs{margin:10px 0}
body.v161.gear-page .gear-panel{padding:18px;margin-top:10px}
body.v161.gear-page .gear-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
body.v161.gear-page .gear-card{border:1px solid #4f6577;background:#061522;border-radius:6px}
/* Atlas */
body.v161.atlas-page .atlas-main{padding-top:0;padding-bottom:28px}
body.v161.atlas-page .atlas-heading{margin:0 -86px 18px;padding:32px 86px 26px;min-height:190px;align-items:center}
body.v161.atlas-page .atlas-heading h1{text-transform:uppercase;margin:4px 0}
body.v161.atlas-page .layout{grid-template-columns:280px minmax(0,1fr);gap:14px}
body.v161.atlas-page .panel{padding:14px}
body.v161.atlas-page .mapwrap{border-width:2px!important}
body.v161.atlas-page .atlas-panel-heading,body.v161.atlas-page .atlas-map-heading{color:#f3cf83!important}
body.v161.atlas-page .nav-row,body.v161.atlas-page button,body.v161.atlas-page select{border-radius:5px!important}
body.v161.atlas-page .nav-row:hover{border-color:#d89a2b!important;background:#4b320c!important}
@media(max-width:1050px){body.v161::before,body.v161::after{display:none}body.v161 .fw-site-header .fw-shell-inner,body.v161 .hero .wrap,body.v161 main.wrap,body.v161 .gear-wrap,body.v161 .fw-container,body.v161 .atlas-main,body.v161 .fw-site-footer .fw-footer-inner{padding-left:28px;padding-right:28px}body.v161.gear-page .gear-hero,body.v161.atlas-page .atlas-heading{margin-left:-28px;margin-right:-28px;padding-left:28px;padding-right:28px}body.v161.guides-page .fw-page-intro{padding-left:28px!important;padding-right:28px!important}body.v161 .grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.v161.guides-page .fw-guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){body.v161 .fw-site-header .fw-shell-inner{padding:12px 16px}body.v161 .hero .wrap,body.v161 main.wrap,body.v161 .gear-wrap,body.v161 .fw-container,body.v161 .atlas-main,body.v161 .fw-site-footer .fw-footer-inner{padding-left:16px;padding-right:16px}body.v161.gear-page .gear-hero,body.v161.atlas-page .atlas-heading{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}body.v161.guides-page .fw-page-intro{padding-left:16px!important;padding-right:16px!important}body.v161 .grid,body.v161.guides-page .fw-guide-grid,body.v161.gear-page .gear-grid{grid-template-columns:1fr}body.v161.atlas-page .layout{grid-template-columns:1fr}}
/* v160 shared guide/detail pages */
body.v161 .fw-subbar{max-width:1500px;margin:0 auto;border-left:1px solid #8f5d17;border-right:1px solid #8f5d17;background:#06131f}
body.v161 .fw-guide-subnav{max-width:1400px;padding-left:86px;padding-right:86px}
body.v161 .wrap,body.v161 .legacy-page,body.v161 .professions-simple{max-width:1328px;margin-left:auto;margin-right:auto}
body.v161 .hero,body.v161 .route-hero,body.v161 .profession-intro,body.v161 .legacy-hero,body.v161 .dungeon-hero{border:1px solid #a76e18!important;background:#071522!important;box-shadow:0 8px 26px #0007!important;border-radius:0!important}
body.v161.class-guide-page .hero,body.v161.leveling-page .route-hero,body.v161.legacy-page-body .legacy-hero{background-image:linear-gradient(90deg,#07111df4,#07111da8 55%,#07111d40),url('v160/guides-scene.jpg')!important;background-position:center,right center!important;background-size:cover,auto 100%!important;background-repeat:no-repeat!important}
body.v161.professions-page .profession-intro{background-image:linear-gradient(90deg,#07111df4,#07111daa 55%,#07111d40),url('v160/gear-scene.jpg')!important;background-position:center,right center!important;background-size:cover,auto 100%!important;background-repeat:no-repeat!important;padding:28px!important}
body.v161.dungeon-detail-page .dungeon-hero{background-image:linear-gradient(90deg,#06111de6,#06111d70),url('v160/dungeons-left.jpg'),url('v160/dungeons-right.jpg')!important;background-position:center,left center,right center!important;background-size:cover,40% 100%,46% 100%!important;background-repeat:no-repeat!important}
body.v161 .button,body.v161 button.button,body.v161 .profession-tab,body.v161 .text-button,body.v161 .profession-text-button{border:1px solid #a76e18!important;background:linear-gradient(#3a2609,#171006)!important;color:#ffd979!important;border-radius:6px!important;box-shadow:inset 0 0 0 1px #f5c86f18!important}
body.v161 .button.gold,body.v161 .profession-tab[aria-selected=true],body.v161 .guide-tabs button[aria-selected=true],body.v161 .route-view-tabs button[aria-selected=true],body.v161 .talent-view-tabs button[aria-selected=true]{background:linear-gradient(#704909,#2d1b05)!important;border-color:#e1a83d!important;color:#ffeba9!important}
body.v161 .card,body.v161 .stats-panel,body.v161 .route-workspace,body.v161 .zone-plan,body.v161 .route-class-panel,body.v161 .legacy-card,body.v161 .legacy-recommender,body.v161 .legacy-plain,body.v161 .legacy-example,body.v161 .legacy-unlock,body.v161 .legacy-use,body.v161 .quest-prep,body.v161 .route-section,body.v161 .workspace,body.v161 .profession-picker-shell{background:linear-gradient(180deg,#0a2234,#061725)!important;border:1px solid #9a681b!important;box-shadow:inset 0 0 0 1px #f0c35a12,0 6px 18px #0005!important;border-radius:7px!important}
body.v161 .guide-tabs,body.v161 .route-view-tabs,body.v161 .talent-view-tabs,body.v161 .profession-tabs{border-color:#8b5c16!important}
body.v161 .guide-layout,body.v161 .stats-layout,body.v161 .route-layout{gap:16px}
body.v161 .field-label,body.v161 label{color:#d1dce5}
body.v161 input,body.v161 select,body.v161 textarea{background:#061522!important;border-color:#526b7d!important;color:#f5f1e8!important}
body.v161 .eyebrow,body.v161 .profession-eyebrow{color:#f1b94b!important;letter-spacing:.2em!important}
body.v161 .sources-section,body.v161 .profession-original,body.v161 .data-details{border-color:#76531d!important}
body.v161 .dungeon-hero h1,body.v161 .legacy-hero h1,body.v161 .profession-intro h1,body.v161 .route-hero h1{color:#f6d48c!important;text-shadow:0 2px 3px #000!important}
@media(max-width:1050px){body.v161 .fw-guide-subnav{padding-left:28px;padding-right:28px}}
@media(max-width:700px){body.v161 .fw-guide-subnav{padding-left:16px;padding-right:16px}}

/* ============================================================
   v161 - disciplined framed layout inspired by modern MMO sites.
   No full-viewport content. One centered shell across main pages.
   ============================================================ */
:root{
  --fw161-shell:1360px;
  --fw161-gutter:24px;
  --fw161-bg:#02070d;
  --fw161-panel:#071522;
  --fw161-panel2:#0a1d2d;
  --fw161-gold:#d9a13c;
  --fw161-gold-hi:#f1c867;
  --fw161-line:#8d5e18;
  --fw161-text:#f6ecd7;
  --fw161-muted:#b6c2ce;
}
html{background:var(--fw161-bg)!important}
body.v161{
  margin:0!important;
  background:
    radial-gradient(1200px 520px at 50% -120px,#13263a 0,#07111c 45%,#02070d 100%) fixed!important;
  color:var(--fw161-text)!important;
  min-height:100vh;
}
/* kill floating full-page banners from prior experiment */
body.v161::before,body.v161::after{display:none!important}
body.v161 .fw-site-header,
body.v161 .fw-site-footer,
body.v161 main.wrap,
body.v161 .gear-wrap,
body.v161 .fw-container,
body.v161 .atlas-main{
  width:min(var(--fw161-shell),calc(100% - (var(--fw161-gutter) * 2)))!important;
  max-width:var(--fw161-shell)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
}
body.v161 .fw-site-header{
  margin-top:14px!important;
  border:1px solid var(--fw161-line)!important;
  border-bottom-color:#bc7b1d!important;
  border-radius:10px 10px 0 0!important;
  overflow:hidden!important;
  box-shadow:0 16px 45px #0009!important;
}
body.v161 .fw-site-header .fw-shell-inner{
  width:100%!important;max-width:none!important;min-height:68px!important;
  padding:0 34px!important;
}
body.v161 .fw-site-header .fw-main-nav{gap:8px!important}
body.v161 .fw-site-header .fw-main-nav a{padding:10px 16px!important}
/* every page continues the exact same framed column */
body.v161 main.wrap,
body.v161 .gear-wrap,
body.v161 .fw-container,
body.v161 .atlas-main{
  border-left:1px solid var(--fw161-line)!important;
  border-right:1px solid var(--fw161-line)!important;
  background:linear-gradient(180deg,#06111b 0%,#040b12 100%)!important;
  padding-left:28px!important;
  padding-right:28px!important;
  overflow:hidden!important;
}
body.v161 .fw-site-footer{
  border:1px solid var(--fw161-line)!important;
  border-top-color:#a96f19!important;
  border-radius:0 0 10px 10px!important;
  margin-bottom:18px!important;
  overflow:hidden!important;
}
body.v161 .fw-site-footer .fw-footer-inner{max-width:none!important;padding:17px 28px!important}

/* HERO: contained scene, never full browser width */
body.v161 .hero,
body.v161 .fw-page-intro,
body.v161 .gear-hero,
body.v161 .atlas-heading{
  width:auto!important;max-width:none!important;
  margin:0 -28px 22px!important;
  border-left:0!important;border-right:0!important;
  border-top:0!important;border-bottom:1px solid var(--fw161-line)!important;
  min-height:220px!important;
  background:#071522!important;
}
body.v161 .hero .wrap{max-width:none!important;padding:0 34px!important}
body.v161 .hero::before,
body.v161 .fw-page-intro::before,
body.v161 .gear-hero::before,
body.v161 .atlas-heading::before{opacity:1!important}
body.v161 .hero::after,
body.v161 .fw-page-intro::after,
body.v161 .gear-hero::after,
body.v161 .atlas-heading::after{
  background:linear-gradient(90deg,#05101af7 0%,#05101ae5 38%,#05101a8e 62%,#05101a24 100%),linear-gradient(0deg,#06111d94,transparent 54%)!important;
}
body.v161 h1{font-size:clamp(38px,4vw,58px)!important;line-height:1.03!important;margin:8px 0 12px!important}
body.v161 .lead,body.v161 .fw-lead,body.v161 .gear-hero p,body.v161 .atlas-heading p{font-size:14px!important;line-height:1.7!important;max-width:620px!important}

/* MAIN PANEL SYSTEM */
body.v161 .dungeon-filter-panel,
body.v161 .character-panel,
body.v161 .gear-panel,
body.v161 .panel,
body.v161 .mapwrap,
body.v161 .fw-path-card{
  border:1px solid #9d6819!important;
  background:linear-gradient(180deg,#091d2d,#061521)!important;
  box-shadow:0 10px 24px #0006,inset 0 0 0 1px #f4c8650d!important;
  border-radius:8px!important;
}
body.v161 input,body.v161 select,body.v161 textarea,
body.v161 button.filter,body.v161 .gear-tabs button,body.v161 .faction-toggle button{
  min-height:40px!important;
  background:#05131f!important;
  border:1px solid #52697b!important;
  border-radius:6px!important;
  color:#f8f4ea!important;
}
body.v161 .gear-tabs button[aria-selected=true],
body.v161 .faction-toggle button[aria-pressed=true],
body.v161 .gear-actions a,body.v161 .gear-actions button,body.v161 .gear-button{
  background:linear-gradient(#6d470b,#2a1904)!important;
  border-color:#c88922!important;color:#ffe3a1!important;
}

/* GEAR - strict centered armory layout */
body.v161.gear-page .gear-wrap{
  padding-top:0!important;padding-bottom:28px!important;
}
body.v161.gear-page .gear-hero{
  margin-left:-28px!important;margin-right:-28px!important;
  padding:34px 36px 30px!important;
  min-height:240px!important;
}
body.v161.gear-page .gear-hero h1{font-size:clamp(38px,4vw,56px)!important;max-width:760px!important}
body.v161.gear-page .character-panel{
  margin:18px 0 12px!important;
  padding:16px 18px!important;
  grid-template-columns:minmax(360px,1.1fr) minmax(300px,.9fr) auto!important;
  gap:16px!important;
}
body.v161.gear-page .gear-tabs{margin:10px 0 12px!important}
body.v161.gear-page .gear-note{margin:0 0 12px!important;border:1px solid #31495c!important;border-left:3px solid var(--fw161-gold)!important;border-radius:6px!important}
body.v161.gear-page .gear-panel{padding:18px!important;margin:0 0 14px!important}
body.v161.gear-page .gear-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
body.v161.gear-page .gear-card{padding:12px!important;min-height:132px!important}

/* DUNGEONS - same shell + 4-column cards */
body.v161.dungeons-page .hero{padding:38px 0 34px!important;min-height:230px!important}
body.v161.dungeons-page .dungeon-filter-panel{margin:18px 0!important;padding:16px!important}
body.v161.dungeons-page .grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
body.v161.dungeons-page .card .content{padding:12px 13px!important}

/* GUIDES - clean library grid */
body.v161.guides-page .fw-container{padding-top:0!important;padding-bottom:26px!important}
body.v161.guides-page .fw-page-intro{padding:34px 36px 30px!important;min-height:230px!important}
body.v161.guides-page .fw-guide-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;padding:18px 0!important}
body.v161.guides-page .fw-guide-card{min-height:275px!important;padding:22px 18px!important}

/* ATLAS - fit inside same frame */
body.v161.atlas-page .atlas-main{padding-top:0!important;padding-bottom:26px!important}
body.v161.atlas-page .atlas-heading{padding:32px 36px 28px!important;min-height:220px!important}
body.v161.atlas-page .layout{grid-template-columns:260px minmax(0,1fr)!important;gap:12px!important}
body.v161.atlas-page .mapwrap{min-width:0!important;overflow:hidden!important}

/* responsive */
@media(max-width:1100px){
  :root{--fw161-gutter:14px}
  body.v161 .fw-site-header .fw-shell-inner{padding:0 20px!important}
  body.v161 main.wrap,body.v161 .gear-wrap,body.v161 .fw-container,body.v161 .atlas-main{padding-left:18px!important;padding-right:18px!important}
  body.v161 .hero,body.v161 .fw-page-intro,body.v161 .gear-hero,body.v161 .atlas-heading{margin-left:-18px!important;margin-right:-18px!important}
  body.v161.gear-page .gear-hero,body.v161.guides-page .fw-page-intro,body.v161.atlas-page .atlas-heading{padding-left:24px!important;padding-right:24px!important}
  body.v161.gear-page .character-panel{grid-template-columns:1fr!important}
  body.v161 .grid,body.v161.dungeons-page .grid,body.v161.guides-page .fw-guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.v161.gear-page .gear-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:680px){
  :root{--fw161-gutter:8px}
  body.v161 .fw-site-header{margin-top:6px!important}
  body.v161 .fw-site-header .fw-shell-inner{padding:10px 12px!important}
  body.v161 main.wrap,body.v161 .gear-wrap,body.v161 .fw-container,body.v161 .atlas-main{padding-left:12px!important;padding-right:12px!important}
  body.v161 .hero,body.v161 .fw-page-intro,body.v161 .gear-hero,body.v161 .atlas-heading{margin-left:-12px!important;margin-right:-12px!important}
  body.v161 .grid,body.v161.dungeons-page .grid,body.v161.guides-page .fw-guide-grid,body.v161.gear-page .gear-grid{grid-template-columns:1fr!important}
  body.v161.atlas-page .layout{grid-template-columns:1fr!important}
}
/* Dungeons hero is a top-level sibling of main, so explicitly constrain it to the shared frame. */
body.v161.dungeons-page .hero{
  width:min(var(--fw161-shell),calc(100% - (var(--fw161-gutter) * 2)))!important;
  max-width:var(--fw161-shell)!important;
  margin:0 auto!important;
  border-left:1px solid var(--fw161-line)!important;
  border-right:1px solid var(--fw161-line)!important;
  border-bottom:1px solid var(--fw161-line)!important;
  box-sizing:border-box!important;
}
body.v161.dungeons-page .hero .wrap{width:100%!important;max-width:none!important;padding:0 34px!important;box-sizing:border-box!important}
body.v161.dungeons-page main.wrap{border-top:0!important}
/* maintain a single framed silhouette across header -> hero -> main -> footer */
body.v161.dungeons-page .fw-site-header{border-radius:10px 10px 0 0!important}
body.v161.dungeons-page .fw-site-footer{border-radius:0 0 10px 10px!important}

/* v177 shared range affordance */
input[type="range"].fw-level-range,input[type="range"].fw-skill-range{width:100%;accent-color:#d99a2c;cursor:pointer}
.fw-inline-range{display:grid;grid-template-columns:minmax(160px,1fr) auto;gap:10px;align-items:center}.fw-inline-range output{min-width:42px;text-align:center;color:#f3cf67;font-weight:800}
