/* ═══════════════════════════════════════════════════════════
   KIW Command Center — Design System
   Dark mode · Premium · Monochromatic with accent
═══════════════════════════════════════════════════════════ */

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

:root {
  --bg:          #09090b;
  --bg-2:        #111113;
  --bg-3:        #18181b;
  --bg-4:        #1f1f23;
  --border:      rgba(255,255,255,0.07);
  --border-2:    rgba(255,255,255,0.12);
  --text:        #fafafa;
  --text-2:      #a1a1aa;
  --text-3:      #52525b;
  --accent:      #6366f1;
  --accent-glow: rgba(99,102,241,0.25);
  --green:       #22c55e;
  --green-dim:   rgba(34,197,94,0.15);
  --orange:      #f97316;
  --orange-dim:  rgba(249,115,22,0.15);
  --red:         #ef4444;
  --red-dim:     rgba(239,68,68,0.15);
  --yellow:      #eab308;
  --yellow-dim:  rgba(234,179,8,0.15);
  --blue:        #3b82f6;
  --blue-dim:    rgba(59,130,246,0.15);
  --purple:      #a855f7;
  --radius:      10px;
  --radius-lg:   16px;
  --sidebar-w:   220px;
  --transition:  0.2s ease;
}

html, body { height: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── Login ─────────────────────────────────────────────── */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99,102,241,0.15), transparent);
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 40px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.logo-mark {
  font-size: 32px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: 12px;
  color: white;
  font-weight: 900;
}

.logo-text { display: flex; flex-direction: column; }
.logo-brand { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
.logo-product { font-size: 11px; color: var(--text-2); font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; }

.login-sub {
  color: var(--text-2);
  font-size: 13px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.login-step { display: flex; flex-direction: column; gap: 12px; }
.login-step:not(.active) { display: none; }

.field-label { font-size: 12px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.5px; }

.field-input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}
.field-input:focus { border-color: var(--accent); }
.field-input.otp-input { font-family: 'JetBrains Mono', monospace; font-size: 22px; text-align: center; letter-spacing: 8px; }

.btn-primary {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: opacity var(--transition), transform var(--transition);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 10px;
  font-size: 13px;
  cursor: pointer;
  width: 100%;
  transition: all var(--transition);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-2); }

.otp-sent-msg { font-size: 13px; color: var(--text-2); }
.otp-sent-msg strong { color: var(--text); }

.login-error {
  margin-top: 8px;
  padding: 10px 14px;
  background: var(--red-dim);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  color: var(--red);
  font-size: 13px;
}

/* ── App layout ────────────────────────────────────────── */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 12px;
  overflow-y: auto;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.logo-mark-sm {
  font-size: 16px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: 7px;
  color: white;
  font-weight: 900;
}
.sidebar-brand { font-weight: 700; font-size: 14px; }

.sidebar-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all var(--transition);
}
.nav-item:hover { background: var(--bg-4); color: var(--text); }
.nav-item.active { background: var(--accent-glow); color: var(--accent); }
.nav-icon { font-size: 14px; opacity: 0.8; }

.sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.user-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--text-2);
  overflow: hidden;
}
.user-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--green);
}
.btn-logout {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text-3);
  font-size: 12px;
  padding: 6px;
  border-radius: 7px;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-logout:hover { color: var(--red); border-color: var(--red); }

/* ── Main ──────────────────────────────────────────────── */
.main-content {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.topbar-left h1 { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; }
.view-sub { display: block; font-size: 12px; color: var(--text-2); margin-top: 2px; }

.topbar-right { display: flex; align-items: center; gap: 12px; }

.btn-scan {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-scan:hover { background: var(--accent); color: white; }
.btn-scan.scanning { opacity: 0.6; pointer-events: none; }
.scan-icon { font-size: 14px; }

.last-refresh { font-size: 11px; color: var(--text-3); }

/* ── Views ─────────────────────────────────────────────── */
.view { display: none; flex: 1; overflow-y: auto; padding: 24px 28px; }
.view.active { display: block; }

/* ── Stats bar ─────────────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: border-color var(--transition);
}
.stat-card:hover { border-color: var(--border-2); }
.stat-value { font-size: 28px; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.stat-value.green { color: var(--green); }
.stat-value.orange { color: var(--orange); }
.stat-value.blue { color: var(--blue); }
.stat-label { font-size: 11px; color: var(--text-2); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Dashboard grid ────────────────────────────────────── */
.dashboard-grid { display: flex; flex-direction: column; gap: 24px; }

.category-section {}
.category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.category-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-2);
}
.category-count {
  font-size: 11px;
  padding: 1px 7px;
  background: var(--bg-4);
  border-radius: 20px;
  color: var(--text-3);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
}

/* ── Project card ──────────────────────────────────────── */
.project-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--card-accent, var(--border));
  transition: background var(--transition);
}
.project-card:hover { border-color: var(--border-2); transform: translateY(-1px); }
.project-card:hover::before { background: var(--accent); }

.card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.card-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.card-domain { font-size: 11px; color: var(--text-2); margin-top: 2px; font-family: 'JetBrains Mono', monospace; }

.card-badges { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; }
.badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.badge-green { background: var(--green-dim); color: var(--green); border-color: rgba(34,197,94,0.2); }
.badge-red { background: var(--red-dim); color: var(--red); border-color: rgba(239,68,68,0.2); }
.badge-orange { background: var(--orange-dim); color: var(--orange); border-color: rgba(249,115,22,0.2); }
.badge-yellow { background: var(--yellow-dim); color: var(--yellow); border-color: rgba(234,179,8,0.2); }
.badge-blue { background: var(--blue-dim); color: var(--blue); border-color: rgba(59,130,246,0.2); }
.badge-purple { background: rgba(168,85,247,0.15); color: var(--purple); border-color: rgba(168,85,247,0.2); }
.badge-gray { background: var(--bg-4); color: var(--text-2); }

.card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.card-deploy-time { font-size: 10px; color: var(--text-3); }

.security-badge { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; }
.security-badge svg { flex-shrink: 0; }
.security-badge.clean { color: var(--green); }
.security-badge.warn { color: var(--orange); }
.security-badge.alert { color: var(--red); }
.security-badge.unknown { color: var(--text-3); }

/* Severity icon colors */
.sev-icon-critical { color: var(--red); }
.sev-icon-high { color: var(--orange); }
.sev-icon-medium { color: var(--yellow); }
.check-icon { display: flex; align-items: center; }

/* ── Projects table ────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.filter-tabs { display: flex; gap: 4px; }
.filter-tab {
  padding: 6px 12px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-tab:hover { background: var(--bg-3); color: var(--text); }
.filter-tab.active { background: var(--accent-glow); color: var(--accent); border-color: var(--accent); }
.search-input {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 7px 12px;
  color: var(--text);
  font-size: 13px;
  width: 220px;
  outline: none;
}
.search-input:focus { border-color: var(--accent); }

.projects-table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-3);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tr:hover td { background: var(--bg-2); cursor: pointer; }
.td-name { font-weight: 600; font-size: 13px; }
.td-domain { font-size: 11px; color: var(--text-2); font-family: 'JetBrains Mono', monospace; }
.td-cat { font-size: 11px; }
.deploy-status { display: flex; align-items: center; gap: 5px; font-size: 12px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.status-dot.success { background: var(--green); box-shadow: 0 0 5px var(--green); }
.status-dot.failure { background: var(--red); }
.status-dot.unknown { background: var(--text-3); }
.score-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.score-pill.great { background: var(--green-dim); color: var(--green); }
.score-pill.warn { background: var(--orange-dim); color: var(--orange); }
.score-pill.bad { background: var(--red-dim); color: var(--red); }
.score-pill.none { background: var(--bg-4); color: var(--text-3); }

/* ── Security view ─────────────────────────────────────── */
.security-header {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 24px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}
.security-score-ring { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.score-ring-svg { width: 120px; height: 120px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--bg-4); stroke-width: 8; }
.ring-fill { fill: none; stroke: var(--green); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; transition: stroke-dashoffset 1s ease, stroke 0.5s; }
.score-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.score-number { font-size: 28px; font-weight: 900; }
.score-label { font-size: 10px; color: var(--text-2); }

.security-summary { display: flex; flex-direction: column; gap: 10px; }
.sev-row { display: flex; align-items: center; gap: 10px; }
.sev-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sev-row.critical .sev-dot { background: var(--red); }
.sev-row.high .sev-dot { background: var(--orange); }
.sev-row.medium .sev-dot { background: var(--yellow); }
.sev-row.low .sev-dot { background: var(--blue); }
.sev-name { font-size: 12px; font-weight: 600; width: 70px; }
.sev-count { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }

.security-list { display: flex; flex-direction: column; gap: 8px; }
.security-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}
.security-item:hover { border-color: var(--border-2); }
.sec-item-left { display: flex; flex-direction: column; gap: 2px; }
.sec-item-name { font-size: 13px; font-weight: 600; }
.sec-item-domain { font-size: 11px; color: var(--text-2); font-family: 'JetBrains Mono', monospace; }
.sec-item-right { display: flex; align-items: center; gap: 12px; }
.scan-date { font-size: 11px; color: var(--text-3); }

/* ── Playbook ───────────────────────────────────────────── */
.playbook-container {
  max-width: 800px;
}
.playbook-section {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}
.playbook-section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.playbook-icon { font-size: 18px; }

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.checklist-item:last-child { border-bottom: none; }
.check-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.check-content { flex: 1; }
.check-title { font-size: 13px; font-weight: 600; }
.check-desc { font-size: 12px; color: var(--text-2); margin-top: 3px; line-height: 1.5; }
.check-severity {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  text-transform: uppercase;
  flex-shrink: 0;
  margin-top: 3px;
}
.sev-critical { background: var(--red-dim); color: var(--red); }
.sev-high { background: var(--orange-dim); color: var(--orange); }
.sev-medium { background: var(--yellow-dim); color: var(--yellow); }

/* ── Modal ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-panel {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}
.modal-close {
  position: sticky;
  top: 0;
  float: right;
  margin: 16px 16px 0;
  background: var(--bg-4);
  border: 1px solid var(--border-2);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-2);
  font-size: 12px;
  z-index: 10;
}
.modal-body { padding: 24px; clear: both; }
.modal-project-header { margin-bottom: 20px; }
.modal-project-name { font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
.modal-project-domain { font-size: 12px; color: var(--text-2); font-family: 'JetBrains Mono', monospace; margin-top: 4px; }
.modal-section { margin-bottom: 20px; }
.modal-section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-2); margin-bottom: 10px; }
.modal-checklist { display: flex; flex-direction: column; gap: 4px; }
.modal-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  background: var(--bg-3);
  font-size: 12px;
  cursor: pointer;
  transition: background var(--transition);
}
.modal-check-item:hover { background: var(--bg-4); }
.modal-check-icon { font-size: 14px; flex-shrink: 0; }
.modal-check-label { flex: 1; }
.modal-check-sev { font-size: 10px; font-weight: 600; color: var(--text-3); }
.deploy-list { display: flex; flex-direction: column; gap: 6px; }
.deploy-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg-3);
  border-radius: 7px;
  font-size: 12px;
}
.deploy-time { color: var(--text-2); font-size: 11px; font-family: 'JetBrains Mono', monospace; }
.deploy-commit { color: var(--text-2); font-family: 'JetBrains Mono', monospace; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.info-item { background: var(--bg-3); border-radius: 7px; padding: 10px 12px; }
.info-item-label { font-size: 10px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.info-item-value { font-size: 13px; font-weight: 600; }

/* ── Utilities ─────────────────────────────────────────── */
/* ── Spinner ───────────────────────────────────────────── */
.spinner-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 0;
  color: var(--text-3);
  font-size: 13px;
}
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--bg-4);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spinner-msg { color: var(--text-2); }

.hidden { display: none !important; }
.loading-state { color: var(--text-3); font-size: 13px; padding: 20px 0; text-align: center; }

/* ── Modal tabs ────────────────────────────────────────── */
.modal-tabs {
  display: flex;
  gap: 2px;
  margin: 12px 0 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.modal-tab {
  padding: 7px 14px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: -1px;
}
.modal-tab:hover { color: var(--text); }
.modal-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.modal-tab-content { padding-top: 16px; }

/* ── Knowledge form ────────────────────────────────────── */
.k-form { display: flex; flex-direction: column; gap: 10px; }
.k-field { display: flex; flex-direction: column; gap: 4px; }
.k-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-2); }
.k-input {
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: 7px;
  padding: 8px 10px;
  color: var(--text);
  font-size: 12px;
  font-family: inherit;
  outline: none;
  width: 100%;
  transition: border-color var(--transition);
}
.k-input:focus { border-color: var(--accent); }
.k-textarea { min-height: 70px; resize: vertical; font-family: 'JetBrains Mono', monospace; font-size: 11px; }

/* ── Sessions list ─────────────────────────────────────── */
.sessions-list { display: flex; flex-direction: column; gap: 8px; }
.session-item {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.session-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.session-date { font-size: 11px; color: var(--text-3); }
.session-conv {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-3);
  background: var(--bg-4);
  padding: 1px 6px;
  border-radius: 4px;
}
.session-summary { font-size: 13px; color: var(--text); line-height: 1.5; }
.session-section { font-size: 11px; color: var(--text-2); margin-top: 6px; line-height: 1.5; }
.session-pending strong { color: var(--orange); }

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }
