/* Personnage / Build — mobile-first, pleine largeur du stage 9:16 */

.hb-modern.ys-progress-menu--hero-build {
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  max-width: none;
  padding: 0 !important;
  box-sizing: border-box;
}

.hb-modern {
  --hb-cyan: #00e8d4;
  --hb-violet: #b48cff;
  --hb-gold: #ffd56a;
  --hb-surface: rgba(8, 12, 22, 0.92);
  --hb-border: rgba(0, 232, 212, 0.18);
  --hb-footer-h: 68px;
}

.hb-modern .hero-build-header {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 4px;
  border-bottom: 1px solid rgba(180, 140, 255, 0.12);
}

.hb-modern .hb-back-btn {
  border: 1px solid rgba(0, 232, 212, 0.35);
  background: linear-gradient(165deg, rgba(6, 28, 36, 0.95), rgba(4, 14, 22, 0.9));
  color: var(--hb-cyan);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.hb-modern .hb-header-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #f2ecff;
  text-align: center;
}

.hb-modern .hero-build-hint {
  flex-shrink: 0;
  margin: 0;
  padding: 4px 10px 6px;
  font-size: 0.68rem;
  line-height: 1.35;
  color: rgba(180, 200, 230, 0.78);
  text-align: left;
}

.hb-modern .hero-build-mastery-points {
  flex-shrink: 0;
  margin: 0;
  padding: 0 10px 4px;
  font-size: 0.66rem;
  font-weight: 700;
  text-align: left;
  color: #d4b0ff;
}

/* Points maîtrise : utiles surtout dans Sorts */
.hb-modern .hero-build-mastery-points[hidden] {
  display: none !important;
}

.hb-modern:not(.hb-pane-skills) .hero-build-mastery-points:not([hidden]) {
  display: none;
}

.hb-modern .hero-build-unlock-banner {
  margin: 0 10px 6px;
  padding: 5px 8px;
  font-size: 0.62rem;
  line-height: 1.3;
}

.hb-modern .hb-unified,
.hb-modern .hero-build-body.hb-unified {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: none;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 8px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  box-sizing: border-box;
}

.hb-modern.hb-pane-build .hb-unified,
.hb-modern.hb-pane-build .hero-build-body.hb-unified {
  padding-bottom: calc(var(--hb-footer-h) + 16px + env(safe-area-inset-bottom, 0px)) !important;
}

.hb-modern .hb-shell,
.hb-modern .hero-build-mastery-wrap.hb-shell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: none !important;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.hb-modern .hb-main-tabs {
  order: 1;
}

.hb-modern .hb-hero-strip {
  order: 2;
}

.hb-modern .hb-main-content {
  order: 3;
}

/* —— Héros : carousel horizontal + résumé —— */
.hb-modern .hb-hero-strip {
  margin-bottom: 10px;
  width: 100%;
}

.hb-modern .hb-hero-carousel,
.hb-modern .hero-build-character-list,
.hb-modern .hero-build-character-list.hb-hero-carousel {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding: 2px 2px 8px;
  margin-bottom: 8px;
  width: 100%;
  scrollbar-width: thin;
}

.hb-modern .hero-build-char-card {
  flex: 0 0 auto;
  min-width: min(108px, 42vw);
  max-width: 148px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 12px;
  border: 1px solid rgba(100, 140, 180, 0.3);
  background: rgba(6, 10, 18, 0.9);
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  scroll-snap-align: start;
  box-sizing: border-box;
}

.hb-modern .hero-build-char-card.is-active {
  border-color: rgba(0, 232, 212, 0.65);
  box-shadow: 0 0 14px rgba(0, 232, 212, 0.18);
  background: linear-gradient(160deg, rgba(8, 40, 48, 0.95), rgba(12, 16, 32, 0.92));
}

.hb-modern .hero-build-char-card.is-locked {
  opacity: 0.45;
  cursor: not-allowed;
}

.hb-modern .hero-build-char-card-portrait {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hb-modern .hero-build-char-card-name {
  flex: 1;
  min-width: 0;
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #eef4ff;
  line-height: 1.2;
  word-break: break-word;
}

.hb-modern .hero-build-char-card-role {
  display: block;
  font-size: 0.62rem;
  color: var(--hb-cyan);
  line-height: 1.25;
  word-break: break-word;
}

.hb-modern .hero-build-char-card-lock {
  flex-shrink: 0;
  font-size: 0.72rem;
  line-height: 1;
  opacity: 0.85;
}

.hb-modern .hero-build-char-card-badge {
  flex-shrink: 0;
  font-size: 0.52rem;
  line-height: 1.2;
  display: inline-block;
  padding: 2px 5px;
  border-radius: 6px;
  background: rgba(0, 232, 212, 0.15);
  color: var(--hb-cyan);
  font-weight: 800;
}

.hb-modern .hb-hero-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(180, 140, 255, 0.25);
  background: linear-gradient(135deg, rgba(10, 18, 32, 0.95), rgba(6, 10, 20, 0.92));
  width: 100%;
  box-sizing: border-box;
}

.hb-modern .hb-hero-summary-portrait,
.hb-modern .hb-hero-summary-portrait.hero-build-portrait {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid rgba(0, 232, 212, 0.35);
  margin: 0;
  position: static;
  background-position: center bottom;
  background-size: contain;
}

.hb-modern .hb-hero-summary-body {
  flex: 1;
  min-width: 0;
}

.hb-modern .hb-hero-summary-role {
  margin: 0 0 4px;
  font-size: 0.62rem;
  line-height: 1.25;
  color: var(--hb-cyan);
  opacity: 0.92;
}

.hb-modern .hb-hero-summary-name {
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #b8f0ff;
  line-height: 1.2;
}

.hb-modern .hb-build-summary {
  margin: 0 0 6px;
  font-size: 0.68rem;
  line-height: 1.35;
  color: rgba(200, 210, 230, 0.85);
  word-break: break-word;
}

.hb-modern .hb-hero-summary-stats,
.hb-modern .hero-build-stats.hb-hero-summary-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  position: static;
}

.hb-modern .hero-build-stat {
  flex: 1 1 calc(33.333% - 6px);
  min-width: 72px;
  font-size: 0.62rem;
  color: rgba(200, 210, 230, 0.8);
  padding: 5px 6px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
}

.hb-modern .hero-build-stat strong {
  display: block;
  font-size: 0.82rem;
  color: #ffe8a8;
  margin-top: 2px;
}

.hb-modern .hero-build-stat--pwr strong {
  color: var(--hb-violet);
}

/* —— Sous-onglets —— */
.hb-modern .hb-main-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  width: 100%;
}

.hb-modern .hb-main-tab {
  flex: 1 1 0;
  min-width: 0;
  padding: 10px 6px;
  border-radius: 10px;
  border: 1px solid rgba(180, 140, 255, 0.28);
  background: rgba(8, 12, 22, 0.92);
  color: rgba(200, 210, 240, 0.88);
  font-size: 0.7rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.hb-modern .hb-main-tab.is-active {
  border-color: rgba(0, 232, 212, 0.65);
  color: #eafff8;
  background: linear-gradient(145deg, rgba(8, 44, 52, 0.95), rgba(14, 18, 36, 0.92));
  box-shadow: 0 0 12px rgba(0, 232, 212, 0.14);
}

.hb-modern .hb-main-content {
  width: 100%;
  min-width: 0;
}

.hb-modern .hb-main-pane {
  width: 100%;
  min-width: 0;
  border-radius: 14px;
  border: 1px solid var(--hb-border);
  background: var(--hb-surface);
  padding: 12px 10px;
  box-sizing: border-box;
}

.hb-modern .hb-main-pane[hidden] {
  display: none !important;
}

.hb-modern .hb-main-pane.is-active {
  display: block;
}

/* —— Build / slots —— */
.hb-modern .hero-build-build-title {
  margin: 0 0 10px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hb-gold);
  text-align: left;
}

.hb-modern .hero-build-equipped-col {
  width: 100%;
}

.hb-modern #heroBuildSignatureSlot {
  margin-bottom: 10px;
}

.hb-modern #heroBuildSignatureSlot .hero-build-slot {
  width: 100%;
}

.hb-modern .hero-build-slot-group {
  margin-bottom: 12px;
}

.hb-modern .hero-build-slot-group-title {
  margin: 0 0 8px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hb-modern .hero-build-slot-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  flex-direction: unset !important;
  width: 100%;
}

.hb-modern .hero-build-slot-group--passive .hero-build-slot-list {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.hb-modern .hero-build-slot {
  min-height: 92px;
  min-width: 0;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid rgba(100, 140, 180, 0.32);
  background: rgba(4, 8, 16, 0.92);
  box-sizing: border-box;
  width: 100%;
}

.hb-modern .hero-build-slot.is-slot-selected {
  border-color: rgba(0, 255, 204, 0.72);
  background: rgba(0, 42, 52, 0.88);
  box-shadow:
    0 0 0 1px rgba(0, 255, 204, 0.25),
    0 0 18px rgba(0, 255, 204, 0.18);
}

.hb-modern .hero-build-slot--signature {
  min-height: 96px;
  border-color: rgba(255, 213, 106, 0.55);
  background: linear-gradient(145deg, rgba(40, 32, 12, 0.92), rgba(12, 10, 6, 0.95));
}

.hb-modern .hero-build-slot-name {
  font-size: 0.68rem !important;
  line-height: 1.25;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.hb-modern .hero-build-slot-tag,
.hb-modern .hero-build-slot-empty {
  font-size: 0.58rem;
  line-height: 1.2;
  word-break: break-word;
}

.hb-modern .hero-build-skill-icon {
  width: 40px !important;
  height: 40px !important;
  margin-top: 4px !important;
  flex-shrink: 0;
}

.hb-modern .hero-build-kind-badge {
  font-size: 0.52rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.hb-modern .hb-go-skills-btn {
  width: 100%;
  margin-top: 4px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 232, 212, 0.4);
  background: rgba(8, 40, 48, 0.85);
  color: var(--hb-cyan);
  font-size: 0.74rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

/* —— Inventaire sorts —— */
.hb-modern .hero-build-inv-filter {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  width: 100%;
}

.hb-modern .hero-build-inv-filter-btn {
  flex: 1;
  min-height: 36px;
  padding: 8px 6px;
  border-radius: 8px;
  border: 1px solid rgba(100, 140, 180, 0.35);
  background: rgba(10, 16, 26, 0.9);
  color: rgba(180, 200, 230, 0.88);
  font-size: 0.68rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.hb-modern .hero-build-inv-filter-btn.is-active {
  border-color: rgba(0, 232, 212, 0.55);
  color: #9ef0ff;
  background: rgba(20, 50, 70, 0.88);
}

/* Bannière sync / invité — hors grille inventaire */
.hb-modern .hb-sync-banner {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(126, 232, 255, 0.35);
  background: rgba(8, 24, 40, 0.92);
  box-sizing: border-box;
}

.hb-modern .hb-sync-banner[hidden] {
  display: none !important;
}

.hb-modern .hb-sync-banner-text {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(190, 220, 255, 0.92);
  word-break: break-word;
}

.hb-modern .hb-sync-banner--guest {
  border-color: rgba(180, 140, 255, 0.4);
  background: rgba(16, 12, 32, 0.92);
}

.hb-modern .hb-sync-banner--warn {
  border-color: rgba(255, 150, 100, 0.45);
  background: rgba(32, 14, 10, 0.92);
}

.hb-modern .hb-sync-banner--sync {
  border-color: rgba(0, 232, 212, 0.35);
}

.hb-modern .hb-sync-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.hb-modern .hb-sync-banner-retry {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 232, 212, 0.45);
  background: rgba(8, 40, 48, 0.9);
  color: var(--hb-cyan);
  font-size: 0.68rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.hb-modern .hero-build-inventory {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  width: 100%;
  flex-direction: unset !important;
}

.hb-modern .hero-build-inv-card {
  border-radius: 12px;
  border: 1px solid rgba(100, 140, 180, 0.3);
  background: rgba(6, 10, 18, 0.94);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}

.hb-modern .hero-build-inv-pick {
  min-height: 0;
  width: 100%;
}

.hb-modern .hero-build-inv-main {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  min-width: 0;
  width: 100%;
}

.hb-modern .hero-build-inv-text {
  flex: 1;
  min-width: 0;
}

.hb-modern .hero-build-inv-name {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  color: #eef4ff;
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.hb-modern .hero-build-inv-lv,
.hb-modern .hero-build-inv-pwr {
  font-size: 0.62rem;
  color: rgba(180, 200, 230, 0.75);
  display: block;
  margin-top: 2px;
}

.hb-modern .hero-build-inv-btn {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 232, 212, 0.4);
  background: rgba(8, 40, 48, 0.85);
  color: var(--hb-cyan);
  font-size: 0.7rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.hb-modern .hero-build-inv-btn--done {
  border-color: rgba(100, 140, 180, 0.3);
  color: rgba(180, 200, 230, 0.7);
  cursor: default;
  background: rgba(40, 50, 65, 0.6);
}

.hb-modern .hero-build-skill-detail {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(126, 232, 255, 0.35);
  background: rgba(6, 12, 22, 0.96);
  max-height: min(48vh, 340px);
  overflow-y: auto;
}

.hb-modern #heroBuildPaneSkills.is-detail-open .hero-build-inventory {
  opacity: 0.92;
}

/* —— Équipement placeholder —— */
.hb-modern .hb-equipment-soon,
.hb-modern .hero-build-soon.hb-equipment-soon {
  padding: 32px 16px;
  text-align: center;
  max-width: none;
  margin: 0;
}

.hb-modern .hero-build-soon-title {
  font-size: 0.9rem;
}

.hb-modern .hero-build-soon-text {
  font-size: 0.72rem;
  line-height: 1.45;
}

/* —— UP —— */
.hb-modern .hb-gold-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(32, 24, 8, 0.65);
  border: 1px solid rgba(255, 200, 80, 0.3);
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffd874;
  width: 100%;
  box-sizing: border-box;
  line-height: 1.35;
  word-break: break-word;
}

.hb-modern .hb-gold-strip--guest {
  border-color: rgba(180, 140, 255, 0.4);
  background: rgba(16, 12, 32, 0.88);
  color: rgba(210, 195, 255, 0.95);
  font-weight: 600;
}

.hb-modern .hb-gold-strip #heroBuildGoldAmount {
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffe8a0;
  white-space: nowrap;
}

.hb-modern .hb-upgrades-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
}

.hb-modern .hb-upgrades-list .meta-upgrade-card {
  display: grid !important;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-areas:
    "icon body"
    "buy buy";
  gap: 10px 12px;
  width: 100%;
  max-width: none !important;
  min-width: 0;
  margin: 0;
  border-radius: 12px;
  box-sizing: border-box;
  padding: 12px;
  align-items: start;
}

.hb-modern .hb-upgrades-list .meta-upgrade-icon,
.hb-modern .hb-upgrades-list .meta-upgrade-icon.idle-card-icon {
  grid-area: icon;
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
}

.hb-modern .hb-upgrades-list .meta-upgrade-body,
.hb-modern .hb-upgrades-list .meta-upgrade-body.idle-card-body {
  grid-area: body;
  min-width: 0;
  overflow: visible;
}

.hb-modern .hb-upgrades-list .meta-upgrade-title,
.hb-modern .hb-upgrades-list .idle-card-title {
  margin: 0 0 4px;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.3;
  white-space: normal !important;
  word-break: break-word;
  writing-mode: horizontal-tb !important;
}

.hb-modern .hb-upgrades-list .meta-upgrade-effect,
.hb-modern .hb-upgrades-list .meta-upgrade-level,
.hb-modern .hb-upgrades-list .idle-card-stat,
.hb-modern .hb-upgrades-list .idle-card-counters {
  font-size: 0.72rem;
  line-height: 1.35;
  white-space: normal !important;
  word-break: break-word;
  writing-mode: horizontal-tb !important;
}

.hb-modern .hb-upgrades-list .meta-upgrade-buy,
.hb-modern .hb-upgrades-list .meta-upgrade-buy.idle-buy-btn {
  grid-area: buy;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  font-size: 0.74rem;
}

.hb-modern .hb-upgrades-list .meta-upgrade-buy-inner {
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px;
}

.hb-modern .hb-upgrades-list .meta-upgrade-cost {
  white-space: nowrap;
}

.hb-modern .hero-build-status {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.72rem;
  color: #ffb8a0;
}

/* —— Footer sticky (Build uniquement) —— */
.hb-modern .hb-footer,
.hb-modern .hero-build-footer.hb-footer {
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  border-top: 1px solid rgba(180, 140, 255, 0.2);
  background: rgba(6, 8, 16, 0.98);
  backdrop-filter: blur(8px);
  width: 100%;
  box-sizing: border-box;
}

.hb-modern .hero-build-footer[hidden],
.hb-modern:not(.hb-pane-build) .hero-build-footer {
  display: none !important;
}

.hb-modern .hb-footer .hero-build-persist-hint,
.hb-modern .hero-build-footer-tools {
  display: none !important;
}

.hb-modern .hero-build-reset-btn {
  flex: 0 0 auto;
  min-width: 0;
  padding: 9px 10px;
  min-height: 42px;
  font-size: 0.68rem;
}

.hb-modern .hero-build-footer-actions {
  display: flex;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
  margin-top: 0 !important;
}

.hb-modern .hero-build-cancel-btn,
.hb-modern .hero-build-apply-btn {
  font-size: 0.7rem;
  padding: 9px 10px;
  min-height: 42px;
}

.hb-modern .hero-build-apply-btn {
  flex: 1;
  max-width: none;
}

.hb-modern .hero-build-mastery-wrap {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.hb-modern .hero-build-tabs,
.hb-modern .hero-build-char-chip {
  display: none !important;
}

.hb-modern .hero-build-mastery-grid,
.hb-modern .hero-build-equipped-col,
.hb-modern .hero-build-center-col,
.hb-modern .hero-build-side {
  display: block;
  width: 100%;
}

.hb-modern #heroBuildPanelCharacter,
.hb-modern #heroBuildPanelEquipment {
  display: none !important;
}

/* —— Responsive : largeur du stage 9:16 (jamais de sidebar < 760px) —— */
@container stage (max-width: 419px) {
  .hb-modern .hero-build-inventory {
    grid-template-columns: 1fr;
  }
}

@container stage (min-width: 520px) {
  .hb-modern .hb-upgrades-list {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@container stage (min-width: 760px) {
  .hb-modern .hb-upgrades-list {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
}

/* ═══ Studio Build / Sorts — layout mobile game ═══ */
.hb-modern .hb-studio {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 8px 12px !important;
  background: linear-gradient(180deg, rgba(10, 14, 24, 0.98), rgba(6, 8, 16, 0.96));
  border-color: rgba(0, 232, 212, 0.22);
}

.hb-modern .hb-studio-equipped-title {
  margin: 0 0 8px;
  text-align: center;
}

.hb-modern .hb-studio-equipped-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.hb-modern .hb-studio-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 8px 6px;
  border-radius: 12px;
  box-sizing: border-box;
}

.hb-modern .hb-studio-col--active {
  border: 1px solid rgba(0, 232, 212, 0.35);
  background: linear-gradient(165deg, rgba(6, 32, 40, 0.55), rgba(4, 10, 18, 0.85));
}

.hb-modern .hb-studio-col--passive {
  border: 1px solid rgba(180, 140, 255, 0.35);
  background: linear-gradient(165deg, rgba(24, 14, 40, 0.55), rgba(6, 8, 18, 0.85));
}

.hb-modern .hb-studio-col-title {
  margin: 0 0 4px;
  text-align: center;
  color: var(--hb-cyan);
}

.hb-modern .hb-studio-col-title--passive {
  color: var(--hb-violet);
}

.hb-modern .hb-studio-slots,
.hb-modern .hb-studio-col .hero-build-slot-list {
  display: flex !important;
  flex-direction: column;
  gap: 6px;
  grid-template-columns: unset !important;
}

.hb-modern .hb-slot-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 78px;
  padding: 8px 6px;
  border-radius: 11px;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.hb-modern .hb-slot-card--active {
  border: 1px solid rgba(0, 232, 212, 0.42);
  background: rgba(4, 22, 28, 0.92);
}

.hb-modern .hb-slot-card--passive {
  border: 1px solid rgba(180, 140, 255, 0.42);
  background: rgba(12, 8, 24, 0.92);
}

.hb-modern .hb-slot-card--signature {
  border: 1px solid rgba(255, 213, 106, 0.58);
  background: linear-gradient(145deg, rgba(40, 32, 12, 0.92), rgba(12, 10, 6, 0.95));
  min-height: 82px;
}

.hb-modern .hb-slot-card--empty {
  border-style: dashed;
  opacity: 0.88;
}

.hb-modern .hb-slot-card-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}

.hb-modern .hb-slot-card--active .hb-slot-card-glow {
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 232, 212, 0.12), transparent 70%);
}

.hb-modern .hb-slot-card--passive .hb-slot-card-glow {
  background: radial-gradient(ellipse at 50% 0%, rgba(180, 140, 255, 0.12), transparent 70%);
}

.hb-modern .hb-slot-card--signature .hb-slot-card-glow {
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 213, 106, 0.15), transparent 70%);
}

.hb-modern .hb-slot-card.is-slot-selected {
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 0 20px rgba(0, 232, 212, 0.25);
}

.hb-modern .hb-slot-card.is-slot-selected .hb-slot-card-glow {
  opacity: 1;
}

.hb-modern .hb-slot-card.is-detail {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.hb-modern .hb-slot-num {
  position: absolute;
  top: 4px;
  left: 5px;
  font-size: 0.52rem;
  font-weight: 800;
  opacity: 0.7;
}

.hb-modern .hb-slot-name {
  font-size: 0.6rem !important;
  text-align: center;
  max-width: 100%;
}

.hb-modern .hb-slot-empty {
  font-size: 0.58rem;
  color: rgba(180, 200, 230, 0.55);
  font-style: italic;
}

.hb-modern .hb-slot-tag {
  font-size: 0.5rem;
  color: var(--hb-gold);
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* Détail central */
.hb-modern .hb-studio-detail {
  border-radius: 14px;
  border: 1px solid rgba(100, 140, 200, 0.35);
  background: linear-gradient(160deg, rgba(12, 18, 32, 0.96), rgba(6, 10, 20, 0.94));
  padding: 12px 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hb-modern .hb-studio-detail[hidden] {
  display: none !important;
}

.hb-modern.is-detail-open .hb-studio-detail,
.hb-modern .hb-studio.is-detail-open .hb-studio-detail {
  display: block;
}

.hb-modern .hb-studio-detail-head {
  align-items: flex-start;
}

.hb-modern .hb-studio-detail-icon .hero-build-skill-icon {
  width: 52px !important;
  height: 52px !important;
}

.hb-modern .hb-studio-detail-hero {
  margin: 4px 0 0;
  font-size: 0.62rem;
  color: rgba(180, 200, 230, 0.8);
}

.hb-modern .hb-studio-detail-state {
  margin: 4px 0 0;
  font-size: 0.62rem;
  font-weight: 700;
}

.hb-modern .hb-studio-detail-state.is-equipped {
  color: var(--hb-cyan);
}

.hb-modern .hb-studio-detail-state.is-free {
  color: rgba(180, 200, 230, 0.75);
}

.hb-modern .hb-studio-detail-state.is-locked {
  color: #ff9a8a;
}

.hb-modern .hb-studio-detail-state.is-signature {
  color: var(--hb-gold);
}

.hb-modern .hb-studio-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 8px;
}

.hb-modern .hb-studio-btn {
  flex: 1 1 calc(50% - 6px);
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid rgba(100, 140, 180, 0.4);
  background: rgba(8, 14, 24, 0.92);
  color: #e8eef6;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  touch-action: manipulation;
}

.hb-modern .hb-studio-btn--equip {
  border-color: rgba(0, 232, 212, 0.55);
  color: #9ef5e4;
  background: rgba(6, 40, 48, 0.9);
}

.hb-modern .hb-studio-btn--remove {
  border-color: rgba(255, 130, 100, 0.45);
  color: #ffc4b0;
}

.hb-modern .hb-studio-btn--replace {
  border-color: rgba(180, 140, 255, 0.5);
  color: #dcc8ff;
}

.hb-modern .hb-studio-btn--upgrade {
  border-color: rgba(255, 213, 106, 0.45);
  color: var(--hb-gold);
}

.hb-modern .hb-studio-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.hb-modern .hb-studio-btn[hidden] {
  display: none !important;
}

/* Inventaire grille */
.hb-modern .hb-studio-inventory {
  margin-top: 4px;
}

.hb-modern .hb-studio-inv-title {
  margin: 0 0 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(200, 210, 240, 0.9);
}

.hb-modern .hb-studio-inv-grid,
.hb-modern .hb-studio-inventory .hero-build-inventory {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.hb-modern .hb-inv-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px 6px;
  border-radius: 11px;
  border: 1px solid rgba(100, 140, 180, 0.32);
  background: rgba(6, 10, 18, 0.94);
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  text-align: center;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.hb-modern .hb-inv-card--active {
  border-color: rgba(0, 232, 212, 0.35);
}

.hb-modern .hb-inv-card--passive {
  border-color: rgba(180, 140, 255, 0.35);
}

.hb-modern .hb-inv-card.is-equipped {
  box-shadow: inset 0 0 0 1px rgba(0, 232, 212, 0.35);
}

.hb-modern .hb-inv-card.is-detail {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.hb-modern .hb-inv-card.is-locked {
  opacity: 0.5;
}

.hb-modern .hb-inv-card.is-compat-incompatible,
.hb-modern .hb-quick-skill.is-compat-incompatible {
  opacity: 0.42;
  filter: grayscale(0.55);
  cursor: not-allowed;
  box-shadow: inset 0 0 0 1px rgba(255, 120, 100, 0.42);
}

.hb-modern .hero-build-slot.is-compat-invalid {
  opacity: 0.5;
  filter: grayscale(0.5);
  box-shadow: 0 0 0 1px rgba(255, 120, 100, 0.45);
}

.hb-modern .hb-inv-card-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
}

.hb-modern .hb-inv-card--active .hb-inv-card-glow {
  background: radial-gradient(ellipse at 50% 100%, rgba(0, 232, 212, 0.08), transparent 65%);
}

.hb-modern .hb-inv-card--passive .hb-inv-card-glow {
  background: radial-gradient(ellipse at 50% 100%, rgba(180, 140, 255, 0.08), transparent 65%);
}

.hb-modern .hb-inv-name {
  font-size: 0.58rem !important;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hb-modern .hb-inv-lv {
  font-size: 0.52rem;
  color: rgba(180, 200, 230, 0.7);
}

.hb-modern .hb-inv-chip {
  font-size: 0.48rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 5px;
  letter-spacing: 0.03em;
}

.hb-modern .hb-inv-chip--equipped {
  background: rgba(0, 232, 212, 0.18);
  color: #9ef5e4;
}

.hb-modern .hb-inv-chip--free {
  background: rgba(100, 140, 180, 0.15);
  color: rgba(190, 210, 240, 0.8);
}

.hb-modern .hb-inv-chip--locked {
  background: rgba(80, 40, 40, 0.35);
  color: #ff9a8a;
}

.hb-modern .hb-inv-chip--sig {
  background: rgba(255, 213, 106, 0.2);
  color: var(--hb-gold);
}

.hb-modern .hb-inv-chip--incompatible {
  background: rgba(255, 120, 100, 0.22);
  color: #ffb8a0;
}

.hb-modern .hb-studio-inv-grid .hero-build-inv-btn {
  display: none;
}

@container stage (max-width: 360px) {
  .hb-modern .hb-studio-inv-grid,
  .hb-modern .hb-studio-inventory .hero-build-inventory,
  .hb-modern .hb-skills-inv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ═══ Build / Sorts séparés ═══ */
.hb-modern .hb-pane-build-view {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 6px 10px !important;
  background: linear-gradient(180deg, rgba(8, 14, 26, 0.96), rgba(5, 8, 16, 0.98));
  border-radius: 14px;
  border: 1px solid rgba(0, 232, 212, 0.14);
}

.hb-modern .hb-build-equipped {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hb-modern .hb-slot-selected-label {
  margin: 0;
  padding: 6px 10px;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hb-cyan);
  background: rgba(0, 232, 212, 0.08);
  border: 1px solid rgba(0, 232, 212, 0.28);
  border-radius: 10px;
}

.hb-modern .hb-build-equipped-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hb-modern .hb-build-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 8px;
  border-radius: 14px;
  box-sizing: border-box;
}

.hb-modern .hb-build-col--active {
  background: linear-gradient(165deg, rgba(6, 36, 44, 0.5), rgba(4, 10, 18, 0.88));
  box-shadow: inset 0 0 24px rgba(0, 232, 212, 0.06);
}

.hb-modern .hb-build-col--passive {
  background: linear-gradient(165deg, rgba(28, 16, 44, 0.5), rgba(6, 8, 18, 0.88));
  box-shadow: inset 0 0 24px rgba(180, 140, 255, 0.06);
}

.hb-modern .hb-build-col-title {
  margin: 0;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hb-modern .hb-build-col--active .hb-build-col-title {
  color: var(--hb-cyan);
}

.hb-modern .hb-build-col--passive .hb-build-col-title {
  color: var(--hb-violet);
}

.hb-modern .hb-build-slots {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hb-modern .hb-pane-build-view .hb-slot-card {
  min-height: 92px;
  padding: 10px 8px;
  border-width: 1.5px;
}

.hb-modern .hb-pane-build-view .hero-build-skill-icon {
  width: 48px !important;
  height: 48px !important;
}

.hb-modern .hb-pane-build-view .hb-slot-card--signature {
  min-height: 96px;
  border-width: 2px;
}

.hb-modern .hb-pane-build-view .hb-slot-card--passive.is-slot-selected {
  box-shadow: 0 0 0 1px rgba(180, 140, 255, 0.35), 0 0 22px rgba(180, 140, 255, 0.28);
}

.hb-modern .hb-slot-selected-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #0a1420;
  background: var(--hb-cyan);
  z-index: 1;
}

.hb-modern .hb-slot-card--passive .hb-slot-selected-badge {
  background: var(--hb-violet);
  color: #f8f4ff;
}

/* —— Mini bibliothèque rapide (onglet Build) —— */
.hb-modern .hb-build-quick-library {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 232, 212, 0.12);
}

.hb-modern .hb-build-quick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hb-modern .hb-build-quick-title {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hb-cyan);
}

.hb-modern .hb-build-skills-link-btn {
  border: none;
  background: transparent;
  color: rgba(148, 163, 184, 0.95);
  font-family: inherit;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hb-modern .hb-build-skills-link-btn:active {
  color: var(--hb-cyan);
}

.hb-modern .hb-build-quick-filter {
  display: flex;
  gap: 6px;
}

.hb-modern .hb-build-quick-filter-btn {
  flex: 1;
  padding: 6px 4px;
  border-radius: 8px;
  border: 1px solid rgba(51, 65, 85, 0.55);
  background: rgba(8, 14, 24, 0.75);
  color: #94a3b8;
  font-family: inherit;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.hb-modern .hb-build-quick-filter-btn.is-active {
  color: #0a1420;
  border-color: rgba(0, 232, 212, 0.45);
  background: var(--hb-cyan);
}

.hb-modern .hb-build-quick-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.hb-modern .hb-build-quick-grid::-webkit-scrollbar {
  display: none;
}

.hb-modern .hb-quick-skill {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 56px;
  padding: 6px 4px 4px;
  border-radius: 12px;
  border: 1.5px solid rgba(51, 65, 85, 0.55);
  background: rgba(8, 14, 24, 0.82);
  cursor: grab;
  touch-action: manipulation;
  font-family: inherit;
}

.hb-modern .hb-quick-skill .hero-build-skill-icon {
  width: 48px !important;
  height: 48px !important;
}

.hb-modern .hb-quick-skill--active {
  border-color: rgba(0, 232, 212, 0.28);
}

.hb-modern .hb-quick-skill--passive {
  border-color: rgba(180, 140, 255, 0.28);
}

.hb-modern .hb-quick-skill.is-pick-selected {
  border-color: rgba(250, 204, 21, 0.85);
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.45), 0 0 18px rgba(250, 204, 21, 0.28);
}

.hb-modern .hb-quick-skill.is-pick-selected .hb-quick-skill-glow {
  opacity: 1;
}

.hb-modern .hb-quick-skill-glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 30%, rgba(250, 204, 21, 0.2), transparent 70%);
  opacity: 0;
  pointer-events: none;
}

.hb-modern .hb-quick-skill.is-equipped {
  opacity: 0.88;
}

.hb-modern .hb-quick-equipped-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.65);
}

.hb-modern .hb-quick-kind {
  position: absolute;
  top: 4px;
  left: 4px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 5px;
  font-size: 0.46rem;
  font-weight: 900;
  line-height: 14px;
  text-align: center;
  color: #0a1420;
}

.hb-modern .hb-quick-kind--active {
  background: var(--hb-cyan);
}

.hb-modern .hb-quick-kind--passive {
  background: var(--hb-violet);
  color: #f8f4ff;
}

.hb-modern .hb-quick-skill-name {
  max-width: 52px;
  font-size: 0.48rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hb-modern .hb-quick-skill.is-dragging {
  opacity: 0.45;
  cursor: grabbing;
}

.hb-modern .hb-build-quick-grid.is-drop-unequip {
  outline: 2px dashed rgba(255, 140, 100, 0.55);
  outline-offset: 3px;
  border-radius: 10px;
}

.hb-modern.hb-pick-active .hb-slot-card.is-drop-compatible {
  border-color: rgba(0, 232, 212, 0.75) !important;
  box-shadow: 0 0 0 1px rgba(0, 232, 212, 0.35), 0 0 20px rgba(0, 232, 212, 0.22);
}

.hb-modern.hb-pick-active .hb-slot-card--passive.is-drop-compatible {
  border-color: rgba(180, 140, 255, 0.75) !important;
  box-shadow: 0 0 0 1px rgba(180, 140, 255, 0.35), 0 0 20px rgba(180, 140, 255, 0.22);
}

.hb-modern .hb-slot-card.is-slot-reject {
  animation: hb-slot-shake 0.38s ease;
}

@keyframes hb-slot-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

.hb-modern.hb-draft-dirty .hero-build-apply-btn {
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.55), 0 0 24px rgba(250, 204, 21, 0.25);
}

.hb-modern .hero-build-apply-btn.is-pending-apply {
  animation: hb-apply-pulse 1.6s ease-in-out infinite;
}

@keyframes hb-apply-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}

/* —— Onglet Sorts —— */
.hb-modern .hb-pane-skills-view {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 6px 6px 10px !important;
}

.hb-modern .hb-skills-detail {
  border-radius: 14px;
  border: 1px solid rgba(100, 140, 200, 0.32);
  background: linear-gradient(160deg, rgba(12, 18, 32, 0.97), rgba(6, 10, 20, 0.95));
  padding: 12px 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.hb-modern .hb-skills-detail[hidden] {
  display: none !important;
}

.hb-modern.hb-pane-skills.is-detail-open .hb-skills-detail,
.hb-modern .hb-pane-skills-view.is-detail-open .hb-skills-detail {
  display: block;
}

.hb-modern .hb-skills-detail-icon .hero-build-skill-icon {
  width: 56px !important;
  height: 56px !important;
}

.hb-modern .hb-skills-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 8px;
}

.hb-modern .hb-skills-btn {
  flex: 1 1 auto;
  min-width: 88px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.hb-modern .hb-skills-btn--equip {
  background: linear-gradient(180deg, rgba(0, 232, 212, 0.35), rgba(0, 180, 168, 0.2));
  border-color: rgba(0, 232, 212, 0.45);
  color: #e8fff8;
}

.hb-modern .hb-skills-btn--remove {
  background: rgba(40, 20, 30, 0.8);
  border-color: rgba(255, 120, 100, 0.35);
  color: #ffc8c0;
}

.hb-modern .hb-skills-btn--replace {
  background: rgba(30, 20, 50, 0.85);
  border-color: rgba(180, 140, 255, 0.4);
  color: #e8d8ff;
}

.hb-modern .hb-skills-btn--upgrade {
  background: rgba(20, 30, 50, 0.9);
  border-color: rgba(255, 213, 106, 0.35);
  color: var(--hb-gold);
}

.hb-modern .hb-skills-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.hb-modern .hb-skills-filter .hero-build-inv-filter-btn {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 6px;
  font-size: 0.6rem;
}

.hb-modern .hb-skills-inv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.hb-modern .hb-skills-inv-grid .hb-inv-card .hero-build-skill-icon {
  width: 40px !important;
  height: 40px !important;
}

/* Héros compact en onglet Sorts */
.hb-modern.hb-hero-compact .hero-build-character-hint {
  display: none;
}

.hb-modern.hb-hero-compact .hb-hero-strip {
  margin-bottom: 4px;
}

.hb-modern.hb-hero-compact .hb-hero-carousel {
  margin-bottom: 4px;
  padding-bottom: 4px;
}

.hb-modern.hb-hero-compact .hero-build-char-card {
  min-width: 120px;
  padding: 6px 8px;
}

.hb-modern.hb-hero-compact .hero-build-char-card-portrait {
  width: 36px;
  height: 36px;
}

.hb-modern.hb-hero-compact .hb-hero-summary {
  padding: 6px 8px;
  gap: 8px;
}

.hb-modern.hb-hero-compact .hb-hero-summary-portrait {
  width: 40px !important;
  height: 40px !important;
}

.hb-modern.hb-hero-compact .hb-hero-summary-name {
  font-size: 0.78rem !important;
}

.hb-modern.hb-hero-compact .hb-build-summary {
  font-size: 0.58rem !important;
}

.hb-modern.hb-hero-compact .hb-hero-summary-stats {
  gap: 6px;
  font-size: 0.58rem;
}

/* —— Équipement mock (phase 1) —— */
.hb-modern.hb-pane-equipment .hb-main-pane--equipment {
  min-height: 0;
}

.hb-equip-mock {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  padding: 0 8px 8px;
}

.hb-equip-mock-badge {
  margin: 0;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.62rem;
  font-weight: 700;
  color: #9ec8ff;
  background: rgba(60, 100, 180, 0.15);
  border: 1px solid rgba(120, 170, 255, 0.25);
}

.hb-equip-mock-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.hb-equip-mock-header {
  display: contents;
}

.hb-equip-shards-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(80, 40, 120, 0.5), rgba(30, 20, 50, 0.85));
  border: 1px solid rgba(180, 120, 255, 0.45);
  width: fit-content;
}

.hb-equip-shards-icon {
  color: #d8b0ff;
  font-size: 0.75rem;
}

.hb-equip-shards-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #e8d4ff;
}

.hb-equip-shards-val {
  font-size: 0.82rem;
  color: #fff;
}

.hb-equip-shards-hint {
  margin: 0;
  font-size: 0.58rem;
  color: rgba(180, 160, 220, 0.75);
}

.hb-equip-bulk-toggle.is-active {
  border-color: rgba(255, 140, 120, 0.65);
  color: #ffc8be;
}

.hb-equip-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(40, 18, 18, 0.72);
  border: 1px solid rgba(255, 120, 100, 0.35);
}

.hb-equip-bulk-summary {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffe0d8;
}

.hb-equip-bulk-detail {
  margin: 2px 0 0;
  font-size: 0.62rem;
  color: rgba(255, 220, 210, 0.82);
}

.hb-equip-bulk-bar-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.hb-equip-view-tabs {
  display: flex;
  gap: 6px;
  margin: 10px 0 8px;
}

.hb-equip-view-tab {
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(140, 120, 200, 0.35);
  background: rgba(20, 12, 40, 0.55);
  color: rgba(210, 195, 240, 0.85);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.hb-equip-view-tab.is-active {
  border-color: rgba(180, 140, 255, 0.7);
  background: rgba(60, 35, 110, 0.75);
  color: #f0e8ff;
}

.hb-equip-inv-pane {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.hb-equip-inv-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(18, 10, 36, 0.65);
  border: 1px solid rgba(120, 100, 180, 0.3);
}

.hb-equip-inv-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: flex-end;
}

.hb-equip-inv-filter {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 72px;
}

.hb-equip-inv-select {
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid rgba(130, 110, 190, 0.4);
  background: rgba(12, 8, 28, 0.9);
  color: #e8e0ff;
  font-size: 0.65rem;
}

.hb-equip-inv-hide-equipped {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  color: rgba(200, 185, 230, 0.9);
  margin-left: auto;
}

.hb-equip-inv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hb-equip-inv-bulk-bar {
  margin: 0;
}

.hb-equip-inv-list {
  max-height: min(52vh, 420px);
  overflow-y: auto;
}

.hb-equip-inv-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(100, 80, 150, 0.25);
  background: rgba(16, 10, 32, 0.55);
  margin-bottom: 6px;
}

.hb-equip-inv-row.is-bulk-selected {
  border-color: rgba(255, 140, 120, 0.55);
  background: rgba(40, 18, 18, 0.45);
}

.hb-equip-inv-row.is-equipped {
  opacity: 0.92;
}

.hb-equip-inv-check {
  flex-shrink: 0;
}

.hb-equip-inv-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #ff9a88;
}

.hb-equip-inv-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hb-equip-inv-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.6rem;
}

.hb-equip-item-badge--equipped {
  background: rgba(80, 180, 120, 0.35);
  border: 1px solid rgba(120, 255, 180, 0.5);
  color: #c8ffe0;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hb-equip-inv-destroy-val {
  font-size: 0.62rem;
  font-weight: 700;
  color: #ffc8b8;
}

.hb-equip-destroy-panel {
  width: min(92vw, 400px);
  max-height: min(88vh, 520px);
  overflow: auto;
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(32, 14, 28, 0.98), rgba(18, 10, 36, 0.98));
  border: 1px solid rgba(255, 120, 100, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.hb-equip-destroy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 8px;
  border-bottom: 1px solid rgba(255, 140, 120, 0.2);
}

.hb-equip-destroy-title {
  margin: 0;
  font-size: 0.85rem;
  color: #ffe8e0;
}

.hb-equip-destroy-body {
  padding: 12px 14px;
}

.hb-equip-destroy-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 14px 14px;
  border-top: 1px solid rgba(255, 140, 120, 0.15);
}

.hb-equip-destroy-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.hb-equip-destroy-item-name {
  margin: 0 0 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff0ec;
}

.hb-equip-destroy-item-meta {
  margin: 0 0 4px;
  font-size: 0.68rem;
}

.hb-equip-destroy-item-slot {
  margin: 0 0 6px;
  font-size: 0.62rem;
  color: rgba(200, 185, 220, 0.85);
}

.hb-equip-destroy-equipped-tag {
  margin: 0 0 6px;
  font-size: 0.62rem;
  font-weight: 800;
  color: #a8ffd0;
  letter-spacing: 0.05em;
}

.hb-equip-destroy-gain-line {
  margin: 8px 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffc8b0;
}

.hb-equip-destroy-bulk-count,
.hb-equip-destroy-bulk-total {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffe0d8;
}

.hb-equip-destroy-bulk-detail {
  margin: 0 0 4px;
  font-size: 0.65rem;
  color: rgba(220, 200, 210, 0.88);
}

.hb-equip-destroy-equipped-warn {
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(80, 40, 20, 0.55);
  border: 1px solid rgba(255, 160, 80, 0.45);
  font-size: 0.65rem;
  color: #ffd8a8;
}

.hb-equip-destroy-preview-list {
  margin: 10px 0 0;
  padding-left: 1.1rem;
  font-size: 0.62rem;
  color: rgba(210, 195, 225, 0.9);
}

.hb-equip-destroy-overlay .hb-equip-fm-close {
  color: #ffc8be;
}


.hb-equip-item-card.is-bulk-mode {
  padding-left: 0.35rem;
}

.hb-equip-item-bulk-check {
  flex-shrink: 0;
  width: 1.1em;
  font-size: 0.82rem;
  line-height: 1;
  color: rgba(230, 235, 250, 0.9);
}

.hb-equip-item-card.is-bulk-selected {
  outline: 1px solid rgba(255, 150, 120, 0.55);
}

.hb-equip-detail-destroy-gain {
  margin: 0 0 8px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffc9a8;
}

.hb-equip-mock-reset {
  align-self: flex-start;
  margin-top: 4px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px dashed rgba(255, 180, 80, 0.45);
  background: rgba(60, 40, 20, 0.35);
  color: rgba(255, 200, 120, 0.95);
  font-size: 0.62rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.hb-equip-mock-reset[hidden] {
  display: none !important;
}

.hb-equip-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.hb-equip-reset-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px dashed rgba(255, 180, 80, 0.35);
  background: rgba(40, 28, 16, 0.45);
  color: rgba(255, 200, 120, 0.85);
  font-size: 0.95rem;
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}

.hb-equip-reset-icon-btn[hidden] {
  display: none !important;
}

.hb-equip-slot-card--tile {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 4px;
  padding: 6px 4px 5px;
  min-height: 72px;
}

.hb-equip-slot-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hb-equip-slot-card--tile .hb-equip-item-thumb {
  margin: 0 auto;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
}

.hb-equip-slot-card--tile .hb-equip-lv-badge {
  display: none;
}

.hb-equip-slot-card-lv {
  font-size: 0.56rem;
  font-weight: 800;
  color: rgba(230, 235, 250, 0.92);
  line-height: 1.1;
}

.hb-equip-slot-empty-icon {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px dashed rgba(120, 150, 180, 0.35);
  background: rgba(8, 12, 20, 0.55);
}

.hb-equip-slot-card-name--sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.hb-equip-bonus-fold.is-bonus-empty,
.hb-equip-bonus-fold[hidden] {
  display: none !important;
}

.hb-equip-bonus-summary {
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(12, 20, 36, 0.75);
  border: 1px solid rgba(80, 140, 200, 0.22);
}

.hb-equip-bonus-title {
  margin: 0 0 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8ec8ff;
}

.hb-equip-bonus-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hb-equip-bonus-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.72rem;
  color: rgba(215, 225, 245, 0.92);
}

.hb-equip-bonus-list strong {
  color: #7dffb8;
  font-weight: 700;
}

.hb-equip-bonus-empty {
  color: rgba(180, 190, 210, 0.65) !important;
  justify-content: flex-start !important;
}

.hb-equip-bonus-disclaimer {
  margin: 8px 0 0;
  font-size: 0.58rem;
  color: rgba(160, 175, 200, 0.55);
  line-height: 1.35;
}

.hb-equip-btn--ghost {
  background: rgba(60, 80, 110, 0.25);
  border-color: rgba(120, 150, 190, 0.35);
  color: #b8cce8;
}

.hb-equip-mock-equipped {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.hb-equip-slot-card {
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(8, 14, 24, 0.85);
  border: 1px solid rgba(0, 232, 212, 0.12);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hb-equip-slot-card-label {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(160, 190, 220, 0.7);
}

.hb-equip-slot-card-name {
  font-size: 0.62rem;
  font-weight: 700;
  color: #f0ecff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hb-equip-mock-filters {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hb-equip-filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hb-equip-filter-label {
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(180, 200, 230, 0.8);
}

.hb-equip-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.hb-equip-filter-btn {
  border: 1px solid rgba(0, 232, 212, 0.2);
  background: rgba(6, 20, 30, 0.9);
  color: rgba(200, 220, 240, 0.85);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.6rem;
  font-family: inherit;
  cursor: pointer;
}

.hb-equip-filter-btn.is-active {
  border-color: rgba(180, 140, 255, 0.55);
  color: #e8d8ff;
  background: rgba(80, 50, 120, 0.35);
}

.hb-equip-mock-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-height: 0;
  flex: 1;
}

@media (max-width: 420px) {
  .hb-equip-mock-body {
    grid-template-columns: 1fr;
  }
}

.hb-equip-mock-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 280px;
  overflow-y: auto;
}

.hb-equip-item-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
}

.hb-equip-item-thumb {
  position: relative;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 2px solid var(--eq-rarity, #9aa8b8);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), inset 0 0 12px color-mix(in srgb, var(--eq-rarity) 25%, transparent);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.25));
  overflow: hidden;
}

.hb-equip-item-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  box-sizing: border-box;
}

.hb-equip-lv-badge {
  position: absolute;
  right: 2px;
  bottom: 2px;
  min-width: 1.4em;
  padding: 1px 4px;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  background: rgba(8, 12, 20, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  max-width: calc(100% - 4px);
}

.hb-equip-forge-delta {
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.1;
  padding: 0 3px;
  border-radius: 4px;
  letter-spacing: -0.02em;
}

.hb-equip-forge-delta--pos {
  color: #9ef0b8;
  background: rgba(40, 120, 72, 0.45);
}

.hb-equip-forge-delta--neg {
  color: #ffb0a8;
  background: rgba(140, 48, 40, 0.45);
}

.hb-equip-slot-card-lv .hb-equip-forge-delta,
.hb-equip-item-lv .hb-equip-forge-delta,
.hb-equip-detail-rarity .hb-equip-forge-delta,
.hb-equip-fm-item .hb-equip-forge-delta {
  margin-left: 3px;
  vertical-align: middle;
}

/* Identité visuelle par set (teinte fond vignette) */
.hb-equip-item-thumb.hb-equip-set--guardian {
  --eq-set-tint: #e84a4a;
  background: linear-gradient(145deg, color-mix(in srgb, var(--eq-set-tint) 22%, #1a1018), rgba(0, 0, 0, 0.3));
}
.hb-equip-item-thumb.hb-equip-set--berserker {
  --eq-set-tint: #ff8a3d;
  background: linear-gradient(145deg, color-mix(in srgb, var(--eq-set-tint) 24%, #1a1210), rgba(0, 0, 0, 0.3));
}
.hb-equip-item-thumb.hb-equip-set--assassin {
  --eq-set-tint: #9b6bff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--eq-set-tint) 22%, #120f1a), rgba(0, 0, 0, 0.3));
}
.hb-equip-item-thumb.hb-equip-set--harvester {
  --eq-set-tint: #3dd6c8;
  background: linear-gradient(145deg, color-mix(in srgb, var(--eq-set-tint) 22%, #0f1a18), rgba(0, 0, 0, 0.3));
}
.hb-equip-item-thumb.hb-equip-set--hp_set {
  --eq-set-tint: #e84a4a;
  background: linear-gradient(145deg, color-mix(in srgb, var(--eq-set-tint) 22%, #1a1018), rgba(0, 0, 0, 0.3));
}
.hb-equip-item-thumb.hb-equip-set--damage_set {
  --eq-set-tint: #ff8a3d;
  background: linear-gradient(145deg, color-mix(in srgb, var(--eq-set-tint) 24%, #1a1210), rgba(0, 0, 0, 0.3));
}

.hb-equip-item-thumb.hb-equip-kind--ring .hb-equip-item-icon {
  padding: 8px;
}

.hb-equip-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hb-equip-item-set,
.hb-equip-detail-set,
.hb-equip-set-tag {
  font-size: 0.72rem;
  color: #9fd4ff;
  opacity: 0.95;
}

.hb-equip-detail-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.hb-equip-detail-head .hb-equip-item-thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
}

.hb-equip-slot-card {
  display: flex;
  gap: 10px;
  align-items: center;
}

.hb-equip-slot-card-body {
  min-width: 0;
}

.hb-equip-item-card.hb-equip-rarity--common,
.hb-equip-item-thumb.hb-equip-rarity--common { --eq-rarity: #9aa8b8; }
.hb-equip-item-card.hb-equip-rarity--uncommon,
.hb-equip-item-thumb.hb-equip-rarity--uncommon { --eq-rarity: #5fd67a; }
.hb-equip-item-card.hb-equip-rarity--rare,
.hb-equip-item-thumb.hb-equip-rarity--rare { --eq-rarity: #5ba8ff; }
.hb-equip-item-card.hb-equip-rarity--epic,
.hb-equip-item-thumb.hb-equip-rarity--epic { --eq-rarity: #b48cff; }
.hb-equip-item-card.hb-equip-rarity--legendary,
.hb-equip-item-thumb.hb-equip-rarity--legendary { --eq-rarity: #ffd56a; }
.hb-equip-item-card.hb-equip-rarity--mythic,
.hb-equip-item-thumb.hb-equip-rarity--mythic,
.hb-equip-rarity--mythic { --eq-rarity: #ff3b48; --eq-rarity-glow: #ff1428; }

.hb-equip-item-card.hb-equip-rarity--mythic {
  border-color: color-mix(in srgb, var(--eq-rarity) 82%, #ff8a92);
  border-left: 3px solid var(--eq-rarity);
  box-shadow:
    inset 3px 0 0 var(--eq-rarity),
    0 0 14px rgba(255, 40, 55, 0.22);
}

.hb-equip-item-thumb.hb-equip-rarity--mythic {
  border-color: var(--eq-rarity);
  box-shadow:
    0 0 0 1px rgba(255, 45, 58, 0.65),
    0 0 16px rgba(255, 30, 45, 0.5),
    0 0 30px rgba(255, 20, 35, 0.22),
    inset 0 0 14px color-mix(in srgb, var(--eq-rarity) 38%, transparent);
}

.hb-equip-item-rarity.hb-equip-rarity--mythic,
.hb-equip-detail-rarity.hb-equip-rarity--mythic {
  color: #ff5a66;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(255, 45, 58, 0.55);
}

.hb-equip-item-thumb.hb-equip-rarity--mythic .hb-equip-fm-badge {
  border: 1px solid rgba(255, 110, 120, 0.7);
  background: rgba(72, 10, 18, 0.92);
  color: #ffd4d8;
  box-shadow: 0 0 8px rgba(255, 40, 55, 0.4);
}

.hb-equip-item-card.hb-equip-rarity--common { border-color: var(--eq-rarity); box-shadow: inset 3px 0 0 var(--eq-rarity); }
.hb-equip-item-card.hb-equip-rarity--uncommon { border-color: color-mix(in srgb, var(--eq-rarity) 70%, #333); box-shadow: inset 3px 0 0 var(--eq-rarity); }
.hb-equip-item-card.hb-equip-rarity--rare { border-color: color-mix(in srgb, var(--eq-rarity) 70%, #333); box-shadow: inset 3px 0 0 var(--eq-rarity); }
.hb-equip-item-card.hb-equip-rarity--epic { border-color: color-mix(in srgb, var(--eq-rarity) 70%, #333); box-shadow: inset 3px 0 0 var(--eq-rarity); }
.hb-equip-item-card.hb-equip-rarity--legendary { border-color: color-mix(in srgb, var(--eq-rarity) 70%, #333); box-shadow: inset 3px 0 0 var(--eq-rarity); }

.hb-equip-bonus-set-row {
  opacity: 0.9;
  font-size: 0.85rem;
}

.run-equip-bonus-set-tag {
  font-size: 0.75em;
  opacity: 0.85;
}

.hb-equip-item-card {
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 16, 28, 0.92);
  cursor: pointer;
  font-family: inherit;
  position: relative;
}

.hb-equip-item-card.is-compat-incompatible {
  opacity: 0.45;
  filter: grayscale(0.55);
  cursor: not-allowed;
  box-shadow: inset 0 0 0 1px rgba(255, 120, 100, 0.42);
}

.hb-equip-slot-card.is-compat-invalid {
  opacity: 0.55;
  border-color: rgba(255, 120, 100, 0.4);
}

.hb-equip-slot-invalid,
.hb-equip-compat-warn {
  display: block;
  margin-top: 4px;
  font-size: 0.58rem;
  color: rgba(255, 160, 140, 0.95);
  line-height: 1.25;
}

.hb-equip-item-card.is-selected {
  border-color: rgba(0, 232, 212, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 232, 212, 0.2);
}

.hb-equip-item-name {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #f4f0ff;
}

.hb-equip-item-meta {
  display: block;
  font-size: 0.58rem;
  color: rgba(170, 190, 220, 0.8);
  margin-top: 2px;
}

.hb-equip-item-rarity {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 700;
  margin-top: 2px;
  color: var(--eq-rarity, #ccc);
}

.hb-equip-item-stage {
  font-weight: 600;
  color: rgba(0, 232, 212, 0.85);
}

.hb-equip-item-mock-tag {
  display: block;
  font-size: 0.48rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(140, 160, 190, 0.55);
  margin-top: 3px;
}

.hb-equip-stat-range {
  font-size: 0.58rem;
  font-weight: 500;
  color: rgba(150, 170, 200, 0.65);
  margin-left: 4px;
}

.hb-equip-fm-cost-warn {
  font-size: 0.62rem;
  color: #ff8a7a;
}

.hb-equip-item-badge {
  position: static;
  display: inline-block;
  font-size: 0.48rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #00e8d4;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0, 232, 212, 0.12);
  line-height: 1.25;
}

.hb-equip-item-meta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
  min-width: 2.8em;
}

.hb-equip-item-row1 .hb-equip-item-lv {
  font-size: 0.62rem;
  font-weight: 800;
  color: rgba(230, 235, 250, 0.95);
  line-height: 1.2;
}

.hb-equip-item-card .hb-equip-lv-badge {
  display: none;
}

.hb-equip-rarity--common { --eq-rarity: #9aa8b8; }
.hb-equip-rarity--uncommon { --eq-rarity: #5fd67a; }
.hb-equip-rarity--rare { --eq-rarity: #5ba8ff; }
.hb-equip-rarity--epic { --eq-rarity: #b48cff; }
.hb-equip-rarity--legendary { --eq-rarity: #ffd56a; }

.hb-equip-item-card.hb-equip-rarity--common { border-left: 3px solid var(--eq-rarity); }
.hb-equip-item-card.hb-equip-rarity--uncommon { border-left: 3px solid var(--eq-rarity); }
.hb-equip-item-card.hb-equip-rarity--rare { border-left: 3px solid var(--eq-rarity); }
.hb-equip-item-card.hb-equip-rarity--epic { border-left: 3px solid var(--eq-rarity); }
.hb-equip-item-card.hb-equip-rarity--legendary { border-left: 3px solid var(--eq-rarity); }

.hb-equip-detail-rarity {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--eq-rarity, #ccc);
}

.hb-equip-mock-detail {
  padding: 10px;
  border-radius: 10px;
  background: rgba(8, 12, 22, 0.95);
  border: 1px solid rgba(180, 140, 255, 0.2);
  min-height: 200px;
}

.hb-equip-detail-name {
  margin: 0 0 4px;
  font-size: 0.82rem;
  color: #fff;
}

.hb-equip-detail-meta {
  margin: 8px 0;
  display: grid;
  gap: 4px;
  font-size: 0.62rem;
}

.hb-equip-detail-meta div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.hb-equip-detail-meta dt {
  color: rgba(160, 180, 210, 0.85);
}

.hb-equip-detail-meta dd {
  margin: 0;
  font-weight: 700;
  color: #e8e4ff;
}

.hb-equip-detail-stats {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hb-equip-detail-stats li {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
}

.hb-equip-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.hb-equip-btn {
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
}

.hb-equip-btn--primary {
  background: rgba(0, 200, 180, 0.2);
  border-color: rgba(0, 232, 212, 0.4);
  color: #00e8d4;
}

.hb-equip-btn--warn {
  background: rgba(180, 60, 60, 0.2);
  border-color: rgba(255, 100, 100, 0.35);
  color: #ff9a9a;
}

.hb-equip-btn--fm {
  background: rgba(120, 60, 200, 0.25);
  border-color: rgba(180, 120, 255, 0.45);
  color: #d8b0ff;
}

.hb-equip-fm-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(4, 8, 16, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.hb-equip-fm-overlay[hidden] {
  display: none !important;
}

.hb-equip-fm-panel {
  width: min(100%, 360px);
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(165deg, #12182a, #0a0e18);
  border: 1px solid rgba(180, 120, 255, 0.35);
  border-radius: 14px;
  padding: 14px;
}

.hb-equip-fm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.hb-equip-fm-header h3 {
  margin: 0;
  font-size: 0.9rem;
  color: #e8d4ff;
}

.hb-equip-fm-close {
  border: none;
  background: transparent;
  color: #aaa;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.hb-equip-fm-note {
  margin: 0 0 10px;
  font-size: 0.58rem;
  color: rgba(255, 200, 120, 0.85);
}

.hb-equip-fm-odds {
  margin: 8px 0;
  padding-left: 18px;
  font-size: 0.62rem;
  color: rgba(190, 200, 230, 0.9);
}

.hb-equip-fm-stats {
  margin: 4px 0 0;
  padding: 8px 10px;
  list-style: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hb-equip-fm-stats li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.68rem;
  padding: 2px 0;
}

.hb-equip-fm-stat-name {
  color: rgba(255, 255, 255, 0.78);
}

.hb-equip-fm-random-hint {
  margin: 6px 0 0;
  font-size: 0.6rem;
  line-height: 1.35;
  color: rgba(140, 220, 255, 0.85);
}

.hb-equip-fm-field-label {
  display: block;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}

.hb-equip-fm-result {
  margin-top: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #b8f0e8;
}

.hb-equip-mock-toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  z-index: 13000;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(20, 30, 50, 0.95);
  border: 1px solid rgba(180, 120, 255, 0.4);
  color: #f0ecff;
  font-size: 0.72rem;
  font-weight: 700;
  pointer-events: none;
  transition: opacity 0.25s;
}

.hb-equip-mock-toast.is-hide {
  opacity: 0;
}

/* Fin de run — drop équipement mock (localhost) */
.run-equip-drop-host {
  width: 100%;
  max-width: 360px;
  margin: 12px auto 0;
}

.run-equip-drop {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(8, 14, 28, 0.85);
  border: 1px solid rgba(100, 140, 200, 0.25);
  text-align: left;
}

.run-equip-drop--empty {
  border-color: rgba(120, 130, 150, 0.2);
}

.run-equip-drop-title {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8ec8ff;
}

.run-equip-drop-none {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(200, 210, 230, 0.65);
}

.run-equip-drop-new {
  margin: 0 0 6px;
  font-size: 0.75rem;
  color: #b8e8ff;
}

.run-equip-drop-meta {
  margin: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  font-size: 0.82rem;
}

.run-equip-drop-meta span {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.run-equip-drop-stats {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.run-equip-drop-stats li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.72rem;
  color: rgba(220, 230, 245, 0.9);
}

.run-equip-drop-stats strong {
  color: #7dffb8;
  font-weight: 700;
}

.run-equip-drop--found {
  border-color: rgba(160, 220, 180, 0.24);
}

.run-equip-drop--processed {
  opacity: 0.92;
}

.run-equip-drop-open-build {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid rgba(120, 200, 255, 0.3);
  background: rgba(120, 200, 255, 0.12);
  color: #cfe3ff;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.run-equip-drop-open-build:hover {
  background: rgba(120, 200, 255, 0.2);
}

#stageVictoryScreen .run-equip-drop-host,
#gameOverScreen .run-equip-drop-host {
  margin-top: 14px;
}

.equipment-run-bonus-debug.run-equip-bonus-hud,
.run-equip-bonus-hud.equipment-run-bonus-debug {
  transition: opacity 0.35s ease;
}

.run-equip-bonus-hud.is-fading {
  opacity: 0;
}

.run-equip-bonus-hud {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(6, 12, 24, 0.82);
  border: 1px solid rgba(100, 180, 255, 0.28);
  max-width: 220px;
}

.run-equip-bonus-hud-title {
  margin: 0 0 6px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9ad4ff;
}

.run-equip-bonus-hud-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.run-equip-bonus-hud-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.62rem;
  color: rgba(210, 225, 245, 0.9);
}

.run-equip-bonus-hud-list strong {
  color: #8dffc0;
}

.run-equip-bonus-mock-tag {
  opacity: 0.7;
  font-size: 0.58rem;
}

/* —— Equipment mock mobile UX polish (2026-06-19) —— */
.hb-equip-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hb-equip-set-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin: 4px 0 6px;
}

.hb-equip-set-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 5px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 20, 0.65);
  opacity: 0.45;
  min-width: 0;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.hb-equip-set-chip.has-pieces { opacity: 0.85; }
.hb-equip-set-chip.is-tier2 { opacity: 0.95; border-color: rgba(255, 255, 255, 0.16); }
.hb-equip-set-chip.is-tier3 {
  opacity: 1;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--eq-set-color, #8ec8ff) 35%, transparent);
}

.hb-equip-set-chip--guardian { --eq-set-color: #e84a4a; }
.hb-equip-set-chip--berserker { --eq-set-color: #ff8a3d; }
.hb-equip-set-chip--assassin { --eq-set-color: #9b6bff; }
.hb-equip-set-chip--harvester { --eq-set-color: #3dd6c8; }

.hb-equip-set-chip-name {
  font-size: 0.55rem;
  font-weight: 800;
  color: var(--eq-set-color, #b8cce8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hb-equip-set-chip-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.hb-equip-set-chip-count {
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(230, 235, 250, 0.9);
}

.hb-equip-set-chip-dots {
  display: inline-flex;
  gap: 2px;
}

.hb-equip-set-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.hb-equip-set-dot.is-filled {
  background: var(--eq-set-color, #8ec8ff);
  box-shadow: 0 0 4px color-mix(in srgb, var(--eq-set-color, #8ec8ff) 60%, transparent);
}

.hb-equip-bonus-fold {
  margin: 0 0 6px;
  border-radius: 8px;
  border: 1px solid rgba(80, 140, 200, 0.18);
  background: rgba(10, 16, 28, 0.5);
}

.hb-equip-bonus-fold-summary {
  padding: 8px 10px;
  font-size: 0.64rem;
  font-weight: 700;
  color: #9ec8ff;
  cursor: pointer;
  list-style: none;
}

.hb-equip-bonus-fold[open] .hb-equip-bonus-summary {
  margin: 0;
  padding: 0 10px 10px;
  border: 0;
  background: transparent;
}

.hb-equip-bonus-set-row.is-complete { color: #7dffb8; font-weight: 700; }
.hb-equip-bonus-set-row.is-partial { color: #c8e4ff; }

.hb-equip-item-row1,
.hb-equip-item-row2 {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.hb-equip-item-lv {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 800;
  color: #fff;
  background: rgba(8, 12, 20, 0.75);
  border-radius: 6px;
  padding: 1px 5px;
}

.hb-equip-slot-pill {
  font-size: 0.52rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(200, 215, 235, 0.9);
}

.hb-equip-item-stats-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.hb-equip-stat-chip {
  font-size: 0.55rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 232, 212, 0.1);
  color: #9dffe8;
  border: 1px solid rgba(0, 232, 212, 0.2);
}

.hb-equip-item-up-badge {
  display: none !important;
}

.hb-equip-item-row2-sep {
  font-size: 0.55rem;
  opacity: 0.4;
  line-height: 1;
  flex-shrink: 0;
}

.hb-equip-item-set-count {
  font-size: 0.55rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--eq-set-color, #9fd4ff);
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hb-equip-item-set-count--guardian { --eq-set-color: #e84a4a; }
.hb-equip-item-set-count--berserker { --eq-set-color: #ff8a3d; }
.hb-equip-item-set-count--assassin { --eq-set-color: #9b6bff; }
.hb-equip-item-set-count--harvester { --eq-set-color: #3dd6c8; }

.hb-equip-set-hint-badge {
  display: inline-block;
  font-size: 0.48rem;
  font-weight: 700;
  line-height: 1.25;
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(30, 38, 55, 0.55);
  color: rgba(190, 205, 230, 0.88);
  flex-shrink: 0;
}

.hb-equip-set-hint-badge--tier2 {
  color: #c8e4ff;
  border-color: rgba(120, 170, 230, 0.28);
}

.hb-equip-set-hint-badge--tier3 {
  color: #7dffb8;
  border-color: rgba(125, 255, 184, 0.28);
}

.hb-equip-set-hint-badge--plus {
  color: rgba(200, 215, 240, 0.8);
}

.hb-equip-item-card.is-equipped {
  box-shadow: inset 0 0 0 1px rgba(0, 232, 212, 0.25);
}

.hb-equip-slot-card {
  border: 1px solid rgba(0, 232, 212, 0.12);
  background: rgba(8, 14, 24, 0.85);
  border-radius: 10px;
  padding: 6px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  min-height: 64px;
  transition: border-color 0.12s ease, transform 0.12s ease;
}

.hb-equip-slot-card.is-selected {
  border-color: rgba(0, 232, 212, 0.45);
}

.hb-equip-slot-card:active {
  transform: scale(0.98);
}

.hb-equip-compare {
  margin: 8px 0;
  padding: 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hb-equip-compare-title {
  margin: 0 0 6px;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ec8ff;
}

.hb-equip-compare-cols {
  display: none;
}

.hb-equip-compare-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  gap: 4px;
  align-items: center;
  font-size: 0.6rem;
  padding: 3px 0;
}

.hb-equip-compare-up .hb-equip-compare-delta { color: #7dffb8; font-weight: 800; }
.hb-equip-compare-down .hb-equip-compare-delta { color: #ff8a7a; font-weight: 800; }
.hb-equip-compare-same .hb-equip-compare-delta { color: rgba(180, 190, 210, 0.7); }

.hb-equip-set-impact {
  margin: 8px 0 0;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.6rem;
  line-height: 1.35;
}

.hb-equip-set-impact--gain {
  color: #9dffc8;
  background: rgba(40, 120, 80, 0.2);
  border: 1px solid rgba(80, 200, 140, 0.25);
}

.hb-equip-set-impact--loss {
  color: #ffb0a0;
  background: rgba(120, 40, 30, 0.2);
  border: 1px solid rgba(200, 80, 60, 0.25);
}

.hb-equip-detail-actions--sticky {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding-top: 8px;
  background: linear-gradient(180deg, transparent, rgba(8, 12, 22, 0.95) 24%);
}

.hb-equip-btn--touch {
  min-height: 44px;
  font-size: 0.72rem;
  font-weight: 800;
}

.hb-equip-detail-more {
  margin-top: 8px;
  font-size: 0.6rem;
  color: rgba(180, 195, 220, 0.85);
}

.hb-equip-detail-more summary {
  cursor: pointer;
  font-weight: 700;
  padding: 4px 0;
}

.hb-equip-detail-stats--compact {
  margin: 6px 0 0;
}

.hb-equip-fm-result.is-flash {
  animation: hb-equip-flash 0.52s ease;
}

.hb-equip-mock-toast.is-hide {
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hb-equip-mock-toast:not(.is-hide) {
  animation: hb-equip-toast-in 0.22s ease;
}

@keyframes hb-equip-flash {
  0% { background: rgba(125, 255, 184, 0.35); }
  100% { background: transparent; }
}

@keyframes hb-equip-toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (min-width: 421px) {
  .hb-equip-mock-body {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .hb-equip-mock-list {
    max-height: min(52vh, 420px);
  }

  .hb-equip-filters-fold > summary {
    display: none;
  }

  .hb-equip-filters-fold .hb-equip-mock-filters {
    display: flex;
  }

  .hb-equip-detail-close {
    display: none;
  }

  .hb-equip-active-hero {
    display: none;
  }

  .hb-equip-info-btn,
  .hb-equip-info-pop {
    display: none;
  }
}

/* —— Equipment mobile compact (2026-06-19) —— */
@media (max-width: 420px) {
  .hb-modern.hb-pane-equipment.hb-equip-mobile-compact .hero-build-hint,
  .hb-modern.hb-pane-equipment.hb-equip-mobile-compact .hero-build-character-hint,
  .hb-modern.hb-pane-equipment.hb-equip-mobile-compact .hero-build-character-list,
  .hb-modern.hb-pane-equipment.hb-equip-mobile-compact .hb-hero-summary {
    display: none !important;
  }

  .hb-modern.hb-pane-equipment.hb-equip-mobile-compact .hb-hero-strip {
    margin: 0;
    padding: 0;
    min-height: 0;
  }

  .hb-modern.hb-pane-equipment.hb-equip-mobile-compact .hero-build-mastery-wrap.hb-shell {
    padding-top: 2px;
  }

  .hb-modern.hb-pane-equipment.hb-equip-mobile-compact .hb-main-tabs {
    margin-bottom: 4px;
  }

  .hb-equip-mock-badge--desktop,
  .hb-equip-shards-hint--desktop {
    display: none !important;
  }

  .hb-equip-mock {
    gap: 4px;
    padding: 0 6px 6px;
  }

  .hb-equip-mock-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
  }

  .hb-equip-mock-topbar {
    flex: 1 1 auto;
    min-width: 0;
  }

  .hb-equip-mock-toolbar {
    flex: 0 0 auto;
    margin: 0;
    gap: 0;
  }

  .hb-equip-shards-pill {
    padding: 4px 10px;
    gap: 4px;
  }

  .hb-equip-shards-label {
    font-size: 0.58rem;
  }

  .hb-equip-shards-val {
    font-size: 0.72rem;
  }

  .hb-equip-view-tabs {
    margin-top: 2px;
  }

  .hb-equip-view-tab {
    min-height: 40px;
    font-size: 0.68rem;
  }

  .hb-equip-mock.hb-equip-mobile-equipped-tab .hb-equip-equipped-filters {
    display: none !important;
  }

  .hb-equip-mock.hb-equip-mobile-equipped-tab .hb-equip-bonus-disclaimer {
    display: none;
  }

  .hb-equip-mock.hb-equip-mobile-equipped-tab .hb-equip-equipped-list .hb-equip-item-stats-chips,
  .hb-equip-mock.hb-equip-mobile-equipped-tab .hb-equip-equipped-list .hb-equip-set-hint-badge {
    display: none;
  }

  .hb-equip-mock.hb-equip-mobile-equipped-tab .hb-equip-bonus-fold:not([open]) {
    margin-bottom: 2px;
  }

  .hb-equip-mock.hb-equip-mobile-inventory-tab .hb-equip-inv-toolbar,
  .hb-equip-mock.hb-equip-mobile-inventory-tab .hb-equip-inv-bulk-bar {
    display: flex;
  }

  .hb-equip-mock-topbar {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
  }

  .hb-equip-active-hero {
    flex: 1;
    margin: 0;
    font-size: 0.62rem;
    font-weight: 700;
    color: rgba(200, 215, 240, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hb-equip-info-btn {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(120, 170, 255, 0.25);
    background: rgba(20, 30, 50, 0.75);
    color: #9ec8ff;
    font-size: 0.82rem;
    font-family: inherit;
    cursor: pointer;
  }

  .hb-equip-info-pop {
    position: absolute;
    z-index: 5;
    margin: 0;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.58rem;
    color: #b8cce8;
    background: rgba(12, 18, 30, 0.96);
    border: 1px solid rgba(120, 170, 255, 0.3);
    max-width: min(92vw, 320px);
  }

  .hb-equip-mock-topbar {
    position: relative;
    align-items: center;
  }

  .hb-equip-topbar-actions {
    margin-left: auto;
  }

  .hb-equip-reset-icon-btn {
    width: 28px;
    height: 28px;
    font-size: 0.82rem;
  }

  .hb-equip-mock-toolbar {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .hb-equip-mock-equipped {
    gap: 4px;
  }

  .hb-equip-slot-card--tile {
    min-height: 68px;
    padding: 5px 3px 4px;
  }

  .hb-equip-slot-card--tile .hb-equip-item-thumb,
  .hb-equip-slot-empty-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }

  .hb-equip-slot-card-label {
    font-size: 0.48rem;
    letter-spacing: 0.05em;
    line-height: 1.1;
  }

  .hb-equip-slot-card-lv {
    font-size: 0.52rem;
  }

  .hb-equip-set-strip {
    gap: 3px;
    margin: 2px 0 4px;
  }

  .hb-equip-set-chip {
    padding: 3px 4px;
    gap: 1px;
  }

  .hb-equip-set-chip-name {
    font-size: 0.48rem;
  }

  .hb-equip-set-chip-count {
    font-size: 0.52rem;
  }

  .hb-equip-set-dot {
    width: 4px;
    height: 4px;
  }

  .hb-equip-bonus-fold {
    margin-bottom: 4px;
  }

  .hb-equip-bonus-fold-summary {
    padding: 5px 8px;
    font-size: 0.58rem;
  }

  .hb-equip-bonus-fold:not([open]) .hb-equip-bonus-summary {
    display: none;
  }

  .hb-equip-filters-fold {
    margin: 0 0 3px;
    border-radius: 6px;
    border: 1px solid rgba(80, 140, 200, 0.12);
    background: rgba(8, 12, 20, 0.35);
  }

  .hb-equip-filters-fold-summary {
    padding: 5px 8px;
    font-size: 0.56rem;
    font-weight: 700;
    color: rgba(158, 200, 255, 0.9);
    cursor: pointer;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 28px;
  }

  .hb-equip-filters-fold-summary::before {
    content: "▾";
    font-size: 0.5rem;
    opacity: 0.75;
  }

  .hb-equip-filters-fold[open] .hb-equip-filters-fold-summary::before {
    transform: rotate(180deg);
  }

  .hb-equip-filters-fold .hb-equip-mock-filters {
    padding: 0 8px 8px;
  }

  .hb-equip-filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .hb-equip-filter-row::-webkit-scrollbar {
    display: none;
  }

  .hb-equip-mock-body {
    display: block;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hb-equip-mock-list {
    max-height: none;
    flex: 1;
    gap: 4px;
    scroll-behavior: smooth;
  }

  .hb-equip-item-card {
    padding: 6px 8px;
    min-height: 56px;
  }

  .hb-equip-item-thumb {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }

  .hb-equip-mock-topbar,
  .hb-equip-mock-toolbar,
  .hb-equip-mock-equipped,
  .hb-equip-set-strip,
  .hb-equip-bonus-fold,
  .hb-equip-filters-fold {
    position: relative;
    z-index: 1160;
  }

  .hb-equip-detail-wrap {
    position: fixed;
    inset: 0;
    z-index: 1150;
    pointer-events: none;
    visibility: hidden;
  }

  .hb-equip-detail-wrap.is-sheet-open {
    pointer-events: auto;
    visibility: visible;
  }

  .hb-equip-detail-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 16, 0.62);
  }

  .hb-equip-detail-wrap .hb-equip-mock-detail {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 78vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
    border-radius: 14px 14px 0 0;
    border: 1px solid rgba(120, 170, 255, 0.22);
    border-bottom: none;
    background: linear-gradient(180deg, rgba(16, 22, 36, 0.98), rgba(8, 12, 22, 0.99));
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
    transform: translateY(105%);
    transition: transform 0.22s ease;
  }

  .hb-equip-detail-wrap.is-sheet-open .hb-equip-mock-detail {
    transform: translateY(0);
  }

  .hb-equip-detail-wrap:not(.is-sheet-open) .hb-equip-mock-detail {
    display: none;
  }

  .hb-equip-detail-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: rgba(40, 50, 70, 0.65);
    color: #e8eef8;
    font-size: 1.35rem;
    line-height: 1;
    font-family: inherit;
    cursor: pointer;
  }

  .hb-equip-detail-head {
    padding-right: 44px;
  }

  .hb-equip-detail-actions--sticky {
    position: sticky;
    bottom: 0;
    margin-top: 8px;
    padding-top: 8px;
    background: linear-gradient(180deg, transparent, rgba(8, 12, 22, 0.92) 28%);
  }

  .hb-equip-filter-btn {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 0.62rem;
    flex-shrink: 0;
  }

  .hb-equip-fm-panel {
    max-width: 100%;
    margin: auto 8px 8px;
    border-radius: 14px 14px 0 0;
  }

  .hb-equip-fm-overlay {
    align-items: flex-end;
    padding: 0;
    z-index: 1200;
  }
}

/* —— Equipment API read-only preview (Phase B wiring) —— */
.hb-equip-api-readonly {
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(120, 180, 255, 0.35);
  background: linear-gradient(180deg, rgba(18, 36, 58, 0.92), rgba(10, 20, 34, 0.88));
}

.hb-equip-api-readonly--fixture {
  border-color: rgba(120, 180, 255, 0.35);
}

.hb-equip-api-readonly--persistent {
  border-color: rgba(90, 210, 160, 0.42);
  background: linear-gradient(180deg, rgba(14, 40, 34, 0.92), rgba(8, 22, 18, 0.88));
}

.hb-equip-api-readonly--persistent .hb-equip-api-readonly-badge,
.hb-equip-api-readonly--persistent .hb-equip-api-readonly-badge--short {
  color: #8ee8c4;
}

.hb-equip-api-readonly--persistent .hb-equip-api-readonly-meta {
  color: rgba(160, 235, 200, 0.72);
}

.hb-equip-api-readonly-badge {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #9ec8ff;
}

.hb-equip-api-readonly-badge--short {
  display: none;
  font-size: 0.62rem;
  font-weight: 600;
  color: #7fb0ef;
}

.hb-equip-api-readonly-status {
  margin: 0 0 6px;
  font-size: 0.64rem;
  color: rgba(220, 235, 255, 0.82);
}

.hb-equip-api-readonly-status.is-error {
  color: #ffb4a8;
}

.hb-equip-api-readonly-meta {
  margin: 0 0 8px;
  font-size: 0.58rem;
  color: rgba(180, 210, 255, 0.65);
}

.hb-equip-api-readonly-title {
  margin: 0 0 8px;
  font-size: 0.66rem;
  font-weight: 600;
  color: rgba(220, 235, 255, 0.9);
}

.hb-equip-api-readonly-list {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.hb-equip-api-item-card {
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(120, 180, 255, 0.22);
  background: rgba(0, 0, 0, 0.22);
}

.hb-equip-api-item-card.is-readonly {
  pointer-events: none;
}

.hb-equip-api-item-head {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hb-equip-api-item-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hb-equip-api-item-name {
  font-size: 0.68rem;
}

.hb-equip-api-item-sub {
  font-size: 0.58rem;
  color: rgba(200, 220, 255, 0.72);
}

.hb-equip-api-readonly-tag {
  display: inline-block;
  width: fit-content;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.52rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #9ec8ff;
  border: 1px solid rgba(120, 180, 255, 0.35);
}

.hb-equip-api-readonly-note {
  margin: 8px 0 0;
  font-size: 0.58rem;
  color: rgba(255, 200, 140, 0.85);
}

.hb-equip-api-kv-required {
  margin: 0 0 8px;
  padding: 6px 8px;
  font-size: 0.62rem;
  color: rgba(255, 210, 150, 0.95);
  background: rgba(255, 160, 60, 0.08);
  border: 1px dashed rgba(255, 180, 80, 0.35);
  border-radius: 6px;
}

.hb-equip-api-item-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.hb-equip-api-action-btn {
  font-size: 0.62rem;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(120, 220, 160, 0.45);
  background: rgba(40, 120, 80, 0.25);
  color: #b8f5d0;
  cursor: pointer;
}

.hb-equip-api-action-btn:hover:not(:disabled) {
  background: rgba(50, 150, 95, 0.35);
}

.hb-equip-api-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.hb-equip-api-readonly--persistent .hb-equip-api-action-btn {
  border-color: rgba(120, 220, 160, 0.55);
}

.hb-equip-mock-divider {
  margin: 0 0 12px;
  border: 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.hb-equip-mock-badge--below-api {
  color: rgba(255, 220, 160, 0.9);
}

@media (max-width: 420px) {
  .hb-equip-api-readonly-badge {
    display: none;
  }

  .hb-equip-api-readonly-badge--short {
    display: block;
  }
}

/* --- Equipment v2 debug panel (prod-parity preview) --- */

/* --- Equipment v2 debug panel (prod-parity preview) --- */

/* --- Equipment v2 debug panel (prod-parity preview) --- */
.hb-equip-v2-debug {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(120, 180, 255, 0.35);
  background: rgba(12, 24, 48, 0.55);
  font-size: 0.78rem;
  line-height: 1.35;
}

.hb-equip-v2-debug--persistent {
  border-color: rgba(100, 220, 160, 0.45);
  background: rgba(10, 36, 28, 0.55);
}

.hb-equip-v2-debug--fixture {
  border-color: rgba(120, 180, 255, 0.35);
}

.hb-equip-v2-debug-title {
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(200, 230, 255, 0.95);
}

.hb-equip-v2-debug-note {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  color: rgba(180, 200, 230, 0.75);
}

.hb-equip-v2-debug-status {
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.hb-equip-v2-debug-status.is-loading {
  color: rgba(180, 210, 255, 0.85);
}

.hb-equip-v2-debug-status.is-ok {
  color: rgba(140, 230, 170, 0.95);
}

.hb-equip-v2-debug-status.is-error {
  color: rgba(255, 150, 140, 0.95);
}

.hb-equip-v2-debug-line {
  margin: 0.15rem 0;
  color: rgba(210, 225, 245, 0.88);
  word-break: break-word;
}

.hb-equip-v2-debug .hb-equip-btn {
  margin-top: 0.45rem;
}

.hb-equip-v2-debug-actions {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(120, 180, 255, 0.22);
}

.hb-equip-v2-debug-action-note {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  color: rgba(255, 210, 130, 0.9);
}

.hb-equip-v2-debug-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0.35rem 0;
  font-size: 0.72rem;
  color: rgba(190, 210, 235, 0.85);
}

.hb-equip-v2-debug-select {
  width: 100%;
  max-width: 100%;
  padding: 0.25rem 0.35rem;
  border-radius: 6px;
  border: 1px solid rgba(120, 160, 210, 0.35);
  background: rgba(8, 16, 32, 0.65);
  color: rgba(230, 240, 255, 0.95);
  font-size: 0.72rem;
}

.hb-equip-v2-debug-action-status {
  margin: 0.35rem 0 0.15rem;
  font-weight: 600;
  font-size: 0.72rem;
}

.hb-equip-v2-debug-action-status.is-loading {
  color: rgba(180, 210, 255, 0.85);
}

.hb-equip-v2-debug-action-status.is-success {
  color: rgba(140, 230, 170, 0.95);
}

.hb-equip-v2-debug-action-status.is-error {
  color: rgba(255, 150, 140, 0.95);
}

.hb-equip-v2-debug-action-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.hb-equip-v2-debug-action-btns .hb-equip-btn {
  margin-top: 0;
}

.hb-equip-v2-debug-meta {
  font-size: 0.78rem;
  color: rgba(200, 220, 255, 0.85);
}

.hb-equip-v2-debug-fragments {
  font-size: 0.78rem;
  color: rgba(180, 210, 255, 0.9);
}

.hb-equip-v2-debug-seed-note {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: rgba(255, 200, 120, 0.95);
}

.hb-equip-v2-debug-destroy-confirm {
  margin-top: 0.5rem;
  padding: 0.5rem;
  border: 1px solid rgba(255, 120, 100, 0.35);
  border-radius: 6px;
  background: rgba(40, 12, 12, 0.35);
}

.hb-equip-v2-debug-destroy-warn {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  color: rgba(255, 170, 150, 0.95);
}

.hb-equip-v2-debug-destroy-fragments-note {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  color: rgba(180, 200, 230, 0.85);
}

.hb-equip-v2-debug-drop {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(120, 160, 220, 0.2);
}

.hb-equip-v2-debug-drop-title {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(190, 220, 255, 0.95);
}

.hb-equip-v2-debug-drop-note {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  color: rgba(170, 195, 230, 0.85);
}

.hb-equip-v2-debug-input {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.2rem;
  padding: 0.35rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(120, 160, 220, 0.35);
  background: rgba(8, 16, 28, 0.65);
  color: rgba(230, 240, 255, 0.95);
  font-size: 0.78rem;
}

.hb-equip-v2-debug-drop-status {
  margin: 0.35rem 0;
  font-size: 0.75rem;
  color: rgba(180, 200, 230, 0.9);
}

.hb-equip-v2-debug-drop-status.is-loading {
  color: rgba(160, 200, 255, 0.95);
}

.hb-equip-v2-debug-drop-status.is-success {
  color: rgba(140, 220, 170, 0.95);
}

.hb-equip-v2-debug-drop-status.is-error {
  color: rgba(255, 170, 150, 0.95);
}

.hb-equip-v2-debug-drop-result {
  font-size: 0.74rem;
  color: rgba(200, 220, 245, 0.92);
}

.hb-equip-v2-debug-sandbox {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(120, 200, 160, 0.22);
}

.hb-equip-v2-debug-sandbox-title {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(170, 235, 200, 0.95);
}

.hb-equip-v2-debug-sandbox-warn {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.7rem;
  line-height: 1.35;
  color: rgba(255, 210, 140, 0.92);
}

.hb-equip-v2-debug-sandbox-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.35rem 0;
  font-size: 0.76rem;
  color: rgba(200, 225, 245, 0.95);
  cursor: pointer;
}

.hb-equip-v2-debug-sandbox-toggle input {
  margin-top: 0.15rem;
}

.hb-equip-v2-debug-sandbox-status {
  margin: 0.25rem 0;
  font-size: 0.74rem;
}

.hb-equip-v2-debug-sandbox-status.is-off {
  color: rgba(180, 195, 220, 0.9);
}

.hb-equip-v2-debug-sandbox-status.is-on {
  color: rgba(140, 220, 170, 0.95);
}

.hb-equip-v2-debug-sandbox-ranked {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  color: rgba(200, 170, 170, 0.9);
}

.hb-equip-btn--danger {
  border-color: rgba(220, 90, 70, 0.55);
  color: rgba(255, 190, 175, 0.98);
  background: rgba(80, 20, 16, 0.45);
}
