:root {
  --bg: #0a0509;
  --bg-2: #140710;
  --ink: #f7eef2;
  --ink-dim: rgba(247, 238, 242, 0.62);
  --ink-faint: rgba(247, 238, 242, 0.32);
  --ruby: #e0115f;
  --ruby-deep: #9b0d20;
  --line: rgba(247, 238, 242, 0.12);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --nav-h: 72px;
  --maxw: 1240px;
  font-synthesis-weight: none;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  min-height: 100svh;
  background:
    radial-gradient(120% 80% at 50% -10%, #2a0a18 0%, transparent 55%),
    radial-gradient(90% 60% at 80% 110%, #1a0510 0%, transparent 60%),
    var(--bg);
}

::selection { background: rgba(224, 17, 95, 0.32); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(20px, 5vw, 56px);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  background: linear-gradient(180deg, rgba(10, 5, 9, 0.72), rgba(10, 5, 9, 0.18));
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.wordmark::before {
  content: "";
  width: 9px; height: 9px;
  background: linear-gradient(135deg, var(--ruby), var(--ruby-deep));
  transform: rotate(45deg);
  box-shadow: 0 0 14px rgba(224, 17, 95, 0.55);
}

.site-nav {
  justify-self: center;
  display: flex;
  gap: 34px;
}
.site-nav a {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-dim);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.25s var(--ease);
  position: relative;
}
.site-nav a:hover { color: var(--ink); }

.cta-pill {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(247, 238, 242, 0.03);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.cta-pill:hover {
  border-color: rgba(224, 17, 95, 0.6);
  background: rgba(224, 17, 95, 0.08);
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
}

#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

/* Soft scan-line overlay (2D echo of the reference) — scoped to the orbit zone
   on the right so the decorative texture lives with the ring, not over copy. */
.scanlines {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  z-index: 3;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.05) 0px,
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: screen;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 100%);
}

/* slow travelling sheen, contained to the right orbit zone */
.scanlines::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(224, 17, 95, 0.07) 45%, rgba(224, 17, 95, 0.11) 50%, rgba(224, 17, 95, 0.07) 55%, transparent 100%);
  height: 24%;
  animation: sheen 9s linear infinite;
  mix-blend-mode: screen;
}
@keyframes sheen {
  0%   { transform: translateY(-30%); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translateY(520%); opacity: 0; }
}

/* Legibility veil: keep the LEFT/copy region quiet, let the RIGHT orbit pop. */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 40%, rgba(10, 5, 9, 0.55) 82%, rgba(10, 5, 9, 0.92) 100%),
    radial-gradient(58% 70% at 10% 80%, rgba(10, 5, 9, 0.82) 0%, transparent 68%),
    radial-gradient(48% 80% at 102% 45%, rgba(10, 5, 9, 0.38) 0%, transparent 66%);
}

.hero-copy {
  position: absolute;
  z-index: 4;
  left: clamp(20px, 5vw, 56px);
  bottom: clamp(48px, 11vh, 124px);
  max-width: 620px;
}

.hero-title {
  font-weight: 300;
  font-size: clamp(40px, 7.2vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.hero-title-em {
  font-weight: 500;
  background: linear-gradient(120deg, #ffe7f0 0%, var(--ruby) 60%, var(--ruby-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 22px;
  max-width: 520px;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.6;
  color: var(--ink-dim);
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.btn-primary {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: #fff;
  padding: 13px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ruby) 0%, var(--ruby-deep) 100%);
  box-shadow: 0 8px 30px rgba(224, 17, 95, 0.32), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.btn-primary span { transition: transform 0.25s var(--ease); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(224, 17, 95, 0.42), inset 0 1px 0 rgba(255,255,255,0.22); }
.btn-primary:hover span { transform: translateX(4px); }

.btn-ghost {
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  color: var(--ink-dim);
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-ghost:hover { color: var(--ink); border-color: rgba(247, 238, 242, 0.3); }

.hero-meta {
  position: absolute;
  z-index: 4;
  right: clamp(20px, 5vw, 56px);
  bottom: clamp(24px, 5vh, 40px);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-variant-numeric: tabular-nums;
}
.hero-meta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ruby);
  box-shadow: 0 0 10px var(--ruby);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .site-nav { display: none; }
  .site-header { grid-template-columns: auto 1fr auto; }
  .hero-copy { max-width: 92vw; }
  .hero-meta { display: none; }
}

@media (max-width: 480px) {
  .site-header { padding: 0 18px; }
  .cta-pill { padding: 8px 14px; font-size: 13px; }
  .hero-actions .btn-ghost { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .scanlines::after { animation: none; }
  .hero-meta .dot { animation: none; }
  .btn-primary, .cta-pill, .btn-primary span { transition: none; }
  .tp-plan-status.tp-ps-active { animation: none; }
  .tp-prompt-text::after { animation: none; }
}

/* ---------- Smooth scroll ---------- */
html { scroll-behavior: smooth; }

/* ============================================================================
 * Post-hero sections
 * -------------------------------------------------------------------------- */

.section {
  position: relative;
}
.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 14vh, 160px) clamp(20px, 5vw, 56px);
}
.section-inner.center { text-align: center; }
.section-inner.narrow { max-width: 760px; }
.section--tall .section-inner {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Diamond rule divider — a centered ruby diamond with hairline rules extending
   left/right; ties the page together with the wordmark's diamond motif. */
.diamond-rule {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
  display: flex;
  align-items: center;
  gap: 18px;
}
.diamond-rule::before,
.diamond-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.diamond-rule::after { display: none; } /* single-side variant by default */
.section--tall .diamond-rule {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
.diamond-rule::after { display: block; } /* now both sides show */
/* the diamond itself sits in the gap; we render it via a pseudo on the rule */
.diamond-rule {
  position: relative;
}
.diamond-rule::before {
  content: "";
  display: block;
  width: 9px; height: 9px;
  background: linear-gradient(135deg, var(--ruby), var(--ruby-deep));
  transform: rotate(45deg);
  box-shadow: 0 0 14px rgba(224, 17, 95, 0.5);
  flex: 0 0 auto;
  margin: 0 auto;
}
.diamond-rule {
  justify-content: center;
  gap: 24px;
}

/* ---------- Manifesto ---------- */
.manifesto-title {
  font-weight: 300;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
}

/* ---------- Eyebrow / small section labels ---------- */
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 40px;
}

/* ---------- How it works ---------- */
.section--scanlines::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.018) 0px,
    rgba(255, 255, 255, 0.018) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: screen;
  opacity: 0.6;
}
.section--scanlines .section-inner { position: relative; z-index: 1; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
}
.feature-card {
  border-top: 1px solid var(--line);
  padding: 28px 0 0;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.feature-card:hover {
  border-top-color: rgba(224, 17, 95, 0.6);
  transform: translateY(-3px);
}
.feature-diamond {
  display: inline-block;
  width: 11px; height: 11px;
  background: linear-gradient(135deg, var(--ruby), var(--ruby-deep));
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(224, 17, 95, 0.45);
  margin-bottom: 22px;
}
.feature-title {
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 12px;
}
.feature-body {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 320px;
}

/* ---------- Quote / aspiration ---------- */
.pullquote {
  font-weight: 300;
  font-style: italic;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 720px;
  margin: 0 auto;
  text-wrap: balance;
}

/* ---------- Team / hiring ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.team-body {
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.65;
  color: var(--ink-dim);
  max-width: 520px;
  font-weight: 300;
}
.hire-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(28px, 3.5vw, 40px);
  background: rgba(247, 238, 242, 0.02);
  transition: border-color 0.3s var(--ease);
}
.hire-card:hover { border-color: rgba(224, 17, 95, 0.4); }
.hire-title {
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 14px;
}
.hire-body {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
  color: var(--ink-dim);
  margin-bottom: 26px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 7vw, 80px) 0 32px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}
.footer-tagline {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.01em;
}
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col a {
  font-size: 14px;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
.footer-col a:hover { color: var(--ink); }
.footer-contact a[hr^="mailto"], .footer-contact a[href^="mailto"] {
  color: var(--ink);
  font-weight: 500;
}
.footer-legal {
  margin-top: 6px;
  flex-direction: row;
  gap: 18px;
}
.footer-bottom {
  max-width: var(--maxw);
  margin: clamp(40px, 6vw, 64px) auto 0;
  padding: 0 clamp(20px, 5vw, 56px);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

/* ---------- Post-hero responsive ---------- */
@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; gap: 36px; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .section-inner { padding: clamp(64px, 12vh, 100px) 18px; }
}

/* ---------- dripfed product section ---------- */
.dripfed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.dripfed-copy { display: flex; flex-direction: column; align-items: flex-start; }
.dripfed-headline {
  font-weight: 300;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 22px;
}
.dripfed-body {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
  color: var(--ink-dim);
  max-width: 440px;
  margin-bottom: 30px;
}

/* Terminal mock (interactive dripfed demo) */
.terminal {
  background: #0d0608;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 238, 242, 0.02);
}
.dot-r, .dot-y, .dot-g {
  width: 11px; height: 11px; border-radius: 50%;
  display: inline-block;
}
.dot-r { background: rgba(224, 17, 95, 0.7); }
.dot-y { background: rgba(220, 180, 80, 0.6); }
.dot-g { background: rgba(127, 209, 168, 0.55); }
.terminal-name {
  margin-left: 8px;
  font-size: 12px;
  color: var(--ink-faint);
  flex: 1;
}
.terminal-replay {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-faint);
  font-size: 14px;
  cursor: pointer;
  width: 26px; height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}
.terminal-replay:hover {
  border-color: rgba(224, 17, 95, 0.6);
  color: var(--ink);
  background: rgba(224, 17, 95, 0.08);
}

/* tab bar */
.terminal-tabs {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 238, 242, 0.015);
  padding: 0 8px;
}
.tt-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--ink-faint);
  font-family: inherit;
  font-size: 11.5px;
  padding: 9px 14px;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tt-tab:hover { color: var(--ink-dim); }
.tt-tab.tt-active {
  color: var(--ink);
  border-bottom-color: var(--ruby);
}
.tt-plus {
  background: transparent;
  border: none;
  color: var(--ink-faint);
  font-family: inherit;
  font-size: 14px;
  padding: 9px 12px;
  cursor: pointer;
  margin-left: 4px;
}
.tt-plus:hover { color: var(--ink-dim); }

/* three-panel layout */
.terminal-panels {
  display: grid;
  grid-template-columns: 1.1fr 2.2fr 1.1fr;
  height: 340px;
}
.tp-files,
.tp-context {
  border-right: 1px solid var(--line);
}
.tp-context {
  border-left: 1px solid var(--line);
  border-right: none;
}
.tp-files,
.tp-code,
.tp-context {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.tp-head {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.tp-body {
  padding: 10px 12px;
  font-size: 10px;
  line-height: 1.45;
  color: var(--ink-dim);
  overflow: hidden;
  flex: 1;
  min-height: 0;
}
/* code panel: no scrollbar (auto-play manages scrollTop); files/context stay hidden */
.tp-code-body {
  overflow: hidden;
  scroll-behavior: smooth;
}
.tp-dir, .tp-file { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-file { padding-left: 0; color: var(--ink-faint); }
.tp-active {
  color: var(--ink);
  background: rgba(224, 17, 95, 0.06);
}
/* edited file indicator (ruby dot + ruby text) */
.tp-file-edited {
  color: var(--ruby);
}
.tp-file-edited::before {
  content: "●";
  color: var(--ruby);
  margin-right: 4px;
  font-size: 8px;
}
/* edited + selected: ruby text wins over .tp-active's ink color */
.tp-active.tp-file-edited {
  color: var(--ruby);
  background: rgba(224, 17, 95, 0.1);
}
.tp-pre {
  margin: 0;
  font-family: inherit;
  font-size: 10px;
  line-height: 1.45;
  color: var(--ink-dim);
  white-space: pre-wrap;
  word-break: break-word;
}
.tp-symbol { padding: 2px 0; color: var(--ink-faint); cursor: default; }
.tp-sel { color: var(--ruby); }

/* plan / task list (context panel morphs into this during a run) */
.tp-plan-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 0;
  line-height: 1.5;
}
.tp-plan-status {
  flex-shrink: 0;
  font-size: 12px;
  width: 14px;
  text-align: center;
  color: var(--ink-faint);
}
.tp-plan-status.tp-ps-active { color: var(--ruby); animation: pulse 1.2s ease-in-out infinite; }
.tp-plan-status.tp-ps-done { color: #7fd1a8; }
.tp-plan-content {
  flex: 1;
  color: var(--ink-dim);
  font-size: 11.5px;
  white-space: normal;
  word-break: break-word;
}
.tp-plan-content.tp-pc-done {
  color: var(--ink-faint);
  text-decoration: line-through;
  text-decoration-color: rgba(127, 209, 168, 0.4);
}
.tp-plan-priority {
  flex-shrink: 0;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 1px 4px;
  border: 1px solid var(--line);
  border-radius: 3px;
  margin-top: 1px;
}
.tp-plan-priority.tp-pp-high { color: var(--ruby); border-color: rgba(224, 17, 95, 0.35); }

/* prompt bar */
.terminal-prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
}
.tp-glyph {
  color: var(--ruby);
  font-size: 15px;
  flex-shrink: 0;
}
/* prompt display line (read-only — auto-play types into this) */
.terminal-prompt-display {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
}
.tp-glyph {
  color: var(--ruby);
  font-size: 15px;
  flex-shrink: 0;
}
.tp-prompt-text {
  font-family: inherit;
  font-size: 11.5px;
  color: var(--ink);
}
.tp-prompt-text::after {
  content: "▎";
  color: var(--ruby);
  animation: pulse 1s ease-in-out infinite;
  margin-left: 2px;
}
.terminal-prompt-display.tp-idle .tp-prompt-text::after { content: ""; }

/* source syntax highlight (used inside .tp-pre) */
.src-keyword { color: var(--ruby); }
.src-string { color: #7fd1a8; }
.src-comment { color: var(--ink-faint); font-style: italic; }
.src-fn { color: var(--ink); font-weight: 500; }
.src-type { color: #c8a8e0; }
.src-sel { border-left: 2px solid var(--ruby); padding-left: 8px; margin-left: -10px; background: rgba(224, 17, 95, 0.04); }

/* diff highlights used inside .tp-pre */
.diff-add { color: #7fd1a8; }
.diff-del { color: #e0115f; opacity: 0.75; }
.diff-com { color: var(--ink-faint); }
.tool-call { color: var(--ruby); font-weight: 500; }
.tool-ok { color: #7fd1a8; }
.agent-line { color: var(--ink-dim); }

/* side-by-side diff view (shown after the agent completes an edit) */
.tp-diff-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  font-size: 10px;
  line-height: 1.45;
}
.tp-diff-side {
  white-space: pre-wrap;
  word-break: break-word;
  padding: 4px 0;
}
.tp-diff-side-left {
  border-right: 1px solid var(--line);
  padding-right: 8px;
}
.tp-diff-side-right {
  padding-left: 8px;
}
.tp-diff-colhead {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 6px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.tp-diff-colhead.diff-add { color: #7fd1a8; }
.tp-diff-colhead.diff-del { color: #e0115f; opacity: 0.75; }
.tp-diff-line {
  min-height: 1.45em;
  padding: 0 2px;
}
.tp-diff-line.diff-add { background: rgba(127, 209, 168, 0.12); }
.tp-diff-line.diff-del { background: rgba(224, 17, 95, 0.12); }

/* terminal responsive */
@media (max-width: 720px) {
  .dripfed-grid { grid-template-columns: 1fr; gap: 40px; }
  .terminal-panels { grid-template-columns: 1fr; height: auto; }
  .tp-files, .tp-context { border-right: none; border-bottom: 1px solid var(--line); }
  .tp-body { max-height: 160px; }
}
@media (max-width: 480px) {
  .tp-pre, .tp-body { font-size: 10px; }
}