/* ═══════════════════════════════════════════════════════════════════════
   DTE Punjab Dashboard — style.css  (v2)
   Dark / Light mode via CSS variables on [data-theme]
═══════════════════════════════════════════════════════════════════════ */

:root {
  --sidebar-w: 240px;
  --topbar-h:  64px;
  --radius:    12px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
  --font: 'Inter', system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg:           #0f1117;
  --surface:      #1a1d27;
  --surface-2:    #22263a;
  --border:       #2d3251;
  --text:         #e8eaf6;
  --text-muted:   #8892b0;
  --accent-blue:  #4f8ef7;
  --accent-purple:#a78bfa;
  --accent-teal:  #2dd4bf;
  --accent-rose:  #fb7185;
  --accent-amber: #fbbf24;
  --shadow:       0 4px 24px rgba(0,0,0,.45);
  --shadow-card:  0 2px 12px rgba(0,0,0,.35);
  --sidebar-bg:   #12151f;
  --topbar-bg:    #1a1d27;
  --badge-bg:     #2d3251;
  --chart-grid:   rgba(255,255,255,.06);
  --modal-bg:     rgba(0,0,0,.85);
}

[data-theme="light"] {
  --bg:           #f0f4ff;
  --surface:      #ffffff;
  --surface-2:    #e8edfa;
  --border:       #d4ddf5;
  --text:         #1a1d2e;
  --text-muted:   #5c6b8a;
  --accent-blue:  #2563eb;
  --accent-purple:#7c3aed;
  --accent-teal:  #0d9488;
  --accent-rose:  #e11d48;
  --accent-amber: #d97706;
  --shadow:       0 4px 24px rgba(0,0,0,.10);
  --shadow-card:  0 2px 12px rgba(0,0,0,.08);
  --sidebar-bg:   #1e2235;
  --topbar-bg:    #ffffff;
  --badge-bg:     #dde6ff;
  --chart-grid:   rgba(0,0,0,.06);
  --modal-bg:     rgba(0,0,0,.75);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

/* ── Sidebar ─────────────────────────────────────────────────────────── */
.sidebar {
  position: fixed; top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--sidebar-bg);
  display: flex; flex-direction: column;
  z-index: 200;
  transition: transform var(--transition);
  border-right: 1px solid rgba(255,255,255,.05);
}
.sidebar-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.brand-icon  { font-size: 1.8rem; line-height: 1; }
.brand-title { display: block; font-size: .95rem; font-weight: 700; color: #fff; letter-spacing: .3px; }
.brand-sub   { display: block; font-size: .7rem; color: #8892b0; margin-top: 2px; }

.sidebar-nav { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: #8892b0;
  text-decoration: none;
  font-size: .875rem; font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.nav-item:hover  { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: rgba(79,142,247,.15);  color: var(--accent-blue); }
.nav-icon { font-size: 1.1rem; width: 22px; text-align: center; }

.sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex; flex-direction: column; gap: 2px;
  font-size: .68rem; color: #5c6b8a;
}

/* ── Main wrapper ─────────────────────────────────────────────────────── */
.main-wrapper {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex; flex-direction: column;
  transition: margin-left var(--transition);
}

/* ── Topbar ──────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0;
  height: var(--topbar-h);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px;
  z-index: 100;
  box-shadow: var(--shadow-card);
  transition: background var(--transition), border-color var(--transition);
}
.menu-btn {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.menu-btn span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--transition); }
.topbar-title { flex: 1; }
.topbar-title h1 { font-size: 1rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-sub { font-size: .72rem; color: var(--text-muted); margin-top: 1px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }

.export-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--accent-blue);
  border: none; border-radius: var(--radius-sm);
  color: #fff; padding: 8px 14px;
  font-size: .8rem; font-weight: 600;
  cursor: pointer; transition: opacity .2s;
  font-family: var(--font);
}
.export-btn:hover { opacity: .88; }

.theme-toggle {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 50%;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem;
  transition: background var(--transition);
}
.theme-toggle:hover { background: var(--border); }

/* ── Content ─────────────────────────────────────────────────────────── */
.content { flex: 1; padding: 24px; max-width: 1400px; width: 100%; }
.section { display: none; }
.section.active { display: block; }
.section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.section-title { font-size: 1.3rem; font-weight: 700; }
.section-badge {
  background: var(--badge-bg); color: var(--text-muted);
  font-size: .7rem; font-weight: 600; padding: 4px 10px;
  border-radius: 20px; letter-spacing: .5px;
}

/* ── KPI Cards ───────────────────────────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.kpi-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 22px 20px; display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow-card); border: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  cursor: default;
}
.kpi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.kpi-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  border-radius: var(--radius) 0 0 var(--radius);
}
.kpi-blue::before   { background: var(--accent-blue); }
.kpi-purple::before { background: var(--accent-purple); }
.kpi-teal::before   { background: var(--accent-teal); }
.kpi-rose::before   { background: var(--accent-rose); }
.kpi-icon  { font-size: 2rem; line-height: 1; flex-shrink: 0; }
.kpi-value { font-size: 2rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi-unit  { font-size: 1.1rem; font-weight: 600; margin-left: 2px; }
.kpi-label { font-size: .75rem; color: var(--text-muted); margin-top: 4px; font-weight: 500; }

/* ── Batch Strip ─────────────────────────────────────────────────────── */
.batch-strip {
  display: flex; align-items: center;
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden; margin-bottom: 24px;
}
.batch-card {
  flex: 1; padding: 18px 20px; text-align: center;
  border-right: 1px solid var(--border);
  transition: background var(--transition);
  cursor: default;
}
.batch-card:last-child { border-right: none; }
.batch-card:hover { background: var(--surface-2); }
.batch-title { font-weight: 700; font-size: .9rem; color: var(--accent-blue); }
.batch-date  { font-size: .75rem; color: var(--text-muted); margin-top: 4px; }
.batch-count { font-size: 1.8rem; font-weight: 800; margin: 6px 0 2px; }
.batch-range { font-size: .7rem; color: var(--text-muted); }
.batch-divider { font-size: 1.2rem; color: var(--text-muted); padding: 0 8px; flex-shrink: 0; }

/* ── Overview mini charts ─────────────────────────────────────────────── */
.overview-mini-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 8px;
}

/* ── Charts ──────────────────────────────────────────────────────────── */
.charts-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.chart-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-card);
}
.chart-wide  { grid-column: span 2; }
.chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.chart-header h3 { font-size: .95rem; font-weight: 600; }
.chart-badge {
  font-size: .65rem; font-weight: 700; letter-spacing: .6px;
  background: var(--badge-bg); color: var(--text-muted);
  padding: 3px 8px; border-radius: 20px; text-transform: uppercase;
}
.chart-wrap    { position: relative; height: 260px; }
.chart-wrap-sm { height: 220px; }

/* ── Insights ────────────────────────────────────────────────────────── */
.insights-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px;
  margin-bottom: 24px;
}
.insight-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .18s ease;
}
.insight-card:hover { transform: translateY(-2px); }
.insight-icon { font-size: 2rem; line-height: 1; }
.insight-title { font-size: .8rem; font-weight: 600; text-transform: uppercase;
                 letter-spacing: .5px; color: var(--text-muted); }
.insight-value { font-size: 1.5rem; font-weight: 800; color: var(--text); }
.insight-desc  { font-size: .82rem; color: var(--text-muted); line-height: 1.5; }
.insight-bar {
  height: 4px; border-radius: 2px;
  background: var(--surface-2);
  overflow: hidden; margin-top: 4px;
}
.insight-bar-fill { height: 100%; border-radius: 2px; transition: width .6s ease; }
.insight-skeleton {
  height: 160px; border-radius: var(--radius);
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
}

/* ── Map ─────────────────────────────────────────────────────────────── */
.map-container {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  margin-bottom: 16px; box-shadow: var(--shadow-card);
}
.map-fallback {
  position: relative; padding: 24px;
  display: flex; flex-direction: column; align-items: center;
}
#bubbleMapCanvas {
  width: 100%; max-width: 960px; height: 500px;
  border-radius: var(--radius-sm); cursor: pointer;
}
.bubble-legend {
  margin-top: 10px; font-size: .75rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
}
.legend-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #6aafff 0%, #2563eb 60%, #1e40af 100%);
  opacity: .75; display: inline-block;
}
.google-map { width: 100%; height: 520px; }

/* ── District Detail Panel ───────────────────────────────────────────── */
.district-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  margin-bottom: 16px; box-shadow: var(--shadow-card);
  animation: slideIn .2s ease;
}
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.dp-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; flex-wrap: wrap; gap: 10px;
}
.dp-name  { font-size: 1.3rem; font-weight: 700; margin-right: 10px; }
.dp-count {
  background: var(--accent-blue); color: #fff;
  border-radius: 20px; padding: 3px 12px;
  font-size: .8rem; font-weight: 700;
}
.dp-actions { display: flex; gap: 8px; align-items: center; }
.dp-gmaps-btn {
  background: var(--accent-teal); color: #fff;
  border: none; border-radius: var(--radius-sm);
  padding: 8px 14px; font-size: .8rem; font-weight: 600;
  cursor: pointer; font-family: var(--font);
  transition: opacity .2s;
}
.dp-gmaps-btn:hover { opacity: .88; }
.dp-close-btn {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 50%; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: .85rem; color: var(--text-muted);
  font-family: var(--font);
}
.dp-close-btn:hover { color: var(--text); }
.dp-stat-row { display: flex; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.dp-stat {
  background: var(--surface-2); border-radius: var(--radius-sm);
  padding: 12px 16px; flex: 1; min-width: 100px;
  font-size: .82rem; color: var(--text-muted); line-height: 1.6;
}
.dp-stat strong { display: block; font-size: 1.2rem; color: var(--text); }
.dp-section-title { font-size: .75rem; font-weight: 700; text-transform: uppercase;
                    letter-spacing: .5px; color: var(--text-muted); margin-bottom: 8px; }
.dp-colleges {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.dp-college-tag {
  background: var(--badge-bg); color: var(--text-muted);
  border-radius: 6px; padding: 4px 10px; font-size: .75rem;
}

/* ── Map Legend Grid ─────────────────────────────────────────────────── */
.map-legend-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px; margin-bottom: 24px;
}
.map-legend-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .8rem; cursor: pointer;
  transition: background .14s, border-color .14s;
}
.map-legend-item:hover { background: var(--surface-2); border-color: var(--accent-blue); }
.map-legend-district { font-weight: 600; }
.map-legend-count {
  background: var(--accent-blue); color: #fff;
  border-radius: 20px; padding: 2px 8px; font-size: .7rem; font-weight: 700;
}

/* ── Image Gallery ───────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}
.gallery-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.gallery-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: top;
  display: block;
  border-bottom: 1px solid var(--border);
  transition: opacity var(--transition);
}
.gallery-card:hover img {
  opacity: 0.9;
}
.gallery-caption {
  padding: 16px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
}


/* ── Table ───────────────────────────────────────────────────────────── */
.table-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.search-input, .filter-select {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  padding: 9px 14px; font-size: .85rem; font-family: var(--font);
  transition: border-color .2s; outline: none;
}
.search-input { flex: 1; min-width: 200px; }
.search-input:focus, .filter-select:focus { border-color: var(--accent-blue); }
.filter-select { min-width: 150px; }

.export-table-btn {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  padding: 9px 14px; font-size: .82rem; font-weight: 600;
  cursor: pointer; font-family: var(--font);
  transition: background .2s, border-color .2s;
}
.export-table-btn:hover { background: var(--badge-bg); border-color: var(--accent-blue); }

.table-wrapper {
  overflow-x: auto; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow-card);
  margin-bottom: 14px;
}
.data-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.data-table thead tr { background: var(--surface-2); border-bottom: 1px solid var(--border); }
.data-table th {
  padding: 12px 14px; text-align: left; font-weight: 600;
  font-size: .75rem; letter-spacing: .4px; text-transform: uppercase;
  color: var(--text-muted); white-space: nowrap; user-select: none;
}
.data-table th.sortable { cursor: pointer; }
.data-table th.sortable:hover { color: var(--text); }
.data-table th.sort-asc::after  { content: ' ↑'; color: var(--accent-blue); }
.data-table th.sort-desc::after { content: ' ↓'; color: var(--accent-blue); }
.data-table tbody tr { border-bottom: 1px solid var(--border); transition: background .14s; }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: var(--surface-2); }
.data-table td { padding: 11px 14px; color: var(--text); vertical-align: middle; }

.row-link { cursor: pointer; }

/* Pills & Badges */
.pill { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: .7rem; font-weight: 700; }
.pill-female { background: rgba(251,113,133,.15); color: #fb7185; }
.pill-male   { background: rgba(79,142,247,.15);  color: #4f8ef7; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: .68rem; font-weight: 600; }
.badge-hod    { background: rgba(167,139,250,.2); color: var(--accent-purple); }
.badge-senior { background: rgba(45,212,191,.15); color: var(--accent-teal); }
.badge-lect   { background: rgba(255,255,255,.07); color: var(--text-muted); }
.badge-other  { background: rgba(251,113,133,.15); color: var(--accent-rose); }
.batch-tag { font-size: .68rem; font-weight: 600; color: var(--text-muted); }

.map-action-btn {
  background: none; border: 1px solid var(--border); border-radius: 6px;
  color: var(--text-muted); padding: 4px 10px; font-size: .72rem;
  cursor: pointer; font-family: var(--font); transition: all .2s;
}
.map-action-btn:hover { border-color: var(--accent-teal); color: var(--accent-teal); }

/* ── Pagination ──────────────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.page-btn {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  padding: 6px 12px; font-size: .8rem; font-weight: 500;
  cursor: pointer; transition: background .15s, border-color .15s;
}
.page-btn:hover  { background: var(--surface-2); border-color: var(--accent-blue); }
.page-btn.active { background: var(--accent-blue); border-color: var(--accent-blue); color: #fff; }
.page-btn:disabled { opacity: .4; cursor: default; }

/* ── Participant Modal & Modals in General ───────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: var(--modal-bg);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 440px; width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  animation: modalIn .2s ease;
}
@keyframes modalIn { from { opacity:0; transform: scale(.95); } to { opacity:1; transform: scale(1); } }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 50%; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: .8rem; color: var(--text-muted);
}
.modal-close:hover { color: var(--text); }
.modal-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 800; color: #fff;
  margin: 0 auto 14px; text-transform: uppercase;
}
.modal-name { font-size: 1.2rem; font-weight: 700; text-align: center; margin-bottom: 4px; }
.modal-sub  { font-size: .8rem; color: var(--text-muted); text-align: center; margin-bottom: 14px; }
.modal-tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.modal-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px;
}
.modal-field { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; }
.modal-field-label { font-size: .68rem; font-weight: 600; text-transform: uppercase;
                     letter-spacing: .4px; color: var(--text-muted); margin-bottom: 3px; }
.modal-field-value { font-size: .85rem; font-weight: 500; color: var(--text); }
.modal-map-btn {
  width: 100%; background: var(--accent-blue); border: none;
  border-radius: var(--radius-sm); color: #fff;
  padding: 10px; font-size: .85rem; font-weight: 600;
  cursor: pointer; font-family: var(--font); transition: opacity .2s;
}
.modal-map-btn:hover { opacity: .88; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer {
  padding: 16px 24px; font-size: .72rem; color: var(--text-muted);
  border-top: 1px solid var(--border); text-align: center;
}

/* ── Sidebar overlay (mobile) ────────────────────────────────────────── */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 150;
}

/* ── Animations ──────────────────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
@keyframes countFade { from { opacity:0; transform: translateY(6px); } to { opacity:1; transform: translateY(0); } }
.kpi-value { animation: countFade .4s ease; }

/* ════════════════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .charts-grid { grid-template-columns: 1fr; }
  .chart-wide  { grid-column: span 1; }
  .overview-mini-charts { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 260px; }
  .sidebar { transform: translateX(-100%); box-shadow: 4px 0 24px rgba(0,0,0,.4); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .main-wrapper { margin-left: 0; }
  .menu-btn { display: flex; }
  .topbar { padding: 0 14px; }
  .topbar-title h1 { font-size: .88rem; }
  .content { padding: 16px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .kpi-value { font-size: 1.6rem; }
  .kpi-icon  { font-size: 1.5rem; }
  .batch-strip { flex-direction: column; }
  .batch-card  { border-right: none; border-bottom: 1px solid var(--border); }
  .batch-card:last-child { border-bottom: none; }
  .batch-divider { display: none; }
  #bubbleMapCanvas { height: 320px; }
  .table-toolbar { flex-direction: column; }
  .search-input  { min-width: unset; }
  .export-btn span { display: none; }
  .dp-header { flex-direction: column; align-items: flex-start; }
  .modal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
}