:root {
  --bg: #F5F5F7;
  --surface: #FFFFFF;
  --surface-2: #F0F0F2;
  --text: #1D1D1F;
  --text-2: #6E6E73;
  --text-muted: #AEAEB2;
  --border: rgba(0, 0, 0, 0.08);
  --border-soft: rgba(0, 0, 0, 0.05);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 8px rgba(0, 0, 0, 0.03);
  --sidebar-bg: rgba(246, 246, 248, 0.88);
  --overlay: rgba(0, 0, 0, 0.4);
  --accent: #0071E3;
  --accent-light: #E8F2FE;
  --accent-dark: #0058B0;
  --amber: #FF9F0A;
  --amber-light: #FFF3E2;
  --amber-dark: #B4700A;
  --coral: #AF52DE;
  --coral-light: #F7ECFC;
  --coral-dark: #7F3AA3;
  --blue: #0071E3;
  --blue-light: #E8F2FE;
  --green: #30B854;
  --green-light: #E7F8EC;
  --green-dark: #1E8A3B;
  --danger: #FF3B30;
  --danger-light: #FFEEED;
  --radius: 10px;
  --font-display: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

[data-theme="dark"] {
  --bg: #0b1220;
  --surface: #121a2b;
  --surface-2: #1a2438;
  --text: #f4f6f8;
  --text-2: rgba(244, 246, 248, 0.72);
  --text-muted: rgba(244, 246, 248, 0.45);
  --border: rgba(255, 255, 255, 0.1);
  --border-soft: rgba(255, 255, 255, 0.06);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.24), 0 8px 24px rgba(0, 0, 0, 0.18);
  --sidebar-bg: rgba(12, 18, 32, 0.92);
  --overlay: rgba(0, 0, 0, 0.55);
  --accent: #3b9eff;
  --accent-light: rgba(59, 158, 255, 0.16);
  --accent-dark: #8ec8ff;
  --amber: #FF9F0A;
  --amber-light: rgba(255, 159, 10, 0.16);
  --amber-dark: #FFC46B;
  --coral: #C77DFF;
  --coral-light: rgba(199, 125, 255, 0.16);
  --coral-dark: #E0B3FF;
  --blue: #3b9eff;
  --blue-light: rgba(59, 158, 255, 0.16);
  --green: #30B854;
  --green-light: rgba(48, 184, 84, 0.16);
  --green-dark: #7DDB9A;
  --danger: #FF6B63;
  --danger-light: rgba(255, 59, 48, 0.16);
}

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

html, body { min-height: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

body.app-shell {
  display: flex;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ---------- sidebar ---------- */
.sidebar {
  width: 224px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  color: var(--text);
  display: flex;
  flex-direction: column;
  padding: 18px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--border-soft);
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 2px 8px 22px;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 14px; height: 14px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-role {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 1px;
}

.nav { display: flex; flex-direction: column; gap: 1px; }
.nav-group-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  padding: 16px 10px 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 7px;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.nav-item .icon { width: 16px; height: 16px; flex-shrink: 0; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active {
  background: var(--accent-light);
  color: var(--accent-dark);
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px 8px 4px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 9px;
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.sidebar-footer .name { font-size: 13px; font-weight: 500; color: var(--text); }
.sidebar-footer .plan { font-size: 11.5px; color: var(--text-2); }
.logout-link {
  font-size: 11.5px;
  color: var(--accent);
  margin-top: 2px;
  display: inline-block;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 7px 10px;
  border-radius: 7px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  color: var(--text-2);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}
.theme-toggle:hover { color: var(--text); background: var(--surface-2); }
.theme-toggle .icon { width: 15px; height: 15px; flex-shrink: 0; }

/* ---------- main ---------- */
.main { flex: 1; min-width: 0; padding: 32px 40px 60px; }
.view { display: none; }
.view.active { display: block; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}
.topbar h1 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.topbar p { font-size: 13px; color: var(--text-2); margin-top: 3px; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: var(--shadow-card);
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: none; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-sm { padding: 4px 10px; font-size: 12px; box-shadow: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:focus-visible,
.nav-item:focus-visible,
.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- stats / panels ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  display: block;
  color: inherit;
}
a.stat-card:hover { border-color: var(--accent); }
.stat-card.is-active { outline: 2px solid var(--accent); }
.stat-card .label { font-size: 12.5px; color: var(--text-2); margin-bottom: 8px; }
.stat-card .value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.stat-card .delta { font-size: 12px; color: var(--green-dark); margin-top: 4px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
}
.panel-title {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left;
  padding: 9px 10px;
  color: var(--text-2);
  font-weight: 500;
  font-size: 12px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface);
  position: sticky;
  top: 0;
}
td { padding: 12px 10px; border-bottom: 1px solid var(--border-soft); }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface-2); }
.mono { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-2); }

/* ---------- forms ---------- */
.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text-2);
  min-width: 140px;
}
.filter-field.grow { flex: 1; min-width: 180px; }
select,
input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
input[type="date"],
input[type="time"],
input[type="search"],
textarea {
  font-family: var(--font-body);
  font-size: 13px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text-2);
}
.form-grid .full { grid-column: 1 / -1; }
.form-grid textarea { font-family: inherit; resize: vertical; }

/* ---------- badges / alerts ---------- */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 500;
}
.b-blue { background: var(--blue-light); color: var(--accent-dark); }
.b-amber { background: var(--amber-light); color: var(--amber-dark); }
.b-coral { background: var(--coral-light); color: var(--coral-dark); }
.b-green { background: var(--green-light); color: var(--green-dark); }
.b-danger { background: var(--danger-light); color: var(--danger); }
.b-gray { background: var(--surface-2); color: var(--text-2); }

.alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 13px; }
.alert-ok { background: var(--green-light); color: var(--green-dark); }
.alert-err { background: var(--danger-light); color: var(--danger); }

/* ---------- kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kcol-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.kcard {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 11px 13px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-card);
}
.kcard:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1); transform: translateY(-1px); }
.kcard .top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.kcard .name { font-size: 13px; font-weight: 500; }
.kcard .note { font-size: 12px; color: var(--text-2); }
.src-icon { margin-left: auto; color: var(--text-muted); width: 14px; height: 14px; }

/* ---------- docs ---------- */
.doc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-soft);
}
.doc-row:last-child { border-bottom: none; }
.doc-row .btn { white-space: nowrap; flex-shrink: 0; }
.doc-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  font-size: 16px;
  flex-shrink: 0;
}
.doc-info { flex: 1; min-width: 0; }
.doc-info .title { font-size: 13px; font-weight: 500; }
.doc-info .sub { font-size: 12px; color: var(--text-2); }

/* ---------- modals ---------- */
.modal-back {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 120;
  padding: 20px;
}
.modal-back.open { display: flex; }
.modal-card {
  background: var(--surface);
  border-radius: 18px;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border-soft);
}
.modal-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-soft);
}
.modal-card header h2 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  vertical-align: -3px;
}
.icon-close,
.icon-check,
.icon-x {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  vertical-align: -2px;
}
.btn .icon { margin-right: 2px; }
.btn .icon-close { margin: 0; }
.btn.btn-sm .icon { width: 15px; height: 15px; }
.doc-icon .icon { width: 18px; height: 18px; }
.event-icon .icon { width: 16px; height: 16px; }
.plan-card li .icon { color: var(--accent); margin-top: 1px; }
.deal-back .icon { width: 16px; height: 16px; }
.report-pending .icon { width: 12px; height: 12px; vertical-align: -1px; }
.icon.check-yes,
.icon-check.check-yes { color: var(--green-dark); }
.icon.check-no,
.icon-x.check-no { color: var(--text-muted); }
.modal-card .modal-body { padding: 18px 20px; }
.modal-card .form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.modal-card .form-row label { font-size: 12px; color: var(--text-2); font-weight: 500; }
.modal-card .form-row input,
.modal-card .form-row select { width: 100%; }
.modal-card .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-card .form-grid .full { grid-column: 1 / -1; }
.modal-card footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--border-soft);
}
.modal-error {
  display: none;
  margin: 0 20px 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--danger-light);
  color: var(--danger);
  font-size: 13px;
}
.modal-error.show { display: block; }

/* ---------- login ---------- */
body.login-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.login-wrap { width: 100%; max-width: 400px; }
.login-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}
.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  text-align: center;
}
.login-brand .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
.login-brand .brand-mark svg { width: 18px; height: 18px; }
.login-brand h1 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.login-brand p { font-size: 13px; color: var(--text-2); }
.login-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.login-field label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.login-field input { width: 100%; padding: 10px 12px; font-size: 15px; }
.login-card .btn-primary { width: 100%; padding: 11px 14px; font-size: 14px; margin-top: 4px; }
.login-back {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-2);
}
.login-back:hover { color: var(--accent); }
.login-page .theme-toggle { width: auto; margin: 16px auto 0; }

/* ---------- mobile ---------- */
.mobile-bar { display: none; }
.sidebar-backdrop { display: none; }

@media (max-width: 560px) {
  .modal-card .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  html, body.app-shell { overflow-x: hidden; }
  body.app-shell { flex-direction: column; }
  .mobile-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 90;
    padding: 10px 14px;
    padding-top: max(10px, env(safe-area-inset-top));
    background: var(--sidebar-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-soft);
  }
  .nav-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
  }
  .nav-toggle svg {
    display: block;
    width: 20px;
    height: 20px;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100dvh;
    z-index: 110;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: none;
    width: min(280px, 86vw);
  }
  .sidebar.open { transform: translateX(0); box-shadow: 8px 0 32px rgba(0, 0, 0, 0.18); }
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 105;
    background: var(--overlay);
  }
  .sidebar-backdrop.open { display: block; }
  .main { padding: 16px 14px 40px; padding-bottom: max(40px, env(safe-area-inset-bottom)); }
  .topbar { flex-direction: column; align-items: flex-start; }
  .topbar h1 { font-size: 20px; }
  .topbar .btn { width: 100%; justify-content: center; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .kanban {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .kanban > div,
  .kanban > .kcol { min-width: min(280px, 82vw); flex: 0 0 auto; scroll-snap-align: start; }
  .form-grid { grid-template-columns: 1fr; }
  .filters .filter-field { width: 100%; min-width: 0; }
  .filters input,
  .filters select { width: 100%; }
  .panel { padding: 16px; overflow-x: auto; }
  table { min-width: 560px; }
  .modal-back { padding: 12px; align-items: flex-end; }
  .modal-card { width: 100%; max-height: 92dvh; border-radius: 16px 16px 0 0; }
  input, select, textarea { font-size: 16px !important; }
}

.carsxe-list { display: flex; flex-direction: column; gap: 8px; }
.carsxe-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
}
.carsxe-row:last-child { border-bottom: none; }
.carsxe-row-label { font-size: 13px; color: var(--text); }
.carsxe-row-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.carsxe-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}
.carsxe-form input,
.carsxe-form select {
  flex: 1 1 120px;
  min-width: 100px;
  max-width: 220px;
}
.carsxe-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.carsxe-images a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 4 / 3;
}
.carsxe-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.photo-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 1.5px dashed var(--border);
  color: var(--text-muted);
  cursor: pointer;
  background: var(--surface-2);
}
.photo-placeholder:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.photo-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
  display: block;
  cursor: zoom-in;
}
.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-del {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #ff3b30;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
}
.photo-del svg {
  display: block;
  width: 14px;
  height: 14px;
}
.photo-del:hover {
  background: var(--danger);
  color: #fff;
}
.media-video-wrap { margin-bottom: 14px; }
.media-video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 6px;
}
.media-video {
  width: 100%;
  max-height: 360px;
  border-radius: 12px;
  background: #000;
  display: block;
}
.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.media-lightbox[hidden] { display: none !important; }
.media-lightbox-inner {
  max-width: min(1100px, 100%);
  max-height: 100%;
}
.media-lightbox-img,
.media-lightbox-video {
  max-width: 100%;
  max-height: 86vh;
  border-radius: 8px;
  display: block;
}
.media-lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.media-lightbox-close .icon-close {
  width: 22px;
  height: 22px;
}

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