@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300..800;1,14..32,300..800&display=swap');

/* ─── Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #24292f;
  background: #f6f8fa;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
code { font-family: 'JetBrains Mono', ui-monospace, monospace; }
button { font-family: inherit; cursor: pointer; }

/* ─── Shell ──────────────────────────────────────────────────── */
.app-shell { display: flex; height: 100vh; overflow: hidden; }

/* ─── Sidebar ────────────────────────────────────────────────── */
.sidebar {
  width: 232px;
  flex-shrink: 0;
  background: #ffffff;
  border-right: 1px solid #d0d7de;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid #d0d7de;
}
.sidebar-logo-mark {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, #58a6ff 0%, #bc8cff 100%);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; color: #f6f8fa;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(88,166,255,.3), 0 2px 8px rgba(88,166,255,.2);
}
.sidebar-logo-name {
  font-size: 15px;
  font-weight: 700;
  color: #1f2328;
  letter-spacing: -0.3px;
}

.sidebar-nav { padding: 8px; flex: 1; }
.sidebar-section-label {
  font-size: 10px;
  font-weight: 600;
  color: #6e7781;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 12px 8px 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 6px;
  color: #57606a;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 1px;
  transition: color .12s, background .12s;
  border: 1px solid transparent;
}
.sidebar-link:hover { background: #eaeef2; color: #24292f; }
.sidebar-link.active {
  background: #1f3451;
  color: #58a6ff;
  border-color: #1f6feb33;
}
.sidebar-link svg { width: 15px; height: 15px; flex-shrink: 0; stroke-width: 1.8; }
.sidebar-link .link-badge {
  margin-left: auto;
  background: #eaeef2;
  border-radius: 10px;
  padding: 1px 6px;
  font-size: 10px;
  color: #6e7781;
}

.sidebar-footer {
  border-top: 1px solid #eaeef2;
  padding: 12px 16px;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
}
.sidebar-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #58a6ff, #bc8cff);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #f6f8fa;
  flex-shrink: 0;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: 12px; font-weight: 600; color: #24292f; truncate; }
.sidebar-user-email { font-size: 11px; color: #6e7781; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-signout {
  display: flex; align-items: center;
  padding: 4px;
  border-radius: 5px;
  color: #6e7781;
  border: none; background: none;
}
.sidebar-signout:hover { color: #f85149; background: #eaeef2; }
.sidebar-signout svg { width: 14px; height: 14px; }

/* ─── Main area ──────────────────────────────────────────────── */
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f6f8fa;
}

/* ─── Topbar ─────────────────────────────────────────────────── */
.topbar {
  height: 49px;
  min-height: 49px;
  border-bottom: 1px solid #eaeef2;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 8px;
  background: #ffffff;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #6e7781;
  flex: 1;
  min-width: 0;
}
.breadcrumb a { color: #57606a; transition: color .1s; }
.breadcrumb a:hover { color: #24292f; }
.breadcrumb .bc-sep { color: #d0d7de; }
.breadcrumb .bc-sep svg { width: 12px; height: 12px; vertical-align: middle; }
.breadcrumb .bc-current { color: #24292f; font-weight: 500; }
.topbar-right { display: flex; align-items: center; gap: 6px; }

/* ─── Flash ──────────────────────────────────────────────────── */
.flash {
  padding: 9px 24px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid;
}
.flash svg { width: 14px; height: 14px; flex-shrink: 0; }
.flash-notice { background: #0d2d1e; border-color: #196c2e; color: #3fb950; }
.flash-alert  { background: #2d0f0f; border-color: #6e1818; color: #f85149; }

/* ─── Page content ───────────────────────────────────────────── */
.page-content { flex: 1; overflow-y: auto; padding: 28px 28px; }

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}
.page-title {
  font-size: 18px;
  font-weight: 700;
  color: #1f2328;
  letter-spacing: -0.4px;
  line-height: 1.3;
}
.page-meta {
  font-size: 12px;
  color: #6e7781;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all .1s;
  letter-spacing: .01em;
  line-height: 20px;
}
.btn svg { width: 13px; height: 13px; stroke-width: 2.2; flex-shrink: 0; }

.btn-primary {
  background: #238636;
  border-color: #2ea043;
  color: #fff;
  box-shadow: 0 1px 0 rgba(27,31,36,.1), inset 0 1px 0 rgba(255,255,255,.03);
}
.btn-primary:hover { background: #2ea043; }

.btn-blue {
  background: #1f6feb;
  border-color: #388bfd;
  color: #fff;
  box-shadow: 0 1px 0 rgba(27,31,36,.1);
}
.btn-blue:hover { background: #388bfd; }

.btn-default {
  background: #eaeef2;
  border-color: #d0d7de;
  color: #24292f;
  box-shadow: 0 1px 0 rgba(27,31,36,.04), inset 0 1px 0 rgba(255,255,255,.02);
}
.btn-default:hover { background: #d0d7de; border-color: #57606a; }

.btn-danger {
  background: #eaeef2;
  border-color: #f8514966;
  color: #f85149;
}
.btn-danger:hover { background: #3d1a18; border-color: #f85149; }

.btn-sm { padding: 4px 10px; font-size: 11px; gap: 4px; }
.btn-sm svg { width: 12px; height: 12px; }

.btn-icon {
  padding: 5px;
  border-radius: 5px;
  background: transparent;
  border: 1px solid transparent;
  color: #57606a;
}
.btn-icon:hover { background: #eaeef2; border-color: #d0d7de; color: #24292f; }
.btn-icon svg { width: 14px; height: 14px; }

/* ─── Cards ──────────────────────────────────────────────────── */
.card {
  background: #ffffff;
  border: 1px solid #eaeef2;
  border-radius: 10px;
}
.card-body { padding: 20px; }
.card-header {
  padding: 14px 20px;
  border-bottom: 1px solid #eaeef2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header-title { font-size: 13px; font-weight: 600; color: #1f2328; }
.card-footer {
  padding: 12px 20px;
  border-top: 1px solid #eaeef2;
  background: #f6f8fa;
  border-radius: 0 0 10px 10px;
}

/* ─── Stats ──────────────────────────────────────────────────── */
.stats-row { display: flex; gap: 16px; margin-bottom: 28px; }
.stat-card {
  flex: 1;
  background: #ffffff;
  border: 1px solid #eaeef2;
  border-radius: 10px;
  padding: 16px 20px;
}
.stat-label { font-size: 11px; font-weight: 600; color: #6e7781; text-transform: uppercase; letter-spacing: .06em; }
.stat-value { font-size: 28px; font-weight: 700; color: #1f2328; margin-top: 6px; letter-spacing: -1px; line-height: 1; }

/* ─── Section label ──────────────────────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 600;
  color: #6e7781;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #eaeef2;
}

/* ─── List rows ──────────────────────────────────────────────── */
.list-item {
  display: flex;
  align-items: center;
  padding: 13px 20px;
  border-bottom: 1px solid #eaeef2;
  gap: 12px;
  transition: background .1s;
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: #f6f8fa; }
.list-item-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.list-item-icon svg { width: 16px; height: 16px; }
.list-item-body { flex: 1; min-width: 0; }
.list-item-title { font-size: 13px; font-weight: 600; color: #1f2328; }
.list-item-title a { color: inherit; }
.list-item-title a:hover { color: #58a6ff; }
.list-item-meta { font-size: 11px; color: #6e7781; margin-top: 2px; }
.list-item-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ─── Tables ─────────────────────────────────────────────────── */
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: #6e7781;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 10px 16px;
  border-bottom: 1px solid #eaeef2;
  white-space: nowrap;
}
.table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eaeef2;
  color: #57606a;
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: #f6f8fa; }
.table .td-main { color: #1f2328; font-weight: 500; }
.table a { color: #58a6ff; }
.table a:hover { text-decoration: underline; }
.table code { font-size: 11px; background: #f6f8fa; padding: 1px 5px; border-radius: 4px; color: #57606a; border: 1px solid #eaeef2; }

/* ─── Status badges ──────────────────────────────────────────── */
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .01em;
  border: 1px solid;
  white-space: nowrap;
}
.status svg { width: 11px; height: 11px; flex-shrink: 0; }

.status-pending  { background: #1c1917; color: #78716c; border-color: #292524; }
.status-running  { background: #0c2d6b; color: #79c0ff; border-color: #1f6feb; }
.status-running svg { animation: spin 1.2s linear infinite; }
.status-success  { background: #0d2d1e; color: #3fb950; border-color: #196c2e; }
.status-failed   { background: #2d0f0f; color: #f85149; border-color: #6e1818; }
.status-cancelled { background: #eaeef2; color: #6e7781; border-color: #d0d7de; }
.status-rolled_back { background: #2d1f0f; color: #d29922; border-color: #6e4c18; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Trigger badges */
.trigger-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px; border-radius: 4px;
  font-size: 10px; font-weight: 600; letter-spacing: .02em;
  text-transform: uppercase; border: 1px solid;
}
.trigger-push         { background: #0c2a3d; color: #79c0ff; border-color: #1f6feb55; }
.trigger-manual       { background: #1a0c2d; color: #bc8cff; border-color: #7c3aed55; }
.trigger-schedule     { background: #2d1a0c; color: #d29922; border-color: #9e6a0344; }
.trigger-pull_request { background: #0d2020; color: #39d353; border-color: #196c2e44; }

/* ─── Pipeline visualization ─────────────────────────────────── */
.pipeline-steps {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 4px;
}
.pipeline-step {
  display: flex;
  align-items: center;
}
.pipeline-step-box {
  background: #eaeef2;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  padding: 10px 16px;
  min-width: 120px;
  text-align: center;
  position: relative;
}
.pipeline-step-box.step-success { border-color: #196c2e; background: #0d2d1e22; }
.pipeline-step-box.step-failed  { border-color: #6e1818; background: #2d0f0f22; }
.pipeline-step-box.step-running { border-color: #1f6feb; background: #0c2d6b22; }
.pipeline-step-box.step-pending { border-color: #eaeef2; background: #eaeef2; }
.pipeline-step-num {
  font-size: 10px; color: #6e7781; margin-bottom: 4px; font-weight: 600;
}
.pipeline-step-name { font-size: 12px; font-weight: 600; color: #24292f; }
.pipeline-step-duration { font-size: 10px; color: #6e7781; margin-top: 2px; }
.pipeline-step-connector {
  width: 32px; height: 1px; background: #d0d7de; flex-shrink: 0;
}
.pipeline-step-connector::before,
.pipeline-step-connector::after {
  content: ''; display: block;
}

/* ─── Step run log ───────────────────────────────────────────── */
.step-card {
  background: #ffffff;
  border: 1px solid #eaeef2;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}
.step-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #f6f8fa;
  border-bottom: 1px solid #eaeef2;
  cursor: pointer;
}
.step-card-left { display: flex; align-items: center; gap: 10px; }
.step-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #eaeef2;
  border: 1px solid #d0d7de;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #6e7781;
  flex-shrink: 0;
}
.step-name { font-size: 13px; font-weight: 600; color: #1f2328; }
.step-card-right { display: flex; align-items: center; gap: 10px; }
.step-duration { font-size: 11px; color: #6e7781; }

.log-viewer {
  background: #1f2328;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  line-height: 1.65;
  padding: 14px 18px;
  max-height: 320px;
  overflow-y: auto;
  color: #adbac7;
}
.log-viewer .log-line { display: block; }
.log-viewer .log-line:hover { background: #ffffff08; }
.log-viewer .log-error { color: #f85149; }
.log-viewer .log-warn  { color: #e3b341; }
.log-viewer .log-cmd   { color: #58a6ff; }

/* ─── Forms ──────────────────────────────────────────────────── */
.form-body { padding: 20px; }
.form-group { margin-bottom: 18px; }
.form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #24292f;
  margin-bottom: 7px;
}
.form-label svg { width: 13px; height: 13px; color: #6e7781; }
.form-hint { font-size: 11px; color: #6e7781; margin-top: 5px; line-height: 1.4; }
.form-input, .form-select, .form-textarea {
  display: block;
  width: 100%;
  padding: 7px 11px;
  background: #f6f8fa;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  color: #24292f;
  font-size: 13px;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: #58a6ff;
  box-shadow: 0 0 0 3px #58a6ff1a;
}
.form-input::placeholder { color: #6e7781; }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23484f58' d='M4 6l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 9px center;
  background-size: 14px;
  padding-right: 30px;
}
.form-textarea {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.6;
  color: #7ee787;
  resize: vertical;
}
.form-textarea::placeholder { color: #eaeef2; font-family: 'JetBrains Mono', monospace; }

.form-error {
  background: #2d0f0f;
  border: 1px solid #6e1818;
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 18px;
  color: #f85149;
  font-size: 12px;
  line-height: 1.5;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #eaeef2;
  margin-top: 4px;
}

/* Form two-col layout */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-fieldset {
  border: 1px solid #eaeef2;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 18px;
}
.form-fieldset legend {
  font-size: 11px;
  font-weight: 600;
  color: #6e7781;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 0 6px;
}

/* ─── Empty states ───────────────────────────────────────────── */
.empty {
  text-align: center;
  padding: 52px 24px;
}
.empty-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #eaeef2;
  border: 1px solid #d0d7de;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.empty-icon svg { width: 20px; height: 20px; color: #6e7781; }
.empty-title { font-size: 14px; font-weight: 600; color: #24292f; margin-bottom: 6px; }
.empty-desc { font-size: 12px; color: #6e7781; line-height: 1.5; }
.empty-desc a { color: #58a6ff; }
.empty-desc a:hover { text-decoration: underline; }
.empty-action { margin-top: 16px; }

/* ─── YAML step preview ──────────────────────────────────────── */
.step-preview-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.step-preview-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #0c2d6b22;
  border: 1px solid #1f6feb44;
  color: #79c0ff;
  border-radius: 5px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
}

/* ─── Info rows (deployment detail) ──────────────────────────── */
.info-row {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid #eaeef2;
  gap: 16px;
}
.info-row:last-child { border-bottom: none; }
.info-key { font-size: 12px; color: #6e7781; font-weight: 500; width: 140px; flex-shrink: 0; }
.info-val { font-size: 12px; color: #24292f; }

/* ─── Auth pages ─────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: #f6f8fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-box { width: 100%; max-width: 360px; }
.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #58a6ff, #bc8cff);
  border-radius: 10px;
  font-size: 20px; font-weight: 800; color: #f6f8fa;
  margin-bottom: 10px;
  box-shadow: 0 0 0 1px #58a6ff44, 0 4px 16px #58a6ff22;
}
.auth-logo-title { font-size: 20px; font-weight: 700; color: #1f2328; letter-spacing: -0.5px; }
.auth-logo-sub { font-size: 12px; color: #6e7781; margin-top: 4px; }
.auth-card {
  background: #ffffff;
  border: 1px solid #eaeef2;
  border-radius: 12px;
  overflow: hidden;
}
.auth-card-body { padding: 24px; }
.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: #6e7781;
}
.auth-footer a { color: #58a6ff; }
.auth-footer a:hover { text-decoration: underline; }
.auth-divider {
  border: none;
  border-top: 1px solid #eaeef2;
  margin: 20px 0;
}

/* ─── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #eaeef2; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #d0d7de; }

/* ─── Utilities ──────────────────────────────────────────────── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.ml-auto { margin-left: auto; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.p-0 { padding: 0; }
.text-xs { font-size: 11px; }
.text-sm { font-size: 12px; }
.text-muted { color: #6e7781; }
.text-light { color: #57606a; }
.text-white { color: #1f2328; }
.text-blue  { color: #58a6ff; }
.text-green { color: #3fb950; }
.text-red   { color: #f85149; }
.text-yellow { color: #e3b341; }
.text-purple { color: #bc8cff; }
.font-medium  { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.max-w-sm { max-width: 480px; }
.max-w-md { max-width: 640px; }
.divide > * + * { border-top: 1px solid #eaeef2; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ─── Missing helpers ────────────────────────────────────────── */
.page-subtitle { font-size: 12px; color: #57606a; margin-top: 5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.flex-center { display: flex; align-items: center; gap: 8px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* Breadcrumb separators used inside content_for :breadcrumb */
.bc-sep { color: #d0d7de; display: inline-flex; align-items: center; }
.bc-sep svg { width: 12px; height: 12px; }
.bc-current { color: #24292f; font-weight: 500; }

/* log-output is the live-stream target id; same visual as log-viewer */
.log-output {
  background: #1f2328;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  line-height: 1.65;
  padding: 14px 18px;
  max-height: 320px;
  overflow-y: auto;
  color: #adbac7;
}
.log-output .log-error { color: #f85149; }

/* section-title alias used in project show */
.section-title {
  font-size: 11px;
  font-weight: 600;
  color: #6e7781;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 10px;
}

/* list-row used in project show */
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid #eaeef2;
  gap: 12px;
  transition: background .1s;
}
.list-row:last-child { border-bottom: none; }
.list-row:hover { background: #f6f8fa; }

/* env type pill */
.env-type-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: #eaeef2; border: 1px solid #d0d7de; border-radius: 5px;
  padding: 2px 8px; font-size: 10px; font-weight: 600; color: #57606a;
  text-transform: uppercase; letter-spacing: .04em;
}

/* ─── Documentation ──────────────────────────────────────────── */
.doc-nav-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  color: #57606a;
  transition: color .1s, background .1s;
}
.doc-nav-link:hover { background: #eaeef2; color: #24292f; }
.doc-nav-link svg { width: 12px; height: 12px; flex-shrink: 0; }

.doc-section {
  background: #ffffff;
  border: 1px solid #eaeef2;
  border-radius: 10px;
  overflow: hidden;
}
.doc-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  font-size: 13px;
  font-weight: 700;
  color: #1f2328;
  background: #f6f8fa;
  border-bottom: 1px solid #eaeef2;
  letter-spacing: -0.2px;
}
.doc-section-title svg { width: 15px; height: 15px; color: #58a6ff; }

.doc-body {
  padding: 20px;
  font-size: 13px;
  line-height: 1.65;
  color: #57606a;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.doc-body p { margin: 0; }
.doc-body ul, .doc-body ol { padding-left: 20px; display: flex; flex-direction: column; gap: 5px; }
.doc-body li { color: #57606a; }
.doc-body strong { color: #24292f; font-weight: 600; }
.doc-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  background: #f6f8fa;
  border: 1px solid #eaeef2;
  border-radius: 4px;
  padding: 1px 5px;
  color: #79c0ff;
}

.doc-step-header {
  font-size: 12px;
  font-weight: 700;
  color: #24292f;
  margin-top: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid #eaeef2;
}

pre.doc-code {
  background: #1f2328;
  border: 1px solid #d0d7de;
  border-radius: 7px;
  padding: 14px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  line-height: 1.65;
  color: #7ee787;
  overflow-x: auto;
  margin: 0;
  white-space: pre;
}

.doc-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px;
  background: #f6f8fa;
  border: 1px solid #eaeef2;
  border-radius: 8px;
  margin-top: 4px;
}
.doc-flow-step {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #24292f;
}
.doc-flow-step svg { width: 14px; height: 14px; color: #58a6ff; }

.doc-callout {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.5;
  border: 1px solid;
}
.doc-callout svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; }
.doc-callout-info { background: #0c2d6b22; border-color: #1f6feb44; color: #79c0ff; }
.doc-callout-info svg { color: #58a6ff; }
.doc-callout-warn { background: #2d1a0c22; border-color: #9e6a0344; color: #e3b341; }
.doc-callout-warn svg { color: #e3b341; }
.doc-callout div { color: #57606a; }
.doc-callout div strong { color: #24292f; }

/* btn-ghost alias */
.btn-ghost {
  background: transparent;
  border-color: #d0d7de;
  color: #57606a;
}
.btn-ghost:hover { background: #eaeef2; color: #24292f; border-color: #57606a; }
