/* ═══════════════════════════════════════════════════════════
   ATLAS — compact.css (production)
   Applied after hud-theme.css to reduce paddings and
   consolidate panels.
   Added: 2026-04-10
   ═══════════════════════════════════════════════════════════ */

/* 1. Panel header slimmer */
body.theme-hud .panel__head {
  min-height: 36px;
  padding: 6px 12px;
}
body.theme-hud .panel__title {
  font-size: 11px;
  letter-spacing: .16em;
}

/* 2. Panel body tighter */
body.theme-hud .panel__body {
  padding: 10px;
}

/* 3. Panel group — smaller paddings, tighter margins */
body.theme-hud .panel__group {
  padding: 10px;
  border-radius: 6px;
  border-left-width: 2px;
  margin-bottom: 8px;
}
body.theme-hud .panel__body > .panel__group:last-child,
body.theme-hud .panel__body > :last-child.panel__group {
  margin-bottom: 0;
}
body.theme-hud .panel__label {
  font-size: 10px;
  letter-spacing: .12em;
  margin-bottom: 6px;
}

/* 4. Action grid — 4 buttons in 2×2 compact layout */
body.theme-hud .management-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 10px;
  background: rgba(0,242,255,.03);
  border: 1px solid rgba(0,242,255,.14);
  border-left: 2px solid rgba(0,242,255,.92);
  border-radius: 6px;
  margin-bottom: 8px;
}
body.theme-hud .management-actions .btn,
body.theme-hud .management-actions a.btn {
  flex-direction: column !important;
  gap: 4px !important;
  padding: 10px 4px !important;
  min-height: 64px;
  font-size: 10px !important;
  letter-spacing: 1px;
  border-radius: 4px;
  text-align: center;
  width: auto !important;
}
body.theme-hud .management-actions .btn i,
body.theme-hud .management-actions a.btn i {
  font-size: 18px;
  margin: 0;
}
body.theme-hud .management-actions .btn .btn-icon {
  margin: 0;
}

/* 5. Filter time chips — 3 columns instead of 2 */
body.theme-hud #filters-panel .chip-group {
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  gap: 5px !important;
}
body.theme-hud #filters-panel .chip {
  padding: 7px 4px;
  font-size: 10px;
  letter-spacing: .3px;
  border-radius: 4px;
}

/* 6. Period range — 2×2 grid */
body.theme-hud .range-filter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
body.theme-hud .range-filter > label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
body.theme-hud .range-filter span {
  font-size: 8px;
}
body.theme-hud .range-filter .input {
  padding: 6px 8px;
  font-size: 11px;
  border-radius: 4px;
}
body.theme-hud .range-filter .chip {
  padding: 6px 4px;
  font-size: 10px;
  border-radius: 4px;
}

/* 7. Toggles merged group */
body.theme-hud .toggles-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
body.theme-hud .toggles-group .toggle {
  padding: 6px 10px;
  min-height: 32px;
  font-size: 12px;
  border-radius: 4px;
  margin: 0;
}

/* 8. Select / input sizes */
body.theme-hud .panel .input,
body.theme-hud .panel .select {
  padding: 6px 10px;
  font-size: 11px;
  border-radius: 4px;
}

/* 9. Buttons more compact (default) */
body.theme-hud .panel .btn {
  padding: 8px 12px;
  font-size: 11px;
  border-radius: 4px;
}

/* 10. Export details */
body.theme-hud details.panel__group > summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  padding: 2px 0;
}
body.theme-hud details.panel__group > summary::-webkit-details-marker {
  display: none;
}
body.theme-hud details.panel__group > summary::after {
  content: "▾";
  font-size: 10px;
  color: rgba(0,242,255,.72);
  transition: transform .2s;
}
body.theme-hud details.panel__group[open] > summary::after {
  transform: rotate(180deg);
}
body.theme-hud details.panel__group[open] > summary {
  margin-bottom: 8px;
}
body.theme-hud details.panel__group .export-dates {
  gap: 5px;
}

/* 11. Analytics compact */
body.theme-hud .panel .analytics {
  padding: 10px;
  gap: 6px;
}
body.theme-hud .analytics__row {
  gap: 6px;
}
body.theme-hud .analytics__metric {
  padding: 8px 10px;
  border-radius: 6px;
  gap: 4px;
}
body.theme-hud .analytics__metric-label {
  font-size: 9px;
  margin-bottom: 0;
}
body.theme-hud .analytics__metric-value {
  font-size: 22px;
  line-height: 1;
}
body.theme-hud .analytics__metric-sub {
  font-size: 9px;
}

/* 12. Zone summary compact (already existing #zones-panel) */
body.theme-hud #zones-panel .zl-summary-count {
  font-size: 10px;
  padding: 1px 6px;
}
body.theme-hud #zones-panel-body .zl-row {
  padding: 5px 9px;
  font-size: 11px;
}
body.theme-hud #zones-panel-body .zl-dot {
  width: 9px;
  height: 9px;
  flex-basis: 9px;
}

/* 13. Personal layers #pl-panel compacter */
body.theme-hud #pl-panel > summary.panel__label {
  padding: 2px 0;
  min-height: auto;
}
body.theme-hud #pl-panel #pl-panel-body {
  margin-top: 8px;
}

/* 14. Hide redundant chat header on narrow? leave as is */

/* ── Disable the torn-glitch on boot title
   (leaves clean neon glow, no ::before/::after clones) ── */
#hud-loader .boot__title.glitch {
  color: rgba(0, 242, 255, 0.95) !important;
  text-shadow: 0 0 14px rgba(0, 242, 255, 0.6), 0 0 30px rgba(0, 242, 255, 0.3) !important;
}
#hud-loader .boot__title::before,
#hud-loader .boot__title::after {
  display: none !important;
  animation: none !important;
}
