
:root{--bg:#080c14;--panel:#111827;--panel2:#182234;--line:#29364c;--text:#eef3fb;--muted:#94a3b8;--gold:#facc15;--gold2:#eab308}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:radial-gradient(circle at 50% -20%,#1a2942 0,#0b111d 38%,var(--bg) 72%);color:var(--text);font-family:Inter,Segoe UI,Arial,sans-serif}
body:before{content:"";position:fixed;inset:0;pointer-events:none;background:linear-gradient(115deg,rgba(255,255,255,.018),transparent 30%,rgba(250,204,21,.018) 70%,transparent)}
.topbar{height:68px;position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:32px;padding:0 34px;background:rgba(8,12,20,.91);backdrop-filter:blur(18px);border-bottom:1px solid #202b3d}
.brand{display:flex;align-items:center;gap:5px;text-decoration:none;color:#fff;font-weight:950;letter-spacing:.06em;font-size:20px}.brand-mark{color:var(--gold)}
nav{display:flex;gap:8px;align-items:center;flex:1}nav a,nav span{color:#8fa0b8;text-decoration:none;padding:9px 12px;border-radius:10px;font-size:14px;font-weight:750}nav .active{color:#111;background:var(--gold)}
.status-dot{width:9px;height:9px;border-radius:50%;background:#22c55e;box-shadow:0 0 12px #22c55e}
#app{max-width:1500px;margin:auto;padding:34px 30px 70px}.page-head{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:20px}.page-head h1{margin:0;color:var(--gold);font-size:30px}.page-head p{margin:5px 0 0;color:var(--muted)}.count{padding:7px 12px;border:1px solid var(--line);border-radius:999px;background:var(--panel2);font-weight:800}
.toolbar{display:grid;grid-template-columns:minmax(240px,1fr) auto auto;gap:14px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:16px;background:rgba(17,24,39,.84);margin-bottom:22px}.search{height:44px;border:1px solid #334155;background:#0b1220;color:#fff;border-radius:12px;padding:0 14px;outline:none;font-size:15px}.search:focus{border-color:var(--gold)}
.filters{display:flex;gap:7px;flex-wrap:wrap}.filter{height:38px;min-width:38px;border:1px solid #334155;background:#111b2c;color:#cbd5e1;border-radius:10px;padding:0 10px;font-weight:800;cursor:pointer}.filter img{width:22px;height:22px;object-fit:contain;vertical-align:middle}.filter.on{border-color:var(--gold);box-shadow:0 0 0 1px rgba(250,204,21,.35);background:#292515}.reset{color:#fca5a5}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:16px}.card{position:relative;min-height:292px;overflow:hidden;border-radius:17px;border:1px solid #26354a;background:linear-gradient(180deg,#162033,#0d1421);cursor:pointer;transition:.18s transform,.18s border-color,.18s box-shadow}.card:hover{transform:translateY(-3px);border-color:#52647f;box-shadow:0 14px 35px rgba(0,0,0,.28)}.portrait{height:210px;position:relative;background:radial-gradient(circle at 50% 30%,#263954,#0c1320 70%);overflow:hidden}.portrait img{width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 12px 14px rgba(0,0,0,.45))}.portrait .fallback{display:grid;place-items:center;height:100%;font-size:54px;font-weight:950;color:#3b4b64}.element{position:absolute;top:10px;left:10px;width:34px;height:34px;border-radius:10px;background:rgba(5,10,18,.82);border:1px solid #40506a;padding:5px}.element img{width:100%;height:100%}.rarity{position:absolute;top:12px;right:12px;font-weight:950;color:var(--gold);text-shadow:0 2px 8px #000}.card-info{padding:12px 13px 14px}.name{font-size:16px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.meta{display:flex;gap:7px;flex-wrap:wrap;margin-top:7px}.pill{font-size:11px;font-weight:800;color:#b8c5d8;border:1px solid #334155;background:#111a28;border-radius:999px;padding:4px 7px}
.empty,.loading{padding:50px;text-align:center;color:var(--muted)}
.detail-back{display:inline-flex;color:#cbd5e1;text-decoration:none;margin-bottom:18px}.hero{display:grid;grid-template-columns:minmax(280px,420px) 1fr;gap:24px}.hero-img,.detail-panel{border:1px solid var(--line);background:rgba(17,24,39,.86);border-radius:20px;overflow:hidden}.hero-img{min-height:520px;display:flex;align-items:flex-end;justify-content:center;background:radial-gradient(circle at 50% 28%,#263954,#0c1320 70%)}.hero-img img{width:100%;max-height:560px;object-fit:contain;object-position:center bottom}.detail-panel{padding:25px}.detail-title{display:flex;gap:14px;align-items:center}.detail-title h1{margin:0;color:var(--gold);font-size:34px}.detail-title img{width:44px;height:44px}.facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:24px}.fact{padding:12px;border:1px solid #29364a;border-radius:12px;background:#0d1522}.fact b{display:block;color:#7f91aa;font-size:11px;text-transform:uppercase;margin-bottom:5px}.skills{margin-top:20px}.skills h2{font-size:18px}.skill-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:10px}.skill-img{aspect-ratio:1;border:1px solid #334155;border-radius:12px;background:#0b1220;padding:5px}.skill-img img{width:100%;height:100%;object-fit:contain}.raw{margin-top:20px}.raw summary{cursor:pointer;color:#aab8cb}.raw pre{white-space:pre-wrap;word-break:break-word;background:#080d16;border:1px solid #26354a;border-radius:12px;padding:14px;max-height:500px;overflow:auto;color:#b8c5d8}
@media(max-width:800px){.topbar{padding:0 14px;gap:10px}nav span{display:none}#app{padding:22px 14px}.toolbar{grid-template-columns:1fr}.hero{grid-template-columns:1fr}.hero-img{min-height:390px}.facts{grid-template-columns:1fr}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.card{min-height:245px}.portrait{height:170px}}

/* 0.5.1 — old SLAHub-inspired Hunter tiles */
#app{max-width:1240px}
.page-head{margin-bottom:14px}.page-head h1{font-size:24px}.page-head p{font-size:13px;color:#d2d6df}
.view-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:0 0 10px}
.view-tab{height:38px;border-radius:10px;border:1px solid #334157;background:#111a2b;color:#dce2ed;font-weight:850;font-size:14px}
.view-tab.active{background:#ffd21a;color:#17130a;border-color:#ffd21a}
.view-tab.disabled{opacity:.72}
.toolbar{padding:10px;gap:10px;margin-bottom:14px;border-radius:13px;background:rgba(15,24,40,.76)}
.search{height:39px}.filter{height:35px;min-width:35px;padding:0 8px}.filter img{width:20px;height:20px}
.grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:10px}
.card.old-style-card{min-height:0;aspect-ratio:0.75;border-radius:14px;border:1px solid #794458;background:linear-gradient(145deg,#46293b 0%,#943743 50%,#bd3c42 100%);box-shadow:inset 0 0 35px rgba(255,255,255,.04);overflow:hidden}
.card.old-style-card:hover{transform:translateY(-3px) scale(1.012);border-color:#d46b75;box-shadow:0 12px 28px rgba(0,0,0,.34)}
.tile-art{position:absolute;inset:0;overflow:hidden;background:radial-gradient(circle at 55% 25%,rgba(255,255,255,.10),transparent 32%),linear-gradient(145deg,#442b40,#9d3845 57%,#c13d42)}
.tile-art>img{position:absolute;width:112%;height:106%;left:-6%;bottom:-2%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 8px 7px rgba(0,0,0,.28))}
.tile-art .fallback{height:100%;place-items:center;font-size:54px;font-weight:950;color:rgba(255,255,255,.18)}
.tile-badges{position:absolute;z-index:4;top:9px;left:9px;display:flex;flex-direction:column;gap:7px}
.tile-badge{display:grid;place-items:center;width:27px;height:27px;padding:4px;border-radius:7px;border:1px solid rgba(255,255,255,.34);background:rgba(12,18,28,.78);box-shadow:0 2px 6px rgba(0,0,0,.25)}
.tile-badge img{width:100%;height:100%;object-fit:contain}.role-badge{background:rgba(20,22,28,.83)}
.tile-shade{position:absolute;z-index:2;inset:auto 0 0;height:34%;background:linear-gradient(transparent,rgba(5,7,12,.72))}
.tile-name{position:absolute;z-index:5;left:9px;right:9px;bottom:8px;text-align:center;font-weight:950;font-size:14px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 2px 4px #000}
@media(min-width:1200px){.grid{grid-template-columns:repeat(7,1fr)}}
@media(max-width:800px){.view-tabs{grid-template-columns:1fr 1fr 1fr}.grid{grid-template-columns:repeat(3,minmax(0,1fr))}.tile-name{font-size:11px}.tile-badge{width:23px;height:23px}}
@media(max-width:520px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 0.5.2 rarity card colors */
.card.old-style-card.rarity-ssr,.card.old-style-card.rarity-ssr .tile-art{
 background:radial-gradient(circle at 52% 23%,rgba(255,255,255,.10),transparent 32%),linear-gradient(145deg,#442b40 0%,#963744 56%,#c23d43 100%);
 border-color:#794458;
}
.card.old-style-card.rarity-sr,.card.old-style-card.rarity-sr .tile-art{
 background:radial-gradient(circle at 52% 23%,rgba(255,255,255,.10),transparent 32%),linear-gradient(145deg,#332a52 0%,#593c86 55%,#7446a0 100%);
 border-color:#67528c;
}
.card.old-style-card.rarity-sr:hover{border-color:#9a7ac8}

/* 0.5.3 — wider no-sidebar layout + larger clean badges */
#app{
  max-width:1540px;
  padding-left:24px;
  padding-right:24px;
}
.grid{
  gap:11px;
}
@media(min-width:1200px){
  .grid{grid-template-columns:repeat(8,minmax(0,1fr))}
}
.card.old-style-card{
  aspect-ratio:.79;
}
.tile-art>img{
  width:128%;
  height:118%;
  left:-14%;
  bottom:-5%;
  object-fit:contain;
  object-position:center bottom;
}
.tile-badges{
  top:9px;
  left:9px;
  gap:6px;
}
.tile-badge{
  width:32px;
  height:32px;
  padding:1px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.tile-badge img{
  width:100%;
  height:100%;
  object-fit:contain;
  filter:drop-shadow(0 2px 3px rgba(0,0,0,.7));
}
.role-badge{
  background:transparent;
  border:0;
  box-shadow:none;
}
@media(max-width:800px){
  #app{padding-left:12px;padding-right:12px}
  .tile-badge{width:28px;height:28px}
  .tile-art>img{width:124%;height:115%;left:-12%}
}

/* 0.6.0 — empty artwork + long hunter names */
.tile-art .fallback{
  display:none !important;
}

/* Keep long names readable without making the tile taller. */
.tile-name{
  left:6px;
  right:6px;
  bottom:6px;
  width:auto;
  max-width:calc(100% - 12px);
  padding:0 2px;
  font-size:clamp(10px, .72vw, 13px);
  line-height:1.08;
  white-space:normal;
  overflow:hidden;
  text-overflow:clip;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
  text-align:center;
  overflow-wrap:anywhere;
  text-shadow:0 2px 4px rgba(0,0,0,.95);
}

/* Short names stay visually larger. */
.tile-name[data-short="1"]{
  font-size:13px;
  white-space:nowrap;
  display:block;
  text-overflow:ellipsis;
}

/* 0.6.1 — centered initial when hunter artwork is missing */
.tile-art .fallback{
  position:absolute;
  inset:0;
  display:grid !important;
  place-items:center;
  padding:0;
  font-size:64px;
  line-height:1;
  font-weight:800;
  color:rgba(255,255,255,.28);
  background:transparent;
  z-index:0;
  text-transform:uppercase;
  pointer-events:none;
}
.tile-art > img + .fallback{
  display:none !important;
}
.tile-art > img[style*="display: none"] + .fallback{
  display:grid !important;
}
.tile-badges,.tile-shade,.tile-name{
  z-index:2;
}

/* 0.6.4 Hunter detail */
.hero-img{position:relative}
.skin-switcher{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);display:flex;align-items:center;gap:10px;padding:6px 8px;border:1px solid #314052;border-radius:12px;background:rgba(7,12,20,.82);backdrop-filter:blur(8px);z-index:5}
.skin-switcher button{width:34px;height:30px;border:0;border-radius:8px;background:#1a2635;color:#fff;font-size:24px;line-height:1;cursor:pointer}
.skin-switcher button:hover{background:#26374b}
.skin-switcher span{min-width:48px;text-align:center;font-size:12px;font-weight:700;color:#c9d4e2}
.detail-section{margin-top:20px}
.detail-section h2{margin:0 0 10px;font-size:18px}
.detail-data-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.detail-data-card{display:flex;gap:12px;align-items:flex-start;padding:12px;border:1px solid #29384a;border-radius:12px;background:#0d1622;min-width:0}
.detail-data-icon{width:54px;height:54px;object-fit:contain;flex:0 0 54px;border:1px solid #314052;border-radius:10px;background:#09111c}
.detail-data-card b{font-size:14px}
.detail-data-card p{margin:5px 0 0;color:#b7c3d3;font-size:13px;line-height:1.45;white-space:pre-line}
.adv-badge{display:grid;place-items:center;min-width:42px;height:42px;padding:0 8px;border-radius:10px;background:#172438;color:#ffd21c;font-weight:800}
@media(max-width:900px){.detail-data-grid{grid-template-columns:1fr}}

/* 0.6.5 detail polish */
.hero-img{align-self:start}
.hero-img>img{display:block}
.skin-switcher-top{
  top:12px;
  bottom:auto;
  left:50%;
  transform:translateX(-50%);
  z-index:20;
  box-shadow:0 4px 18px rgba(0,0,0,.35);
}
.skin-switcher-top button{
  display:grid;
  place-items:center;
  width:38px;
  height:34px;
  padding:0;
  font-size:25px;
  font-weight:800;
}
.detail-data-card p span{font-weight:600}

/* 0.6.6 — overview ends after basic data; advancement left, skills right */
.hunter-overview{align-items:stretch}
.hunter-overview .detail-panel{align-self:stretch}
.hunter-detail-columns{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:20px;
  margin-top:20px;
}
.hunter-detail-column{
  min-width:0;
  padding:20px 22px;
  border:1px solid #29384a;
  border-radius:18px;
  background:#111b28;
}
.hunter-detail-column h2{margin:0 0 14px;font-size:20px}
.detail-data-grid.single-column{grid-template-columns:1fr}
.detail-empty{padding:18px;border:1px dashed #314052;border-radius:12px;color:#8292a6;text-align:center}
.skin-switcher-top{
  top:14px !important;
  left:50% !important;
  bottom:auto !important;
  transform:translateX(-50%) !important;
}
@media(max-width:900px){
  .hunter-detail-columns{grid-template-columns:1fr}
}

/* 0.6.7 exact skins + weapon + skill details */
.skill-details{margin-top:9px;padding-top:9px;border-top:1px solid #263648;color:#d5dfeb;font-size:12.5px;line-height:1.5}
.hunter-weapon-card{display:grid;grid-template-columns:190px minmax(0,1fr);gap:22px;margin-top:20px;padding:20px 22px;border:1px solid #29384a;border-radius:18px;background:#111b28}
.weapon-art{display:grid;place-items:center;min-height:180px;border:1px solid #29384a;border-radius:14px;background:#0b1420}
.weapon-art img{max-width:100%;max-height:210px;object-fit:contain}
.weapon-heading span{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#ffd21c;font-weight:800}
.weapon-heading h2{margin:4px 0 8px;font-size:22px}
.weapon-description{color:#bdc9d8;line-height:1.5}
.weapon-stats{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.weapon-stats>div{display:flex;gap:8px;padding:7px 10px;border:1px solid #2d3c4e;border-radius:9px;background:#0d1622}
.weapon-stats b{color:#8295aa;font-size:11px;text-transform:uppercase}
.weapon-effect{margin-top:14px;padding:12px;border:1px solid #2d3c4e;border-radius:11px;background:#0d1622}
.weapon-effect>b{color:#ffd21c}
.weapon-effect p{margin:6px 0 0;line-height:1.55;white-space:normal}
@media(max-width:760px){.hunter-weapon-card{grid-template-columns:1fr}.weapon-art{min-height:130px}}

/* 0.6.8 weapon layout/image fix */
.hunter-weapon-card{
  width:100%;
  box-sizing:border-box;
  grid-template-columns:minmax(260px,34%) minmax(0,1fr) !important;
  align-items:stretch;
}
.weapon-art{
  min-height:300px !important;
  padding:18px;
}
.weapon-art img{
  width:100%;
  height:100%;
  max-width:440px !important;
  max-height:320px !important;
  object-fit:contain;
}
.weapon-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
}
.weapon-description{
  max-width:none !important;
}
.weapon-stats{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  width:100%;
}
.weapon-stats>div{
  justify-content:space-between;
}
.weapon-effect{
  width:100%;
  box-sizing:border-box;
}
.weapon-effect p{
  max-width:none !important;
}
@media(max-width:850px){
 .hunter-weapon-card{grid-template-columns:1fr !important}
 .weapon-stats{grid-template-columns:1fr !important}
}

/* 0.6.9 — weapon artwork under hunter portrait */
.hunter-overview .hero-img{
  overflow:visible !important;
}
.hunter-weapon-under{
  margin-top:14px;
  width:100%;
  box-sizing:border-box;
  min-height:150px;
  padding:12px 14px 16px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  border:1px solid #29384a;
  border-radius:16px;
  background:#111b28;
}
.hunter-weapon-under-label{
  align-self:flex-start;
  margin-bottom:4px;
  color:#ffd21c;
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.hunter-weapon-under img{
  display:block;
  width:100%;
  max-width:310px;
  height:130px;
  object-fit:contain;
}
.hunter-weapon-card.weapon-info-only{
  grid-template-columns:1fr !important;
}
.weapon-info-only .weapon-copy{
  width:100%;
}

/* 0.7.0 — exact two-row profile/weapon layout */
.hunter-weapon-row{
  display:grid;
  grid-template-columns:365px minmax(0,1fr);
  gap:20px;
  margin-top:20px;
  align-items:stretch;
}
.hunter-weapon-art-cell{
  box-sizing:border-box;
  min-height:250px;
  padding:14px 18px 18px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  border:1px solid #29384a;
  border-radius:18px;
  background:#111b28;
}
.hunter-weapon-art-cell .hunter-weapon-under-label{
  align-self:flex-start;
  margin-bottom:8px;
}
.hunter-weapon-art-cell img{
  display:block;
  width:100%;
  height:210px;
  object-fit:contain;
}
.hunter-weapon-row .hunter-weapon-card{
  margin:0 !important;
  width:100%;
  min-width:0;
  box-sizing:border-box;
  grid-template-columns:1fr !important;
}
.hunter-weapon-row .weapon-copy{
  width:100%;
}
@media(max-width:1000px){
  .hunter-weapon-row{grid-template-columns:300px minmax(0,1fr)}
}
@media(max-width:760px){
  .hunter-weapon-row{grid-template-columns:1fr}
}

/* 0.7.1 — skin navigation around artwork, counter below */
.hunter-overview .hero-img{
  display:flex;
  flex-direction:column;
  overflow:hidden !important;
}
.portrait-stage{
  position:relative;
  flex:1 1 auto;
  min-height:0;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  overflow:hidden;
}
.portrait-stage>img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center bottom;
}
.portrait-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:12;
  display:grid;
  place-items:center;
  width:40px;
  height:48px;
  padding:0;
  border:1px solid #3a4a5e;
  border-radius:11px;
  background:rgba(9,17,28,.82);
  color:#fff;
  font-size:30px;
  line-height:1;
  cursor:pointer;
  backdrop-filter:blur(7px);
}
.portrait-arrow:hover{background:rgba(28,43,61,.94)}
.portrait-arrow-left{left:12px}
.portrait-arrow-right{right:12px}
.portrait-counter{
  flex:0 0 auto;
  padding:8px 0 10px;
  text-align:center;
  color:#c9d4e2;
  font-size:12px;
  font-weight:800;
  background:#0d1724;
  border-top:1px solid #29384a;
}
/* obsolete overlay control from older builds */
.skin-switcher-top{display:none !important}
/* weapon art does not need a duplicate EXCLUSIVE WEAPON label */
.hunter-weapon-art-cell{padding-top:18px}

/* 0.7.2 image sizing + lightbox */
.hunter-weapon-art-cell img{
  height:235px !important;
  max-width:92%;
}
.portrait-counter{
  width:100%;
  box-sizing:border-box;
  padding:8px 0 10px !important;
  text-align:center !important;
}
.zoomable-image{cursor:zoom-in}
.image-lightbox{
  position:fixed;
  inset:0;
  z-index:99999;
  display:grid;
  place-items:center;
  padding:28px;
  background:rgba(2,6,12,.88);
  backdrop-filter:blur(8px);
}
.lightbox-dialog{
  position:relative;
  width:min(1100px,94vw);
  height:min(850px,90vh);
  display:flex;
  flex-direction:column;
  border:1px solid #33455a;
  border-radius:18px;
  background:#0b1420;
  box-shadow:0 24px 80px rgba(0,0,0,.55);
  overflow:hidden;
}
.lightbox-stage{
  position:relative;
  flex:1;
  min-height:0;
  display:grid;
  place-items:center;
  padding:24px 70px;
}
.lightbox-image{
  display:block;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}
.lightbox-close{
  position:absolute;
  top:12px;
  right:14px;
  z-index:4;
  width:40px;
  height:40px;
  border:1px solid #3a4a5e;
  border-radius:10px;
  background:#111d2b;
  color:#fff;
  font-size:27px;
  cursor:pointer;
}
.lightbox-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:3;
  width:46px;
  height:58px;
  border:1px solid #3a4a5e;
  border-radius:12px;
  background:rgba(15,27,41,.88);
  color:#fff;
  font-size:34px;
  cursor:pointer;
}
.lightbox-prev{left:14px}
.lightbox-next{right:14px}
.lightbox-footer{
  flex:0 0 auto;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  padding:12px 18px;
  border-top:1px solid #29384a;
  background:#0e1926;
}
.lightbox-counter{
  grid-column:2;
  color:#cbd6e4;
  font-size:13px;
  font-weight:800;
}
.lightbox-download{
  grid-column:3;
  justify-self:end;
  padding:8px 13px;
  border:1px solid #3b4d62;
  border-radius:9px;
  color:#fff;
  text-decoration:none;
  font-size:12px;
  font-weight:800;
}
.lightbox-download:hover{background:#19283a}
@media(max-width:650px){
 .image-lightbox{padding:8px}
 .lightbox-stage{padding:18px 48px}
 .lightbox-dialog{width:98vw;height:94vh}
}

/* 0.7.3 — requested image/layout polish */

/* Larger weapon artwork in its normal card */
.hunter-weapon-art-cell img{
  height:300px !important;
  max-width:96% !important;
}

/* Hunter artwork centered vertically instead of anchored to bottom */
.portrait-stage{
  align-items:center !important;
}
.portrait-stage>img{
  object-position:center center !important;
}

/* Counter remains centered, but no visible separator line */
.portrait-counter{
  border-top:0 !important;
  background:transparent !important;
}

/* Lightbox: never let artwork escape/crop outside the visible stage */
.lightbox-stage{
  overflow:hidden !important;
  box-sizing:border-box;
}
.lightbox-image{
  width:auto !important;
  height:auto !important;
  max-width:100% !important;
  max-height:calc(90vh - 115px) !important;
  object-fit:contain !important;
}

/* Weapon image also gets safe breathing room in the lightbox */
.lightbox-dialog{
  box-sizing:border-box;
}

/* 0.7.4 — guild icon + real image download */
.fact-value{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:22px;
}
.guild-icon{
  width:26px;
  height:26px;
  flex:0 0 26px;
  object-fit:contain;
}
.lightbox-download{
  font-family:inherit;
  cursor:pointer;
  background:transparent;
}
.lightbox-download:disabled{
  opacity:.55;
  cursor:wait;
}

/* 0.7.5 guild mapping */
.guild-icon{
  width:30px !important;
  height:30px !important;
  flex-basis:30px !important;
}

/* 0.7.7 — skill values and advancement buff blocks */
.skill-number{color:#FAC800 !important;}
.buff-title{
  margin-top:14px;
  margin-bottom:8px;
  font-weight:800;
}
.adv-buff-line{
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  align-items:center;
  gap:10px;
  margin:7px 0 7px 18px;
}
.adv-buff-line img{
  width:30px;
  height:30px;
  object-fit:contain;
  justify-self:center;
}
.adv-buff-line span{min-width:0;}

/* 0.7.8 — game-like advancement buff layout */
.advancement-rich{min-width:0;}
.adv-buff-block{
  display:grid !important;
  grid-template-columns:44px minmax(0,1fr) !important;
  align-items:center !important;
  column-gap:10px !important;
  margin:4px 0 12px 16px !important;
  width:auto !important;
}
.adv-buff-icon{
  width:38px !important;
  height:38px !important;
  object-fit:contain !important;
  justify-self:center !important;
}
.adv-buff-text{
  min-width:0 !important;
  width:auto !important;
  line-height:1.45 !important;
}
.buff-title{
  margin:12px 0 3px 16px !important;
}

/* 0.7.9 — extractor-provided structured BuffIcon effects */
.structured-buff-effect{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  align-items:center;
  gap:10px;
  margin:10px 0 12px 16px;
}
.structured-buff-icon{
  width:38px;
  height:38px;
  object-fit:contain;
  justify-self:center;
}
.structured-buff-copy{min-width:0;}
.structured-buff-name{
  color:#64FAC8;
  font-weight:800;
  margin-bottom:3px;
}
.structured-buff-description{line-height:1.45;}
.effect-main-text{line-height:1.45;}

/* 0.7.11 expanded hunter detail */
.detail-wide-section{margin-top:20px;padding:20px 22px;border:1px solid #29384a;border-radius:18px;background:#111b28}
.detail-wide-section>h2{margin:0 0 14px;font-size:20px}
.battle-tip>div{line-height:1.55;color:#d5dfeb}
.current-skin-info{padding:15px 16px;border:1px solid #29384a;border-radius:13px;background:#0d1622}
.skin-info-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.skin-info-head h3{margin:3px 0 0;font-size:18px}.skin-kicker{font-size:11px;color:#8292a6;text-transform:uppercase;letter-spacing:.08em}.skin-meta{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.skin-rarity,.skin-status{padding:4px 8px;border:1px solid #35465a;border-radius:999px;font-size:11px;font-weight:800}.skin-rarity{color:#ffd21c}.skin-status{color:#b7c3d3}.skin-status.localization{color:#64fac8}.skin-description{margin-top:11px;line-height:1.5;color:#c7d2df;white-space:normal}.skin-parent,.skin-last-seen{margin-top:7px;color:#8292a6;font-size:12px}.detected-skins{margin-top:16px}.detected-skins>h3{margin:0 0 9px;font-size:14px;color:#aebccd}.detected-skin-card{display:grid;grid-template-columns:76px minmax(0,1fr);gap:14px;padding:12px;border:1px dashed #3a4c61;border-radius:13px;background:#0b1420}.detected-skin-card+.detected-skin-card{margin-top:9px}.unknown-skin-art{display:grid;place-items:center;min-height:76px;border:1px solid #314052;border-radius:11px;font-size:32px;font-weight:900;color:#6f8299;background:#09111c}
.collapsible-detail>summary,.story-section>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;font-size:20px;font-weight:800}.collapsible-detail>summary::-webkit-details-marker,.story-section>summary::-webkit-details-marker{display:none}.collapsible-detail[open]>summary{margin-bottom:14px}.collapse-chevron{transition:transform .18s;color:#8292a6}.collapsible-detail:not([open]) .collapse-chevron{transform:rotate(-90deg)}.collapse-hint{font-size:12px;font-weight:700;color:#8292a6}.story-section[open]>summary{margin-bottom:14px}.story-list{display:grid;gap:10px}.story-card{padding:14px;border:1px solid #29384a;border-radius:12px;background:#0d1622}.story-head{display:flex;justify-content:space-between;gap:12px;align-items:start}.story-head h3{margin:0;font-size:15px}.story-head span{font-size:11px;color:#8292a6}.story-card p{margin:9px 0 0;line-height:1.5;color:#c7d2df}.profile-summary{margin:0 0 14px;line-height:1.55;color:#c7d2df}.profile-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
@media(max-width:900px){.profile-facts{grid-template-columns:1fr}.skin-info-head,.story-head{flex-direction:column}.skin-meta{justify-content:flex-start}}

/* 0.7.12 — skin name/rarity/description inside image lightbox */
.lightbox-skin-info{
  padding:12px 18px 8px;
  border-top:1px solid rgba(255,255,255,.08);
  max-height:180px;
  overflow:auto;
}
.lightbox-skin-info[hidden]{display:none;}
.lightbox-skin-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
}
.lightbox-skin-head h3{
  margin:2px 0 0;
  font-size:18px;
}
.lightbox-skin-info .skin-description{
  margin-top:8px;
  line-height:1.45;
}
.lightbox-skin-info .skin-last-seen{
  margin-top:7px;
  opacity:.72;
  font-size:12px;
}

/* 0.7.13 — skin info position, synchronized selector, independent collapses */
.skin-info-row{
  display:grid;
  grid-template-columns:minmax(0,317px) minmax(0,1fr);
  gap:16px;
  margin:10px 0 16px;
}
.skin-info-row .current-skin-info{
  margin:0;
  padding:14px 16px;
  border:1px solid var(--line,#26384a);
  border-radius:14px;
  background:var(--panel,#101b27);
}
.skin-info-spacer{min-width:0;}
.detected-skins-section{margin-top:12px;}
.detected-skins-section .detected-skin-card .skin-last-seen{display:none!important;}
.detected-skins-section .detected-skin-card .skin-status.localization{display:none!important;}
.independent-collapse{align-items:start!important;}
.hunter-detail-column-shell{min-width:0;width:100%;align-self:start;}
.hunter-detail-column-shell>.hunter-detail-column{width:100%;box-sizing:border-box;}
/* Keep metadata visible without having to scroll far inside the enlarged image. */
.image-lightbox .lightbox-stage{max-height:calc(82vh - 190px)!important;}
.image-lightbox .lightbox-image{max-height:calc(82vh - 205px)!important;}
.image-lightbox .lightbox-skin-info{max-height:210px!important;}

/* 0.7.14 — skin info row mirrors overview columns exactly */
.skin-info-row{
  grid-template-columns:minmax(0,317px) minmax(0,1fr)!important;
  align-items:stretch!important;
}
.skin-info-row>.current-skin-info{
  width:100%!important;
  box-sizing:border-box!important;
}
.skin-info-row>.skin-side-detail{
  width:100%!important;
  margin:0!important;
  box-sizing:border-box!important;
}
.portrait-missing-art{
  width:100%;
  height:100%;
  min-height:300px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:72px;
  font-weight:800;
  opacity:.45;
  user-select:none;
}

/* 0.7.15 — skin info/profile row uses the same columns as hero/overview */
.hunter-overview{
  grid-template-columns:365px minmax(0,1fr)!important;
}
.skin-info-row{
  grid-template-columns:365px minmax(0,1fr)!important;
  gap:20px!important;
}
.skin-info-row>.current-skin-info{
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
.skin-info-row>.detail-wide-section{
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  box-sizing:border-box!important;
}
.skin-info-row .profile-summary{
  margin-top:0;
}
@media(max-width:1000px){
  .hunter-overview,
  .skin-info-row{
    grid-template-columns:300px minmax(0,1fr)!important;
  }
}
@media(max-width:760px){
  .hunter-overview,
  .skin-info-row{
    grid-template-columns:1fr!important;
  }
}

/* 0.7.16 — restore original hero width; only widen currentSkinInfo */
.hunter-overview{
  grid-template-columns:minmax(280px,420px) minmax(0,1fr)!important;
}
.skin-info-row{
  grid-template-columns:minmax(280px,420px) minmax(0,1fr)!important;
  gap:24px!important;
}
@media(max-width:1000px){
  .hunter-overview,
  .skin-info-row{
    grid-template-columns:minmax(280px,420px) minmax(0,1fr)!important;
  }
}
@media(max-width:800px){
  .hunter-overview,
  .skin-info-row{
    grid-template-columns:1fr!important;
  }
}

/* 0.7.17 — missing-art skin must still fill the normal hero portrait area */
.portrait-stage:has(.portrait-missing-art:not([style*="display: none"])){
  position:relative!important;
}
.portrait-missing-art{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  font-size:72px!important;
  font-weight:800!important;
  line-height:1!important;
  opacity:.55!important;
  user-select:none!important;
  pointer-events:none!important;
}
/* Keep selector controls/counter above the placeholder. */
.portrait-stage .portrait-arrow{z-index:3!important;}
.portrait-counter{position:relative!important;z-index:3!important;}

/* 0.7.18 — deterministic missing skin placeholder */
.portrait-stage{
  position:relative!important;
}
.portrait-stage #hunterPortrait.is-hidden{
  display:none!important;
}
.portrait-missing-art{
  position:absolute!important;
  inset:0!important;
  z-index:2!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:100%!important;
  font-size:76px!important;
  font-weight:800!important;
  line-height:1!important;
  opacity:.55!important;
  pointer-events:none!important;
}
.portrait-missing-art.is-hidden{
  display:none!important;
}
.portrait-stage .portrait-arrow{
  z-index:4!important;
}
.portrait-counter{
  position:relative!important;
  z-index:4!important;
}

/* 0.7.19 — portrait-stage was collapsing to 0px width when the image was hidden.
   Make the stage fill the 420px hero column so placeholder and arrows have a real containing block. */
.hero-img .portrait-stage{
  position:relative!important;
  width:100%!important;
  min-width:100%!important;
  max-width:100%!important;
  height:auto!important;
  min-height:0!important;
  flex:1 1 auto!important;
  align-self:stretch!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
.hero-img .portrait-stage #hunterPortrait{
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  object-fit:contain!important;
  object-position:center center!important;
}
.hero-img .portrait-stage #hunterPortrait.is-hidden{
  display:none!important;
}
.hero-img .portrait-stage .portrait-missing-art{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  z-index:2!important;
  font-size:76px!important;
  font-weight:800!important;
  line-height:1!important;
  opacity:.55!important;
}
.hero-img .portrait-stage .portrait-missing-art.is-hidden{
  display:none!important;
}
.hero-img .portrait-stage .portrait-arrow-left{
  left:12px!important;
}
.hero-img .portrait-stage .portrait-arrow-right{
  right:12px!important;
}

/* 0.7.20 — requested detail polish */
.structured-buff-effect{
  margin:0!important;
}

/* Skill title/name */
.skills-section .skill-card h3,
.skills-section .skill-card h4,
.skills-section .skill-name,
[data-section="skills"] .skill-name,
#skillsSection .skill-name,
.skill-card .skill-title{
  font-size:18px!important;
  line-height:1.25!important;
}

/* Paired collapsed state: support the current section wrappers. */
.advancement-section.is-collapsed .section-content,
.skills-section.is-collapsed .section-content,
[data-section="advancement"].is-collapsed .section-content,
[data-section="skills"].is-collapsed .section-content,
#advancementSection.is-collapsed .section-content,
#skillsSection.is-collapsed .section-content{
  display:none!important;
}

/* Mobile order:
   skin portrait -> hunter overview/name -> skin description -> Profile -> Battle Tip
   -> weapon image -> weapon description -> Advancement -> Skills -> Character Story.
   Existing DOM is retained; CSS order only changes narrow screens. */
@media (max-width: 760px){
  .hunter-overview{
    display:grid!important;
    grid-template-columns:1fr!important;
  }
  .hunter-overview > .hero-img{order:1!important;}
  .hunter-overview > .overview-panel{order:2!important;}

  .skin-info-row{
    display:grid!important;
    grid-template-columns:1fr!important;
  }
  .skin-info-row > #currentSkinInfo,
  .skin-info-row > .current-skin-info{order:1!important;}
  .skin-info-row > .detail-wide-section,
  .skin-info-row > .profile-panel{order:2!important;}
}

/* 0.7.21 */
.detail-data-card b{
  font-size:18px!important;
}


/* 0.8.3 — Hunter Weapon rarity palette */
.card.old-style-card.rarity-r,.card.old-style-card.rarity-r .tile-art{
 background:radial-gradient(circle at 52% 23%,rgba(255,255,255,.10),transparent 32%),linear-gradient(145deg,#183957 0%,#245d91 55%,#2f7fc0 100%);
 border-color:#356f9f;
}
.card.old-style-card.rarity-r:hover{border-color:#66a9dd}

/* SSR weapon owned by an SR Hunter: SSR red with a subtle violet tint. */
.card.old-style-card.rarity-ssr-hunter-sr,.card.old-style-card.rarity-ssr-hunter-sr .tile-art{
 background:radial-gradient(circle at 52% 23%,rgba(255,255,255,.10),transparent 32%),linear-gradient(145deg,#4b294b 0%,#8d3854 55%,#b83e50 100%);
 border-color:#82506f;
}
.card.old-style-card.rarity-ssr-hunter-sr:hover{border-color:#b56e99}


/* 0.8.12 — Hunter Weapon Advancement uses the same real <details> collapse behavior as Hunter detail. */
.weapon-advancement-detail > summary{
  cursor:pointer;
  user-select:none;
}
.weapon-advancement-detail:not([open]) > :not(summary){
  display:none !important;
}
.weapon-advancement-detail > summary .collapse-chevron{
  display:inline-block;
  transition:transform .18s ease;
}
.weapon-advancement-detail[open] > summary .collapse-chevron{
  transform:rotate(180deg);
}

/* 0.8.13 — Hunter Weapon detail polish */
.weapon-detail-zoom{cursor:zoom-in}
.overview-panel .facts + .weapon-description{margin-top:22px}

/* 0.8.18 — clean lightbox spacing */
.image-lightbox .lightbox-stage{
  margin-bottom:36px;
}
.image-lightbox .weapon-lightbox-stage{
  margin-bottom:32px;
}
.image-lightbox .lightbox-arrow{
  top:50%;
  bottom:auto;
  transform:translateY(-50%);
}
.image-lightbox .lightbox-missing-art[hidden],
.image-lightbox .portrait-missing-art[hidden]{
  display:none !important;
}
.image-lightbox .lightbox-stage.missing-art-active .lightbox-image{
  display:none !important;
}


/* 0.8.19 — remove unused area below footer in BOTH lightboxes.
   Keep the requested stage margins (Hunter 36px / Weapon 22px), but do not force
   the whole dialog to 850px tall. */
.image-lightbox .lightbox-dialog{
  min-height:0 !important;
  height:auto !important;
}

/* Footer/info must size to content only. */
.image-lightbox .lightbox-skin-info,
.image-lightbox .lightbox-footer{
  flex:0 0 auto;
}


/* 0.8.21 — final small Hunter lightbox fixes */

/* When artwork is missing, keep the image area at normal artwork height.
   Do not let the stage collapse to the height of the ? placeholder. */
.image-lightbox .lightbox-stage.missing-art-active{
  min-height:min(520px, calc(82vh - 190px)) !important;
}
.image-lightbox .lightbox-stage.missing-art-active .lightbox-missing-art,
.image-lightbox .lightbox-stage.missing-art-active .portrait-missing-art{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  width:auto;
  height:auto;
  min-height:0;
  font-size:72px;
  line-height:1;
}

/* Center the arrow glyph itself, not only the button box.
   This removes the unequal visual top/bottom spacing caused by the text baseline. */
.image-lightbox .lightbox-arrow{
  display:grid;
  place-items:center;
  padding:0 !important;
  line-height:1 !important;
}


/* 0.8.22 */
.image-lightbox .lightbox-stage.missing-art-active{
  min-height:min(550px, calc(86vh - 190px)) !important;
}
.image-lightbox .lightbox-arrow{
  display:grid !important;
  place-items:center !important;
  padding:0 !important;
  line-height:0 !important;
}
.image-lightbox .lightbox-arrow svg{
  width:24px;
  height:24px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:2.5;
  stroke-linecap:round;
  stroke-linejoin:round;
}


/* 0.8.23 — Hunter main/closed skin viewer: SVG chevrons too */
.portrait-arrow{
  display:grid !important;
  place-items:center !important;
  padding:0 !important;
  line-height:0 !important;
}
.portrait-arrow svg{
  width:24px;
  height:24px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:2.5;
  stroke-linecap:round;
  stroke-linejoin:round;
}


/* 0.8.24 — full-width owner hunter row below Rarity / Max level */
.weapon-owner-row{
  margin-top:10px;
  width:100%;
  min-height:68px;
  display:grid;
  grid-template-columns:48px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:9px 12px;
  border:1px solid #29364a;
  border-radius:12px;
  background:#0d1522;
  color:var(--text);
  text-decoration:none;
}
.weapon-owner-row:hover{border-color:#465a76;background:#101b2b}
.weapon-owner-avatar{
  width:48px;height:48px;border-radius:10px;overflow:hidden;
  display:grid;place-items:center;background:#0a111d;border:1px solid #29364a;
}
.weapon-owner-avatar img{width:100%;height:100%;object-fit:cover}
.weapon-owner-copy{min-width:0;display:flex;flex-direction:column;gap:3px}
.weapon-owner-label{color:#7f91aa;font-size:11px;text-transform:uppercase;font-weight:700}
.weapon-owner-copy strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.weapon-owner-element{display:flex;align-items:center;gap:7px;color:#aebbd0;font-size:13px}
.weapon-owner-element img{width:28px;height:28px;object-fit:contain}
.overview-panel .weapon-owner-row + .weapon-description{margin-top:22px}
@media(max-width:600px){
 .weapon-owner-row{grid-template-columns:44px minmax(0,1fr) auto}
 .weapon-owner-avatar{width:44px;height:44px}
 .weapon-owner-element span{display:none}
}


/* 0.8.26 — Hunter Weapon owner row polish */
.weapon-owner-avatar{
  width:54px;
  height:54px;
  border:0;
  border-radius:0;
  background:transparent;
}
.weapon-owner-copy{gap:0}
.weapon-owner-copy strong{
  font-size:19px;
  line-height:1.2;
}
.weapon-owner-element{gap:0}
.weapon-owner-element img{
  width:32px;
  height:32px;
}
@media(max-width:600px){
  .weapon-owner-row{grid-template-columns:54px minmax(0,1fr) auto}
  .weapon-owner-avatar{width:54px;height:54px}
}

/* 0.8.27 — preserve original Hunter class/role PNG colors */
.tile-role img,
.role-icon img,
.hunter-role-icon img,
.class-icon img,
img[src*="Class_"],
img[src*="class_"]{
  filter:none !important;
  -webkit-filter:none !important;
  mix-blend-mode:normal !important;
}

/* 0.8.27 — Hunter Weapon lightbox footer, same pattern as Hunter */
.weapon-lightbox-footer{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
}
.weapon-lightbox-footer strong{
  grid-column:2;
  justify-self:center;
}
.weapon-lightbox-footer .lightbox-download{
  grid-column:3;
  justify-self:end;
}


/* 0.8.29 — Hunter detail tabs prototype */
.hunter-snapshot-panel{
  height:100%;
}
.snapshot-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}
.snapshot-item{
  padding:10px 12px;
  border:1px solid #29384a;
  border-radius:10px;
  background:#0d1622;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.snapshot-item span{
  color:#8292a6;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
}
.snapshot-item strong{font-size:14px}

.hunter-tabs-shell{
  margin-top:16px;
}
.hunter-tabs{
  display:flex;
  gap:8px;
  overflow-x:auto;
  scrollbar-width:thin;
  padding:4px;
  border:1px solid #29384a;
  border-radius:13px;
  background:#0d1622;
}
.hunter-tab{
  flex:1 0 auto;
  min-width:max-content;
  border:1px solid transparent;
  border-radius:9px;
  padding:11px 16px;
  background:transparent;
  color:#9cabc0;
  font-weight:800;
  cursor:pointer;
}
.hunter-tab:hover{background:#121e2d;color:#e7edf5}
.hunter-tab.is-active{
  background:#ffd11a;
  border-color:#ffd11a;
  color:#111722;
}
.hunter-tab-panel{
  display:none;
  margin-top:12px;
}
.hunter-tab-panel.is-active{display:block}
.hunter-tab-panel .hunter-detail-columns,
.hunter-tab-panel .hunter-weapon-row{margin-top:0}

.profile-tab-layout{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.profile-block{
  border:1px solid #29384a;
  border-radius:12px;
  background:#0d1622;
  padding:14px;
}
.profile-block h3{margin:0 0 10px;font-size:14px}
.profile-block-wide{grid-column:1/-1}
.profile-level{
  font-size:22px;
  font-weight:900;
  color:#ffd11a;
}
.profile-chip-list{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
.profile-chip-list span{
  padding:6px 9px;
  border:1px solid #34465d;
  border-radius:999px;
  background:#111c2a;
  font-size:12px;
  font-weight:700;
}
.dialogue-list{display:grid;gap:9px}
.dialogue-card{
  display:grid;
  grid-template-columns:160px minmax(0,1fr);
  gap:14px;
  padding:13px 14px;
  border:1px solid #29384a;
  border-radius:12px;
  background:#0d1622;
}
.dialogue-card>span{color:#ffd11a;font-weight:800}
.dialogue-card p{margin:0;line-height:1.5}

.skill-level-range{
  margin:7px 0 8px;
  padding:8px 10px;
  border:1px solid #26384d;
  border-radius:9px;
  background:#0a1420;
}
.skill-level-label,
.skill-level-values{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:10px;
}
.skill-level-label{
  grid-template-columns:1fr 1fr;
  color:#8191a6;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
}
.skill-level-label span:last-child{text-align:right}
.skill-level-values{
  margin-top:3px;
  font-size:13px;
  font-weight:800;
}
.skill-level-values span:last-child{text-align:right}
.skill-level-values b{color:#66788e;font-weight:700}

@media(max-width:900px){
  .snapshot-grid,.profile-tab-layout{grid-template-columns:1fr}
  .profile-block-wide{grid-column:auto}
  .hunter-tab{flex:0 0 auto}
  .dialogue-card{grid-template-columns:1fr}
}


/* 0.8.30 — Hunter tabs corrections */
.skin-info-row.skin-description-wide{
  grid-template-columns:1fr !important;
}
.skin-description-wide .current-skin-info{
  width:100%;
  max-width:none;
}
.hunter-tab-panel[data-hunter-panel="progression"] .battle-tip{
  margin-top:0;
  margin-bottom:12px;
}
.skill-level-range{display:none !important;}


/* 0.8.31 — skill category labels + profile/lobby polish */
.skill-slot-label{
  display:block;
  margin-bottom:3px;
  color:#8394aa;
  font-size:10px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.skill-name{
  display:block;
  font-size:14px;
}
.dialogue-section + .dialogue-section{margin-top:18px}
.dialogue-section>h3{margin:0 0 10px}


/* 0.8.33 — cleaner Lobby Dialogues + tab URL polish */
.dialogue-card.dialogue-card-clean{
  display:block;
  padding:13px 14px;
}
.dialogue-card-clean .dialogue-main{
  margin:0;
  min-width:0;
  line-height:1.5;
}
.dialogue-reaction{
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin-top:9px;
  padding-top:9px;
  border-top:1px solid #243448;
  color:#aebbd0;
}
.dialogue-reaction>span{
  flex:0 0 auto;
  color:#ffd11a;
  font-weight:900;
}
.dialogue-reaction p{
  margin:0;
  min-width:0;
  line-height:1.5;
}
.weapon-heading h2{margin-top:0}
.weapon-effect p{margin-top:0}


/* 0.8.34 — Personal polish */
.ability-fact .fact-value{
  display:flex;
  justify-content:flex-end;
}
.ability-list{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:6px;
}
.ability-list>span{
  padding:5px 8px;
  border:1px solid #34465d;
  border-radius:999px;
  background:#111c2a;
  color:#d7e0eb;
  font-size:12px;
  font-weight:700;
}
@media(max-width:600px){
  .ability-fact .fact-value,
  .ability-list{justify-content:flex-start}
}


/* 0.8.35 — Exclusive Weapon navigation + plain Ability rows */
.exclusive-weapon-link{
  color:inherit;
  text-decoration:none;
}
.exclusive-weapon-link:hover{
  color:#ffd11a;
}
.exclusive-weapon-image-link{
  display:block;
  width:100%;
  height:100%;
}
.exclusive-weapon-image-link img{
  display:block;
}


/* 0.8.36 — compact search + multi-select Guild filter */
.toolbar{
  grid-template-columns:minmax(190px,320px) minmax(150px,190px) 1fr auto;
}
.search{
  width:100%;
}
.guild-filter{
  position:relative;
  min-width:0;
}
.guild-filter-toggle{
  width:100%;
  height:39px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:0 12px;
  border:1px solid #334155;
  border-radius:10px;
  background:#111b2c;
  color:#cbd5e1;
  font-weight:800;
  cursor:pointer;
}
.guild-filter-toggle:hover,
.guild-filter-toggle.on{
  border-color:var(--gold);
}
.guild-filter-chevron{
  color:#8394aa;
  font-size:16px;
}
.guild-filter-menu{
  position:absolute;
  top:calc(100% + 7px);
  left:0;
  z-index:30;
  width:min(330px,calc(100vw - 40px));
  max-height:360px;
  overflow:auto;
  padding:7px;
  border:1px solid #334155;
  border-radius:12px;
  background:#0b1320;
  box-shadow:0 18px 45px rgba(0,0,0,.45);
}
.guild-filter-menu[hidden]{display:none}
.guild-option{
  width:100%;
  min-height:42px;
  display:grid;
  grid-template-columns:22px 30px minmax(0,1fr);
  align-items:center;
  gap:8px;
  padding:6px 8px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#cbd5e1;
  text-align:left;
  cursor:pointer;
}
.guild-option:hover{background:#121f30}
.guild-option.selected{background:#242417;color:#fff}
.guild-option-check{
  width:18px;
  height:18px;
  display:grid;
  place-items:center;
  border:1px solid #42516a;
  border-radius:5px;
  color:#111722;
  font-size:12px;
  font-weight:950;
}
.guild-option.selected .guild-option-check{
  background:#ffd11a;
  border-color:#ffd11a;
}
.guild-option-icon{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
}
.guild-option-icon .guild-icon,
.guild-option-icon img{
  width:28px;
  height:28px;
  object-fit:contain;
}
.guild-option-name{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* Make Exclusive Weapon navigation obvious without making it noisy. */
.weapon-heading-linked{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.exclusive-weapon-link{
  text-decoration:underline;
  text-decoration-color:rgba(255,209,26,.45);
  text-underline-offset:4px;
}
.exclusive-weapon-cta{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 10px;
  border:1px solid #4b5568;
  border-radius:9px;
  background:#111b2c;
  color:#d9e2ef;
  text-decoration:none;
  font-size:12px;
  font-weight:850;
}
.exclusive-weapon-cta:hover{
  border-color:#ffd11a;
  color:#ffd11a;
}
.exclusive-weapon-image-link{
  position:relative;
}
.exclusive-weapon-image-link::after{
  content:'Open weapon →';
  position:absolute;
  right:10px;
  bottom:10px;
  padding:6px 8px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:8px;
  background:rgba(8,13,22,.82);
  color:#fff;
  font-size:11px;
  font-weight:850;
  opacity:0;
  transform:translateY(3px);
  transition:.16s ease;
  pointer-events:none;
}
.exclusive-weapon-image-link:hover::after{
  opacity:1;
  transform:translateY(0);
}

@media(max-width:900px){
  .toolbar{
    grid-template-columns:minmax(0,1fr) minmax(140px,180px);
  }
  .filters{grid-column:1/-1}
  .reset{grid-column:1/-1}
}


/* 0.8.37 — Hunter filters full-width polish */
.toolbar{
  width:100%;
  grid-template-columns:minmax(190px,290px) minmax(150px,190px) minmax(0,1fr) auto;
}
.toolbar .filters{
  width:100%;
  min-width:0;
}
.guild-filter-chevron{
  width:18px;
  height:18px;
  display:grid;
  place-items:center;
}
.guild-filter-chevron svg{
  width:16px;
  height:16px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:2.4;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.guild-filter-toggle[aria-expanded="true"] .guild-filter-chevron{
  transform:rotate(180deg);
}

/* Rarity filter colors */
.filter.hunter-filter-ssr,
.filter.weapon-filter-ssr{
  color:#ff858d;
  border-color:#743943;
  background:#26161b;
}
.filter.hunter-filter-ssr.on,
.filter.weapon-filter-ssr.on{
  color:#fff;
  border-color:#e45b68;
  background:#7b2631;
  box-shadow:0 0 0 1px rgba(228,91,104,.28);
}
.filter.hunter-filter-sr,
.filter.weapon-filter-sr{
  color:#c3a0ff;
  border-color:#554070;
  background:#1d1729;
}
.filter.hunter-filter-sr.on,
.filter.weapon-filter-sr.on{
  color:#fff;
  border-color:#9569db;
  background:#553181;
  box-shadow:0 0 0 1px rgba(149,105,219,.28);
}
.filter.weapon-filter-r{
  color:#8fc9ff;
  border-color:#315a78;
  background:#101d29;
}
.filter.weapon-filter-r.on{
  color:#fff;
  border-color:#5da9e3;
  background:#225b86;
}

/* Hunter Weapon list filters + element badge */
.weapon-toolbar{
  grid-template-columns:minmax(220px,330px) minmax(0,1fr) auto;
}
.weapon-filters{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}
.weapon-element-badge{
  position:absolute;
  top:10px;
  left:10px;
  z-index:4;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
}
.weapon-element-badge img{
  width:34px !important;
  height:34px !important;
  object-fit:contain !important;
  filter:none !important;
}

@media(max-width:900px){
  .toolbar,
  .weapon-toolbar{
    grid-template-columns:1fr;
  }
  .toolbar .filters,
  .weapon-filters,
  .toolbar .reset{
    grid-column:1;
  }
}


/* 0.8.38 — full-width desktop filters */
.hunter-filter-toolbar{
  grid-template-columns:minmax(300px,390px) minmax(190px,235px) minmax(0,1fr) auto !important;
}
.hunter-filter-toolbar .desktop-hunter-filters{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:7px;
  width:100%;
}
.desktop-guild-filter,
.desktop-guild-filter .guild-filter{
  width:100%;
}
.weapon-toolbar{
  grid-template-columns:minmax(300px,390px) minmax(0,1fr) auto !important;
}
.weapon-toolbar .desktop-weapon-filters{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  width:100%;
}
.mobile-filter-open{display:none}

/* shared mobile filter sheet */
.mobile-filter-modal[hidden]{display:none!important}
.mobile-filter-modal{
  position:fixed;
  inset:0;
  z-index:1000;
}
.mobile-filter-backdrop{
  position:absolute;
  inset:0;
  background:rgba(2,6,12,.74);
  backdrop-filter:blur(3px);
}
.mobile-filter-sheet{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  max-height:min(82vh,720px);
  display:flex;
  flex-direction:column;
  border:1px solid #344154;
  border-bottom:0;
  border-radius:18px 18px 0 0;
  background:#0b1320;
  box-shadow:0 -18px 55px rgba(0,0,0,.48);
}
.mobile-filter-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:15px 16px 12px;
  border-bottom:1px solid #263448;
}
.mobile-filter-head h3{margin:0}
.mobile-filter-close{
  width:34px;height:34px;
  display:grid;place-items:center;
  border:1px solid #344154;
  border-radius:9px;
  background:#101a29;
  color:#d8e2ef;
  font-size:22px;
  cursor:pointer;
}
.mobile-filter-body{
  overflow:auto;
  padding:14px 16px 18px;
}
.mobile-filter-section+ .mobile-filter-section{margin-top:18px}
.mobile-filter-section h4{
  margin:0 0 9px;
  color:#aab8ca;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.mobile-filter-grid{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.mobile-choice{
  min-width:54px;
  min-height:38px;
  border:1px solid #344154;
  border-radius:10px;
  background:#101a29;
  color:#cbd5e1;
  font-weight:800;
}
.mobile-choice.selected{
  border-color:#ffd11a;
  box-shadow:0 0 0 1px rgba(255,209,26,.25);
}
.mobile-choice-ssr{color:#ff858d}
.mobile-choice-sr{color:#c3a0ff}
.mobile-choice-r{color:#8fc9ff}
.mobile-choice-ssr.selected{background:#7b2631;color:#fff;border-color:#e45b68}
.mobile-choice-sr.selected{background:#553181;color:#fff;border-color:#9569db}
.mobile-choice-r.selected{background:#225b86;color:#fff;border-color:#5da9e3}
.mobile-choice.icon-choice{
  min-width:44px;
  width:44px;
  height:44px;
  padding:5px;
}
.mobile-choice.icon-choice img{
  width:30px;height:30px;object-fit:contain;
}
.mobile-guild-list{
  display:grid;
  gap:6px;
}
.mobile-guild-choice{
  min-height:44px;
  display:grid;
  grid-template-columns:22px 30px minmax(0,1fr);
  align-items:center;
  gap:9px;
  padding:6px 9px;
  border:1px solid transparent;
  border-radius:9px;
  background:#101a29;
  color:#cbd5e1;
  text-align:left;
}
.mobile-guild-choice.selected{
  border-color:#ffd11a;
  background:#252416;
}
.mobile-choice-check{
  width:18px;height:18px;
  display:grid;place-items:center;
  border:1px solid #42516a;
  border-radius:5px;
  font-size:12px;
  font-weight:900;
}
.mobile-guild-choice.selected .mobile-choice-check{
  background:#ffd11a;
  border-color:#ffd11a;
  color:#111722;
}
.mobile-guild-icon{
  width:28px;height:28px;
  display:grid;place-items:center;
}
.mobile-guild-icon img{width:28px;height:28px;object-fit:contain}
.mobile-filter-actions{
  display:grid;
  grid-template-columns:1fr 2fr;
  gap:10px;
  padding:12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top:1px solid #263448;
  background:#0b1320;
}
.mobile-filter-actions button{
  min-height:43px;
  border-radius:10px;
  border:1px solid #3a475b;
  font-weight:850;
  cursor:pointer;
}
.mobile-filter-clear{
  background:#101a29;
  color:#cbd5e1;
}
.mobile-filter-apply{
  background:#ffd11a;
  border-color:#ffd11a!important;
  color:#10151d;
}
body.filter-modal-open{overflow:hidden}

@media(max-width:760px){
  .hunter-filter-toolbar,
  .weapon-toolbar{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto auto!important;
    gap:8px!important;
  }
  .hunter-filter-toolbar .search,
  .weapon-toolbar .search{
    grid-column:1/-1;
    width:100%;
    min-width:0;
  }
  .desktop-guild-filter,
  .desktop-hunter-filters,
  .desktop-weapon-filters{
    display:none!important;
  }
  .mobile-filter-open{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:110px;
  }
  .hunter-filter-toolbar .mobile-filter-open,
  .weapon-toolbar .mobile-filter-open{
    grid-column:2;
  }
  .hunter-filter-toolbar .reset,
  .weapon-toolbar .reset{
    grid-column:3;
    white-space:nowrap;
  }
}


/* 0.8.39 — cleaner desktop toolbars + icon controls */
.hunter-filter-toolbar,
.weapon-toolbar{
  display:flex !important;
  align-items:center;
  gap:9px;
  width:100%;
}
.hunter-filter-toolbar .search{
  flex:0 1 410px;
  min-width:300px;
}
.hunter-filter-toolbar .desktop-guild-filter{
  flex:0 1 245px;
  min-width:190px;
}
.hunter-filter-toolbar .desktop-hunter-filters{
  flex:1 1 auto;
  justify-content:flex-start;
}
.hunter-filter-toolbar .reset{
  margin-left:auto;
}

.weapon-toolbar .search{
  flex:0 1 430px;
  min-width:320px;
}
.weapon-toolbar .desktop-weapon-filters{
  flex:0 0 auto;
  width:auto;
}
.weapon-toolbar .reset{
  margin-left:auto;
}

/* consistent icon buttons */
.filter.reset,
.mobile-filter-open,
.mobile-filter-close{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
}
.filter.reset svg,
.mobile-filter-open svg,
.mobile-filter-close svg{
  width:16px;
  height:16px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.filter.reset{
  min-height:34px;
}
.mobile-filter-open{
  position:relative;
}
.mobile-filter-count{
  position:absolute;
  top:-5px;
  right:-5px;
  min-width:18px;
  height:18px;
  padding:0 4px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#ffd11a;
  color:#111722;
  font-size:10px;
  font-weight:900;
  line-height:1;
}

/* weapon filters look like a deliberate compact group, not loose buttons */
.weapon-toolbar .desktop-weapon-filters{
  padding:3px;
  border:1px solid #29384a;
  border-radius:11px;
  background:#0d1622;
}
.weapon-toolbar .desktop-weapon-filters .filter{
  min-width:38px;
  height:34px;
  border-radius:8px;
}

@media(max-width:760px){
  .hunter-filter-toolbar,
  .weapon-toolbar{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 42px 42px !important;
    gap:8px !important;
  }
  .hunter-filter-toolbar .search,
  .weapon-toolbar .search{
    grid-column:1/-1;
    width:100%;
    min-width:0;
  }
  .hunter-filter-toolbar .mobile-filter-open,
  .weapon-toolbar .mobile-filter-open{
    grid-column:2;
    width:42px;
    min-width:42px;
    height:38px;
    padding:0;
  }
  .hunter-filter-toolbar .reset,
  .weapon-toolbar .reset{
    grid-column:3;
    width:42px;
    min-width:42px;
    height:38px;
    margin-left:0;
    padding:0;
  }
  .hunter-filter-toolbar .reset-label,
  .weapon-toolbar .reset-label{
    display:none;
  }
  .mobile-filter-open svg,
  .filter.reset svg{
    width:18px;
    height:18px;
  }
}


/* 0.8.40 — exact desktop widths + cleaner mobile row */
.hunter-filter-toolbar{
  display:flex !important;
  align-items:center;
  gap:9px;
  width:100%;
}
.hunter-filter-toolbar .search{
  flex:0 0 400px !important;
  width:400px !important;
  min-width:400px !important;
  max-width:400px !important;
}
.hunter-filter-toolbar .desktop-guild-filter{
  flex:0 0 300px !important;
  width:300px !important;
  min-width:300px !important;
  max-width:300px !important;
}
.hunter-filter-toolbar .desktop-hunter-filters{
  flex:1 1 auto;
  width:auto;
  min-width:0;
  justify-content:flex-start;
  flex-wrap:nowrap;
}
.filter-separator{
  flex:0 0 1px;
  width:1px;
  height:25px;
  margin:0 3px;
  background:#3a4759;
  border-radius:1px;
}

/* Reset: true red, with visible SVG X. */
.filter.reset,
.weapon-reset{
  color:#ff0000 !important;
  border-color:#69343a !important;
  background:#151923 !important;
  flex:0 0 auto;
  overflow:visible;
}
.filter.reset:hover,
.weapon-reset:hover{
  color:#ff0000 !important;
  border-color:#ff0000 !important;
  background:#21151a !important;
}
.filter.reset svg,
.weapon-reset svg{
  display:block !important;
  width:16px !important;
  height:16px !important;
  flex:0 0 16px;
  stroke:#ff0000 !important;
}

/* Hunter Weapons desktop: no extra wrapper/pill around rarity + elements. */
.weapon-toolbar{
  display:flex !important;
  align-items:center;
  gap:9px;
  width:100%;
}
.weapon-toolbar .search{
  flex:0 0 400px !important;
  width:400px !important;
  min-width:400px !important;
  max-width:400px !important;
}
.weapon-toolbar .desktop-weapon-filters{
  flex:1 1 auto;
  width:auto !important;
  min-width:0;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  justify-content:flex-start;
  flex-wrap:nowrap;
}
.weapon-toolbar .desktop-weapon-filters .filter{
  min-width:38px;
  height:34px;
}

/* Filter trigger exists only on mobile. */
.mobile-filter-open{
  display:none !important;
}

@media(max-width:760px){
  .hunter-filter-toolbar,
  .weapon-toolbar{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 42px 42px !important;
    align-items:center;
    gap:8px !important;
    width:100%;
  }

  /* Search + filter + reset in ONE row */
  .hunter-filter-toolbar .search,
  .weapon-toolbar .search{
    grid-column:1 !important;
    grid-row:1 !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    height:38px;
  }
  .hunter-filter-toolbar .mobile-filter-open,
  .weapon-toolbar .mobile-filter-open{
    display:inline-flex !important;
    grid-column:2 !important;
    grid-row:1 !important;
    width:42px !important;
    min-width:42px !important;
    height:38px !important;
    padding:0 !important;
  }
  .hunter-filter-toolbar .reset,
  .weapon-toolbar .reset{
    grid-column:3 !important;
    grid-row:1 !important;
    width:42px !important;
    min-width:42px !important;
    max-width:42px !important;
    height:38px !important;
    padding:0 !important;
    margin:0 !important;
    justify-self:end;
  }
  .hunter-filter-toolbar .reset-label,
  .weapon-toolbar .reset-label{
    display:none !important;
  }

  .desktop-guild-filter,
  .desktop-hunter-filters,
  .desktop-weapon-filters{
    display:none !important;
  }
}


/* 0.8.41 — recreated classic My list */
.my-list-actions{
  margin:10px 0 12px;
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:8px 10px;
  border:1px solid #29384a;
  border-radius:11px;
  background:#0d1622;
}
.my-list-actions>div:first-child{color:#9badc4}
.my-list-actions>div:first-child strong{color:#fff}
.my-list-actions button{
  min-height:34px;
  padding:0 13px;
  border:1px solid #40516a;
  border-radius:9px;
  background:#111d2d;
  color:#dce6f3;
  font-weight:850;
  cursor:pointer;
}
.my-list-actions .my-list-save{
  border-color:#ffd11a;
  background:#ffd11a;
  color:#111722;
}
.my-list-action-buttons{display:flex;gap:8px}
.my-list-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.my-list-card{
  overflow:hidden;
  border:1px solid #334154;
  border-radius:13px;
  background:#101927;
}
.my-list-card.not-owned{opacity:.72}
.my-list-hunter{
  display:grid;
  grid-template-columns:108px minmax(0,1fr);
  min-height:150px;
}
.my-list-art{
  position:relative;
  min-height:150px;
  overflow:hidden;
  background:#161f2d;
}
.my-list-art>img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center top;
}
.my-list-art .fallback{
  width:100%;height:100%;
  display:grid;place-items:center;
  font-size:42px;font-weight:900;color:#607087;
}
.my-list-badges{
  position:absolute;
  top:7px;left:7px;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.my-list-badges img{width:25px;height:25px;object-fit:contain}
.my-list-copy{
  min-width:0;
  padding:11px 10px;
}
.my-list-copy h3{
  margin:0 0 9px;
  font-size:14px;
  line-height:1.15;
}
.my-list-progress{
  display:grid;
  gap:6px;
}
.progress-read-row,
.progress-edit-row{
  display:grid;
  grid-template-columns:84px minmax(0,1fr);
  align-items:center;
  gap:8px;
  min-height:28px;
}
.progress-read-row>span:first-child,
.progress-edit-row label{
  color:#8292a7;
  font-size:10px;
  font-weight:850;
  text-transform:uppercase;
}
.progress-read-row strong{
  justify-self:end;
}
.progress-stars{
  color:#ffd11a;
  font-size:10px;
  letter-spacing:-1px;
  white-space:nowrap;
  justify-self:end;
}
.progress-not-owned{
  color:#8391a4;
  font-size:11px;
  justify-self:end;
}
.progress-edit-row select,
.progress-edit-row input{
  width:100%;
  min-width:0;
  height:28px;
  padding:0 7px;
  border:1px solid #34465d;
  border-radius:7px;
  background:#0b1420;
  color:#e2eaf4;
  font-size:12px;
}
.my-list-weapon{
  border-top:1px solid #2c3a4d;
  padding:9px 10px 10px;
  background:#0c1420;
}
.my-list-weapon-head{
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  align-items:center;
  gap:9px;
  margin-bottom:8px;
}
.my-list-weapon-head img{
  width:46px;height:46px;object-fit:contain;
}
.my-list-weapon-head div{
  min-width:0;
  display:flex;
  flex-direction:column;
}
.my-list-weapon-head span{
  color:#8192a8;
  font-size:9px;
  font-weight:850;
  text-transform:uppercase;
}
.my-list-weapon-head strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
}

@media(max-width:1200px){
 .my-list-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:900px){
 .my-list-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
 .my-list-grid{grid-template-columns:1fr}
 .my-list-hunter{grid-template-columns:105px minmax(0,1fr)}
 .my-list-actions{position:sticky;top:64px;z-index:20}
 .progress-read-row,.progress-edit-row{grid-template-columns:86px minmax(0,1fr)}
}


/* 0.8.42 — Lobby conversations grouped by DialogGroupID */
.dialogue-group-list{
  display:grid;
  gap:12px;
}
.dialogue-group-card{
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  gap:10px;
  padding:11px 13px;
  border:1px solid #29384a;
  border-radius:12px;
  background:#0d1622;
}
.dialogue-group-number{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border:1px solid #3a4a61;
  border-radius:8px;
  background:#101b2a;
  color:#ffd11a;
  font-size:11px;
  font-weight:900;
}
.dialogue-group-lines{
  min-width:0;
  display:grid;
}
.dialogue-line{
  min-width:0;
  padding:8px 0;
}
.dialogue-line + .dialogue-line{
  border-top:1px solid #243448;
}
.dialogue-line .dialogue-main{
  margin:0;
  line-height:1.55;
}
.dialogue-line .dialogue-reaction{
  margin-top:7px;
  padding-top:7px;
}
@media(max-width:600px){
  .dialogue-group-card{
    grid-template-columns:28px minmax(0,1fr);
    padding:10px;
  }
  .dialogue-group-number{
    width:24px;
    height:24px;
  }
}


/* 0.8.43 — My List Advancement / Growth / Statistics */
.dialogue-group-card{grid-template-columns:minmax(0,1fr)!important}
.dialogue-group-number{display:none!important}

.progress-stars{
  color:#ffd11a;
  font-size:14px;
  letter-spacing:0;
  white-space:nowrap;
  justify-self:end;
}
.growth-read{
  justify-self:end;
  display:inline-flex;
  align-items:center;
  gap:7px;
}
.growth-read img{width:28px;height:28px;object-fit:contain}
.growth-picker{position:relative;width:100%}
.growth-picker-toggle{
  width:100%;
  height:32px;
  display:grid;
  grid-template-columns:24px minmax(0,1fr) 14px;
  align-items:center;
  gap:7px;
  padding:0 7px;
  border:1px solid #34465d;
  border-radius:7px;
  background:#0b1420;
  color:#e2eaf4;
  cursor:pointer;
}
.growth-picker-toggle img{width:24px;height:24px;object-fit:contain}
.growth-picker-toggle span{text-align:left;font-weight:800}
.growth-picker-toggle svg{
  width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.3;
  stroke-linecap:round;stroke-linejoin:round;
}
.growth-picker-menu{
  position:absolute;
  top:calc(100% + 4px);
  left:0;right:0;
  z-index:60;
  max-height:250px;
  overflow:auto;
  padding:5px;
  border:1px solid #40516a;
  border-radius:9px;
  background:#0a121d;
  box-shadow:0 14px 35px rgba(0,0,0,.45);
}
.growth-picker-menu[hidden]{display:none}
.growth-option{
  width:100%;
  min-height:34px;
  display:grid;
  grid-template-columns:26px minmax(0,1fr);
  align-items:center;
  gap:8px;
  padding:3px 7px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#dce6f3;
  cursor:pointer;
  text-align:left;
}
.growth-option:hover,.growth-option.selected{background:#172538}
.growth-option img{width:25px;height:25px;object-fit:contain}

.my-list-card.rarity-ssr{
  border-color:#78414a;
  box-shadow:inset 0 3px 0 #b44452;
}
.my-list-card.rarity-sr{
  border-color:#5c4776;
  box-shadow:inset 0 3px 0 #7b55a8;
}
.my-list-rarity-label{
  position:absolute;
  right:7px;top:7px;
  padding:3px 6px;
  border-radius:6px;
  background:rgba(7,12,19,.82);
  font-size:9px;
  font-weight:900;
}
.rarity-ssr .my-list-rarity-label{color:#ff858d}
.rarity-sr .my-list-rarity-label{color:#c3a0ff}
.my-list-weapon.weapon-rarity-ssr{border-left:3px solid #b44452}
.my-list-weapon.weapon-rarity-sr{border-left:3px solid #7b55a8}
.my-list-weapon.weapon-rarity-r{border-left:3px solid #4c91bd}

.my-list-bulk-card{
  padding:13px;
  border-style:dashed;
  border-color:#ffd11a;
  box-shadow:none;
  background:#171a16;
}
.my-list-bulk-head{
  margin-bottom:12px;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.my-list-bulk-head strong{color:#ffd11a;font-size:16px}
.my-list-bulk-head span{color:#91a0b4;font-size:11px}
.my-list-apply-all{
  width:100%;
  min-height:34px;
  margin-top:11px;
  border:1px solid #ffd11a;
  border-radius:8px;
  background:#ffd11a;
  color:#111722;
  font-weight:900;
  cursor:pointer;
}

.statistics-section{margin-top:16px}
.statistics-section h2{margin:0 0 9px;font-size:16px}
.statistics-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
}
.statistics-card{
  min-height:105px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  padding:13px;
  border:1px solid #2f3e52;
  border-radius:12px;
  background:#0e1724;
}
.statistics-card span{
  color:#8798ae;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
}
.statistics-card strong{font-size:25px;line-height:1;color:#fff}
@media(max-width:900px){.statistics-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.statistics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* 0.8.44 — My List visual + live max-level fixes */
.dialogue-group-card{grid-template-columns:minmax(0,1fr)!important}
.dialogue-group-number{display:none!important}

.my-list-art{
  background:transparent !important;
}
.my-list-card.rarity-ssr{
  border-color:#78414a !important;
  background:linear-gradient(180deg,rgba(128,42,55,.28),rgba(16,25,39,.97) 44%) !important;
  box-shadow:inset 0 3px 0 #b44452 !important;
}
.my-list-card.rarity-sr{
  border-color:#5c4776 !important;
  background:linear-gradient(180deg,rgba(88,53,128,.28),rgba(16,25,39,.97) 44%) !important;
  box-shadow:inset 0 3px 0 #7b55a8 !important;
}
.my-list-weapon.weapon-rarity-ssr{
  background:linear-gradient(90deg,rgba(180,68,82,.14),rgba(12,20,32,.97) 34%) !important;
}
.my-list-weapon.weapon-rarity-sr{
  background:linear-gradient(90deg,rgba(123,85,168,.15),rgba(12,20,32,.97) 34%) !important;
}
.my-list-weapon.weapon-rarity-r{
  background:linear-gradient(90deg,rgba(76,145,189,.15),rgba(12,20,32,.97) 34%) !important;
}
.progress-max{
  grid-column:2;
  margin-top:-3px;
  color:#718299;
  font-size:9px;
  line-height:1;
  text-align:right;
}


/* 0.8.45 — My List cleanup */
.my-list-card{
  border:1px solid #334154 !important;
  box-shadow:none !important;
  background:#0f1825 !important;
}
.my-list-card.rarity-ssr,
.my-list-card.rarity-sr{
  border-width:1px !important;
  box-shadow:none !important;
}
.my-list-card.rarity-ssr .my-list-copy{
  background:linear-gradient(90deg,rgba(150,48,61,.20),rgba(15,24,37,0) 88%);
}
.my-list-card.rarity-sr .my-list-copy{
  background:linear-gradient(90deg,rgba(103,67,148,.22),rgba(15,24,37,0) 88%);
}
.my-list-art{background:transparent !important}
.my-list-hunter{background:#0f1825 !important}
.my-list-weapon{
  border-left:0 !important;
  border-top:1px solid #334154 !important;
}
.my-list-weapon.weapon-rarity-ssr{
  background:linear-gradient(90deg,rgba(180,68,82,.13),rgba(12,20,32,.97) 38%) !important;
}
.my-list-weapon.weapon-rarity-sr{
  background:linear-gradient(90deg,rgba(123,85,168,.14),rgba(12,20,32,.97) 38%) !important;
}
.my-list-weapon.weapon-rarity-r{
  background:linear-gradient(90deg,rgba(76,145,189,.14),rgba(12,20,32,.97) 38%) !important;
}
.my-list-grid,.my-list-actions,.my-list-card,.my-list-card button,.my-list-card input,.my-list-card select{
  font-size:12px !important;
}
.my-list-card label,.my-list-card small,.my-list-card .my-list-weapon-head span,.my-list-card .my-list-bulk-head span,.my-list-card .my-list-rarity-label{
  font-size:11px !important;
}
.bulk-progress-section{
  padding:10px;
  border:1px solid #344154;
  border-radius:9px;
  background:#0d1622;
}
.bulk-progress-section + .bulk-progress-section{margin-top:10px}
.bulk-progress-section h4{margin:0 0 8px;color:#ffd11a;font-size:12px}
.bulk-progress-weapon h4{color:#aebbd0}
.my-list-bulk-card{border:1px dashed #ffd11a !important}
.progress-max{font-size:11px !important;color:#7e8fa5}


/* 0.8.46 — My List sizing/order polish */
.my-list-copy h3{
  font-size:16px !important;
  line-height:1.2 !important;
}
.progress-read-row>span:first-child,
.progress-edit-row label{
  font-size:12px !important;
}
.progress-read-row>strong,
.progress-edit-row input,
.progress-edit-row select{
  font-size:12px !important;
}
.progress-stars{
  font-size:18px !important;
  line-height:1 !important;
}
.advancement-suffix{
  font-size:18px !important;
  font-weight:900 !important;
  margin-left:1px;
}
.growth-read{
  justify-self:end;
}
.growth-read img{
  width:32px !important;
  height:32px !important;
  object-fit:contain !important;
}
.my-list-weapon-head{
  grid-template-columns:60px minmax(0,1fr) !important;
  min-height:60px;
}
.my-list-weapon-head img{
  width:60px !important;
  height:60px !important;
  object-fit:contain !important;
}
.my-list-weapon-head strong{
  font-size:16px !important;
  line-height:1.2 !important;
}
.my-list-art{
  min-height:160px !important;
  background:transparent !important;
}
.my-list-art>img{
  min-height:160px !important;
}
.my-list-hunter{
  min-height:160px !important;
}
.my-list-weapon{
  min-height:126px;
}
.my-list-weapon-empty{
  display:block;
  border-top:1px solid #334154 !important;
  background:#0c1420 !important;
}
.my-list-card,
.my-list-card button,
.my-list-card input,
.my-list-card select,
.my-list-actions{
  font-size:12px !important;
}
.my-list-card small,
.my-list-rarity-label{
  font-size:11px !important;
}


/* 0.8.47 — My List rarity background across the whole Hunter panel */
.my-list-card.rarity-ssr .my-list-hunter{
  background:
    linear-gradient(90deg,rgba(150,48,61,.27),rgba(15,24,37,.97) 78%) !important;
}
.my-list-card.rarity-sr .my-list-hunter{
  background:
    linear-gradient(90deg,rgba(103,67,148,.28),rgba(15,24,37,.97) 78%) !important;
}

/* The portrait itself stays transparent so the card rarity background is visible behind it. */
.my-list-card .my-list-art,
.my-list-card .my-list-copy{
  background:transparent !important;
}

/* Keep weapon and empty-weapon areas exactly the same height/box model. */
.my-list-weapon{
  box-sizing:border-box !important;
  min-height:126px !important;
  border-top:1px solid #334154 !important;
  border-left:0 !important;
  border-right:0 !important;
  border-bottom:0 !important;
}
.my-list-weapon-empty{
  box-sizing:border-box !important;
  display:block !important;
  height:126px !important;
  min-height:126px !important;
  padding:0 !important;
  margin:0 !important;
}

/* No Exclusive Weapon: keep the lower section visually consistent with rarity instead
   of falling back to a flat dark block. */
.my-list-card.rarity-ssr .my-list-weapon-empty{
  background:
    linear-gradient(90deg,rgba(180,68,82,.13),rgba(12,20,32,.97) 38%) !important;
}
.my-list-card.rarity-sr .my-list-weapon-empty{
  background:
    linear-gradient(90deg,rgba(123,85,168,.14),rgba(12,20,32,.97) 38%) !important;
}

/* Prevent a thin extra strip from appearing at the bottom of empty weapon panels. */
.my-list-card{
  overflow:hidden !important;
}


/* 0.8.48 — finish My List card bottoms + remove rarity text badges */

/* Every card is one vertical column; the lower weapon area owns all remaining height.
   This removes the thin unfinished strip seen at the bottom of some cards. */
.my-list-card{
  display:flex !important;
  flex-direction:column !important;
  height:100% !important;
  min-height:0 !important;
  overflow:hidden !important;
}
.my-list-hunter{
  flex:0 0 auto !important;
  width:100% !important;
}
.my-list-weapon{
  flex:1 0 126px !important;
  width:100% !important;
  min-height:126px !important;
  height:auto !important;
  margin:0 !important;
  border-top:1px solid #334154 !important;
  border-right:0 !important;
  border-bottom:0 !important;
  border-left:0 !important;
  border-radius:0 !important;
  box-sizing:border-box !important;
  background-clip:padding-box !important;
}
.my-list-weapon-empty{
  flex:1 0 126px !important;
  width:100% !important;
  min-height:126px !important;
  height:auto !important;
  margin:0 !important;
  padding:0 !important;
  border-top:1px solid #334154 !important;
  border-right:0 !important;
  border-bottom:0 !important;
  border-left:0 !important;
  border-radius:0 !important;
  box-sizing:border-box !important;
}

/* No visible SSR / SR text labels on My List cards. */
.my-list-rarity-label{
  display:none !important;
}


/* 0.8.49 — compact My List card height */
.my-list-card{
  height:auto !important;
  min-height:0 !important;
  align-self:start !important;
}
.my-list-hunter{
  flex:0 0 auto !important;
  min-height:160px !important;
}
.my-list-weapon{
  flex:0 0 auto !important;
  min-height:110px !important;
  height:auto !important;
}
.my-list-weapon-empty{
  flex:0 0 110px !important;
  min-height:110px !important;
  height:110px !important;
}


/* 0.8.50 — My List filters + aligned card sections */
.my-list-hunter{
  height:160px !important;
  min-height:160px !important;
  max-height:160px !important;
  overflow:hidden !important;
  align-items:stretch !important;
}
.my-list-art{
  height:160px !important;
  min-height:160px !important;
  max-height:160px !important;
  overflow:hidden !important;
}
.my-list-art>img{
  height:160px !important;
  min-height:160px !important;
  max-height:160px !important;
  object-fit:cover !important;
  object-position:center top !important;
}
.my-list-copy{
  height:160px !important;
  min-height:160px !important;
  max-height:160px !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
}

/* All weapon separators now start at exactly the same Y position. */
.my-list-weapon,
.my-list-weapon-empty{
  border-top:1px solid #334154 !important;
}

/* Carry rarity color further across the weapon area. */
.my-list-weapon.weapon-rarity-ssr{
  background:linear-gradient(90deg,rgba(180,68,82,.17),rgba(87,37,48,.10) 58%,rgba(12,20,32,.97) 82%) !important;
}
.my-list-weapon.weapon-rarity-sr{
  background:linear-gradient(90deg,rgba(123,85,168,.18),rgba(79,55,108,.10) 58%,rgba(12,20,32,.97) 82%) !important;
}
.my-list-weapon.weapon-rarity-r{
  background:linear-gradient(90deg,rgba(76,145,189,.18),rgba(49,92,120,.10) 58%,rgba(12,20,32,.97) 82%) !important;
}
.my-list-card.rarity-ssr .my-list-weapon-empty{
  background:linear-gradient(90deg,rgba(180,68,82,.17),rgba(87,37,48,.10) 58%,rgba(12,20,32,.97) 82%) !important;
}
.my-list-card.rarity-sr .my-list-weapon-empty{
  background:linear-gradient(90deg,rgba(123,85,168,.18),rgba(79,55,108,.10) 58%,rgba(12,20,32,.97) 82%) !important;
}

/* My List gets the exact same filter bar spacing as Builds. */
.my-list-filter-toolbar{
  margin-top:8px;
  margin-bottom:10px;
}


/* 0.8.51 — My List filter/edit polish */

/* Exact same lower-panel height for hunters with and without a weapon. */
.my-list-weapon,
.my-list-weapon-empty{
  flex:0 0 130px !important;
  height:130px !important;
  min-height:130px !important;
  max-height:130px !important;
  box-sizing:border-box !important;
}

/* Edit fields: keep labels readable and controls a little narrower. */
.my-list-card .progress-edit-row{
  grid-template-columns:100px minmax(0,140px) !important;
  justify-content:space-between;
  column-gap:8px;
}
.my-list-card .progress-edit-row label{
  min-width:0;
  white-space:nowrap;
  overflow:visible;
}
.my-list-card .progress-edit-row input,
.my-list-card .progress-edit-row select,
.my-list-card .growth-picker{
  width:140px !important;
  max-width:140px !important;
  justify-self:end;
}
.my-list-card .progress-max{
  grid-column:2 !important;
  width:140px;
  max-width:140px;
  justify-self:end;
}

/* Apply-to-all: more compact, closer to the size of normal cards. */
.my-list-bulk-card{
  padding:10px !important;
}
.my-list-bulk-head{
  margin-bottom:8px !important;
}
.bulk-progress-section{
  padding:8px !important;
}
.bulk-progress-section + .bulk-progress-section{
  margin-top:7px !important;
}
.bulk-progress-section h4{
  margin-bottom:6px !important;
}
.my-list-bulk-card .my-list-progress{
  gap:4px !important;
}
.my-list-apply-all{
  min-height:32px !important;
  margin-top:8px !important;
}

/* Growth menu must float above neighbouring cards, not be clipped behind them. */
.my-list-card{
  position:relative;
}
.my-list-grid{
  overflow:visible !important;
}
.my-list-card:has(.growth-picker-menu:not([hidden])){
  z-index:200 !important;
  overflow:visible !important;
}
.growth-picker{
  position:relative;
  z-index:1;
}
.growth-picker-menu{
  z-index:500 !important;
  max-height:220px !important;
  /* Scrollbar styling is shared globally below. */
}

/* Before the filter bar starts colliding, switch to the compact/mobile controls. */
@media(max-width:1200px){
  .hunter-filter-toolbar{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 42px 42px !important;
    gap:8px !important;
  }
  .hunter-filter-toolbar .search{
    grid-column:1 !important;
    grid-row:1 !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    height:38px;
  }
  .desktop-guild-filter,
  .desktop-hunter-filters{
    display:none !important;
  }
  .hunter-filter-toolbar .mobile-filter-open{
    display:inline-flex !important;
    grid-column:2 !important;
    grid-row:1 !important;
    width:42px !important;
    min-width:42px !important;
    height:38px !important;
    padding:0 !important;
  }
  .hunter-filter-toolbar .reset{
    grid-column:3 !important;
    grid-row:1 !important;
    width:42px !important;
    min-width:42px !important;
    max-width:42px !important;
    height:38px !important;
    margin:0 !important;
    padding:0 !important;
  }
  .hunter-filter-toolbar .reset-label{
    display:none !important;
  }
}


/* 0.8.52 — filters/class detection/weapon panel fixes */

/* Weapon panel was clipping Lv. at 130px. Give real content enough room,
   and make no-weapon cards exactly identical in section height. */
.my-list-weapon,
.my-list-weapon-empty{
  flex:0 0 146px !important;
  height:146px !important;
  min-height:146px !important;
  max-height:146px !important;
  overflow:hidden !important;
}
.my-list-weapon{
  padding-bottom:10px !important;
}
.my-list-weapon-empty{
  padding:0 !important;
}

/* Strong visible selected state in both Builds and My List. */
.hunter-filter-toolbar .filter.on{
  border-color:#ffd11a !important;
  box-shadow:0 0 0 1px rgba(255,209,26,.34) !important;
  background:#252312 !important;
}
.hunter-filter-toolbar .hunter-filter-ssr.on{
  border-color:#e45b68 !important;
  background:#7b2631 !important;
}
.hunter-filter-toolbar .hunter-filter-sr.on{
  border-color:#9569db !important;
  background:#553181 !important;
}

/* At medium desktop widths use compact Search + Filter + Reset before
   the long desktop filter row has any chance to overlap/escape. */
@media(max-width:1380px){
  .hunter-filter-toolbar{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 42px 42px !important;
    gap:8px !important;
    width:100% !important;
  }
  .hunter-filter-toolbar .search{
    grid-column:1 !important;
    grid-row:1 !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    height:38px !important;
  }
  .hunter-filter-toolbar .desktop-guild-filter,
  .hunter-filter-toolbar .desktop-hunter-filters{
    display:none !important;
  }
  .hunter-filter-toolbar .mobile-filter-open{
    display:inline-flex !important;
    grid-column:2 !important;
    grid-row:1 !important;
    width:42px !important;
    min-width:42px !important;
    height:38px !important;
    padding:0 !important;
  }
  .hunter-filter-toolbar .reset{
    grid-column:3 !important;
    grid-row:1 !important;
    width:42px !important;
    min-width:42px !important;
    max-width:42px !important;
    height:38px !important;
    margin:0 !important;
    padding:0 !important;
  }
  .hunter-filter-toolbar .reset-label{
    display:none !important;
  }
}

/* Full desktop: let the class group stay inside the toolbar instead of escaping. */
@media(min-width:1381px){
  .hunter-filter-toolbar .desktop-hunter-filters{
    min-width:0 !important;
    overflow:hidden !important;
  }
  .hunter-filter-toolbar .desktop-hunter-filters .filter{
    flex:0 0 auto;
  }
}


/* 0.8.53 — stable filter state + earlier compact toolbar */
@media(max-width:1500px){
  .hunter-filter-toolbar{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 42px 42px !important;
    gap:8px !important;
    width:100% !important;
  }
  .hunter-filter-toolbar .search{
    grid-column:1 !important;
    grid-row:1 !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    height:38px !important;
  }
  .hunter-filter-toolbar .desktop-guild-filter,
  .hunter-filter-toolbar .desktop-hunter-filters{
    display:none !important;
  }
  .hunter-filter-toolbar .mobile-filter-open{
    display:inline-flex !important;
    grid-column:2 !important;
    grid-row:1 !important;
    width:42px !important;
    min-width:42px !important;
    height:38px !important;
    padding:0 !important;
  }
  .hunter-filter-toolbar .reset{
    grid-column:3 !important;
    grid-row:1 !important;
    width:42px !important;
    min-width:42px !important;
    max-width:42px !important;
    height:38px !important;
    margin:0 !important;
    padding:0 !important;
  }
  .hunter-filter-toolbar .reset-label{
    display:none !important;
  }
}


/* 0.8.54 — Dark filter + compact filter modal + Growth overlay */

/* Growth dropdown must escape the fixed 160px Hunter section while open. */
.my-list-card:has(.growth-picker-menu:not([hidden])),
.my-list-card:has(.growth-picker-menu:not([hidden])) .my-list-hunter,
.my-list-card:has(.growth-picker-menu:not([hidden])) .my-list-copy{
  overflow:visible !important;
}
.my-list-card:has(.growth-picker-menu:not([hidden])){
  z-index:1000 !important;
}
.my-list-card:has(.growth-picker-menu:not([hidden])) .growth-picker,
.my-list-card:has(.growth-picker-menu:not([hidden])) .growth-picker-menu{
  z-index:1200 !important;
}
.growth-picker-menu{
  position:absolute !important;
  top:calc(100% + 4px) !important;
  left:0 !important;
  right:0 !important;
  z-index:1200 !important;
}

/* Filters dialog: narrower and vertically tighter. */
.mobile-filter-sheet{
  left:50% !important;
  right:auto !important;
  bottom:24px !important;
  width:min(760px,calc(100vw - 32px)) !important;
  max-height:min(76vh,640px) !important;
  transform:translateX(-50%);
  border:1px solid #344154 !important;
  border-radius:16px !important;
  overflow:hidden;
}
.mobile-filter-head{
  padding:10px 13px !important;
}
.mobile-filter-body{
  padding:12px 14px 14px !important;
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:12px 18px !important;
  align-content:start;
}
.mobile-filter-section{
  margin:0 !important;
  min-width:0;
}
.mobile-filter-section + .mobile-filter-section{
  margin-top:0 !important;
}
.mobile-filter-section h4{
  margin:0 0 7px !important;
}
.mobile-filter-grid{
  gap:6px !important;
}
.mobile-choice{
  min-height:36px !important;
}
.mobile-choice.icon-choice{
  width:40px !important;
  min-width:40px !important;
  height:40px !important;
  padding:4px !important;
}
.mobile-choice.icon-choice img{
  width:28px !important;
  height:28px !important;
}

/* Guild uses the whole second row. */
.mobile-filter-section:has(.mobile-guild-list){
  grid-column:1 / -1;
}
.mobile-guild-list{
  max-height:235px;
  overflow:auto;
  padding-right:3px;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:5px 8px !important;
}
.mobile-guild-choice{
  min-height:40px !important;
  padding:5px 8px !important;
}
.mobile-filter-actions{
  padding:10px 14px 12px !important;
}

/* On phones return to a bottom sheet and one-column layout. */
@media(max-width:600px){
  .mobile-filter-sheet{
    left:0 !important;
    right:0 !important;
    bottom:0 !important;
    width:100% !important;
    max-height:82vh !important;
    transform:none !important;
    border-radius:16px 16px 0 0 !important;
    border-bottom:0 !important;
  }
  .mobile-filter-body{
    grid-template-columns:1fr !important;
  }
  .mobile-filter-section:has(.mobile-guild-list){
    grid-column:1;
  }
  .mobile-guild-list{
    grid-template-columns:1fr !important;
  }
}


/* 0.8.55 — centered filter modal + one scrollbar for all filter sections */

/* Center the desktop/tablet filter window vertically and horizontally. */
.mobile-filter-sheet{
  top:50% !important;
  bottom:auto !important;
  left:50% !important;
  right:auto !important;
  transform:translate(-50%,-50%) !important;
  width:min(720px,calc(100vw - 32px)) !important;
  max-height:min(76vh,650px) !important;
  display:flex !important;
  flex-direction:column !important;
}

/* The whole content area scrolls, so Rarity / Element / Role / Guild
   are all part of the same scroll region. */
.mobile-filter-body{
  flex:1 1 auto !important;
  min-height:0 !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
}
/* Guild no longer owns a separate scrollbar. */
.mobile-guild-list{
  max-height:none !important;
  overflow:visible !important;
  padding-right:0 !important;
}

/* Keep header/actions fixed while only the middle scrolls. */
.mobile-filter-head,
.mobile-filter-actions{
  flex:0 0 auto !important;
}

/* Slightly tighter vertical rhythm. */
.mobile-filter-body{
  padding-top:10px !important;
  padding-bottom:10px !important;
}
.mobile-filter-section h4{
  margin-bottom:6px !important;
}

/* Phones remain a bottom sheet. */
@media(max-width:600px){
  .mobile-filter-sheet{
    top:auto !important;
    bottom:0 !important;
    left:0 !important;
    right:0 !important;
    transform:none !important;
    width:100% !important;
    max-height:82vh !important;
  }
}


/* 0.8.56 — Hunter Weapons My List */
.weapon-my-actions{
  margin:10px 0 12px;
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 10px;
  border:1px solid #29384a;
  border-radius:11px;
  background:#0d1622;
  font-size:12px;
}
.weapon-my-actions>div:last-child{display:flex;gap:8px}
.weapon-my-actions button,
.weapon-my-apply-all{
  min-height:34px;
  padding:0 13px;
  border:1px solid #40516a;
  border-radius:9px;
  background:#111d2d;
  color:#dce6f3;
  font-size:12px;
  font-weight:850;
  cursor:pointer;
}
.weapon-my-save,
.weapon-my-apply-all{
  border-color:#ffd11a !important;
  background:#ffd11a !important;
  color:#111722 !important;
}
.weapon-my-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:11px;
}
.weapon-my-card{
  min-height:190px;
  display:grid;
  grid-template-columns:96px minmax(0,1fr);
  overflow:hidden;
  border:1px solid #334154;
  border-radius:12px;
  background:#0f1825;
}
.weapon-my-card.rarity-ssr{
  background:linear-gradient(90deg,rgba(180,68,82,.18),rgba(15,24,37,.98) 54%);
}
.weapon-my-card.rarity-sr{
  background:linear-gradient(90deg,rgba(123,85,168,.18),rgba(15,24,37,.98) 54%);
}
.weapon-my-card.rarity-r{
  background:linear-gradient(90deg,rgba(76,145,189,.18),rgba(15,24,37,.98) 54%);
}
.weapon-my-card.not-owned{opacity:.72}
.weapon-my-art{
  position:relative;
  display:grid;
  place-items:center;
  min-height:190px;
  padding:8px;
  background:transparent;
}
.weapon-my-art>img{
  width:100%;
  height:100%;
  max-height:165px;
  object-fit:contain;
}
.weapon-my-art .weapon-element-badge{
  top:8px;
  left:8px;
}
.weapon-my-content{
  min-width:0;
  padding:12px 10px;
}
.weapon-my-content h3{
  margin:0 0 14px;
  font-size:16px;
  line-height:1.2;
}
.weapon-my-progress{
  display:grid;
  gap:10px;
}
.weapon-my-read-row,
.weapon-my-edit-row{
  display:grid;
  grid-template-columns:100px minmax(0,1fr);
  align-items:center;
  gap:8px;
  min-height:30px;
}
.weapon-my-read-row>span:first-child,
.weapon-my-edit-row label{
  color:#8798ae;
  font-size:12px;
  font-weight:850;
  text-transform:uppercase;
}
.weapon-my-read-row strong{
  justify-self:end;
  font-size:12px;
}
.weapon-progress-stars{
  justify-self:end;
  color:#ffd11a;
  font-size:18px;
  white-space:nowrap;
}
.weapon-progress-stars strong{
  font-weight:900;
}
.weapon-progress-not-owned{
  justify-self:end;
  color:#8e9caf;
  font-size:12px;
}
.weapon-my-edit-row select,
.weapon-my-edit-row input{
  width:100%;
  min-width:0;
  height:31px;
  padding:0 7px;
  border:1px solid #34465d;
  border-radius:7px;
  background:#0b1420;
  color:#e2eaf4;
  font-size:12px;
}
.weapon-my-edit-row small{
  grid-column:2;
  margin-top:-4px;
  color:#718299;
  font-size:11px;
  text-align:right;
}
.weapon-my-bulk{
  display:block;
  min-height:0;
  padding:10px;
  border-style:dashed;
  border-color:#ffd11a;
}
.weapon-my-bulk-head{
  display:flex;
  flex-direction:column;
  gap:2px;
  margin-bottom:10px;
}
.weapon-my-bulk-head strong{
  color:#ffd11a;
  font-size:16px;
}
.weapon-my-bulk-head span{
  color:#8e9caf;
  font-size:11px;
}
.weapon-my-bulk .weapon-my-edit-row{
  margin-top:7px;
}
.weapon-my-apply-all{
  width:100%;
  margin-top:10px;
}
@media(max-width:1200px){
  .weapon-my-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:900px){
  .weapon-my-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
  .weapon-my-grid{grid-template-columns:1fr}
}


/* 0.8.57 — Hunter Weapon filter responsive fix */
@media(max-width:1180px){
  .weapon-toolbar{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 42px 42px !important;
    gap:8px !important;
    width:100% !important;
  }
  .weapon-toolbar .search{
    grid-column:1 !important;
    grid-row:1 !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    height:38px !important;
  }
  .weapon-toolbar .desktop-weapon-filters{
    display:none !important;
  }
  .weapon-toolbar .mobile-filter-open{
    display:inline-flex !important;
    grid-column:2 !important;
    grid-row:1 !important;
    width:42px !important;
    min-width:42px !important;
    max-width:42px !important;
    height:38px !important;
    padding:0 !important;
  }
  .weapon-toolbar .weapon-reset{
    grid-column:3 !important;
    grid-row:1 !important;
    width:42px !important;
    min-width:42px !important;
    max-width:42px !important;
    height:38px !important;
    margin:0 !important;
    padding:0 !important;
  }
  .weapon-toolbar .reset-label{
    display:none !important;
  }
}

/* Full desktop: keep everything on one line without collisions. */
@media(min-width:1181px){
  .weapon-toolbar{
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
  }
  .weapon-toolbar .search{
    flex:1 1 320px !important;
    width:auto !important;
    min-width:220px !important;
    max-width:400px !important;
  }
  .weapon-toolbar .desktop-weapon-filters{
    display:flex !important;
    flex:0 1 auto !important;
    min-width:0 !important;
    gap:6px !important;
    overflow:hidden !important;
  }
  .weapon-toolbar .desktop-weapon-filters .filter{
    flex:0 0 auto !important;
  }
  .weapon-toolbar .weapon-reset{
    flex:0 0 auto !important;
    margin-left:auto !important;
  }
}


/* 0.8.58 — Apply-to-all keep-current option */
.bulk-keep-input,
.weapon-bulk-keep-input{
  text-align:left;
}
.bulk-growth-picker .growth-picker-toggle{
  grid-template-columns:minmax(0,1fr) 14px !important;
}
.bulk-growth-picker .growth-picker-toggle img{
  display:none;
}
.bulk-growth-picker .bulk-keep-value{
  font-weight:800;
}


/* 0.8.59 — Growth close/preview + numeric bulk level */
.bulk-growth-picker .growth-picker-toggle{
  grid-template-columns:24px minmax(0,1fr) 14px !important;
}
.bulk-growth-picker .growth-picker-toggle.is-keep{
  grid-template-columns:minmax(0,1fr) 14px !important;
}
.bulk-growth-picker .growth-picker-toggle img{
  display:block !important;
  width:24px !important;
  height:24px !important;
  object-fit:contain !important;
}
.bulk-growth-picker .growth-picker-toggle.is-keep img{
  display:none !important;
}


/* 0.8.60 — Hunter labels + Base Stats */
.base-stats-section{
  margin-top:14px;
}
.base-stats-section>h2{
  margin:0 0 10px;
  color:#ffd11a;
  font-size:14px;
  text-transform:uppercase;
  letter-spacing:.03em;
}
.base-stats-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.base-stat-card{
  min-height:140px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:14px 12px;
  border:1px solid #344154;
  border-radius:9px;
  background:#121b27;
  text-align:center;
}
.base-stat-card img{
  width:34px;
  height:34px;
  object-fit:contain;
  filter:drop-shadow(0 0 8px rgba(255,255,255,.20));
}
.base-stat-card h3{
  margin:0;
  color:#fff;
  font-size:16px;
  text-transform:uppercase;
}
.base-stat-range{
  color:#b8c6d9;
  font-size:14px;
}
.base-stat-adv{
  color:#b8c6d9;
  font-size:12px;
}
.base-stat-attack{
  border-color:#7d3b32;
  background:rgba(107,50,38,.32);
}
.base-stat-defense{
  border-color:#42505d;
  background:rgba(57,70,82,.34);
}
.base-stat-hp{
  border-color:#7a234d;
  background:rgba(89,30,61,.34);
}
@media(max-width:650px){
  .base-stats-grid{
    grid-template-columns:1fr;
    gap:8px;
  }
  .base-stat-card{
    min-height:104px;
    display:grid;
    grid-template-columns:38px minmax(0,1fr);
    grid-template-rows:auto auto auto;
    column-gap:10px;
    text-align:left;
    justify-items:start;
  }
  .base-stat-card img{
    grid-row:1 / 4;
    align-self:center;
  }
}


/* 0.8.61 — real stat icons */
.profile-stat-chip-list{
  display:flex !important;
  flex-wrap:wrap;
  gap:8px !important;
}
.profile-stat-chip{
  display:inline-flex !important;
  align-items:center;
  gap:7px;
  min-height:34px;
  padding:5px 9px !important;
}
.profile-stat-chip img{
  width:22px;
  height:22px;
  object-fit:contain;
  flex:0 0 22px;
}
.profile-stat-chip span{
  white-space:nowrap;
}


/* 0.8.62 — complete Recommended Stats / Combat Tags mapping */
.profile-tab-layout{
  grid-template-columns:160px minmax(360px,1.15fr) minmax(320px,1fr) !important;
  align-items:stretch;
}
.profile-tab-layout>.profile-block:first-child{
  min-width:0;
}
.profile-tab-layout>.profile-block:first-child .profile-level{
  font-size:22px;
}

/* Give Recommended Stats a little more room for icon + full labels. */
.profile-stat-chip-list{
  align-content:flex-start;
}
.profile-stat-chip{
  min-height:36px;
}
.profile-stat-chip img{
  width:24px;
  height:24px;
  flex-basis:24px;
}

/* Keep long combat-tag names readable instead of squeezing them. */
.profile-chip-list>span{
  white-space:nowrap;
}

@media(max-width:1050px){
  .profile-tab-layout{
    grid-template-columns:140px minmax(0,1fr) !important;
  }
  .profile-tab-layout>.profile-block:nth-child(3){
    grid-column:1 / -1;
  }
}
@media(max-width:700px){
  .profile-tab-layout{
    grid-template-columns:1fr !important;
  }
  .profile-tab-layout>.profile-block:nth-child(3){
    grid-column:auto;
  }
}


/* 0.8.63 — centered Profile summary blocks */
.profile-tab-layout > .profile-block:nth-child(1),
.profile-tab-layout > .profile-block:nth-child(2),
.profile-tab-layout > .profile-block:nth-child(3){
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.profile-tab-layout > .profile-block:nth-child(1) h3,
.profile-tab-layout > .profile-block:nth-child(2) h3,
.profile-tab-layout > .profile-block:nth-child(3) h3{
  width:100%;
  text-align:center;
}

.profile-tab-layout > .profile-block:nth-child(1) .profile-level{
  width:100%;
  text-align:center;
}

.profile-stat-chip-list,
.profile-tab-layout > .profile-block:nth-child(3) .profile-chip-list{
  width:100%;
  justify-content:center !important;
  align-items:center !important;
}

.profile-stat-chip,
.profile-tab-layout > .profile-block:nth-child(3) .profile-chip-list > span{
  justify-content:center;
}

.profile-tab-layout > .profile-block:nth-child(3) .detail-empty,
.profile-tab-layout > .profile-block:nth-child(2) .detail-empty{
  width:100%;
  text-align:center;
}


/* 0.8.64 — Shadows */
.shadow-toolbar{
  margin:10px 0 12px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border:1px solid #29384a;
  border-radius:11px;
  background:#0d1622;
}
.shadow-search{
  flex:1 1 360px;
  max-width:520px;
}
.shadow-filter-group{
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
}
.shadow-filter,
.shadow-reset{
  height:34px;
  min-width:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:0 8px;
  border:1px solid #34465d;
  border-radius:8px;
  background:#101a28;
  color:#dce6f3;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.shadow-filter img{width:22px;height:22px;object-fit:contain}
.shadow-filter.on{
  border-color:#ffd11a;
  background:#292512;
  box-shadow:0 0 0 1px rgba(255,209,26,.28);
}
.shadow-reset{
  margin-left:auto;
  color:#ff4a4a;
}
.shadow-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
}
.shadow-card{
  min-width:0;
  overflow:hidden;
  border:1px solid #3a4658;
  border-radius:12px;
  background:#111a27;
  color:#eef4fb;
  text-decoration:none;
}
.shadow-card-art{
  position:relative;
  height:210px;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:linear-gradient(180deg,#27344a,#111a27);
}
.shadow-card-art>img:not(.shadow-card-element){
  width:100%;
  height:100%;
  object-fit:contain;
}
.shadow-card-element{
  position:absolute;
  top:8px;
  left:8px;
  width:30px;
  height:30px;
  object-fit:contain;
}
.shadow-fallback{
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  color:#77879d;
  font-size:52px;
  font-weight:900;
}
.shadow-card-copy{
  min-height:58px;
  padding:8px 10px 10px;
}
.shadow-card-copy h3{
  margin:0;
  font-size:14px;
  line-height:1.2;
}
.shadow-card-copy span{
  display:block;
  margin-top:4px;
  color:#8798ae;
  font-size:11px;
}
.shadow-detail-hero{
  display:grid;
  grid-template-columns:minmax(320px,420px) minmax(0,1fr);
  gap:20px;
  align-items:stretch;
}
.shadow-detail-art{
  min-height:520px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px solid #2e3c50;
  border-radius:15px;
  background:#0c1522;
}
.shadow-detail-art>img{
  width:100%;
  height:100%;
  max-height:600px;
  object-fit:contain;
}
.shadow-facts{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}
.shadow-fact{
  min-height:58px;
  display:flex;
  flex-direction:column;
  gap:5px;
  padding:9px 10px;
  border:1px solid #2e3d51;
  border-radius:10px;
  background:#0b1420;
}
.shadow-fact b{
  color:#7f91aa;
  font-size:11px;
  text-transform:uppercase;
}
.shadow-fact span{
  font-size:14px;
  font-weight:800;
}
.shadow-tabs{
  margin-top:16px;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
.shadow-two-col{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:12px;
}
.shadow-effect-list{
  display:grid;
  gap:8px;
}
.shadow-effect-card{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:10px;
  align-items:start;
  padding:10px;
  border:1px solid #2c3b4e;
  border-radius:10px;
  background:#0c1623;
}
.shadow-effect-card>img{
  width:46px;
  height:46px;
  object-fit:contain;
}
.shadow-effect-card h3{
  margin:0 0 5px;
  font-size:14px;
}
.shadow-effect-card p{
  margin:0;
  color:#c9d4e2;
  font-size:12px;
  line-height:1.5;
}
.shadow-tier{
  display:inline-block;
  margin-bottom:4px;
  color:#ffd11a;
  font-size:11px;
  font-weight:900;
}
.shadow-description{
  color:#d9e2ee;
  line-height:1.6;
}
.shadow-profile-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:10px;
}
.shadow-profile-fact{
  min-height:58px;
  padding:9px 10px;
  border:1px solid #2d3c50;
  border-radius:9px;
  background:#0b1420;
}
.shadow-profile-fact b{
  display:block;
  margin-bottom:5px;
  color:#7f91aa;
  font-size:11px;
  text-transform:uppercase;
}
.shadow-profile-fact span{
  font-size:13px;
}
@media(max-width:1200px){
  .shadow-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:900px){
  .shadow-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .shadow-detail-hero{grid-template-columns:1fr}
  .shadow-detail-art{min-height:420px}
  .shadow-two-col{grid-template-columns:1fr}
}
@media(max-width:650px){
  .shadow-toolbar{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
  }
  .shadow-search{max-width:none}
  .shadow-filter-group{
    grid-column:1 / -1;
    flex-wrap:wrap;
  }
  .shadow-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .shadow-card-art{height:190px}
  .shadow-profile-grid{grid-template-columns:1fr}
}


/* 0.8.65 — Shadows aligned with Hunter cards */
.shadow-cards{
  display:grid !important;
  grid-template-columns:repeat(8,minmax(0,1fr)) !important;
  gap:8px !important;
}
.shadow-hunter-card{
  min-width:0;
}


.shadow-tile-badges{
  align-items:flex-start;
  gap:4px;
}
.shadow-rank-badge,
.shadow-type-badge{
  display:inline-flex;
  align-items:center;
  min-height:21px;
  padding:2px 6px;
  border:1px solid rgba(255,255,255,.24);
  border-radius:7px;
  background:rgba(7,12,20,.82);
  color:#fff;
  font-size:10px;
  font-weight:900;
  line-height:1;
}
.shadow-type-badge{
  color:#c9d6e8;
}
.shadow-detail-main{
  width:100%;
  height:100%;
  object-fit:contain;
}
.shadow-skill-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.shadow-skill-card{
  display:grid;
  grid-template-columns:72px minmax(0,1fr);
  gap:12px;
  padding:12px;
  border:1px solid #2e3d51;
  border-radius:11px;
  background:#0d1724;
}
.shadow-skill-icon{
  width:72px;
  height:72px;
  display:grid;
  place-items:center;
}
.shadow-skill-icon img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.shadow-skill-copy{min-width:0}
.shadow-skill-head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
}
.shadow-skill-head span{
  color:#8496ad;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
}
.shadow-skill-head h3{
  margin:3px 0 0;
  font-size:15px;
}
.shadow-skill-head b{
  color:#ffd11a;
  font-size:11px;
}
.shadow-skill-copy p{
  margin:9px 0;
  color:#cbd6e4;
  font-size:12px;
  line-height:1.5;
}
.shadow-skill-detail{
  color:#dbe5f2;
  font-size:12px;
  line-height:1.55;
}
.shadow-skill-detail .metric,
.shadow-skill-effects .metric{
  color:#fac800;
}
.shadow-skill-effects{
  display:grid;
  gap:7px;
  margin-top:10px;
}
.shadow-buff-row{
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  gap:8px;
  align-items:start;
  padding:7px 8px;
  border:1px solid #2c3b4e;
  border-radius:8px;
  background:#09131f;
  font-size:11px;
}
.shadow-buff-row img{
  width:34px;
  height:34px;
  object-fit:contain;
}
.shadow-ranks{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
}
.shadow-rank-card{
  padding:10px;
  border:1px solid #2e3d51;
  border-radius:10px;
  background:#0d1724;
}
.shadow-rank-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.shadow-rank-title strong{
  color:#ffd11a;
  font-size:14px;
}
.shadow-rank-title span{
  color:#9babc0;
  font-size:11px;
}
.shadow-rank-meta{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:5px;
  margin-top:8px;
  color:#aebcd0;
  font-size:11px;
}
.shadow-rank-card p{
  margin:8px 0 0;
  font-size:11px;
  line-height:1.45;
}
.shadow-authority-current{
  margin-bottom:9px;
  color:#ffd11a;
  font-size:13px;
  font-weight:800;
}
.shadow-authority-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
}
.shadow-authority-grid article{
  padding:9px;
  border:1px solid #2d3c50;
  border-radius:9px;
  background:#0b1420;
  font-size:11px;
}
.shadow-authority-grid b{
  display:block;
  margin-bottom:5px;
  color:#ffd11a;
}
@media(max-width:1400px){
  .shadow-cards{grid-template-columns:repeat(7,minmax(0,1fr)) !important}
}
@media(max-width:1200px){
  .shadow-cards{grid-template-columns:repeat(6,minmax(0,1fr)) !important}
}
@media(max-width:1000px){
  .shadow-cards{grid-template-columns:repeat(4,minmax(0,1fr)) !important}
  .shadow-ranks,.shadow-authority-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px){
  .shadow-cards{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  
  .shadow-skill-grid{grid-template-columns:1fr}
  .shadow-ranks,.shadow-authority-grid{grid-template-columns:1fr}
}


/* 0.8.66 — Shadows list exactly like Hunters, with purple background */
.shadow-toolbar-simple{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  width:100% !important;
}
.shadow-toolbar-simple .shadow-search{
  flex:1 1 auto !important;
  width:auto !important;
  max-width:none !important;
  min-width:0 !important;
}
.shadow-toolbar-simple .shadow-reset{
  flex:0 0 auto !important;
  height:34px !important;
  min-width:74px !important;
  padding:0 10px !important;
  color:#ff0000 !important;
}
.shadow-toolbar-simple .shadow-reset svg{
  width:14px;
  height:14px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
}

/* Same card proportions/layout as Hunters. */
.shadow-cards{
  display:grid !important;
  grid-template-columns:repeat(8,minmax(0,1fr)) !important;
  gap:8px !important;
}
.shadow-hunter-card{
  min-width:0 !important;
  border:1px solid #6f5a86 !important;
  border-radius:11px !important;
  overflow:hidden !important;
  background:linear-gradient(180deg,#5a3a7a 0%,#7650a0 100%) !important;
}


.shadow-hunter-card .tile-shade{
  background:linear-gradient(180deg,transparent 60%,rgba(24,11,37,.72) 100%) !important;
}
.shadow-hunter-card .tile-name{
  color:#fff !important;
}

/* Remove old Shadow-only badges completely. */
.shadow-tile-badges,
.shadow-rank-badge,
.shadow-type-badge{
  display:none !important;
}

@media(max-width:1400px){
  .shadow-cards{grid-template-columns:repeat(7,minmax(0,1fr)) !important}
}
@media(max-width:1200px){
  .shadow-cards{grid-template-columns:repeat(6,minmax(0,1fr)) !important}
}
@media(max-width:1000px){
  .shadow-cards{grid-template-columns:repeat(4,minmax(0,1fr)) !important}
}
@media(max-width:700px){
  .shadow-cards{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  .shadow-toolbar-simple{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 42px !important;
  }
  .shadow-toolbar-simple .shadow-reset{
    width:42px !important;
    min-width:42px !important;
    padding:0 !important;
  }
  .shadow-toolbar-simple .shadow-reset span{
    display:none !important;
  }
}


/* Same dimensions/offset as Hunters: slightly oversized and anchored to bottom.
   This removes the empty margins and the apparent side shift. */


/* Previous mobile Shadow rule must not change artwork geometry. */
@media(max-width:700px){
  
}


/* 0.8.68 — Shadows inherit Hunter card geometry 1:1.
   Only the color theme differs. */
.shadow-hunter-card{
  border-color:#6f5a86 !important;
  background:linear-gradient(145deg,#4b326d 0%,#624187 55%,#7952a3 100%) !important;
}
.shadow-hunter-card .tile-art{
  background:
    radial-gradient(circle at 55% 25%,rgba(255,255,255,.09),transparent 32%),
    linear-gradient(145deg,#4b326d 0%,#624187 55%,#7952a3 100%) !important;
}
.shadow-hunter-card:hover{
  border-color:#9270b2 !important;
}


/* 0.8.69 — Shadow detail tabs / rank gallery / Armament / Story */
.shadow-tabs-four{
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
}
.shadow-rank-stage{
  position:relative !important;
}
.shadow-rank-stage .shadow-detail-main{
  display:block;
}
.shadow-rank-caption{
  position:absolute;
  left:50%;
  bottom:12px;
  z-index:7;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:8px;
  min-width:118px;
  justify-content:center;
  padding:6px 10px;
  border:1px solid #42536b;
  border-radius:10px;
  background:rgba(7,12,20,.84);
  backdrop-filter:blur(7px);
  color:#e8eef7;
  font-size:11px;
}
.shadow-rank-caption strong{
  color:#ffd11a;
  font-size:12px;
}
.shadow-rank-arrow{
  position:absolute !important;
  top:50% !important;
  z-index:8 !important;
  transform:translateY(-50%) !important;
  display:grid !important;
  place-items:center !important;
  width:38px !important;
  height:44px !important;
  padding:0 !important;
  border:1px solid #40516a !important;
  border-radius:10px !important;
  background:rgba(7,12,20,.78) !important;
  color:#fff !important;
  line-height:0 !important;
}
.shadow-rank-prev{left:10px !important}
.shadow-rank-next{right:10px !important}
.shadow-rank-arrow svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.5;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.shadow-armament-section{
  margin-top:12px;
}
.shadow-armament-hero{
  display:grid;
  grid-template-columns:minmax(260px,360px) minmax(0,1fr);
  gap:16px;
}
.shadow-armament-art{
  min-height:320px;
  display:grid;
  place-items:center;
  border:1px solid #2e3d51;
  border-radius:13px;
  background:#0c1522;
  overflow:hidden;
}
.shadow-armament-art img{
  width:100%;
  height:100%;
  max-height:360px;
  object-fit:contain;
}
.shadow-armament-panel{
  min-height:320px;
}
.shadow-armament-unlock{
  margin-top:12px;
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:9px 10px;
  border:1px solid #2e3d51;
  border-radius:9px;
  background:#0b1420;
}
.shadow-armament-unlock b{
  color:#7f91aa;
  font-size:11px;
  text-transform:uppercase;
}
.shadow-armament-max{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}
.shadow-armament-max span{
  padding:7px 9px;
  border:1px solid #2d3c50;
  border-radius:8px;
  background:#0b1420;
  font-size:12px;
}
.shadow-armament-stages{
  margin-top:12px;
}
.shadow-story-section{
  margin-top:12px;
}
.shadow-story-list{
  display:grid;
  gap:10px;
}
.shadow-story-list p{
  margin:0;
  padding:12px 14px;
  border:1px solid #2d3c50;
  border-radius:10px;
  background:#0c1623;
  color:#d7e0ec;
  font-size:13px;
  line-height:1.65;
}
@media(max-width:800px){
  .shadow-tabs-four{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  .shadow-armament-hero{
    grid-template-columns:1fr;
  }
}


/* 0.8.70 — Shadow detail cleanup */
.shadow-authority-compact{
  margin-top:12px;
}
.shadow-authority-summary{
  padding:14px 16px;
  border:1px solid #2d3c50;
  border-radius:10px;
  background:#0c1623;
  font-size:14px;
  line-height:1.6;
}
.shadow-story-hunter-style{
  margin-top:12px;
}
.shadow-story-hunter-style .story-card{
  padding:14px 16px;
}
.shadow-story-hunter-style .story-card p{
  margin:9px 0 0;
}
.shadow-skill-detail .adv-buff-block{
  margin-top:8px;
}
.shadow-skill-detail .buff-title{
  margin-top:10px;
}


/* 0.8.71 — Shadow polish */

/* Shadow tabs use the exact Hunter tab appearance. */
.shadow-tabs{
  margin-top:16px !important;
  padding:4px !important;
  gap:6px !important;
  border:1px solid #29384a !important;
  border-radius:11px !important;
  background:#0d1622 !important;
}
.shadow-tabs-four{
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
}
.shadow-tabs .hunter-tab-btn{
  min-height:38px !important;
  border:0 !important;
  border-radius:8px !important;
  background:transparent !important;
  color:#9eafc4 !important;
  font-size:12px !important;
  font-weight:800 !important;
}
.shadow-tabs .hunter-tab-btn.active{
  background:#ffd21f !important;
  color:#080b10 !important;
  box-shadow:none !important;
}

/* The separator is part of the highlighted damage range too. */
.metric-range-separator{
  color:#fac800 !important;
  font-weight:700;
}

/* Minimum readable size on Shadow pages: 12px. */
body:has(a[href="/shadows"].active) #app,
body:has(a[href="/shadows"].active) #app button,
body:has(a[href="/shadows"].active) #app input,
body:has(a[href="/shadows"].active) #app select,
body:has(a[href="/shadows"].active) #app textarea{
  font-size:12px;
}
body:has(a[href="/shadows"].active) #app .shadow-card-copy span,
body:has(a[href="/shadows"].active) #app .shadow-rank-badge,
body:has(a[href="/shadows"].active) #app .shadow-type-badge,
body:has(a[href="/shadows"].active) #app .shadow-fact b,
body:has(a[href="/shadows"].active) #app .shadow-skill-head span,
body:has(a[href="/shadows"].active) #app .shadow-skill-head b,
body:has(a[href="/shadows"].active) #app .shadow-tier,
body:has(a[href="/shadows"].active) #app .shadow-buff-row,
body:has(a[href="/shadows"].active) #app .shadow-rank-title span,
body:has(a[href="/shadows"].active) #app .shadow-rank-meta,
body:has(a[href="/shadows"].active) #app .shadow-rank-card p,
body:has(a[href="/shadows"].active) #app .shadow-authority-grid article,
body:has(a[href="/shadows"].active) #app .shadow-rank-caption{
  font-size:12px !important;
}

/* Slightly scale the normal text above the minimum so hierarchy remains visible. */
body:has(a[href="/shadows"].active) #app .shadow-skill-detail,
body:has(a[href="/shadows"].active) #app .shadow-skill-copy p,
body:has(a[href="/shadows"].active) #app .shadow-armament-max span{
  font-size:13px !important;
}
body:has(a[href="/shadows"].active) #app .shadow-skill-head h3,
body:has(a[href="/shadows"].active) #app .shadow-fact span{
  font-size:14px !important;
}
body:has(a[href="/shadows"].active) #app .shadow-authority-summary{
  font-size:14px !important;
}

@media(max-width:800px){
  .shadow-tabs-four{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}


/* 0.8.72 — Shadow detail matches Hunter detail */

/* Same bright radial background used by the Hunter portrait panel. */
.shadow-detail-art{
  background:radial-gradient(circle at 50% 28%,#263954,#0c1320 70%) !important;
}

/* Exact Hunter tab distribution: all four tabs fill the entire row evenly. */
.hunter-tabs.shadow-tabs-four{
  display:flex !important;
  width:100% !important;
  gap:8px !important;
  overflow:visible !important;
  box-sizing:border-box !important;
}
.hunter-tabs.shadow-tabs-four .hunter-tab{
  flex:1 1 0 !important;
  min-width:0 !important;
  text-align:center !important;
}

/* Undo the older Shadow-specific tab overrides; Hunter classes control appearance. */
.shadow-tabs,
.shadow-tabs .hunter-tab-btn,
.shadow-tabs .hunter-tab-btn.active{
  all:unset;
}

@media(max-width:800px){
  .hunter-tabs.shadow-tabs-four{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  .hunter-tabs.shadow-tabs-four .hunter-tab{
    width:100% !important;
  }
}


/* 0.8.73 — Shadow detail visual language matched to Hunter */

/* Overall Shadow detail panels use the same surfaces as Hunter. */
body:has(a[href="/shadows"].active) #app .detail-panel,
body:has(a[href="/shadows"].active) #app .detail-wide-section,
body:has(a[href="/shadows"].active) #app .shadow-authority-summary,
body:has(a[href="/shadows"].active) #app .shadow-skill-card,
body:has(a[href="/shadows"].active) #app .shadow-buff-row,
body:has(a[href="/shadows"].active) #app .shadow-armament-art,
body:has(a[href="/shadows"].active) #app .shadow-armament-unlock,
body:has(a[href="/shadows"].active) #app .shadow-armament-max span,
body:has(a[href="/shadows"].active) #app .shadow-rank-card,
body:has(a[href="/shadows"].active) #app .shadow-authority-grid article,
body:has(a[href="/shadows"].active) #app .story-card{
  background:#0d1622 !important;
  border-color:#29384a !important;
}

/* Fact boxes exactly like Hunter fact boxes. */
body:has(a[href="/shadows"].active) #app .shadow-fact{
  padding:12px !important;
  border:1px solid #29364a !important;
  border-radius:12px !important;
  background:#0d1522 !important;
}
body:has(a[href="/shadows"].active) #app .shadow-fact b{
  color:#7f91aa !important;
  font-size:11px !important;
  text-transform:uppercase !important;
  margin-bottom:5px !important;
}
body:has(a[href="/shadows"].active) #app .shadow-fact span{
  font-size:14px !important;
  font-weight:400 !important;
}

/* Main portrait area gets the same layered Hunter-style glow,
   but purple instead of red. */
.shadow-detail-art{
  background:
    radial-gradient(circle at 50% 24%,rgba(202,159,255,.20),transparent 33%),
    radial-gradient(circle at 50% 76%,rgba(128,74,183,.14),transparent 48%),
    linear-gradient(180deg,#172134 0%,#101827 100%) !important;
  border-color:#29384a !important;
}

/* List cards: same visual treatment as Hunter cards, purple palette. */
.shadow-hunter-card{
  border:1px solid #6f507f !important;
  border-radius:14px !important;
  background:
    linear-gradient(145deg,#3d2b4e 0%,#5b3675 50%,#754594 100%) !important;
  box-shadow:
    inset 0 0 35px rgba(255,255,255,.04),
    inset 0 -26px 45px rgba(26,8,40,.18) !important;
}
.shadow-hunter-card:hover{
  border-color:#9d78b7 !important;
  box-shadow:0 12px 28px rgba(0,0,0,.34) !important;
}
.shadow-hunter-card .tile-art{
  background:
    radial-gradient(circle at 55% 25%,rgba(255,255,255,.10),transparent 32%),
    linear-gradient(145deg,#3b2a4a,#5f397a 57%,#7b4b9c) !important;
}
.shadow-hunter-card .tile-shade{
  background:
    linear-gradient(180deg,transparent 58%,rgba(38,15,54,.22) 72%,rgba(18,7,28,.94) 100%) !important;
}

/* Same text hierarchy as Hunters. */
body:has(a[href="/shadows"].active) #app{
  font-size:13px !important;
}
body:has(a[href="/shadows"].active) #app .detail-title h1{
  margin:0 !important;
  color:var(--gold) !important;
  font-size:34px !important;
  font-weight:900 !important;
  line-height:1.1 !important;
}
body:has(a[href="/shadows"].active) #app .detail-title > div > div{
  font-size:13px !important;
  color:#d4dce7 !important;
}
body:has(a[href="/shadows"].active) #app h2{
  font-size:18px !important;
  font-weight:900 !important;
}
body:has(a[href="/shadows"].active) #app h3{
  font-size:14px !important;
  font-weight:900 !important;
}
body:has(a[href="/shadows"].active) #app .shadow-skill-head span,
body:has(a[href="/shadows"].active) #app .shadow-skill-head b,
body:has(a[href="/shadows"].active) #app .shadow-buff-row,
body:has(a[href="/shadows"].active) #app .shadow-rank-title span,
body:has(a[href="/shadows"].active) #app .shadow-rank-meta,
body:has(a[href="/shadows"].active) #app .shadow-rank-card p,
body:has(a[href="/shadows"].active) #app .shadow-authority-grid article,
body:has(a[href="/shadows"].active) #app .shadow-rank-caption{
  font-size:12px !important;
}
body:has(a[href="/shadows"].active) #app .shadow-skill-copy p,
body:has(a[href="/shadows"].active) #app .shadow-skill-detail,
body:has(a[href="/shadows"].active) #app .shadow-authority-summary,
body:has(a[href="/shadows"].active) #app .weapon-description,
body:has(a[href="/shadows"].active) #app .story-card p{
  font-size:13px !important;
  line-height:1.5 !important;
}

/* Tabs: same proportions, centering and typography as Hunter tabs. */
.hunter-tabs.shadow-tabs-four{
  padding:4px !important;
  border:1px solid #29384a !important;
  border-radius:13px !important;
  background:#0d1622 !important;
}
.hunter-tabs.shadow-tabs-four .hunter-tab{
  padding:11px 16px !important;
  border:1px solid transparent !important;
  border-radius:9px !important;
  color:#9cabc0 !important;
  font-size:13px !important;
  font-weight:800 !important;
}
.hunter-tabs.shadow-tabs-four .hunter-tab:hover{
  background:#121e2d !important;
  color:#e7edf5 !important;
}
.hunter-tabs.shadow-tabs-four .hunter-tab.is-active{
  background:#ffd11a !important;
  border-color:#ffd11a !important;
  color:#111722 !important;
}

/* Match Hunter portrait controls/caption styling. */
.shadow-rank-arrow{
  border:1px solid #3a4a5e !important;
  border-radius:11px !important;
  background:rgba(9,17,28,.82) !important;
  backdrop-filter:blur(7px) !important;
}
.shadow-rank-arrow:hover{
  background:rgba(28,43,61,.94) !important;
}
.shadow-rank-caption{
  padding:8px 11px !important;
  border:1px solid #29384a !important;
  border-radius:10px !important;
  background:#0d1724 !important;
  color:#c9d4e2 !important;
}


/* 0.8.74 — Shadow + Armament zoom/download */
.shadow-zoomable{
  cursor:zoom-in !important;
}
.shadow-rank-stage.shadow-zoomable .shadow-detail-main,
.shadow-armament-art.shadow-zoomable img{
  transition:transform .18s ease,filter .18s ease;
}
.shadow-rank-stage.shadow-zoomable:hover .shadow-detail-main,
.shadow-armament-art.shadow-zoomable:hover img{
  transform:scale(1.018);
  filter:drop-shadow(0 9px 15px rgba(0,0,0,.28));
}
.shadow-rank-arrow{
  cursor:pointer !important;
}

/* Keep the same lightbox language as Hunter, with enough room for Shadow art. */
.shadow-image-lightbox .lightbox-dialog{
  width:min(920px,94vw) !important;
  max-height:92vh !important;
}
.shadow-image-lightbox .shadow-lightbox-stage{
  min-height:min(650px,calc(88vh - 150px)) !important;
}
.shadow-image-lightbox .shadow-lightbox-image{
  max-width:100% !important;
  max-height:min(650px,calc(88vh - 150px)) !important;
  object-fit:contain !important;
}
.shadow-image-lightbox .shadow-lightbox-info{
  min-height:0 !important;
}
.shadow-image-lightbox .lightbox-footer{
  margin-top:8px !important;
}


/* 0.8.75 — lightbox owns scrolling; page behind it stays fixed */
.shadow-image-lightbox{
  overscroll-behavior:contain !important;
}
.shadow-image-lightbox .lightbox-dialog{
  overscroll-behavior:contain !important;
}


/* 0.8.77 — global page background */
html,
body{
  min-height:100%;
}
html{
  min-height:100vh;
  background:url('/images2/Page_BG.jpg') center top / cover fixed no-repeat !important;
}
body{
  min-height:100vh;
  background:transparent !important;
}


/* 0.9.2 — Posts Stage 2: list / filters / cards / pagination */
.posts-page-head{
  align-items:end;
  margin-bottom:14px;
}
.posts-filter-shell{
  margin-bottom:15px;
}
.posts-desktop-filters{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:7px;
}
.posts-filter{
  min-height:42px;
  padding:7px 8px;
  border:1px solid #34465d;
  border-radius:10px;
  background:rgba(13,22,34,.92);
  color:#d3dce8;
  cursor:pointer;
  font-size:12px;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  transition:.16s background,.16s color,.16s border-color;
}
.posts-filter:hover{
  background:#172436;
  color:#fff;
}
.posts-filter.active{
  border-color:#ffd11a;
  background:#ffd11a;
  color:#111722;
}
.posts-filter-label{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.posts-filter-count{
  display:inline-grid;
  place-items:center;
  min-width:22px;
  height:20px;
  padding:0 5px;
  border-radius:6px;
  background:rgba(255,255,255,.08);
  font-size:11px;
  line-height:1;
}
.posts-filter.active .posts-filter-count{
  background:rgba(0,0,0,.14);
}
.posts-mobile-filter{
  display:none;
}
.posts-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.post-card{
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:12px;
  padding:15px;
  border:1px solid rgba(71,85,105,.68);
  border-radius:16px;
  background:rgba(13,22,34,.93);
  box-shadow:0 12px 30px rgba(0,0,0,.14);
  color:#e8eef7;
  transition:.18s transform,.18s border-color,.18s box-shadow;
}
.post-card:hover{
  transform:translateY(-3px);
  border-color:#64748b;
  box-shadow:0 16px 38px rgba(0,0,0,.28);
}
.post-chips{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  align-items:center;
}
.post-category,
.post-source-chip,
.post-new-chip,
.post-updated-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  width:max-content;
  min-height:27px;
  padding:5px 10px;
  border-radius:8px;
  font-size:12px;
  font-weight:800;
}
.post-category{
  border:1px solid transparent;
  background:#172232;
  color:#fff;
}
.post-category-notice{background:#facc15;color:#000}
.post-category-devnotes{background:#22d3ee;color:#0f172a}
.post-category-updates{background:#0d6efd;color:#fff}
.post-category-events{background:#e879f9;color:#0f172a}
.post-category-packages{background:#34d399;color:#0f172a}
.post-category-cmnotes{background:#c084fc;color:#0f172a}
.post-source-chip{
  background:rgba(51,65,85,.92);
  color:#fff;
  border:1px solid rgba(100,116,139,.6);
}
.post-source-chip.website{
  background:rgba(30,41,59,.9);
  color:#fff;
  border:1px solid rgba(100,116,139,.6);
}
.post-new-chip{
  background:#f43f5e;
  color:#fff;
}
.post-updated-chip{
  width:auto;
  flex-shrink:0;
  white-space:nowrap;
  line-height:1.2;
  padding:5px 10px;
  background:#34d399;
  color:#020617;
}
.post-category i,
.post-source-chip i,
.post-new-chip i,
.post-updated-chip i{
  flex-shrink:0;
  font-size:12px;
}
.post-card-title{
  color:#fff;
  text-decoration:none;
  font-size:18px;
  font-weight:900;
  line-height:1.3;
  overflow-wrap:anywhere;
}
.post-card-title:hover{
  color:#fde047;
}
.post-card-meta{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  color:#aab7c8;
  font-size:12px;
}
.post-meta-item{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.post-meta-icon{
  color:#93a4b8;
  font-size:13px;
}
.post-card-image-link{
  display:block;
  overflow:hidden;
  border-radius:12px;
}
.post-card-cover{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:740 / 200;
  object-fit:cover;
  border:1px solid #334155;
  border-radius:12px;
  background:#0b1220;
  transition:transform .2s ease;
}
.post-card:hover .post-card-cover{
  transform:scale(1.012);
}
.post-card-excerpt{
  display:-webkit-box;
  margin:0;
  overflow:hidden;
  color:#d3dce8;
  font-size:13px;
  line-height:1.65;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  white-space:pre-wrap;
}
.post-card-actions{
  display:flex;
  gap:8px;
  margin-top:auto;
  padding-top:4px;
  border-top:1px solid rgba(71,85,105,.32);
}
.post-read-more{
  display:flex;
  flex:1;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:43px;
  border-radius:11px;
  background:#2563eb;
  color:#fff!important;
  text-decoration:none;
  font-size:13px;
  font-weight:900;
}
.post-read-more:hover{
  background:#3b82f6;
}
.post-source-button{
  display:grid;
  width:44px;
  min-height:43px;
  place-items:center;
  border:1px solid #475569;
  border-radius:11px;
  background:#1e293b;
  color:#fff!important;
  text-decoration:none;
  font-size:18px;
}
.post-source-button:hover{
  background:#334155;
}
.posts-pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0;
  margin:22px 0 5px;
}
.posts-page-btn{
  height:40px;
  min-width:40px;
  padding:0 12px;
  border:1px solid #475569;
  border-right:0;
  border-radius:0;
  background:rgba(17,28,42,.94);
  color:#e7edf5;
  cursor:pointer;
  font-size:12px;
  font-weight:800;
}
.posts-page-btn:first-child{
  border-radius:9px 0 0 9px;
}
.posts-page-btn:last-child{
  border-right:1px solid #475569;
  border-radius:0 9px 9px 0;
}
.posts-page-btn:hover:not(:disabled):not(.active){
  background:#1d2d41;
}
.posts-page-btn.active{
  border-color:#ffd11a;
  background:#ffd11a;
  color:#111722;
}
.posts-page-btn:disabled{
  color:#637086;
  cursor:not-allowed;
  opacity:.55;
}
.posts-page-arrow{
  font-size:20px;
  line-height:1;
}
.posts-empty{
  grid-column:1/-1;
}
.posts-stage2-detail{
  display:grid;
  gap:14px;
}
.posts-stage2-detail .detail-panel{
  padding:20px;
}
.posts-filter-modal[hidden]{
  display:none!important;
}

@media(max-width:1000px){
  .posts-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .posts-desktop-filters{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}
@media(max-width:680px){
  .posts-desktop-filters{
    display:none;
  }
  .posts-mobile-filter{
    display:block;
  }
  .posts-mobile-filter-open{
    width:100%;
    min-height:44px;
    padding:0 13px;
    border:1px solid #34465d;
    border-radius:11px;
    background:rgba(13,22,34,.94);
    color:#e7edf5;
    display:flex;
    align-items:center;
    justify-content:space-between;
    font-size:13px;
    font-weight:850;
  }
  .posts-filter-modal{
    position:fixed;
    inset:0;
    z-index:10020;
    display:grid;
    align-items:center;
    justify-items:center;
    padding:12px;
    background:rgba(2,6,12,.72);
    backdrop-filter:blur(5px);
  }
  .posts-filter-sheet{
    width:min(520px,100%);
    margin:0 auto;
    max-height:calc(100dvh - 24px);
    overflow-y:auto;
    padding:12px;
    border:1px solid #34465d;
    border-radius:17px;
    background:#0d1622;
    box-shadow:0 24px 70px rgba(0,0,0,.55);
  }
  .posts-filter-sheet-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:46px;
    padding:0 2px;
    margin-bottom:10px;
  }
  .posts-filter-sheet-head strong{
    display:flex;
    align-items:center;
    min-height:36px;
    font-size:14px;
  }
  .posts-filter-sheet-head button{
    align-self:center;
    margin:0;
    width:36px;
    height:36px;
    border:1px solid #3a4a5e;
    border-radius:9px;
    background:#111d2b;
    color:#fff;
    cursor:pointer;
    font-size:22px;
  }
  .posts-filter-options{
    display:grid;
    gap:7px;
  }
  .posts-filter-option{
    min-height:44px;
    padding:0 12px;
    border:1px solid #34465d;
    border-radius:10px;
    background:#111c2a;
    color:#e7edf5;
    display:flex;
    align-items:center;
    justify-content:space-between;
    cursor:pointer;
    font-size:13px;
    font-weight:800;
  }
  .posts-filter-option b{
    min-width:25px;
    padding:3px 6px;
    border-radius:6px;
    background:#243247;
    font-size:11px;
  }
  .posts-filter-option.active{
    border-color:#ffd11a;
    background:#ffd11a;
    color:#111722;
  }
  .posts-filter-option.active b{
    background:rgba(0,0,0,.14);
  }
}
@media(max-width:620px){
  .posts-grid{
    grid-template-columns:1fr;
  }
  .post-card{
    padding:12px;
  }
  .posts-page-head{
    align-items:start;
  }
  }


/* Better compact mobile header/navigation. */
@media(max-width:680px){
  .topbar{
    min-height:60px;
    padding:0 8px !important;
    gap:8px !important;
    overflow:hidden;
  }
  .topbar .brand{
    flex:0 0 auto;
    font-size:18px;
  }
  .topbar nav{
    min-width:0;
    flex:1 1 auto;
    display:flex;
    align-items:center;
    gap:5px;
    overflow-x:auto;
    overflow-y:hidden;
    white-space:nowrap;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .topbar nav::-webkit-scrollbar{
    display:none;
  }
  .topbar nav a,
  .topbar nav span{
    flex:0 0 auto;
    white-space:nowrap;
    line-height:1;
  }
  .topbar nav a{
    min-height:34px;
    padding:0 10px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:9px;
    font-size:12px;
  }
  .topbar .status-dot{
    display:none;
  }

  #app{
    width:100%;
    max-width:none;
    padding:16px 8px 22px !important;
  }
  .posts-page-head{
    display:block;
    margin-bottom:10px;
  }
  .posts-page-head h1{
    margin-bottom:4px;
    font-size:22px;
    line-height:1.15;
  }
  .posts-page-head p{
    max-width:none;
    margin:0;
    font-size:12px;
    line-height:1.35;
  }
  .posts-filter-shell{
    margin-bottom:10px;
  }
  .posts-mobile-filter-open{
    min-height:42px;
    border-radius:10px;
    font-size:12px;
  }
  .posts-grid{
    gap:12px;
  }
  .post-card{
    gap:9px;
    padding:10px;
    border-radius:13px;
  }
  .post-chips{
    gap:5px;
  }
  .post-category,
  .post-source-chip,
  .post-new-chip,
  .post-updated-chip{
    min-height:24px;
    padding:3px 7px;
    border-radius:7px;
    font-size:10px;
  }
  .post-updated-chip{
    width:auto;
    padding:3px 7px;
  }
  .post-card-title{
    font-size:16px;
    line-height:1.28;
  }
  .post-card-meta{
    gap:9px;
    font-size:11px;
  }
  .post-card-image-link{
    border-radius:9px;
  }
  .post-card-cover{
    aspect-ratio:740 / 200;
    border-radius:9px;
  }
  .post-card-excerpt{
    font-size:12px;
    line-height:1.55;
    -webkit-line-clamp:4;
  }
  .post-card-actions{
    gap:6px;
    padding-top:7px;
  }
  .post-read-more{
    min-height:40px;
    border-radius:9px;
    font-size:12px;
  }
  .post-source-button{
    width:40px;
    min-height:40px;
    border-radius:9px;
    font-size:17px;
  }
  .posts-pagination{
    gap:0;
    margin-top:16px;
    overflow-x:auto;
    justify-content:flex-start;
    padding-bottom:3px;
    scrollbar-width:none;
  }
  .posts-pagination::-webkit-scrollbar{
    display:none;
  }
  .posts-page-btn{
    flex:0 0 auto;
    height:38px;
    min-width:38px;
    padding:0 10px;
  }
}

@media(max-width:420px){
  .topbar .brand{
    font-size:17px;
  }
  .topbar nav a{
    padding:0 8px;
    font-size:11px;
  }
  #app{
    padding-left:7px !important;
    padding-right:7px !important;
  }
  .post-card{
    padding:9px;
  }
}

/* Posts filter icons and mobile selection alignment */
.posts-filter > .fa-solid{
  flex:0 0 15px;
  width:15px;
  text-align:center;
  font-size:12px;
}
.posts-filter-option-label{
  display:inline-flex;
  align-items:center;
  gap:9px;
}
.posts-filter-option-label > .fa-solid{
  flex:0 0 16px;
  width:16px;
  text-align:center;
}
.posts-mobile-filter-current{
  display:inline-flex;
  align-items:center;
  gap:8px;
}


/* SLAHub navigation — header and sidebar without duplicate branding/status. */
:root{--sla-sidebar-open:264px;--sla-sidebar-closed:76px;--sla-sidebar-width:var(--sla-sidebar-open)}
html.sla-nav-collapsed{--sla-sidebar-width:var(--sla-sidebar-closed)}
.sla-header{position:fixed;inset:0 0 auto 0;height:60px;z-index:70;padding:0 25px;gap:12px;overflow:visible}
.sla-header .brand{font-size:19px}
.sla-mobile-trigger{display:none}
.sla-sidebar{position:fixed;z-index:65;top:60px;bottom:0;left:0;width:var(--sla-sidebar-width);background:linear-gradient(165deg,rgba(17,26,43,.98),rgba(9,15,26,.99));border-right:1px solid #2b384b;display:flex;flex-direction:column;padding:12px 12px 17px;overflow-x:hidden;overflow-y:auto;transition:width .25s ease,transform .25s ease;box-shadow:10px 0 30px rgba(0,0,0,.11)}
.sla-sidebar nav.sla-side-nav{flex:0 0 auto;min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:5px}
.sla-side-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:38px;margin-bottom:9px;padding:0 5px}
.sla-side-collapse,.sla-side-close{width:34px;height:34px;border:1px solid #344155;border-radius:9px;background:#151f30;color:#aabbd3;cursor:pointer;flex-shrink:0}
.sla-side-close{display:none}
.sla-side-section-label{color:#70829b;font-weight:900;letter-spacing:.14em;font-size:10px;margin:0 10px 12px;white-space:nowrap}
.sla-side-head .sla-side-section-label{margin:0 0 0 5px;min-width:0}
.sla-sidebar .sla-side-nav a,.sla-side-planned{min-width:0;min-height:47px;width:100%;display:flex;align-items:center;gap:13px;padding:11px 13px;color:#bac7da;border:1px solid transparent;border-radius:12px;text-decoration:none;font-size:13px;font-weight:800;white-space:nowrap;transition:background .16s,border-color .16s,color .16s}
.sla-sidebar .sla-side-nav a:hover{background:#1b2a3d;color:#fff}
.sla-sidebar .sla-side-nav a.active{background:linear-gradient(90deg,rgba(250,204,21,.20),rgba(250,204,21,.08));color:#facc15;border-color:rgba(250,204,21,.42);box-shadow:inset 3px 0 #facc15}
.sla-sidebar .sla-side-nav a i,.sla-side-planned i{width:21px;flex:0 0 21px;text-align:center;font-size:17px}
.sla-side-link-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.sla-soon-heading{margin-top:32px}.sla-side-planned{color:#75869e;opacity:.73;cursor:not-allowed}.sla-side-planned small{float:right;border:1px solid #425066;color:#a0acc0;border-radius:5px;padding:2px 4px;font-size:8px;letter-spacing:.06em}
.sla-nav-backdrop[hidden]{display:none!important}.sla-nav-backdrop{position:fixed;inset:0;z-index:75;background:rgba(2,6,15,.68);backdrop-filter:blur(3px)}
#app{margin-left:var(--sla-sidebar-width);margin-right:auto;max-width:none;width:calc(100% - var(--sla-sidebar-width));padding-left:clamp(16px,2.2vw,36px);padding-right:clamp(16px,2.2vw,36px);padding-top:89px;transition:margin-left .25s ease,width .25s ease;min-width:0}
#app>*{max-width:1530px;margin-left:auto;margin-right:auto}
.sla-nav-collapsed .sla-side-section-label,.sla-nav-collapsed .sla-side-link-text{display:none}
.sla-nav-collapsed .sla-side-head{justify-content:center;padding:0;margin-bottom:9px}
.sla-nav-collapsed .sla-sidebar .sla-side-nav a,.sla-nav-collapsed .sla-side-planned{justify-content:center;padding:11px 0}
.sla-sidebar a:focus-visible,.sla-sidebar button:focus-visible,.sla-mobile-trigger:focus-visible{outline:2px solid #facc15;outline-offset:3px}
@media(max-width:900px){
 :root{--sla-sidebar-width:0px}
 html.sla-nav-collapsed{--sla-sidebar-width:0px}
 .sla-header{height:60px;padding:0 16px!important;gap:12px!important;overflow:visible}
 .sla-header .brand{font-size:18px}
 .sla-mobile-trigger{width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;border-radius:11px;border:1px solid #36445b;background:#172235;color:#facc15;font-size:19px;cursor:pointer;order:-1}
 .sla-sidebar{top:0;width:min(280px,calc(100vw - 24px));z-index:80;transform:translateX(-105%);padding-top:12px;visibility:hidden;transition:transform .25s ease,visibility .25s ease}
 .sla-nav-open .sla-sidebar{transform:translateX(0);visibility:visible}
 .sla-nav-open body{overflow:hidden;touch-action:none}
 .sla-nav-open .sla-side-close{display:block}
 .sla-nav-open .sla-side-collapse{display:none}
 .sla-sidebar .sla-side-head{justify-content:space-between;margin-bottom:9px;padding:0 5px}
 .sla-sidebar .sla-side-section-label,.sla-sidebar .sla-side-link-text{display:block}
 .sla-sidebar .sla-side-head .sla-side-section-label{display:block}
 .sla-sidebar .sla-side-nav a,.sla-sidebar .sla-side-planned{justify-content:flex-start;padding:11px 13px}
 #app{width:100%;margin-left:0;padding-top:83px}
}
@media(max-width:680px){#app{padding-top:76px!important}}
@media(prefers-reduced-motion:reduce){.sla-sidebar,#app{transition:none!important}}

/* SLAHub — shared native scrollbar appearance (all scrollable modules). */
:root{
  --sla-scroll-track:#0a121d;
  --sla-scroll-thumb:#52657e;
  --sla-scroll-thumb-hover:#7890ac;
  --sla-scroll-thumb-active:#b69b40;
  --sla-scroll-width:8px;
  --sla-scroll-inner-width:6px;
}
/* Standards-based scrollbar styling; browsers that implement these
   properties may prioritize them over the ::-webkit-scrollbar rules. */
html,body,*{
  scrollbar-color:var(--sla-scroll-thumb) var(--sla-scroll-track);
  scrollbar-width:thin;
}
/* Preserve deliberately hidden scrollbars for horizontally swipable UI. */
@media(max-width:680px){
  .topbar nav,.posts-pagination{scrollbar-width:none}
}
/* Chromium, Opera, Edge and Safari fallback / sizing. */
::-webkit-scrollbar{width:var(--sla-scroll-width);height:var(--sla-scroll-width)}
::-webkit-scrollbar-track{background:var(--sla-scroll-track);border-radius:999px}
::-webkit-scrollbar-thumb{
  background:var(--sla-scroll-thumb);
  border:2px solid var(--sla-scroll-track);
  border-radius:999px;
}
::-webkit-scrollbar-thumb:hover{background:var(--sla-scroll-thumb-hover)}
::-webkit-scrollbar-thumb:active{background:var(--sla-scroll-thumb-active)}
::-webkit-scrollbar-corner{background:var(--sla-scroll-track)}
/* Tighter bars for menus, dropdowns, modals and the sidebar. */
:is(.sla-sidebar,.growth-picker-menu,.mobile-filter-body,.posts-filter-sheet,
    .mobile-filter-modal,.posts-pagination,.raw pre)::-webkit-scrollbar{
  width:var(--sla-scroll-inner-width);
  height:var(--sla-scroll-inner-width);
}
/* Retain swipe-first hidden scrollbars already used by the interface. */
@media(max-width:680px){
  .topbar nav::-webkit-scrollbar,.posts-pagination::-webkit-scrollbar{display:none}
}

/* Shadows My List — isolated module styles */
.shadow-army-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 20px;margin:14px 0 20px;border-radius:14px;border:1px solid #334155;background:linear-gradient(125deg,#151e32,#101827);min-width:0}
.shadow-army-heading{min-width:0}.shadow-army-title{display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:17px;font-weight:850;color:#f8fafc}.shadow-army-heading small{color:#9caac0;display:block;margin-top:5px}.shadow-army-badge{border:1px solid #594d85;background:#292044;border-radius:50px;color:#f0e9ff;padding:5px 12px;font-size:13px}.shadow-army-controls{display:flex;align-items:center;gap:9px}.shadow-army-controls input{width:75px;min-width:0;padding:10px 4px;text-align:center;border-radius:8px;background:#111827;border:1px solid #465267;color:#f8fafc;font-weight:800}.shadow-army-controls button,.shadow-edit-actions button{cursor:pointer;border-radius:8px;padding:11px 16px;font-weight:800;border:1px solid #465267}.shadow-army-edit,.shadow-edit-actions [data-shadow-save]{background:#facc15;color:#101827;border-color:#facc15!important}.shadow-army-all,.shadow-edit-actions [data-shadow-cancel]{background:#1d293c;color:#e2e8f0}.shadow-army-controls button:hover,.shadow-edit-actions button:hover{filter:brightness(1.13)}
/* Shadows My List shares the existing Hunters My List card and editor layout. */
.shadow-list-grid .shadow-list-card .my-list-art{display:block;overflow:hidden}
.shadow-list-grid .shadow-list-card .my-list-art>img{width:100%;height:100%;object-fit:contain}
.shadow-list-grid .shadow-list-card .my-list-copy{min-width:0}
.shadow-list-grid .shadow-list-card .my-list-weapon-head{min-width:0}
.shadow-list-grid .shadow-list-card .shadow-growth-unavailable{color:#91a0b6;font-size:12px;display:inline-flex;align-items:center;gap:5px}
.shadow-list-grid .shadow-list-card .shadow-growth-unavailable small{font-size:10px;color:#8291a9}
.shadow-list-grid .shadow-list-card .shadow-contribution{color:#e9cb73}
.shadow-list-grid .shadow-list-bulk .bulk-progress-section{min-width:0}
.shadow-list-toolbar .shadow-list-sort{min-width:155px;max-width:220px;border-radius:8px;background:#162236;color:#e2e8f0;border:1px solid #3a4960;padding:9px 12px}
.shadow-list-toolbar .shadow-list-reset{min-height:36px}
.shadow-my-error{margin:10px 0;padding:12px;border:1px solid #ce5264;color:#ffd5d9;border-radius:8px;background:#4d2030}
@media(max-width:760px){.shadow-army-bar{flex-wrap:wrap;padding:14px}.shadow-army-controls{width:100%;justify-content:flex-end}.shadow-list-toolbar .shadow-list-sort{max-width:100%;min-width:0}}
@media(max-width:390px){.shadow-army-controls{gap:5px}.shadow-army-controls button{padding:10px}}

/* Shadows My List: purple identity without altering Hunters My List */
.shadow-list-grid .shadow-list-card.rarity-ssr .my-list-copy,
.shadow-list-grid .shadow-list-card.rarity-ssr.not-owned .my-list-copy{background:linear-gradient(90deg,rgba(132,73,195,.26),rgba(15,24,37,0) 88%) !important}
.shadow-list-grid .shadow-list-card.rarity-ssr{border-color:rgba(151,96,211,.46) !important}
.shadow-list-grid .shadow-list-card .shadow-list-armament{background:linear-gradient(90deg,rgba(121,80,181,.18),rgba(12,20,32,.97) 50%) !important;border-color:rgba(146,96,205,.32) !important}
.shadow-armament-marks{display:inline-flex;align-items:center;gap:3px;max-width:100%}
.shadow-armament-marks img{width:18px;height:18px;object-fit:contain;flex:none}
.shadow-army-controls small{white-space:nowrap;font-size:11px;color:#9caac0}
@media(max-width:430px){.shadow-armament-marks img{width:15px;height:15px}.shadow-army-controls{flex-wrap:wrap}}

/* Shadows My List fixes — scoped; Hunters remain unchanged. */
.shadow-list-grid .shadow-list-card.rarity-ssr .my-list-hunter,
.shadow-list-grid .shadow-list-card.rarity-ssr.not-owned .my-list-hunter{
 background:linear-gradient(90deg,rgba(119,65,177,.30),rgba(15,24,37,.97) 78%) !important;
}
.shadow-list-grid .shadow-list-card.rarity-ssr .my-list-copy{
 background:transparent !important;
}
.shadow-list-grid .shadow-list-card .shadow-list-armament{
 background:linear-gradient(90deg,rgba(113,69,178,.22),rgba(12,20,32,.97) 48%) !important;
}
.shadow-armament-mark{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;flex:none}
.shadow-armament-mark img{display:block;width:100%;height:100%;object-fit:contain}
.shadow-army-cancel{border:1px solid #415169;border-radius:8px;background:#111d2d;color:#dbe6f5;font-weight:750;padding:9px 11px;cursor:pointer}
@media(max-width:430px){.shadow-armament-mark{width:15px;height:15px}}

/* Posts Stage 3: article detail (scoped to Posts). */
.posts-detail-page{width:min(1160px,100%);min-width:0;margin:0 auto;padding:12px 0 40px;display:grid;gap:18px}
.posts-detail-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.posts-detail-back{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:9px 14px;border:1px solid #35475d;border-radius:10px;background:#152132;color:#e8edf6;font-weight:700;font-size:13px;text-decoration:none;cursor:pointer}
.posts-detail-back:hover{border-color:#ddbb55;color:#ffe392}
.posts-detail-panel{min-width:0;overflow:hidden;border:1px solid #344258;border-radius:17px;background:linear-gradient(145deg,rgba(22,34,53,.98),rgba(12,21,35,.98));box-shadow:0 12px 40px rgba(0,0,0,.16)}
.posts-detail-header{padding:28px 30px 25px;border-bottom:1px solid #344258}
.posts-detail-header h1{font-size:clamp(25px,3vw,38px);line-height:1.23;letter-spacing:-.03em;margin:18px 0 15px;color:#f7f9fc;overflow-wrap:anywhere}
.posts-detail-meta{display:flex;flex-wrap:wrap;gap:9px 22px;color:#adbad0;font-size:13px}
.posts-detail-meta span{display:inline-flex;align-items:center;gap:7px}
.posts-detail-meta .posts-detail-original{display:inline-flex;align-items:center;justify-content:center;gap:7px;max-width:100%;min-height:28px;padding:4px 10px;border:1px solid #35475d;border-radius:8px;background:#152132;color:#dce6f4;font-size:12px;font-weight:700;text-decoration:none;white-space:normal;overflow-wrap:anywhere}
.posts-detail-meta .posts-detail-original:hover{border-color:#ddbb55;color:#ffe392}
.posts-detail-meta .posts-detail-original:focus-visible{outline:2px solid #ddbb55;outline-offset:2px}
.posts-article-content{min-width:0;padding:26px 30px 36px;color:#dce5f1;font-size:15px;line-height:1.8;overflow-wrap:anywhere}
.posts-article-content :is(p,ul,ol,blockquote,pre,figure,table,.posts-article-video){margin:0 0 19px}
.posts-article-content :is(h1,h2,h3,h4,h5,h6){line-height:1.35;color:#f5f8fc;margin:28px 0 12px;font-weight:800}
.posts-article-content :is(ul,ol){padding-left:28px}
.posts-article-content li{margin:5px 0}
.posts-article-content a{color:#f5cc5e;text-decoration:underline;text-underline-offset:3px}
.posts-article-content blockquote{border-left:3px solid #c7a54d;padding:9px 18px;background:rgba(255,255,255,.035);border-radius:0 7px 7px 0}
.posts-article-content pre{overflow-x:auto;white-space:pre;max-width:100%;padding:14px;border-radius:10px;background:#080f1b}
.posts-article-content :is(img,video){display:block;max-width:100%;height:auto;object-fit:contain;border-radius:6px;margin:12px auto}
.posts-article-content img[role="button"]{cursor:zoom-in}
.posts-article-content img[role="button"]:focus-visible{outline:3px solid #e8c560;outline-offset:3px}
.posts-article-table-scroll{width:100%;max-width:100%;overflow-x:auto;margin:16px 0 22px;border:1px solid #3b4e63;border-radius:10px}
.posts-article-table-scroll table{width:max-content;min-width:100%;border-collapse:collapse;margin:0}
.posts-article-table-scroll :is(th,td){padding:10px 13px;border:1px solid #34455a;vertical-align:middle;white-space:normal;min-width:75px}
.posts-article-table-scroll th{background:rgba(255,255,255,.06);font-weight:800}
.posts-article-table-scroll img{max-width:min(300px,50vw)}
.posts-article-video{width:100%;aspect-ratio:16/9;max-width:100%;overflow:hidden;border-radius:11px;background:#070b13}
.posts-article-video iframe{display:block;width:100%;height:100%;border:0}
.posts-detail-empty{color:#aebdd0}
.posts-image-lightbox[hidden]{display:none!important}
.posts-image-lightbox{position:fixed;inset:0;z-index:3000;background:rgba(2,5,12,.96);display:flex;align-items:center;justify-content:center;padding:52px 65px}
.posts-image-lightbox img{display:block;max-width:100%;max-height:100%;object-fit:contain}
.posts-image-lightbox button{position:absolute;background:rgba(24,36,53,.94);color:white;border:1px solid #64748b;border-radius:10px;min-width:42px;min-height:42px;font-size:26px;cursor:pointer}
.posts-image-lightbox [data-lightbox-close]{right:16px;top:15px}
.posts-image-lightbox [data-lightbox-prev]{left:12px;top:50%;transform:translateY(-50%)}
.posts-image-lightbox [data-lightbox-next]{right:12px;top:50%;transform:translateY(-50%)}
body.posts-lightbox-open{overflow:hidden}
@media(max-width:680px){.posts-detail-page{padding:8px 0 25px;gap:12px}.posts-detail-header{padding:20px 16px}.posts-article-content{padding:20px 16px 28px;font-size:14px}.posts-detail-top{align-items:stretch}.posts-detail-back{flex:0 0 auto}.posts-image-lightbox{padding:58px 8px}.posts-image-lightbox [data-lightbox-prev],.posts-image-lightbox [data-lightbox-next]{bottom:8px;top:auto;transform:none}}

/* Posts Stage 3.1: scoped article refinements */
.posts-detail-page{width:min(1500px,100%)}
.posts-detail-layout{display:grid;grid-template-columns:minmax(230px,280px) minmax(0,1fr);gap:18px;align-items:start;min-width:0}
.posts-detail-layout>.posts-detail-panel{min-width:0;grid-column:2;grid-row:1}
.posts-detail-latest{min-width:0;grid-column:1;grid-row:1;position:sticky;top:24px;padding:18px 14px;border:1px solid #34445a;border-radius:14px;background:#111d30}
.posts-detail-latest>h2{margin:0 0 14px;font-size:16px;color:#f5f6fc}
.posts-latest-list{display:grid;gap:4px;max-height:min(566px,calc(100dvh - 170px));min-height:0;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb, #475569) var(--scrollbar-track, #0f172a)}
.posts-latest-item{display:grid;gap:6px;padding:12px 7px;border-radius:9px;text-decoration:none;border-bottom:1px solid #34445a;color:#e2e8f0;min-width:0}
.posts-latest-item:hover,.posts-latest-item:focus-visible{background:rgba(250,204,21,.08);outline-color:#facc15}
.posts-latest-item strong{font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.posts-latest-item small,.posts-latest-empty{color:#94a3b8;font-size:12px}
.posts-latest-meta{display:flex;gap:5px;align-items:center;flex-wrap:wrap;color:#cbd5e1;font-size:11px}
.posts-latest-meta b{border-radius:5px;background:#f43f5e;padding:2px 4px;color:white;font-size:9px}
.posts-latest-meta b.edited{background:#34d399;color:#020617}
.posts-article-content .posts-article-hero{margin:0 0 24px;text-align:center}
.posts-article-content .posts-article-hero img{max-width:100%;height:auto;object-fit:contain}
.posts-article-content .posts-survey-notice{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:15px 18px;margin:18px 0;border:1px solid #45536a;border-radius:11px;background:#172337;font-size:14px}
.posts-article-content .posts-survey-notice a{color:#facc15;font-weight:700}
.posts-article-content .posts-article-table-scroll{min-width:0;max-width:100%;overscroll-behavior-x:contain}
.posts-article-content .posts-article-table-scroll table{table-layout:auto}
.posts-article-content .posts-article-table-scroll :is(td,th){overflow-wrap:anywhere}
@media(max-width:1150px){.posts-detail-layout{grid-template-columns:minmax(0,1fr)}.posts-detail-layout>.posts-detail-panel{grid-column:1;grid-row:1}.posts-detail-latest{grid-column:1;grid-row:2;position:static}}
@media(max-width:680px){.posts-detail-layout{gap:14px}.posts-detail-latest{padding:15px 12px}}

/* Posts detail: make the existing 24-hour EDIT badge readable beside the category. */
.posts-detail-header .post-updated-chip{
  width:auto;
  min-width:64px;
  min-height:28px;
  padding:5px 11px;
  gap:7px;
  border:1px solid #6ee7b7;
  border-radius:8px;
  background:#047857;
  color:#fff;
  font-size:12px;
  font-weight:900;
  line-height:1.2;
  letter-spacing:.045em;
  box-shadow:0 0 0 1px rgba(16,185,129,.12);
}
.posts-detail-header .post-updated-chip i{
  font-size:12px;
  color:#d1fae5;
}
@media(max-width:680px){
  .posts-detail-header .post-updated-chip{
    width:auto;
    min-width:60px;
    min-height:26px;
    padding:4px 9px;
    font-size:11px;
  }
}

/* Back navigation belongs to the article header, above the metadata chips. */
.posts-detail-header > .posts-detail-back{display:flex;width:max-content;max-width:100%;margin:0 0 18px;white-space:normal;text-align:left}
.posts-detail-top{justify-content:flex-end}
@media(max-width:680px){.posts-detail-header > .posts-detail-back{margin-bottom:14px}}


/* Posts Detail typography: scoped to the article view (desktop >= 1024px). */
.posts-detail-header > h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: #F6F8FC;
  overflow-wrap: anywhere;
}
.posts-detail-header :is(.post-category,.post-source-chip,.post-new-chip,.post-updated-chip) {
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-transform: none;
}
.posts-detail-header .post-source-chip { color: #EAF1FF; }
.posts-detail-meta,
.posts-detail-meta span {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: #AEB9D3;
}
.posts-detail-meta i { color: #92A4C8; }
.posts-detail-meta .posts-detail-original {
  color: #E6EEFF;
  font-size: inherit;
  line-height: 1.4;
}
.posts-detail-meta .posts-detail-original i { color: inherit; }
.posts-article-content {
  color: #E6ECF8;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.posts-article-content :is(.lead,.intro,.article-lead,.article-intro) {
  font-size: 20px;
  line-height: 1.6;
  color: #DDE7FB;
}
.posts-article-content h2 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  color: #F5F8FF;
}
.posts-article-content h3 {
  font-size: 24px;
  font-weight: 700;
  color: #EDF3FF;
}
.posts-article-content h4 {
  font-size: 20px;
  font-weight: 700;
  color: #E8EEFB;
}
.posts-article-content a,
.posts-article-content a:visited { color: #86B7FF; text-decoration: underline; }
.posts-article-content a:hover { color: #A8CAFF; }
.posts-article-content :is(strong,b) { color: #F2F6FF; font-weight: 700; }
.posts-article-content :is(ul,ol) { font-size: 18px; }
.posts-article-content :is(ul,ol) ::marker { color: #D8B14B; }
.posts-article-content :is(small,.muted,.article-note,.text-muted) {
  color: #9AA8C4;
  font-size: 14px;
  line-height: 1.5;
}
@media (min-width: 1536px) {
  .posts-detail-header > h1 { font-size: 52px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .posts-detail-header > h1 { font-size: 34px; }
  .posts-article-content { font-size: 17px; }
  .posts-article-content :is(.lead,.intro,.article-lead,.article-intro) { font-size: 18px; }
  .posts-article-content h2 { font-size: 26px; }
  .posts-article-content h3 { font-size: 21px; }
  .posts-article-content :is(ul,ol) { font-size: 17px; }
}
@media (max-width: 767px) {
  .posts-detail-header > h1 { font-size: 28px; }
  .posts-detail-meta,
  .posts-detail-meta span { font-size: 14px; }
  .posts-article-content { font-size: 16px; }
  .posts-article-content :is(.lead,.intro,.article-lead,.article-intro) { font-size: 17px; }
  .posts-article-content h2 { font-size: 22px; }
  .posts-article-content h3 { font-size: 19px; }
  .posts-article-content :is(ul,ol) { font-size: 16px; }
}

/* Posts Detail: Netmarble article horizontal separators (including centered wrappers). */
.posts-article-content hr {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: 2px;
  margin: 32px 0;
  padding: 0;
  border: 0;
  border-top: 2px solid rgba(173, 193, 230, 0.28);
  background: transparent;
  clear: both;
}
@media (max-width: 767px) {
  .posts-article-content hr {
    margin: 24px 0;
  }
}

/* Post Detail lightbox: restrained artwork size without altering other module lightboxes. */
.posts-image-lightbox {
  box-sizing: border-box;
  padding: 56px 68px;
}
.posts-image-lightbox > img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(72vw, 100%);
  max-height: 78vh;
  object-fit: contain;
}
@media (max-width: 680px) {
  .posts-image-lightbox {
    padding: 56px 12px 72px;
  }
  .posts-image-lightbox > img {
    max-width: min(92vw, 100%);
    max-height: 76vh;
    max-height: 76dvh;
  }
}

/* Netmarble section markers (●, ■, ※, ◆, ▪): preserve source glyphs and safe inline accents. */
.posts-article-content :is(font,span) { vertical-align: baseline; }
.posts-article-content :is(font,span)[style*="color"] { -webkit-text-fill-color: currentColor; }
.posts-article-content :is(p,div,li) { overflow-wrap: anywhere; }

/* Post Detail lightbox: restrained artwork size without altering other module lightboxes. */
.posts-image-lightbox {
  box-sizing: border-box;
  padding: 56px 68px;
}
.posts-image-lightbox > img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(72vw, 100%);
  max-height: 78vh;
  object-fit: contain;
}
@media (max-width: 680px) {
  .posts-image-lightbox {
    padding: 56px 12px 72px;
  }
  .posts-image-lightbox > img {
    max-width: min(92vw, 100%);
    max-height: 76vh;
    max-height: 76dvh;
  }
}

/* Post Detail mobile polish: scoped to article pages, not global navigation or cards. */
@media (max-width: 1150px) {
  .posts-detail-page, .posts-detail-layout, .posts-detail-panel,
  .posts-detail-header, .posts-article-content, .posts-detail-latest { min-width: 0; }
  .posts-detail-layout { grid-template-columns: minmax(0, 1fr); }
  .posts-detail-layout > .posts-detail-panel { grid-column: 1; grid-row: 1; }
  .posts-detail-latest { grid-column: 1; grid-row: 2; position: static; max-width: 100%; }
}
@media (max-width: 767px) {
  .posts-detail-page { width: 100%; padding: 8px 0 26px; gap: 12px; }
  .posts-detail-layout { gap: 14px; }
  .posts-detail-panel { max-width: 100%; border-radius: 12px; }
  .posts-detail-header { padding: 20px 18px 18px; }
  .posts-detail-header > .posts-detail-back { display: inline-flex; margin: 0 0 16px; min-height: 40px; align-items: center; }
  .posts-detail-header > h1 { margin: 16px 0 14px; font-size: 28px; line-height: 1.08; overflow-wrap: anywhere; }
  .posts-detail-header :is(.posts-chips,.posts-card-chips,.posts-detail-chips) { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-width: 0; }
  .posts-detail-header :is(.post-category,.post-source-chip,.post-new-chip,.post-updated-chip) { max-width: 100%; min-width: 0; }
  .posts-detail-meta { display: flex; flex-wrap: wrap; gap: 10px 14px; min-width: 0; }
  .posts-detail-meta span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
  .posts-detail-meta .posts-detail-original { max-width: 100%; min-height: 36px; white-space: normal; }
  .posts-article-content { padding: 20px 18px 26px; min-width: 0; max-width: 100%; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
  .posts-article-content :is(div,section,figure,p,blockquote,pre) { max-width: 100%; }
  .posts-article-content :is(img,video,svg,canvas) { max-width: 100%; height: auto; }
  .posts-article-content iframe { max-width: 100%; }
  .posts-article-content .posts-article-video { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; }
  .posts-article-content .posts-article-table-scroll { display: block; width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .posts-article-content .posts-article-table-scroll table { width: max-content; max-width: none; min-width: 100%; }
  .posts-detail-latest { padding: 15px 12px; border-radius: 12px; }
  .posts-latest-list { max-height: min(500px, 65dvh); overflow-y: auto; }
  .posts-image-lightbox { padding: 55px 12px 76px; }
  .posts-image-lightbox > img { width: auto; height: auto; max-width: 92vw; max-height: 76dvh; }
  .posts-image-lightbox [data-lightbox-close] { top: 10px; right: 10px; min-width: 44px; min-height: 44px; }
  .posts-image-lightbox [data-lightbox-prev], .posts-image-lightbox [data-lightbox-next] { bottom: 12px; top: auto; transform: none; min-width: 44px; min-height: 44px; }
}
@media (max-width: 430px) {
  .posts-detail-header { padding: 18px 14px 16px; }
  .posts-article-content { padding: 18px 14px 24px; }
  .posts-detail-header > h1 { margin: 14px 0 12px; }
  .posts-detail-meta { gap: 9px 12px; }
  .posts-detail-latest { padding: 13px 10px; }
}

/* Post Detail / Latest News: fixed heading, viewport-aware scrolling and shared category palette. */
@media (min-width: 1151px) {
  .posts-detail-layout > .posts-detail-latest {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: min(680px, var(--posts-latest-available-height, calc(100dvh - 140px)));
    max-height: calc(100dvh - 36px);
    overflow: hidden;
    padding-bottom: 8px;
  }
  .posts-detail-latest > .posts-latest-list {
    flex: 1 1 auto;
    max-height: none;
    min-height: 0;
    overflow-y: auto;
  }
}
.posts-detail-latest > h2 {
  flex: 0 0 auto;
  margin: 0 0 8px;
  padding: 0 2px 12px;
  border-bottom: 1px solid rgba(148,163,184,.22);
}
.posts-detail-latest .posts-latest-list {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb, #475569) var(--scrollbar-track, #0f172a);
  overscroll-behavior-y: contain;
}
.posts-detail-latest .posts-latest-item {gap: 5px;padding: 9px 7px;}
.posts-detail-latest .posts-latest-meta {gap: 6px;}
.posts-detail-latest .posts-latest-meta .post-category {
  min-height: 22px;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  flex: 0 0 auto;
}
.posts-detail-latest .posts-latest-item strong {overflow-wrap: anywhere;min-width:0;}
@media (max-width: 1150px) {
  .posts-detail-layout > .posts-detail-latest {
    position: static;
    height: auto;
    max-height: none;
    overflow: visible;
  }
  .posts-detail-latest > .posts-latest-list {max-height: min(500px, 60dvh);overflow-y:auto;}
}

/* Post Detail / Latest News: NEW and EDIT match category chips in size. */
.posts-detail-latest .posts-latest-meta > b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-sizing: border-box;
  min-height: 22px;
  padding: 4px 7px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  background: #f43f5e;
  color: #fff;
}
.posts-detail-latest .posts-latest-meta > b.edited {
  background: #047857;
  border-color: #6ee7b7;
  color: #fff;
}

/* Post Detail Netmarble typography: nested spans and legacy font tags inherit a
   readable scale. The HTML sanitizer discards external font-size declarations. */
.posts-detail-header > h1 {
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.12;
  overflow-wrap: anywhere;
}
.posts-article-content {
  font-size: 17px;
  line-height: 1.75;
  color: #E6ECF8;
  overflow-wrap: anywhere;
}
.posts-article-content :is(p,div,span,font,section,li) { font-size: inherit; }
.posts-article-content :is(h2,h3,h4) { line-height: 1.3; overflow-wrap: anywhere; }
.posts-article-content h2 { font-size: 27px; }
.posts-article-content h3 { font-size: 22px; }
.posts-article-content h4 { font-size: 19px; }
.posts-article-content :is(.posts-article-section-label) {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.55;
  margin-block: 1.25em .65em;
}
.posts-article-content :is(.posts-article-section-label) :is(span,font,strong,b) { font-size: inherit; }
.posts-article-content .posts-article-caption,
.posts-article-content .posts-article-caption :is(span,font,strong,b) {
  font-size: 14px;
  line-height: 1.55;
  color: #A9B8D2;
}
.posts-article-content :is(a,a:visited) { color: #86B7FF; text-decoration: underline; }
.posts-article-content a:hover { color: #B0D0FF; }
.posts-article-content :is(table,td,th) { font-size: 14px; line-height: 1.55; }
.posts-article-content :is(td,th) :is(span,font,div,p) { font-size: inherit; }
.posts-article-content :is(p,div):empty { margin-block: 0; }
@media (min-width: 768px) and (max-width: 1023px) {
  .posts-article-content { font-size: 16.5px; line-height: 1.7; }
}
@media (max-width: 767px) {
  .posts-detail-header > h1 { font-size: clamp(26px, 7vw, 30px); line-height: 1.12; }
  .posts-article-content { font-size: 16px; line-height: 1.7; }
  .posts-article-content h2 { font-size: 22px; }
  .posts-article-content h3 { font-size: 19px; }
  .posts-article-content h4 { font-size: 17px; }
  .posts-article-content .posts-article-section-label { font-size: 18px; }
  .posts-article-content .posts-article-caption,
  .posts-article-content .posts-article-caption :is(span,font,strong,b) { font-size: 13.5px; }
}


/* SLAHub NEW — consistent readable typography for modules outside Post Detail.
   Keep the existing card layout, image dimensions and the Post Detail hierarchy. */
:root {
  --sla-ui-body-size: 15px;
  --sla-ui-small-size: 13px;
  --sla-ui-muted-color: #aebbd0;
}

/* Shared section descriptions, search/filter controls and tabs. */
#app .page-head p,
#app .hunter-filter-toolbar,
#app .weapon-toolbar,
#app .shadow-toolbar,
#app .toolbar input,
#app .toolbar select,
#app .view-tab,
#app .hunter-tab,
#app .filter {
  font-size: var(--sla-ui-body-size);
  line-height: 1.45;
}
#app :is(.hunter-filter-toolbar, .weapon-toolbar, .shadow-toolbar) :is(button, select, input),
#app :is(.my-list-card, .shadow-list-card) :is(button, select, input) {
  font-size: 13px !important;
  line-height: 1.35;
}

/* Hunters, Hunter Weapons and Shadows — detailed copy and labels. */
#app :is(.detail-data-card p, .weapon-description, .weapon-effect p, .shadow-card-copy span,
         .hunter-detail-column p, .detail-wide-section p, .detail-panel .fact) {
  font-size: var(--sla-ui-body-size);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
#app :is(.detail-data-card b, .weapon-stats b, .weapon-owner-label,
         .my-list-card .progress-edit-row label, .my-list-card .progress-read-row > span:first-child,
         .shadow-list-card .progress-edit-row label, .shadow-list-card .progress-read-row > span:first-child) {
  font-size: var(--sla-ui-small-size) !important;
  line-height: 1.4;
}
#app :is(.detail-section h2, .hunter-detail-column h2, .detail-wide-section > h2) {
  font-size: 21px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
#app :is(.shadow-card-copy h3, .weapon-heading h2) {
  font-size: 20px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

/* My List — improve small progress numbers, field labels and helper text without resizing portraits. */
#app .my-list-card :is(.progress-read-row > strong, .progress-edit-row input, .progress-edit-row select),
#app .shadow-list-card :is(.progress-read-row > strong, .progress-edit-row input, .progress-edit-row select) {
  font-size: 13px !important;
}
#app :is(.my-list-card, .shadow-list-card) :is(small, .my-list-rarity-label, .shadow-growth-unavailable) {
  font-size: 12px !important;
  line-height: 1.45;
}

/* Latest News — readable article titles, relative dates and chips; keep list height and scrolling. */
#app .posts-detail-latest .posts-latest-item strong {
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
#app .posts-detail-latest .posts-latest-item small,
#app .posts-detail-latest .posts-latest-empty {
  font-size: 13px;
  line-height: 1.45;
}
#app .posts-detail-latest .posts-latest-meta :is(.post-category, b) {
  font-size: 11px;
  line-height: 1;
  min-height: 22px;
}

@media (max-width: 767px) {
  :root { --sla-ui-body-size: 14px; --sla-ui-small-size: 12px; }
  #app :is(.detail-section h2, .hunter-detail-column h2, .detail-wide-section > h2) { font-size: 19px; }
  #app :is(.shadow-card-copy h3, .weapon-heading h2) { font-size: 18px; }
  #app .posts-detail-latest .posts-latest-item strong { font-size: 14px; }
  #app .posts-detail-latest .posts-latest-item small { font-size: 12px; }
  #app :is(.detail-data-card, .my-list-card, .shadow-list-card, .posts-latest-item) { min-width: 0; }
}

/* Post Detail: compact lightbox with navigation outside the image. */
.posts-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 38px 68px;
  box-sizing: border-box;
  background: rgba(2, 5, 12, .84);
  backdrop-filter: blur(5px);
}
.posts-image-lightbox .posts-lightbox-panel {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: fit-content;
  max-width: min(82vw, 1200px, calc(100vw - 136px));
  max-height: calc(82dvh - 16px);
  padding: 8px;
  box-sizing: border-box;
  background: #0d1523;
  border: 1px solid rgba(148, 163, 184, .27);
  border-radius: 12px;
  box-shadow: 0 22px 75px rgba(0, 0, 0, .55);
}
.posts-image-lightbox .posts-lightbox-panel > img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(calc(82vw - 16px), 1184px, calc(100vw - 152px));
  max-height: calc(82dvh - 32px);
  object-fit: contain;
  border-radius: 6px;
}
.posts-image-lightbox .posts-lightbox-panel > button {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 42px;
  min-height: 42px;
  border-radius: 10px;
  background: rgba(15, 23, 42, .9);
  color: #fff;
  border: 1px solid rgba(148, 163, 184, .5);
  cursor: pointer;
}
.posts-image-lightbox .posts-lightbox-panel > button:hover {
  border-color: #d8b14b;
  color: #ffe9a3;
}
.posts-image-lightbox .posts-lightbox-panel > button:focus-visible {
  outline: 2px solid #facc15;
  outline-offset: 3px;
}
/* All controls are outside the image; close stays close to the top-right corner. */
.posts-image-lightbox .posts-lightbox-panel > [data-lightbox-close] {
  top: -54px;
  right: -54px;
  bottom: auto;
  left: auto;
  transform: none;
}
.posts-image-lightbox .posts-lightbox-panel > [data-lightbox-prev] {
  top: 50%;
  left: -54px;
  right: auto;
  bottom: auto;
  transform: translateY(-50%);
}
.posts-image-lightbox .posts-lightbox-panel > [data-lightbox-next] {
  top: 50%;
  right: -54px;
  left: auto;
  bottom: auto;
  transform: translateY(-50%);
}
@media (max-width: 680px) {
  .posts-image-lightbox {
    padding: max(32px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right))
             max(76px, calc(env(safe-area-inset-bottom) + 64px))
             max(8px, env(safe-area-inset-left));
  }
  .posts-image-lightbox .posts-lightbox-panel {
    max-width: 94vw;
    max-height: 80dvh;
    padding: 5px;
    border-radius: 10px;
  }
  .posts-image-lightbox .posts-lightbox-panel > img {
    max-width: calc(94vw - 10px);
    max-height: calc(80dvh - 16px);
  }
  .posts-image-lightbox .posts-lightbox-panel > button {
    min-width: 44px;
    min-height: 44px;
  }
  .posts-image-lightbox .posts-lightbox-panel > [data-lightbox-close] {
    top: -54px;
    right: -54px;
  }
  .posts-image-lightbox .posts-lightbox-panel > [data-lightbox-prev] {
    top: auto;
    bottom: -56px;
    left: calc(50% - 52px);
    right: auto;
    transform: translateX(-50%);
  }
  .posts-image-lightbox .posts-lightbox-panel > [data-lightbox-next] {
    top: auto;
    bottom: -56px;
    left: calc(50% + 52px);
    right: auto;
    transform: translateX(-50%);
  }
}

/* Netmarble tables: compact cells, natural column widths, scoped to Post Detail. */
.posts-article-content .posts-article-table-scroll {
  width: 100%; max-width: 100%; min-width: 0;
  overflow-x: auto; overflow-y: hidden;
  border: 1px solid #3b4e63; border-radius: 10px;
  background: #111c2d;
}
.posts-article-content .posts-article-table-scroll > table {
  width: 100%; min-width: max-content; max-width: none;
  table-layout: auto; border-collapse: separate; border-spacing: 0;
  margin: 0; color: #e6ecf8;
}
.posts-article-content .posts-article-table-scroll :is(th,td) {
  width: auto; height: auto; min-width: 0;
  padding: 11px 13px; vertical-align: middle;
  font-size: 14.5px; font-weight: 400; line-height: 1.55;
  white-space: normal; overflow-wrap: anywhere;
  border: 0; border-right: 1px solid rgba(125,148,180,.26);
  border-bottom: 1px solid rgba(125,148,180,.26);
}
.posts-article-content .posts-article-table-scroll :is(th,td):last-child { border-right: 0; }
.posts-article-content .posts-article-table-scroll tr:last-child > :is(th,td) { border-bottom: 0; }
.posts-article-content .posts-article-table-scroll th,
.posts-article-content .posts-article-table-scroll thead > tr > td {
  font-size: 15.5px; font-weight: 700;
  background: rgba(122,148,184,.14);
}
.posts-article-content .posts-article-table-scroll :is(th,td) :is(p,div) {
  margin: 0; padding: 0; line-height: inherit;
}
.posts-article-content .posts-article-table-scroll :is(th,td) :is(p,div) + :is(p,div) { margin-top: 5px; }
.posts-article-content .posts-article-table-scroll :is(th,td) :is(span,font,p,div,strong,b) {
  font-size: inherit; line-height: inherit;
}
.posts-article-content .posts-article-table-scroll :is(th,td) img {
  display: block; max-width: min(280px, 65vw); height: auto;
  vertical-align: middle; margin: 2px auto;
  object-fit: contain;
}
@media (max-width: 767px) {
  .posts-article-content .posts-article-table-scroll :is(th,td) {
    padding: 8px 10px; font-size: 14px; line-height: 1.5;
  }
  .posts-article-content .posts-article-table-scroll th,
  .posts-article-content .posts-article-table-scroll thead > tr > td { font-size: 14px; }
}

/* Post Detail: tables own their outer spacing via the scroll wrapper.
   Prevent the article's generic 19px bottom margin from becoming a blank
   strip inside that wrapper (including tables exported by Netmarble). */
.posts-article-content .posts-article-table-scroll > table {
  display: table;
  margin-block: 0 !important;
  margin-inline: 0 !important;
  height: auto;
}
.posts-article-content .posts-article-table-scroll > table > :is(thead, tbody, tfoot),
.posts-article-content .posts-article-table-scroll > table tr {
  height: auto;
}

/* Post Detail: Latest News sticky positioning — one authoritative rule set.
   SLAHub's fixed top header is 60px; reserve a 16px clearance above the panel
   and below the viewport. Keep the heading stationary; only its list scrolls. */
@media (min-width: 1151px) {
  #app .posts-detail-page,
  #app .posts-detail-layout { overflow: visible; }
  #app .posts-detail-layout { align-items: stretch; }
  #app .posts-detail-layout > .posts-detail-latest {
    --posts-latest-top: 76px;
    position: sticky;
    top: var(--posts-latest-top);
    align-self: start;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-height: 0;
    height: calc(100dvh - var(--posts-latest-top) - 16px);
    max-height: calc(100dvh - var(--posts-latest-top) - 16px);
    overflow: hidden;
  }
  #app .posts-detail-layout > .posts-detail-latest > h2 {
    flex: 0 0 auto;
  }
  #app .posts-detail-layout > .posts-detail-latest > .posts-latest-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
  }
}
@media (max-width: 1150px) {
  #app .posts-detail-layout > .posts-detail-latest {
    position: static;
    top: auto;
    align-self: stretch;
    height: auto;
    max-height: none;
    overflow: visible;
  }
}

/* Stage 4.5.5: Post table grid survives Netmarble inline border:none/currentcolor.
   Rowspan/colspan keep their semantic geometry; only actual cell edges draw. */
.posts-article-content .posts-article-table-scroll table {
  border-collapse: collapse !important;
  border-spacing: 0 !important;
}
.posts-article-content .posts-article-table-scroll table :is(td,th) {
  border: 1px solid #465b75 !important;
  border-color: #465b75 !important;
  border-style: solid !important;
  box-sizing: border-box;
}

/* Stage 4.5.5.1: keep article tables within the article width, without a horizontal scrollbar.
   Source rowspan/colspan stay intact; only the layout and text wrapping change. */
.posts-article-content .posts-article-table-scroll {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: visible;
  overflow-y: visible;
}
.posts-article-content .posts-article-table-scroll > table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  box-sizing: border-box;
}
.posts-article-content .posts-article-table-scroll :is(td,th) {
  min-width: 0 !important;
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal;
  box-sizing: border-box;
}
.posts-article-content .posts-article-table-scroll :is(td,th) :is(p,span,a,strong,b) {
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* Hunter details: structured Advancement effects and Support Skill rich text. */
/* Override the old .structured-buff-effect { margin: 0 !important; } only in advancement cards. */
.detail-data-card.advancement-card .advancement-rich > .structured-buff-effect {
  margin: 12px 0 0 0 !important;
}
.detail-data-card.advancement-card .advancement-rich > .structured-buff-effect + .structured-buff-effect {
  margin-top: 10px !important;
}
.detail-data-card.advancement-card > div,
.detail-data-card:not(.advancement-card) > div {
  flex: 1 1 0%;
  min-width: 0;
}
/* Support-skill nested effect text has no icon: do not reserve the 44px grid column. */
.detail-data-card:not(.advancement-card) .skill-details > .adv-buff-block {
  display: block !important;
  grid-template-columns: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 10px 0 0 !important;
  box-sizing: border-box;
}
.detail-data-card:not(.advancement-card) .skill-details > .adv-buff-block > .adv-buff-text {
  display: block;
  width: 100% !important;
  min-width: 0 !important;
  white-space: normal;
  overflow-wrap: break-word;
}


/* Members Stage 3: header shortcut beside sign-in / avatar. */
.sla-header .sla-header-members{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  flex:0 0 auto;min-height:38px;padding:8px 13px;
  border:1px solid #41516b;border-radius:11px;background:#141e2d;
  color:#edf2fb;font-size:13px;font-weight:800;text-decoration:none;
  transition:border-color .18s,background-color .18s,color .18s;
}
.sla-header .sla-header-members:hover,.sla-header .sla-header-members:focus-visible{
  border-color:#ffd21a;background:#1c2a40;color:#ffe082;
}
.sla-header .sla-header-members:focus-visible{outline:2px solid #ffd21a;outline-offset:2px}
@media(max-width:520px){.sla-header .sla-header-members{padding:8px 10px;font-size:12px;gap:6px}}
@media(max-width:390px){.sla-header .sla-header-members span{display:none}.sla-header .sla-header-members{min-width:36px;padding:8px}}
@media(prefers-reduced-motion:reduce){.sla-header .sla-header-members{transition:none}}
