/* Compact native panels and fixed Chronicle headers. */
.panel,
.dialog,
.talent-tree,
.enemy-card {
  border-color: #665338;
  border-radius: 0;
  background-color: #100f0c;
  background-image: linear-gradient(#090806de, #100f0be8), var(--native-stone);
  background-size:
    auto,
    72px 54px;
}
.act-medallion img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
img.class-thumbnail {
  width: 46px;
  height: 57px;
  flex: 0 0 46px;
  object-fit: contain;
  object-position: center bottom;
}
.economy-page .paper-title {
  height: 30px;
  font-size: 16px;
  padding: 0 9px;
}
.armory-storage-tabs {
  height: 30px;
  min-height: 30px;
  align-items: center;
}
.chronicle-page {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  padding-bottom: 10px;
}
.chronicle-page > .view-header {
  flex: none;
  margin-bottom: 8px;
}
.chronicle-section {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  border: 0;
  padding: 0;
  background: none;
}
.chronicle-subheader {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #66533866;
}
.chronicle-subheader > .diablo-select {
  width: 238px;
  max-width: 238px;
  flex: none;
}
.chronicle-subheader h2 {
  margin: 0;
  font-size: 20px;
}
.chronicle-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #77603d #14130f;
  padding: 1px 6px 12px 0;
}
.chronicle-scroll .record-row {
  cursor: help;
}
.record-row:focus-visible {
  outline: 1px solid #c4a468;
  outline-offset: -1px;
}
.record-row,
.rank-summary,
.lobby-list article,
.room-members article,
.upgrade-card {
  border-color: #66533888;
  border-radius: 0;
  background-color: #0d0c09;
  background-image: linear-gradient(#090806de, #100f0be8), var(--native-stone);
  background-size:
    auto,
    72px 54px;
}
.upgrade-card:hover {
  border-color: var(--quality, #c9ac72);
  background-image: linear-gradient(#292115d9, #100e08e8), var(--native-stone);
}
.native-storage .storage-label {
  top: 7px;
  left: 13px;
  right: 13px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: 13px;
  overflow: hidden;
}
.native-storage .storage-label.storage-tabs {
  margin: 0;
  padding: 0;
  border: 0;
}
.storage-label.storage-tabs button {
  height: 24px;
  min-height: 24px;
  padding: 2px 5px;
  flex: 1;
  min-width: 0;
  font-size: 10px;
  white-space: nowrap;
  background: none;
  box-shadow: inset -1px 0 #5d4a3066;
  border-bottom: 1px solid transparent;
  color: #978567;
}
.storage-label.storage-tabs button.active {
  color: #ead7a5;
  background: #a2865122;
  border-bottom-color: #c2a56b;
}
.storage-label.storage-tabs button:hover {
  color: #fff0c3;
  background: #b69a6333;
}
.native-storage .stash-help,
.vendor-native .stash-help {
  display: block;
  position: absolute;
  top: 36px;
  right: 15px;
  bottom: auto;
  z-index: 4;
}
.native-storage-grid {
  top: 62px;
}
.native-storage .stock-pager {
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  height: 34px;
}
.stock-pager button {
  width: 36px;
  height: 30px;
  padding: 0;
  font-size: 22px;
}
.inventory-gold,
.stash-gold {
  padding: 0 5px 0 0;
  overflow: hidden;
  gap: 3px;
}
.inventory-gold img,
.stash-gold img {
  align-self: stretch;
  flex: none;
  width: 28px;
  height: 100%;
  margin: 0;
  object-fit: fill;
}
.grid-item,
.paper-slot {
  position: absolute;
  padding: 0;
  overflow: visible;
}
.grid-item[draggable="true"],
.paper-slot[draggable="true"] {
  touch-action: none;
  user-select: none;
}
.item-drag-ghost {
  position: fixed !important;
  pointer-events: none !important;
  z-index: 10000;
  opacity: 0.88;
  background: #38342377 !important;
  border: 1px solid #dac88a !important;
  box-shadow: 0 5px 12px #000a !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.item-drag-ghost .item-sockets {
  display: none !important;
}
.grid-item > .item-art,
.paper-slot > .item-art,
.belt-cell > .item-art {
  width: var(--art-width);
  height: var(--art-height);
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: auto;
  pointer-events: none;
  flex: none;
}
.paper-slot > .item-art {
  max-width: calc(100% - 2px);
  max-height: calc(100% - 2px);
}
.belt-cell {
  padding: 0;
}
.item-sockets {
  position: absolute;
  inset: 3px;
  display: none;
  grid-template-columns: repeat(2, 18px);
  align-content: center;
  justify-content: center;
  gap: 1px;
  pointer-events: none;
  z-index: 2;
}
.item-sockets > span {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.item-sockets img {
  width: 18px !important;
  height: 18px !important;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px #000);
}
.grid-item:hover .item-sockets,
.grid-item.selected .item-sockets,
.grid-item:focus-visible .item-sockets,
.paper-slot:hover .item-sockets,
.paper-slot:focus-visible .item-sockets {
  display: grid;
}
.item-value {
  color: #c6ae75;
  border-top: 1px solid #60523877;
  padding-top: 7px;
  font-size: 11px;
}
.cube-native {
  background-image: var(--native-cube);
  background-size: 320px 432px;
}
.cube-grid {
  position: absolute;
  left: 117px;
  top: 138px;
}
.cube-transmute {
  position: absolute;
  left: 145px;
  top: 260px;
  width: 32px;
  height: 32px;
  border: 1px solid #a58955;
  background: #10100bcc;
  color: #d1b971;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  box-shadow: inset 0 0 5px #b4996655;
}
.cube-transmute:hover {
  border-color: #ead8a0;
  color: #fff0c0;
  box-shadow: 0 0 9px #ad8c4277;
}
.cube-transmute {
  background-image: var(--hd-transmute-0);
  background-size: 100% 100%;
  font-size: 0;
  border: 0;
  box-shadow: none;
}
.cube-transmute:hover {
  background-image: var(--hd-transmute-1);
}
.cube-transmute:active {
  background-image: var(--hd-transmute-2);
}
.item-tip.crafted strong {
  color: #e5a065;
}
.item-tip.rare strong {
  color: #eee18a;
}
.cube-transmute:disabled {
  filter: grayscale(1);
  opacity: 0.5;
}
.cube-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 307px;
  max-height: 55px;
  overflow: auto;
  text-align: center;
  color: #c2aa78;
  font-size: 11px;
}
.cube-recipes {
  position: absolute;
  left: 105px;
  top: 372px;
  width: 110px;
  height: 29px;
}
.recipe-dialog {
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  width: min(780px, 95vw);
}
.recipe-list {
  overflow: auto;
  min-height: 0;
  font-size: 12px;
}
.recipe-list p {
  padding: 9px 3px;
  margin: 0;
  border-bottom: 1px solid #66533866;
}
.talent-node {
  transition:
    background 0.12s,
    border-color 0.12s;
  border: 1px solid #5a4a3266;
  background: #08080677;
  padding: 8px;
  min-height: 70px;
}
.talent-node:hover,
.talent-node:focus-visible {
  border-color: #c1a369;
  background: #9d82451c;
  box-shadow: inset 0 0 12px #bd9a3822;
}
.talent-node:hover > img {
  filter: brightness(1.2) drop-shadow(0 0 4px #b3914966);
}
.talent-grid {
  align-items: start;
}
.enemy-card button,
.monster-card button,
.bestiary-card button,
.talent-plus {
  background-image: var(--hd-button-small-0);
  background-size: 100% 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #c9b788;
}
:is(.enemy-card, .monster-card, .bestiary-card) button:hover,
.talent-plus:hover {
  background-image: var(--hd-button-small-1);
  color: #f5e3b1;
}
:is(.enemy-card, .monster-card, .bestiary-card) button:active,
.talent-plus:active {
  background-image: var(--hd-button-small-3);
}
:is(.enemy-card, .monster-card, .bestiary-card) button:disabled,
.talent-plus:disabled {
  background-image: var(--hd-button-small-2);
}
.run-loading {
  position: fixed;
  inset: 0;
  background: #030302;
  z-index: 1000;
  animation: splash-logo-in 0.22s ease both;
}
.run-loading .splash-loader {
  position: absolute;
  left: 50%;
  bottom: 7vh;
  transform: translateX(-50%);
  width: min(420px, 80vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: #ae9668;
  animation: none;
  opacity: 1;
}
.load-track {
  height: 5px;
  width: 100%;
  background: #242017;
  border: 1px solid #635231;
  overflow: hidden;
}
.transition-progress {
  display: block;
  width: 35%;
  height: 100%;
  background: #c3a064;
  animation: transition-progress 0.8s ease-in-out infinite alternate;
}
@keyframes transition-progress {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(310%);
  }
}
@media (max-width: 700px) {
  .chronicle-subheader > .diablo-select {
    width: 200px;
    max-width: 200px;
  }
  .chronicle-subheader h2 {
    font-size: 17px;
  }
  .chronicle-page > .view-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  .talent-node {
    padding: 5px;
  }
  .armory-workspace {
    gap: 12px;
  }
}
@media (max-width: 420px) {
  .chronicle-subheader > .diablo-select {
    width: 166px;
    max-width: 166px;
  }
  .chronicle-subheader {
    gap: 5px;
  }
  .storage-label.storage-tabs button {
    font-size: 9px;
    padding: 2px;
  }
}
