/* Test v521: compact Auto Helper spacing and Hunt Analyzer typography. */

/* Keep statistical data readable and aligned without changing its content. */
.hunt-analyzer-panel,
.hunt-analyzer-body,
.analyzer-stats,
.analyzer-balance,
.analyzer-rates,
.analyzer-compact,
.analyzer-level-progress,
.analyzer-drops {
  font-family: Barlow, "Segoe UI", Arial, sans-serif !important;
}

.analyzer-stats strong,
.analyzer-balance strong,
.analyzer-rates span,
.analyzer-compact b,
.analyzer-subrate,
.analyzer-level-progress b,
.analyzer-level-progress small,
.analyzer-drop b,
.analyzer-drop strong {
  font-family: Barlow, "Segoe UI", Arial, sans-serif !important;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: 0 !important;
}

.analyzer-stats small,
.analyzer-balance span,
.analyzer-section-title,
.analyzer-level-progress > span {
  font-family: Barlow, "Segoe UI", Arial, sans-serif !important;
  font-weight: 800;
}

/* Shrink only the collapsed helper; the expanded configuration keeps its size. */
.auto-helper-panel.client-open.collapsed {
  width: max-content !important;
  min-width: 0 !important;
  max-width: calc(100vw - 16px) !important;
}

.auto-helper-panel.collapsed .auto-helper-head {
  display: flex !important;
  width: max-content;
  max-width: 100%;
  grid-template-columns: none !important;
  gap: 6px !important;
  padding: 0 6px 0 10px !important;
}

.auto-helper-panel.collapsed .auto-helper-brand {
  flex: 0 0 108px !important;
  width: 108px;
  min-width: 108px;
  justify-content: flex-start !important;
}

.auto-helper-panel.collapsed .auto-helper-brand b {
  overflow: visible;
  font-size: 14px !important;
  text-overflow: clip;
}

.auto-helper-panel.collapsed .auto-helper-compact {
  display: flex !important;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px !important;
  margin: 0 !important;
  border-left: 0 !important;
  overflow: visible;
}

.auto-helper-panel.collapsed .auto-helper-compact > span {
  box-sizing: border-box;
  flex: 0 0 30px;
  width: 30px !important;
  min-width: 30px !important;
  height: 30px;
  padding: 0 !important;
  border: 1px solid #344b54 !important;
  border-radius: 5px;
  background: linear-gradient(145deg, #101d24, #081217) !important;
  opacity: 1;
}

.auto-helper-panel.collapsed .auto-helper-compact > span:not(.resource-empty) {
  border-color: #52654c !important;
  box-shadow: inset 0 0 0 1px #d0ac3320, 0 0 6px #4cae7c12;
}

.auto-helper-panel.collapsed .auto-helper-compact > span.resource-empty {
  opacity: .45;
}

.auto-helper-panel.collapsed .auto-helper-compact img,
.auto-helper-panel.collapsed .helper-compact-ball-host {
  width: 25px !important;
  height: 25px !important;
}

.auto-helper-panel.collapsed .helper-compact-ball-host > canvas,
.auto-helper-panel.collapsed .helper-compact-ball-host > .ball-sheet-frame {
  width: 25px !important;
  height: 25px !important;
}

.auto-helper-panel.collapsed #minimize-auto-helper {
  flex: 0 0 29px;
  width: 29px !important;
  height: 29px !important;
  margin-left: 2px !important;
}

@media (max-width: 360px) {
  .auto-helper-panel.collapsed .auto-helper-head {
    gap: 3px !important;
    padding-left: 7px !important;
  }

  .auto-helper-panel.collapsed .auto-helper-brand {
    flex-basis: 99px !important;
    width: 99px;
    min-width: 99px;
  }

  .auto-helper-panel.collapsed .auto-helper-brand b {
    font-size: 12px !important;
  }

  .auto-helper-panel.collapsed .auto-helper-compact {
    gap: 2px !important;
  }

  .auto-helper-panel.collapsed .auto-helper-compact > span {
    flex-basis: 27px;
    width: 27px !important;
    min-width: 27px !important;
    height: 27px;
  }

  .auto-helper-panel.collapsed .auto-helper-compact img,
  .auto-helper-panel.collapsed .helper-compact-ball-host,
  .auto-helper-panel.collapsed .helper-compact-ball-host > canvas,
  .auto-helper-panel.collapsed .helper-compact-ball-host > .ball-sheet-frame {
    width: 23px !important;
    height: 23px !important;
  }
}
