
.dash-inventory-wrap,
.dash-window-wrap {
  display: grid;
  gap: 8px;
  min-width: fit-content;
}

.dash-inventory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #94afda;
  font-weight: 700;
}

.dash-slot-grid {
  display: grid;
  gap: 3px;
}

.dash-slot-grid-armor {
  grid-template-columns: repeat(4, 34px);
}

.dash-slot-grid-main {
  grid-template-columns: repeat(9, 34px);
}

.dash-slot-grid-hotbar {
  grid-template-columns: repeat(9, 34px);
  margin-top: 4px;
}

.dash-window-grid {
  grid-template-columns: repeat(var(--cols, 9), 34px);
}

.dash-slot {
  position: relative;
  border: 1px solid rgba(117, 152, 212, 0.58);
  border-radius: 2px;
  background: #0d1524;
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
}

.dash-slot.empty {
  background: #0d1524;
}

.dash-slot-icon-wrap {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}

.dash-slot-icon {
  width: 26px;
  height: 26px;
  image-rendering: pixelated;
}

.dash-slot-fallback {
  font-size: 10px;
  font-weight: 700;
  color: #bed2f3;
}

.dash-slot-count {
  position: absolute;
  right: 1px;
  bottom: 0;
  font-size: 11px;
  font-weight: 700;
  color: #eff5ff;
  text-shadow: 0 0 3px #000;
}

.dash-window-title {
  color: #eef5ff;
  font-weight: 700;
  margin-bottom: 6px;
}

.dash-inventory-combined-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  overflow-y: auto;
  max-height: 100%;
}

.dash-window-section {
  padding-bottom: 4px;
}

.dash-inventory-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(113, 154, 220, 0.35), transparent);
  margin: 4px 0;
}

.dash-inventory-section {
  padding-top: 2px;
}

.dash-inventory-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px 2px;
  gap: 8px;
}

.dash-offhand-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dash-offhand-label {
  font-size: 0.72rem;
  color: #8ea8d0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-slot-grid-offhand {
  display: inline-grid;
  grid-template-columns: 1fr;
}

.dash-close-window-btn {
  background: rgba(220, 50, 50, 0.18);
  border: 1px solid rgba(220, 80, 80, 0.4);
  color: #ff8888;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.dash-close-window-btn:hover {
  background: rgba(220, 50, 50, 0.35);
  border-color: rgba(220, 80, 80, 0.7);
  color: #ffaaaa;
}

.dash-mini-cmd-inline {
  margin-top: 8px;
}

.dash-mini-cmd-wrap {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(110, 152, 220, 0.26);
  border-radius: 10px;
  background: #0d1524;
  padding: 8px;
}

.dash-mini-cmd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dash-mini-cmd-head-title {
  color: #cbe1ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dash-mini-cmd-head .btn {
  min-height: 30px;
  padding: 0 12px;
}

.dash-mini-cmd-fields {
  display: grid;
  gap: 8px;
}

.dash-mini-cmd-label {
  display: grid;
  gap: 4px;
  color: #98b5de;
  font-size: 12px;
  font-weight: 700;
}

.dash-mini-cmd-select {
  width: 100%;
}

.dash-mini-cmd-grid2 {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dash-mini-cmd-grid3 {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dash-mini-cmd-check {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #c4d9f9;
  font-size: 12px;
  font-weight: 600;
  min-height: 36px;
}

.dash-item-enchants {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(113, 154, 220, 0.15);
}

.dash-item-ench {
  color: #7df8ff;
  font-size: 0.78rem;
  text-transform: capitalize;
}

.dash-item-lore-wrap {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(113, 154, 220, 0.15);
}

.dash-item-lore {
  color: #b48eff;
  font-size: 0.75rem;
  font-style: italic;
  white-space: pre-wrap;
  word-break: break-word;
}

.dashboard-slot-menu {
  position: fixed;
  min-width: 292px;
  border: 1px solid rgba(113, 154, 220, 0.45);
  border-radius: 12px;
  background: rgba(6, 14, 28, 0.98);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  z-index: 250;
}

.dashboard-slot-menu button {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(111, 155, 224, 0.2);
  background: transparent;
  color: #d9e7ff;
  text-align: left;
  padding: 10px 14px;
  font-weight: 700;
  display: grid;
  gap: 2px;
  cursor: pointer;
}

.dashboard-slot-menu .menu-item-title {
  font-size: 15px;
  line-height: 1.25;
}

.dashboard-slot-menu .menu-item-sub {
  font-size: 12px;
  font-weight: 500;
  color: #8eaad2;
}

.dashboard-slot-menu-divider {
  height: 1px;
  background: rgba(122, 162, 229, 0.22);
}

.dashboard-slot-menu button:last-child {
  border-bottom: 0;
}

.dashboard-slot-menu button:hover {
  background: rgba(49, 85, 140, 0.42);
}

.dashboard-item-tooltip {
  position: fixed;
  z-index: 320;
  max-width: min(440px, 72vw);
  border: 1px solid rgba(122, 164, 236, 0.5);
  border-radius: 10px;
  background: rgba(6, 13, 25, 0.98);
  box-shadow: var(--shadow-xl);
  padding: 9px 10px;
  color: #dbe9ff;
  pointer-events: none;
}

.dash-item-name {
  color: #fff0a8;
  font-weight: 700;
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

.dash-item-id {
  margin-top: 2px;
  font-family: var(--font-mono);
  color: #8eadcf;
  font-size: 11px;
}

.dash-item-meta {
  margin-top: 3px;
  color: #bad0f1;
  font-size: 12px;
}

.dash-item-nbt {
  margin: 6px 0 0;
  max-height: 180px;
  overflow: auto;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid rgba(113, 154, 220, 0.34);
  background: rgba(7, 18, 36, 0.94);
  color: #d6e6ff;
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: pre-wrap;
  word-break: break-word;
}

.dashboard-map-pane {
  padding: 12px;
  height: 100%;
  position: relative;
}
.map-screenshot-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #16213a;
  border: 1px solid rgba(117,152,212,0.38);
  border-radius: 6px;
  color: #ccc;
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  z-index: 2;
  transition: background 0.15s;
}
.map-screenshot-btn:hover { background: rgba(91,156,246,0.3); }
.map-screenshot-btn:disabled { opacity: 0.5; cursor: wait; }

.dashboard-map-canvas {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  border: 1px solid rgba(117, 152, 212, 0.38);
}
