/* =====================================================
   NCBS Learner Portal — Transfers Shared Styles
   Eliminates CSS duplication across transfers/ pages
   Uses design-tokens.css variables ONLY
   Last updated: 2026-05-31
   ===================================================== */

/* ── Reset & Body ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--gray-50);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── Top Navigation ── */
.topnav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topnav-left { display: flex; align-items: center; gap: var(--space-sm); }
.topnav-brand { display: flex; align-items: center; gap: var(--space-sm); text-decoration: none; }
.topnav-logo { width: 22px; height: 22px; background: url(img/logo-ncbs.svg) center/contain no-repeat; flex-shrink: 0; }
.topnav-logo span { display: none; }
.topnav-brand-name { font-size: 14px; font-weight: var(--weight-bold); color: var(--purple-900); }
.topnav-links { display: flex; align-items: center; gap: 2px; margin-left: var(--space-lg); }
.nav-link {
  padding: 7px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: var(--weight-medium);
  color: var(--gray-500);
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}
.nav-link:hover { background: var(--purple-50); color: var(--purple-500); }
.nav-link.active { background: var(--purple-50); color: var(--purple-600); font-weight: var(--weight-semibold); }
.topnav-right { display: flex; align-items: center; gap: 6px; }

.icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500);
  position: relative;
  transition: all .15s;
}
.icon-btn:hover { background: var(--purple-50); color: var(--purple-500); }
.icon-btn .dot {
  position: absolute; top: 7px; right: 7px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red-500);
  border: 2px solid var(--white);
}

/* ── Hamburger & Mobile Drawer ── */
.hamburger {
  display: none;
  width: 36px; height: 36px;
  border: none; background: none;
  cursor: pointer; color: var(--gray-500);
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.hamburger span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

.mobile-drawer {
  display: none;
  position: fixed; top: 56px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: var(--space-sm) var(--space-md) var(--space-md);
  z-index: 190;
  flex-direction: column; gap: 2px;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer .nav-link { padding: 10px 14px; border-radius: 10px; }

/* ── Container & Page Header ── */
.container { max-width: 960px; margin: 0 auto; padding: var(--space-lg) 20px var(--space-xl); }
.container-narrow { max-width: 800px; }

.page-hdr {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-md); flex-wrap: wrap; gap: 12px;
}
.page-title-row { display: flex; align-items: center; gap: var(--space-sm); }
.page-title { font-size: 18px; font-weight: var(--weight-bold); color: var(--gray-800); }
.page-actions { display: flex; gap: var(--space-sm); }

/* ── Back Link ── */
.back-row { margin-bottom: 14px; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: var(--weight-medium);
  color: var(--gray-500); text-decoration: none;
  border-radius: var(--radius-md); padding: 6px 10px;
  transition: all .15s;
}
.back-link:hover { background: var(--purple-50); color: var(--purple-500); }

/* ── KPI Cards ── */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: var(--space-md);
}
.kpi-card {
  background: var(--white);
  border-radius: 14px;
  padding: var(--space-md) 18px;
  box-shadow: 0 1px 4px rgba(94,32,218,.05);
  border: 1px solid var(--purple-50);
  display: flex; align-items: flex-start; gap: 12px;
}
.kpi-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.kpi-icon.purple { background: var(--purple-50); color: var(--purple-500); }
.kpi-icon.green  { background: var(--green-50); color: var(--green-500); }
.kpi-icon.orange { background: var(--orange-50); color: var(--orange-600); }
.kpi-icon.yellow { background: var(--yellow-50); color: var(--orange-600); }
.kpi-icon.red    { background: var(--red-50); color: var(--red-500); }
.kpi-icon.blue   { background: var(--blue-50); color: var(--blue-500); }
.kpi-lbl { font-size: 11px; color: var(--gray-400); line-height: 1.4; margin-bottom: 5px; }
.kpi-val { font-size: 30px; font-weight: var(--weight-bold); color: var(--gray-800); line-height: 1; }
.kpi-val.green { color: var(--green-500); }
.kpi-val.orange { color: var(--orange-600); }
.kpi-val.yellow { color: var(--orange-300); }
.kpi-val.red { color: var(--red-500); }
.kpi-val.blue { color: var(--blue-500); }

/* ── Section Card ── */
.sec-card {
  background: var(--white);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  margin-bottom: 14px;
}
.sec-title {
  font-size: 14px;
  font-weight: var(--weight-bold);
  color: var(--gray-800);
  margin-bottom: 18px;
}

/* ── Buttons ── */
.btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: var(--weight-semibold);
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all .15s;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
}
.btn-primary { background: var(--purple-500); color: var(--white); }
.btn-primary:hover { background: var(--purple-700); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }

.btn-outline {
  background: var(--white);
  color: var(--gray-500);
  border: 1.5px solid var(--gray-200);
  font-size: 12px; font-weight: var(--weight-medium);
  padding: 8px 18px;
}
.btn-outline:hover {
  border-color: var(--purple-300);
  color: var(--purple-500);
  background: var(--purple-50);
}

.btn-secondary {
  background: var(--white);
  color: var(--gray-500);
  border: 1.5px solid var(--gray-200);
}
.btn-secondary:hover {
  background: var(--purple-50);
  border-color: var(--purple-300);
  color: var(--purple-500);
}

.btn-sm { padding: 7px 16px; font-size: 12px; }

.btn-row {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: var(--space-xs);
}

/* ── Filter Bar ── */
.filter-bar {
  display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap;
}
.search-wrap {
  position: relative; flex: 1; min-width: 180px;
}
.search-wrap svg {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
}
.filter-input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-family: inherit;
  background: var(--white);
  color: var(--gray-700);
  transition: border-color .15s;
  min-height: 44px;
}
.filter-input:focus { outline: none; border-color: var(--purple-500); box-shadow: var(--focus-ring); }
.filter-select {
  padding: 9px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-family: inherit;
  background: var(--white);
  color: var(--gray-500);
  cursor: pointer;
  min-height: 44px;
}
.filter-select:focus { outline: none; border-color: var(--purple-500); }

/* ── Data Tables ── */
.tbl-wrap { overflow-x: auto; }
.tbl-wrap table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl-wrap th {
  text-align: left; padding: 10px 14px;
  font-size: 11px; font-weight: var(--weight-semibold);
  color: var(--gray-400); text-transform: uppercase; letter-spacing: .4px;
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-50);
}
.tbl-wrap td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-50);
  color: var(--gray-700);
  vertical-align: middle;
}
.tbl-wrap tbody tr { cursor: pointer; transition: background .15s; }
.tbl-wrap tbody tr:hover td { background: var(--purple-25); }
.tbl-wrap tbody tr:last-child td { border-bottom: none; }

/* ── Table Empty State ── */
.tbl-empty {
  text-align: center;
  padding: 40px !important;
  color: var(--gray-400);
}

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 3px 11px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}
.badge-success { background: var(--green-100); color: var(--green-500); }
.badge-pending { background: var(--yellow-100); color: var(--orange-600); }
.badge-payment { background: var(--orange-50); color: var(--orange-600); }
.badge-review { background: var(--purple-100); color: var(--purple-600); }
.badge-rejected { background: var(--red-50); color: var(--red-500); }
.badge-docs { background: var(--blue-50); color: var(--blue-600); }

/* ── Match Score ── */
.match-high { color: var(--green-500); font-weight: var(--weight-bold); }
.match-medium { color: var(--orange-300); font-weight: var(--weight-bold); }
.match-low { color: var(--red-500); font-weight: var(--weight-bold); }

/* ── Forms ── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); margin-bottom: var(--space-md); }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; font-weight: var(--weight-semibold); color: var(--gray-700); }
.form-field .req { color: var(--red-500); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  background: var(--white);
  color: var(--gray-700);
  transition: border-color .15s;
  min-height: 44px;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--purple-500);
  box-shadow: var(--focus-ring);
}
.form-field textarea { min-height: 100px; resize: vertical; }
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

/* ── Match Preview ── */
.match-preview {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: 10px;
  margin-top: 14px;
}
.match-preview .mp-pct { font-size: 22px; font-weight: var(--weight-bold); color: var(--green-500); flex-shrink: 0; }
.match-preview .mp-info { font-size: 13px; color: var(--gray-700); }
.match-preview .mp-info strong { display: block; margin-bottom: 2px; }

/* ── Match Table ── */
.match-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 4px; }
.match-table th {
  text-align: left; padding: 8px 4px;
  font-size: 11px; font-weight: var(--weight-semibold);
  color: var(--gray-400); text-transform: uppercase; letter-spacing: .4px;
  border-bottom: 1px solid var(--gray-100);
}
.match-table td { padding: 10px 4px; border-bottom: 1px solid var(--gray-50); color: var(--gray-700); }
.match-table tr:last-child td { border-bottom: none; }

/* ── Upload Zone ── */
.upload-zone {
  border: 2px dashed var(--gray-300);
  border-radius: 12px;
  padding: var(--space-xl);
  text-align: center;
  color: var(--gray-400);
  cursor: pointer;
  transition: all .15s;
  background: var(--gray-50);
}
.upload-zone:hover,
.upload-zone.drag-over { border-color: var(--purple-400); color: var(--purple-500); background: var(--purple-50); }
.upload-zone svg { margin-bottom: 12px; }
.upload-zone .upload-text { font-size: 14px; color: var(--gray-600); font-weight: var(--weight-medium); }
.upload-zone .upload-hint { font-size: 12px; color: var(--gray-400); margin-top: var(--space-xs); }

/* ── File List ── */
.file-list { margin-top: var(--space-md); }
.file-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  margin-bottom: var(--space-sm);
}
.file-item .file-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: var(--weight-semibold);
}
.file-icon.pdf { background: var(--red-50); color: var(--red-500); }
.file-icon.img { background: var(--blue-50); color: var(--blue-400); }
.file-item .file-info { flex: 1; min-width: 0; }
.file-item .file-name { font-size: 13px; font-weight: var(--weight-medium); color: var(--gray-800); }
.file-item .file-size { font-size: 11px; color: var(--gray-400); }
.file-item .file-remove {
  background: none; border: none;
  color: var(--gray-400); cursor: pointer;
  padding: var(--space-xs); border-radius: 6px;
  min-width: 44px; min-height: 44px;
}
.file-item .file-remove:hover { color: var(--red-500); background: var(--red-50); }
.file-item .file-status {
  font-size: 11px; padding: 3px 8px; border-radius: var(--radius-full);
}
.file-status.uploaded { background: var(--green-50); color: var(--green-500); }
.file-status.uploading { background: var(--blue-50); color: var(--blue-500); }

/* ── Document Request Card ── */
.doc-request-card {
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  border-radius: 12px;
  padding: var(--space-md) 20px;
  margin-bottom: 20px;
}
.doc-request-card .doc-request-title {
  font-size: 13px; font-weight: var(--weight-semibold);
  color: var(--purple-700); margin-bottom: var(--space-sm);
}
.doc-request-card ul { margin: 0; padding-left: 20px; }
.doc-request-card li { font-size: 13px; color: var(--gray-700); margin-bottom: 4px; }

/* ── Deadline Badge ── */
.deadline-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: var(--weight-semibold);
}
.deadline-normal { background: var(--orange-50); color: var(--orange-300); }
.deadline-urgent { background: var(--red-50); color: var(--red-500); }

/* ── Info Callout ── */
.info-callout {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 10px;
  font-size: 13px; color: var(--gray-700);
  margin-bottom: var(--space-md);
}
.info-callout svg { flex-shrink: 0; margin-top: 1px; color: var(--blue-500); }

/* ── Transfer Detail ── */
.detail-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 12px; margin-bottom: var(--space-md);
}
.detail-id { font-size: 13px; color: var(--gray-500); }
.detail-id strong { color: var(--gray-800); }
.detail-meta { display: flex; gap: var(--space-lg); flex-wrap: wrap; }
.detail-meta-item { font-size: 13px; color: var(--gray-500); }
.detail-meta-item span { display: block; color: var(--gray-800); font-weight: var(--weight-medium); margin-top: 2px; }
.detail-actions { display: flex; gap: var(--space-sm); }

.course-review-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.course-review-table th {
  text-align: left; padding: 10px 14px;
  font-size: 11px; font-weight: var(--weight-semibold);
  color: var(--gray-400); text-transform: uppercase; letter-spacing: .4px;
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-50);
}
.course-review-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--gray-50);
  color: var(--gray-700);
  vertical-align: middle;
}
.course-review-table tr:last-child td { border-bottom: none; }
.course-review-table .course-source { font-weight: var(--weight-medium); }
.course-review-table .course-target { color: var(--gray-500); font-size: 12px; }

/* ── Timeline ── */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  display: flex; gap: 14px;
  padding-bottom: var(--space-md);
  position: relative;
}
.timeline li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px; top: 28px;
  width: 2px; height: calc(100% - 4px);
  background: var(--gray-200);
}
.timeline-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-100);
  color: var(--gray-500);
  z-index: 1;
}
.timeline-dot.success { background: var(--green-100); color: var(--green-500); }
.timeline-dot.warning { background: var(--yellow-100); color: var(--orange-300); }
.timeline-dot.error { background: var(--red-50); color: var(--red-500); }
.timeline-dot.info { background: var(--blue-50); color: var(--blue-500); }
.timeline-content { flex: 1; }
.timeline-content .tl-title { font-size: 13px; font-weight: var(--weight-semibold); color: var(--gray-800); }
.timeline-content .tl-date { font-size: 11px; color: var(--gray-400); margin-top: 2px; }
.timeline-content .tl-desc { font-size: 12px; color: var(--gray-500); margin-top: 4px; }

/* ── Officer Comment ── */
.officer-comment {
  padding: 12px 16px;
  background: var(--gray-50);
  border-radius: 10px;
  border-left: 3px solid var(--purple-300);
  font-size: 13px; color: var(--gray-700);
  margin-bottom: var(--space-sm);
}
.officer-comment .oc-author { font-size: 11px; color: var(--gray-400); margin-top: 4px; }

/* ── Footer ── */
.footer { text-align: center; font-size: 12px; color: var(--gray-400); padding: 28px 0 0; }

/* ── Bottom Navigation ── */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  z-index: 200;
  padding: 6px 8px env(safe-area-inset-bottom, 8px);
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 4px;
  text-decoration: none; border-radius: 10px;
  font-size: 10px; color: var(--gray-400);
  transition: all .15s;
  min-height: 44px; justify-content: center;
}
.bottom-nav a svg { width: 20px; height: 20px; }
.bottom-nav a.active { color: var(--purple-600); }
.bottom-nav a.active svg { stroke: var(--purple-600); }

/* ── Toast (overrides upload-docs custom implementation) ── */
.toast-container {
  position: fixed; top: 80px; right: var(--space-lg);
  z-index: 9999;
  display: flex; flex-direction: column; gap: var(--space-sm);
  pointer-events: none;
}
.toast-item {
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13px; font-weight: var(--weight-medium);
  color: var(--white);
  box-shadow: var(--shadow-md);
  animation: toastSlideIn .3s ease;
  display: flex; align-items: center; gap: var(--space-sm);
  max-width: 380px;
  pointer-events: auto;
}
.toast-item.success { background: var(--green-500); }
.toast-item.error { background: var(--red-500); }
.toast-item.info { background: var(--blue-500); }

@keyframes toastSlideIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ── Responsive: Tablet (≤768px) ── */
@media (max-width: 768px) {
  .topnav-links { display: none; }
  .hamburger { display: flex; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .bottom-nav { display: grid; }
  body { padding-bottom: 72px; }
  .container { padding: 14px 14px 28px; }
  .page-actions { width: 100%; }
  .page-actions .btn-primary,
  .page-actions .btn-outline { flex: 1; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .btn-row { flex-direction: column; }
  .btn-row .btn,
  .btn-row .btn-primary,
  .btn-row .btn-secondary { width: 100%; text-align: center; justify-content: center; }
  .detail-header { flex-direction: column; }
  .detail-meta { gap: 12px; }
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; justify-content: center; }
}

/* ── Responsive: Mobile Cards (≤640px) ── */
@media (max-width: 640px) {
  .tbl-wrap table,
  .tbl-wrap thead,
  .tbl-wrap tbody,
  .tbl-wrap th,
  .tbl-wrap td,
  .tbl-wrap tr { display: block; }
  .tbl-wrap thead { display: none; }
  .tbl-wrap tr {
    background: var(--white);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid var(--gray-100);
  }
  .tbl-wrap td {
    padding: 6px 0; border: none; text-align: left;
    display: flex; justify-content: space-between; align-items: center;
  }
  .tbl-wrap td:before {
    content: attr(data-label);
    font-size: 11px; font-weight: var(--weight-semibold);
    color: var(--gray-400); text-transform: uppercase;
    flex-shrink: 0; margin-right: 12px;
  }

  .match-table,
  .match-table thead,
  .match-table tbody,
  .match-table th,
  .match-table td,
  .match-table tr { display: block; }
  .match-table thead { display: none; }
  .match-table tr {
    background: var(--white);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid var(--gray-100);
  }
  .match-table td {
    padding: 6px 0; border: none; text-align: left;
    display: flex; justify-content: space-between; align-items: center;
  }
  .match-table td:before {
    content: attr(data-label);
    font-size: 11px; font-weight: var(--weight-semibold);
    color: var(--gray-400); text-transform: uppercase;
    flex-shrink: 0; margin-right: 12px;
  }

  .course-review-table,
  .course-review-table thead,
  .course-review-table tbody,
  .course-review-table th,
  .course-review-table td,
  .course-review-table tr { display: block; }
  .course-review-table thead { display: none; }
  .course-review-table tr {
    background: var(--white);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid var(--gray-100);
  }
  .course-review-table td {
    padding: 6px 0; border: none; text-align: left;
    display: flex; justify-content: space-between; align-items: center;
  }
  .course-review-table td:before {
    content: attr(data-label);
    font-size: 11px; font-weight: var(--weight-semibold);
    color: var(--gray-400); text-transform: uppercase;
    flex-shrink: 0; margin-right: 12px;
  }

  .kpi-row { grid-template-columns: repeat(2, 1fr); }
}

/* ── Responsive: Ultra-Compact (≤480px) ── */
@media (max-width: 480px) {
  .kpi-card { padding: 10px 12px; }
  .kpi-icon { width: 34px; height: 34px; }
  .kpi-icon svg { width: 16px; height: 16px; }
  .kpi-val { font-size: 22px; }
  .page-hdr { flex-direction: column; align-items: flex-start; }
}
