/* d4-embed.css — Planner 嵌入视图样式（独立于 Planner 构建器） */

.d4-embed { margin: 0 auto; width: 100%; max-width: none; }
.d4-embed[data-d4-profile]:not(.d4-rendered):not(.d4-render-error) {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #1c1c1c;
  border-radius: 6px;
  background: #0d0d0d;
  color: #9ca3af;
  font-size: 13px;
}
.d4-embed[data-d4-type="paperdoll"]:not(.d4-rendered):not(.d4-render-error) { min-height: 430px; }
.d4-embed[data-d4-type="skills"]:not(.d4-rendered):not(.d4-render-error) { min-height: 520px; }
.d4-embed[data-d4-type="paragon"]:not(.d4-rendered):not(.d4-render-error) { min-height: 560px; }
.d4-embed[data-d4-type="classbar"]:not(.d4-rendered):not(.d4-render-error),
.d4-embed[data-d4-type="priority"]:not(.d4-rendered):not(.d4-render-error),
.d4-embed[data-d4-type="checklist"]:not(.d4-rendered):not(.d4-render-error),
.d4-embed[data-d4-type="mercenary"]:not(.d4-rendered):not(.d4-render-error) {
  min-height: 180px;
}
.d4-embed[data-d4-profile]:not(.d4-rendered):not(.d4-render-error)::before {
  content: "正在加载构筑预览...";
}
.d4t-wrapper { background: #0d0d0d; border: 1px solid #1c1c1c; border-radius: 6px; overflow: hidden; }

/* ── Paperdoll ────────────────────────────────────────────── */
.d4t-Paperdoll {
  position: relative;
  padding: 12px;
  min-height: 360px;
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  grid-template-rows: auto 1fr auto auto auto;
  gap: 4px;
}
.d4t-hero {
  grid-column: 2; grid-row: 1 / 3;
  background-size: contain; background-position: center; background-repeat: no-repeat;
  min-height: 240px; opacity: 0.6;
}
.d4t-class-0 { background-image: url("/d4-assets/media/sorcerer.88516c03.webp"); }
.d4t-class-1 { background-image: url("/d4-assets/media/druid.6f349308.webp"); }
.d4t-class-2 { background-image: url("/d4-assets/media/barbarian.8ea39d74.webp"); }
.d4t-class-3 { background-image: url("/d4-assets/media/rogue.b9096024.webp"); }
.d4t-class-4 { background-image: url("/d4-assets/media/necromancer.f7f54bd1.webp"); }
.d4t-class-5 { background-image: url("/d4-assets/media/spiritborn.ecc8ec1a.webp"); }
.d4t-class-6 { background-image: url("/d4-assets/media/paladin.067036f6.webp"); }
.d4t-class-7 { background-image: url("/d4-assets/media/spec-warlock.5f961853.webp"); }

.d4t-armor-slots { grid-column: 1; grid-row: 1 / 3; display: flex; flex-direction: column; gap: 4px; z-index: 1; }
.d4t-jewelry-slots { grid-column: 3; grid-row: 1 / 3; display: flex; flex-direction: column; gap: 4px; z-index: 1; }
.d4t-weapon.d4t-left { grid-column: 1; grid-row: 3; z-index: 1; display: flex; justify-content: center; }
.d4t-weapon.d4t-center { grid-column: 2; grid-row: 3; z-index: 1; display: flex; justify-content: center; align-items: center; }
.d4t-weapon.d4t-right { grid-column: 3; grid-row: 3; z-index: 1; display: flex; justify-content: center; }
.d4t-dual-weapons.d4t-right { grid-column: 3; grid-row: 3; z-index: 1; display: flex; justify-content: center; position: relative; }
.d4t-dual-slots {
  width: 92px;
  height: 58px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.d4t-dual-slots .d4t-slot {
  position: absolute;
  width: 40px;
  height: 52px;
}
.d4t-dual-slots .d4t-slot:first-child { left: 0; }
.d4t-dual-slots .d4t-slot:last-child { right: 0; }
.d4t-group {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid #383838;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d0c19a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.d4t-group-bow::before { content: "Bow"; }
.d4t-group-dual::before { content: "DW"; }
.d4t-group-blunt::before { content: "2H"; }
.d4t-group-slash::before { content: "2H"; }

.d4t-slot {
  width: 48px; height: 48px;
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(0,0,0,0.6);
  border: 2px solid #333;
}
.d4t-frame { position: absolute; inset: 0; border-radius: 2px; pointer-events: none; }
.d4t-frame-legendary { border: 2px solid #f5a623; }
.d4t-frame-unique { border: 2px solid #8b5cf6; }
.d4t-frame-mythic { border: 2px solid #ef4444; }
.d4t-frame-rare { border: 2px solid #eab308; }
.d4t-image {
  width: 100%; height: 100%;
  background-size: contain; background-position: center; background-repeat: no-repeat;
}
.d4t-socket {
  position: absolute; bottom: 1px; right: 1px;
  width: 12px; height: 12px;
}

.d4t-Paperdoll > .d4t-title {
  grid-column: 1 / -1; grid-row: 4;
  text-align: right;
  font-size: 20px; font-weight: 700;
  color: rgba(255,255,255,0.12);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: 4px;
}
.d4t-planner-link {
  grid-column: 1 / -1; grid-row: 5;
  text-align: center;
  font-size: 11px; color: #555;
  text-decoration: none;
  padding: 6px 0;
  cursor: pointer;
}
.d4t-planner-link:hover { color: #057af0; }

.d4t-paperdoll-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 0 10px;
  background: #0d0d0d;
}

.d4t-paperdoll-skillbar {
  position: relative;
  width: 320px;
  height: 64px;
  background-image: url(/d4-assets/media/skillbar.9c45ba7b.webp);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.d4t-paperdoll-skill-slot {
  position: absolute;
  top: 7px;
  width: 48px;
  height: 48px;
}

.d4t-paperdoll-skill-slot:nth-child(1) { left: 9px; }
.d4t-paperdoll-skill-slot:nth-child(2) { left: 60px; }
.d4t-paperdoll-skill-slot:nth-child(3) { left: 111px; }
.d4t-paperdoll-skill-slot:nth-child(4) { left: 162px; }
.d4t-paperdoll-skill-slot:nth-child(5) { left: 213px; }
.d4t-paperdoll-skill-slot:nth-child(6) { left: 264px; }

.d4t-paperdoll-skill-icon {
  position: absolute;
  inset: 0;
  background-size: 48px auto;
  background-position: 50%;
  background-repeat: no-repeat;
}

.d4t-paperdoll-footer .skill-bar_PlannerSkillBar__cB_YL {
  position: relative;
  width: 320px;
  max-width: 100%;
  height: 64px;
  margin-top: 4px;
}

.d4t-paperdoll-footer .skill-bar_PlannerSkillBar__slot__9zawy {
  position: absolute;
  top: 7px;
  width: 48px;
  height: 48px;
}

.d4t-paperdoll-footer .skill-bar_PlannerSkillBar__slot__9zawy:nth-child(1) { left: 213px; }
.d4t-paperdoll-footer .skill-bar_PlannerSkillBar__slot__9zawy:nth-child(2) { left: 264px; }
.d4t-paperdoll-footer .skill-bar_PlannerSkillBar__slot__9zawy:nth-child(3) { left: 9px; }
.d4t-paperdoll-footer .skill-bar_PlannerSkillBar__slot__9zawy:nth-child(4) { left: 60px; }
.d4t-paperdoll-footer .skill-bar_PlannerSkillBar__slot__9zawy:nth-child(5) { left: 111px; }
.d4t-paperdoll-footer .skill-bar_PlannerSkillBar__slot__9zawy:nth-child(6) { left: 162px; }

.d4t-paperdoll-footer .skill-slot_SkillSlot__icon__3D0SR {
  position: absolute;
  inset: 0;
  background-size: 48px auto;
  background-position: 50%;
  background-repeat: no-repeat;
}

.d4t-paperdoll-classbar {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 360px;
  flex-wrap: wrap;
}

.d4t-paperdoll-classbar-group {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
}

.d4t-paperdoll-classbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 38px;
}

.d4t-paperdoll-classbar-frame {
  width: 38px;
  height: 38px;
  border: 1px solid #3a3020;
  background: #090909;
  box-shadow: inset 0 0 0 1px #0f0f0f, 0 0 0 1px rgba(185, 144, 57, 0.2);
  padding: 2px;
}

.d4t-paperdoll-classbar-icon {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.d4t-paperdoll-classbar-level {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 14px;
  font-size: 11px;
  line-height: 1;
  color: #d8c58f;
}

.d4t-paperdoll-classbar-value {
  min-width: 16px;
  padding: 1px 4px;
  text-align: center;
  border: 1px solid #3b3323;
  background: #080808;
}

.d4t-paperdoll-footer .barbarian_BarbarianBar__3bZZY {
  width: 320px;
  max-width: 100%;
  margin: 4px auto 0;
}

.d4t-paperdoll-footer .barbarian_BarbarianBar__expertise__2vL7x {
  gap: 0;
}

.d4t-paperdoll-footer .barbarian_BarbarianBar__technique__16qT0 {
  margin-left: 6px;
}

.d4t-paperdoll-footer .barbarian_BarbarianBar__icon__n03xk {
  background-position: 50%;
  background-repeat: no-repeat;
}

.d4t-paperdoll-footer .barbarian_hidden__21HCK {
  visibility: hidden;
}

.d4t-paperdoll-footer .warlock_WarlockBar__2Tu51 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 320px;
  max-width: 100%;
  margin: 4px auto 0;
}

.d4t-paperdoll-footer .warlock_WarlockBar__primary__2u4K2,
.d4t-paperdoll-footer .warlock_WarlockBar__secondary__1Ds2h {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.d4t-paperdoll-footer .warlock_WarlockBar__primary__2u4K2 {
  gap: 1px;
}

.d4t-paperdoll-footer .warlock_WarlockBar__secondary__1Ds2h {
  gap: 23px;
}

.d4t-paperdoll-footer .warlock_WarlockBar__shard__2R2Sf,
.d4t-paperdoll-footer .warlock_WarlockBar__fragment__3ETV- {
  border: 0;
  padding: 0;
  background-color: transparent;
  background-image: url("/d4-assets/media/spec-warlock.5f961853.webp");
  background-repeat: no-repeat;
  border-radius: 50%;
  cursor: default;
}

.d4t-paperdoll-footer .warlock_WarlockBar__shard__2R2Sf {
  width: 76px;
  height: 84px;
  filter: grayscale(97%);
}

.d4t-paperdoll-footer .warlock_WarlockBar__shard__2R2Sf.warlock_active__31qXf {
  background-position-x: -76px;
  filter: none;
}

.d4t-paperdoll-footer .warlock_WarlockBar__shard__2R2Sf:first-child { background-position-y: 0; }
.d4t-paperdoll-footer .warlock_WarlockBar__shard__2R2Sf:nth-child(2) { background-position-y: -84px; }
.d4t-paperdoll-footer .warlock_WarlockBar__shard__2R2Sf:nth-child(3) { background-position-y: -168px; }
.d4t-paperdoll-footer .warlock_WarlockBar__shard__2R2Sf:nth-child(4) { background-position-y: -252px; }

.d4t-paperdoll-footer .warlock_WarlockBar__fragment__3ETV- {
  width: 40px;
  height: 40px;
  filter: grayscale(97%);
}

.d4t-paperdoll-footer .warlock_WarlockBar__fragment__3ETV-.warlock_active__31qXf {
  filter: none;
}

.d4t-paperdoll-footer .warlock_WarlockBar__fragment__3ETV-.warlock_disabled__yJNcj {
  opacity: 0.55;
}

.d4t-paperdoll-footer .warlock_WarlockBar__fragment__3ETV-:first-child { background-position-x: 0; }
.d4t-paperdoll-footer .warlock_WarlockBar__fragment__3ETV-:nth-child(2) { background-position-x: -40px; }
.d4t-paperdoll-footer .warlock_WarlockBar__fragment__3ETV-:nth-child(3) { background-position-x: -80px; }

.d4t-paperdoll-footer .warlock_WarlockBar__sub0__1CVfo .warlock_WarlockBar__fragment__3ETV-,
.d4t-paperdoll-footer .warlock_WarlockBar__sub0__local .warlock_WarlockBar__fragment__3ETV- { background-position-y: -336px; }
.d4t-paperdoll-footer .warlock_WarlockBar__sub1__11lSC .warlock_WarlockBar__fragment__3ETV-,
.d4t-paperdoll-footer .warlock_WarlockBar__sub1__local .warlock_WarlockBar__fragment__3ETV- { background-position-y: -376px; }
.d4t-paperdoll-footer .warlock_WarlockBar__sub2__3QPWS .warlock_WarlockBar__fragment__3ETV-,
.d4t-paperdoll-footer .warlock_WarlockBar__sub2__local .warlock_WarlockBar__fragment__3ETV- { background-position-y: -416px; }
.d4t-paperdoll-footer .warlock_WarlockBar__sub3__YxgZS .warlock_WarlockBar__fragment__3ETV-,
.d4t-paperdoll-footer .warlock_WarlockBar__sub3__local .warlock_WarlockBar__fragment__3ETV- { background-position-y: -456px; }

/* ── Composite Paperdoll (multi-variant tabs) ─────────────── */
.d4t-CompositePaperdoll {
  width: 340px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.d4tools-wrapper .d4t-CompositePaperdoll.d4t-CompositePaperdoll--s13-warlock {
  width: 930px;
  max-width: 100%;
  align-items: stretch;
}

.d4tools-wrapper .d4t-s13-equipment-layout {
  display: grid;
  grid-template-columns: minmax(0, 582px) minmax(300px, 340px);
  gap: 8px;
  align-items: stretch;
  width: 100%;
  max-width: 930px;
}

.d4t-s13-equipment-main,
.d4t-s13-equipment-side {
  min-width: 0;
}

.d4t-s13-equipment-main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #202020;
  background: #070707;
}

.d4t-s13-equipment-toolbar {
  position: relative;
  min-height: 42px;
  border-bottom: 1px solid #151515;
  background: #0f0f0f;
  display: flex;
  align-items: center;
  justify-content: center;
}

.d4t-s13-equipment-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.d4t-s13-equipment-tab {
  height: 32px;
  border: 1px solid #262626;
  border-radius: 6px;
  background: #151515;
  color: #bdbdbd;
  padding: 0 15px;
  font-size: 14px;
  font-weight: 700;
  line-height: 30px;
}

.d4t-s13-equipment-tab.d4t-active {
  border-color: #1672c7;
  background: #132033;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(74, 153, 229, 0.28);
}

.d4t-s13-equipment-open {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 1px solid #242424;
  border-radius: 7px;
  background: #151515;
  color: #0b84ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 17px;
  font-weight: 800;
}

.d4t-s13-equipment-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.d4t-s13-equipment-paperdoll {
  position: relative;
  height: 688px;
  overflow: hidden;
  background: #050505;
}

.d4t-s13-equipment-background,
.d4t-s13-equipment-artwork,
.d4t-s13-equipment-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.d4t-s13-equipment-background {
  background-image:
    radial-gradient(circle at 50% 48%, rgba(80, 72, 58, 0.16), transparent 30%),
    radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.86) 82%),
    url("/d4-assets/media/planner-bg.0879882b.webp");
  background-size: cover;
  background-position: center top;
  opacity: 0.94;
}

.d4t-s13-equipment-artwork.d4t-class-7 {
  background-image: url("/d4-assets/media/spec-warlock.5f961853.webp");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.92;
}

.d4t-s13-equipment-overlay {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.36), transparent 28%, transparent 72%, rgba(0,0,0,0.42)),
    linear-gradient(180deg, rgba(0,0,0,0.18), transparent 42%, rgba(0,0,0,0.34));
}

.d4t-s13-equipment-slots,
.d4t-s13-equipment-weapon,
.d4t-s13-equipment-labels,
.d4t-s13-runewords,
.d4t-s13-skillbar {
  position: absolute;
  z-index: 3;
}

.d4t-s13-equipment-armor-slots {
  left: 10px;
  top: 24px;
  height: 365px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.d4t-s13-equipment-jewelry-slots {
  right: 10px;
  top: 24px;
  height: 244px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.d4t-s13-equipment-weapon-left {
  left: 10px;
  top: 390px;
}

.d4t-s13-equipment-weapon-right {
  right: 10px;
  top: 390px;
}

.d4t-s13-slot {
  width: 43px;
  height: 63px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background-image: url("/d4-assets/media/slots.20b6acce.webp");
  background-size: 170px 73px;
  background-position: -49px 0;
  cursor: default;
}

.d4t-s13-slot-weapon {
  width: 49px;
  height: 73px;
  background-position: 0 0;
}

.d4t-s13-slot .d4t-frame {
  position: absolute;
  inset: 3px;
  border: 0;
  border-radius: 0;
  background-image: url("/d4-assets/media/frames.979f76d2.webp");
  background-size: 700% 100%;
  z-index: 1;
}

.d4t-s13-slot .d4t-frame-normal { background-position-x: 0; }
.d4t-s13-slot .d4t-frame-magic { background-position-x: -100%; }
.d4t-s13-slot .d4t-frame-rare { background-position-x: -200%; }
.d4t-s13-slot .d4t-frame-legendary { background-position-x: -300%; }
.d4t-s13-slot .d4t-frame-unique { background-position-x: -400%; }
.d4t-s13-slot .d4t-frame-set { background-position-x: -500%; }
.d4t-s13-slot .d4t-frame-mythic { background-position-x: -600%; }

.d4t-s13-slot .d4t-image {
  position: absolute;
  inset: 3px;
  width: auto;
  height: auto;
  z-index: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.d4t-s13-slot .d4t-socket {
  position: relative;
  z-index: 2;
  width: 28px;
  height: 28px;
  margin: 18px auto -24px;
  background-image: url("/d4-assets/media/socket.130ea97d.webp");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.d4t-s13-slot .d4t-gems-icon {
  width: 28px;
  height: 28px;
  display: block;
  opacity: 0.62;
}

.d4t-s13-empty-image {
  position: absolute;
  inset: 8px 5px;
  background-image: url("/d4-assets/media/empty.42d63759.webp");
  background-size: 306px auto;
  background-repeat: no-repeat;
  opacity: 0.65;
}

.d4t-s13-equipment-labels {
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.d4t-s13-equipment-label {
  position: absolute;
  width: 205px;
  line-height: 1.08;
  text-shadow: 0 2px 4px #000, 0 0 4px #000;
}

.d4t-s13-equipment-label--left {
  left: 74px;
  text-align: left;
}

.d4t-s13-equipment-label--right {
  right: 74px;
  text-align: right;
}

.d4t-s13-equipment-label-name {
  color: #f1f1f1;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.d4t-s13-equipment-label-type {
  margin-top: 3px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.96;
}

.d4t-s13-equipment-label--legendary .d4t-s13-equipment-label-name { color: #ff9800; }
.d4t-s13-equipment-label--unique .d4t-s13-equipment-label-name { color: #d7a75f; }
.d4t-s13-equipment-label--mythic .d4t-s13-equipment-label-name { color: #d67bff; }
.d4t-s13-equipment-label--set .d4t-s13-equipment-label-name { color: #45d84a; }
.d4t-s13-equipment-label--magic .d4t-s13-equipment-label-name { color: #8fb3ff; }
.d4t-s13-equipment-label--rare .d4t-s13-equipment-label-name { color: #f3d16f; }

.d4t-s13-label-slot-4 { top: 48px; }
.d4t-s13-label-slot-5 { top: 116px; }
.d4t-s13-label-slot-13 { top: 184px; }
.d4t-s13-label-slot-14 { top: 252px; }
.d4t-s13-label-slot-15 { top: 320px; }
.d4t-s13-label-slot-18 { top: 46px; }
.d4t-s13-label-slot-17 { top: 128px; }
.d4t-s13-label-slot-16 { top: 210px; }
.d4t-s13-label-slot-7,
.d4t-s13-label-slot-6 {
  top: 438px;
}

.d4t-s13-runewords {
  left: 8px;
  right: 8px;
  bottom: 102px;
  height: 80px;
  display: flex;
  justify-content: center;
  gap: 32px;
  pointer-events: none;
  z-index: 5;
}

.d4t-s13-runeword {
  display: flex;
  gap: 16px;
}

.d4t-s13-rune {
  width: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #d8d8d8;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 2px 4px #000;
}

.d4t-s13-rune-icon {
  position: relative;
  width: 56px;
  height: 54px;
  border: 1px solid #333;
  border-radius: 5px;
  background: rgba(20,20,20,0.88);
}

.d4t-s13-rune-image {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.d4t-s13-skillbar {
  left: 8px;
  right: 8px;
  bottom: 20px;
  height: 74px;
  background-image: url("/d4-assets/media/skillbar.9c45ba7b.webp");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 5;
}

.d4t-s13-skillbar .skill-bar_PlannerSkillBar__cB_YL {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  background: none;
}

.d4t-s13-skillbar .skill-bar_PlannerSkillBar__slot__9zawy {
  position: absolute;
  top: 10px;
  width: 54px;
  height: 54px;
  border: 1px solid #4a3a76;
  background: rgba(14, 10, 22, 0.82);
}

.d4t-s13-skillbar .skill-bar_PlannerSkillBar__slot__9zawy:nth-child(1) { left: 63px; }
.d4t-s13-skillbar .skill-bar_PlannerSkillBar__slot__9zawy:nth-child(2) { left: 146px; }
.d4t-s13-skillbar .skill-bar_PlannerSkillBar__slot__9zawy:nth-child(3) { left: 229px; }
.d4t-s13-skillbar .skill-bar_PlannerSkillBar__slot__9zawy:nth-child(4) { left: 312px; }
.d4t-s13-skillbar .skill-bar_PlannerSkillBar__slot__9zawy:nth-child(5) { left: 395px; }
.d4t-s13-skillbar .skill-bar_PlannerSkillBar__slot__9zawy:nth-child(6) { left: 478px; }

.d4t-s13-skillbar .skill-slot_SkillSlot__icon__3D0SR {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.d4t-s13-panel {
  overflow: hidden;
  border: 1px solid #202020;
  border-radius: 4px;
  background: #0d0d0d;
}

.d4t-s13-panel-title {
  border-bottom: 1px solid #202020;
  background: #151515;
  padding: 12px;
  text-align: center;
  color: #f4f4f4;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.d4t-s13-talisman-orbit {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #050505;
}

.d4t-s13-talisman-background,
.d4t-s13-talisman-artwork,
.d4t-s13-talisman-sockets {
  position: absolute;
  inset: 0;
}

.d4t-s13-talisman-background {
  background-image:
    radial-gradient(ellipse farthest-corner at center, transparent, rgba(0, 0, 0, 0.8)),
    url("/d4-assets/media/gothic-bg.ef47bf79.webp");
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 32px #000;
  z-index: 0;
}

.d4t-s13-talisman-artwork {
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.d4t-s13-talisman-artwork-inner {
  width: 110%;
  height: 110%;
  background-image: url("/d4-assets/media/talismans.8d8c4d27.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.d4t-s13-talisman-sockets {
  z-index: 2;
}

.d4t-s13-talisman-node {
  position: absolute;
  z-index: 3;
  --slot-size: 58px;
  width: var(--slot-size);
  height: calc(var(--slot-size) * 1.225);
  transform: translate(-50%, -50%);
  border: 0;
  background: none;
  overflow: visible;
}

.d4t-s13-talisman-node-20 {
  --slot-size: 60px;
  left: 50%;
  top: 50%;
}

.d4t-s13-talisman-node-21 { left: 50%; top: 20%; }
.d4t-s13-talisman-node-22 { left: 75%; top: 36%; }
.d4t-s13-talisman-node-23 { left: 75%; top: 64%; }
.d4t-s13-talisman-node-24 { left: 50%; top: 80%; }
.d4t-s13-talisman-node-25 { left: 25%; top: 64%; }
.d4t-s13-talisman-node-26 { left: 25%; top: 36%; }

.d4t-s13-talisman-node .talisman-slot__item {
  width: var(--slot-size);
  height: auto;
  aspect-ratio: 0.8163265306;
  position: relative;
  border: 0;
  border-radius: 0;
  background-image: url("/d4-assets/media/charm-slot.82a3cf12.webp");
  background-size: 146%;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: none;
  overflow: visible;
}

.d4t-s13-talisman-node-20 .talisman-slot__item {
  background-image: url("/d4-assets/media/seal-slot.9e3e9bfe.webp");
}

.d4t-s13-talisman-node .talisman-slot__image {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: var(--slot-size);
  translate: 0 -46%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  border-radius: 4px;
  z-index: 1;
}

.d4t-s13-talisman-list {
  margin: 0;
  padding: 10px 14px 12px;
  list-style: none;
  background: #0b0b0b;
  color: #d7d7d7;
  font-size: 14px;
  line-height: 1.55;
}

.d4t-s13-talisman-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
}

.d4t-s13-talisman-list-item + .d4t-s13-talisman-list-item {
  margin-top: 3px;
}

.d4t-s13-talisman-list-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.d4t-s13-soul-panel {
  flex: 1 1 auto;
  padding: 0 0 12px;
  justify-content: flex-start;
}

.d4t-s13-soul-panel .d4t-s13-panel-title {
  width: 100%;
  margin-bottom: 12px;
}

.d4-color-set { color: #49d66f; }

@media (max-width: 760px) {
  .d4tools-wrapper .d4t-CompositePaperdoll.d4t-CompositePaperdoll--s13-warlock {
    width: 100%;
    max-width: 100%;
  }

  .d4tools-wrapper .d4t-s13-equipment-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
  }

  .d4t-s13-equipment-paperdoll {
    height: 620px;
  }

  .d4t-s13-equipment-label {
    width: 34%;
  }

  .d4t-s13-equipment-label-name {
    font-size: 13px;
  }

  .d4t-s13-equipment-label-type {
    font-size: 10px;
  }

  .d4t-s13-skillbar .skill-bar_PlannerSkillBar__slot__9zawy {
    width: 44px;
    height: 44px;
  }

  .d4t-s13-skillbar .skill-bar_PlannerSkillBar__slot__9zawy:nth-child(1) { left: 6%; }
  .d4t-s13-skillbar .skill-bar_PlannerSkillBar__slot__9zawy:nth-child(2) { left: 21%; }
  .d4t-s13-skillbar .skill-bar_PlannerSkillBar__slot__9zawy:nth-child(3) { left: 36%; }
  .d4t-s13-skillbar .skill-bar_PlannerSkillBar__slot__9zawy:nth-child(4) { left: 51%; }
  .d4t-s13-skillbar .skill-bar_PlannerSkillBar__slot__9zawy:nth-child(5) { left: 66%; }
  .d4t-s13-skillbar .skill-bar_PlannerSkillBar__slot__9zawy:nth-child(6) { left: 81%; }
}

@media (max-width: 980px) and (min-width: 761px) {
  .d4tools-wrapper .d4t-s13-equipment-layout {
    grid-template-columns: minmax(0, 582px);
    justify-content: center;
  }
}

.d4t-CompositePaperdoll .d4t-tabs {
  display: flex; gap: 2px; list-style: none; margin: 0; padding: 8px 12px 0;
  flex-wrap: wrap;
}
.d4t-CompositePaperdoll .d4t-tabs li {
  padding: 5px 14px;
  font-size: 12px; color: #777; cursor: pointer;
  border-radius: 4px 4px 0 0;
  transition: color 0.15s, background 0.15s;
}
.d4t-CompositePaperdoll .d4t-tabs li:hover { color: #ccc; background: #1a1a1a; }
.d4t-CompositePaperdoll .d4t-tabs li.d4t-active { color: #fff; background: #057af0; font-weight: 600; }

/* ── SkillsView ──────────────────────────────────────────── */
.d4t-SkillsView {
  padding: 25px 18px 17px;
  width: 340px;
  position: relative;
  display: flex;
  flex-direction: column;
  z-index: 0;
  border-style: solid;
  border-width: 0;
  border-image: url(/media/maxroll/7b/7b5b984b9567f619a1c07c7a70b880018204185e0ae036b5feb86a9d57296452.webp) 180 0 fill / 90px 0 round;
}
.d4t-SkillsView::before,
.d4t-SkillsView::after {
  content: "";
  position: absolute;
  inset: 16px;
  pointer-events: none;
}
.d4t-SkillsView::before {
  background: url(/media/maxroll/97/971156bd4e388e096e58df6bfd6893ad1c238168a65fa89f5efceac1b60f0862.webp);
  background-size: 100% auto;
  background-position: 50%;
  z-index: -2;
}
.d4t-SkillsView::after {
  background: url(/media/maxroll/01/019cb7402e6688dd24488779c03b6a9d3399d2a8c2c3ec1cc05fcd29a32e6250.webp);
  background-size: 100% 100%;
  z-index: -1;
}
.d4t-SkillsView > .d4t-title {
  position: relative;
  z-index: 2;
  height: 38px;
  min-height: 38px;
  flex: 0 0 38px;
  padding: 0 6px 0 10px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  overflow: visible;
}
.d4t-SkillsView .d4t-name {
  font-size: 18px;
  font-weight: 700;
  color: #efe9dc;
  margin-bottom: 5px;
  min-width: 0;
  flex-shrink: 1;
  flex-grow: 1;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.d4t-SkillsView .d4t-points {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  font-size: 28px;
  font-weight: 700;
  color: #ffff74;
}
.d4t-SkillsView .d4t-points .d4t-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url(/media/maxroll/05/050311b5a3a3b62d5a53df63f9120d7e909480356b22f30535ca11453f972156.webp);
  background-size: contain;
  margin: 0 -10px -4px 8px;
}
.d4t-SkillsView .d4t-points .d4t-icon::before { content: none; }
.d4t-SkillsView .d4t-expand {
  flex-grow: 0;
  flex-basis: auto;
  margin-left: 8px;
  font-size: 20px;
  color: #aaa;
  cursor: pointer;
}
.d4t-SkillsView .d4t-expand:hover { color: #fff; }
.d4t-SkillsView .d4t-expand svg { width: 20px; height: 20px; display: block; }
.d4t-SkillsView button.d4t-expand,
.d4t-ParagonView button.d4t-expand {
  position: relative;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: #aaa;
  cursor: pointer;
}
.d4t-SkillsView button.d4t-expand {
  width: 28px;
  height: 28px;
  margin-right: 1px;
  margin-left: 4px;
  flex: 0 0 28px;
}
.d4t-SkillsView button.d4t-expand:hover,
.d4t-ParagonView button.d4t-expand:hover { color: #fff; }
.d4t-SkillsView button.d4t-expand svg,
.d4t-ParagonView button.d4t-expand svg { width: 20px; height: 20px; display: block; }
.d4t-SkillsView .d4t-SkillPreview {
  overflow-y: auto;
  flex: 1 1;
  min-height: 0;
}
.d4t-SkillPreview {
  display: flex;
  flex-direction: column;
}

/* ── Skill group ─────────────────────────────────────────── */
.d4t-SkillPreview .d4t-skill-group {
  width: 290px;
  display: flex;
  flex-direction: row;
  align-items: center;
  position: relative;
  z-index: 0;
}

/* ── Header / Milestone ──────────────────────────────────── */
.d4t-SkillPreview .d4t-header {
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  align-self: stretch;
  position: relative;
}
.d4t-SkillPreview .d4t-header .d4t-milestone {
  background-image: url(/media/maxroll/45/45ad4441d18f2cafbd87aec8ece301d830f1acc8c7179c82902e9aa1b7006831.webp);
  background-size: 144px auto;
  background-position: 0 0;
  width: 50px;
  height: 50px;
  position: relative;
}
.d4t-SkillPreview .d4t-header .d4t-milestone .d4t-icon {
  position: absolute;
  inset: 12px;
  background-size: contain;
  background-position: 50%;
  background-repeat: no-repeat;
  transform: none;
}
.d4t-SkillPreview .d4t-header.d4t-wide::before {
  content: "";
  position: absolute;
  inset: 12px 15px;
  z-index: -2;
  border-image: url(/media/maxroll/59/591ab874a9f450450caabf28b70fbe3a4f00988146fe6228067892218aa5d03c.webp) 40 0 fill / 20px 0 round;
}
.d4t-SkillPreview .d4t-header.d4t-paladin::before { inset: 20px 15px; }
.d4t-SkillPreview .d4t-header.d4t-wide.d4t-enabled::before {
  border-image-source: url(/media/maxroll/cf/cfe6b1ff74611b314bcc5a48715a8da3eee4a934801254b42295cb94686e8743.webp);
}
.d4t-SkillPreview .d4t-header.d4t-wide.d4t-active::before {
  border-image-source: url(/media/maxroll/6d/6d9739f3cc2c34a147287243c416cfb03eba84e7f351d3a96cab378dea5b8a7d.webp);
}
.d4t-SkillPreview .d4t-header.d4t-top-passives::before { top: 6px; }
.d4t-SkillPreview .d4t-header.d4t-bottom-passives::before { bottom: 6px; }
.d4t-SkillPreview .d4t-header.d4t-active .d4t-milestone,
.d4t-SkillPreview .d4t-header.d4t-enabled .d4t-milestone {
  background-position-x: -50px;
}

/* ── Entries ──────────────────────────────────────────────── */
.d4t-SkillPreview .d4t-entries { min-width: 0; }

/* ── Skill row & passives row ────────────────────────────── */
.d4t-SkillPreview .d4t-passives,
.d4t-SkillPreview .d4t-skill-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  position: relative;
}
.d4t-SkillPreview .d4t-passives::before,
.d4t-SkillPreview .d4t-skill-row::before {
  content: "";
  position: absolute;
  top: 50%; margin-top: -10px;
  left: -35px; z-index: -1;
  width: 50px; height: 20px;
  background-image: url(/media/maxroll/43/4358179868721e24006a976e8e2005a9905c564b7070a52011d496b70ccaeda0.webp);
  background-size: 150px 40px;
  background-position: 0 -20px;
}
.d4t-SkillPreview .d4t-passives:first-child::before,
.d4t-SkillPreview .d4t-passives:last-child::before,
.d4t-SkillPreview .d4t-skill-row:first-child::before,
.d4t-SkillPreview .d4t-skill-row:last-child::before {
  background-position-y: 0;
}
.d4t-SkillPreview .d4t-passives.d4t-enabled::before,
.d4t-SkillPreview .d4t-skill-row.d4t-enabled::before { background-position-x: -50px; }
.d4t-SkillPreview .d4t-passives.d4t-active::before,
.d4t-SkillPreview .d4t-skill-row.d4t-active::before { background-position-x: -100px; }

/* ── Frame base (sprite) ─────────────────────────────────── */
.d4t-SkillPreview .d4t-frame {
  position: absolute;
  inset: 0;
  background-image: url(/media/maxroll/45/45ad4441d18f2cafbd87aec8ece301d830f1acc8c7179c82902e9aa1b7006831.webp);
  background-size: 144px auto;
  background-position: 0 -50px;
}

/* ── Skill frame (48×48) ─────────────────────────────────── */
.d4t-SkillPreview .d4t-skill-frame {
  flex-shrink: 0;
  width: 48px; height: 48px;
  margin: -2px;
  position: relative;
}
.d4t-SkillPreview .d4t-skill-frame .d4t-icon {
  position: absolute; inset: 11px;
  background-size: contain; background-position: 50%; background-repeat: no-repeat;
}
.d4t-SkillPreview .d4t-skill-frame.d4t-enabled .d4t-frame { background-position-x: -48px; }
.d4t-SkillPreview .d4t-skill-frame.d4t-active .d4t-frame { background-position-x: -96px; }

/* ── Mod column ──────────────────────────────────────────── */
.d4t-SkillPreview .d4t-mod-column {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  width: 24px;
}

/* ── Mod frame (28×28) ───────────────────────────────────── */
.d4t-SkillPreview .d4t-mod-frame {
  width: 28px; height: 28px;
  margin: -4px -2px;
  position: relative;
}
.d4t-SkillPreview .d4t-mod-frame .d4t-frame { background-position: 0 -98px; }
.d4t-SkillPreview .d4t-mod-frame .d4t-icon {
  position: absolute; inset: 6px;
  background-size: contain; background-position: 50%; background-repeat: no-repeat;
  -webkit-mask-image: url(/media/maxroll/45/45ad4441d18f2cafbd87aec8ece301d830f1acc8c7179c82902e9aa1b7006831.webp);
  mask-image: url(/media/maxroll/45/45ad4441d18f2cafbd87aec8ece301d830f1acc8c7179c82902e9aa1b7006831.webp);
  -webkit-mask-size: 144px auto; mask-size: 144px auto;
  -webkit-mask-position: -90px -104px; mask-position: -90px -104px;
}
.d4t-SkillPreview .d4t-mod-frame.d4t-disabled::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background-image: url(/media/maxroll/45/45ad4441d18f2cafbd87aec8ece301d830f1acc8c7179c82902e9aa1b7006831.webp);
  background-size: 144px auto;
  background-position: -112px -98px;
}
.d4t-SkillPreview .d4t-mod-frame::before,
.d4t-SkillPreview .d4t-passive-frame::before {
  content: "";
  position: absolute; z-index: -1;
  top: 50%; margin-top: -10px;
  left: -30px; width: 44px; height: 20px;
  background-image: url(/media/maxroll/43/4358179868721e24006a976e8e2005a9905c564b7070a52011d496b70ccaeda0.webp);
  background-size: 150px 40px;
  transform-origin: right center;
}
.d4t-SkillPreview .d4t-mod-frame.d4t-enabled .d4t-frame { background-position-x: -28px; }
.d4t-SkillPreview .d4t-mod-frame.d4t-enabled::before { background-position-x: -50px; }
.d4t-SkillPreview .d4t-mod-frame.d4t-active .d4t-frame { background-position-x: -56px; }
.d4t-SkillPreview .d4t-mod-frame.d4t-active::before { background-position-x: -100px; }
.d4t-SkillPreview .d4t-mod-frame:first-child:nth-last-child(2)::before { transform: rotate(-23deg); }
.d4t-SkillPreview .d4t-mod-frame:last-child:nth-child(2)::before { transform: rotate(23deg); }
.d4t-SkillPreview .d4t-mod-frame:first-child:nth-last-child(3)::before { transform: rotate(-35deg); }
.d4t-SkillPreview .d4t-mod-frame:last-child:nth-child(3)::before { transform: rotate(35deg); }

/* ── Passive frame (36×36) ───────────────────────────────── */
.d4t-SkillPreview .d4t-passive-frame {
  width: 36px; height: 36px;
  margin: -2px;
  position: relative;
}
.d4t-SkillPreview .d4t-passive-frame .d4t-frame { background-position: 0 -126px; }
.d4t-SkillPreview .d4t-passive-frame.d4t-keystone { margin: -2px 0; }
.d4t-SkillPreview .d4t-passive-frame.d4t-keystone .d4t-frame { background-position-y: -162px; }
.d4t-SkillPreview .d4t-passive-frame .d4t-icon {
  position: absolute; inset: 7px;
  background-size: contain; background-position: 50%; background-repeat: no-repeat;
}
.d4t-SkillPreview .d4t-passive-frame.d4t-enabled .d4t-frame { background-position-x: -36px; }
.d4t-SkillPreview .d4t-passive-frame.d4t-active .d4t-frame { background-position-x: -72px; }
.d4t-SkillPreview .d4t-passive-frame:first-child::before { display: none; }
.d4t-SkillPreview .d4t-passives.d4t-enabled .d4t-passive-frame::before { background-position-x: -50px; }
.d4t-SkillPreview .d4t-passives.d4t-active .d4t-passive-frame::before { background-position-x: -100px; }

/* ── Rank badge ──────────────────────────────────────────── */
.d4t-SkillPreview .d4t-rank {
  position: absolute; z-index: 1;
  font-size: 12px;
  bottom: 2px; right: 2px;
  background: rgba(0,0,0,0.3);
  padding: 0 2px;
}
.d4t-SkillPreview .d4t-skill-frame .d4t-rank { right: 4px; }
.d4t-rank .d4-color-blue { margin-left: 1px; color: #7c7cfb; }

/* ── Skill name ──────────────────────────────────────────── */
.d4t-SkillPreview .d4t-skill-name {
  margin-left: 6px;
  font-size: 16px;
  line-height: 20px;
  color: #666;
}
.d4t-SkillPreview .d4t-skill-name.d4t-active { color: #ccc; }

.d4t-SkillsView .d4t-skill-leveling {
  position: relative;
  flex: 0 0 auto;
  height: 42px;
  margin-top: 5px;
  z-index: 3;
}
.d4t-SkillsView .d4t-skill-leveling-slider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22px;
  display: grid;
  grid-template-columns: 18px minmax(0,1fr) 18px;
  align-items: center;
  gap: 2px;
}
.d4t-SkillsView .d4t-skill-leveling-arrow {
  width: 18px;
  height: 18px;
  border: 1px solid #6f6f6f;
  background: #161616;
  color: #c8c8c8;
  font-size: 13px;
  line-height: 16px;
  text-align: center;
  cursor: pointer;
}
.d4t-SkillsView .d4t-skill-leveling-track {
  position: relative;
  height: 8px;
  padding: 0;
  border: 1px solid #5e5e5e;
  background: linear-gradient(
    90deg,
    #253640 0%,
    #526b73 var(--d4t-skill-leveling-progress, 0%),
    #1a1d1f var(--d4t-skill-leveling-progress, 0%),
    #1a1d1f 100%
  );
  cursor: pointer;
}
.d4t-SkillsView .d4t-skill-leveling-thumb {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 22px;
  margin-left: -9px;
  border: 1px solid #777;
  background: linear-gradient(#b9b9b9, #6d6d6d);
  cursor: grab;
  transform: translateY(-50%);
  touch-action: none;
}
.d4t-SkillsView .d4t-skill-leveling-thumb:active {
  cursor: grabbing;
}


/* ── Priority ────────────────────────────────────────────── */
.d4t-Checklist > .d4t-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid #1c1c1c;
}
.d4t-Checklist .d4t-title { font-size: 14px; font-weight: 600; color: #e2e8f0; }
.d4t-badge {
  font-size: 10px; color: #555; text-transform: uppercase;
  padding: 2px 8px; background: rgba(255,255,255,0.04);
  border-radius: 4px; letter-spacing: 0.05em;
}

.d4tools-wrapper .d4t-PriorityEmbed.d4t-priority-embed-local {
  width: 100%;
  margin: 0;
  background: #050505;
  container-type: normal;
}

.d4tools-wrapper .d4t-PriorityEmbed.d4t-priority-embed-local .d4t-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 6px;
  width: 100%;
  padding: 6px;
  column-count: auto;
  column-gap: normal;
}

.d4tools-wrapper .d4t-PriorityEmbed.d4t-priority-embed-local .d4t-item {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  break-inside: avoid;
  page-break-inside: avoid;
  background: #111;
  border: 1px solid #202020;
  border-radius: 6px;
  overflow: hidden;
}

.d4tools-wrapper .d4t-PriorityEmbed.d4t-priority-embed-local .d4t-item .d4t-image-frame {
  box-sizing: border-box;
  flex: 0 0 72px;
  width: 72px;
  min-height: 72px;
  margin: 7px 0 7px 8px;
  align-self: stretch;
  border: 1px solid #2b2b2b;
  border-radius: 6px;
  background: #050505;
}

.d4tools-wrapper .d4t-PriorityEmbed.d4t-priority-embed-local .d4t-image-frame.is-tooltip-target,
.d4tools-wrapper .d4t-PriorityEmbed.d4t-priority-embed-local .d4t-header .game-item,
.d4tools-wrapper .d4t-PriorityEmbed.d4t-priority-embed-local li span {
  cursor: help;
}

.d4tools-wrapper .d4t-PriorityEmbed.d4t-priority-embed-local .d4t-item .d4t-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 72px;
  background-repeat: no-repeat;
  background-position: 50%;
  background-size: contain;
}

.d4tools-wrapper .d4t-PriorityEmbed.d4t-priority-embed-local .d4t-item .d4t-body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 10px 8px 8px;
}

.d4tools-wrapper .d4t-PriorityEmbed.d4t-priority-embed-local .d4t-item .d4t-slot {
  position: static;
  display: block;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  margin-bottom: 3px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #d9d9d9;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: none;
}

.d4tools-wrapper .d4t-PriorityEmbed.d4t-priority-embed-local .d4t-item .d4t-header {
  display: block;
  min-height: 0;
  margin-bottom: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.d4tools-wrapper .d4t-PriorityEmbed.d4t-priority-embed-local .d4t-item .d4t-header:not(:empty) {
  margin-bottom: 5px;
}

.d4tools-wrapper .d4t-PriorityEmbed.d4t-priority-embed-local .d4-color-mythic {
  color: #d26cff;
}

.d4tools-wrapper .d4t-PriorityEmbed.d4t-priority-embed-local .d4-color-unique {
  color: #f2a35b;
}

.d4tools-wrapper .d4t-PriorityEmbed.d4t-priority-embed-local .d4-color-legendary {
  color: #ff8f00;
}

.d4tools-wrapper .d4t-PriorityEmbed.d4t-priority-embed-local .d4-color-magic {
  color: #7373ff;
}

.d4tools-wrapper .d4t-PriorityEmbed.d4t-priority-embed-local .d4-color-rare {
  color: #ffd74a;
}

.d4tools-wrapper .d4t-PriorityEmbed.d4t-priority-embed-local .d4-color-normal {
  color: #f1f1f1;
}

.d4tools-wrapper .d4t-PriorityEmbed.d4t-priority-embed-local .d4-color-set {
  color: #50d839;
}

.d4tools-wrapper .d4t-PriorityEmbed.d4t-priority-embed-local .d4-color-important {
  color: #ffff90;
}

.d4tools-wrapper .d4t-PriorityEmbed.d4t-priority-embed-local ul {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: d4t-priority;
}

.d4tools-wrapper .d4t-PriorityEmbed.d4t-priority-embed-local li {
  position: static;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  padding: 1px 0;
  color: #f1f1f1;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
}

.d4tools-wrapper .d4t-PriorityEmbed.d4t-priority-embed-local li.d4t-number {
  counter-increment: d4t-priority;
  list-style-type: none;
}

.d4tools-wrapper .d4t-PriorityEmbed.d4t-priority-embed-local li::before {
  position: static;
  left: auto;
  flex: 0 0 14px;
  color: #c9c9c9;
  font-size: 11px;
  line-height: 1.45;
  text-align: right;
}

.d4tools-wrapper .d4t-PriorityEmbed.d4t-priority-embed-local li.d4t-number::before {
  content: counter(d4t-priority) ".";
}

.d4tools-wrapper .d4t-PriorityEmbed.d4t-priority-embed-local li.d4t-craft::before {
  content: "⚒";
}

.d4tools-wrapper .d4t-PriorityEmbed.d4t-priority-embed-local li span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}

.d4tools-wrapper .d4t-PriorityEmbed.d4t-priority-embed-local .d4t-upgrade {
  flex: 0 0 auto;
  color: #e8c97d;
  font-size: 12px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.d4tools-wrapper .d4t-PriorityEmbed.d4t-priority-embed-local .d4t-empty-affixes {
  padding: 10px;
  color: #555;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .d4tools-wrapper .d4t-PriorityEmbed.d4t-priority-embed-local .d4t-content {
    grid-template-columns: 1fr;
  }
}

/* ── Checklist ───────────────────────────────────────────── */
.d4t-list { padding: 8px 0; }
.d4t-checklist-row {
  display: flex; align-items: center; gap: 8px; padding: 4px 14px;
}
.d4t-check { font-size: 14px; width: 18px; text-align: center; flex-shrink: 0; }
.d4t-checklist-row .d4t-slot-label { font-size: 10px; color: #555; width: 75px; flex-shrink: 0; }
.d4t-checklist-row .d4t-slot-icon { width: 22px; height: 22px; }
.d4t-item-name { font-size: 12px; font-weight: 500; flex: 1; }

/* ── Paragon / Mercenary placeholder ─────────────────────── */
.d4t-ParagonView > .d4t-header,
.d4t-MercenaryView > .d4t-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid #1c1c1c;
}
.d4t-ParagonView .d4t-title,
.d4t-MercenaryView .d4t-title { font-size: 14px; font-weight: 600; color: #e2e8f0; }

body.d4-embed-fullscreen-open { overflow: hidden; }
.d4t-SkillsView.d4t-embed-fullscreen,
.d4t-ParagonView.d4t-embed-fullscreen {
  position: fixed !important;
  inset: 4vh 4vw !important;
  z-index: 1999;
  display: flex;
  width: auto !important;
  height: 92vh !important;
  max-height: none !important;
  min-height: 0;
  flex-direction: column;
  overflow: hidden !important;
  border: 1px solid #333;
  border-radius: 8px;
  background: #0d0d0d;
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.72),
    0 0 0 9999px rgba(0, 0, 0, 0.68);
}
.d4t-SkillsView.d4t-embed-fullscreen .d4t-SkillPreview,
.d4t-ParagonView.d4t-embed-fullscreen {
  overflow: auto !important;
}
.d4t-ParagonView.d4t-embed-fullscreen > .d4t-header {
  flex: 0 0 auto;
}

.d4t-MercenaryMini {
  border: 1px solid #1b1b1b;
  background: #0f0f10;
  padding: 10px;
}
.d4t-merc-top {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.d4t-merc-badge {
  flex: 1;
  min-width: 0;
  border: 1px solid #202020;
  background: #131314;
  padding: 6px 8px;
}
.d4t-merc-badge-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #707070;
}
.d4t-merc-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.d4t-merc-avatar,
.d4t-merc-support-skill,
.d4t-merc-node-icon {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.d4t-merc-avatar {
  width: 28px;
  height: 28px;
  border: 1px solid #2a2a2a;
  background-color: #171717;
}
.d4t-merc-badge-name {
  font-size: 12px;
  font-weight: 600;
  color: #d8d8d8;
}
.d4t-merc-support-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.d4t-merc-support-skill {
  width: 22px;
  height: 22px;
  border: 1px solid #312243;
  background-color: #161419;
}
.d4t-merc-graph {
  position: relative;
  height: 210px;
  overflow: hidden;
  border: 1px solid #1f1f1f;
  background:
    radial-gradient(circle at 50% 22%, rgba(111, 34, 34, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(22, 22, 23, 0.98), rgba(12, 12, 13, 0.98));
}
.d4t-merc-line {
  position: absolute;
  background: linear-gradient(180deg, rgba(76, 25, 25, 0.92), rgba(126, 34, 34, 0.92));
  box-shadow: 0 0 10px rgba(127, 29, 29, 0.28);
}
.d4t-merc-line.line-a { left: 104px; top: 36px; width: 2px; height: 32px; }
.d4t-merc-line.line-b { left: 106px; top: 67px; width: 46px; height: 2px; transform: rotate(28deg); transform-origin: left center; }
.d4t-merc-line.line-c { left: 62px; top: 67px; width: 46px; height: 2px; transform: rotate(-28deg); transform-origin: right center; }
.d4t-merc-line.line-d { left: 62px; top: 108px; width: 2px; height: 42px; }
.d4t-merc-line.line-e { left: 104px; top: 108px; width: 2px; height: 42px; }
.d4t-merc-line.line-f { left: 146px; top: 108px; width: 2px; height: 42px; }
.d4t-merc-node {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 1px solid #2f2f2f;
  background: #111112;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}
.d4t-merc-node.active {
  border-color: #5c2020;
  box-shadow: 0 0 12px rgba(127, 29, 29, 0.18), inset 0 0 0 1px rgba(255,255,255,0.03);
}
.d4t-merc-node-icon {
  width: 100%;
  height: 100%;
}
.d4t-merc-node-support { left: 88px; top: 18px; }
.d4t-merc-node.node-a { left: 44px; top: 78px; }
.d4t-merc-node.node-b { left: 88px; top: 78px; }
.d4t-merc-node.node-c { left: 132px; top: 78px; }
.d4t-merc-node.node-d { left: 44px; top: 146px; }
.d4t-merc-node.node-e { left: 88px; top: 146px; }
.d4t-merc-node.node-f { left: 132px; top: 146px; }

/* ── ClassBar (Oath / Class Mechanic) ────────────────────── */
.d4t-ClassBarView {
  padding: 16px;
  background: #0d0d0d;
  border: 1px solid #1c1c1c;
  border-radius: 6px;
}
.d4t-classbar-title {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 12px;
}
.d4t-classbar-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.d4t-classbar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #1c1c1c;
  border-radius: 4px;
  background: #111;
  opacity: 0.45;
  transition: opacity 0.15s;
}
.d4t-classbar-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 4px;
  background-color: #0c0c0c;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid #2a2a2a;
}
.d4t-classbar-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.d4t-classbar-item.d4t-active {
  opacity: 1;
  border-color: #c8a84a;
  background: linear-gradient(135deg, rgba(200,168,74,0.08), transparent);
}
.d4t-classbar-name {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}
.d4t-classbar-item.d4t-active .d4t-classbar-name { color: #c8a84a; }
.d4t-classbar-subtitle {
  font-size: 11px;
  color: #666;
  font-style: italic;
  margin-top: 2px;
}
.d4t-classbar-desc {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.5;
  padding: 10px 12px;
  border: 1px solid #1c1c1c;
  border-radius: 4px;
  background: #0a0a0a;
}
.d4t-cb-important { color: #e2e8f0; font-weight: 500; }
.d4t-cb-number { color: #c8a84a; }

.d4e-error { padding: 20px; text-align: center; color: #f87171; font-size: 12px; }
.equipment-paper-doll {
  width: 320px;
  height: 420px;
  position: relative;
  z-index: 0;
  margin-top: 8px;
}
.paper-doll-main-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: 100% auto;
  background-repeat: no-repeat;
}
.paper-doll-main-bg-1 {
  background-image: url('/d4-assets/media/sorcerer.88516c03.webp');
}
.paper-doll-main-bg-2 {
  background-image: url('/d4-assets/media/druid.6f349308.webp');
}
.paper-doll-main-bg-3 {
  background-image: url('/d4-assets/media/barbarian.8ea39d74.webp');
}
.paper-doll-main-bg-4 {
  background-image: url('/d4-assets/media/rogue.b9096024.webp');
}
.paper-doll-main-bg-5 {
  background-image: url('/d4-assets/media/necromancer.f7f54bd1.webp');
}
.paper-doll-main-bg-6 {
  background-image: url('/d4-assets/media/spiritborn.ecc8ec1a.webp');
}
.paper-doll-main-bg-7 {
  background-image: url('/d4-assets/media/paladin.067036f6.webp');
}
.paper-doll-armor-slots {
  position: absolute;
  left: 7px;
  top: 7px;
  bottom: 86px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.paper-doll-icon {
  position: relative;
  width: 43px;
  height: 63px;
  background-image: url('/d4-assets/media/slots.20b6acce.webp');
  background-size: 170px 73px;
  background-position-x: -49px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.paper-doll-icon .empty-image {
  content: '';
  font-size: 34px;
  width: 34px;
  height: 48px;
  background-image: url('/d4-assets/media/empty.42d63759.webp');
  background-repeat: no-repeat;
  background-size: 306px auto;
  /* background-position-x: -238px; */
}
.paper-doll-icon .armor-type {
  position: absolute;
  top: 3px;
  right: 3px;
  bottom: 3px;
  left: 3px;
  background-image: url(/d4-assets/media/frames.979f76d2.webp);
  background-size: 700% 100%;
}
.paper-doll-icon .armor-type.Mythic {
  background-position-x: -600%;
}
.paper-doll-icon .armor-type.Legendary {
  background-position-x: 0;
}
.paper-doll-icon .armor-type.Unique {
  background-position-x: -400%;
}
.paper-doll-icon .armor-type.Rare {
  background-position-x: -200%;
}
.paper-doll-icon .armor-image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: 50%;
}
.paper-doll-icon .armor-socket {
  width: 28px;
  height: 28px;
  background-image: url(/d4-assets/media/socket.130ea97d.webp);
  position: relative;
  z-index: 1;
  font-size: 20px;
}
.paper-doll-icon .armor-socket .armor-socket-icon {
  font-size: 28px;
  filter: opacity(50%);
  display: block;
  background-image: url(/d4-assets/media/gems.4214c111.webp);
  background-size: 16em auto;
  width: 1em;
  height: 1em;
}
.paper-doll-weapon.active .paper-doll-icon:after,
.paper-doll-icon.active:after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  border-image: url(/d4-assets/media/highlight.de4a1895.webp) 19 / 19px / 2px round;
  z-index: 2;
}
.paper-doll-icon-Helm .empty-image {
  background-position-x: -238px;
}
.paper-doll-icon-ChestArmor .empty-image {
  background-position-x: -170px;
}
.paper-doll-icon-Gloves .empty-image {
  background-position-x: -204px;
}
.paper-doll-icon-Legs .empty-image {
  background-position-x: -272px;
}
.paper-doll-icon-Boots .empty-image {
  background-position-x: -136px;
}
.paper-doll-jewelry-slots {
  position: absolute;
  right: 7px;
  top: 73px;
  bottom: 152px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.paper-doll-jewelry-slots .paper-doll-jewelry {
  position: relative;
  width: 43px;
  height: 63px;
  background-image: url(/d4-assets/media/slots.20b6acce.webp);
  background-size: 170px 73px;
  background-position-x: -49px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.paper-doll-jewelry-slots .paper-doll-jewelry1 .empty-image {
  background-position-x: 0;
}
.paper-doll-jewelry-slots .paper-doll-jewelry2 .empty-image {
  background-position-x: -34px;
}
.paper-doll-jewelry-slots .paper-doll-jewelry3 .empty-image {
  background-position-x: -34px;
}
.paper-doll-weapon {
  position: absolute;
  bottom: 7px;
}
.paper-doll-weapon .paper-doll-icon {
  background-position-x: 0;
}
.paper-doll-weapon-icon1 {
  width: 49px;
  height: 73px;
}
.paper-doll-weapon-icon1 .empty-image {
  background-position-x: -68px;
}
.paper-doll-weapon-icon2 {
  width: 49px;
  height: 73px;
}
.paper-doll-weapon-icon2 .empty-image {
  background-position-x: -102px;
}
.paper-doll-weapon-left {
  left: 7px;
}
.paper-doll-weapon-right {
  right: 7px;
}
.paper-doll-weapon-center {
  left: 50%;
  margin-left: -39px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.paper-doll-weapon-dual-weapons {
  width: 78px;
  height: 63px;
  background-size: 170px 73px;
  background-position-x: -92px !important;
  background-image: url(/d4-assets/media/slots.20b6acce.webp);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.paper-doll-weapon-dual-weapons:after,
.paper-doll-weapon-dual-weapons:before {
  position: absolute;
  content: '';
  font-size: 34px;
  width: 34px;
  height: 48px;
  background-image: url('/d4-assets/media/empty.42d63759.webp');
  background-repeat: no-repeat;
  background-size: 306px auto;
  background-position-x: -68px;
}
.paper-doll-weapon-dual-weapons:before {
  left: 5px;
}
.paper-doll-weapon-dual-weapons:after {
  right: 5px;
}
.paper-doll-weapon-group {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  left: 50%;
  top: -13px;
  margin-left: -13px;
  width: 26px;
  height: 26px;
  background-image: url(/d4-assets/media/labels.9bb51292.webp);
  background-size: 104px 26px;
}
.paper-doll-weapon-group-blunt {
  background-position-x: 0;
}
.paper-doll-weapon-group-dual {
  background-position-x: -52px;
}
.paper-doll-weapon-group-slash {
  background-position-x: -26px;
}
.armor-update {
  z-index: 1;
  position: absolute;
  left: 3px;
  bottom: 6px;
  right: 3px;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
}
.armor-update.update-level-1 .update-node,
.armor-update.update-level-2 .update-node,
.armor-update.update-level-3 .update-node,
.armor-update.update-level-4 .update-node {
  background-position-x: -400%;
}
.armor-update.update-level-5 .update-node,
.armor-update.update-level-6 .update-node,
.armor-update.update-level-7 .update-node,
.armor-update.update-level-8 .update-node {
  background-position-x: -500%;
}
.armor-update.update-level-9 .update-node,
.armor-update.update-level-10 .update-node,
.armor-update.update-level-11 .update-node,
.armor-update.update-level-12 .update-node {
  background-position-x: -600%;
}
.armor-update .update-node {
  width: 10px;
  height: 10px;
  margin: 0 -3px;
  background-image: url(/d4-assets/media/list-icons.b43c4a76.webp);
  background-size: 900% 200%;
  background-position-x: -300%;
  background-position-y: -100%;
}
.armor-update .update-node.active {
  background-position-y: 0;
}

/* paper-doll embed center */
.d4t-paperdoll-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}
.d4-embed .equipment-paper-doll { 
  margin: 0; 
  transform-origin: top center;
  position: relative;
  background-image: url("/d4-assets/media/planner-bg.0879882b.webp");
  background-size: cover;
  background-position: center;
}
.paper-doll-hero-name {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--font-title, inherit);
  font-size: 28px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 1;
  pointer-events: none;
}
.paper-doll-skillbar {
  display: flex;
  gap: 4px;
  margin-top: 16px;
  z-index: 10;
}
.paper-doll-skill {
  width: 38px;
  height: 38px;
  border: 1px solid #7d7158;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  background-color: rgba(0,0,0,0.6);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255,255,255,0.1);
}
.compact-paperdoll .equipment-paper-doll {
  transform: scale(0.85);
  transform-origin: top center;
  margin-bottom: -63px;
}
