/* Ported from wow-mythic dressingroom.vue — classic site */
.dr-page {
  --gold: #ffc045;
  --gold2: #ffd76a;
  --text: #f4e7d0;
  --muted: #b79d7d;
  --line: rgba(255, 192, 69, 0.22);

  width: 100% !important;
  max-width: none !important;
  min-height: calc(100vh - 56px);
  margin: 0 !important;
  padding: 78px 2vw 48px;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 45% at 50% -8%, rgba(72, 42, 120, 0.18), transparent 58%),
    radial-gradient(ellipse 45% 30% at 90% 75%, rgba(170, 36, 9, 0.1), transparent 55%),
    linear-gradient(180deg, #0a0614 0%, #08060c 40%, #0d0808 100%);
  box-sizing: border-box;
}

.dr-shell {
  width: min(1600px, 100%);
  margin: 0 auto;
}

.dr-breadcrumb {
  margin-bottom: 10px;
}

.dr-breadcrumb a {
  color: rgba(255, 192, 69, 0.82) !important;
  border-right-color: rgba(255, 192, 69, 0.25) !important;
}

.dr-breadcrumb a:last-child {
  color: #ffe6ad !important;
}

.dr-hero {
  margin-bottom: 20px;
}

.dr-hero-code {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--gold);
  opacity: 0.85;
}

.dr-hero-title {
  margin: 6px 0 4px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #fff7df, #ffc045 60%, #e6781f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dr-hero-sub {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.dr-tips {
  margin: 10px 0 0;
  padding: 8px 12px;
  font-size: 12px;
  color: rgba(255, 224, 170, 0.78);
  border-radius: 8px;
  border: 1px solid rgba(224, 184, 74, 0.16);
  background: rgba(0, 0, 0, 0.22);
}

.dr-layout {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.dr-page .dressingroom-page-l {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 12px;
  background: linear-gradient(160deg, rgba(74, 47, 28, 0.32), rgba(0, 0, 0, 0.45));
  border: 1px solid rgba(224, 184, 74, 0.32);
  border-radius: 10px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 224, 160, 0.08);
  overflow: hidden;
}

.dr-page .dressingroom-page-l::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 2;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 192, 69, 0.7),
    rgba(255, 224, 160, 0.9),
    rgba(255, 192, 69, 0.7),
    transparent
  );
  pointer-events: none;
}

.dr-viewport-wrap {
  position: relative;
  min-height: 720px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(224, 184, 74, 0.18);
}

.dr-model-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(1px);
}

/* display:flex 会盖掉 UA 的 [hidden]{display:none}，必须显式覆盖 */
.dr-model-loading[hidden] {
  display: none !important;
}

.dr-model-loading span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 192, 69, 0.35);
  background: rgba(20, 12, 10, 0.85);
  color: #ffc045;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.dr-model-loading .ant-spin {
  color: #ffc045;
}

.dr-model-loading .ant-spin-dot-item {
  background-color: #ffc045;
}

.dr-viewport-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  border-radius: 8px;
  box-shadow:
    inset 0 0 80px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 192, 69, 0.08);
}

.dr-page .dressingroom-page-r {
  width: 340px;
  flex-shrink: 0;
}

.dr-side-panel,
.dr-page .dressingroom-page-r-item {
  position: relative;
  width: 100%;
  margin-bottom: 14px;
  padding: 14px 14px 12px;
  background: linear-gradient(160deg, rgba(74, 47, 28, 0.32), rgba(0, 0, 0, 0.42));
  border: 1px solid rgba(224, 184, 74, 0.32);
  border-radius: 10px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 224, 160, 0.08);
  overflow: hidden;
  box-sizing: border-box;
}

.dr-side-panel::before,
.dr-page .dressingroom-page-r-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 192, 69, 0.65),
    rgba(255, 224, 160, 0.85),
    rgba(255, 192, 69, 0.65),
    transparent
  );
  pointer-events: none;
}

.dr-side-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #ffe6ad;
}

.dr-side-title::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 3px;
  background: linear-gradient(to bottom, #ffd76a, #c7490f);
  box-shadow: 0 0 8px rgba(255, 192, 69, 0.45);
}

.dr-side-desc {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.dressingroom-page-r-item-race {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dr-race-chip {
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid rgba(224, 184, 74, 0.28);
  background: rgba(0, 0, 0, 0.28) !important;
  color: #e8dcc8 !important;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dr-race-chip:hover {
  color: #ffe6ad !important;
  border-color: rgba(255, 192, 69, 0.55);
  background: rgba(255, 192, 69, 0.1) !important;
}

.dr-race-chip.on {
  color: #2a1604 !important;
  font-weight: 700;
  border-color: rgba(255, 192, 69, 0.7);
  background: linear-gradient(140deg, #fff1bd, #ffc045 55%, #e8a02f) !important;
  box-shadow: 0 0 10px rgba(255, 192, 69, 0.35);
}

.dr-legend-scroll {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.dr-legend-scroll::-webkit-scrollbar {
  width: 6px;
}

.dr-legend-scroll::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: rgba(255, 192, 69, 0.35);
}

.dressingroom-page-r-item-item {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dr-legend-item {
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(224, 184, 74, 0.12);
  background: rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.dr-legend-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 192, 69, 0.45);
  box-shadow: 0 0 12px rgba(255, 192, 69, 0.35);
}

.dressingroom-page-l-modelview {
  position: relative !important;
  inset: auto;
  width: 100% !important;
  left: auto !important;
  top: auto !important;
  height: auto !important;
  min-height: 720px;
  padding-top: 0;
  border-radius: 8px;
  overflow: hidden;
  background: url("https://static.damijing.com/wow/assets/sy.jpg") repeat left top;
  background-color: #000000;
  box-sizing: border-box;
}

/* viewer 原生白色进度条：保证在 canvas 之上且不被裁切 */
.dressingroom-page-l-modelview canvas {
  display: block;
  position: relative;
  z-index: 1;
  /* 不要强行改 height，交给 viewer resize，否则 WebGL 视口错位会黑屏 */
  max-width: 100%;
}

.dressingroom-page-l-modelview > div {
  z-index: 2 !important;
}

.dr-viewer-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  z-index: 8;
  background: #000;
  pointer-events: none;
}

.dr-viewer-progress[hidden] {
  display: none !important;
}

.dr-viewer-progress-bar {
  height: 100%;
  background: #ccc;
  transition: width 0.12s linear;
  min-width: 0;
}

.dr-model-loading-pct {
  margin-left: 6px;
  font-style: normal;
  font-weight: 700;
  color: #ffe6ad;
}

.dressingroom-page-l-ui {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 900px;
  max-width: 100%;
  margin: 0 auto;
  left: 0;
  right: 0;
  height: 100%;
  min-height: 705px;
  padding: 2%;
  box-sizing: border-box;
  pointer-events: none;
}

.dressingroom-page-l-ui-tabs .dressingroom-page-l-ui-tabs-item,
.dressingroom-page-l-ui-l-i {
  pointer-events: auto;
}

.dressingroom-page-l-ui-tabs {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-top: 30px;
}

.dressingroom-page-l-ui-tabs .dressingroom-page-l-ui-tabs-item {
  width: 45px;
  height: 45px;
  border: 2px solid rgba(224, 184, 74, 0.35);
  border-radius: 50%;
  margin: 0 10px;
  background-color: #000000;
  overflow: hidden;
  filter: brightness(0.8);
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.dressingroom-page-l-ui-tabs .dressingroom-page-l-ui-tabs-item-on,
.dressingroom-page-l-ui-tabs .dressingroom-page-l-ui-tabs-item:hover {
  border-color: #ffc045;
  box-shadow: 0 0 12px rgba(255, 192, 69, 0.55);
  filter: brightness(1);
}

.dressingroom-page-l-ui-tabs .dressingroom-page-l-ui-tabs-item img {
  width: 100%;
  border-radius: 50%;
}

.dressingroom-page-l-ui-tabs-item > div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px !important;
  opacity: 0;
  overflow: hidden;
}

.dressingroom-page-l-ui-tabs-item .ant-select,
.dressingroom-page-l-ui-tabs-item .ant-select-selector,
.dressingroom-page-l-ui-tabs-item .ant-select-selection-item {
  height: 70px !important;
  opacity: 0;
}

.dressingroom-page-l-ui-items {
  width: 100%;
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
}

.dressingroom-page-l-ui-l {
  width: 55px;
}

.dressingroom-page-l-ui-l-i {
  width: 50px;
  height: 50px;
  padding: 2px;
  background: url("https://static.damijing.com/wow/item/itembg.png") no-repeat left top;
  background-size: 100% 100%;
  cursor: pointer;
  margin-bottom: 15px;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(224, 184, 74, 0.12);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.dressingroom-page-l-ui-l-i-filled {
  box-shadow: 0 0 0 1px rgba(255, 192, 69, 0.45), 0 0 10px rgba(255, 192, 69, 0.2);
}

.dressingroom-page-l-ui-l-i:hover {
  background-color: rgba(255, 192, 69, 0.18);
  box-shadow: 0 0 10px rgba(255, 192, 69, 0.45);
  transform: translateY(-1px);
}

.dressingroom-page-l-ui-l-i-disable {
  cursor: not-allowed !important;
  filter: brightness(0.35);
}

.dressingroom-page-l-ui-l-i-disable:hover {
  background-color: transparent !important;
  box-shadow: 0 0 0 1px rgba(224, 184, 74, 0.12) !important;
  transform: none;
}

.dressingroom-page-l-ui-l-i > img {
  width: 46px;
  height: 46px;
  border-radius: 5px;
}

.dressingroom-page-l-ui-l-i .global-item {
  position: absolute;
  left: 0;
  top: 0;
  width: 50px !important;
  height: 50px !important;
  border-radius: 8px;
  overflow: hidden;
}

.dressingroom-page-l-ui-l-i .global-item img {
  width: 44px;
  height: 44px;
  margin: 1px 0 0 1px;
  border-radius: 8px;
}

.dressingroom-page-l-ui-l-i .global-wowimg {
  width: 50px !important;
  height: 50px !important;
  background: none;
}

.dressingroom-page-l-ui-items-weapon {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: -65px;
}

.dressingroom-page-l-ui-items-weapon .dressingroom-page-l-ui-l-i {
  margin: 0 10px;
}

.dressingroom-page-l-modelview > div:last-child {
  background-color: transparent !important;
}

.dressingroom-page-l-ui-l-i .remove-btn {
  color: #ffffff;
  background-color: #c7490f;
  font-size: 18px;
  border-radius: 50%;
  position: absolute;
  top: -8px;
  right: -8px;
  display: none;
  box-shadow: 0 0 8px rgba(199, 73, 15, 0.55);
  z-index: 2;
}

.dressingroom-page-l-ui-l-i:hover .remove-btn {
  display: block;
}

.dr-toolbar,
.dressingroom-page-l-tool {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(224, 184, 74, 0.2);
  background: rgba(0, 0, 0, 0.28);
}

.dr-toolbar-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.dr-toolbar-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 192, 69, 0.65);
  margin-right: 2px;
}

.dr-page button.dr-btn {
  height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 192, 69, 0.35) !important;
  background: rgba(42, 28, 27, 0.92) !important;
  color: #ffc045 !important;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  opacity: 1 !important;
}

.dr-page button.dr-btn:hover {
  color: #ffd76a !important;
  border-color: #ffc045 !important;
  background: rgba(255, 192, 69, 0.1) !important;
}

.dr-btn-gold {
  color: #2a1604 !important;
  border-color: rgba(255, 192, 69, 0.7) !important;
  background: linear-gradient(140deg, #fff1bd, #ffc045 55%, #e8a02f) !important;
}

.dr-btn-gold:hover {
  color: #2a1604 !important;
  filter: brightness(1.05);
}

.dr-page .dr-dropdown-btn.ant-btn-group > .ant-btn,
.dr-page .dr-dropdown-btn.ant-btn-group > .ant-btn:first-child,
.dr-page .dr-dropdown-btn.ant-btn-group > .ant-btn:last-child {
  height: 34px !important;
  border-color: rgba(255, 192, 69, 0.35) !important;
  background: rgba(42, 28, 27, 0.92) !important;
  color: #ffc045 !important;
  font-weight: 600;
}

.dr-page .dr-dropdown-btn.ant-btn-group > .ant-btn:hover {
  color: #ffd76a !important;
  background: rgba(255, 192, 69, 0.1) !important;
}

.dr-page .dr-select .ant-select-selector {
  height: 34px !important;
  background: rgba(0, 0, 0, 0.35) !important;
  border: 1px solid rgba(224, 184, 74, 0.28) !important;
  border-radius: 6px !important;
  color: #ffe6ad !important;
}

.dr-page .dr-select .ant-select-selection-item {
  line-height: 32px !important;
  color: #ffe6ad !important;
}

.dr-page .dr-select .ant-select-arrow {
  color: rgba(255, 192, 69, 0.75) !important;
}

.dr-face-panel {
  min-width: 240px;
  padding: 4px 2px;
}

.dr-face-panel-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #ffe6ad;
}

.dr-face-panel .ant-form-item-label label {
  color: rgba(255, 224, 170, 0.88) !important;
  font-size: 13px;
}

.dr-face-panel .ant-select-selector {
  background: rgba(0, 0, 0, 0.35) !important;
  border-color: rgba(224, 184, 74, 0.28) !important;
  color: #ffe6ad !important;
}

.ant-dropdown-menu-title-content {
  color: var(--font-one-color);
}

.dressing-room-face {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background-color: transparent;
}

.dressing-room-face .ant-form-item {
  margin-bottom: 5px;
  margin-top: 5px;
}

.dressing-room-face .ant-select {
  width: 120px !important;
}

.dressing-room-face .ant-form-item-label {
  width: 70px;
}

.dressing-room-face .ant-form-item-label label {
  color: #ffffff;
  font-size: 13px;
}

.ant-select-dropdown {
  z-index: 90000000001 !important;
}

@media (max-width: 1200px) {
  .dr-layout {
    flex-direction: column;
  }

  .dr-page .dressingroom-page-r {
    width: 100%;
  }

  .dr-legend-scroll {
    max-height: none;
  }
}

@media (max-width: 720px) {
  .dr-page {
    padding: 72px 12px 36px;
  }

  .dr-hero-title {
    font-size: 24px;
  }

  .dressingroom-page-l-ui {
    width: 100%;
  }

  .dr-toolbar-label {
    display: none;
  }

  .dr-toolbar-group {
    width: 100%;
    justify-content: flex-start;
  }
}

/* --- Native controls + item picker modal (classic dressing room) --- */
.dr-native-select,
.dr-native-input {
  height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid rgba(224, 184, 74, 0.28);
  background: rgba(0, 0, 0, 0.35);
  color: #ffe6ad;
  font-size: 13px;
}

.dr-native-input {
  width: min(280px, 100%);
  box-sizing: border-box;
}

.dr-inline-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.dr-race-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dr-face-wrap {
  position: relative;
}

.dr-face-panel {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 20;
  min-width: 240px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(224, 184, 74, 0.35);
  background: rgba(18, 12, 10, 0.96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.dr-face-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0;
  font-size: 13px;
  color: rgba(255, 224, 170, 0.88);
}

.dr-face-row .dr-native-select {
  width: 140px;
}

.dr-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 192, 69, 0.25);
  border-top-color: #ffc045;
  animation: dr-spin 0.8s linear infinite;
}

@keyframes dr-spin {
  to { transform: rotate(360deg); }
}

.dr-slot-item-img {
  width: 46px;
  height: 46px;
  border-radius: 5px;
}

.dressingroom-page-l-ui-l-i .remove-btn {
  width: 18px;
  height: 18px;
  line-height: 16px;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.dr-toast {
  position: fixed;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  z-index: 10050;
  max-width: min(420px, 90vw);
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 192, 69, 0.4);
  background: rgba(20, 12, 10, 0.94);
  color: #ffe6ad;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.dr-toast-error {
  border-color: rgba(220, 80, 60, 0.55);
  color: #ffc9b8;
}

.dr-toast-warn {
  border-color: rgba(255, 192, 69, 0.55);
}

/* ===== 物品选择弹框：对齐主站 global-item-select / itemmodal ===== */
.global-item-modal[hidden] {
  display: none !important;
}

.global-item-modal {
  position: fixed;
  inset: 0;
  z-index: 10040;
}

.global-item-select-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.global-item-select {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background-color: transparent !important;
}

.global-item-select-content {
  pointer-events: auto;
  width: min(800px, 94vw);
  max-height: min(86vh, 920px);
  display: flex;
  flex-direction: column;
  background-color: var(--div-s-background-color, #2c1e1e);
  box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  overflow: hidden;
}

.global-item-select-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background-color: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.global-item-select-title {
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 600;
}

/* 覆盖 public.css / theme-midnight 全局 button !important */
.global-item-modal button.global-item-select-close,
html.dmj-theme-midnight .global-item-modal button.global-item-select-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.global-item-modal button.global-item-select-close:hover,
html.dmj-theme-midnight .global-item-modal button.global-item-select-close:hover {
  background: rgba(255, 80, 80, 0.18) !important;
  border-color: rgba(255, 120, 120, 0.45) !important;
  color: #ffb4b4 !important;
  opacity: 1;
  transform: scale(1.04);
}

.global-item-modal button.global-item-select-close:active,
html.dmj-theme-midnight .global-item-modal button.global-item-select-close:active {
  transform: scale(0.96);
}

.global-item-select-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 12px 20px 8px;
}

.global-item-select .itemset-box-search {
  width: 100% !important;
}

.dr-gis-form {
  display: flex;
  justify-content: left;
  flex-wrap: wrap;
  gap: 4px 0;
}

.dr-gis-form-item {
  width: 90%;
  margin-top: 5px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dr-gis-label {
  width: 72px;
  flex-shrink: 0;
  color: var(--font-one-color, #fff);
  font-size: 14px;
  text-align: right;
}

.dr-gis-input {
  flex: 1;
  height: 32px;
  padding: 4px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 14px;
  outline: none;
}

.dr-gis-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.dr-gis-input:focus {
  border-color: var(--font-five-color, #f8b700);
}

.dr-gis-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.global-item-modal button.dr-gis-tag,
html.dmj-theme-midnight .global-item-modal button.dr-gis-tag {
  height: 26px !important;
  padding: 0 11px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: rgba(0, 0, 0, 0.28) !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.global-item-modal button.dr-gis-tag:hover,
html.dmj-theme-midnight .global-item-modal button.dr-gis-tag:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #fff !important;
}

/* 品质标签默认色（未选中也带品质色提示） */
.global-item-modal button.dr-gis-tag[data-quality="粗糙"],
html.dmj-theme-midnight .global-item-modal button.dr-gis-tag[data-quality="粗糙"] {
  color: #9d9d9d !important;
  border-color: rgba(157, 157, 157, 0.35) !important;
}
.global-item-modal button.dr-gis-tag[data-quality="普通"],
html.dmj-theme-midnight .global-item-modal button.dr-gis-tag[data-quality="普通"] {
  color: #e8e8e8 !important;
  border-color: rgba(232, 232, 232, 0.28) !important;
}
.global-item-modal button.dr-gis-tag[data-quality="优秀"],
html.dmj-theme-midnight .global-item-modal button.dr-gis-tag[data-quality="优秀"] {
  color: #1eff00 !important;
  border-color: rgba(30, 255, 0, 0.35) !important;
}
.global-item-modal button.dr-gis-tag[data-quality="精良"],
html.dmj-theme-midnight .global-item-modal button.dr-gis-tag[data-quality="精良"] {
  color: #0070dd !important;
  border-color: rgba(0, 112, 221, 0.4) !important;
}
.global-item-modal button.dr-gis-tag[data-quality="史诗"],
html.dmj-theme-midnight .global-item-modal button.dr-gis-tag[data-quality="史诗"] {
  color: #a335ee !important;
  border-color: rgba(163, 53, 238, 0.45) !important;
}
.global-item-modal button.dr-gis-tag[data-quality="传说"],
html.dmj-theme-midnight .global-item-modal button.dr-gis-tag[data-quality="传说"] {
  color: #ff8000 !important;
  border-color: rgba(255, 128, 0, 0.45) !important;
}
.global-item-modal button.dr-gis-tag[data-quality="传家宝"],
html.dmj-theme-midnight .global-item-modal button.dr-gis-tag[data-quality="传家宝"] {
  color: #00ccff !important;
  border-color: rgba(0, 204, 255, 0.4) !important;
}

.global-item-modal button.dr-gis-tag.on,
html.dmj-theme-midnight .global-item-modal button.dr-gis-tag.on {
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 2px 8px rgba(0, 0, 0, 0.35);
}

.global-item-modal button.dr-gis-tag[data-quality="粗糙"].on,
html.dmj-theme-midnight .global-item-modal button.dr-gis-tag[data-quality="粗糙"].on {
  background: #9d9d9d !important;
  border-color: #9d9d9d !important;
  color: #1a1a1a !important;
}

.global-item-modal button.dr-gis-tag[data-quality="普通"].on,
html.dmj-theme-midnight .global-item-modal button.dr-gis-tag[data-quality="普通"].on {
  background: #e8e8e8 !important;
  border-color: #e8e8e8 !important;
  color: #1a1a1a !important;
}

.global-item-modal button.dr-gis-tag[data-quality="优秀"].on,
html.dmj-theme-midnight .global-item-modal button.dr-gis-tag[data-quality="优秀"].on {
  background: #1eff00 !important;
  border-color: #1eff00 !important;
  color: #0a1a00 !important;
}

.global-item-modal button.dr-gis-tag[data-quality="精良"].on,
html.dmj-theme-midnight .global-item-modal button.dr-gis-tag[data-quality="精良"].on {
  background: #0070dd !important;
  border-color: #0070dd !important;
  color: #fff !important;
}

.global-item-modal button.dr-gis-tag[data-quality="史诗"].on,
html.dmj-theme-midnight .global-item-modal button.dr-gis-tag[data-quality="史诗"].on {
  background: #a335ee !important;
  border-color: #a335ee !important;
  color: #fff !important;
}

.global-item-modal button.dr-gis-tag[data-quality="传说"].on,
html.dmj-theme-midnight .global-item-modal button.dr-gis-tag[data-quality="传说"].on {
  background: #ff8000 !important;
  border-color: #ff8000 !important;
  color: #1a0a00 !important;
}

.global-item-modal button.dr-gis-tag[data-quality="传家宝"].on,
html.dmj-theme-midnight .global-item-modal button.dr-gis-tag[data-quality="传家宝"].on {
  background: #00ccff !important;
  border-color: #00ccff !important;
  color: #002028 !important;
}

#dr-item-modal button.dr-gis-search-btn,
html.dmj-theme-midnight #dr-item-modal button.dr-gis-search-btn {
  height: 32px !important;
  padding: 0 18px !important;
  margin-left: 0;
  border: 1px solid rgba(196, 181, 253, 0.45) !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.42) 0%, rgba(124, 58, 237, 0.55) 100%) !important;
  color: #f3e8ff !important;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.25);
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

#dr-item-modal button.dr-gis-search-btn:hover,
html.dmj-theme-midnight #dr-item-modal button.dr-gis-search-btn:hover {
  filter: brightness(1.08);
  opacity: 1;
  border-color: rgba(196, 181, 253, 0.7) !important;
  box-shadow: 0 3px 14px rgba(124, 58, 237, 0.38);
}

#dr-item-modal button.dr-gis-search-btn:active,
html.dmj-theme-midnight #dr-item-modal button.dr-gis-search-btn:active {
  transform: translateY(1px);
}

.dr-gis-tabs {
  display: flex;
  gap: 4px;
  margin: 12px 0 10px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(196, 181, 253, 0.14);
}

#dr-item-modal button.dr-gis-tab,
html.dmj-theme-midnight #dr-item-modal button.dr-gis-tab {
  position: relative;
  flex: 0 0 auto;
  min-width: 88px;
  height: 34px !important;
  padding: 0 18px !important;
  border: 1px solid transparent !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: rgba(243, 232, 255, 0.62) !important;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

#dr-item-modal button.dr-gis-tab:hover,
html.dmj-theme-midnight #dr-item-modal button.dr-gis-tab:hover {
  color: #f3e8ff !important;
  background: rgba(167, 139, 250, 0.1) !important;
  opacity: 1;
}

#dr-item-modal button.dr-gis-tab.on,
html.dmj-theme-midnight #dr-item-modal button.dr-gis-tab.on {
  color: #f3e8ff !important;
  font-weight: 600;
  background: rgba(157, 78, 221, 0.28) !important;
  border-color: rgba(196, 181, 253, 0.4) !important;
  box-shadow: inset 0 0 0 1px rgba(196, 181, 253, 0.08), 0 2px 8px rgba(90, 24, 154, 0.2);
}

#dr-item-modal button.dr-gis-tab.on::after,
html.dmj-theme-midnight #dr-item-modal button.dr-gis-tab.on::after {
  display: none;
}

.global-item-select .itemset-box-table {
  overflow-y: auto;
  max-height: 50vh;
  width: 100%;
}

.global-item-select .itemset-box-table::-webkit-scrollbar {
  width: 8px;
}

.global-item-select .itemset-box-table::-webkit-scrollbar-track {
  background-color: rgba(71, 51, 50, 0.8);
  border-radius: 2em;
}

.global-item-select .itemset-box-table::-webkit-scrollbar-thumb {
  background-color: rgba(44, 31, 30, 0.8);
  border-radius: 2em;
}

.dr-gis-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: #fff;
  font-size: 13px;
}

.dr-gis-table thead th {
  padding: 10px 8px;
  text-align: left;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dr-gis-table tbody td {
  padding: 10px 8px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
}

.dr-gis-table tbody tr {
  cursor: pointer;
}

.dr-gis-table tbody tr:hover,
.dr-gis-table tbody tr.on {
  background: rgba(255, 192, 69, 0.08);
}

.dr-gis-table .col-radio { width: 40px; text-align: center; }
.dr-gis-table .col-name { width: 38%; }
.dr-gis-table .col-type { width: 14%; }
.dr-gis-table .col-slot { width: 12%; }
.dr-gis-table .col-level { width: 12%; }
.dr-gis-table .col-quality { width: 12%; }
.dr-gis-table .col-set-items { width: 36%; }

.dr-gis-empty {
  padding: 36px 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
}

.dr-gis-item-cell {
  display: flex;
  align-items: center;
}

.dr-gis-item-cell .global-wowimg {
  margin-right: 10px;
}

.dr-gis-item-cell .global-item a {
  /* 保留 pointer-events，供 tooltip 鼠标移入；点击由 JS preventDefault 不跳转 */
  cursor: default;
}

.dr-gis-item-cell .global-item a span {
  min-width: 0;
}

.global-item-select .itemset-box-table-items {
  overflow: hidden;
}

.global-item-select .itemset-box-table-items .item {
  float: left !important;
  margin-right: 8px;
  margin-bottom: 4px;
  width: 40px;
}

.global-item-select .itemset-box-table-items .global-wowimg {
  margin-right: 0;
}

.dr-gis-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

#dr-item-modal button.dr-gis-page-btn,
html.dmj-theme-midnight #dr-item-modal button.dr-gis-page-btn {
  height: 28px !important;
  padding: 0 12px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(196, 181, 253, 0.22) !important;
  background: rgba(58, 36, 96, 0.55) !important;
  color: rgba(243, 232, 255, 0.9) !important;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

#dr-item-modal button.dr-gis-page-btn:hover,
html.dmj-theme-midnight #dr-item-modal button.dr-gis-page-btn:hover {
  border-color: rgba(196, 181, 253, 0.55) !important;
  color: #e9d5ff !important;
  background: rgba(157, 78, 221, 0.28) !important;
  opacity: 1;
}

.global-item-select-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 20px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#dr-item-modal button.dr-gis-btn,
html.dmj-theme-midnight #dr-item-modal button.dr-gis-btn {
  height: 34px !important;
  padding: 0 16px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(196, 181, 253, 0.28) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: rgba(243, 232, 255, 0.9) !important;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

#dr-item-modal button.dr-gis-btn:hover,
html.dmj-theme-midnight #dr-item-modal button.dr-gis-btn:hover {
  color: #f3e8ff !important;
  border-color: rgba(196, 181, 253, 0.5) !important;
  background: rgba(167, 139, 250, 0.14) !important;
  opacity: 1;
}

#dr-item-modal button.dr-gis-btn-primary,
html.dmj-theme-midnight #dr-item-modal button.dr-gis-btn-primary {
  border: 1px solid rgba(196, 181, 253, 0.5) !important;
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.48) 0%, rgba(124, 58, 237, 0.62) 100%) !important;
  color: #f3e8ff !important;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.28);
}

#dr-item-modal button.dr-gis-btn-primary:hover,
html.dmj-theme-midnight #dr-item-modal button.dr-gis-btn-primary:hover {
  filter: brightness(1.08);
  color: #fff !important;
  opacity: 1;
}

#dr-item-modal button.dr-gis-btn-primary:disabled,
html.dmj-theme-midnight #dr-item-modal button.dr-gis-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
  box-shadow: none;
}

.dr-legend-item img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: block;
}

.dr-legend-item .global-item {
  width: 40px !important;
  height: 40px !important;
}

.dr-legend-item .global-wowimg {
  width: 40px !important;
  height: 40px !important;
  background: none;
}

.dr-legend-item .global-item img {
  width: 40px;
  height: 40px;
  margin: 0;
}
