/* ── Base ─────────────────────────────────────────────────────────────────── */
:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #090b11;
  color: #f7f8fb;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(33,150,243,0.14), transparent 35%),
              linear-gradient(180deg, #06080f 0%, #0f1320 100%);
}

h1, h2, h3 { margin: 0; }

a { color: inherit; }

code {
  font-family: monospace;
  background: rgba(255,255,255,0.07);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.88em;
}

/* ── Public pages ─────────────────────────────────────────────────────────── */
.app-shell {
  max-width: 1024px;
  margin: 0 auto;
  padding: 24px;
}

.app-header,
.card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  backdrop-filter: blur(16px);
  background: rgba(4,6,14,0.85);
}

.app-header {
  padding: 28px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6b7bff;
}

h1 { font-size: clamp(2.3rem, 2vw + 1rem, 3rem); }

.lead {
  margin: 14px 0 0;
  max-width: 680px;
  line-height: 1.7;
  color: rgba(247,248,251,0.78);
}

main { display: grid; gap: 18px; }

.card { padding: 24px; }
.card-primary  { border-color: rgba(61,135,255,0.24); }
.card-secondary { border-color: rgba(57,216,140,0.18); }

.button-row { margin-top: 20px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  background: linear-gradient(135deg, #4f6dff 0%, #2f52f6 100%);
  color: white;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}

.button-secondary {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.avatar {
  border-radius: 50%;
  object-fit: cover;
}

.avatar-fallback {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(79,109,255,0.25);
  font-weight: 700;
}

.code-block {
  margin: 16px 0 0;
  padding: 16px;
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  overflow-x: auto;
  font-family: monospace;
  font-size: 0.88rem;
  line-height: 1.6;
  white-space: pre;
}

.status-text {
  margin-top: 14px;
  color: rgba(247,248,251,0.7);
}

.app-footer {
  margin-top: 16px;
  padding: 16px 24px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 18px;
  background: rgba(255,255,255,0.02);
  font-size: 0.82rem;
  color: rgba(247,248,251,0.45);
}

.app-footer a {
  color: rgba(247,248,251,0.55);
  text-decoration: none;
}

.app-footer a:hover { color: #a0b0ff; }

/* ── Dashboard layout ─────────────────────────────────────────────────────── */
.dashboard-body {
  background: #07090f;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.sidebar {
  border-right: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, #0b0e1a 0%, #090c16 100%);
  display: flex;
  flex-direction: column;
  padding: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-logo {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  background: linear-gradient(135deg, #818cf8 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 28px 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  padding: 16px 12px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: rgba(241,245,249,0.55);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.nav-link:hover {
  background: rgba(255,255,255,0.06);
  color: #f1f5f9;
}

.nav-link-active {
  background: linear-gradient(135deg, rgba(99,102,241,0.2) 0%, rgba(56,189,248,0.12) 100%);
  color: #a5b4fc;
  border: 1px solid rgba(99,102,241,0.2);
}

.sidebar-terminal-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  background: none;
  border: none;
  color: rgba(241,245,249,0.45);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.sidebar-terminal-btn:hover {
  background: rgba(255,255,255,0.06);
  color: #f1f5f9;
}

.sidebar-terminal-btn:focus { outline: none; }

.sidebar-terminal-btn--active {
  background: rgba(99,102,241,0.14);
  color: #a5b4fc;
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 10px;
}

.sidebar-divider {
  height: 1px;
  background: rgba(255,255,255,0.05);
  margin: 8px 14px;
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.15);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px;
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  gap: 2px;
  flex: 1;
}

.sidebar-user-name {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f1f5f9;
}

.sidebar-user-email {
  font-size: 0.7rem;
  color: rgba(241,245,249,0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.avatar-sm {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(99,102,241,0.3);
}

.avatar-sm.avatar-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #6366f1, #38bdf8);
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
}

.logout-btn {
  width: 100%;
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: rgba(241,245,249,0.5);
  font-size: 0.78rem;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: inherit;
}

.logout-btn:hover {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.25);
  color: #fca5a5;
}

/* ── Main panel ───────────────────────────────────────────────────────────── */
.main-panel {
  padding: 36px 48px;
  overflow-y: auto;
  align-content: start;
}

.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 1.65rem;
  font-weight: 800;
  margin: 0 0 6px;
  background: linear-gradient(135deg, #f1f5f9 0%, rgba(241,245,249,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  color: rgba(241,245,249,0.45);
  margin: 0;
  font-size: 0.88rem;
}

/* ── Stats row ────────────────────────────────────────────────────────────── */
.dash-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.dash-stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #818cf8, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin: 0 0 4px;
}

/* ── Info cards ───────────────────────────────────────────────────────────── */
.info-card {
  background: rgba(11,14,26,0.9);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(56,189,248,0.08));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.info-card-highlight {
  background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(11,14,26,0.9) 60%);
}

.card-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(241,245,249,0.4);
  margin: 0 0 14px;
  font-weight: 700;
}

.stat-detail {
  margin: 8px 0 0;
  color: rgba(241,245,249,0.65);
  font-size: 0.875rem;
}

.inline-link {
  color: #818cf8;
  text-decoration: none;
  margin-left: 6px;
  transition: color 0.15s;
}

.inline-link:hover { color: #a5b4fc; text-decoration: underline; }

/* ── Badges ───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(99,102,241,0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99,102,241,0.2);
}

.badge-green {
  background: rgba(16,185,129,0.12);
  color: #34d399;
  border-color: rgba(16,185,129,0.2);
}

/* ── Activity feed ────────────────────────────────────────────────────────── */
.activity-feed {
  background: rgba(11,14,26,0.9);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 20px;
}

.activity-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.activity-feed-title {
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0;
  color: rgba(241,245,249,0.85);
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: rgba(99,102,241,0.05); }

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(56,189,248,0.15));
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
  border: 1px solid rgba(99,102,241,0.15);
}

.activity-body { flex: 1; min-width: 0; }

.activity-snap {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-repo {
  font-size: 0.78rem;
  color: rgba(241,245,249,0.45);
  margin-top: 2px;
}

.activity-meta {
  text-align: right;
  font-size: 0.75rem;
  color: rgba(241,245,249,0.4);
  flex-shrink: 0;
  line-height: 1.6;
}

/* ── Quick commands ───────────────────────────────────────────────────────── */
.dash-quick-cmd {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.dash-cmd-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  font-family: "Consolas","Fira Mono","Courier New",monospace;
  font-size: 0.8rem;
  color: rgba(241,245,249,0.7);
}

.dash-cmd-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6366f1;
  flex-shrink: 0;
}

/* ── Repository search bar ───────────────────────────────────────────────── */
.repo-search-wrap {
  margin-bottom: 20px;
}
.repo-search-input {
  width: 100%;
  padding: 11px 18px;
  background: rgba(11,14,26,0.9);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  color: #f1f5f9;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
  box-sizing: border-box;
}
.repo-search-input:focus { border-color: rgba(99,102,241,0.45); }
.repo-search-input::placeholder { color: rgba(241,245,249,0.3); }

/* ── Settings page ────────────────────────────────────────────────────────── */
.settings-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 680px;
}
.settings-section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(241,245,249,0.35);
  font-weight: 700;
  margin: 0 0 12px;
}
.settings-profile-row {
  display: flex;
  align-items: center;
  gap: 18px;
}
.avatar-lg {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(99,102,241,0.3);
}
.avatar-lg.avatar-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #6366f1, #38bdf8);
  font-weight: 700;
  font-size: 1.2rem;
  border: none;
  color: #fff;
}
.settings-profile-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 4px;
}
.settings-profile-email {
  font-size: 0.82rem;
  color: rgba(241,245,249,0.45);
  margin: 0;
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.settings-row:last-child { border-bottom: none; }
.settings-row-label {
  font-size: 0.875rem;
  color: rgba(241,245,249,0.75);
  font-weight: 500;
}
.settings-row-value {
  font-size: 0.82rem;
  color: rgba(241,245,249,0.45);
}
.settings-action-btn {
  padding: 7px 18px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(99,102,241,0.3);
  background: rgba(99,102,241,0.1);
  color: #a5b4fc;
  transition: background 0.15s, border-color 0.15s;
  font-family: inherit;
}
.settings-action-btn:hover { background: rgba(99,102,241,0.2); border-color: rgba(99,102,241,0.5); }
.settings-action-btn-danger {
  border-color: rgba(239,68,68,0.25);
  background: rgba(239,68,68,0.08);
  color: #fca5a5;
}
.settings-action-btn-danger:hover { background: rgba(239,68,68,0.18); border-color: rgba(239,68,68,0.4); }
.settings-badge-connected {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(16,185,129,0.12);
  color: #34d399;
  border: 1px solid rgba(16,185,129,0.2);
}
.settings-badge-disconnected {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(239,68,68,0.1);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.2);
}

/* ── Repositories card grid ───────────────────────────────────────────────── */
.repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.repo-card {
  display: block;
  background: rgba(11,14,26,0.9);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
  position: relative;
  overflow: hidden;
}

.repo-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #38bdf8);
  opacity: 0;
  transition: opacity 0.2s;
}

.repo-card:hover {
  border-color: rgba(99,102,241,0.3);
  background: rgba(99,102,241,0.05);
  transform: translateY(-2px);
}

.repo-card:hover::before { opacity: 1; }

.repo-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(56,189,248,0.15));
  border: 1px solid rgba(99,102,241,0.2);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.repo-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.repo-card-meta {
  font-size: 0.78rem;
  color: rgba(241,245,249,0.45);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.repo-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Data table (kept for fallback) ──────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(11,14,26,0.9);
}

.data-table th {
  padding: 12px 18px;
  text-align: left;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(241,245,249,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-weight: 700;
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.875rem;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: rgba(99,102,241,0.04); }

.table-link {
  color: #818cf8;
  text-decoration: none;
  font-weight: 600;
}

.table-link:hover { color: #a5b4fc; text-decoration: underline; }

.empty-cell {
  text-align: center;
  color: rgba(241,245,249,0.35);
  padding: 48px 18px !important;
  font-size: 0.875rem;
}

/* ── Snapshot viewer ──────────────────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(241,245,249,0.45);
  text-decoration: none;
  font-size: 0.82rem;
  margin-bottom: 20px;
  transition: color 0.15s;
}

.back-link:hover { color: #f1f5f9; }

.snapshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(241,245,249,0.4);
  margin: 0 0 10px;
  font-weight: 700;
}

.meta-table td { padding: 10px 14px !important; }

.meta-key {
  color: rgba(241,245,249,0.45);
  width: 110px;
  font-size: 0.82rem !important;
}

.file-tree {
  background: rgba(11,14,26,0.9);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 12px 16px;
  max-height: 380px;
  overflow-y: auto;
}

.file-tree-item {
  display: flex;
  justify-content: space-between;
  padding: 4px 6px;
  font-size: 0.82rem;
  font-family: monospace;
  color: rgba(241,245,249,0.65);
  border-radius: 6px;
  line-height: 1.6;
}

.file-tree-item:hover { background: rgba(99,102,241,0.08); }

.checksum {
  color: rgba(241,245,249,0.25);
  font-size: 0.72rem;
  margin-left: 12px;
  flex-shrink: 0;
}

/* ── Empty / error states ─────────────────────────────────────────────────── */
.empty-state {
  background: rgba(11,14,26,0.9);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 64px 28px;
  text-align: center;
  color: rgba(241,245,249,0.4);
  font-size: 0.9rem;
}

.empty-state .button-row { justify-content: center; }

/* ── File tree — editable hint ────────────────────────────────────────────── */
.file-hint {
  font-size: 0.78rem;
  color: rgba(241,245,249,0.35);
  margin: 0 0 8px;
}

.file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.file-editable { cursor: pointer; }

.file-editable:hover {
  background: rgba(99,102,241,0.1);
  color: #a5b4fc;
}

.file-editable:hover .file-name { color: #a5b4fc; }

/* ── Monaco editor modal ──────────────────────────────────────────────────── */
.editor-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  flex-direction: column;
  background: #1e1e1e;
  transform: translateY(100vh);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.editor-modal.editor-open {
  transform: translateY(0);
  pointer-events: all;
}

.editor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 16px;
  background: #2d2d2d;
  border-bottom: 1px solid #3a3a3a;
  flex-shrink: 0;
  user-select: none;
}

.editor-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.editor-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-red    { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #28ca41; }

.editor-path {
  margin-left: 14px;
  font-family: 'JetBrains Mono','Fira Code',monospace;
  font-size: 0.8rem;
  color: #cccccc;
  max-width: 60vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.editor-status {
  font-size: 0.76rem;
  color: #858585;
  min-width: 150px;
  text-align: right;
  white-space: nowrap;
}

.editor-save-btn {
  padding: 6px 16px;
  background: #0e639c;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s;
  white-space: nowrap;
}

.editor-save-btn:hover:not(:disabled) { background: #1177bb; }

.editor-save-btn:disabled {
  opacity: 0.38;
  cursor: default;
}

.editor-close-btn {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  color: #888;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.1s, color 0.1s;
}

.editor-close-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

#monaco-container {
  flex: 1;
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.editor-textarea {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #1e1e1e;
  color: #d4d4d4;
  border: none;
  outline: none;
  resize: none;
  padding: 16px 20px;
  font-family: "Consolas", "Fira Mono", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.6;
  tab-size: 2;
  box-sizing: border-box;
}

.editor-notice {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(247,248,251,0.45);
  font-size: 0.9rem;
  padding: 40px;
  text-align: center;
}

.editor-image-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 20px;
  background: #111;
}

.editor-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

/* ── Landing page (light theme) ───────────────────────────────────────────── */
.lp-body {
  background: #f5f5f7;
  color: #1a1a2e;
}

/* Navbar */
.lp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(245,245,247,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}

.lp-nav-brand {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #6b7bff;
  text-decoration: none;
}

.lp-nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lp-nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: #444;
  text-decoration: none;
  transition: color 0.12s;
}

.lp-nav-links a:hover { color: #6b7bff; }

.lp-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  background: #1a1a2e;
  color: #fff !important;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.12s;
}

.lp-nav-cta:hover { background: #2c2c50; }

/* Hero */
.lp-hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 88px 32px 64px;
  text-align: center;
}

.lp-eyebrow {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(107,123,255,0.1);
  border: 1px solid rgba(107,123,255,0.28);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7bff;
  margin-bottom: 28px;
}

.lp-headline {
  font-size: clamp(2.6rem, 5vw + 1rem, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #0f0f1a;
  margin: 0 0 22px;
}

.lp-headline span { color: #6b7bff; }

.lp-sub {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 36px;
}

.lp-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 34px;
  background: #6b7bff;
  color: #fff;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(107,123,255,0.35);
  transition: background 0.14s, box-shadow 0.14s, transform 0.1s;
}

.lp-hero-cta:hover {
  background: #5567ee;
  box-shadow: 0 6px 32px rgba(107,123,255,0.45);
  transform: translateY(-1px);
}

/* Flow diagram */
.lp-diagram {
  max-width: 880px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

.lp-diagram-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Feature cards */
.lp-features {
  max-width: 1040px;
  margin: 0 auto 88px;
  padding: 0 32px;
}

.lp-features-heading {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #0f0f1a;
  margin: 0 0 48px;
}

.lp-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.lp-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 20px;
  padding: 28px 26px;
  transition: box-shadow 0.14s, transform 0.14s;
}

.lp-card:hover {
  box-shadow: 0 8px 36px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.lp-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(107,123,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.lp-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f0f1a;
  margin: 0 0 8px;
}

.lp-card-desc {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.65;
  margin: 0;
}

.lp-card-arrow {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #6b7bff;
}

/* Landing footer */
.lp-footer {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #999;
}

.lp-footer-links { display: flex; gap: 20px; }
.lp-footer-links a { color: #999; text-decoration: none; }
.lp-footer-links a:hover { color: #6b7bff; }

/* ── Dashboard improvements ───────────────────────────────────────────────── */
.info-card-highlight {
  border-color: rgba(107,123,255,0.22);
  background: linear-gradient(135deg, rgba(107,123,255,0.06) 0%, rgba(4,6,14,0.85) 100%);
}

.dash-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: #a0b0ff;
  line-height: 1;
  margin: 0 0 4px;
}

.dash-quick-cmd {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.dash-cmd-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 9px;
  padding: 8px 12px;
  font-family: 'JetBrains Mono','Fira Code',monospace;
  font-size: 0.78rem;
  color: rgba(247,248,251,0.72);
}

.dash-cmd-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6b7bff;
  flex-shrink: 0;
}

/* ── Logo image ───────────────────────────────────────────────────────────── */
.lp-logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.lp-footer-logo {
  height: 18px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  opacity: 0.6;
}

/* ── Nav active link ──────────────────────────────────────────────────────── */
.lp-nav-active { color: #6b7bff !important; }

/* ── Hamburger button (hidden on desktop) ─────────────────────────────────── */
.lp-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.lp-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: #1a1a2e;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ── Hero actions ─────────────────────────────────────────────────────────── */
.lp-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.lp-hero-secondary {
  font-size: 0.95rem;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.12s, border-color 0.12s;
}

.lp-hero-secondary:hover { color: #6b7bff; border-bottom-color: #6b7bff; }

/* ── Highlights strip ─────────────────────────────────────────────────────── */
.lp-highlights {
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.07);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  padding: 40px 32px;
}

.lp-highlights-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.lp-highlight {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.lp-highlight-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  line-height: 1;
}

.lp-highlight strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f0f1a;
  margin-bottom: 4px;
}

.lp-highlight p {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.55;
}

/* ── Inner page layout ────────────────────────────────────────────────────── */
.lp-page-content {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px 80px;
}

.lp-page-hero {
  text-align: center;
  padding: 72px 0 56px;
}

.lp-page-title {
  font-size: clamp(2rem, 4vw + 0.5rem, 3rem);
  font-weight: 800;
  color: #0f0f1a;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.lp-page-lead {
  font-size: 1.1rem;
  color: #555;
  margin: 0;
}

/* ── How it works steps ───────────────────────────────────────────────────── */
.lp-steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin: 0 0 64px;
}

.lp-step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.lp-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #6b7bff;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lp-step-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f0f1a;
  margin: 0 0 10px;
}

.lp-step-body p {
  color: #555;
  line-height: 1.7;
  margin: 0 0 14px;
}

.lp-code-block {
  background: #1a1a2e;
  color: #a0b0ff;
  font-family: 'JetBrains Mono','Fira Code',monospace;
  font-size: 0.85rem;
  padding: 12px 18px;
  border-radius: 10px;
  display: inline-block;
}

/* ── Page CTA ─────────────────────────────────────────────────────────────── */
.lp-page-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 16px;
}

/* ── Mobile topbar (dashboard) ────────────────────────────────────────────── */
.mobile-topbar {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  height: 52px;
  background: rgba(4,6,14,0.96);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: sticky;
  top: 0;
  z-index: 150;
}

.mobile-menu-btn {
  background: none;
  border: none;
  color: #f7f8fb;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px;
}

.mobile-topbar-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #6b7bff;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 190;
}

.sidebar-overlay.open { display: block; }

/* ── Responsive: ≤ 768px ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Landing nav */
  .lp-nav { padding: 0 20px; }
  .lp-menu-btn { display: flex; }
  .lp-nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(245,245,247,0.98);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 99;
  }
  .lp-nav-links.open { display: flex; }
  .lp-nav-links li { padding: 0; }
  .lp-nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  /* Hero */
  .lp-hero { padding: 56px 20px 40px; }
  .lp-hero-actions { flex-direction: column; gap: 12px; }

  /* Highlights */
  .lp-highlights { padding: 32px 20px; }
  .lp-highlights-inner { grid-template-columns: 1fr; gap: 24px; }

  /* Diagram scrollable */
  .lp-diagram { padding: 0 16px; overflow-x: auto; }

  /* Feature cards */
  .lp-cards { grid-template-columns: 1fr; }
  .lp-features { padding: 0 20px; margin-bottom: 56px; }

  /* Footer */
  .lp-footer {
    padding: 24px 20px;
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  /* Inner pages */
  .lp-page-content { padding: 0 20px 60px; }
  .lp-page-hero { padding: 48px 0 36px; }
  .lp-step { flex-direction: column; gap: 16px; }

  /* Dashboard */
  .mobile-topbar { display: flex; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: -240px;
    top: 0;
    z-index: 200;
    height: 100vh;
    width: 220px;
    transition: left 0.22s ease;
  }
  .sidebar.open { left: 0; }
  .main-panel { padding: 24px 16px; }
  .snapshot-grid { grid-template-columns: 1fr !important; }

  /* Tables scroll on mobile */
  .data-table { display: block; overflow-x: auto; }
}

@media (max-width: 480px) {
  .lp-headline { font-size: 2.2rem; }
  .lp-nav-cta { padding: 8px 16px; font-size: 0.8rem; }
  .lp-hero-cta { padding: 14px 26px; font-size: 0.95rem; }
  .main-panel { padding: 16px 12px; }
}

/* ── Repository snap layout ───────────────────────────────────────────────── */
.repo-snap-mode {
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100vh;
}

.repo-snap-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.repo-snap-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 20px;
  background: rgba(4,6,14,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
  min-height: 52px;
}

.repo-snap-back {
  color: rgba(247,248,251,0.5);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.12s;
  white-space: nowrap;
}
.repo-snap-back:hover { color: #a0b0ff; }

.repo-snap-sep {
  color: rgba(255,255,255,0.2);
  font-size: 0.85rem;
}

.repo-snap-name {
  font-family: 'JetBrains Mono','Fira Code',monospace;
  font-size: 0.82rem;
  color: #c0ccff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.repo-snap-meta-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: 4px;
}

.snap-pill {
  display: inline-block;
  padding: 2px 9px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px;
  font-size: 0.74rem;
  color: rgba(247,248,251,0.6);
  white-space: nowrap;
}

.snap-pill-accent {
  background: rgba(107,123,255,0.15);
  border-color: rgba(107,123,255,0.3);
  color: #a0b0ff;
}

.repo-snap-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

.snap-action-btn {
  padding: 5px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 7px;
  color: rgba(247,248,251,0.75);
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  white-space: nowrap;
}
.snap-action-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.12);
  color: #f7f8fb;
  border-color: rgba(255,255,255,0.18);
}
.snap-action-btn:disabled { opacity: 0.35; cursor: default; }

.snap-action-btn-terminal {
  border-color: rgba(107,123,255,0.35);
  color: #a0b0ff;
}
.snap-action-btn-terminal:hover {
  background: rgba(107,123,255,0.15) !important;
  border-color: rgba(107,123,255,0.5) !important;
  color: #c0ccff !important;
}

.snap-action-btn-accent {
  background: rgba(107,123,255,0.14);
  border-color: rgba(107,123,255,0.3);
  color: #a0b0ff;
}
.snap-action-btn-accent:hover {
  background: rgba(107,123,255,0.24) !important;
  color: #c0d0ff !important;
}

/* ── Repo body: file tree + content pane ──────────────────────────────────── */
.repo-snap-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.repo-file-panel {
  width: 260px;
  min-width: 180px;
  max-width: 340px;
  border-right: 1px solid rgba(255,255,255,0.07);
  background: rgba(4,6,14,0.75);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

.tree-search-wrap {
  padding: 10px 10px 6px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.tree-search {
  width: 100%;
  padding: 6px 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 7px;
  color: #f7f8fb;
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.12s;
}
.tree-search:focus { border-color: rgba(107,123,255,0.5); }
.tree-search::placeholder { color: rgba(247,248,251,0.3); }

.tree-container {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
}

.tree-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 5px;
  margin: 1px 4px;
  min-height: 28px;
  user-select: none;
  transition: background 0.1s;
}
.tree-row:hover { background: rgba(255,255,255,0.06); }

.tree-folder-hdr {
  color: rgba(247,248,251,0.8);
}

.tree-chevron {
  font-size: 0.6rem;
  color: rgba(247,248,251,0.35);
  width: 10px;
  flex-shrink: 0;
  line-height: 1;
}

.tree-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
  line-height: 1;
}

.tree-label {
  font-size: 0.8rem;
  font-family: 'JetBrains Mono','Fira Code',monospace;
  color: rgba(247,248,251,0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tree-file { color: rgba(247,248,251,0.65); }

.tree-file-active {
  background: rgba(107,123,255,0.18) !important;
}
.tree-file-active .tree-label { color: #c0ccff; }

.tree-children { padding: 0; }

.repo-content-pane {
  flex: 1;
  overflow-y: auto;
  background: rgba(8,10,20,0.6);
  min-width: 0;
}

/* ── Welcome pane ─────────────────────────────────────────────────────────── */
.repo-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 32px;
  height: 100%;
  min-height: 300px;
  color: rgba(247,248,251,0.55);
  gap: 12px;
}
.repo-welcome-icon { font-size: 3rem; line-height: 1; }
.repo-welcome h3   { margin: 0; color: #f7f8fb; font-size: 1.1rem; }
.repo-welcome p    { margin: 0; font-size: 0.88rem; line-height: 1.7; }
.repo-welcome-hint { color: rgba(247,248,251,0.4); font-size: 0.82rem !important; }

/* ── README viewer ────────────────────────────────────────────────────────── */
.readme-view {
  padding: 32px 44px;
  max-width: 800px;
  line-height: 1.75;
  color: rgba(247,248,251,0.88);
  font-size: 0.92rem;
}
.readme-view h1 { font-size: 1.8rem; margin: 0 0 20px; color: #f7f8fb; }
.readme-view h2 { font-size: 1.35rem; margin: 28px 0 12px; color: #f7f8fb; }
.readme-view h3 { font-size: 1.1rem; margin: 22px 0 10px; color: #f7f8fb; }
.readme-view p  { margin: 0 0 14px; }
.readme-view pre {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 14px 18px;
  overflow-x: auto;
  font-family: 'JetBrains Mono','Fira Code',monospace;
  font-size: 0.82rem;
  margin: 14px 0;
}
.readme-view code {
  background: rgba(107,123,255,0.12);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: 'JetBrains Mono','Fira Code',monospace;
  font-size: 0.85em;
  color: #a0b0ff;
}
.readme-view ul { padding-left: 24px; margin: 10px 0 14px; }
.readme-view li { margin-bottom: 4px; }
.readme-view strong { color: #f7f8fb; }

/* ── Commit log (snapshot history) ───────────────────────────────────────── */
.commit-log {
  display: flex;
  flex-direction: column;
}

.commit-row {
  display: flex;
  gap: 0;
  align-items: stretch;
  padding: 0;
}

.commit-timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 32px;
  flex-shrink: 0;
  padding-top: 4px;
}

.commit-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.35);
  flex-shrink: 0;
  margin-top: 4px;
}

.commit-dot-latest {
  background: #6b7bff;
  border-color: #a0b0ff;
  box-shadow: 0 0 8px rgba(107,123,255,0.5);
}

.commit-line {
  width: 2px;
  flex: 1;
  background: rgba(255,255,255,0.09);
  margin-top: 2px;
}

.commit-info {
  flex: 1;
  padding: 8px 12px 16px;
  min-width: 0;
}

.commit-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.commit-name {
  font-family: 'JetBrains Mono','Fira Code',monospace;
  font-size: 0.85rem;
  color: #a0b0ff;
  text-decoration: none;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.commit-name:hover { color: #c0ccff; text-decoration: underline; }

.commit-badge-latest {
  display: inline-block;
  padding: 1px 8px;
  background: rgba(107,123,255,0.18);
  border: 1px solid rgba(107,123,255,0.35);
  border-radius: 20px;
  font-size: 0.68rem;
  color: #a0b0ff;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.commit-meta {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: rgba(247,248,251,0.4);
}

.commit-actions {
  padding: 10px 0 10px 8px;
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
}

.commit-btn {
  padding: 4px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: rgba(247,248,251,0.6);
  font-size: 0.78rem;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.commit-btn:hover { background: rgba(107,123,255,0.15); color: #a0b0ff; border-color: rgba(107,123,255,0.3); }

/* ── Terminal panel ───────────────────────────────────────────────────────── */
.terminal-panel {
  position: fixed;
  bottom: 0;
  left: 220px;
  right: 0;
  height: 320px;
  background: #0d0d1a;
  border-top: 1px solid rgba(107,123,255,0.3);
  display: flex;
  flex-direction: column;
  z-index: 500;
  transform: translateY(100%);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.terminal-panel.open {
  transform: translateY(0);
  pointer-events: all;
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  height: 36px;
  background: #151525;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
  user-select: none;
}

.terminal-titlebar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-titlebar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}
.t-red    { background: #ff5f57; }
.t-yellow { background: #ffbd2e; }
.t-green  { background: #28ca41; }

.terminal-title {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(247,248,251,0.35);
  font-weight: 600;
  margin-left: 4px;
}

.terminal-btn {
  padding: 3px 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px;
  color: rgba(247,248,251,0.55);
  font-size: 0.73rem;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}
.terminal-btn:hover { background: rgba(255,255,255,0.12); color: #f7f8fb; }

.terminal-btn-close {
  width: 26px;
  padding: 3px 0;
  text-align: center;
}

.terminal-output {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px;
  min-height: 0;
  scroll-behavior: smooth;
}

.terminal-line {
  display: block;
  font-family: 'JetBrains Mono','Fira Code',monospace;
  font-size: 0.8rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0 0 2px;
}

.terminal-line-info   { color: rgba(160,176,255,0.85); }
.terminal-line-prompt { color: rgba(247,248,251,0.4); }
.terminal-line-result { color: rgba(247,248,251,0.82); }
.terminal-line-error  { color: #ff7070; }
.terminal-line-diff   { color: rgba(247,248,251,0.82); }

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 10px;
  border-top: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}

.terminal-prompt {
  font-family: 'JetBrains Mono','Fira Code',monospace;
  font-size: 0.82rem;
  color: #6b7bff;
  flex-shrink: 0;
  user-select: none;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #f7f8fb;
  font-family: 'JetBrains Mono','Fira Code',monospace;
  font-size: 0.82rem;
  outline: none;
  caret-color: #6b7bff;
}
.terminal-input::placeholder { color: rgba(247,248,251,0.25); }

/* ── Overlay modals ───────────────────────────────────────────────────────── */
.overlay-modal {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  padding: 20px;
}

.overlay-modal[hidden] { display: none; }

.overlay-modal-box {
  background: #0d0d1f;
  border: 1px solid rgba(107,123,255,0.25);
  border-radius: 18px;
  width: 100%;
  max-width: 580px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.overlay-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.overlay-modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: #f7f8fb;
  margin: 0;
}

.overlay-modal-close {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.07);
  border: none;
  border-radius: 6px;
  color: rgba(247,248,251,0.6);
  font-size: 0.9rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.1s, color 0.1s;
}
.overlay-modal-close:hover { background: rgba(255,255,255,0.14); color: #f7f8fb; }

.overlay-modal-body {
  flex: 1;
  padding: 18px 22px 22px;
  overflow-y: auto;
  min-height: 0;
}

.overlay-modal-sub {
  margin: 0 0 14px;
  color: rgba(247,248,251,0.5);
  font-size: 0.85rem;
}

.overlay-select {
  width: 100%;
  padding: 9px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #f7f8fb;
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
}
.overlay-select:focus { border-color: rgba(107,123,255,0.5); }

.overlay-btn-primary {
  padding: 9px 22px;
  background: #4f6dff;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s;
}
.overlay-btn-primary:hover { background: #5f7dff; }

.overlay-error {
  color: #ff7070;
  font-size: 0.85rem;
  margin: 8px 0;
}

/* ── Diff styles ──────────────────────────────────────────────────────────── */
.diff-summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.diff-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.diff-added-badge    { background: rgba(57,216,140,0.12); color: #5dd8a0; border-color: rgba(57,216,140,0.25); }
.diff-removed-badge  { background: rgba(255,100,100,0.12); color: #ff7878; border-color: rgba(255,100,100,0.25); }
.diff-modified-badge { background: rgba(255,180,50,0.12); color: #ffb040; border-color: rgba(255,180,50,0.25); }
.diff-unchanged-badge { background: rgba(255,255,255,0.06); color: rgba(247,248,251,0.5); border-color: rgba(255,255,255,0.1); }

.diff-group { margin-bottom: 16px; }

.diff-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.diff-added-label    { color: #5dd8a0; }
.diff-removed-label  { color: #ff7878; }
.diff-modified-label { color: #ffb040; }

.diff-item {
  font-family: 'JetBrains Mono','Fira Code',monospace;
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 5px;
  margin-bottom: 2px;
}
.diff-item-added    { background: rgba(57,216,140,0.08); color: #5dd8a0; }
.diff-item-removed  { background: rgba(255,100,100,0.08); color: #ff7878; }
.diff-item-modified { background: rgba(255,180,50,0.08); color: #ffb040; }

/* ── Verify styles ────────────────────────────────────────────────────────── */
.verify-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(107,123,255,0.2);
  border-top-color: #6b7bff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 16px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.verify-badge {
  display: block;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.verify-badge-ok   { background: rgba(57,216,140,0.12); color: #5dd8a0; border: 1px solid rgba(57,216,140,0.25); }
.verify-badge-fail { background: rgba(255,100,100,0.12); color: #ff7878; border: 1px solid rgba(255,100,100,0.25); }

.verify-summary { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

.verify-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 280px;
  overflow-y: auto;
}

.verify-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
  border-radius: 5px;
  transition: background 0.1s;
}
.verify-row:hover { background: rgba(255,255,255,0.03); }

.verify-icon {
  width: 16px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.verify-ok   { color: #5dd8a0; }
.verify-fail { color: #ff7878; }
.verify-skip { color: rgba(247,248,251,0.3); }

.verify-file {
  font-family: 'JetBrains Mono','Fira Code',monospace;
  font-size: 0.78rem;
  color: rgba(247,248,251,0.65);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Dashboard activity feed ──────────────────────────────────────────────── */
.dash-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.activity-feed {
  background: rgba(4,6,14,0.85);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
}

.activity-feed-header {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.activity-feed-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(247,248,251,0.45);
  margin: 0;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.1s;
  text-decoration: none;
  color: inherit;
}
.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: rgba(255,255,255,0.025); }

.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(107,123,255,0.12);
  border: 1px solid rgba(107,123,255,0.2);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.activity-body { flex: 1; min-width: 0; }

.activity-snap {
  font-family: 'JetBrains Mono','Fira Code',monospace;
  font-size: 0.8rem;
  color: #a0b0ff;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-repo {
  font-size: 0.74rem;
  color: rgba(247,248,251,0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.activity-meta {
  font-size: 0.73rem;
  color: rgba(247,248,251,0.35);
  flex-shrink: 0;
  text-align: right;
}

/* ── Sidebar terminal button ──────────────────────────────────────────────── */
.sidebar-terminal-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  margin-top: 6px;
  border-radius: 10px;
  color: rgba(160,176,255,0.7);
  background: rgba(107,123,255,0.08);
  border: 1px solid rgba(107,123,255,0.15);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  width: 100%;
  text-align: left;
}
.sidebar-terminal-btn:hover {
  background: rgba(107,123,255,0.18);
  color: #a0b0ff;
}

/* ── Mobile responsive for repo snap ─────────────────────────────────────── */
@media (max-width: 768px) {
  .repo-snap-body { flex-direction: column; }
  .repo-file-panel { width: 100%; max-width: none; height: 200px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .terminal-panel { left: 0; }
  .repo-snap-bar { gap: 6px; }
  .repo-snap-actions { margin-left: 0; width: 100%; }
}

/* ── GitHub-like repository view ─────────────────────────────────────────── */
.gh-repo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px;
  background: rgba(4,6,14,0.97);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.gh-repo-bar-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gh-back-link {
  color: rgba(247,248,251,0.45);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.12s;
  white-space: nowrap;
}
.gh-back-link:hover { color: #a0b0ff; }
.gh-bar-sep { color: rgba(255,255,255,0.18); font-size: 1rem; }
.gh-repo-name {
  font-size: 1rem;
  font-weight: 600;
  color: #f7f8fb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gh-repo-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.gh-snap-select-wrap { display: flex; align-items: center; gap: 6px; }
.gh-snap-label {
  font-size: 0.73rem;
  color: rgba(247,248,251,0.35);
  white-space: nowrap;
}
.gh-snap-select {
  padding: 5px 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 7px;
  color: #f7f8fb;
  font-size: 0.78rem;
  font-family: 'JetBrains Mono','Fira Code',monospace;
  cursor: pointer;
  outline: none;
  max-width: 230px;
  transition: border-color 0.12s;
}
.gh-snap-select:focus { border-color: rgba(107,123,255,0.5); }
.gh-snap-select option { background: #10121c; color: #f7f8fb; }

.gh-action-btn {
  padding: 5px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 7px;
  color: rgba(247,248,251,0.72);
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  white-space: nowrap;
}
.gh-action-btn:hover:not(:disabled) { background: rgba(255,255,255,0.12); color: #f7f8fb; }
.gh-action-btn:disabled { opacity: 0.35; cursor: default; }
.gh-action-terminal {
  border-color: rgba(107,123,255,0.35);
  color: #a0b0ff;
  font-size: 0.9rem;
  padding: 5px 10px;
}
.gh-action-terminal:hover:not(:disabled) {
  background: rgba(107,123,255,0.14) !important;
  color: #c0ccff !important;
  border-color: rgba(107,123,255,0.5) !important;
}

.gh-repo-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── File card ────────────────────────────────────────────────────────────── */
.gh-file-card {
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(8,10,22,0.5);
  transition: opacity 0.15s;
}

.gh-file-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  gap: 12px;
  flex-wrap: wrap;
  min-height: 44px;
}

.gh-path-bar { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.gh-path-crumb {
  color: #8090e0;
  font-size: 0.83rem;
  font-family: 'JetBrains Mono','Fira Code',monospace;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 4px;
  transition: background 0.1s, color 0.1s;
}
.gh-path-crumb:hover { background: rgba(107,123,255,0.14); color: #a0b0ff; }
.gh-path-crumb-active { color: #f7f8fb; cursor: default; font-weight: 500; }
.gh-path-crumb-active:hover { background: transparent; color: #f7f8fb; }
.gh-path-sep { color: rgba(255,255,255,0.18); font-size: 0.9rem; line-height: 1; }

.gh-snap-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.gh-pill {
  display: inline-block;
  padding: 2px 9px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  font-size: 0.72rem;
  color: rgba(247,248,251,0.5);
  white-space: nowrap;
}
.gh-pill-accent {
  background: rgba(107,123,255,0.13);
  border-color: rgba(107,123,255,0.25);
  color: #9aabff;
}

/* ── File list rows ───────────────────────────────────────────────────────── */
.gh-file-list { display: flex; flex-direction: column; }

.gh-file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  transition: background 0.1s;
  user-select: none;
  min-height: 36px;
}
.gh-file-row:last-child { border-bottom: none; }
.gh-file-row:hover { background: rgba(107,123,255,0.06); }
.gh-file-row:focus { outline: none; background: rgba(107,123,255,0.1); }

.gh-file-icon { font-size: 0.95rem; flex-shrink: 0; width: 20px; text-align: center; line-height: 1; }
.gh-file-name {
  flex: 1;
  font-size: 0.84rem;
  font-family: 'JetBrains Mono','Fira Code',monospace;
  color: rgba(247,248,251,0.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.gh-file-dir .gh-file-name { color: #a0b0ff; font-weight: 500; }
.gh-file-dir:hover .gh-file-name { color: #c0d0ff; }
.gh-file-meta { font-size: 0.74rem; color: rgba(247,248,251,0.28); flex-shrink: 0; }
.gh-file-chk {
  display: inline-block;
  padding: 1px 7px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  font-size: 0.68rem;
  color: rgba(247,248,251,0.22);
  font-family: 'JetBrains Mono','Fira Code',monospace;
  letter-spacing: 0.02em;
}
.gh-empty {
  padding: 20px 14px;
  color: rgba(247,248,251,0.3);
  font-size: 0.84rem;
}

.gh-binary-notice {
  padding: 10px 14px;
  background: rgba(255,200,80,0.08);
  border-top: 1px solid rgba(255,200,80,0.15);
  color: rgba(255,210,100,0.75);
  font-size: 0.8rem;
  font-family: 'JetBrains Mono','Fira Code',monospace;
}

/* ── README card ──────────────────────────────────────────────────────────── */
.gh-readme-card {
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(8,10,22,0.5);
}
.gh-readme-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 0.84rem;
  color: rgba(247,248,251,0.65);
  font-weight: 500;
}
.gh-readme-icon { font-size: 0.95rem; }
.gh-readme-body .readme-view { padding: 24px 28px; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
  .gh-repo-bar { gap: 8px; }
  .gh-repo-bar-right { margin-left: 0; width: 100%; }
  .gh-repo-content { padding: 12px; gap: 12px; }
  .gh-snap-select { max-width: 160px; }
}

/* ── Repo redesign — preview pane ─────────────────────────────────────────── */
.rp-preview-loading {
  padding: 32px 28px;
  color: rgba(247,248,251,0.4);
  font-size: 0.85rem;
}
.rp-preview-binary {
  padding: 32px 28px;
  color: rgba(255,200,80,0.75);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.rp-preview-error {
  padding: 32px 28px;
  color: #ff7070;
  font-size: 0.85rem;
}
.rp-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  gap: 12px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 2;
}
.rp-preview-filename {
  font-family: 'JetBrains Mono','Fira Code',monospace;
  font-size: 0.8rem;
  color: rgba(247,248,251,0.65);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.rp-preview-edit-btn {
  padding: 5px 14px;
  background: rgba(107,123,255,0.14);
  border: 1px solid rgba(107,123,255,0.3);
  border-radius: 7px;
  color: #a0b0ff;
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s;
  flex-shrink: 0;
}
.rp-preview-edit-btn:hover { background: rgba(107,123,255,0.25); color: #c0d0ff; }
.rp-preview-code {
  margin: 0;
  padding: 20px 24px;
  font-family: 'JetBrains Mono','Fira Code',monospace;
  font-size: 0.78rem;
  line-height: 1.65;
  color: rgba(247,248,251,0.82);
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: anywhere;
  tab-size: 2;
}
.tree-chevron {
  display: inline-block;
  transition: transform 0.15s;
  font-size: 0.6rem;
}

/* ── Download modal code block ────────────────────────────────────────────── */
.rp-dl-cmd-block {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(107,123,255,0.2);
  border-radius: 9px;
  padding: 12px 16px;
  font-family: 'JetBrains Mono','Fira Code',monospace;
  font-size: 0.82rem;
  color: #a0b0ff;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ── Download action button ───────────────────────────────────────────────── */
.gh-action-download {
  background: rgba(107,123,255,0.1);
  border-color: rgba(107,123,255,0.28);
  color: #a0b0ff;
}
.gh-action-download:hover:not(:disabled) {
  background: rgba(107,123,255,0.2) !important;
  color: #c0d0ff !important;
  border-color: rgba(107,123,255,0.45) !important;
}

/* ── Repositories search input ────────────────────────────────────────────── */
.repo-search-wrap { margin-bottom: 18px; }

.repo-search-input {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #f7f8fb;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.12s;
  -webkit-appearance: none;
  appearance: none;
}
.repo-search-input:focus { border-color: rgba(107,123,255,0.5); }
.repo-search-input::placeholder { color: rgba(247,248,251,0.3); }

/* ── Snapshot count badge ─────────────────────────────────────────────────── */
.snap-count-badge {
  display: inline-block;
  padding: 2px 9px;
  background: rgba(107,123,255,0.1);
  border: 1px solid rgba(107,123,255,0.22);
  border-radius: 20px;
  font-size: 0.75rem;
  color: #a0b0ff;
  font-weight: 500;
}

/* ── Copy pill feedback ───────────────────────────────────────────────────── */
.dash-cmd-pill { cursor: pointer; transition: border-color 0.2s, background 0.2s; position: relative; }
.dash-cmd-pill:hover { background: rgba(107,123,255,0.1); border-color: rgba(107,123,255,0.3); }
.dash-cmd-pill-copied { border-color: rgba(57,216,140,0.5) !important; background: rgba(57,216,140,0.08) !important; }

/* ── Settings page ────────────────────────────────────────────────────────── */
.settings-danger-card {
  border-color: rgba(255,80,80,0.2);
  background: rgba(255,80,80,0.03);
}
.settings-revoke-btn {
  padding: 8px 18px;
  background: rgba(255,80,80,0.1);
  border: 1px solid rgba(255,80,80,0.25);
  border-radius: 9px;
  color: #ff8080;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.12s;
}
.settings-revoke-btn:hover { background: rgba(255,80,80,0.2); }
.settings-config-val {
  font-family: 'JetBrains Mono','Fira Code',monospace;
  font-size: 0.82rem;
  color: #a0b0ff;
  background: rgba(107,123,255,0.08);
  border: 1px solid rgba(107,123,255,0.18);
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 8px;
  display: block;
  word-break: break-all;
}

/* ── Snapshot intelligence (extras) ─────────────────────────────────────────── */
.jx-extras-panel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  max-height: 42vh;
  overflow-y: auto;
}
.jx-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
}
.jx-card-hdr {
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 8px;
}
.jx-card-body { padding: 12px 14px; font-size: 0.8rem; line-height: 1.6; color: rgba(247,248,251,0.65); }
.jx-card-meta { padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.jx-tag { font-size: 0.68rem; padding: 2px 8px; border-radius: 999px; background: rgba(107,123,255,0.15); color: #a0b0ff; }
.jx-muted { color: rgba(247,248,251,0.4); font-size: 0.76rem; }
.jx-list { margin: 8px 0 0 16px; padding: 0; }
.jx-list li { margin: 3px 0; }
.jx-score { margin-left: auto; font-weight: 800; }
.jx-score-good { color: #6ee7a0; }
.jx-score-warn { color: #fbbf24; }
.jx-score-bad { color: #f87171; }
.jx-issue { margin: 4px 0; font-size: 0.76rem; }
.jx-issue-warn { color: #fbbf24; }
.jx-issue-error { color: #f87171; }
.jx-table { width: 100%; font-size: 0.74rem; margin-top: 8px; }
.jx-table td { padding: 3px 0; vertical-align: top; }
.jx-table code { font-size: 0.72rem; }
