/* ---- Equipment Planner: tool panel --------------------------------------------- */

.equipment-tool {
  max-width: 1180px;
  width: min(1180px, calc(100vw - 44px));
  box-sizing: border-box;
}

/* --- Control row --- */

.equip-controls,
.equipment-control-row {
  display: grid;
  grid-template-columns: 82px 82px 132px 90px 94px minmax(360px, 1fr);
  gap: 10px;
  align-items: end;
  margin: 12px 0 14px;
}

.equip-controls label,
.equipment-control-row label {
  color: #d1d1d1;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  width: 100%;
}

.equip-controls select,
.equip-controls input,
.equipment-control-row select,
.equipment-control-row input {
  height: 30px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: #101014;
  color: #fecf7d;
  border: 1px solid rgba(254, 207, 125, 0.28);
}

.equip-controls button,
.equipment-control-row button {
  height: 30px;
}

.equip-upgrade-label {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 122px;
}

.upgrade-inline {
  height: 31px;
  display: flex;
  align-items: center;
  gap: 6px;
}

#equipUpgradeLevel {
  width: 58px;
  min-width: 58px;
  height: 31px;
  line-height: 31px;
}

#equipUpgradeLevel:disabled {
  color: #777;
  background: rgba(30, 30, 30, 0.72);
  border-color: rgba(160, 140, 100, 0.22);
  opacity: 0.75;
}

.upgrade-max-label {
  height: 31px;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: #d1d1d1;
  white-space: nowrap;
}

#equipUpgradeMax {
  width: 13px;
  min-width: 13px;
  height: 13px;
}

.equip-search-label {
  grid-column: 6;
  min-width: 0;
}

#equipSearch {
  width: 100%;
  min-width: 0;
}

#equipClearAll {
  grid-column: 7;
  position: static;
  width: 100%;
  justify-self: stretch;
  color: #f9c7c7;
  border-color: #8f2d2d;
  background: linear-gradient(180deg, rgba(94, 19, 19, 0.88), rgba(35, 4, 4, 0.92));
  box-shadow: 0 0 10px rgba(160, 35, 35, 0.28);
}

#equipClearAll:hover {
  border-color: #d84a4a;
  box-shadow: 0 0 14px rgba(210, 55, 55, 0.48);
}

@media (max-width: 1250px) {
  .equip-controls,
  .equipment-control-row {
    grid-template-columns: repeat(4, minmax(80px, 1fr));
  }
  .equip-search-label,
  #equipClearAll {
    grid-column: auto;
  }
}

/* --- Three-column layout --- */

.equipment-layout {
  position: relative;
  display: grid;
  grid-template-columns: 330px 320px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  width: 100%;
  height: 820px;
  min-height: 820px;
  max-height: 820px;
  box-sizing: border-box;
}

@media (max-width: 1250px) {
  .equipment-layout {
    height: auto;
    min-height: 0;
    max-height: none;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .equipment-stage-wrap {
    justify-content: center;
  }
}

/* --- Left column --- */

.equipment-left {
  width: 330px;
  min-width: 330px;
  max-width: 330px;
  height: 820px;
  min-height: 820px;
  max-height: 820px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 1250px) {
  .equipment-left {
    height: auto;
    min-height: 0;
    max-height: none;
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}

/* ---- Equipment Planner: paper-doll equipment stage ------------------------------ */

.equipment-stage-wrap {
  flex: 0 0 auto;
  width: 330px;
  min-width: 330px;
  max-width: 330px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.equipment-stage {
  position: relative;
  width: 307px;
  height: 323px;
  min-width: 307px;
  max-width: 307px;
  overflow: visible;
}

.equipment-slots,
#equipmentSlots {
  overflow: visible;
}

.equipment-stage-actions {
  flex: 0 0 auto;
  text-align: center;
}

.equip-clear-slot-hint {
  display: block;
  width: 100%;
  text-align: center;
  color: #d1d1d1;
  font-size: 11px;
  opacity: 0.74;
  border: 0;
  background: transparent;
  cursor: default;
}

.enchant-reserve-panel,
.reinforcement-reserve-panel {
  flex: 0 0 auto;
  border: 1px solid rgba(254, 207, 125, 0.2);
  background: rgba(0, 0, 0, 0.34);
  border-radius: 6px;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}

.enchant-reserve-panel h2,
.reinforcement-reserve-panel h2 {
  color: #fecf7d;
  font-size: 13px;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.enchant-reserve-panel .selected-enchant-info,
.enchant-reserve-panel .portal-muted {
  margin: 0 0 8px;
  font-size: 11px;
}

.equip-bonus-panel {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  border: 1px solid rgba(254, 207, 125, 0.2);
  background: rgba(0, 0, 0, 0.34);
  border-radius: 6px;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}

.equip-bonus-panel h2 {
  color: #fecf7d;
  font-size: 13px;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.equip-bonus-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.equip-bonus-grid label {
  display: grid;
  grid-template-columns: 1fr 58px;
  gap: 8px;
  align-items: center;
  color: #d1d1d1;
  font-size: 11px;
}

.equip-bonus-grid input {
  min-width: 0;
  width: 58px;
  height: 24px;
  text-align: center;
}

/* Hidden old honor panel (replaced by bottom row) */
.equip-honor-panel {
  display: none;
}

/* --- Middle column: character stats --- */

.equipment-stats-middle {
  position: relative;
  top: -2px;
  width: 320px;
  min-width: 320px;
  max-width: 320px;
  height: 814px;
  min-height: 814px;
  max-height: 814px;
  overflow: visible;
  box-sizing: border-box;
  align-self: stretch;
}

.equipment-stats-middle .equip-stat-box {
  height: 814px;
  min-height: 814px;
  max-height: 814px;
  display: block;
  width: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
}

@media (max-width: 1250px) {
  .equipment-stats-middle,
  .equipment-stats-middle .equip-stat-box {
    position: static;
    top: auto;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: auto;
    min-height: 0;
    max-height: none;
  }
}

/* --- Right column: item list --- */

.equipment-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  height: 820px;
  min-height: 820px;
  max-height: 820px;
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 1250px) {
  .equipment-side {
    height: auto;
    min-height: 0;
    max-height: none;
  }
}

.selected-slot-box {
  flex: 0 0 auto;
  border: 1px solid rgba(254, 207, 125, 0.18);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  padding: 12px;
}

.selected-slot-box h2 {
  margin: 0 0 6px;
  color: #fecf7d;
  font-size: 15px;
  text-transform: uppercase;
}

.slot-head-row {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 12px;
  align-items: end;
}

.slot-head-row h2 {
  margin: 0;
  align-self: center;
}

.slot-filter-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #d1d1d1;
  font-size: 11px;
  text-transform: none;
}

.slot-filter-row select {
  width: 100%;
  min-width: 0;
}

#equipSelectedHelp[hidden] {
  display: none;
}

.equip-item-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #4b2a20 #09090c;
  border: 1px solid rgba(254, 207, 125, 0.18);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  padding: 7px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 6px;
  box-sizing: border-box;
}

.equip-item-list::-webkit-scrollbar {
  width: 10px;
}
.equip-item-list::-webkit-scrollbar-track {
  background: #09090c;
  border-left: 1px solid rgba(254, 207, 125, 0.1);
}
.equip-item-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #5a3328, #281712);
  border: 1px solid rgba(254, 207, 125, 0.24);
  border-radius: 8px;
}

.equip-item-row {
  flex: 0 0 42px;
  min-height: 42px;
  max-height: 42px;
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 48px;
  gap: 8px;
  align-items: center;
  text-align: left;
  border: 1px solid rgba(254, 207, 125, 0.12);
  background: rgba(0, 0, 0, 0.32);
  border-radius: 3px;
  padding: 5px 7px;
  color: #d1d1d1;
}

.equip-item-row:hover,
.equip-item-row.chosen {
  border-color: #fecf7d;
  background: rgba(45, 28, 20, 0.55);
}

.equip-item-row.last-selected:not(.chosen) {
  border-color: rgba(154, 179, 229, 0.52);
  box-shadow: inset 0 0 0 1px rgba(154, 179, 229, 0.18);
}

.equip-item-row img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.equip-item-name {
  color: #fecf7d;
  font-weight: 900;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.equip-item-meta {
  color: #d1d1d1;
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.equip-item-stats {
  display: none;
}

/* --- Stat display --- */

.equip-stat-box {
  border: 1px solid rgba(254, 207, 125, 0.18);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  padding: 12px;
}

.equip-stat-box h2 {
  color: #fecf7d;
  font-size: 13px;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.equip-stat-box::-webkit-scrollbar {
  width: 10px;
}
.equip-stat-box::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.55);
}
.equip-stat-box::-webkit-scrollbar-thumb {
  background: rgba(133, 94, 58, 0.88);
  border: 1px solid rgba(254, 207, 125, 0.25);
}

.equip-stat-summary,
.equip-stat-groups,
.equip-stat-stack {
  display: block;
  width: 100%;
}

.equip-stat-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  box-sizing: border-box;
  padding: 2px 0;
  gap: 10px;
  font-size: 11px;
  line-height: 1.42;
  color: #9ab3e5;
  border: 0;
  background: transparent;
}

.equip-stat-line span {
  display: block;
  min-width: 0;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}

.equip-stat-line b {
  display: block;
  white-space: nowrap;
  text-align: right;
  color: #9ab3e5;
  font-weight: 500;
}

.equip-stat-line.defense,
.equip-stat-line.defense b {
  color: #f9f9ae;
}

.equip-stat-gap {
  display: block;
  height: 0;
  border-top: 1px solid rgba(154, 179, 229, 0.16);
  margin: 11px 0 13px;
  padding: 0;
}

/* Unused stat card UI (kept in DOM, hidden) */
.equip-stat-card,
.equip-stat-title {
  display: none;
}

.equip-resist-line {
  display: grid;
  grid-template-columns: 70px minmax(80px, 1fr) 72px;
  align-items: center;
  column-gap: 10px;
  min-height: 22px;
}
.equip-resist-line span {
  grid-column: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.equip-resist-line em {
  grid-column: 2;
  display: block;
  text-align: center;
  font-style: normal;
  color: #9ab3e5;
  white-space: nowrap;
}
.equip-resist-line b {
  grid-column: 3;
  display: block;
  text-align: right;
  color: #9ab3e5;
  white-space: nowrap;
  min-width: 0;
}

/* --- Equipment slots --- */

.equip-slot,
.equip-slot:hover,
.equip-slot:focus,
.equip-slot:active {
  appearance: none;
  -webkit-appearance: none;
  outline: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0;
  overflow: visible;
  position: absolute;
  isolation: isolate;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  max-width: 34px;
  max-height: 34px;
  inline-size: 34px;
  block-size: 34px;
  aspect-ratio: 1/1;
  line-height: 0;
  font-size: 0;
}

/* glow halo behind the icon */
.equip-slot::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  z-index: 1;
  background: transparent;
  border: 0;
  box-shadow: none;
  pointer-events: none;
}
.equip-slot:hover::before,
.equip-slot.selected::before {
  box-shadow: 0 0 14px rgba(254, 207, 125, 0.78);
}

.equip-slot img {
  position: absolute;
  inset: 0;
  width: 34px;
  height: 34px;
  z-index: 2;
  pointer-events: none;
}

/* border ring on top of icon */
.equip-slot::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  box-sizing: border-box;
  z-index: 20;
  border: 0;
  pointer-events: none;
}
.equip-slot:hover::after,
.equip-slot.selected::after {
  border: 2px solid #fecf7d;
}
.equip-slot.filled:not(.selected):not(:hover)::after {
  border: 1px solid rgba(254, 207, 125, 0.35);
}

.equip-slot.class-locked {
  cursor: not-allowed;
  opacity: 0.62;
}
.equip-slot span {
  display: none;
}

/* --- Xeon slots --- */

.xeon-slot-grid {
  display: grid;
  grid-template-columns: var(--xeon-cols, repeat(4, 34px));
  gap: 7px;
  justify-content: center;
  align-content: center;
  justify-items: center;
  width: 100%;
  overflow: visible;
  min-height: 34px;
}

.xeon-slot,
.xeon-slot:hover,
.xeon-slot:focus,
.xeon-slot:active {
  appearance: none;
  -webkit-appearance: none;
  outline: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0;
  overflow: visible;
  position: relative;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
}

.xeon-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.44);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}
.xeon-slot.selected::before {
  box-shadow:
    0 0 10px rgba(254, 207, 125, 0.58),
    inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.xeon-slot img {
  position: absolute;
  inset: 0;
  width: 34px;
  height: 34px;
  z-index: 2;
  pointer-events: none;
}

.xeon-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  z-index: 20;
  border: 1px solid rgba(254, 207, 125, 0.28);
  pointer-events: none;
}
.xeon-slot.selected::after {
  border: 2px solid #fecf7d;
}
.xeon-slot.filled::after {
  border-color: rgba(254, 207, 125, 0.55);
}

.xeon-slot span {
  position: absolute;
  right: 2px;
  bottom: 0;
  z-index: 21;
  color: rgba(209, 209, 209, 0.55);
  font-size: 10px;
  text-shadow: 1px 1px 2px #000;
}

/* --- Item tooltip --- */

.equip-tooltip {
  display: block;
  position: fixed;
  z-index: 2147483000;
  width: 330px;
  max-width: calc(100vw - 20px);
  pointer-events: none;
  color: #f9f9f9;
  background: rgba(11, 7, 9, 0.96);
  border: 1px solid rgba(254, 207, 125, 0.35);
  box-shadow:
    0 0 24px rgba(0, 0, 0, 0.85),
    inset 0 0 18px rgba(80, 20, 20, 0.28);
  border-radius: 4px;
  padding: 10px;
  font-size: 12px;
}

.equip-tooltip[hidden] {
  display: none;
}

.tt-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: start;
  border-bottom: 1px solid rgba(254, 207, 125, 0.15);
  padding-bottom: 7px;
  margin-bottom: 7px;
}

.tt-head img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.tt-head h3 {
  margin: 0 0 3px;
  color: #fecf7d;
  font-size: 15px;
}
.tt-meta {
  color: #f9f9f9;
  font-size: 11px;
}

.tt-rarity-box {
  justify-self: end;
  text-align: right;
  white-space: nowrap;
}
.tt-rarity {
  font-size: 12px;
  line-height: 1.15;
}
.tt-type {
  color: #d1d1d1;
  font-size: 11px;
  line-height: 1.15;
}

.tt-speed {
  grid-column: 3;
  justify-self: end;
  color: #f9f9f9;
  font-size: 12px;
  white-space: nowrap;
}

.tt-section {
  display: block;
  margin: 7px 0;
}
.tt-section:empty {
  display: none;
}

.tt-stat {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
  white-space: normal;
  line-height: 1.35;
  margin: 1px 0;
}
.tt-stat span {
  flex: 0 1 auto;
}
.tt-stat b {
  flex: 0 0 auto;
  font-weight: 500;
  color: inherit;
}
.tt-stat.defense {
  color: #f9f9ae;
}
.tt-stat.player {
  color: #9ab3e5;
}
.tt-stat.white {
  color: #f9f9f9;
}

.tt-stat-inline {
  display: block;
  white-space: normal;
  line-height: 1.28;
  padding: 0;
  margin: 1px 0;
}
.tt-stat-inline span,
.tt-stat-inline b {
  display: inline;
  float: none;
  min-width: 0;
  width: auto;
  text-align: left;
  white-space: normal;
}
.tt-stat-inline b {
  font-weight: 500;
}

.tt-line {
  margin: 4px 0;
  line-height: 1.25;
}
.tt-line.main {
  color: #fecf7d;
}
.tt-line.enchant {
  color: #7e5e8a;
}
.tt-line.set {
  color: #86bbc0;
}
.tt-line.white {
  color: #f9f9f9;
}

.tt-footer {
  margin-top: 8px;
  border-top: 1px solid rgba(254, 207, 125, 0.12);
  padding-top: 5px;
}
.tt-price-space {
  height: 6px;
}
.resist-group {
  margin-top: 9px;
}

/* --- Honor Skills + Stat Roll panels row --- */

/* The row sits below the equipment layout.
   First column = left (330px) + gap (16px) + middle (320px) = 666px → aligns with both.
   Second column = 1fr → same width as the item list column. */
.honor-panels-row {
  display: grid;
  grid-template-columns: 666px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 16px;
}

/* ---- Equipment Planner: Honor Skills & Test Damage windows ---------------------- */

.honor-window-panel {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(254, 207, 125, 0.2);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(13, 7, 6, 0.82), rgba(4, 2, 2, 0.88));
  box-shadow:
    0 0 12px rgba(0, 0, 0, 0.66),
    inset 0 0 14px rgba(254, 207, 125, 0.018);
  opacity: 0.94;
  overflow: hidden;
}

.honor-window-title {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: #fecf7d;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(254, 207, 125, 0.14);
  background: linear-gradient(180deg, rgba(31, 15, 12, 0.7), rgba(8, 3, 4, 0.82));
}

.honor-window-title button {
  display: none;
}

/* Content area sits 14px inside the panel on all sides */
.honor-skill-area,
.stats-roll-panel {
  margin: 14px;
  padding: 12px;
  box-sizing: border-box;
  border: 1px solid rgba(133, 94, 58, 0.72);
  background: rgba(8, 4, 4, 0.78);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.65);
  /* 30% taller than the original 286px */
  min-height: 372px;
  height: 372px;
}

.honor-skill-area {
  overflow: hidden;
}

/* Honor icon controls */
.honor-grade-line {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  color: #d1d1d1;
  font-size: 12px;
  margin-bottom: 14px;
}

.honor-click-help {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  color: #d1d1d1;
  font-size: 12px;
  line-height: 1.2;
}

.click-circle {
  display: inline-flex;
  width: 14px;
  height: 14px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(254, 207, 125, 0.55);
  border-radius: 50%;
  color: #fecf7d;
  font-size: 10px;
  margin-left: 4px;
}

#resetHonorSkills {
  height: 24px;
  min-width: 128px;
  font-size: 11px;
  padding: 0 8px;
}

.honor-tab-row {
  display: grid;
  grid-template-columns: repeat(8, 44px);
  justify-content: center;
  gap: 0 10px;
  color: #d1d1d1;
  font-size: 12px;
  text-align: center;
  margin: 8px auto 14px;
}

.honor-tab-row span {
  grid-column: span 2;
  text-align: center;
}

.honor-icon-grid {
  display: grid;
  grid-template-columns: repeat(8, 44px);
  grid-auto-rows: 44px;
  gap: 12px 10px;
  justify-content: center;
  align-items: center;
}

.honor-empty {
  width: 44px;
  height: 44px;
}

.honor-icon-wrap {
  position: relative;
  cursor: pointer;
  width: 34px;
  height: 34px;
  margin: 5px;
  border: 1px solid rgba(254, 207, 125, 0.24);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.75);
}

.honor-icon-wrap img {
  width: 34px;
  height: 34px;
  display: block;
  pointer-events: none;
  image-rendering: auto;
}

.honor-icon-wrap.locked img {
  filter: grayscale(1) brightness(0.72);
}

.honor-icon-wrap:not(.locked) {
  border-color: #fecf7d;
  box-shadow:
    0 0 5px rgba(254, 207, 125, 0.24),
    inset 0 0 6px rgba(0, 0, 0, 0.75);
}

.honor-icon-wrap:hover {
  border-color: #fecf7d;
  box-shadow:
    0 0 10px rgba(254, 207, 125, 0.4),
    inset 0 0 8px rgba(0, 0, 0, 0.82);
  filter: brightness(1.12);
}

.honor-icon-wrap:hover img {
  filter: brightness(1.12);
}

.honor-icon-wrap::after {
  content: none;
  display: none;
}

.honor-level-badge {
  position: absolute;
  left: -6px;
  top: -8px;
  min-width: 18px;
  height: 14px;
  line-height: 14px;
  text-align: center;
  font-size: 10px;
  font-weight: 900;
  color: #e7ff59;
  text-shadow: 1px 1px 2px #000;
  background: rgba(40, 120, 80, 0.85);
  border-radius: 3px;
  z-index: 5;
}

.honor-mini,
.honor-plus,
.honor-minus {
  display: none;
}

/* Stat roll placeholder */
.stats-roll-placeholder {
  margin-top: 14px;
  border: 1px dashed rgba(154, 179, 229, 0.24);
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #9ab3e5;
  opacity: 0.82;
}

@media (max-width: 1250px) {
  .honor-panels-row {
    grid-template-columns: 1fr;
  }
  .honor-skill-area,
  .stats-roll-panel {
    height: auto;
    min-height: 240px;
  }
}

/* --- Pulse animation --- */

@keyframes equipPulseRingFade {
  0% {
    opacity: 0;
    border-color: rgba(0, 255, 120, 0);
    box-shadow: none;
  }
  10% {
    opacity: 1;
    border-color: rgba(0, 255, 120, 1);
    box-shadow:
      0 0 20px rgba(0, 255, 120, 0.86),
      inset 0 0 10px rgba(0, 255, 120, 0.46);
  }
  45% {
    opacity: 0.72;
    border-color: rgba(0, 255, 120, 0.62);
    box-shadow:
      0 0 15px rgba(0, 255, 120, 0.45),
      inset 0 0 7px rgba(0, 255, 120, 0.28);
  }
  100% {
    opacity: 0;
    border-color: rgba(0, 255, 120, 0);
    box-shadow: none;
  }
}

.equip-pulse-ring {
  position: absolute;
  left: -4px;
  top: -4px;
  width: 42px;
  height: 42px;
  box-sizing: border-box;
  border: 2px solid rgba(0, 255, 120, 0.98);
  border-radius: 3px;
  pointer-events: none;
  z-index: 999;
  opacity: 0;
  animation: equipPulseRingFade 1.15s ease-out forwards;
}

/* Legacy pulse class - animation removed in v79, kept as no-op */
.equip-confirm-pulse,
.equip-confirm-pulse::after {
  animation: none;
}

/* === v82 final equipment cleanups === */

.equipment-stats-middle,
.equipment-stats-middle .equip-stat-box {
  height: 822px;
  min-height: 822px;
  max-height: 822px;
}

.honor-panels-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 16px;
  align-items: stretch;
  margin-top: 16px;
}

.honor-panel-main,
.stats-roll-window-panel {
  margin: 0;
}

.honor-window-body--single,
.stats-roll-window-body {
  display: block;
  height: 315px;
  min-height: 315px;
  padding: 14px;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.stats-roll-placeholder {
  margin-top: 14px;
  border: 1px dashed rgba(154, 179, 229, 0.24);
  min-height: 195px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #9ab3e5;
  opacity: 0.82;
}

.equip-slot,
.xeon-slot {
  overflow: visible;
}

.equipment-slots,
#equipmentSlots,
.xeon-slot-grid {
  overflow: visible;
}

.equip-pulse-ring {
  position: absolute;
  left: -4px;
  top: -4px;
  width: 42px;
  height: 42px;
  box-sizing: border-box;
  border: 2px solid rgba(0, 255, 120, 0);
  border-radius: 3px;
  pointer-events: none;
  z-index: 999;
  opacity: 0;
  box-shadow:
    0 0 0 rgba(0, 255, 120, 0),
    inset 0 0 0 rgba(0, 255, 120, 0);
  animation: equipPulseGreenToGoldV82 1.15s ease-out forwards;
}

@keyframes equipPulseGreenToGoldV82 {
  0% {
    opacity: 0;
    border-color: rgba(0, 255, 120, 0);
    box-shadow:
      0 0 0 rgba(0, 255, 120, 0),
      inset 0 0 0 rgba(0, 255, 120, 0);
  }
  12% {
    opacity: 1;
    border-color: rgba(0, 255, 120, 0.98);
    box-shadow:
      0 0 20px rgba(0, 255, 120, 0.8),
      inset 0 0 10px rgba(0, 255, 120, 0.42);
  }
  58% {
    opacity: 0.85;
    border-color: rgba(254, 207, 125, 0.95);
    box-shadow:
      0 0 15px rgba(254, 207, 125, 0.46),
      inset 0 0 7px rgba(254, 207, 125, 0.28);
  }
  100% {
    opacity: 0;
    border-color: rgba(254, 207, 125, 0);
    box-shadow:
      0 0 0 rgba(254, 207, 125, 0),
      inset 0 0 0 rgba(254, 207, 125, 0);
  }
}

@media (max-width: 1250px) {
  .equipment-stats-middle,
  .equipment-stats-middle .equip-stat-box {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .honor-panels-row {
    grid-template-columns: 1fr;
  }

  .honor-window-body--single,
  .stats-roll-window-body {
    height: auto;
    min-height: 260px;
  }
}

/* === v83 honor/stat-roll split cleanup === */

.honor-panels-row {
  display: grid;
  grid-template-columns: 666px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 16px;
}

.honor-panel-main,
.stats-roll-window-panel {
  margin: 0;
  height: 430px;
  min-height: 430px;
  box-sizing: border-box;
  overflow: hidden;
}

.honor-panel-content,
.stats-roll-content {
  height: calc(100% - 36px);
  box-sizing: border-box;
  padding: 22px 28px;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.honor-skill-area,
.stats-roll-panel,
.stats-roll-panel--standalone,
.honor-window-body--single,
.stats-roll-window-body {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.honor-tab-row {
  margin-top: 18px;
}

.honor-icon-grid {
  margin-top: 14px;
}

.stats-roll-placeholder,
.stats-roll-placeholder-text {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.stats-roll-placeholder-text {
  margin-top: 26px;
  color: #9ab3e5;
  opacity: 0.82;
  line-height: 1.45;
}

@media (max-width: 1250px) {
  .honor-panels-row {
    grid-template-columns: 1fr;
  }

  .honor-panel-main,
  .stats-roll-window-panel {
    height: auto;
    min-height: 320px;
  }

  .honor-panel-content,
  .stats-roll-content {
    height: auto;
    min-height: 260px;
  }
}

/* === v85 page-safe pulse + right-click lock support === */
.portal-page {
  display: none;
}
.portal-page.active {
  display: block;
}
.skill-page.active {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.equipment-stage,
#equipmentStage {
  overflow: visible;
}

.equipment-stage-pulse {
  position: absolute;
  width: 34px;
  height: 34px;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 5000;
  border: 2px solid #00ff78;
  border-radius: 2px;
  opacity: 0;
  animation: equipmentStagePulseV85 1.08s ease-out forwards;
}

@keyframes equipmentStagePulseV85 {
  0% {
    opacity: 0;
    border-color: rgba(0, 255, 120, 0);
    box-shadow:
      0 0 0 rgba(0, 255, 120, 0),
      inset 0 0 0 rgba(0, 255, 120, 0);
    transform: scale(0.92);
  }
  12% {
    opacity: 1;
    border-color: rgba(0, 255, 120, 1);
    box-shadow:
      0 0 18px rgba(0, 255, 120, 0.78),
      inset 0 0 8px rgba(0, 255, 120, 0.38);
    transform: scale(1);
  }
  52% {
    opacity: 0.86;
    border-color: rgba(254, 207, 125, 0.96);
    box-shadow:
      0 0 14px rgba(254, 207, 125, 0.55),
      inset 0 0 6px rgba(254, 207, 125, 0.28);
    transform: scale(1);
  }
  100% {
    opacity: 0;
    border-color: rgba(254, 207, 125, 0);
    box-shadow:
      0 0 0 rgba(254, 207, 125, 0),
      inset 0 0 0 rgba(254, 207, 125, 0);
    transform: scale(1);
  }
}

.xeon-pulse-ring {
  position: absolute;
  left: -4px;
  top: -4px;
  width: 42px;
  height: 42px;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 5000;
  border: 2px solid #00ff78;
  border-radius: 2px;
  opacity: 0;
  animation: equipmentStagePulseV85 1.08s ease-out forwards;
}

img,
.equip-slot,
.xeon-slot,
.skill-icon,
.dna-icon,
.honor-icon-wrap {
  -webkit-user-drag: none;
  user-select: none;
}

/* === v88 page-safe equipment item/xeon split === */
.equipment-stats-middle .equip-stat-box {
  position: relative;
  border-top-color: transparent;
}

.equipment-stats-middle .equip-stat-box::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 2px;
  border-top: 1px solid rgba(254, 207, 125, 0.2);
  pointer-events: none;
}

.equip-item-list {
  overflow: hidden;
}

.split-item-list {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}

.split-list-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(254, 207, 125, 0.18);
  background: rgba(0, 0, 0, 0.22);
  border-radius: 4px;
  overflow: hidden;
}

.split-list-panel h3 {
  flex: 0 0 30px;
  height: 30px;
  margin: 0;
  padding: 7px 10px 0;
  color: #fecf7d;
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(254, 207, 125, 0.14);
  background: rgba(10, 8, 10, 0.72);
}

.split-list-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 7px;
}

.split-list-body::-webkit-scrollbar {
  width: 10px;
}
.split-list-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.55);
}
.split-list-body::-webkit-scrollbar-thumb {
  background: rgba(133, 94, 58, 0.88);
  border: 1px solid rgba(254, 207, 125, 0.25);
}

.portal-page {
  display: none;
}
.portal-page.active {
  display: block;
}

/* === v89 changelog + tooltip enchant/set display === */
.changelog-list {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 8px;
}

.changelog-list::-webkit-scrollbar {
  width: 10px;
}

.changelog-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.55);
}

.changelog-list::-webkit-scrollbar-thumb {
  background: rgba(133, 94, 58, 0.88);
  border: 1px solid rgba(254, 207, 125, 0.25);
}

.tt-enchant-bonus,
.tt-line.enchant {
  color: #7e5e8a;
  font-style: normal;
  font-weight: 700;
}

.tt-section.set-details {
  margin-top: 8px;
}

.tt-line.set-name {
  color: #86bbc0;
  font-weight: 700;
}

.tt-line.set-bonus {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  color: #86bbc0;
}

.tt-line.set-bonus.locked {
  color: #646464;
}

.tt-line.set-bonus.unlocked {
  color: #86bbc0;
}

/* === v91 split search + final-tooltip math === */
.equip-search-label {
  display: none;
}

.equipment-control-row,
.equip-controls {
  grid-template-columns: 82px 82px 132px 90px 122px 94px;
}

#equipClearAll {
  grid-column: auto;
}

.split-list-search {
  flex: 0 0 28px;
  height: 28px;
  width: calc(100% - 14px);
  margin: 7px 7px 0;
  background: #101014;
  color: #fecf7d;
  border: 1px solid rgba(254, 207, 125, 0.28);
  font-size: 12px;
}

.split-list-panel h3 {
  flex-basis: 28px;
  height: 28px;
  padding-top: 6px;
}

.tt-upgrade-bonus {
  color: #f9f9ae;
  font-style: normal;
  font-weight: 700;
  margin-left: 0;
}

.tt-enchant-bonus {
  color: #7e5e8a;
  font-style: normal;
  font-weight: 700;
}

.xeon-slot {
  position: relative;
  overflow: visible;
}

.xeon-slot.selected::after {
  content: "";
  position: absolute;
  left: -4px;
  top: -4px;
  width: 42px;
  height: 42px;
  border: 2px solid #fecf7d;
  box-shadow:
    0 0 12px rgba(254, 207, 125, 0.58),
    inset 0 0 7px rgba(254, 207, 125, 0.28);
  pointer-events: none;
  z-index: 5000;
}

/* === v92 tooltip and xeon slot polish === */
.tt-upgrade-bonus {
  color: #9ab3e5;
}

.xeon-slot.selected::after,
.xeon-pulse-ring {
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  z-index: 2147483647;
  box-sizing: border-box;
}

.xeon-slot.selected::after {
  border: 2px solid #fecf7d;
  box-shadow:
    0 0 12px rgba(254, 207, 125, 0.58),
    inset 0 0 7px rgba(254, 207, 125, 0.28);
}

.xeon-pulse-ring {
  border: 2px solid #00ff78;
}

.xeon-slot,
.xeon-slot img {
  overflow: visible;
}

.xeon-slot[title] {
  pointer-events: auto;
}

.tt-line.set-bonus.full-set-row span:first-child:empty::after {
  content: "";
}

/* === v93 layer/filter/search corrections === */

/* Old top search removed from DOM; keep CSS guard for stale caches. */
.equip-search-label,
#equipSearch {
  display: none;
}

/* Compact controls after removing old search column. */
.equip-controls,
.equipment-control-row {
  grid-template-columns: 82px 82px 132px 90px 122px 94px;
}

#equipClearAll {
  grid-column: auto;
}

/* Bonus bracket color follows the tooltip line category. */
.tt-upgrade-bonus {
  color: inherit;
  font-style: normal;
  font-weight: 700;
}

.tt-stat.defense .tt-upgrade-bonus {
  color: #f9f9ae;
}

.tt-stat.player .tt-upgrade-bonus {
  color: #9ab3e5;
}

.tt-enchant-bonus {
  color: #7e5e8a;
  font-style: normal;
  font-weight: 700;
}

/* Layer hierarchy: icon < selection border < pulse < tooltip. */
.equip-tooltip {
  z-index: 2147483647;
}

.xeon-slot img {
  z-index: 1;
}

.xeon-slot span {
  z-index: 2;
}

.xeon-slot::after {
  z-index: 10;
}

.xeon-slot.selected::after {
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  z-index: 20;
  box-sizing: border-box;
  border: 2px solid #fecf7d;
  box-shadow:
    0 0 12px rgba(254, 207, 125, 0.58),
    inset 0 0 7px rgba(254, 207, 125, 0.28);
}

.xeon-pulse-ring {
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  z-index: 30;
  box-sizing: border-box;
  border: 2px solid #00ff78;
}

/* Preserve sane split-list sizing with independent scroll areas. */
.split-list-body {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.split-list-search {
  flex: 0 0 28px;
  height: 28px;
}

/* === v94 attack speed + Stat Rolls planner === */
.stat-roll-head {
  display: grid;
  grid-template-columns: 1fr 78px;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}

.stat-roll-head b {
  display: block;
  color: #fecf7d;
  font-size: 12px;
}

.stat-roll-head span,
.stat-roll-label span {
  display: block;
  color: #9ab3e5;
  font-size: 11px;
  opacity: 0.86;
}

.stat-roll-head label,
.stat-roll-row label {
  color: #d1d1d1;
  font-size: 11px;
  font-weight: 800;
}

.stat-roll-head input,
.stat-roll-row input {
  width: 100%;
  height: 24px;
  box-sizing: border-box;
  background: #101014;
  color: #fecf7d;
  border: 1px solid rgba(254, 207, 125, 0.28);
}

.stat-roll-rows {
  display: grid;
  gap: 7px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 4px;
}

.stat-roll-row {
  display: grid;
  grid-template-columns: 1fr 58px 72px;
  gap: 8px;
  align-items: end;
  padding: 6px;
  border: 1px solid rgba(254, 207, 125, 0.13);
  background: rgba(0, 0, 0, 0.22);
}

.stat-roll-label b {
  color: #86bbc0;
  font-size: 12px;
}

.tt-roll-bonus {
  color: #86bbc0;
  font-style: normal;
  font-weight: 700;
}

/* === v95 appendix roll panel + reinforcing cost === */
.equipment-layout {
  position: relative;
  overflow: visible;
}

/* ---- Equipment Planner: selected-item appendix panel ---------------------------- */

.equipment-appendix-panel {
  position: absolute;
  left: 338px;
  top: 0;
  width: 360px;
  min-height: 0;
  height: auto;
  max-height: none;
  z-index: 6000;
  transform: translateX(calc(-100% + 28px));
  transition: transform 0.18s ease-out;
  pointer-events: auto;
}

.equipment-appendix-panel.open {
  transform: translateX(0);
}

.equipment-appendix-toggle {
  position: absolute;
  left: -28px;
  top: 16px;
  width: 28px;
  height: 118px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  border: 1px solid rgba(254, 207, 125, 0.35);
  background: rgba(12, 7, 8, 0.96);
  color: #fecf7d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.equipment-appendix-inner {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(254, 207, 125, 0.35);
  border-radius: 4px;
  background: rgba(8, 5, 7, 0.98);
  box-shadow:
    0 0 28px rgba(0, 0, 0, 0.92),
    inset 0 0 18px rgba(80, 20, 20, 0.24);
  padding: 10px;
}

.equipment-appendix-inner h2 {
  margin: 0 0 10px;
  color: #fecf7d;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.appendix-tooltip-host.equip-tooltip,
.appendix-tooltip {
  position: static;
  display: block;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  pointer-events: auto;
  z-index: auto;
  margin: 0;
  height: auto;
  max-height: none;
}

.appendix-roll-controls {
  margin-top: 10px;
  border-top: 1px solid rgba(254, 207, 125, 0.16);
  padding-top: 9px;
}

.appendix-roll-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.appendix-roll-head h3 {
  margin: 0;
  color: #fecf7d;
  font-size: 13px;
  text-transform: uppercase;
}

.appendix-toggle-row,
.appendix-slider-row {
  color: #d1d1d1;
  font-size: 11px;
  font-weight: 800;
}

.appendix-slider-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 9px 0;
}

.appendix-slider-row input {
  grid-column: 1 / -1;
  width: 100%;
}

.appendix-roll-custom {
  display: grid;
  gap: 6px;
}

.appendix-roll-custom.disabled {
  opacity: 0.58;
}

.appendix-roll-row {
  display: grid;
  grid-template-columns: 1fr 76px;
  gap: 8px;
  align-items: end;
  border: 1px solid rgba(254, 207, 125, 0.13);
  background: rgba(0, 0, 0, 0.24);
  padding: 6px;
}

.appendix-roll-label b {
  display: block;
  color: #86bbc0;
  font-size: 12px;
}

.appendix-roll-label span {
  display: block;
  color: #9ab3e5;
  font-size: 11px;
}

.appendix-roll-row input,
.reinforce-target input {
  height: 24px;
  box-sizing: border-box;
  background: #101014;
  color: #fecf7d;
  border: 1px solid rgba(254, 207, 125, 0.28);
}

.appendix-roll-row input {
  width: 76px;
}

.appendix-roll-empty {
  color: #9ab3e5;
  font-size: 12px;
}

.stats-roll-window-panel .honor-window-title span {
  color: #fecf7d;
}

.reinforce-cost-box {
  display: grid;
  gap: 8px;
  color: #d1d1d1;
  font-size: 12px;
}

.reinforce-target {
  display: grid;
  grid-template-columns: 1fr 70px;
  gap: 8px;
  align-items: center;
  color: #fecf7d;
  font-weight: 800;
}

.reinforce-note {
  color: #9ab3e5;
  font-size: 11px;
  line-height: 1.35;
}

.reinforce-summary {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  gap: 6px;
  align-items: baseline;
  color: #fecf7d;
  border-top: 1px solid rgba(254, 207, 125, 0.15);
  border-bottom: 1px solid rgba(254, 207, 125, 0.15);
  padding: 7px 0;
}

.reinforce-summary b {
  color: #f9f9ae;
  font-size: 15px;
}

.reinforce-xeon-list {
  display: grid;
  gap: 3px;
}

.reinforce-xeon-list div,
.reinforce-item-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.reinforce-xeon-list span {
  color: #86bbc0;
}

.reinforce-xeon-list b,
.reinforce-item-line b {
  color: #fecf7d;
}

.reinforce-items {
  max-height: 130px;
  overflow-y: auto;
  display: grid;
  gap: 5px;
  padding-right: 4px;
}

.reinforce-item-line {
  border-top: 1px solid rgba(254, 207, 125, 0.1);
  padding-top: 4px;
}

.reinforce-item-line span {
  color: #d1d1d1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reinforce-item-line em {
  grid-column: 1 / -1;
  color: #9ab3e5;
  font-style: normal;
  font-size: 11px;
}

@media (max-width: 1250px) {
  .equipment-appendix-panel {
    position: static;
    transform: none;
    width: 100%;
    margin: 10px 0;
  }
  .equipment-appendix-toggle {
    display: none;
  }
}

/* === v97 appendix placement/name and reinforcement audit === */

/* Master-panel anchoring: the appendix is positioned relative to the Equipment Planner panel, not the inner equipment layout. */
.equipment-tool {
  position: relative;
  overflow: visible;
}

.equipment-layout {
  position: static;
  overflow: visible;
}

.equipment-appendix-panel {
  position: absolute;
  left: 0;
  top: 130px;
  width: 360px;
  height: auto;
  min-height: 0;
  max-height: none;
  transform: translateX(calc(-100% - 10px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 6000;
  transition:
    opacity 0.14s ease-out,
    visibility 0.14s ease-out;
}

.equipment-appendix-panel.has-item,
.equipment-appendix-panel.open {
  transform: translateX(calc(-100% - 10px));
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.equipment-appendix-toggle {
  display: none;
}

.equipment-appendix-inner h2 {
  font-size: 13px;
}

/* Native range visual is transparent; the wrapper draws the rail/fill to avoid the 100% ghost-pixel artifact. */
.appendix-range-wrap {
  --thumb-size: 15px;
  --track-height: 10px;
  --range-fill: 0%;
  position: relative;
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  height: 18px;
}

.appendix-range-wrap::before,
.appendix-range-fill {
  position: absolute;
  left: 0;
  top: 50%;
  height: var(--track-height);
  transform: translateY(-50%);
  box-sizing: border-box;
  border-radius: 3px;
  pointer-events: none;
}

.appendix-range-wrap::before {
  content: "";
  right: 0;
  background: #101014;
  border: 1px solid rgba(254, 207, 125, 0.25);
}

.appendix-range-fill {
  width: var(--range-fill);
  max-width: 100%;
  background: #1e87ff;
  border: 1px solid rgba(154, 179, 229, 0.45);
  border-right-width: 0;
}

.appendix-range-wrap input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 18px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  z-index: 2;
}

.appendix-range-wrap input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 18px;
  background: transparent;
  border: 0;
}

.appendix-range-wrap input[type="range"]::-moz-range-track {
  width: 100%;
  height: 18px;
  background: transparent;
  border: 0;
}

.appendix-range-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: var(--thumb-size);
  height: var(--thumb-size);
  margin-top: 1px;
  border-radius: 50%;
  background: #1e87ff;
  border: 1px solid #9ab3e5;
  box-sizing: border-box;
}

.appendix-range-wrap input[type="range"]::-moz-range-thumb {
  width: var(--thumb-size);
  height: var(--thumb-size);
  border-radius: 50%;
  background: #1e87ff;
  border: 1px solid #9ab3e5;
  box-sizing: border-box;
}

.appendix-toggle-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  line-height: 16px;
}

.appendix-toggle-row input {
  margin: 0;
}

/* Tighten Upgrade + Max toggle spacing. */
.upgrade-inline {
  gap: 5px;
}

.upgrade-max-label {
  gap: 4px;
  align-items: center;
  justify-content: flex-start;
}

/* Reinforcing Cost now reports exact Lant and explicitly marks missing Basic Xeon quantity table. */
.reinforce-warning {
  color: #fecf7d;
  opacity: 0.9;
}

.reinforce-xeon-list div b {
  text-align: right;
}

/* === v99 Random Roll / Reinforcing Cost fixes === */
.appendix-slider-row.disabled {
  opacity: 0.45;
  filter: grayscale(0.65);
}
.appendix-range-wrap.disabled::before {
  background: #0b0b0e;
  border-color: rgba(170, 160, 145, 0.18);
}
.appendix-range-wrap.disabled .appendix-range-fill {
  background: #555;
  border-color: rgba(180, 180, 180, 0.25);
}
.appendix-range-wrap.disabled input[type="range"]::-webkit-slider-thumb {
  background: #777;
  border-color: #aaa;
}
.appendix-range-wrap.disabled input[type="range"]::-moz-range-thumb {
  background: #777;
  border-color: #aaa;
}
.reinforce-cost-server-sided {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.reinforce-server-note {
  color: #d1d1d1;
  font-size: 13px;
  line-height: 1.45;
  padding: 12px;
}

/* === v102 tooltip damage/speed layout === */
.tt-stat-with-right {
  display: flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}
.tt-stat-with-right > span:first-child,
.tt-stat-with-right > b:first-of-type {
  flex: 0 0 auto;
}
.tt-right-stat {
  margin-left: auto;
  display: inline-flex !important;
  align-items: baseline;
  gap: 4px;
  color: inherit;
  white-space: nowrap !important;
}
.tt-right-stat span,
.tt-right-stat b {
  display: inline !important;
  white-space: nowrap !important;
}
.tt-upgrade-standalone {
  color: #f9f9ae;
}

/* === v102 equipment list grade/type filters === */
.slot-filter-row {
  display: none;
}

.split-list-filters {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  width: calc(100% - 14px);
  margin: 6px 7px 0;
}

.split-list-filters:has(select + select) {
  grid-template-columns: 1fr 1fr;
}

.split-list-filter-select {
  height: 26px;
  min-width: 0;
  background: #101014;
  color: #fecf7d;
  border: 1px solid rgba(254, 207, 125, 0.28);
  font-size: 12px;
}

.split-list-filter-select:disabled {
  color: #71685d;
  border-color: rgba(254, 207, 125, 0.12);
  opacity: 0.55;
}

/* === v103 equipment planner final pass === */
.equipment-side-toolbar {
  flex: 0 0 31px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  height: 31px;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.equipment-side-title-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.side-upgrade-label {
  width: auto;
  min-width: 134px;
  max-width: 134px;
  color: #d1d1d1;
  font-size: 12px;
  font-weight: 800;
  gap: 4px;
}

.side-upgrade-label .upgrade-inline {
  justify-content: flex-end;
}

.equip-item-list {
  flex: 1 1 auto;
  min-height: 0;
}

.split-list-panel h3 {
  display: flex;
  align-items: center;
  min-height: 28px;
  padding-top: 0;
}

.split-list-filter-select option {
  background: #101014;
}

.xeon-slot:hover::before {
  box-shadow:
    0 0 14px rgba(254, 207, 125, 0.78),
    inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.xeon-slot:hover::after {
  border: 2px solid #fecf7d;
  box-shadow:
    0 0 12px rgba(254, 207, 125, 0.58),
    inset 0 0 7px rgba(254, 207, 125, 0.28);
}

.xeon-slot.filled:not(.selected):not(:hover)::after {
  border: 1px solid rgba(254, 207, 125, 0.55);
}

/* === v104 equipment planner final alignment + saved characters === */
.equip-controls,
.equipment-control-row {
  grid-template-columns: 82px 82px 132px 90px 66px 88px 66px 112px minmax(120px, 1fr);
  gap: 8px;
  align-items: end;
}

.equip-upgrade-top-label,
.equip-forge-rate-label {
  text-align: center;
}

.equip-upgrade-top-label input,
.equip-forge-rate-label input {
  text-align: center;
}

.equip-upgrade-top-label { grid-column: 5; }
.equip-forge-rate-label { grid-column: 6; }
.upgrade-max-top-label { grid-column: 7; }
#equipClearAll { grid-column: 8; }

.upgrade-max-top-label {
  color: #d1d1d1;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.upgrade-max-row {
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #d1d1d1;
}

.upgrade-max-row input {
  width: auto;
  height: auto;
  min-width: 0;
  margin: 0;
}

.equip-saved-character-label select {
  width: 100%;
}

#equipSaveCharacter,
#equipDeleteCharacter,
#equipClearAll {
  white-space: nowrap;
}

.equipment-side-toolbar {
  display: none;
  flex-basis: 0;
  height: 0;
  margin: 0;
  padding: 0;
}

.equipment-side {
  position: relative;
  top: -2px;
  height: 814px;
  min-height: 814px;
  max-height: 814px;
}

.equip-item-list {
  height: 100%;
  min-height: 0;
}

.split-item-list {
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
}

.split-list-panel {
  min-height: 0;
}

@media (max-width: 1250px) {
  .equip-controls,
  .equipment-control-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .equipment-side {
    position: static;
    top: auto;
    height: auto;
    min-height: 0;
    max-height: none;
  }
}

/* === v105 ship polish: icons, layout, saving, stats font, footer/home === */
/* ---- Home page: welcome card ----------------------------------------------------- */

.home-welcome-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(254, 207, 125, 0.24);
  background:
    radial-gradient(circle at 18% 0%, rgba(254, 207, 125, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(18, 12, 12, 0.96), rgba(5, 5, 7, 0.94));
  box-shadow:
    0 0 30px rgba(0, 0, 0, 0.7),
    inset 0 0 34px rgba(120, 36, 19, 0.16);
  border-radius: 5px;
  padding: 22px 24px;
  margin: 0 0 14px;
}
.home-welcome-card h1 {
  margin: 0 0 10px;
  text-align: left;
  color: #fecf7d;
  font-family: "Cinzel Decorative", "Cinzel", "Trajan Pro", Georgia, serif;
  font-size: 25px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.home-welcome-card p {
  margin: 8px 0 0;
  color: #d1d1d1;
  line-height: 1.55;
  font-size: 14px;
}
.home-welcome-card .home-feedback-line {
  color: #fecf7d;
  margin-top: 12px;
}
.home-welcome-glow {
  position: absolute;
  right: -85px;
  top: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(190, 70, 34, 0.22), transparent 64%);
  pointer-events: none;
}
.portal-footer .footer-sub {
  margin-bottom: 14px;
}

/* Save/load lives in its own row above the character controls. */
.equip-save-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 112px 64px;
  gap: 8px;
  align-items: end;
  margin: 8px 0 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(254, 207, 125, 0.18);
}
.equip-save-controls label {
  color: #d1d1d1;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  width: 100%;
}
.equip-save-controls select,
.equip-save-controls input {
  height: 30px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: #101014;
  color: #fecf7d;
  border: 1px solid rgba(254, 207, 125, 0.28);
}
.equip-save-controls button {
  height: 30px;
  white-space: nowrap;
}

/* Main controls: race/class left, Clear All near them, Reinforce pinned to the top-right. */
.equip-controls,
.equipment-control-row {
  grid-template-columns: 82px 82px 132px 90px 94px minmax(0, 1fr) 62px 44px;
  column-gap: 8px;
  row-gap: 6px;
  align-items: end;
  margin: 0 0 14px;
}
#equipClearAll {
  grid-column: 5;
  width: 100%;
  justify-self: stretch;
}
.equip-upgrade-top-label {
  grid-column: 7;
  text-align: center;
  align-self: end;
}
.equip-upgrade-top-label input {
  width: 62px;
  min-width: 62px;
  text-align: center;
}
.upgrade-max-top-label {
  grid-column: 8;
  align-self: end;
  margin-left: -5px;
}
.upgrade-max-row {
  height: 30px;
  justify-content: flex-start;
  gap: 3px;
}
#equipUpgradeMax {
  width: 13px;
  min-width: 13px;
  height: 13px;
  margin: 0;
}

/* Left column narrowed by ~5%, middle stats panel receives the freed width. */
.equipment-layout {
  grid-template-columns: 314px 336px minmax(0, 1fr);
  gap: 16px;
  height: 820px;
  min-height: 820px;
  max-height: 820px;
}
.equipment-left {
  width: 314px;
  min-width: 314px;
  max-width: 314px;
}
.equipment-stage-wrap {
  width: 314px;
  min-width: 314px;
  max-width: 314px;
}
.equipment-stats-middle {
  width: 336px;
  min-width: 336px;
  max-width: 336px;
}
.equipment-side {
  position: relative;
  top: -2px;
  height: 814px;
  min-height: 814px;
  max-height: 814px;
}
.equipment-side-toolbar {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  flex-basis: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
.equip-item-list {
  height: 100%;
  min-height: 0;
}
.split-item-list {
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
}
.equipment-stats-middle .equip-stat-box,
.equipment-side {
  border-top-width: 1px;
}
.equip-stat-line {
  font-size: 13px;
  line-height: 1.38;
}
.equip-stat-box h2 {
  font-size: 14px;
}

/* Search text should be readable while typing. */
.split-list-search,
#equipSearch,
input[type="search"] {
  color: #fff !important;
  caret-color: #fff;
}
.split-list-search::placeholder,
#equipSearch::placeholder,
input[type="search"]::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.reinforce-server-note {
  color: #d1d1d1;
  font-size: 14px;
  line-height: 1.45;
  white-space: normal;
}

@media (max-width: 1250px) {
  .equip-save-controls {
    grid-template-columns: 1fr 112px 64px;
  }
  .equip-controls,
  .equipment-control-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #equipClearAll,
  .equip-upgrade-top-label,
  .upgrade-max-top-label {
    grid-column: auto;
    margin-left: 0;
  }
  .equipment-left,
  .equipment-stage-wrap,
  .equipment-stats-middle {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
  .equipment-layout,
  .equipment-side {
    height: auto;
    min-height: 0;
    max-height: none;
  }
}

/* === v106 final planner polish: filtering, saves, grouping, font sizing === */
.portal-home {
  font-size: 16px;
}
.home-welcome-card p {
  font-size: 16px;
}
.changelog-head p,
.changelog-list ul {
  font-size: 16px;
}
.changelog-list h2 {
  font-size: 17px;
}
.changelog-list li {
  margin: 3px 0;
}

.equip-save-controls {
  grid-template-columns: 220px 74px 64px;
  justify-content: end;
  align-items: end;
}
.equip-save-controls label {
  width: 220px;
}
.equip-save-controls select {
  width: 220px;
}
#equipSaveCharacter {
  width: 74px;
}
#equipDeleteCharacter {
  width: 64px;
}

.honor-window-body--single,
.honor-panel-content,
.honor-skill-area,
.honor-grade-line,
.honor-click-help,
.honor-tab-row,
.honor-level-badge {
  font-size: calc(100% + 2px);
}
.honor-icon-wrap {
  font-size: 13px;
}

.equip-tooltip {
  font-size: 13px;
}
.equip-tooltip .tt-head h3 {
  font-size: 16px;
}
.equip-tooltip .tt-meta,
.equip-tooltip .tt-type {
  font-size: 12px;
}
.tooltip {
  font-size: calc(100% + 1px);
}

.appendix-roll-controls,
.appendix-roll-head h3,
.appendix-toggle-row,
.appendix-slider-row,
.appendix-roll-label b,
.appendix-roll-label span,
.appendix-roll-empty {
  font-size: calc(100% + 1px);
}

/* === v107 save dropdown bugfix, concise warnings, and honor panel layout === */
.honor-panel-content {
  position: relative;
  padding: 14px 18px 16px 165px;
}
.honor-grade-line {
  position: absolute;
  left: 22px;
  bottom: 18px;
  width: 130px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
}
.honor-click-help {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-size: 16px;
  line-height: 1.15;
}
.click-circle {
  width: 18px;
  height: 18px;
  font-size: 13px;
  margin-left: 0;
  margin-right: 6px;
  vertical-align: -2px;
}
#resetHonorSkills {
  width: 132px;
  min-width: 132px;
  height: 28px;
  font-size: 11px;
  padding: 0 6px;
}
.honor-tab-row {
  justify-content: start;
  margin: 4px 0 12px;
}
.honor-icon-grid {
  justify-content: start;
  margin-top: 10px;
}
.honor-tab-row span {
  font-size: 16px;
}

/* === v109 emergency equipment planner boot fix === */
.equipment-tool {
  position: relative;
}
.equipment-appendix-panel {
  left: 0 !important;
  top: 0 !important;
  transform: translateX(calc(-100% - 10px)) !important;
}
.equipment-appendix-panel.has-item,
.equipment-appendix-panel.open {
  transform: translateX(calc(-100% - 10px)) !important;
}

.equip-controls,
.equipment-control-row {
  grid-template-columns: 94px 94px 152px 104px 104px minmax(0, 1fr) 72px 50px;
  column-gap: 8px;
  align-items: end;
}
.equip-controls label,
.equipment-control-row label {
  font-size: 14px;
}
.equip-controls select,
.equip-controls input,
.equipment-control-row select,
.equipment-control-row input {
  height: 35px;
  font-size: 14px;
}
.equip-controls button,
.equipment-control-row button {
  height: 35px;
  font-size: 14px;
}
.equip-upgrade-top-label {
  grid-column: 7;
  text-align: center;
  align-self: end;
}
.equip-upgrade-top-label input {
  width: 72px;
  min-width: 72px;
  text-align: center;
}
.upgrade-max-top-label {
  grid-column: 8;
  align-self: end;
  margin-left: -7px;
}
.upgrade-max-row {
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  white-space: nowrap;
  font-size: 13px;
}
#equipUpgradeMax {
  width: 14px;
  min-width: 14px;
  height: 14px;
}

.reinforcement-reserve-panel {
  display: none !important;
}
.enchant-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
}
.enchant-title-row h2 {
  margin: 0;
}
#clearSelectedXeons {
  height: 24px;
  min-width: 54px;
  padding: 0 8px;
  color: #fecf7d;
  background: rgba(50, 12, 14, 0.85);
  border: 1px solid rgba(254, 207, 125, 0.3);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
#clearSelectedXeons:disabled {
  opacity: 0.45;
  cursor: default;
}
.equip-bonus-panel {
  flex: 1 1 auto;
  min-height: 0;
}
.bonus-toggle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.bonus-toggle-head,
.bonus-toggle-row {
  display: grid;
  grid-template-columns: 1fr 54px 54px;
  align-items: center;
  gap: 8px;
  color: #d1d1d1;
  font-size: 12px !important;
}
.bonus-toggle-head {
  color: #fecf7d;
  font-weight: 800;
  text-align: center;
}
.bonus-toggle-head span:first-child,
.bonus-toggle-row span {
  text-align: left;
}
.bonus-toggle-row input {
  width: 16px !important;
  height: 16px !important;
  justify-self: center;
  min-width: 16px !important;
}

.split-list-topline {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(112px, 0.9fr);
  gap: 7px;
  width: calc(100% - 14px);
  margin: 6px 7px 0;
  align-items: center;
}
.split-list-topline:has(select + select) {
  grid-template-columns: minmax(0, 1.5fr) minmax(105px, 0.8fr) minmax(120px, 0.95fr);
}
.split-list-topline .split-list-search,
.split-list-topline .split-list-filter-select {
  width: 100%;
  margin: 0;
}
.split-list-search,
.split-list-filter-select {
  height: 27px;
}

.honor-click-help div {
  display: flex;
  align-items: center;
  gap: 7px;
}
.click-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  line-height: 19px;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  text-align: center;
  vertical-align: middle;
  font-size: 14px;
  font-weight: 900;
  font-family: Arial, Helvetica, sans-serif;
}

.stats-roll-window-panel .honor-window-title span::before {
  content: none;
}
/* ---- Equipment Planner: Test Damage breakdown detail ------------------------------ */

.test-damage-panel {
  padding: 16px 18px;
  font-size: 13px;
  color: #d1d1d1;
}
.test-damage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: end;
}
.test-damage-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #d1d1d1;
  font-weight: 800;
  font-size: 12px;
}
.test-damage-grid select,
.test-damage-grid input[type="number"] {
  width: 100%;
  height: 28px;
  min-width: 0;
  box-sizing: border-box;
  background: #101014;
  color: #fecf7d;
  border: 1px solid rgba(254, 207, 125, 0.28);
}
.test-block-line span {
  height: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.test-damage-result {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(254, 207, 125, 0.18);
  background: rgba(0, 0, 0, 0.3);
  text-align: center;
}
.test-damage-result-main {
  color: #fecf7d;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 6px;
}
.test-damage-result-meta {
  color: #9fbff0;
  font-size: 12px;
}

/* === v110 final polish: corrected test-damage formula labels and panel scaling === */
.test-damage-result-meta {
  display: none !important;
}
.test-damage-result-main {
  margin-bottom: 0 !important;
}
.equip-bonus-panel {
  display: flex;
  flex-direction: column;
}
.equip-bonus-panel .bonus-toggle-grid {
  width: min(260px, 96%);
  margin: auto;
  gap: 14px;
}
.equip-bonus-panel .bonus-toggle-head,
.equip-bonus-panel .bonus-toggle-row {
  grid-template-columns: 1fr 68px 68px;
  font-size: 14px;
  gap: 10px;
}
.equip-bonus-panel .bonus-toggle-row input {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
}
.equipment-planner .enchant-reserve-panel h2,
.equipment-planner .equip-bonus-panel h2,
.equipment-planner .equipment-appendix-inner h2 {
  font-size: 15px !important;
}
.equipment-planner .equip-stat-box h2,
.equipment-planner .split-list-panel h3,
.equipment-planner .honor-window-title span {
  font-size: 16px !important;
}
.equipment-planner .split-list-panel h3 {
  line-height: 18px !important;
  padding-top: 6px !important;
}
.equipment-planner .honor-window-title {
  height: 38px;
}

/* === v111 alignment and share-build polish === */
.portal-header-inner {
  overflow: hidden;
}
.portal-header-inner::after {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  width: 22%;
  left: -32%;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 246, 210, 0.04) 32%,
    rgba(255, 238, 185, 0.34) 48%,
    rgba(255, 246, 210, 0.06) 64%,
    transparent 100%
  );
  filter: blur(0.3px);
  transform: translateX(0) skewX(-18deg);
  animation: requiemHeaderGloss 60s linear infinite;
  mix-blend-mode: screen;
}
/* ---- Equipment Planner: share / save build controls ------------------------------- */

.equip-build-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin: 8px 0 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(254, 207, 125, 0.18);
}
.equip-share-controls {
  display: flex;
  align-items: end;
  gap: 8px;
}
.equip-share-controls button {
  width: 74px;
  height: 30px;
  white-space: nowrap;
}
.equip-save-controls {
  margin: 0;
  padding: 0;
  border-bottom: 0;
}
.equipment-layout {
  align-items: start;
  height: 820px;
  min-height: 820px;
  max-height: 820px;
}
.equipment-stats-middle {
  top: 0;
  height: 820px;
  min-height: 820px;
  max-height: 820px;
}
.equipment-stats-middle .equip-stat-box {
  height: 820px;
  min-height: 820px;
  max-height: 820px;
  border-top-color: rgba(254, 207, 125, 0.18);
}
.equipment-stats-middle .equip-stat-box::before {
  content: none;
}
.equipment-side {
  top: 0;
  height: 820px;
  min-height: 820px;
  max-height: 820px;
}
@media (max-width: 1250px) {
  .equip-build-row {
    display: block;
  }
  .equip-share-controls {
    margin: 0 0 8px;
  }
  .equipment-layout,
  .equipment-stats-middle,
  .equipment-stats-middle .equip-stat-box,
  .equipment-side {
    height: auto;
    min-height: 0;
    max-height: none;
  }
}

/* === v111 coming-soon navigation state === */
.portal-nav button:disabled,
.portal-nav button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.42;
  filter: grayscale(0.72) saturate(0.45);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.55);
}
.portal-nav button:disabled:hover,
.portal-nav button[aria-disabled="true"]:hover {
  transform: none;
  border-color: rgba(254, 207, 125, 0.18);
  color: #8d8170;
  background: linear-gradient(180deg, rgba(28, 22, 22, 0.72), rgba(9, 8, 10, 0.78));
}

/* === v112 header-gloss test, saved-build reload, Berserker bonus === */
.portal-header-inner::after {
  top: -38%;
  bottom: -38%;
  width: 28%;
  left: -36%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 246, 210, 0.08) 28%,
    rgba(255, 238, 185, 0.55) 48%,
    rgba(255, 246, 210, 0.1) 66%,
    transparent 100%
  );
  filter: blur(0.2px);
  animation: requiemHeaderGloss 10s ease-in-out infinite;
}
.equip-saved-character-label {
  font-size: 12px;
}
.berserker-bonus-row[hidden] {
  display: none;
}
.bonus-toggle-empty {
  width: 20px;
  min-width: 20px;
  height: 20px;
  display: block;
  justify-self: center;
}

/* === v113 SEO/header/test-damage/Berserker polish === */
.portal-header-inner::after {
  top: -42%;
  bottom: -42%;
  width: 26%;
  left: -34%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 246, 210, 0.07) 30%,
    rgba(255, 238, 185, 0.48) 49%,
    rgba(255, 246, 210, 0.09) 66%,
    transparent 100%
  );
  filter: blur(0.2px);
  animation: requiemHeaderGloss 10s ease-in-out infinite;
}
@keyframes requiemHeaderGloss {
  0%,
  78% {
    left: -34%;
    opacity: 0;
  }
  82% {
    opacity: 0.95;
  }
  94% {
    left: 108%;
    opacity: 0.64;
  }
  100% {
    left: 108%;
    opacity: 0;
  }
}
.bonus-toggle-row[hidden],
.berserker-bonus-row[hidden] {
  display: none;
}
.test-damage-panel {
  padding: 18px 20px;
  font-size: 15px;
}
.test-damage-grid {
  gap: 12px;
}
.test-damage-grid label {
  font-size: 14px;
  gap: 6px;
}
.test-damage-grid select,
.test-damage-grid input[type="number"] {
  height: 34px;
  font-size: 14px;
  padding: 0 9px;
}
.test-block-line span {
  height: 22px;
  font-size: 14px;
}
.test-block-line input[type="checkbox"] {
  width: 18px;
  height: 18px;
}
.test-damage-result {
  margin-top: 16px;
  padding: 14px;
}
.test-damage-result-main {
  font-size: 24px;
}
#resetHonorSkills {
  width: 150px;
  min-width: 150px;
  height: 32px;
  font-size: 13px;
  padding: 0 8px;
  white-space: nowrap;
}

/* === v0.9.9 release polish === */
.portal-title {
  font-size: 38px;
  letter-spacing: 0.105em;
}
.portal-subtitle {
  font-family: "Cinzel", "Trajan Pro", Georgia, serif;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e9c990;
  margin-top: 8px;
  text-shadow:
    0 1px 0 #000,
    0 0 8px rgba(254, 207, 125, 0.24);
}
.home-welcome-card p {
  text-indent: 1.45em;
  margin-top: 11px;
}
.home-welcome-card p:first-of-type {
  margin-top: 0;
}
.sacrifice-quote {
  color: #ffb347;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(255, 145, 45, 0.26);
}
.sacrifice-quote strong {
  color: #fff0b2;
}
.changelog-list {
  max-height: 620px;
}
.changelog-card {
  padding-bottom: 24px;
}
.changelog-list article {
  padding: 13px 15px;
}
.portal-footer .footer-sub {
  margin-top: 8px;
  margin-bottom: 18px;
}
@media (max-width: 760px) {
  .portal-title {
    font-size: 28px;
  }
  .portal-subtitle {
    font-size: 13px;
  }
}
