:root {
  --bg: #0a0c10;
  --bg-alt: #0e1116;
  --bg-elevated: #141821;
  --text: #e9edf2;
  --text-muted: #8d96a3;
  --border: #232932;
  --accent: #ff7a45;
  --accent-bright: #ffa06b;
  --accent-dark: #e25f2c;
  --accent-soft: rgba(255, 122, 69, 0.12);
  --accent-soft-border: rgba(255, 122, 69, 0.35);
  --code-bg: #05060a;
  --code-text: #d8dde4;
  --radius: 10px;
  --max-width: 1080px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

code {
  font-family: var(--font-mono);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  font-size: 0.9em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 16, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  font-family: var(--font-mono);
  color: var(--accent);
}
.accent { color: var(--accent); }

.main-nav {
  display: flex;
  gap: 20px;
  flex: 1;
}
.main-nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--text);
  text-decoration: none;
}

.gh-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.gh-btn:hover {
  background: var(--bg-alt);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: 92px 0 68px;
  text-align: center;
  background:
    radial-gradient(50% 55% at 50% 0%, rgba(255, 122, 69, 0.14), transparent 70%),
    radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: auto, 22px 22px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.18;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.hero-sub {
  max-width: 640px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  font-size: 1.08rem;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: #1a0f08;
}
.btn-primary:hover { background: var(--accent-bright); }
.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-alt); border-color: var(--accent-soft-border); }

.badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  background: var(--bg-alt);
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; border-bottom: 1px solid var(--border); }
.section-alt { background: var(--bg-alt); }
.section:last-of-type { border-bottom: none; }

.section h2 {
  font-size: 1.65rem;
  margin: 0 0 18px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.section-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
  background: var(--bg-elevated);
}
.section > .container > p {
  color: var(--text-muted);
  max-width: 700px;
}
.sub-heading {
  margin-top: 40px;
  font-size: 1.15rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s ease;
}
.feature-card:hover { border-color: var(--accent-soft-border); }
.feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: 0.94rem; }

.checklist {
  margin: 16px 0 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checklist li {
  padding-left: 28px;
  position: relative;
  color: var(--text-muted);
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Flow diagram ---------- */
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 32px;
}
.flow-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.flow-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.flow-node {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.flow-node span {
  display: block;
  font-family: var(--font-sans);
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 4px;
}
.flow-node-main {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft);
}
.flow-arrow { color: var(--text-muted); font-size: 1.1rem; }
.flow-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.flow-arrow-h { display: block; }
.flow-node-convert {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text);
  text-align: center;
  width: 180px;
}

.flow-label-live { display: flex; align-items: center; gap: 8px; }
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-bright);
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: live-pulse 1.6s ease-out infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-soft); }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* Animated flow tracks: vertical line connecting nodes, with data moving through it */
.flow-track {
  position: relative;
  height: 40px;
  width: 3px;
  background: var(--border);
  border-radius: 2px;
}
.flow-arrow-glyph {
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  background: var(--bg-alt);
  line-height: 1;
  padding: 0 1px;
}

/* Batch: a single solid line - the job runs once, then it's done. */
.flow-track-once { background: var(--border); }

/* Stream: a continuously marching "data cable" - always carrying data, never stops. */
.flow-track-live {
  width: 4px;
  border-radius: 2px;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--accent) 0,
    var(--accent) 9px,
    transparent 9px,
    transparent 18px
  );
  background-size: 4px 18px;
  box-shadow: 0 0 10px var(--accent-soft);
  animation: cable-flow 0.5s linear infinite;
}
@keyframes cable-flow {
  from { background-position: 0 -18px; }
  to { background-position: 0 0; }
}

/* Discrete "event" pulse: fired by JS each time a file is picked up / processed */
.node-pulse {
  animation: node-pulse-flash 0.9s ease;
}
@keyframes node-pulse-flash {
  0% { box-shadow: 0 0 0 0 var(--accent-soft); border-color: var(--border); }
  25% { box-shadow: 0 0 0 6px var(--accent-soft); border-color: var(--accent); }
  100% { box-shadow: 0 0 0 0 transparent; border-color: var(--border); }
}

/* Live mini console widget showing simulated real-time stream.py output */
.flow-node-console { text-align: left; }
.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.console-cursor {
  color: var(--accent);
  font-size: 0.6rem;
  animation: blink-cursor 1s steps(1, end) infinite;
}
@keyframes blink-cursor { 50% { opacity: 0; } }
.console-lines {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 58px;
}
.console-line {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-bright);
  opacity: 0;
  transform: translateY(4px);
  animation: console-line-in 0.4s ease forwards;
}
.console-line-placeholder { color: var(--text-muted); opacity: 1; transform: none; animation: none; }
@keyframes console-line-in {
  to { opacity: 1; transform: translateY(0); }
}

.flow-caption {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 640px;
}

/* ---------- Code blocks / tabs ---------- */
pre {
  position: relative;
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: var(--radius);
  padding: 18px 16px;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 14px 0;
}
pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255,255,255,0.08);
  color: #cfd3da;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  font-size: 0.72rem;
  padding: 4px 10px;
  cursor: pointer;
  font-family: var(--font-sans);
}
.copy-btn:hover { background: rgba(255,255,255,0.16); color: #fff; }
.copy-btn.copied { color: #4ade80; border-color: #4ade80; }

.code-tab-buttons {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  margin-bottom: -1px;
}
.code-tab-btn {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  padding: 8px 16px;
  cursor: pointer;
  color: var(--text-muted);
}
.code-tab-btn.active {
  background: var(--code-bg);
  color: var(--code-text);
  border-color: var(--code-bg);
}
.code-panel { display: none; }
.code-panel.active { display: block; }
.code-panel pre { margin-top: 0; border-radius: 0 var(--radius) var(--radius) var(--radius); }

/* ---------- Getting started steps ---------- */
.steps {
  margin: 32px 0 0;
  padding-left: 0;
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 48px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a0f08;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h3 { margin: 4px 0 8px; font-size: 1.02rem; }
.steps p { margin: 8px 0; color: var(--text-muted); font-size: 0.94rem; }

.note-box {
  margin-top: 36px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-border);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 0.92rem;
  color: var(--accent-bright);
}
.note-box strong { color: var(--text); }

.tree { font-size: 0.82rem; }

/* ---------- Visual repository tree ---------- */
.repo-tree {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.repo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
}
.repo-icon {
  display: flex;
  flex-shrink: 0;
  color: var(--text-muted);
}
.repo-icon svg { width: 16px; height: 16px; }
.repo-name {
  font-family: var(--font-mono);
  font-size: 0.86rem;
}
.repo-tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-bright);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-border);
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
}
.repo-tag-muted {
  color: var(--text-muted);
  background: transparent;
  border-color: var(--border);
}
.repo-tag-accent { color: var(--accent-bright); }

.repo-folder .repo-icon { color: var(--accent); }
.repo-script .repo-icon { color: var(--accent); }
.repo-generated { border-style: dashed; }
.repo-generated .repo-name { color: var(--text-muted); }
.repo-highlight { border-color: var(--accent); background: var(--accent-soft); }

.repo-children {
  margin-left: 19px;
  padding-left: 16px;
  margin-top: 8px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.repo-group { display: flex; flex-direction: column; }

/* ---------- Workflow timeline ---------- */
.timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 48px 0 0;
  padding: 16px 0 0;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
}
.timeline::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 2.4s ease;
}
.timeline.in-view::after { width: 100%; }

.timeline li {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  text-align: center;
  padding: 0 4px;
}
.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.timeline.in-view li .timeline-dot {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.15);
}
.timeline li:nth-child(1) .timeline-dot { transition-delay: 0s; }
.timeline li:nth-child(2) .timeline-dot { transition-delay: 0.4s; }
.timeline li:nth-child(3) .timeline-dot { transition-delay: 0.8s; }
.timeline li:nth-child(4) .timeline-dot { transition-delay: 1.2s; }
.timeline li:nth-child(5) .timeline-dot { transition-delay: 1.6s; }
.timeline li:nth-child(6) .timeline-dot { transition-delay: 2s; }
.timeline li:nth-child(7) .timeline-dot { transition-delay: 2.4s; }
.timeline-dot-live { animation: live-pulse 1.6s ease-out infinite; }
.timeline.in-view .timeline-dot-live { background: var(--accent); border-color: var(--accent); }
.timeline-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ---------- Stack ---------- */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.stack-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: left;
  transition: border-color 0.2s ease;
}
.stack-card:hover { border-color: var(--accent-soft-border); }
.stack-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
}
.stack-icon svg { width: 18px; height: 18px; }
.stack-card h3 { margin: 0 0 6px; font-size: 1rem; }
.stack-card p { margin: 0; color: var(--text-muted); font-size: 0.88rem; }

.conclusion { text-align: center; }
.conclusion p { max-width: 700px; margin: 0 auto; }

.authors { text-align: center; }
.authors h2 { justify-content: center; margin-bottom: 28px; }
.authors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}
.author-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.author-card h3 { margin: 0 0 6px; font-size: 1rem; }
.author-card h3 a { color: var(--text); }
.author-card h3 a:hover { color: var(--accent); }
.author-card p { margin: 0; color: var(--text-muted); font-size: 0.85rem; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px 0 48px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.footer-inner p { margin: 0 0 6px; }
.footer-gh {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
}
.footer-gh i { font-size: 1.05rem; flex-shrink: 0; }
.footer-gh span { overflow-wrap: anywhere; }

/* ---------- Documentation: in-page PDF viewer ---------- */
.pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  flex-direction: column;
  background: var(--bg);
}
.pdf-modal.open { display: flex; }

.pdf-modal-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 14px 20px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.pdf-modal-brand .brand-mark {
  font-family: var(--font-mono);
  color: var(--accent);
}

.pdf-modal-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  flex-shrink: 0;
}
.pdf-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.pdf-back-btn:hover { border-color: var(--accent-soft-border); color: var(--accent); }

.pdf-modal-titleblock {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  overflow: hidden;
}
.pdf-modal-title {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}
.pdf-modal-subtitle {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdf-newtab-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--accent-soft-border);
  background: var(--accent-soft);
  color: var(--accent-bright);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.pdf-newtab-btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.pdf-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 16px 48px;
  background: #30343c;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.pdf-loading {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 40px;
}
.pdf-page-canvas {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  max-width: 100%;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .feature-grid, .stack-grid, .authors-grid { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow-center { flex-direction: row; justify-content: center; }
  .flow-arrow-h { transform: rotate(90deg); }
}

@media (max-width: 700px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 460px; }
  .main-nav a {
    padding: 12px 24px;
    border-bottom: 1px solid var(--border);
  }
  .gh-btn { display: none; }
  .nav-toggle { display: flex; }
  .nav-wrap { position: relative; }

  .feature-grid, .stack-grid, .authors-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 44px; }
  .section { padding: 52px 0; }
  .code-tab-buttons { flex-wrap: wrap; }

  .timeline {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 22px;
    gap: 26px;
  }
  .timeline::before {
    top: 0;
    bottom: 0;
    left: 7px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .timeline::after {
    top: 0;
    left: 7px;
    width: 2px;
    height: 0;
    transition: height 2.4s ease;
  }
  .timeline.in-view::after { width: 2px; height: 100%; }
  .timeline li {
    flex-direction: row;
    align-items: center;
    text-align: left;
    flex: none;
    width: 100%;
  }
  .timeline-label { font-size: 0.88rem; }

  .repo-row { flex-wrap: wrap; }
  .repo-tag {
    margin-left: 0;
    flex: 0 0 100%;
    white-space: normal;
  }
  .repo-children { margin-left: 12px; padding-left: 12px; }

  .pdf-modal-toolbar { padding: 10px 12px; gap: 8px; }
  .pdf-back-btn, .pdf-newtab-btn { padding: 7px 10px; font-size: 0.78rem; }
  .pdf-modal-titleblock { flex-direction: column; align-items: flex-start; gap: 0; }
  .pdf-modal-subtitle { display: none; }
  .pdf-modal-body { padding: 16px 8px 32px; }
}
