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

:root {
  --navy: #213a7b;
  --navy-dark: #172d60;
  --navy-light: #eef1f8;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --green: #16a34a;
  --amber: #d97706;
  --red: #dc2626;
  --blue: #2563eb;
  --teal: #0d9488;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-md: 0 8px 24px rgba(33, 58, 123, .08);
}

body {
  font-family: Poppins, sans-serif;
  background: #f1f5f9;
  color: var(--text);
  min-height: 100vh;
}

.member-portal { background: #f1f5f9; }

/* ── Navigation ── */
.portal-nav {
  background: var(--navy);
  color: #fff;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(23, 45, 96, .25);
  position: sticky;
  top: 0;
  z-index: 50;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
}

.portal-brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  padding: 2px;
}

.portal-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.portal-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}

.portal-nav-link i { font-size: 15px; opacity: .9; }
.portal-nav-link:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.portal-nav-link.active { background: rgba(255, 255, 255, .16); color: #fff; font-weight: 600; }

.portal-nav-logout { margin: 0; margin-left: 4px; }

.portal-nav-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  font-family: Poppins, sans-serif;
  cursor: pointer;
  transition: background .15s;
}

.portal-nav-logout-btn:hover { background: rgba(255, 255, 255, .18); }

.portal-main { min-height: calc(100vh - 56px); }

.portal-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.portal-wrap--narrow { max-width: 1060px; }

/* ── Typography & cards ── */
.portal-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.portal-card--flush { padding: 0; overflow: hidden; }
.portal-card--sticky { position: sticky; top: 88px; align-self: start; }

.portal-title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 6px; }
.portal-sub { font-size: 14px; color: var(--muted); margin-bottom: 20px; line-height: 1.55; }

.card-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.card-section-head h2 { font-size: 15px; font-weight: 700; }
.card-section-meta { font-size: 12px; color: var(--muted); font-weight: 500; }

.card-heading {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy-dark);
}

.card-heading i { color: var(--navy); font-size: 17px; }
.card-heading-sm { font-size: 13px; font-weight: 700; margin-bottom: 12px; color: var(--navy-dark); }

/* ── Dashboard hero ── */
.dash-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 24px 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.dash-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 6px;
}

.dash-hero-title {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 8px;
  color: var(--navy-dark);
}

.dash-hero-sub {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 520px;
}

.dash-hero-sub strong { color: var(--text); font-weight: 600; }

.btn-hero {
  flex-shrink: 0;
}

/* ── Stats row ── */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.dash-stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.dash-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--navy-light);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.dash-stat-icon--amber { background: #fef3c7; color: #b45309; }
.dash-stat-icon--green { background: #dcfce7; color: #15803d; }

.dash-stat-value { font-size: 24px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.dash-stat-label { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }

/* ── Application cards (mobile-first list) ── */
.app-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.app-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}

.app-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 6px 20px rgba(33, 58, 123, .08);
}

.app-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.app-card-ref {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  font-family: ui-monospace, monospace;
  letter-spacing: .02em;
}

.app-card-product {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}

.app-card-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
  margin-bottom: 14px;
}

.app-metric-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: 2px;
}

.app-metric-value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.app-card-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  line-height: 1.5;
}

.app-card-note i { flex-shrink: 0; margin-top: 1px; }

.app-card-actions { display: flex; gap: 8px; }

.app-table-wrap { display: none; }

/* ── Detail page ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 16px;
  transition: color .15s;
}

.back-link:hover { color: var(--navy); }

.detail-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 24px;
  border-radius: 16px;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--navy);
}

.detail-hero--blue { border-left-color: #2563eb; }
.detail-hero--amber { border-left-color: #d97706; }
.detail-hero--orange { border-left-color: #ea580c; }
.detail-hero--green { border-left-color: #16a34a; }
.detail-hero--red { border-left-color: #dc2626; }
.detail-hero--teal { border-left-color: #0d9488; }

.detail-ref {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  letter-spacing: -.02em;
  font-family: ui-monospace, monospace;
  color: var(--navy-dark);
  margin-bottom: 6px;
}

.detail-meta {
  font-size: 13.5px;
  color: var(--muted);
}

.detail-meta-sep { margin: 0 4px; opacity: .5; }

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 18px;
  align-items: start;
}

.detail-main { min-width: 0; }
.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: start;
  min-width: 0;
}

.detail-sidebar .portal-card {
  margin-bottom: 0;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .detail-sidebar {
    position: sticky;
    top: 72px;
    max-height: none;
    overflow: visible;
  }
}

.detail-progress-mobile { display: none; }
.detail-progress-desktop { display: block; }

.status-summary-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.status-summary-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  flex: 1;
  min-width: 200px;
  margin: 0;
}

.status-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.flash.warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.loan-preview-intro {
  font-size: 13px;
  color: var(--muted);
  margin: -8px 0 16px;
}

.loan-preview-block {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 14px;
}

.loan-preview-block:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.loan-preview-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 10px;
}

.loan-preview-dl {
  display: grid;
  gap: 8px;
}

.loan-preview-dl div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  font-size: 13px;
}

.loan-preview-dl dt {
  color: var(--muted);
  font-weight: 500;
}

.loan-preview-dl dd { margin: 0; font-weight: 600; color: var(--text); }

.loan-preview-docs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}

.loan-preview-doc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
}

.loan-preview-doc img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
}

.loan-preview-doc-icon {
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 6px;
  font-size: 28px;
  color: var(--muted);
}

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

.details-fold { padding: 0; }
.details-fold-summary {
  cursor: pointer;
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy-dark);
}

.details-fold-summary::-webkit-details-marker { display: none; }
.details-fold[open] .details-fold-summary { border-bottom: 1px solid var(--border); }
.details-fold .detail-grid { padding: 0 22px 18px; }

.app-card-summary {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 12px;
}

.action-link--muted {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

.notice-card {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  margin-bottom: 18px;
  border: 1px solid;
}

.notice-card--amber {
  background: #fffbeb;
  border-color: #fde68a;
}

.notice-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fef3c7;
  color: #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.notice-title { font-size: 13px; font-weight: 700; color: #92400e; margin-bottom: 6px; }
.notice-body { font-size: 13.5px; color: #78350f; line-height: 1.6; }
.notice-foot { font-size: 11.5px; color: #a16207; margin-top: 8px; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.metric-tile {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}

.metric-tile--primary {
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
  border-color: #bfdbfe;
  grid-column: 1 / -1;
}

.metric-tile-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: 4px;
}

.metric-tile-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

.metric-tile-value--sm { font-size: 14px; font-weight: 600; color: var(--text); }

/* ── Progress tracker ── */
.progress-tracker {
  list-style: none;
  padding: 0;
  margin: 0;
}

.progress-step {
  display: flex;
  gap: 14px;
  padding-bottom: 22px;
  position: relative;
}

.progress-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: #e2e8f0;
}

.progress-step--done:not(:last-child)::before { background: #86efac; }
.progress-step--active:not(:last-child)::before { background: linear-gradient(180deg, #93c5fd, #e2e8f0); }

.progress-marker {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  font-size: 14px;
  color: #fff;
}

.progress-step--done .progress-marker {
  background: var(--green);
  border-color: var(--green);
}

.progress-step--active .progress-marker {
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(33, 58, 123, .15);
}

.progress-step--error .progress-marker {
  background: var(--red);
  border-color: var(--red);
}

.progress-step--pending .progress-marker { background: #f8fafc; }

.progress-step--skipped .progress-marker {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #94a3b8;
}

.progress-step--skipped .progress-label { color: var(--muted); text-decoration: line-through; }

.progress-pulse {
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.4s ease infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: .7; }
}

.progress-body {
  flex: 1;
  min-width: 0;
}

.progress-label { font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.progress-hint { font-size: 12px; color: var(--muted); line-height: 1.45; word-break: break-word; }

.progress-step--pending .progress-label { color: var(--muted); font-weight: 500; }

.sidebar-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.action-stack { display: flex; flex-direction: column; gap: 4px; }

.action-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  transition: background .15s;
}

.action-link i { font-size: 17px; color: var(--muted); }
.action-link:hover { background: var(--navy-light); }

/* ── Status pills ── */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}

.status-pill--lg { font-size: 12px; padding: 6px 14px; }

.status-pill.blue { background: #dbeafe; color: #1d4ed8; }
.status-pill.amber { background: #fef3c7; color: #b45309; }
.status-pill.orange { background: #ffedd5; color: #c2410c; }
.status-pill.green { background: #dcfce7; color: #15803d; }
.status-pill.red { background: #fee2e2; color: #b91c1c; }
.status-pill.teal { background: #ccfbf1; color: #0f766e; }
.status-pill.gray { background: #f1f5f9; color: #475569; }
.status-pill.slate { background: #e2e8f0; color: #334155; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: Poppins, sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .2s, transform .15s, background .15s;
}

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { opacity: .92; }

.btn-outline {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid #93c5fd;
}

.btn-outline:hover { background: #eff6ff; }

.btn-sm { padding: 8px 14px; font-size: 12px; }

/* ── Details & docs ── */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}

.detail-item label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: 4px;
}

.detail-item span {
  font-size: 13.5px;
  font-weight: 500;
  word-break: break-word;
  line-height: 1.45;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.doc-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s;
}

.doc-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 16px rgba(33, 58, 123, .1);
}

.doc-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}

.doc-file-placeholder {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fef2f2;
  color: #dc2626;
  font-size: 36px;
}

.doc-label {
  padding: 10px 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.doc-open-icon { font-size: 13px; opacity: .6; }

/* ── Flash & empty ── */
.flash {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.flash-icon {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.flash-icon i { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

.flash.ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.flash.err { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }

.empty-state { text-align: center; padding: 48px 24px; color: var(--muted); font-size: 14px; }

.empty-state--rich h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 12px 0 8px;
}

.empty-state--rich p {
  max-width: 360px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--navy-light);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

/* ── Admin (unchanged layout) ── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-box { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.stat-box .n { font-size: 22px; font-weight: 700; color: var(--navy); }
.stat-box .l { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; margin-top: 4px; }

.app-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.app-table th, .app-table td { padding: 11px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.app-table th { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.app-table tr:hover td { background: #f8fafc; }

.timeline { list-style: none; padding: 0; }
.timeline li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: 13px; }
.timeline li:last-child { border-bottom: none; }
.timeline-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--navy); margin-top: 5px; flex-shrink: 0; }

.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: Poppins, sans-serif;
  font-size: 14px;
}
.form-row textarea { min-height: 90px; resize: vertical; }

/* ── Responsive ── */
@media (min-width: 900px) {
  .app-card-list { display: none; }
  .app-table-wrap {
    display: block;
    padding: 0 8px 8px;
    overflow-x: auto;
  }
}

@media (max-width: 899px) {
  .dash-stats { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-progress-mobile { display: block; }
  .detail-progress-desktop { display: none; }
  .detail-sidebar { position: static; }
  .loan-preview-dl div { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-tile--primary { grid-column: auto; }
}

@media (max-width: 640px) {
  .portal-nav { padding: 12px 16px; }
  .portal-nav-links { width: 100%; justify-content: flex-start; }
  .dash-hero { padding: 20px; }
  .btn-hero { width: 100%; }
  .app-card-metrics { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { display: flex; flex-wrap: wrap; gap: 6px; }
  .admin-side a { margin: 0; }
}
