/* Encoder admin — brand colors from docs/design/Colors & type.png
   Midnight #0E1020 · Signal Lime #C8FF2E (accent on dark)
   Bitrate Violet #5B3DF5 (accent on light) · Frame White #F2F4F8 */

/* Fonts are self-hosted (SIL Open Font License): Unbounded, JetBrains Mono */
@font-face { font-family: "Unbounded"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/unbounded-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/unbounded-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --midnight: #0e1020;
  --lime: #c8ff2e;
  --violet: #5b3df5;
  --frame: #f2f4f8;

  --font-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --sidebar-w: 248px;

  color-scheme: light;
  --bg: var(--frame);
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --border: #e2e5ee;
  --border-strong: #cfd4e1;
  --text: var(--midnight);
  --text-2: #4a4f66;
  --text-3: #7a7f96;
  --accent: var(--violet);
  --accent-hover: #4a2de0;
  --accent-text: #ffffff;
  --accent-soft: rgba(91, 61, 245, 0.1);
  --link: var(--violet);
  --mark-bars: var(--midnight);
  --mark-pixels: var(--violet);
  --sidebar-bg: #ffffff;
  --success: #12804a;
  --success-soft: rgba(18, 128, 74, 0.1);
  --danger: #c62a3f;
  --danger-soft: rgba(198, 42, 63, 0.09);
  --shadow: 0 1px 2px rgba(14, 16, 32, 0.05), 0 4px 16px rgba(14, 16, 32, 0.04);
  --focus: 0 0 0 3px rgba(91, 61, 245, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: var(--midnight);
    --surface: #161929;
    --surface-2: #1c2033;
    --border: #262a3f;
    --border-strong: #353a53;
    --text: var(--frame);
    --text-2: #b4b8cb;
    --text-3: #868aa1;
    --accent: var(--lime);
    --accent-hover: #d6ff5c;
    --accent-text: var(--midnight);
    --accent-soft: rgba(200, 255, 46, 0.1);
    --link: var(--lime);
    --mark-bars: var(--lime);
    --mark-pixels: var(--frame);
    --sidebar-bg: #121524;
    --success: #6fe39b;
    --success-soft: rgba(111, 227, 155, 0.12);
    --danger: #ff7a8a;
    --danger-soft: rgba(255, 122, 138, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    --focus: 0 0 0 3px rgba(200, 255, 46, 0.35);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--midnight);
  --surface: #161929;
  --surface-2: #1c2033;
  --border: #262a3f;
  --border-strong: #353a53;
  --text: var(--frame);
  --text-2: #b4b8cb;
  --text-3: #868aa1;
  --accent: var(--lime);
  --accent-hover: #d6ff5c;
  --accent-text: var(--midnight);
  --accent-soft: rgba(200, 255, 46, 0.1);
  --link: var(--lime);
  --mark-bars: var(--lime);
  --mark-pixels: var(--frame);
  --sidebar-bg: #121524;
  --success: #6fe39b;
  --success-soft: rgba(111, 227, 155, 0.12);
  --danger: #ff7a8a;
  --danger-soft: rgba(255, 122, 138, 0.12);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  --focus: 0 0 0 3px rgba(200, 255, 46, 0.35);
}

/* ── Base ─────────────────────────────────── */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: 0; line-height: 1.2; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── Brand ────────────────────────────────── */

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: auto; flex: none; }
.brand-mark .bars { fill: var(--mark-bars); }
.brand-mark .pixels { fill: var(--mark-pixels); }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
  text-transform: lowercase;
}

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ── Layout ───────────────────────────────── */

.shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  z-index: 30;
}

.sidebar .brand { padding: 4px 10px 22px; }

.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav .eyebrow { padding: 14px 12px 6px; }

.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-weight: 500;
  font-size: 14px;
}
.nav a svg { width: 18px; height: 18px; flex: none; opacity: 0.85; }
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--text); }
.nav a[aria-current="page"] svg { color: var(--accent); opacity: 1; }

.sidebar-foot {
  border-top: 1px solid var(--border);
  padding: 14px 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background: var(--accent-soft); color: var(--text);
  font-family: var(--font-mono); font-weight: 500; font-size: 13px;
  text-transform: uppercase;
}
.who { min-width: 0; flex: 1; }
.who-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-mail { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { margin-left: var(--sidebar-w); min-width: 0; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 32px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar .brand { display: none; }
.topbar-spacer { flex: 1; }

.content { padding: 32px; max-width: 1200px; }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.page-head h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-top: 6px;
}
.page-head p { margin: 8px 0 0; color: var(--text-2); max-width: 60ch; }

/* ── Buttons ──────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: 600 14px/1 var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--border-strong); }
.btn-danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }

.icon-btn {
  width: 40px; height: 40px;
  display: inline-grid; place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
}
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }

.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

.menu-btn { display: none; }

/* ── Cards & grid ─────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.card-head h2 { font-size: 15px; font-weight: 600; }
.card-body { padding: 20px; }
.content > .card + .card,
.content > section.card + section.card { margin-top: 20px; }

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

.tile {
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px;
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s;
}
.tile:hover { text-decoration: none; border-color: var(--accent); }
.tile-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.tile-icon svg { width: 20px; height: 20px; }
.tile h2 { font-size: 16px; font-weight: 600; }
.tile p { margin: 0; color: var(--text-2); font-size: 14px; }
.tile .arrow { margin-top: auto; padding-top: 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.tile:hover .arrow { color: var(--text); }

.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat { padding: 18px 20px; }
.stat-value { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin-top: 8px; letter-spacing: -0.02em; }
.stat-note { color: var(--text-3); font-size: 13px; margin-top: 4px; }

/* ── Forms ────────────────────────────────── */

.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: end; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--text-3); }

.input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font: 400 15px/1.4 var(--font-body);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: var(--text-3); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }

/* ── Alerts & badges ──────────────────────── */

.alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid transparent;
}
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.alert-success { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.alert-error { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--success-soft); color: var(--success); border-color: transparent; }
.badge-muted { color: var(--text-3); }

/* ── Tables ───────────────────────────────── */

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left;
  padding: 10px 20px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td { padding: 14px 20px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table .mono { font-family: var(--font-mono); font-size: 13px; color: var(--text-2); }
.table .actions { text-align: right; }
.table .actions form { display: inline; }
.cell-primary { font-weight: 600; }
.cell-sub { color: var(--text-3); font-size: 13px; }

.empty { padding: 40px 20px; text-align: center; color: var(--text-3); }
.empty strong { display: block; color: var(--text-2); font-weight: 600; margin-bottom: 4px; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 14px; }
.list li:last-child { border-bottom: 0; }
.list .label { color: var(--text-2); }

/* ── Login ────────────────────────────────── */

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.auth-panel {
  background: var(--midnight);
  color: var(--frame);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-panel .brand { color: var(--frame); }
.auth-panel .brand-mark { width: 34px; }
.auth-panel .brand-mark .bars { fill: var(--lime); }
.auth-panel .brand-mark .pixels { fill: var(--frame); }
.auth-panel .brand-word { font-size: 26px; }
.auth-panel .eyebrow { color: #868aa1; }
.auth-art { position: absolute; right: -90px; top: 50%; transform: translateY(-50%); width: 380px; opacity: 0.09; pointer-events: none; }
.auth-art .bars, .auth-art .pixels { fill: var(--lime); }
.auth-tag { position: relative; }
.auth-tag h2 { font-family: var(--font-display); font-weight: 700; font-size: 34px; letter-spacing: -0.03em; line-height: 1.15; margin: 14px 0 0; max-width: 14ch; }
.auth-form-wrap { display: grid; place-items: center; padding: 48px 24px; position: relative; border-left: 1px solid var(--border); }
.auth-form { width: 100%; max-width: 380px; }
.auth-form h1 { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; margin: 8px 0 6px; }
.auth-form > p { margin: 0 0 28px; color: var(--text-2); }
.auth-form .field + .field { margin-top: 16px; }
.auth-form .btn { margin-top: 24px; min-height: 46px; }
.auth-form-wrap .theme-toggle { position: absolute; top: 20px; right: 20px; }
.auth-mobile-brand { display: none; margin-bottom: 32px; }

/* ── Mobile ───────────────────────────────── */

.scrim { display: none; }

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: none;
  }
  .nav-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, 0.3); }
  .nav-open .scrim {
    display: block; position: fixed; inset: 0; z-index: 25;
    background: rgba(14, 16, 32, 0.45);
  }
  .main { margin-left: 0; }
  .topbar { padding: 0 16px; }
  .topbar .brand { display: inline-flex; }
  .topbar .brand-word { font-size: 18px; }
  .topbar .brand-mark { width: 22px; }
  .menu-btn { display: inline-grid; }
  .content { padding: 24px 16px 40px; }
  .page-head h1 { font-size: 22px; }

  .auth { grid-template-columns: 1fr; }
  .auth-panel { display: none; }
  .auth-mobile-brand { display: inline-flex; }
  .auth-form-wrap { place-items: start center; padding-top: 72px; border-left: 0; }
}

@media (max-width: 640px) {
  .page-head .btn { width: 100%; }

  /* Tables turn into stacked cards */
  .table-stack thead { display: none; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack tr { padding: 14px 16px; border-bottom: 1px solid var(--border); }
  .table-stack tr:last-child { border-bottom: 0; }
  .table-stack tbody tr:hover td { background: transparent; }
  .table-stack td { padding: 4px 0; border: 0; display: flex; justify-content: space-between; gap: 16px; text-align: right; }
  .table-stack td::before {
    content: attr(data-label);
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--text-3); text-align: left;
    padding-top: 2px;
  }
  .table-stack td.cell-head { display: block; text-align: left; padding-bottom: 8px; }
  .table-stack td.cell-head::before { content: none; }
  .table-stack td.actions { padding-top: 10px; justify-content: flex-start; }
  .table-stack td.actions::before { content: none; }
  .table-stack td.actions .btn { width: 100%; }
  .table-stack td.empty { display: block; text-align: center; }
  .table-stack td.empty::before { content: none; }
  .card-head, .card-body { padding: 16px; }
  .list li { padding: 12px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
.section-gap { margin-top: 20px; }

/* ── Clients & keys ───────────────────────── */

.narrow { max-width: 680px; }
.narrow-field { max-width: 420px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.form-actions-start { justify-content: flex-start; }

.checks { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checks legend { font-size: 13px; font-weight: 600; color: var(--text-2); padding: 0; margin-bottom: 6px; }
.check {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}
.check:hover { border-color: var(--border-strong); }
.check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.check input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.check > span { display: flex; flex-direction: column; gap: 2px; }
.check-desc { font-size: 13px; color: var(--text-2); }

.scope-list { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: inherit; }
code, .scope { font-family: var(--font-mono); font-size: 12px; }
.scope {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  white-space: nowrap;
}

.secret { display: flex; gap: 8px; }
.secret .input { flex: 1; min-width: 0; }
.mono-input { font-family: var(--font-mono); font-size: 13px; }
.btn.copied { border-color: var(--success); color: var(--success); }

.alert-warning {
  background: color-mix(in srgb, #f5a524 14%, transparent);
  color: var(--text);
  border-color: color-mix(in srgb, #f5a524 45%, transparent);
}
.alert-warning svg { color: #d48806; }

.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 24px; margin: 0; }
.meta dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.meta dd { margin: 0; font-size: 14px; word-break: break-all; }
.meta .mono { font-family: var(--font-mono); font-size: 13px; color: var(--text-2); }
.meta-wide { grid-column: 1 / -1; }

.reveal summary { cursor: pointer; color: var(--link); font-size: 14px; width: max-content; }
.reveal[open] summary { margin-bottom: 10px; }

.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); margin-bottom: 16px; }
.back-link svg { width: 16px; height: 16px; }
.back-link:hover { color: var(--text); }

.cell-link { color: var(--text); }
.cell-link:hover { color: var(--link); }
.row-muted td { color: var(--text-3); }
.row-muted .cell-primary { color: var(--text-3); }

@media (max-width: 640px) {
  .secret { flex-direction: column; }
  .form-actions .btn { flex: 1; }
  .table-stack .scope-list { justify-content: flex-end; }
}
.check .scope { align-self: flex-start; }
.table td.mono { white-space: nowrap; }
@media (max-width: 640px) { .table td.mono { white-space: normal; } }

/* API docs */
.docs { display: grid; gap: 20px; }
.docs h3 { margin: 22px 0 6px; font-size: 15px; }
.docs h3:first-child { margin-top: 0; }
.docs p, .docs li { font-size: 14px; line-height: 1.6; }
.docs ul, .docs ol { padding-left: 20px; margin: 6px 0; }
.docs pre { margin: 8px 0 14px; padding: 12px 14px; overflow-x: auto; background: var(--surface-2, rgba(127,127,127,.1)); border: 1px solid var(--border, rgba(127,127,127,.25)); border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 12.5px; line-height: 1.55; }
.docs pre code { font-size: inherit; }
.docs .method { display: inline-block; min-width: 54px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; }

/* ── Jobs: state filters & pagination ──────── */

.state-filters {
  display: flex; flex-wrap: wrap; gap: 6px;
  align-items: center;
}

.pagination {
  display: flex; align-items: center; gap: 10px;
}
.pagination-info { font-size: 13px; color: var(--text-2); }

/* ── Progress bar ──────────────────────────── */

.progress-mini {
  display: inline-block;
  width: 80px; height: 6px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
  vertical-align: middle;
  margin-right: 8px;
}
.progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.3s ease;
}
.progress-pct { font-size: 12px; color: var(--text-3); font-family: var(--font-mono); }

/* ── Pipeline graph ────────────────────────── */

.pipeline-card { overflow: hidden; }

.pipeline-body {
  padding: 12px;
  background: var(--bg);
}

.pipeline-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0;
}

.pipeline-graph {
  display: block;
  max-width: 100%;
  height: auto;
}

.pipeline-graph text {
  -webkit-user-select: none;
  user-select: none;
}

/* Running node pulse animation */
@keyframes pipeline-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ── Badge: danger variant ─────────────────── */

.badge-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: transparent;
}

.text-3 { color: var(--text-3); }

@media (max-width: 640px) {
  .pipeline-body { padding: 8px; }
  .progress-mini { width: 60px; }
}
