.bs-page{max-width:1480px;margin:0 auto;padding:22px 24px;color:#edf1f6}
.bs-page h1{font-size:28px;line-height:1.2;font-weight:750;margin:0 0 8px}
.bs-page .bs-muted{color:#9eabbc;font-size:13px}
.bs-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:20px 0}
.bs-tabs button,.bs-button{font:inherit;background:#252d38;color:#e8edf5;border:1px solid #465366;padding:12px 14px;border-radius:8px;font-size:14px;font-weight:650;cursor:pointer;transition:border-color .16s,background .16s}
.bs-tabs button:hover,.bs-button:hover{border-color:#f9cb45;background:#303b49}
.bs-tabs button[aria-selected=true]{border-color:#f5c443;background:#393728;color:#ffd85c}
.bs-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 18px}
.bs-toolbar input,.bs-toolbar select,.bs-editor input,.bs-editor textarea,.bs-editor select{background:#1b222c;color:#f5f7fa;border:1px solid #465366;border-radius:8px;padding:10px 12px;font:inherit;min-width:0}
.bs-toolbar input{flex:1;min-width:170px}.bs-toolbar select{min-width:165px}
.bs-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.bs-card{background:#262d38;border:1px solid #435063;border-radius:12px;padding:16px;display:grid;grid-template-columns:86px minmax(0,1fr);align-content:start;gap:14px;min-width:0}
.bs-icon{width:82px;height:82px;display:grid;place-items:center;background:#18202b;border:1px solid #475466;border-radius:12px;overflow:hidden}
.bs-icon img{width:100%;height:100%;object-fit:contain}.bs-icon svg{width:35px;height:35px;color:#8795a8}
.bs-card h3{font-size:16px;font-weight:700;margin:0 0 6px;line-height:1.25}
.bs-effect{color:#cdd5df;font-size:13px;line-height:1.6;white-space:normal;overflow-wrap:anywhere;grid-column:1/-1}
.bs-effect .bs-value{color:#ffdf7d}.bs-effect .bs-keyword{color:#64fac8}.bs-effect p{margin:3px 0 9px}
.bs-admin{background:#232b36;border:1px solid #435063;padding:18px;border-radius:12px}
.bs-admin-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid #394758;padding:11px 0}
.bs-admin-row:last-child{border-bottom:0}.bs-admin-row strong{flex:1;min-width:0}
.bs-editor{display:grid;gap:12px;max-width:820px}.bs-editor label{display:grid;gap:6px;color:#cbd5e1;font-size:13px}.bs-editor textarea{min-height:155px;resize:vertical}.bs-admin-actions{display:flex;gap:10px;flex-wrap:wrap}
.bs-message{margin-bottom:14px;color:#f9d872}.bs-empty{padding:28px;color:#9ca9ba;text-align:center;border:1px dashed #435063;border-radius:12px}
@media(max-width:1000px){.bs-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.bs-page{padding:16px 12px}.bs-grid{grid-template-columns:minmax(0,1fr)}.bs-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.bs-card{grid-template-columns:74px minmax(0,1fr)}.bs-icon{height:70px;width:70px}}

/* Stage 26: align stone cards with other SLAHub catalog cards. */
.bs-card{grid-template-columns:74px minmax(0,1fr);column-gap:12px;row-gap:12px;padding:15px;background:#262d38;align-items:start}
.bs-card h3{font-size:15px;line-height:1.35;margin:2px 0 5px}
.bs-icon{width:70px;height:70px;background:#1c2430;border-color:#3c485b;border-radius:9px}
.bs-icon img{width:100%;height:100%;object-fit:contain;padding:5px;box-sizing:border-box}
.bs-effect{line-height:1.65;font-size:13px;color:#d7dce5;word-break:normal;overflow-wrap:break-word}
.bs-card:hover{border-color:#667186}
.bs-image-preview{min-height:72px;display:flex;align-items:center;gap:14px;background:#1c2430;border:1px solid #465366;border-radius:9px;padding:10px;overflow-wrap:anywhere}
.bs-image-preview img{height:64px;width:64px;object-fit:contain}
.bs-image-choices{display:grid;grid-template-columns:repeat(auto-fill,minmax(65px,1fr));gap:8px;max-height:270px;overflow:auto;padding:8px;background:#1b222c;border:1px solid #465366;border-radius:9px}
.bs-image-choice{position:relative;background:#252d38;border:1px solid #465366;border-radius:8px;cursor:pointer;min-height:74px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#9eabbc}
.bs-image-choice:hover,.bs-image-choice.is-selected{border-color:#f5c443;background:#393728}
.bs-image-choice img{height:48px;width:48px;object-fit:contain}
.bs-image-choice small{font-size:10px}

/* Stage 27: stronger visual hierarchy and explicit missing-image state */
.bs-page{--bs-accent:#faca24;--bs-card:#262d38}
.bs-tabs button{min-height:44px;background:#202a36;border:1px solid #435164;color:#dce6f2;box-shadow:none}
.bs-tabs button[aria-selected=true]{background:rgba(250,202,36,.12);border-color:#faca24;color:#ffdc57;box-shadow:inset 3px 0 0 #faca24}
.bs-card{background:var(--bs-card);border:1px solid #465267;border-radius:11px;padding:16px;gap:12px;grid-template-columns:80px minmax(0,1fr)}
.bs-card:hover{border-color:#8e7c43;background:#293341}
.bs-card h3{font-size:16px;line-height:1.3;color:#f3f6fa;letter-spacing:.01em;margin:0 0 7px}
.bs-card .bs-muted{display:inline-flex;color:#9eb2cb;background:#1b2532;border:1px solid #3d4a5e;padding:3px 8px;border-radius:5px;font-size:11px}
.bs-card .bs-icon{width:76px;height:76px;background:#151e2a;border:1px solid #56647a;border-radius:9px}
.bs-card .bs-icon img{padding:5px;object-fit:contain}
.bs-icon-missing{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:#76899f;border-style:dashed!important}
.bs-icon-missing svg{width:25px;height:25px}
.bs-icon-caption{font-size:8px;font-weight:800;letter-spacing:.08em;color:#8797aa}
.bs-effect{grid-column:1/-1;border-top:1px solid rgba(139,154,174,.18);padding-top:12px;font-size:13px;line-height:1.7;color:#dbe2eb}
.bs-effect .bs-value{color:#ffdf7d;font-weight:650}.bs-effect .bs-keyword{color:#64fac8;font-weight:650}
.bs-admin-row select{background:#1b222c;color:#f3f6fa;border:1px solid #465366;border-radius:7px;padding:8px;max-width:350px;min-width:0}
.bs-bulk-row{gap:12px}.bs-bulk-row .bs-icon{width:46px;height:46px;flex-shrink:0}.bs-bulk-row .bs-icon-caption{font-size:7px}.bs-bulk-row .bs-icon-missing svg{width:18px;height:18px}
.bs-bulk-note{padding:12px;border:1px solid #465366;border-radius:8px;margin:14px 0}
@media(max-width:760px){.bs-bulk-row{flex-wrap:wrap}.bs-bulk-row select{width:100%;max-width:none}.bs-card{grid-template-columns:74px minmax(0,1fr)}.bs-card .bs-icon{width:70px;height:70px}}

/* Stage 28: visibly differentiated catalog theme and tier-aware effect colors. */
.bs-page{--bs-card:#262d38;--bs-text:#eef3f9}
.bs-page h1{color:#f6f8fc;font-size:28px;letter-spacing:-.025em}
.bs-card{display:flex;flex-direction:column;gap:0;padding:0!important;overflow:hidden;background:#262d38!important;border:1px solid #526071;box-shadow:0 3px 10px rgba(0,0,0,.15);transition:border-color .16s,transform .16s,box-shadow .16s}
.bs-card:hover{transform:translateY(-2px);border-color:#e0bd54;box-shadow:0 8px 22px rgba(0,0,0,.21)}
.bs-card-header{display:flex;gap:14px;align-items:center;min-height:98px;padding:15px 16px;position:relative;background:linear-gradient(105deg,rgba(245,192,68,.14),rgba(245,192,68,.025) 74%);border-bottom:1px solid rgba(245,192,68,.23)}
.bs-card--survival .bs-card-header{background:linear-gradient(105deg,rgba(54,190,168,.16),rgba(54,190,168,.025) 74%);border-bottom-color:rgba(60,206,174,.25)}
.bs-card-header:before{content:'';position:absolute;inset:0 auto 0 0;width:4px;background:#f0c34e}
.bs-card--survival .bs-card-header:before{background:#58d6bd}
.bs-card-heading{min-width:0;flex:1}
.bs-card h3{font-size:16px!important;line-height:1.35;margin:0 0 9px!important;color:#f6f8fd!important;font-weight:750}
.bs-card .bs-muted{color:#f1cd73!important;border:1px solid rgba(235,190,83,.38)!important;background:rgba(225,170,54,.1)!important;font-size:11px!important;padding:3px 9px!important}
.bs-card--survival .bs-muted{color:#8ae8d2!important;border-color:rgba(71,201,174,.42)!important;background:rgba(57,184,157,.12)!important}
.bs-card .bs-icon{flex:0 0 70px;width:70px!important;height:70px!important;border-color:#67748a!important;background:#1b2635!important}
.bs-card .bs-icon-missing{color:#8594ab;border-style:dashed!important}
.bs-card .bs-effect{border-top:0!important;grid-column:auto;padding:16px 17px 18px!important;line-height:1.75!important;color:#e0e7f0!important;font-size:13px!important;flex:1;overflow-wrap:break-word}
.bs-card .bs-effect .bs-value{color:#ffe18a;font-weight:700}
.bs-card .bs-effect .bs-keyword{color:#64fac8;font-weight:700}
.bs-tier{font-weight:750!important;font-variant-numeric:tabular-nums}
.bs-tier-1{color:#c5d0df!important}.bs-tier-2{color:#65bbfa!important}.bs-tier-3{color:#d59fff!important}.bs-tier-4{color:#ffce64!important}
.bs-tier-sep{color:#7f8b9c;padding:0 2px;font-weight:500}
.bs-tabs{gap:10px!important}.bs-tabs button{font-size:14px;font-weight:700;border-radius:8px}
.bs-tabs button[data-tab="survival"][aria-selected="true"]{border-color:#5cddbb;background:rgba(53,189,158,.16);color:#87edd5;box-shadow:inset 3px 0 0 #5cddbb}
.bs-tabs button[data-tab="admin"][aria-selected="true"]{border-color:#9babbd;background:#303b49;color:#f5f7fa;box-shadow:inset 3px 0 0 #adbac9}
@media(max-width:650px){.bs-card-header{padding:13px 14px;min-height:90px}.bs-card .bs-effect{padding:14px!important}}

/* Stage 29: consistent navy cards, real tier frames and catalog tabs */
.bs-page{--bs-card:#142033;--bs-border:#344a66}
.bs-card{background:linear-gradient(145deg,#17263b,#101b2c)!important;border:1px solid #364d68!important;border-radius:11px!important;box-shadow:none!important}
.bs-card:hover{transform:translateY(-1px);border-color:#bd9a3e!important;box-shadow:0 7px 18px rgba(0,0,0,.18)!important}
.bs-card-header,.bs-card--survival .bs-card-header{background:linear-gradient(90deg,#1d3048,#16263a)!important;border-bottom:1px solid #354a63!important;min-height:94px}
.bs-card-header:before,.bs-card--survival .bs-card-header:before{background:#445d7d!important;width:3px}
.bs-card .bs-muted,.bs-card--survival .bs-muted{background:#192a40!important;border:1px solid #3b536e!important;color:#b5c9e3!important}
.bs-card .bs-effect{color:#d3dff0!important}
.bs-icon,.bs-card .bs-icon{position:relative;overflow:hidden;flex:0 0 66px!important;height:66px!important;width:66px!important;background:#121d30!important;border:0!important;border-radius:10px!important}
.bs-rarity-frame{position:absolute;inset:0;background-image:var(--bs-rarity-image);background-size:100% 100%;background-position:center;pointer-events:none;opacity:.94}
.bs-icon img{position:relative!important;z-index:1!important;width:75%!important;height:75%!important;object-fit:contain!important;padding:0!important}
.bs-stone-placeholder{position:relative;z-index:1;display:grid;place-items:center;opacity:.62}.bs-stone-placeholder svg{width:23px;height:23px;color:#d3e3f5}
.bs-icon-missing{border-style:none!important}.bs-icon-caption{display:none!important}
.bs-card-own-action,.bs-card-owned{display:flex;justify-content:flex-end;gap:8px;align-items:center;padding:0 16px 14px}
.bs-card .bs-button{padding:7px 11px;font-size:12px;min-height:32px}
.bs-card-owned label{font-size:12px;color:#b9cce4;display:flex;align-items:center;gap:7px}
.bs-card-owned select{background:#1a2a40;border:1px solid #455d7a;color:#f0f4ff;border-radius:7px;padding:7px}
.bs-tabs button[data-tab="mylist"][aria-selected="true"]{border-color:#f5c443!important;background:#393728!important;color:#ffdc57!important;box-shadow:inset 3px 0 0 #faca24!important}
.bs-toolbar select{font-size:13px;min-height:39px}
@media(max-width:650px){.bs-toolbar select{flex:1;min-width:130px}.bs-card-header{min-height:82px}}

/* Stage 30 – clean layout, original rich descriptions and rarity tier hues */
.bs-card{background:linear-gradient(155deg,#17253b 0%,#111b2b 100%)!important;border-color:#354963!important}
.bs-card-header,.bs-card--survival .bs-card-header{background:linear-gradient(90deg,#1b2a40,#17263b)!important}
.bs-card .bs-effect{white-space:normal!important;text-indent:0!important;padding:14px 16px 12px!important;line-height:1.62!important}
.bs-card .bs-effect p{margin:0 0 14px!important;text-indent:0!important;padding:0!important}
.bs-card .bs-effect p:last-child{margin-bottom:0!important}
.bs-card .bs-effect .bs-tier-1{color:#52aaff!important}
.bs-card .bs-effect .bs-tier-2{color:#be82ff!important}
.bs-card .bs-effect .bs-tier-3{color:#ffae43!important}
.bs-card .bs-effect .bs-tier-4{color:#ff5c65!important}
.bs-tier-sep{color:#91a3ba!important;padding:0 1px!important}
.bs-card .bs-icon img{z-index:1!important;position:relative;object-fit:contain!important}
.bs-card .bs-rarity-frame{z-index:2!important;opacity:1!important}
.bs-icon-missing .bs-rarity-frame{opacity:1!important}
.bs-card-heading h3{font-size:15px!important}


/* Stage 32: octagonal stone icon artwork; rarity frame stays on top. */
.bs-card .bs-icon{
  flex:0 0 86px !important;
  width:86px !important;
  height:86px !important;
  border-radius:14px !important;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:#121d30 !important;
}
.bs-card-header{gap:16px;min-height:108px;}
.bs-card .bs-icon img{
  position:relative !important;
  z-index:1 !important;
  width:92% !important;
  height:92% !important;
  object-fit:contain !important;
  object-position:center !important;
  padding:0 !important;
  margin:0 !important;
  display:block;
  clip-path:polygon(30% 0%,70% 0%,100% 30%,100% 70%,70% 100%,30% 100%,0% 70%,0% 30%);
}
.bs-card .bs-rarity-frame{z-index:2 !important;pointer-events:none;}
@media(max-width:760px){
  .bs-card .bs-icon{width:78px !important;height:78px !important;flex-basis:78px !important;}
  .bs-card-header{min-height:98px;}
}


/* Stage 33: use the same catalog heading arrangement as Weapons / Hunters. */
.bs-page .bs-page-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:0 0 14px;}
.bs-page .bs-page-head h1{margin:0!important;color:var(--gold,#ffcc22)!important;font-size:24px!important;font-weight:750;line-height:1.2;}
.bs-page .bs-page-head p{margin:5px 0 0;color:var(--muted,#a9b6c7);font-size:13px;line-height:1.5;}
.bs-page .bs-page-head .count{flex:0 0 auto;background:#172438;border:1px solid #35475f;color:#f1f6fb;border-radius:999px;padding:5px 12px;font-size:14px;font-weight:750;white-space:nowrap;font-variant-numeric:tabular-nums;}
.bs-page .bs-page-head + .bs-tabs{margin-top:12px;}
@media(max-width:480px){.bs-page .bs-page-head{align-items:flex-start}.bs-page .bs-page-head .count{margin-top:2px;font-size:12px;padding:5px 9px}}

/* Stage 34: match Hunters/Weapons catalog alignment and navigation tabs. */
.bs-page{padding-left:4px!important;padding-right:4px!important;max-width:none!important}
.bs-page .bs-tabs{gap:6px!important;margin-top:12px!important;margin-bottom:10px!important}
.bs-page .bs-tabs button{
  background:#101b2b!important;
  color:#e8edf5!important;
  border:1px solid #34475f!important;
  border-radius:9px!important;
  min-height:36px!important;
  padding:7px 12px!important;
  box-shadow:none!important;
  font-size:14px!important;
  font-weight:700!important;
}
.bs-page .bs-tabs button:hover{border-color:#ffcc19!important;background:#1b2b40!important}
.bs-page .bs-tabs button[aria-selected="true"]{
  background:#ffcf20!important;
  color:#101820!important;
  border-color:#ffcf20!important;
  box-shadow:none!important;
}
.bs-page .bs-page-head{margin-bottom:12px!important}
@media(max-width:650px){
  .bs-page{padding-left:8px!important;padding-right:8px!important}
  .bs-page .bs-tabs{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}
  .bs-page .bs-tabs button{font-size:12px!important;padding:8px 4px!important}
}

/* Stage 35 — align the Blessing Stones content edge and controls with Hunters. */
/* #app already provides the global page padding; avoid a second inset. */
#app > .bs-page,
#app .bs-page{
  padding-left:0 !important;
  padding-right:0 !important;
  width:100%;
  max-width:none !important;
  margin-left:0;
  margin-right:0;
  box-sizing:border-box;
}
/* Match the shared Hunters badge, not the smaller custom badge of Stage 33. */
.bs-page .bs-page-head .count{
  padding:7px 12px !important;
  font-size:16px !important;
  line-height:1.25 !important;
  font-weight:800 !important;
  color:#f4f7fb !important;
  background:var(--panel2,#172438) !important;
  border:1px solid var(--line,#35475f) !important;
  border-radius:999px !important;
}
/* Single dark-navy filter bar like Hunters and Weapons. */
.bs-page .bs-toolbar{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:9px;
  width:100%;
  padding:9px;
  margin:0 0 12px;
  border:1px solid #34465e;
  border-radius:12px;
  background:rgba(15,24,40,.84);
  box-sizing:border-box;
}
.bs-page .bs-toolbar input#bs-search{
  flex:0 1 400px;
  width:min(400px,100%);
  min-width:170px;
  height:39px;
  padding:0 12px;
  background:#0b1220;
  color:#e7edf6;
  border:1px solid #334155;
  border-radius:9px;
  font-size:13px;
  outline:none;
  box-sizing:border-box;
}
.bs-page .bs-toolbar input#bs-search::placeholder{color:#8291a5;opacity:1}
.bs-page .bs-toolbar input#bs-search:focus{
  border-color:#facc15;
  box-shadow:0 0 0 1px rgba(250,204,21,.15);
}
.bs-page .bs-toolbar select{
  flex:0 0 190px;
  width:190px;
  min-width:130px;
  height:39px;
  padding:0 12px;
  background:#111b2c;
  color:#cbd5e1;
  border:1px solid #334155;
  border-radius:9px;
  font-size:13px;
  box-sizing:border-box;
}
.bs-page .bs-toolbar select:hover{border-color:#64748b}
.bs-page .bs-toolbar select:focus-visible{outline:2px solid #facc15;outline-offset:1px}
@media(max-width:700px){
  .bs-page .bs-toolbar input#bs-search{flex:1 1 100%;width:100%}
  .bs-page .bs-toolbar select{flex:1 1 150px;width:auto}
  .bs-page .bs-page-head .count{font-size:15px !important}
}

/* Stage 36: match Hunters header's top edge (remove nested page top padding). */
#app > .bs-page,
#app .bs-page {
  padding-top: 0 !important;
}
