/* Rolling Cage UAV Propulsion Dashboard Stylesheet */
:root {
  --bg-primary: #0b0f17;
  --bg-surface: #121824;
  --bg-surface-elevated: #1a2332;
  --bg-card: #151d2c;
  --bg-card-hover: #1e293b;
  --border-subtle: #243144;
  --border-accent: #334b6b;
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --primary: #38bdf8;
  --primary-hover: #0ea5e9;
  --primary-glow: rgba(56, 189, 248, 0.15);
  
  --accent-cyan: #06b6d4;
  --accent-violet: #818cf8;
  
  --status-pass: #10b981;
  --status-pass-bg: rgba(16, 185, 129, 0.15);
  --status-caution: #f59e0b;
  --status-caution-bg: rgba(245, 158, 11, 0.15);
  --status-fail: #ef4444;
  --status-fail-bg: rgba(239, 68, 68, 0.15);
  --status-star: #eab308;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, "Courier New", monospace;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.5);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================== */
/* HEADER STYLING */
/* ============================================================== */
.app-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.header-left .brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.5));
}

.brand-text h1 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-accent {
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  color: #0b0f17;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.06em;
}

.brand-text .subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.header-presets {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-primary);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.preset-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-right: 4px;
}

.preset-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-btn:hover {
  color: var(--text-main);
  background: var(--bg-surface-elevated);
}

.preset-btn.active {
  background: var(--primary);
  color: #0b0f17;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Prop Search Box */
.prop-search-box {
  position: relative;
  width: 240px;
}

.prop-search-box .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.prop-search-box input {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 12px 6px 30px;
  font-size: 0.8rem;
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.prop-search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  max-height: 280px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: var(--shadow-lg);
}

.search-dropdown.hidden {
  display: none;
}

.search-item {
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.15s;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background: var(--bg-card-hover);
  color: var(--primary);
}

.search-item .item-meta {
  color: var(--text-dim);
  font-size: 0.7rem;
}

/* Mode Switcher Tabs */
.mode-tabs {
  display: flex;
  background: var(--bg-primary);
  padding: 3px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.mode-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.mode-tab:hover {
  color: #fff;
}

.mode-tab.active {
  background: var(--bg-surface-elevated);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn-config {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-accent);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.btn-config:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  color: var(--primary);
}

/* ============================================================== */
/* MAIN CONTENT & LAYOUT */
/* ============================================================== */
.main-content {
  flex: 1;
  padding: 1.25rem 1.5rem;
  max-width: 1800px;
  width: 100%;
  margin: 0 auto;
}

.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
}

/* Toolbar Card */
.toolbar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.filter-group label {
  font-weight: 600;
  color: var(--text-main);
}

.btn-group {
  display: flex;
  background: var(--bg-primary);
  padding: 2px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.btn-filter {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-filter:hover {
  color: #fff;
}

.btn-filter.active {
  background: var(--bg-surface-elevated);
  color: var(--primary);
}

.custom-range {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.custom-range input {
  width: 60px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px 6px;
  font-size: 0.75rem;
  color: #fff;
  text-align: center;
}

.custom-range.hidden {
  display: none;
}

.btn-apply-sm {
  background: var(--primary);
  color: #0b0f17;
  border: none;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

select {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.78rem;
  padding: 5px 10px;
  outline: none;
}

select:focus {
  border-color: var(--primary);
}

.search-filter input {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.78rem;
  padding: 5px 12px;
  width: 170px;
  outline: none;
}

.search-filter input:focus {
  border-color: var(--primary);
}

.filter-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--primary);
  color: #0b0f17;
  border: none;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-accent);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
}

/* Envelope Ribbon */
.envelope-ribbon {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.ribbon-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ribbon-item strong {
  color: var(--text-main);
  font-family: var(--font-mono);
}

/* ============================================================== */
/* KPI GRIDS */
/* ============================================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s;
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-accent);
}

.kpi-card.highlight {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), var(--bg-surface));
}

.kpi-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.kpi-val {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.kpi-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ============================================================== */
/* CHARTS GRID */
/* ============================================================== */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

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

.chart-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-sm);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.chart-header h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.chart-tag {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.chart-container {
  position: relative;
  height: 240px;
  width: 100%;
}

/* ============================================================== */
/* TABLES */
/* ============================================================== */
.table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
}

.table-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.table-card-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.table-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.table-legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
}

.legend-badge {
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.legend-badge.pass {
  background: var(--status-pass-bg);
  color: var(--status-pass);
}

.legend-badge.caution {
  background: var(--status-caution-bg);
  color: var(--status-caution);
}

.legend-badge.fail {
  background: var(--status-fail-bg);
  color: var(--status-fail);
}

.legend-badge.star {
  color: var(--status-star);
  font-weight: 700;
}

.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

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

.data-table th {
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  font-weight: 600;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.data-table th:hover {
  color: #fff;
  background: var(--bg-card-hover);
}

.data-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.data-table tbody tr {
  transition: background 0.15s;
  cursor: pointer;
}

.data-table tbody tr:hover {
  background: var(--bg-card-hover);
}

.data-table tbody tr.top-cluster {
  background: rgba(56, 189, 248, 0.05);
}

.data-table tbody tr.row-fail {
  opacity: 0.55;
}

/* Badges inside tables */
.badge-status {
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  font-weight: 800;
  display: inline-block;
  letter-spacing: 0.03em;
}

.badge-status.pass {
  background: var(--status-pass-bg);
  color: var(--status-pass);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-status.caution {
  background: var(--status-caution-bg);
  color: var(--status-caution);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-status.fail {
  background: var(--status-fail-bg);
  color: var(--status-fail);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-table-action {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-accent);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-table-action:hover {
  background: var(--primary);
  color: #0b0f17;
}

/* ============================================================== */
/* DEEP DIVE VIEW STYLES */
/* ============================================================== */
.deep-hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.deep-hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.prop-badge-large {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.deep-prop-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.meta-tag {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.74rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.deep-hero-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.deep-verdict-badge {
  font-size: 1.1rem;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: var(--radius-md);
  letter-spacing: 0.05em;
}

.deep-verdict-badge.pass {
  background: var(--status-pass-bg);
  color: var(--status-pass);
  border: 1px solid var(--status-pass);
}

.deep-verdict-badge.caution {
  background: var(--status-caution-bg);
  color: var(--status-caution);
  border: 1px solid var(--status-caution);
}

.deep-verdict-badge.fail {
  background: var(--status-fail-bg);
  color: var(--status-fail);
  border: 1px solid var(--status-fail);
}

.deep-selector-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.deep-selector-box label {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 600;
}

.deep-selector-box select {
  min-width: 180px;
}

/* Deep Grid 2x2 */
.deep-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

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

.deep-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.deep-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.deep-card-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.badge-info {
  background: var(--primary-glow);
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

/* Subcomponent Layout */
.subcomponent-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  align-items: center;
}

@media (max-width: 600px) {
  .subcomponent-layout {
    grid-template-columns: 1fr;
  }
}

.subcomponent-chart-box {
  position: relative;
  height: 180px;
  width: 180px;
  margin: 0 auto;
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.mini-table th {
  color: var(--text-dim);
  font-weight: 600;
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.mini-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
}

/* Snowball Banner */
.snowball-banner {
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.1), rgba(56, 189, 248, 0.05));
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.snowball-icon {
  font-size: 1.4rem;
}

.snowball-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-violet);
  margin-bottom: 2px;
}

.snowball-text p {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Detail Tables */
.metrics-table-container {
  overflow-x: auto;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.detail-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.detail-table td:first-child {
  color: var(--text-muted);
  font-weight: 500;
}

.detail-table td:last-child {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 600;
  color: #fff;
}

.detail-table tr.highlight-row {
  background: rgba(56, 189, 248, 0.08);
}

.detail-table tr.highlight-row td {
  color: var(--primary) !important;
}

/* Deep Curves Card */
.deep-curves-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  margin-top: 1.25rem;
}

.curve-toggle-group {
  display: flex;
  background: var(--bg-primary);
  padding: 2px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.btn-curve-toggle {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-curve-toggle.active {
  background: var(--bg-surface-elevated);
  color: var(--primary);
}

.curve-chart-container {
  position: relative;
  height: 320px;
  width: 100%;
  margin-top: 1rem;
}

/* ============================================================== */
/* CONFIG DRAWER */
/* ============================================================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  z-index: 99;
}

.drawer-overlay.hidden {
  display: none;
}

.config-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 520px;
  max-width: 95vw;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-accent);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(0);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.config-drawer.hidden {
  transform: translateX(100%);
  display: none;
}

.drawer-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.drawer-title h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
}

.btn-close:hover {
  color: #fff;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.config-section h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.config-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.config-item label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.config-item input,
.config-item select {
  width: 100%;
}

.drawer-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  background: var(--bg-surface-elevated);
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-accent);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

