#panel-vendor.panel[hidden] {
  display: none !important;
}

#panel-vendor.panel.active {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 8rem);
  max-height: calc(100dvh - 8rem);
  overflow: hidden;
  padding: 0;
  margin: 0;
}

body.vd-tab-active #panel-vendor.panel.active {
  min-height: calc(100dvh - 5.5rem);
  max-height: calc(100dvh - 5.5rem);
}

body.vd-tab-active .site-footer,
body.vd-tab-active .site-header .subtitle {
  display: none;
}

.vd-shell {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0.75rem 1rem 1.5rem;
  background: var(--bg);
}

.vd-shell h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.vd-lede {
  margin: 0 0 1rem;
  color: #e8c547;
  max-width: 42rem;
  line-height: 1.45;
}

.vd-stage {
  position: relative;
  margin: 0 0 1.1rem;
  padding: 2.1rem 0.2rem 0;
  max-width: 56rem;
}

.vd-gauges {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.35rem;
}

.vd-gauge {
  position: relative;
  border: 2px solid #c9a227;
  border-radius: 6px;
  min-height: 5.6rem;
  background: #0c0d10;
  overflow: hidden;
}

.vd-gauge-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 20%;
  background: linear-gradient(180deg, rgba(232, 197, 71, 0.55), rgba(232, 197, 71, 0.18));
  transition: height 0.45s ease;
}

.vd-gauge-num {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 0.55rem;
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff6c8;
  text-align: center;
  line-height: 1;
}

.vd-gauge-label {
  position: relative;
  z-index: 1;
  display: block;
  padding: 0.2rem 0.2rem 0.35rem;
  font-size: 0.62rem;
  line-height: 1.2;
  color: #e8c547;
  text-align: center;
}

.vd-drop {
  position: absolute;
  left: 50%;
  top: -0.4rem;
  width: 0.55rem;
  height: 0.55rem;
  margin-left: -0.28rem;
  border-radius: 50%;
  background: #e8c547;
  opacity: 0;
  pointer-events: none;
}

.vd-gauge.is-drop .vd-drop {
  animation: vd-drop 0.55s ease forwards;
}

@keyframes vd-drop {
  0% {
    opacity: 1;
    transform: translateY(-18px);
  }
  100% {
    opacity: 0.2;
    transform: translateY(42px);
  }
}

.vd-npc {
  position: absolute;
  top: 0.15rem;
  left: 0;
  width: 1.05rem;
  height: 1.55rem;
  z-index: 2;
  pointer-events: none;
  transition: left 0.55s linear;
}

.vd-npc-inner {
  width: 100%;
  height: 100%;
  transform-origin: 50% 100%;
}

.vd-npc svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.vd-npc.is-walk .vd-npc-inner {
  animation: vd-bob 0.22s ease-in-out infinite;
}

.vd-leg-a,
.vd-leg-b,
.vd-arm {
  transform-box: fill-box;
  transform-origin: 16px 22.5px;
}

.vd-arm {
  transform-origin: 16px 16px;
}

.vd-npc.is-walk .vd-leg-a {
  animation: vd-stride 0.22s linear infinite;
}

.vd-npc.is-walk .vd-leg-b {
  animation: vd-stride 0.22s linear infinite reverse;
}

.vd-npc.is-walk .vd-arm {
  animation: vd-swing 0.22s linear infinite;
}

.vd-npc.is-drop .vd-arm {
  animation: vd-toss 0.4s ease;
}

.vd-npc.is-drop .vd-held {
  animation: vd-release 0.4s ease forwards;
}

@keyframes vd-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes vd-stride {
  0% {
    transform: rotate(32deg);
  }
  50% {
    transform: rotate(-32deg);
  }
  100% {
    transform: rotate(32deg);
  }
}

@keyframes vd-swing {
  0% {
    transform: rotate(-18deg);
  }
  50% {
    transform: rotate(22deg);
  }
  100% {
    transform: rotate(-18deg);
  }
}

@keyframes vd-toss {
  0% {
    transform: rotate(0);
  }
  35% {
    transform: rotate(55deg);
  }
  100% {
    transform: rotate(0);
  }
}

@keyframes vd-release {
  0% {
    opacity: 1;
    transform: translate(0, 0);
  }
  100% {
    opacity: 0;
    transform: translate(6px, 10px);
  }
}

@media (max-width: 720px) {
  .vd-gauges {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.vd-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 40rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.vd-list li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  line-height: 1.4;
}

.vd-list li:last-child {
  border-bottom: 0;
}

.vd-unit {
  color: #e8c547;
  font-weight: 600;
}

.vd-note {
  color: var(--text);
}

.vd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0 0;
}

.vd-btn {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  padding: 0.35rem 0.7rem;
  text-decoration: none;
}
