/* ==========================================================================
   Migration Studio — enterprise design system
   ========================================================================== */

:root,
[data-theme="light"] {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --surface-3: #e8ebf0;
  --border: #dde1e8;
  --border-strong: #c5ccd6;

  --text: #161b22;
  --text-2: #424a57;
  --text-3: #6b7380;

  --primary: #0176d3;
  --primary-hover: #014486;
  --primary-soft: #e5f3ff;
  --primary-soft-border: #b5d9f5;
  --primary-contrast: #ffffff;

  --green: #0b6e4f;
  --green-soft: #e3f5ee;
  --amber: #8a6116;
  --amber-soft: #faf0d9;
  --red: #ba0517;
  --red-soft: #fce8ea;
  --blue: #0176d3;
  --blue-soft: #e5f3ff;
  --teal: #0b6e6e;
  --teal-soft: #e0f5f5;
  --gray-soft: #eef0f3;

  --sidebar-bg: #0f1419;
  --sidebar-border: #1e2630;
  --sidebar-text: #9aa3ad;
  --sidebar-active: #ffffff;
  --sidebar-hover: rgba(255, 255, 255, 0.06);
  --sidebar-active-bg: rgba(1, 118, 211, 0.22);

  --code-bg: #0f1419;
  --code-text: #d0d7de;
  --feed-bg: #0f1419;

  --shadow-sm: 0 1px 2px rgba(15, 20, 25, 0.04);
  --shadow-md: 0 2px 6px rgba(15, 20, 25, 0.06);
  --shadow-lg: 0 8px 24px rgba(15, 20, 25, 0.12);

  --radius: 6px;
  --radius-sm: 4px;
  --radius-lg: 8px;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --space-unit: 4px;
  --sidebar-width: 240px;
  --sidebar-collapsed: 56px;
  --topbar-h: auto;
  --focus-ring: 0 0 0 2px var(--surface), 0 0 0 4px var(--primary);
  --transition: 140ms ease;
  --content-max: 1440px;
}

[data-theme="dark"] {
  --bg: #0f1419;
  --surface: #161b22;
  --surface-2: #1c2128;
  --surface-3: #252b33;
  --border: #30363d;
  --border-strong: #484f58;

  --text: #e6edf3;
  --text-2: #b1bac4;
  --text-3: #8b949e;

  --primary: #2e9dff;
  --primary-hover: #58b1ff;
  --primary-soft: rgba(46, 157, 255, 0.14);
  --primary-soft-border: rgba(46, 157, 255, 0.35);
  --primary-contrast: #0f1419;

  --green: #3fb950;
  --green-soft: rgba(63, 185, 80, 0.14);
  --amber: #d29922;
  --amber-soft: rgba(210, 153, 34, 0.14);
  --red: #f85149;
  --red-soft: rgba(248, 81, 73, 0.14);
  --blue: #2e9dff;
  --blue-soft: rgba(46, 157, 255, 0.14);
  --teal: #39c5c5;
  --teal-soft: rgba(57, 197, 197, 0.14);
  --gray-soft: #252b33;

  --sidebar-bg: #010409;
  --sidebar-border: #21262d;
  --sidebar-text: #8b949e;
  --sidebar-active: #e6edf3;
  --sidebar-hover: rgba(255, 255, 255, 0.05);
  --sidebar-active-bg: rgba(46, 157, 255, 0.16);

  --code-bg: #010409;
  --code-text: #c9d1d9;
  --feed-bg: #010409;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  box-shadow: var(--focus-ring);
}

#app { display: flex; min-height: 100vh; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--sidebar-border);
  transition: width var(--transition);
  z-index: 50;
}
body.sidebar-collapsed .sidebar { width: var(--sidebar-collapsed); }
body.sidebar-collapsed .brand-text,
body.sidebar-collapsed .nav-label,
body.sidebar-collapsed .nav-section,
body.sidebar-collapsed .health-title,
body.sidebar-collapsed .health-label,
body.sidebar-collapsed .sidebar-footer-row { display: none; }
body.sidebar-collapsed .nav-item { justify-content: center; padding: 10px; }
body.sidebar-collapsed .brand { justify-content: center; padding: 14px 8px; }
body.sidebar-collapsed .sidebar-collapse { display: none; }
body.sidebar-collapsed .brand-mark { cursor: pointer; }
body.sidebar-collapsed .health-row { flex-direction: column; align-items: center; }
body.sidebar-collapsed .health-chip { padding: 4px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px 12px;
  border-bottom: 1px solid var(--sidebar-border);
}
.brand-mark {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  display: grid; place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-text { flex: 1; min-width: 0; }
.brand-name { font-weight: 600; color: var(--sidebar-active); font-size: 13px; letter-spacing: -0.01em; }
.brand-sub { font-size: 11px; color: var(--sidebar-text); margin-top: 1px; }

.nav { flex: 1; padding: 8px; overflow-y: auto; }
.nav-section {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  color: #5c6570; font-weight: 600;
  padding: 14px 8px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--sidebar-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  transition: background var(--transition), color var(--transition);
  margin-bottom: 1px;
}
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.9; }
.nav-item:hover { background: var(--sidebar-hover); color: #d0d7de; }
.nav-item.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active);
  box-shadow: inset 3px 0 0 var(--primary);
}

.sidebar-footer {
  padding: 10px 12px 14px;
  border-top: 1px solid var(--sidebar-border);
}
.sidebar-footer-row {
  display: flex; gap: 6px; margin-bottom: 10px;
}
.sidebar .icon-btn {
  width: 30px; height: 30px;
  border: 1px solid var(--sidebar-border);
  background: transparent;
  color: var(--sidebar-text);
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  cursor: pointer;
}
.sidebar .icon-btn:hover { background: var(--sidebar-hover); color: var(--sidebar-active); }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.health-title {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  color: #5c6570; font-weight: 600; margin-bottom: 6px;
}
.health-row { display: flex; flex-wrap: wrap; gap: 4px; }
.health-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: #9aa3ad;
  border: 1px solid var(--sidebar-border);
}
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot-ok { background: #3fb950; }
.dot-bad { background: #f85149; }
.dot-idle { background: #6e7681; }

/* ==========================================================================
   Main / topbar
   ========================================================================== */

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; position: relative; }

.topbar {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 12px 20px;
  background: var(--surface);
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--border);
}
.topbar-left { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.topbar h1 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.page-subtitle { margin: 2px 0 0; color: var(--text-3); font-size: 12px; }
.topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.journey-strip {
  display: flex; align-items: center; gap: 0;
  font-size: 11px; font-weight: 500;
}
.journey-step {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-3);
  padding: 2px 0;
}
.journey-step .js-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-strong);
  border: 2px solid var(--surface);
}
.journey-step.done { color: var(--text-2); }
.journey-step.done .js-dot { background: var(--primary); }
.journey-step.current { color: var(--primary); font-weight: 600; }
.journey-step.current .js-dot {
  background: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.journey-connector {
  width: 28px; height: 1px;
  background: var(--border-strong);
  margin: 0 6px;
}
.journey-connector.on { background: var(--primary); }

.migration-picker { display: flex; align-items: center; gap: 8px; }
.migration-picker label { font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; }
.picker-combo { position: relative; }
.picker-input {
  font-family: var(--font);
  font-size: 13px; font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  min-width: 260px; max-width: 360px;
  transition: border-color var(--transition);
}
.picker-input:hover { border-color: var(--primary); }
.picker-input:focus { border-color: var(--primary); box-shadow: var(--focus-ring); outline: none; }
.picker-menu {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 280px; overflow-y: auto;
  z-index: 60;
}
.picker-option {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 12px;
  cursor: pointer;
  border: none; background: none; width: 100%;
  text-align: left; font-family: var(--font); color: var(--text);
}
.picker-option:hover, .picker-option.active { background: var(--primary-soft); }
.picker-option .po-name { font-weight: 600; font-size: 13px; }
.picker-option .po-meta { font-size: 11px; color: var(--text-3); }
.kbd-hint {
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-3);
  background: var(--surface-2);
}

.content {
  padding: 16px 20px 48px;
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
  flex: 1;
}
.content.wide { max-width: none; }
.content.page-enter { animation: page-in 160ms ease both; }
@keyframes page-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* Job dock */
.job-dock {
  position: sticky; bottom: 0; z-index: 45;
  border-top: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}
.job-dock.collapsed .job-dock-body { display: none; }
.job-dock-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.job-dock-title { flex: 1; font-size: 12px; font-weight: 600; }
.job-dock-body { padding: 12px 16px; max-height: 320px; overflow: auto; }
.job-dock .activity-card { margin: 0; }

/* ==========================================================================
   Cards / panels
   ========================================================================== */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}
.card-header {
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.card-header-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-actions {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0; flex-wrap: wrap;
}
.card-title {
  font-size: 13px; font-weight: 600; letter-spacing: -0.01em; margin: 0;
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0;
}
.card-title .icon-badge {
  width: 24px; height: 24px; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary);
}
.card-title .icon-badge svg { width: 13px; height: 13px; }
.card-desc { font-size: 12px; color: var(--text-3); margin: 0; font-weight: 400; }
.card-body { padding: 12px 14px; }
.card-body.tight { padding: 4px 14px 12px; }
.card.flat { box-shadow: none; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 12px; font-weight: 600;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
@media (max-width: 1100px) { .grid-2 { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 10px; }

.prose { color: var(--text-2); font-size: 13px; line-height: 1.6; }
.prose p { margin: 0 0 10px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 600; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  font-family: var(--font);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12.5px; font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn svg, .btn .ui-icon { width: 14px; height: 14px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:not(:disabled):active { transform: translateY(0.5px); }

.btn-primary {
  background: var(--primary);
  color: var(--primary-contrast);
}
.btn-primary:not(:disabled):hover { background: var(--primary-hover); }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:not(:disabled):hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:not(:disabled):hover { background: var(--surface-2); color: var(--text); }

.btn-success { background: var(--green); color: #fff; }
.btn-success:not(:disabled):hover { filter: brightness(1.05); }

.btn-danger { background: var(--red); color: #fff; }
.btn-danger:not(:disabled):hover { filter: brightness(1.05); }
.btn-danger-ghost { color: var(--red); }
.btn-danger-ghost:not(:disabled):hover { background: var(--red-soft); }

.btn-sm { font-size: 12px; padding: 4px 10px; }
.btn-lg { font-size: 13.5px; padding: 9px 18px; }

.btn .btn-spinner {
  width: 13px; height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn-secondary .btn-spinner, .btn-ghost .btn-spinner {
  border-color: rgba(1, 118, 211, 0.25);
  border-top-color: var(--primary);
}
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-3);
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
.icon-btn-danger:hover { color: var(--red); border-color: var(--red); background: var(--red-soft); }
.icon-btn svg, .icon-btn .ui-icon { width: 14px; height: 14px; }
.ctx-item .ui-icon { width: 14px; height: 14px; color: inherit; }
.mig-meta .ui-icon { width: 12px; height: 12px; }

/* ==========================================================================
   Pills / status
   ========================================================================== */

.pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  text-transform: capitalize;
  letter-spacing: 0.01em;
}
.pill-gray { background: var(--gray-soft); color: var(--text-2); }
.pill-blue { background: var(--blue-soft); color: var(--blue); }
.pill-green { background: var(--green-soft); color: var(--green); }
.pill-amber { background: var(--amber-soft); color: var(--amber); }
.pill-red { background: var(--red-soft); color: var(--red); }
.pill-teal { background: var(--teal-soft); color: var(--teal); }
.pill-violet { background: var(--teal-soft); color: var(--teal); }

/* ==========================================================================
   Tables (dense)
   ========================================================================== */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap.sticky-head { max-height: 520px; overflow: auto; }
.table-wrap.sticky-head thead th { position: sticky; top: 0; z-index: 2; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
table.data.dense td, table.data.dense th { padding: 6px 10px; }
table.data th {
  text-align: left;
  font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-3);
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  white-space: nowrap;
  user-select: none;
}
table.data th.sortable { cursor: pointer; }
table.data th.sortable:hover { color: var(--text); }
table.data td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text-2);
}
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr { transition: background var(--transition); }
table.data tbody tr:hover { background: var(--surface-2); }
table.data tbody tr.selected { background: var(--primary-soft); }
table.data tbody tr.clickable { cursor: pointer; }
table.data tbody tr.clickable:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
table.data td.strong { color: var(--text); font-weight: 600; }
table.data td.mono, table.data .mono { font-family: var(--mono); font-size: 11.5px; }
table.data td.wrap { word-break: break-word; }
table.data.sticky-col td:first-child, table.data.sticky-col th:first-child {
  position: sticky; left: 0; background: var(--surface); z-index: 1;
}
table.data.sticky-col tbody tr:hover td:first-child { background: var(--surface-2); }

table.data.profile-table { table-layout: auto; }
.fact-list { margin: 0; padding-left: 16px; color: var(--text-2); }
.fact-list li { margin-bottom: 4px; line-height: 1.45; }

/* ==========================================================================
   Forms
   ========================================================================== */

.field { margin-bottom: 12px; }
.field label {
  display: block;
  font-size: 12px; font-weight: 600;
  color: var(--text-2);
  margin-bottom: 4px;
}
.field .hint { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.field input[type="text"], .field input[type="number"], .field textarea, .field select,
input.text-input, select.text-input {
  font-family: var(--font);
  width: 100%;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--transition);
}
.field textarea { resize: vertical; min-height: 68px; line-height: 1.45; }
.field input:focus, .field textarea:focus, .field select:focus,
input.text-input:focus, select.text-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; } }

.chips-input {
  display: flex; flex-wrap: wrap; gap: 4px;
  padding: 5px 7px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: text;
}
.chips-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.chips-input .chip, .upload-files .chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px; font-weight: 600;
  padding: 2px 4px 2px 8px;
  border-radius: var(--radius-sm);
}
.chips-input .chip button, .upload-files .chip button {
  background: none; border: none; cursor: pointer;
  color: inherit; opacity: 0.6;
  font-size: 13px; line-height: 1; padding: 1px 3px;
  border-radius: 2px;
}
.chips-input .chip button:hover, .upload-files .chip button:hover { opacity: 1; background: var(--primary-soft-border); }
.chips-input input {
  flex: 1; min-width: 120px;
  border: none; outline: none;
  font-family: var(--font); font-size: 13px;
  padding: 3px; background: transparent; color: var(--text);
}

.volume-row {
  display: grid; grid-template-columns: 1fr 140px 32px; gap: 8px;
  margin-bottom: 6px; align-items: center;
}
.volume-row input {
  font-family: var(--font); font-size: 13px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text);
}

/* ==========================================================================
   Segmented control / toolbar
   ========================================================================== */

.seg {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 1px;
}
.seg-btn {
  font-family: var(--font);
  border: none; background: transparent;
  font-size: 12px; font-weight: 600;
  color: var(--text-3);
  padding: 4px 10px; border-radius: 3px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
}
.seg-btn:hover { color: var(--text); }
.seg-btn.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.seg-btn .count {
  font-size: 10px;
  background: var(--border);
  color: var(--text-2);
  border-radius: 99px;
  padding: 0 5px;
}
.seg-btn.active .count { background: var(--primary-soft); color: var(--primary); }

.filter-tabs { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 2px; gap: 1px; }
.filter-tab {
  font-family: var(--font);
  border: none; background: transparent;
  font-size: 12px; font-weight: 600;
  color: var(--text-3);
  padding: 4px 10px; border-radius: 3px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
}
.filter-tab:hover { color: var(--text); }
.filter-tab.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.filter-tab .count {
  font-size: 10px; background: var(--border); color: var(--text-2);
  border-radius: 99px; padding: 0 5px;
}
.filter-tab.active .count { background: var(--primary-soft); color: var(--primary); }

.page-toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  position: sticky; top: 0; z-index: 30;
}
.content .page-toolbar { top: 0; }
.page-toolbar .spacer { flex: 1; }

.stat-strip {
  display: flex; gap: 0; margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-cell {
  flex: 1; padding: 10px 14px;
  border-right: 1px solid var(--border);
}
.stat-cell:last-child { border-right: none; }
.stat-cell .stat-value { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-cell .stat-label { font-size: 11px; color: var(--text-3); font-weight: 500; margin-top: 2px; }

/* ==========================================================================
   Banners
   ========================================================================== */

.banner {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  font-size: 12.5px;
}
.banner svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.banner-body { flex: 1; min-width: 0; }
.banner-title { font-weight: 600; margin-bottom: 2px; }
.banner.info { background: var(--blue-soft); border-color: var(--primary-soft-border); color: var(--text); }
.banner.info svg { color: var(--primary); }
.banner.warning { background: var(--amber-soft); border-color: #e8d4a0; color: var(--text); }
.banner.warning svg { color: var(--amber); }
.banner.danger { background: var(--red-soft); border-color: #f0b4bb; color: var(--text); }
.banner.danger svg { color: var(--red); }
.banner.success { background: var(--green-soft); border-color: #a8dcc4; color: var(--text); }
.banner.success svg { color: var(--green); }

/* ==========================================================================
   Split pane / accordion / drawer
   ========================================================================== */

.split-pane {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  min-height: 420px;
  margin-bottom: 12px;
}
.split-pane .pane-left {
  width: var(--pane-left, 320px);
  min-width: 200px; max-width: 50%;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  background: var(--surface-2);
}
.split-pane .pane-right {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
}
.split-pane .pane-body { flex: 1; overflow: auto; padding: 12px; }
.split-resizer {
  width: 5px; cursor: col-resize;
  background: transparent;
  position: relative; flex-shrink: 0;
  margin-left: -5px; z-index: 2;
}
.split-resizer:hover, .split-resizer.active { background: var(--primary-soft); }
@media (max-width: 900px) {
  .split-pane { flex-direction: column; }
  .split-pane .pane-left { width: 100% !important; max-width: none; border-right: none; border-bottom: 1px solid var(--border); max-height: 240px; }
  .split-resizer { display: none; }
}

.accordion { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; background: var(--surface); }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border: none; background: var(--surface-2);
  font-family: var(--font); font-size: 12.5px; font-weight: 600;
  color: var(--text); cursor: pointer; text-align: left;
}
.accordion-trigger:hover { background: var(--surface-3); }
.accordion-trigger .chev {
  transition: transform var(--transition);
  color: var(--text-3);
  display: inline-flex;
}
.accordion.open .accordion-trigger .chev { transform: rotate(90deg); }
.accordion-panel { display: none; padding: 10px 12px; border-top: 1px solid var(--border); }
.accordion.open .accordion-panel { display: block; animation: expand 140ms ease; }

.drawer-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 20, 25, 0.4);
  opacity: 0; transition: opacity var(--transition);
}
.drawer-backdrop.open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 210;
  width: min(440px, 100%);
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 160ms ease;
}
.drawer.open { transform: none; }
.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--border);
}
.drawer-title { font-weight: 600; font-size: 14px; margin: 0; }
.drawer-body { flex: 1; overflow: auto; padding: 14px; }
.drawer-footer {
  padding: 10px 14px; border-top: 1px solid var(--border);
  display: flex; gap: 8px; justify-content: flex-end;
}

/* Context menu */
.ctx-menu {
  position: fixed; z-index: 250;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 4px;
  animation: page-in 100ms ease;
}
.ctx-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 6px 10px;
  border: none; background: none;
  font-family: var(--font); font-size: 12.5px;
  color: var(--text); cursor: pointer; border-radius: 3px; text-align: left;
}
.ctx-item:hover, .ctx-item:focus { background: var(--primary-soft); color: var(--primary); outline: none; box-shadow: none; }
.ctx-item.danger { color: var(--red); }
.ctx-item.danger:hover { background: var(--red-soft); }
.ctx-sep { height: 1px; background: var(--border); margin: 4px 0; }

.bulk-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: var(--primary-soft);
  border: 1px solid var(--primary-soft-border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  font-size: 12.5px; font-weight: 500;
}
.bulk-bar .bulk-count { font-weight: 700; color: var(--primary); }

/* ==========================================================================
   Activity / jobs
   ========================================================================== */

.activity-card {
  border: 1px solid var(--primary-soft-border);
  background: var(--primary-soft);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 12px;
}
.activity-card.success { border-color: #a8dcc4; background: var(--green-soft); }
.activity-card.failed { border-color: #f0b4bb; background: var(--red-soft); }
.activity-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.activity-title { font-weight: 600; font-size: 13px; flex: 1; }
.activity-elapsed { font-variant-numeric: tabular-nums; color: var(--text-3); font-size: 12px; font-family: var(--mono); }
.pulse-orb {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); color: var(--primary);
  flex-shrink: 0; border: 1px solid var(--primary-soft-border);
}
.pulse-orb svg { width: 14px; height: 14px; }
.activity-card.success .pulse-orb { color: var(--green); border-color: #a8dcc4; }
.activity-card.failed .pulse-orb { color: var(--red); border-color: #f0b4bb; }

.steps { display: flex; gap: 0; margin: 12px 0 10px; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; }
.step::before {
  content: "";
  position: absolute; top: 9px; left: -50%; right: 50%;
  height: 1px; background: var(--border-strong); z-index: 0;
}
.step:first-child::before { display: none; }
.step.done::before, .step.active::before { background: var(--primary); }
.step-dot {
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  color: var(--text-3);
  font-size: 9px; font-weight: 700; z-index: 1;
}
.step.done .step-dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.step.active .step-dot { border-color: var(--primary); color: var(--primary); }
.step-label { font-size: 10px; font-weight: 600; color: var(--text-3); text-align: center; }
.step.active .step-label, .step.done .step-label { color: var(--text); }

.activity-feed {
  background: var(--feed-bg);
  border-radius: var(--radius);
  padding: 8px 0;
  max-height: 200px;
  overflow-y: auto;
  font-family: var(--mono);
  font-size: 11.5px;
}
.feed-line {
  display: flex; gap: 10px; align-items: baseline;
  padding: 2px 12px; color: #9aa3ad;
}
.feed-line .t { color: #5c6570; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.feed-line .tag {
  flex-shrink: 0;
  font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0 5px; border-radius: 2px;
  background: rgba(1, 118, 211, 0.2); color: #79b8ff;
}
.feed-line .tag.sf { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; }
.feed-line .tag.ok { background: rgba(63, 185, 80, 0.16); color: #6ee7b7; }
.feed-line .tag.err { background: rgba(248, 81, 73, 0.16); color: #fca5a5; }
.feed-line.current .msg::after {
  content: "▋"; margin-left: 4px; color: var(--primary);
  animation: blink 1.1s step-start infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ==========================================================================
   Mapping workbench
   ========================================================================== */

.mapping-row {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  background: var(--surface);
  overflow: hidden;
}
.mapping-row:hover { border-color: var(--border-strong); }
.mapping-row.flagged { border-left: 3px solid var(--amber); }
.mapping-row.focused { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.mapping-row.selected { background: var(--primary-soft); }
.mapping-main {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; flex-wrap: wrap;
}
.map-check { flex-shrink: 0; }
.map-path {
  display: flex; align-items: center; gap: 7px;
  flex: 1; min-width: 260px; font-size: 12.5px;
}
.map-path .obj { color: var(--text-3); font-weight: 500; font-family: var(--mono); font-size: 11.5px; }
.map-path .fld { font-weight: 600; color: var(--text); font-family: var(--mono); font-size: 12px; }
.map-path .arrow { color: var(--primary); display: inline-flex; }
.map-path .arrow svg { width: 13px; height: 13px; }

.conf { display: flex; align-items: center; gap: 6px; width: 110px; }
.conf-bar { flex: 1; height: 4px; border-radius: 2px; background: var(--border); overflow: hidden; }
.conf-fill { height: 100%; border-radius: 2px; transition: width 0.4s ease; }
.conf-fill.hi { background: var(--green); }
.conf-fill.mid { background: var(--amber); }
.conf-fill.lo { background: var(--red); }
.conf-num { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; width: 30px; color: var(--text-2); }

.mapping-actions { display: flex; gap: 6px; align-items: center; }
.mapping-detail {
  border-top: 1px dashed var(--border);
  padding: 10px 12px;
  background: var(--surface-2);
}
@keyframes expand { from { opacity: 0; } to { opacity: 1; } }
.mapping-detail pre {
  font-family: var(--mono); font-size: 11.5px;
  background: var(--code-bg); color: var(--code-text);
  border-radius: var(--radius-sm); padding: 10px;
  overflow-x: auto; margin: 6px 0 0;
}
.rationale { font-size: 12px; color: var(--text-2); font-style: italic; }

.code-view {
  font-family: var(--mono); font-size: 11.5px; line-height: 1.55;
  background: var(--code-bg); color: var(--code-text);
  border-radius: var(--radius);
  padding: 12px;
  overflow: auto;
  max-height: 460px;
  white-space: pre;
}

/* File list (artifacts) */
/* Default icon size — prevents bare SVGs from rendering at browser defaults (~300×150) */
.ui-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
  vertical-align: middle;
}

.file-list { list-style: none; margin: 0; padding: 0; }
.file-list li {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
  cursor: pointer; font-size: 12.5px;
}
.file-list li:hover { background: var(--surface-2); }
.file-list li.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.file-list li .file-meta { margin-left: auto; font-size: 11px; color: var(--text-3); font-family: var(--mono); }
.file-list li .ui-icon { width: 16px; height: 16px; color: var(--text-3); }
.file-list li.active .ui-icon { color: var(--primary); }

/* Meter / summary bars */
.meter {
  display: flex; height: 6px; border-radius: 3px; overflow: hidden;
  background: var(--border); margin: 8px 0;
}
.meter-seg { height: 100%; }
.meter-seg.pass { background: var(--green); }
.meter-seg.warn { background: var(--amber); }
.meter-seg.fail { background: var(--red); }
.meter-seg.skip { background: var(--text-3); }
.summary-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }

/* ==========================================================================
   Wizard
   ========================================================================== */

.wizard {
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.wizard-steps {
  display: flex; border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.wizard-step {
  flex: 1; padding: 10px 12px;
  font-size: 12px; font-weight: 500; color: var(--text-3);
  border-right: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.wizard-step:last-child { border-right: none; }
.wizard-step .ws-num {
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  border: 1.5px solid var(--border-strong); color: var(--text-3);
}
.wizard-step.active { color: var(--text); background: var(--surface); }
.wizard-step.active .ws-num { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.wizard-step.done .ws-num { background: var(--primary); border-color: var(--primary); color: #fff; }
.wizard-body { padding: 16px 18px; min-height: 280px; }
.wizard-footer {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  position: sticky; bottom: 0;
}

/* ==========================================================================
   Skeletons / empty / modal / toast
   ========================================================================== */

.skeleton {
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton-row { height: 12px; margin: 10px 0; }

.empty {
  text-align: center;
  padding: 36px 20px;
  color: var(--text-3);
}
.empty .empty-icon {
  width: 44px; height: 44px;
  margin: 0 auto 10px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--text-3);
}
.empty .empty-icon svg { width: 20px; height: 20px; }
.empty h3 { margin: 0 0 4px; font-size: 13.5px; color: var(--text-2); }
.empty p { margin: 0 auto 14px; font-size: 12.5px; max-width: 380px; }

.auth-gate {
  position: fixed; inset: 0; z-index: 400;
  display: grid; place-items: center; padding: 24px;
  background: var(--sidebar-bg);
  opacity: 0; transition: opacity 160ms ease;
}
.auth-gate.open { opacity: 1; }
.auth-gate-panel {
  width: min(380px, 100%);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px 22px;
  display: flex; flex-direction: column; gap: 12px;
}
.auth-gate-brand {
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--primary);
}
.auth-gate-panel h2 { margin: 0; font-size: 20px; font-weight: 600; }
.auth-gate-panel p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.auth-gate-panel code {
  font-family: var(--mono); font-size: 12px;
  background: var(--surface-2); padding: 1px 5px; border-radius: 3px;
}
.auth-gate-panel .field { display: flex; flex-direction: column; gap: 6px; }
.auth-gate-panel .field span { font-size: 12px; font-weight: 500; color: var(--text-2); }
.auth-gate-panel input {
  font: inherit; font-size: 14px; padding: 9px 11px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
}
.auth-gate-panel input:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus-ring); }
.auth-gate-error { color: var(--red); font-size: 12.5px; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center; padding: 24px;
  background: rgba(15, 20, 25, 0.5);
  opacity: 0; transition: opacity 160ms ease;
}
.modal-backdrop.open { opacity: 1; }
.modal-backdrop.leaving { opacity: 0; }
.modal-panel {
  width: min(440px, 100%);
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px 16px;
  transform: translateY(6px);
  transition: transform 160ms ease;
}
.modal-backdrop.open .modal-panel { transform: none; }
.modal-title { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.modal-message { margin: 0 0 16px; color: var(--text-2); font-size: 13px; line-height: 1.5; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.modal-panel.wide { width: min(560px, 100%); }
.shortcuts-table { width: 100%; font-size: 12.5px; border-collapse: collapse; }
.shortcuts-table td { padding: 6px 0; border-bottom: 1px solid var(--border); }
.shortcuts-table tr:last-child td { border-bottom: none; }
.shortcuts-table kbd {
  font-family: var(--mono); font-size: 11px;
  padding: 2px 6px; border: 1px solid var(--border);
  border-radius: 3px; background: var(--surface-2); color: var(--text);
}

#toast-root {
  position: fixed; bottom: 20px; right: 20px; z-index: 280;
  display: flex; flex-direction: column; gap: 8px; max-width: 400px;
}
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--sidebar-bg); color: #e6edf3;
  border-radius: var(--radius);
  padding: 10px 12px; font-size: 12.5px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--sidebar-border);
  animation: toast-in 220ms ease both;
}
.toast.leaving { animation: toast-out 180ms ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }
.toast svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }
.toast.ok svg { color: #3fb950; }
.toast.err svg { color: #f85149; }
.toast.info svg { color: #2e9dff; }

/* KB */
.kb-result { padding: 10px 0; border-bottom: 1px solid var(--border); }
.kb-result:last-child { border-bottom: none; }
.kb-result h4 {
  margin: 0 0 4px; font-size: 13px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.kb-result p { margin: 4px 0 0; color: var(--text-2); font-size: 12px; }
.sim-badge { font-size: 10.5px; color: var(--text-3); font-family: var(--mono); }

.search-bar { position: relative; flex: 1; }
.search-bar svg,
.search-bar .ui-icon {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: var(--text-3); pointer-events: none;
}
.search-bar input {
  font-family: var(--font); width: 100%; font-size: 13px;
  padding: 7px 10px 7px 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text);
}
.search-bar input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

.upload-zone {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 16px 12px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer; text-align: center;
}
.upload-zone:hover, .upload-zone.dragging { border-color: var(--primary); background: var(--primary-soft); }
.upload-zone p { margin: 0; font-size: 12.5px; color: var(--text-2); }
.upload-zone .upload-hint { font-size: 11px; color: var(--text-3); }
.upload-zone-icon {
  width: 32px; height: 32px; margin-bottom: 4px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--primary-soft); color: var(--primary);
}
.upload-zone-icon svg { width: 16px; height: 16px; }
.upload-files { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }

.view-toggle { display: inline-flex; gap: 2px; }
.muted { color: var(--text-3); }
.mono { font-family: var(--mono); font-size: 11.5px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.mig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.mig-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer;
  transition: border-color var(--transition);
}
.mig-card:hover { border-color: var(--primary); }
.mig-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.mig-card-actions { display: flex; align-items: center; gap: 6px; }
.mig-name { font-weight: 600; font-size: 13px; }
.mig-meta { display: flex; gap: 12px; color: var(--text-3); font-size: 11.5px; margin-top: 8px; }
.mig-meta span { display: inline-flex; align-items: center; gap: 4px; }
.mig-meta svg { width: 12px; height: 12px; }
.journey { display: flex; gap: 3px; margin-top: 10px; }
.journey i { flex: 1; height: 3px; border-radius: 2px; background: var(--border); }
.journey i.on { background: var(--primary); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb {
  background: var(--border-strong); border-radius: 4px;
  border: 2px solid transparent; background-clip: content-box;
}
.activity-feed::-webkit-scrollbar-thumb, .code-view::-webkit-scrollbar-thumb {
  background: #484f58; border: 2px solid transparent; background-clip: content-box;
}
