:root {
  --bg-primary: #0a0f1a;
  --bg-secondary: #121a2a;
  --bg-tertiary: #1a2538;
  --bg-elevated: #22314a;
  --bg-hover: #2a3d5c;

  --text-primary: #e8eef9;
  --text-secondary: #b7c3d9;
  --text-tertiary: #8fa1bf;
  --text-muted: #6f83a6;

  --accent: #4f8cff;
  --accent-subtle: rgba(79, 140, 255, 0.12);
  --accent-muted: rgba(79, 140, 255, 0.18);
  --accent-hover: #73a6ff;

  --success: #2dd4a0;
  --success-muted: rgba(45, 212, 160, 0.16);
  --warning: #f59e0b;
  --warning-muted: rgba(245, 158, 11, 0.16);
  --danger: #fb7185;
  --danger-muted: rgba(251, 113, 133, 0.16);
  --info: #38bdf8;
  --info-muted: rgba(56, 189, 248, 0.16);

  --border: #2a3b58;
  --border-subtle: #23324b;
  
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(79, 140, 255, 0.22);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
  
  --header-height: 56px;
  --stats-height: 48px;
  --sidebar-width: 360px;
}

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

html, body { height: 100%; overflow: hidden; }

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { 
  font-family: inherit; 
  font-size: inherit; 
  border: none; 
  background: transparent; 
  color: inherit; 
  cursor: pointer;
}
input, textarea { outline: none; background: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

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

.logo {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #4f8cff;
  border-radius: var(--radius-md);
  color: #041225;
}

.brand h1 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.brand span {
  font-size: 11px;
  color: var(--text-tertiary);
}

.header-center { flex: 1; display: flex; justify-content: center; }

.header-right { display: flex; align-items: center; gap: 8px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 13px;
  transition: all 0.15s ease;
}

.btn-upload {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.btn-upload:hover {
  background: var(--bg-elevated);
  border-color: var(--text-muted);
}

.btn-primary {
  background: var(--accent);
  color: #f8fbff;
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-glow);
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
}
.btn-icon:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.btn-settings {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
}
.btn-settings:hover {
  border-color: var(--text-muted);
  background: var(--bg-elevated);
}

.btn-ghost { color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-tertiary); }

.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-close { width: 28px; height: 28px; color: var(--text-muted); }
.btn-close:hover { color: var(--text-primary); background: var(--bg-hover); }

/* Stats Bar */
.stats-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--stats-height);
  padding: 0 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.stat-group { display: flex; align-items: center; gap: 10px; }
.stat-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.stat-divider { width: 1px; height: 24px; background: var(--border); }
.stat-spacer { flex: 1; }

.stat-chips { display: flex; gap: 6px; }
.stat-nums { display: flex; gap: 12px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.chip-text { background: var(--accent-muted); color: var(--accent); }
.chip-code { background: var(--info-muted); color: var(--info); }
.chip-heading { background: var(--warning-muted); color: var(--warning); }
.chip-table { background: var(--success-muted); color: var(--success); }

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.stat-val {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}
.stat-lbl {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}
.stat-item.highlight .stat-val { color: var(--accent); }

.health-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.health-badge:hover { border-color: var(--text-muted); }
.health-badge.good {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.12);
}
.health-badge.error { border-color: var(--danger); }
.health-badge.warning { border-color: var(--warning); }

.health-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}
.health-badge.error .health-dot { background: var(--danger); }
.health-badge.warning .health-dot { background: var(--warning); }
.health-badge.good .health-dot { background: var(--success); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Workspace */
.workspace {
  position: relative;
  display: flex;
  height: calc(100vh - var(--header-height) - var(--stats-height));
  overflow: hidden;
}

.sidebar-dock-toggle {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 35;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.15s ease, border-color 0.15s ease;
}
.sidebar-dock-toggle.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.sidebar-dock-toggle:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
  background: var(--bg-elevated);
}

/* Input Sidebar */
.input-sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: margin-left 0.22s ease;
}
.input-sidebar.collapsed {
  margin-left: calc(var(--sidebar-width) * -1);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 13px;
}

.sidebar-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 12px;
  overflow-y: auto;
}

.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 16px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-tertiary);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-subtle);
}
.upload-zone svg { color: var(--text-muted); }
.upload-zone p { color: var(--text-secondary); font-size: 13px; }
.upload-zone span { font-size: 12px; color: var(--text-muted); }
.upload-zone .link { color: var(--accent); cursor: pointer; }
.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.flex-1 { flex: 1; min-height: 0; }
.form-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}
.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.char-count {
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

input[type="text"], textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 13px;
  transition: border-color 0.15s ease;
}
input[type="text"]:focus, textarea:focus { border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--text-muted); }

textarea {
  flex: 1;
  resize: none;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
}

.btn-run {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
}

.status {
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-tertiary);
  color: var(--text-muted);
}
.status.error { background: var(--danger-muted); color: var(--danger); }
.status.success { background: var(--success-muted); color: var(--success); }

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.source-pane, .chunks-pane {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.source-pane { flex: 1; min-width: 0; }
.chunks-pane { width: 380px; border-left: 1px solid var(--border); }

.pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: 12px;
}

.pane-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.pane-title svg { color: var(--text-muted); }
.file-name { color: var(--text-primary); }

.coverage-badge {
  padding: 4px 10px;
  background: var(--success-muted);
  color: var(--success);
  font-size: 11px;
  font-weight: 600;
  border-radius: 12px;
}
.coverage-badge.warning { background: var(--danger-muted); color: var(--danger); }

.filter-bar { display: flex; gap: 4px; }

.filter-btn {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s ease;
}
.filter-btn:hover { color: var(--text-secondary); background: var(--bg-hover); }
.filter-btn.active { background: var(--accent); color: #f8fbff; }

.pane-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.selection-info { font-size: 12px; color: var(--text-muted); }
.toolbar-actions { display: flex; gap: 4px; }

.pane-body {
  flex: 1;
  overflow-y: auto;
  background: #0f1726;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
}
.empty-state svg { margin-bottom: 16px; opacity: 0.4; }
.empty-state h3 { font-size: 15px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.empty-state p { font-size: 13px; }

/* Source Lines */
.source-line {
  display: grid;
  grid-template-columns: 48px 1fr;
  min-height: 22px;
  line-height: 22px;
  transition: background 0.1s ease;
}
.source-line:hover { background: rgba(255,255,255,0.02); }

.line-num {
  text-align: right;
  padding-right: 12px;
  color: var(--text-muted);
  user-select: none;
  border-right: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 11px;
}

.line-content {
  padding-left: calc(12px + (var(--nest-depth, 0) * 10px));
  white-space: pre;
  font-family: var(--font-mono);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-line.covered .line-content {
  background: rgba(45, 212, 160, 0.14);
}
.source-line.active .line-content {
  background: rgba(79, 140, 255, 0.28);
  border-left: 3px solid var(--accent);
  margin-left: -2px;
}
.source-line.gap .line-content {
  background: rgba(251, 113, 133, 0.18);
}
.source-line.hovered .line-content {
  background: rgba(56, 189, 248, 0.16);
}

/* Chunk Cards */
.chunk-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 10px;
  padding: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}
.chunk-card:hover { border-color: var(--text-muted); }
.chunk-card.selected {
  border-color: var(--accent);
  background: rgba(79, 140, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(115, 166, 255, 0.2);
}

.chunk-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

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

.chunk-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }

.chunk-index { font-weight: 700; font-size: 13px; color: var(--accent); }

.chunk-type {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.chunk-type.text { background: var(--accent-muted); color: var(--accent); }
.chunk-type.code { background: var(--info-muted); color: var(--info); }
.chunk-type.heading { background: var(--warning-muted); color: var(--warning); }
.chunk-type.table { background: var(--success-muted); color: var(--success); }

.chunk-split {
  margin-left: auto;
  padding: 2px 6px;
  background: var(--bg-hover);
  color: var(--text-muted);
  font-size: 10px;
  border-radius: var(--radius-sm);
}

.chunk-meta {
  display: flex;
  gap: 12px;
  color: var(--text-muted);
  font-size: 11px;
  margin-bottom: 6px;
}

.chunk-preview {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  max-height: 36px;
  overflow: hidden;
  white-space: pre-wrap;
  line-height: 1.5;
}

.chunk-details-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  opacity: 0;
  transition: all 0.15s ease;
}
.chunk-card:hover .chunk-details-btn { opacity: 1; }
.chunk-details-btn:hover { background: var(--accent); color: #000; border-color: var(--accent); }

/* Health Panel */
.health-panel {
  position: fixed;
  top: var(--header-height);
  right: 0;
  bottom: 0;
  width: 320px;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 40;
}
.health-panel.open { transform: translateX(0); }

.health-panel .panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 13px;
}
.health-panel .panel-header span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--warning);
}
.health-panel .panel-body {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
}

.health-warning {
  padding: 12px;
  margin-bottom: 8px;
  background: var(--warning-muted);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: var(--radius-md);
}
.health-warning.clickable {
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.health-warning.clickable:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.health-warning.error { background: var(--danger-muted); border-color: rgba(248, 113, 113, 0.2); }
.health-warning.info { background: var(--info-muted); border-color: rgba(167, 139, 250, 0.2); }

.warning-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 12px;
  color: var(--warning);
  margin-bottom: 4px;
}
.health-warning.error .warning-title { color: var(--danger); }
.health-warning.info .warning-title { color: var(--info); }
.warning-text { font-size: 12px; color: var(--text-secondary); }
.gap-line-select {
  width: 100%;
  padding: 6px 8px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}
.modal.open { opacity: 1; visibility: visible; }

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 640px;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.2s ease;
}
.modal.open .modal-content { transform: scale(1); }
.modal-content.modal-lg { width: 760px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-header span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
}
.modal-header svg { color: var(--text-muted); }

.export-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
}
.tab {
  padding: 12px 16px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 13px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab:hover { color: var(--text-secondary); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.modal-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* Settings */
.settings-section { margin-bottom: 24px; }
.settings-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.settings-item { display: flex; flex-direction: column; gap: 6px; }
.settings-item.checkbox {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.settings-item label { font-size: 13px; }
.settings-item input[type="text"] {
  padding: 8px 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
}
.settings-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }

pre {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  color: var(--text-secondary);
}

/* Detail Modal */
.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.detail-meta { display: flex; align-items: center; gap: 10px; }
.type-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.type-badge.text { background: var(--accent-muted); color: var(--accent); }
.type-badge.code { background: var(--info-muted); color: var(--info); }
.type-badge.heading { background: var(--warning-muted); color: var(--warning); }
.type-badge.table { background: var(--success-muted); color: var(--success); }

.detail-index { font-size: 16px; font-weight: 700; }
.split-badge {
  padding: 3px 8px;
  background: var(--bg-hover);
  color: var(--text-muted);
  font-size: 10px;
  border-radius: var(--radius-sm);
}
.detail-stats { display: flex; gap: 16px; color: var(--text-secondary); font-size: 13px; }

.detail-section {
  padding: 12px 16px;
  background: var(--accent-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--text-secondary);
}
.detail-content label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.detail-content pre { max-height: 300px; overflow-y: auto; }

/* Responsive */
@media (max-width: 900px) {
  .main-content { flex-direction: column; }
  .chunks-pane { width: 100%; border-left: none; border-top: 1px solid var(--border); }
  .stats-bar { flex-wrap: wrap; height: auto; padding: 10px; gap: 10px; }
}
