/* ═══════════════════════════════════════════════════════════════════
   CS2Trainer Monitor — Grafana-style dark theme
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --bg-body:      #0f0f1a;
  --bg-panel:     #161625;
  --bg-panel-2:   #1c1c30;
  --bg-hover:     #21213a;
  --border:       #2a2a48;
  --accent:       #f97316;
  --accent-2:     #a855f7;
  --accent-3:     #22d3ee;
  --accent-green: #22c55e;
  --accent-red:   #ef4444;
  --accent-yellow:#eab308;
  --text-primary: #e2e8f0;
  --text-muted:   #94a3b8;
  --text-dim:     #475569;
  --font-mono:    'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --font-sans:    'Inter', 'Segoe UI', system-ui, sans-serif;
  --radius:       8px;
  --radius-sm:    4px;
  --shadow:       0 4px 24px rgba(0,0,0,0.5);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg-body);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ─────────────────────────────────────────────────────── */

.monitor-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ── Sidebar ─────────────────────────────────────────────────────── */

.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 10;
}

.sidebar-brand {
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-brand .brand-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.sidebar-brand .brand-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.sidebar-brand .brand-sub {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 1px;
}

.sidebar-section {
  padding: 12px 0 4px;
}

.sidebar-section-label {
  padding: 0 18px 6px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}

.sidebar-nav a:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  text-decoration: none;
}

.sidebar-nav a.active {
  background: var(--bg-hover);
  color: var(--accent);
  border-left-color: var(--accent);
}

.sidebar-nav a .nav-icon {
  width: 16px; height: 16px;
  opacity: 0.7;
  flex-shrink: 0;
}

.sidebar-nav a.active .nav-icon { opacity: 1; }

.sidebar-footer {
  margin-top: auto;
  padding: 16px 18px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
}

/* ── Main content ──────────────────────────────────────────────── */

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  height: 52px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  flex-shrink: 0;
}

.topbar-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.topbar-spacer { flex: 1; }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.connection-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: background 0.3s;
}

.status-dot.connected { background: var(--accent-green); box-shadow: 0 0 6px var(--accent-green); }
.status-dot.connecting { background: var(--accent-yellow); animation: pulse 1s infinite; }
.status-dot.disconnected { background: var(--accent-red); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.page-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

/* ── Dashboard grid ──────────────────────────────────────────────── */

.dash-grid {
  display: grid;
  gap: 16px;
}

.dash-grid-4 { grid-template-columns: repeat(4, 1fr); }
.dash-grid-3 { grid-template-columns: repeat(3, 1fr); }
.dash-grid-2 { grid-template-columns: repeat(2, 1fr); }
.dash-grid-1 { grid-template-columns: 1fr; }

@media (max-width: 1200px) {
  .dash-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .dash-grid-4, .dash-grid-3, .dash-grid-2 { grid-template-columns: 1fr; }
}

/* ── Panel (card) ────────────────────────────────────────────────── */

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.panel-header {
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.panel-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.panel-badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 12px;
  background: var(--bg-panel-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.panel-body {
  padding: 16px;
}

/* ── Stat card ───────────────────────────────────────────────────── */

.stat-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}

.stat-card:hover { border-color: var(--accent); }

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color, var(--accent)), transparent);
}

.stat-card.green  { --accent-color: var(--accent-green); }
.stat-card.red    { --accent-color: var(--accent-red); }
.stat-card.blue   { --accent-color: var(--accent-3); }
.stat-card.purple { --accent-color: var(--accent-2); }
.stat-card.orange { --accent-color: var(--accent); }
.stat-card.yellow { --accent-color: var(--accent-yellow); }

.stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1;
}

.stat-sub {
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.stat-trend {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.trend-up   { color: var(--accent-green); }
.trend-down { color: var(--accent-red); }

/* ── Chart container ─────────────────────────────────────────────── */

.chart-wrap {
  position: relative;
  height: 200px;
}

.chart-wrap.sm { height: 100px; }
.chart-wrap.lg { height: 300px; }

/* ── Progress bar ────────────────────────────────────────────────── */

.progress-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.progress-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.progress-bar-track {
  height: 6px;
  background: var(--bg-panel-2);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
  background: var(--bar-color, var(--accent));
}

.progress-bar-fill.green  { --bar-color: var(--accent-green); }
.progress-bar-fill.red    { --bar-color: var(--accent-red); }
.progress-bar-fill.blue   { --bar-color: var(--accent-3); }
.progress-bar-fill.yellow { --bar-color: var(--accent-yellow); }

/* ── Worker cards ────────────────────────────────────────────────── */

.worker-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.worker-card {
  flex: 1;
  min-width: 90px;
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.worker-card .worker-id {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.worker-card .worker-status {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
}

.worker-status.idle       { background: rgba(34,197,94,0.15); color: var(--accent-green); }
.worker-status.processing { background: rgba(249,115,22,0.15); color: var(--accent); }
.worker-status.error      { background: rgba(239,68,68,0.15);  color: var(--accent-red); }

/* ── Table ───────────────────────────────────────────────────────── */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  padding: 8px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 9px 12px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-hover); }
.data-table td.accent { color: var(--text-primary); }
.data-table td.red    { color: var(--accent-red); }
.data-table td.green  { color: var(--accent-green); }
.data-table td.muted  { color: var(--text-dim); font-size: 11px; }

/* ── Badge ───────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.badge.green  { background: rgba(34,197,94,0.15);  color: var(--accent-green); }
.badge.red    { background: rgba(239,68,68,0.15);   color: var(--accent-red); }
.badge.orange { background: rgba(249,115,22,0.15);  color: var(--accent); }
.badge.blue   { background: rgba(34,211,238,0.15);  color: var(--accent-3); }
.badge.purple { background: rgba(168,85,247,0.15);  color: var(--accent-2); }
.badge.gray   { background: var(--bg-panel-2);      color: var(--text-muted); }

/* ── Login page ──────────────────────────────────────────────────── */

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-body);
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}

.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.login-logo .logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}

.login-logo .logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.login-logo .logo-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  font-family: var(--font-sans);
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(249,115,22,0.1);
}

.form-control::placeholder { color: var(--text-dim); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  width: 100%;
}

.btn-primary:hover { background: #ea6a0a; }

.form-error {
  color: var(--accent-red);
  font-size: 12px;
  margin-top: 4px;
}

/* ── Misc ────────────────────────────────────────────────────────── */

.section-gap { margin-top: 20px; }

.text-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.text-right { text-align: right; }
.text-center { text-align: center; }

.no-data {
  padding: 32px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

.uptime-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-green);
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
  padding: 3px 10px;
  border-radius: 12px;
}

/* ── Scrollbar styling ───────────────────────────────────────────── */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-panel); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ══════════════════════════════════════════════════════════════════════
   Users page
   ══════════════════════════════════════════════════════════════════════ */

/* ── Package badges ───────────────────────────────────────────────── */

.badge.pkg-basic    { background: rgba(148,163,184,0.12); color: #94a3b8; border: 1px solid rgba(148,163,184,0.25); }
.badge.pkg-advanced { background: rgba(34,211,238,0.12);  color: var(--accent-3); border: 1px solid rgba(34,211,238,0.25); }
.badge.pkg-pro      { background: rgba(249,115,22,0.12);  color: var(--accent); border: 1px solid rgba(249,115,22,0.25); }
.badge.pkg-team     { background: rgba(168,85,247,0.12);  color: var(--accent-2); border: 1px solid rgba(168,85,247,0.25); }

/* ── Top bar ──────────────────────────────────────────────────────── */

.users-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.users-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Search ───────────────────────────────────────────────────────── */

.search-bar {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.search-field-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-dim);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 8px 32px 8px 34px;
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  font-family: var(--font-sans);
  transition: border-color 0.15s;
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(249,115,22,0.1);
}

.search-input::placeholder { color: var(--text-dim); }

.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.search-clear:hover { color: var(--text-primary); }

/* ── Split layout ─────────────────────────────────────────────────── */

.users-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
  align-items: start;
}

@media (max-width: 1100px) {
  .users-layout { grid-template-columns: 1fr; }
}

.users-list-col { min-width: 0; }

.users-detail-col {
  position: sticky;
  top: 0;
}

/* ── Users table ──────────────────────────────────────────────────── */

.users-table .user-row {
  cursor: pointer;
  transition: background 0.1s;
  outline: none;
}

.users-table .user-row:hover td { background: var(--bg-hover); }

.users-table .user-row.selected td {
  background: rgba(249,115,22,0.08);
}

.users-table .user-row:focus-visible td {
  background: rgba(249,115,22,0.06);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0;
}

.user-info { min-width: 0; }

.user-email {
  font-size: 12px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.user-nick {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 1px;
}

/* ── Pagination ───────────────────────────────────────────────────── */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}

.page-btn {
  font-size: 12px;
  color: var(--accent);
  padding: 4px 10px;
  border: 1px solid rgba(249,115,22,0.3);
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.page-btn:hover {
  background: rgba(249,115,22,0.1);
  text-decoration: none;
}

.page-info {
  font-size: 12px;
  color: var(--text-dim);
}

/* ── Detail panel ─────────────────────────────────────────────────── */

.detail-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 240px;
}

.detail-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  color: var(--text-dim);
  min-height: 240px;
}

.detail-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 12px;
}

/* CSS spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.detail-content { padding: 0; }

.detail-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.detail-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.detail-user-info { min-width: 0; flex: 1; }

.detail-email {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 600;
  word-break: break-all;
}

.detail-nick {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.detail-meta-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.detail-section {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.detail-section:last-child { border-bottom: none; }

.detail-section-title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.meta-item {}
.meta-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}
.meta-value {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ── Balance grid ─────────────────────────────────────────────────── */

.balance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.balance-card {
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: center;
}

.balance-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.balance-value {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1;
}

/* ── Action forms ─────────────────────────────────────────────────── */

.action-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.action-msg {
  margin-top: 6px;
  font-size: 11px;
  display: none;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
}

.action-msg.success {
  color: var(--accent-green);
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
}

.action-msg.error {
  color: var(--accent-red);
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
}

/* ── Button variants ──────────────────────────────────────────────── */

.btn-sm {
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  transition: all 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-sm.btn-primary {
  background: var(--accent);
  color: #fff;
  width: auto;
}
.btn-sm.btn-primary:hover { background: #ea6a0a; }

.btn-sm.btn-danger {
  background: rgba(239,68,68,0.15);
  color: var(--accent-red);
  border: 1px solid rgba(239,68,68,0.3);
}
.btn-sm.btn-danger:hover { background: rgba(239,68,68,0.25); }

.btn-sm.btn-success {
  background: rgba(34,197,94,0.15);
  color: var(--accent-green);
  border: 1px solid rgba(34,197,94,0.3);
}
.btn-sm.btn-success:hover { background: rgba(34,197,94,0.25); }

.btn-sm.btn-warning {
  background: rgba(234,179,8,0.15);
  color: var(--accent-yellow);
  border: 1px solid rgba(234,179,8,0.3);
}
.btn-sm.btn-warning:hover { background: rgba(234,179,8,0.25); }

/* ── Analytics: package distribution ────────────────────────────── */

.pkg-dist-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

@media (max-width: 1200px) {
  .pkg-dist-grid { grid-template-columns: repeat(3, 1fr); }
}

