@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* AFNIC Official Color Palette */
  --afnic-red: #DE0039;
  --afnic-red-hover: #BF0030;
  --afnic-red-subtle: rgba(222, 0, 57, 0.08);
  --afnic-red-glow: rgba(222, 0, 57, 0.25);

  --afnic-navy: #0E1B2E;
  --afnic-navy-light: #16273F;
  --afnic-slate: #334155;

  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-subtle: #F1F5F9;

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-dim: #94A3B8;

  --border-color: #E2E8F0;
  --border-focus: #DE0039;

  --accent-emerald: #10B981;
  --accent-amber: #F59E0B;
  --accent-blue: #2563EB;
  --accent-purple: #7C3AED;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 14px -2px rgba(14, 27, 46, 0.08);
  --shadow-lg: 0 12px 30px -4px rgba(14, 27, 46, 0.12);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);

  --transition-fast: 0.16s ease-in-out;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

code, .mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Container */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top Branding Bar */
.top-brand-bar {
  height: 4px;
  background: linear-gradient(90deg, #DE0039 0%, #FF3366 50%, #0E1B2E 100%);
  width: 100%;
}

/* Header */
header.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.brand-divider {
  width: 1px;
  height: 36px;
  background: var(--border-color);
}

.brand-text h1 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--afnic-navy);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-text h1 span {
  color: var(--afnic-red);
}

.brand-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--afnic-navy);
  background: var(--bg-subtle);
}

.nav-link.active {
  color: var(--afnic-red);
  background: var(--afnic-red-subtle);
}

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

/* User Badge & Switch */
.user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.user-role-pill {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}

.user-role-pill.afnic {
  background: var(--afnic-red);
  color: #fff;
}

.user-role-pill.client {
  background: var(--afnic-navy);
  color: #fff;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
  font-family: inherit;
}

.btn-primary, .btn-afnic {
  background: var(--afnic-red);
  color: #fff;
  box-shadow: 0 2px 6px rgba(222, 0, 57, 0.25);
}

.btn-primary:hover, .btn-afnic:hover {
  background: var(--afnic-red-hover);
  box-shadow: 0 4px 12px rgba(222, 0, 57, 0.35);
  transform: translateY(-1px);
}

.btn-navy {
  background: var(--afnic-navy);
  color: #fff;
}

.btn-navy:hover {
  background: var(--afnic-navy-light);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #FFFFFF;
  border-color: var(--border-color);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
  border-color: #CBD5E1;
}

.btn-outline-afnic {
  background: transparent;
  border-color: var(--afnic-red);
  color: var(--afnic-red);
}

.btn-outline-afnic:hover {
  background: var(--afnic-red-subtle);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
}

.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: var(--radius-sm);
}

/* Banner / Scope notification */
.scope-banner {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--afnic-red);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.scope-banner.client {
  border-left-color: var(--afnic-navy);
}

/* Stats Cards Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 1.5rem 0 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: #CBD5E1;
}

.stat-card.accent-red::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--afnic-red);
}

.stat-card.accent-navy::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--afnic-navy);
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.stat-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  color: var(--afnic-red);
}

.stat-value {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.1;
  font-family: 'JetBrains Mono', monospace;
}

.stat-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Control Bar (Search & Filters) */
.controls-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  flex: 1;
  min-width: 260px;
  transition: all var(--transition-fast);
}

.search-box:focus-within {
  border-color: var(--afnic-red);
  background: #fff;
  box-shadow: 0 0 0 3px var(--afnic-red-subtle);
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  padding: 10px 8px;
  width: 100%;
  font-size: 0.92rem;
  font-family: inherit;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.select-control {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.select-control:focus {
  border-color: var(--afnic-red);
}

/* Table Styles */
.table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-card);
  margin-bottom: 3rem;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

table.data-table th {
  background: #F8FAFC;
  padding: 14px 18px;
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

table.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

table.data-table tbody tr {
  transition: background var(--transition-fast);
}

table.data-table tbody tr:hover {
  background: #F8FAFC;
}

/* Monospaced SID pill */
.sid-pill {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--afnic-navy);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sid-pill:hover {
  background: var(--afnic-red-subtle);
  border-color: var(--afnic-red);
  color: var(--afnic-red);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-module {
  background: rgba(124, 58, 237, 0.1);
  color: #7C3AED;
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.badge-identity {
  background: rgba(37, 99, 235, 0.1);
  color: #2563EB;
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.badge-data {
  background: rgba(14, 165, 233, 0.1);
  color: #0284C7;
  border: 1px solid rgba(14, 165, 233, 0.25);
}

.badge-feature {
  background: rgba(245, 158, 11, 0.1);
  color: #D97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-stable {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-unstable {
  background: rgba(245, 158, 11, 0.1);
  color: #D97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

/* Progress bar for ranges */
.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: #E2E8F0;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 6px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--afnic-red);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(14, 27, 46, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--afnic-navy);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-body {
  padding: 24px;
  max-height: 75vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: #F8FAFC;
}

/* Form Styles */
.form-group {
  margin-bottom: 18px;
}

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

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.92rem;
  outline: none;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--afnic-red);
  box-shadow: 0 0 0 3px var(--afnic-red-subtle);
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 5px;
}

/* Login Page Styles */
.login-page-container {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.login-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--afnic-red);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  width: 100%;
  padding: 36px;
}

.login-header {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo {
  height: 72px;
  margin-bottom: 16px;
  object-fit: contain;
}

.login-header h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--afnic-navy);
}

.login-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.quick-demo-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 24px;
}

.quick-demo-title {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quick-demo-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--afnic-navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid var(--afnic-red);
}

.toast-success {
  border-left-color: var(--accent-emerald);
}

.toast-error {
  border-left-color: var(--afnic-red);
}

/* Footer */
footer.site-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border-color);
  padding: 32px 0;
  margin-top: 4rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

footer a:hover {
  color: var(--afnic-red);
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 14px 0;
    gap: 14px;
  }
  .controls-panel {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Interactive Range Bar Link */
.range-interactive-bar {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.range-interactive-bar:hover {
  transform: translateY(-1px);
}

.range-interactive-bar:hover .sid-pill {
  border-color: var(--afnic-red) !important;
  background: #FFF5F7 !important;
  box-shadow: 0 2px 8px rgba(222, 0, 57, 0.15);
}

.range-interactive-bar:hover span[style*="--afnic-red"] {
  text-decoration: underline;
}

/* ==========================================================================
   Windows Disk Defragmenter Style - 1M SID Grid Visualization
   ========================================================================== */

.defrag-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.defrag-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.defrag-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--afnic-navy);
}

.defrag-stats-ribbon {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.defrag-stat-chip {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #334155;
}

.defrag-stat-chip strong {
  color: var(--afnic-navy);
  font-weight: 800;
}

.defrag-stat-chip.active-chip {
  background: #EFF6FF;
  border-color: #93C5FD;
  color: #1E40AF;
}

.defrag-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #0F172A;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  padding: 10px 16px;
  color: #E2E8F0;
  font-size: 0.82rem;
}

.defrag-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.defrag-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #94A3B8;
}

.defrag-legend-box {
  width: 13px;
  height: 13px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.defrag-grid-container {
  background: #090D16;
  border: 2px solid #1E293B;
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  padding: 12px;
  position: relative;
  overflow-x: auto;
}

.defrag-grid {
  display: grid;
  grid-template-columns: repeat(50, 1fr);
  gap: 2.5px;
  min-width: 720px;
  user-select: none;
}

.defrag-cell {
  aspect-ratio: 1;
  border-radius: 2px;
  background: #1E293B;
  border: 1px solid #334155;
  transition: transform 0.12s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.12s ease;
  cursor: pointer;
  position: relative;
}

.defrag-cell.free:hover {
  background: #475569;
  border-color: #94A3B8;
  transform: scale(1.5);
  z-index: 5;
}

.defrag-cell.occupied {
  cursor: pointer;
}

.defrag-cell.occupied:hover {
  transform: scale(1.6);
  z-index: 10;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.95);
  filter: brightness(1.2);
}

.defrag-cell.highlighted {
  outline: 2px solid #F59E0B !important;
  box-shadow: 0 0 10px #F59E0B !important;
  transform: scale(1.6) !important;
  z-index: 15 !important;
}

.defrag-cell.selected {
  outline: 2px solid #38BDF8 !important;
  box-shadow: 0 0 12px #38BDF8 !important;
  transform: scale(1.5) !important;
  z-index: 12 !important;
}

/* Tooltip floating */
.defrag-tooltip {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.95);
  color: #F8FAFC;
  border: 1.5px solid #38BDF8;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.8rem;
  line-height: 1.4;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 0 15px rgba(56, 189, 248, 0.3);
  backdrop-filter: blur(8px);
  width: 290px;
  display: none;
}

.defrag-tip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid #334155;
}

.defrag-tip-badge {
  background: #1E40AF;
  color: #DBEAFE;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 4px;
}

.defrag-tip-badge.free {
  background: #065F46;
  color: #A7F3D0;
}

.defrag-tip-range {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #94A3B8;
  font-weight: 700;
}

.defrag-tip-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #38BDF8;
  margin-bottom: 6px;
}

.defrag-tip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: #CBD5E1;
  margin: 3px 0;
}

.defrag-tip-row strong {
  color: #FFFFFF;
}

.defrag-tip-bar-wrap {
  width: 100%;
  height: 6px;
  background: #334155;
  border-radius: 3px;
  overflow: hidden;
  margin: 6px 0 4px 0;
}

.defrag-tip-bar {
  height: 100%;
  background: linear-gradient(90deg, #38BDF8, #2563EB);
  border-radius: 3px;
}

.defrag-tip-status {
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px solid #334155;
  color: #34D399;
}

/* Detail panel below grid */
.defrag-inspector-card {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 14px 18px;
  margin-top: 14px;
  display: none;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

