/* Muster — operations console.
 *
 * Direction: this is not a product splash, it is the console of a tool the reader is about to run.
 * So the page borrows its furniture from the app itself — a status bar across the top, a fixed index
 * column down the left, and content in framed panels with monospace designators. Type carries the
 * contrast: a very large sans display against monospace micro-labels, with tabular numerals wherever
 * a figure appears.
 *
 * Colour is the app's own palette, lifted from src/renderer/src/assets/main.css so a screenshot and
 * this page sit side by side without a seam: #0A0A0A ground, #171717 panels, #262626 raised, #FAFAFA
 * marks, hairlines at 7% white. Neutrals are true greys — the app's are, and biasing them here read
 * as a different product. State keeps the app's meaning too: #86EFAC for running or done, #E2C08D
 * for caution, #81B88B for an agent that is alive, #51A2FF for what an agent is pointing at. */

@font-face {
  font-family: 'Geist';
  src: url('assets/fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #0a0a0a;
  --paper: #fafafa;
  --signal: #86efac;
  --signal-deep: #15803d; /* same hue, tuned for light surfaces */

  --ground: #0a0a0a;
  --panel: #171717;
  --panel-2: #262626;
  --sunken: #000000;
  --text: var(--paper);
  --muted: #a1a1a1;
  --faint: #909090;
  --rule: rgb(255 255 255 / 0.07);
  --rule-2: rgb(255 255 255 / 0.15);
  --grid: rgb(255 255 255 / 0.022);
  --signal-text: var(--signal);
  --signal-inverse: var(--signal-deep);
  --caution: #e2c08d;
  --caution-bg: #1d1a12;
  --caution-rule: rgb(226 192 141 / 0.25);
  --shadow: 0 1px 0 rgb(255 255 255 / 0.03) inset, 0 24px 60px -24px rgb(0 0 0 / 0.7);

  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, monospace;
  --gut: clamp(1.25rem, 4vw, 3.25rem);
  --pad: clamp(2.75rem, 6vw, 5.5rem);
}

@media (prefers-color-scheme: light) {
  :root {
    --ground: #fafafa;
    --panel: #ffffff;
    --panel-2: #f5f5f5;
    --sunken: #f5f5f5;
    --text: #0a0a0a;
    --muted: #737373;
    --faint: #6e6e6e;
    --rule: #e5e5e5;
    --rule-2: #d4d4d4;
    --grid: rgb(16 16 24 / 0.03);
    --signal-text: var(--signal-deep);
    --signal-inverse: var(--signal);
    --caution: #895503;
    --caution-bg: #fdf7ea;
    --caution-rule: #e5d5ab;
    --shadow: 0 1px 0 rgb(255 255 255 / 0.8) inset, 0 18px 44px -26px rgb(16 16 24 / 0.28);
  }
}

:root[data-theme='light'] {
  --ground: #fafafa;
  --panel: #ffffff;
  --panel-2: #f5f5f5;
  --sunken: #f5f5f5;
  --text: #0a0a0a;
  --muted: #737373;
  --faint: #6e6e6e;
  --rule: #e5e5e5;
  --rule-2: #d4d4d4;
  --grid: rgb(16 16 24 / 0.03);
  --signal-text: var(--signal-deep);
  --signal-inverse: var(--signal);
  --caution: #895503;
  --caution-bg: #fdf7ea;
  --caution-rule: #e5d5ab;
  --shadow: 0 1px 0 rgb(255 255 255 / 0.8) inset, 0 18px 44px -26px rgb(16 16 24 / 0.28);
}

:root[data-theme='dark'] {
  --ground: #0a0a0a;
  --panel: #171717;
  --panel-2: #262626;
  --sunken: #000000;
  --text: var(--paper);
  --muted: #a1a1a1;
  --faint: #909090;
  --rule: rgb(255 255 255 / 0.07);
  --rule-2: rgb(255 255 255 / 0.15);
  --grid: rgb(255 255 255 / 0.022);
  --signal-text: var(--signal);
  --signal-inverse: var(--signal-deep);
  --caution: #e2c08d;
  --caution-bg: #1d1a12;
  --caution-rule: rgb(226 192 141 / 0.25);
  --shadow: 0 1px 0 rgb(255 255 255 / 0.03) inset, 0 24px 60px -24px rgb(0 0 0 / 0.7);
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family:
    'Geist',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-size: 16px;
  line-height: 1.62;
  letter-spacing: 0.008em;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
dl,
dd,
dt,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

code,
kbd {
  font-family: var(--mono);
  font-size: 0.84em;
  letter-spacing: 0;
}

code {
  background: var(--sunken);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.1em 0.34em;
}

kbd {
  font-family: var(--mono);
  background: var(--sunken);
  border: 1px solid var(--rule-2);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 0.12em 0.38em;
  font-size: 0.78em;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 3px;
}

.sr,
.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 3.25rem;
  z-index: 200;
  background: var(--panel);
  border: 1px solid var(--rule-2);
  border-radius: 0.5rem;
  padding: 0.7rem 1rem;
  text-decoration: none;
}

/* ============================================================== status bar */
.statusbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.statusbar-in {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  height: 2.5rem;
  padding: 0 var(--gut);
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
}

.sb-brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.sb-brand img {
  border-radius: 4px;
}

.sb-brand b {
  font-family: 'Geist', sans-serif;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
}

.sb-div {
  width: 1px;
  height: 0.875rem;
  background: var(--rule-2);
}

.sb-item i {
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: color-mix(in srgb, var(--faint) 70%, transparent);
  margin-right: 0.35rem;
}

.sb-version {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.sb-version b {
  font-weight: 500;
  color: var(--text);
}

.sb-live {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--signal-text);
}

.sb-pulse {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--signal) 60%, transparent);
  animation: pulse 2.6s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--signal) 55%, transparent);
  }
  70%,
  100% {
    box-shadow: 0 0 0 7px transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sb-pulse {
    animation: none;
  }
}

@media (max-width: 46rem) {
  .hide-sm {
    display: none;
  }
}

/* ============================================================== frame + index */
.frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 68rem) {
  .frame {
    grid-template-columns: 15.5rem minmax(0, 1fr);
  }
}

.index {
  display: none;
}

@media (min-width: 68rem) {
  .index {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 2.5rem;
    height: calc(100svh - 2.5rem);
    padding: 2.25rem 1.5rem 1.75rem var(--gut);
    border-right: 1px solid var(--rule);
  }
}

.index-top img {
  border-radius: 0.625rem;
  display: block;
}

.index-name {
  margin-top: 0.75rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.index-tag {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--faint);
  line-height: 1.45;
}

.index-nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}

.index-nav a {
  display: block;
  padding: 0.6rem 0 0.6rem 0.85rem;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  font-size: 0.875rem;
  color: var(--muted);
  transition:
    color 0.18s,
    background 0.18s;
}

.index-nav a:hover {
  color: var(--text);
}

.index-nav a[aria-current='true'] {
  color: var(--text);
  box-shadow: inset 2px 0 0 var(--signal);
}

.index-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.index-dl {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 620;
  text-decoration: none;
  padding: 0.6rem 0.85rem;
  border-radius: 0.5rem;
  background: var(--text);
  color: var(--ground);
  transition:
    transform 0.16s,
    box-shadow 0.2s;
}

.index-dl svg {
  width: 0.8125rem;
  height: 0.8125rem;
}

.index-dl:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--signal) 50%, transparent);
}

.index-src {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--faint);
  text-decoration: none;
}

.index-src:hover {
  color: var(--signal-text);
}

/* ============================================================== panels */
.stack {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.panel {
  position: relative;
  padding: var(--pad) var(--gut);
  border-bottom: 1px solid var(--rule);
  min-width: 0;
}

/* Monospace designator: the structural device, and it encodes real order (01…08). */
.strip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--faint);
}

.strip-n {
  color: var(--signal-text);
  font-variant-numeric: tabular-nums;
}

.strip::after {
  content: '';
  width: clamp(1.5rem, 5vw, 4rem);
  height: 1px;
  background: var(--rule-2);
}

.phead {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 46rem;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 730;
  letter-spacing: -0.032em;
  line-height: 1.1;
  text-wrap: balance;
}

.phead-note {
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 42rem;
}

h3 {
  font-size: 1.03125rem;
  font-weight: 640;
  letter-spacing: -0.012em;
}

/* ============================================================== hero */
.hero {
  min-height: min(72svh, 42rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.lanes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.55;
  /* Copy is left-aligned, so the field is masked out of the reading column — a track running
     through a sentence reads as a strikethrough, which was exactly what happened on narrow
     viewports before this. */
  mask-image: radial-gradient(90% 80% at 78% 42%, #000 20%, transparent 78%);
}

@media (max-width: 60rem) {
  .lanes {
    opacity: 0.32;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 22%);
  }
}

/* Blueprint grid: the console's drafting surface, not a decorative gradient. */
.blueprint {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  mask-image: radial-gradient(120% 90% at 20% 30%, #000 30%, transparent 78%);
}

.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  max-width: 52rem;
  min-width: 0;
  width: 100%;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.45rem;
  min-width: 0;
}

@media (min-width: 78rem) {
  .hero-in {
    max-width: none;
    grid-template-columns: minmax(26rem, 1.15fr) minmax(22rem, 1fr);
    align-items: center;
    gap: 2.75rem;
  }

  .hero .app {
    margin-top: 0;
  }
}

.display {
  font-size: clamp(2.15rem, 4.4vw, 3.45rem);
  font-weight: 740;
  letter-spacing: -0.048em;
  line-height: 0.96;
  display: flex;
  flex-direction: column;
}

.display .line {
  white-space: nowrap;
}

.display .ask {
  color: var(--signal-text);
}

/* Each line is a mask window so the fill can rise into it. */
.line {
  display: block;
  overflow: hidden;
}

.line > span {
  display: block;
}

.display em {
  font-style: normal;
  color: var(--signal-text);
  text-shadow: 0 0 52px color-mix(in srgb, var(--signal) 34%, transparent);
}

.display .sub {
  color: var(--muted);
  font-weight: 260;
  letter-spacing: -0.036em;
}

.lede {
  font-size: clamp(1.0625rem, 1.9vw, 1.3125rem);
  color: var(--muted);
  max-width: 42rem;
  line-height: 1.55;
}

/* The muster: a roll-call, not vanity counts. */
.roll {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 0.625rem;
  overflow: hidden;
  max-width: 28rem;
}

.roll li {
  display: grid;
  grid-template-columns: 0.4375rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  background: var(--panel);
  padding: 0.55rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.roll-m {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--rule-2);
}

.roll [data-state='working'] .roll-m {
  background: #81b88b;
}

.roll [data-state='answered'] {
  background: color-mix(in srgb, var(--signal) 8%, var(--panel));
}

.roll [data-state='answered'] .roll-m {
  background: var(--signal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 18%, transparent);
}

.roll-b {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roll-s {
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.roll [data-state='answered'] .roll-s {
  color: var(--signal-text);
}

/* ============================================================== buttons */
.cta,
.dl-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 620;
  letter-spacing: -0.006em;
  text-decoration: none;
  padding: 0.68rem 1.15rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  will-change: transform;
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.25s,
    color 0.2s;
}

.btn.sm {
  font-size: 0.8125rem;
  padding: 0.5rem 0.85rem;
}

.btn svg {
  width: 0.875rem;
  height: 0.875rem;
  transition: transform 0.2s;
}

.btn.primary {
  background: var(--text);
  color: var(--ground);
}

.btn.primary:hover {
  box-shadow: 0 14px 34px -14px color-mix(in srgb, var(--signal) 55%, transparent);
}

.btn.primary:hover svg {
  transform: translateY(2px);
}

.btn.ghost {
  color: var(--text);
  border-color: var(--rule-2);
}

.btn.ghost:hover {
  border-color: var(--faint);
  background: color-mix(in srgb, var(--text) 4%, transparent);
}

/* Only shown once the chip is positively identified; an unknown Mac gets no claim either way. */
.btn.primary .detected {
  color: var(--signal-inverse);
  border-color: color-mix(in srgb, var(--signal-inverse) 45%, transparent);
}

.detected {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--signal-text);
  border: 1px solid color-mix(in srgb, var(--signal-text) 40%, transparent);
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
  margin-left: 0.1rem;
}

.btn.bare {
  padding-inline: 0.25rem;
  color: var(--muted);
  font-weight: 550;
}

.btn.bare:hover {
  color: var(--signal-text);
}

/* ============================================================== phases + board */
.phases {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

@media (min-width: 60rem) {
  .phases {
    grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 24rem);
  }
}

.phase-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  overflow: hidden;
}

.phase {
  background: var(--panel);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
  transition: background 0.35s;
}

.phase::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--signal);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.phase.is-live {
  background: var(--panel-2);
}

.phase.is-live::before {
  transform: scaleY(1);
}

.phase-n {
  font-family: var(--mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
  transition: color 0.3s;
}

.phase.is-live .phase-n {
  color: var(--signal-text);
}

.phase p {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* The board mirrors the app's workspace list. */
.board {
  position: sticky;
  top: 5rem;
  background: var(--panel);
  border: 1px solid var(--rule-2);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.board-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--rule);
  background: var(--panel-2);
}

.bd {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--rule-2);
}

.board-title {
  margin-left: 0.45rem;
  font-size: 0.75rem;
  font-weight: 620;
}

.board-count,
.board-foot {
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--faint);
}

.board-count {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.board-rows {
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brow {
  display: grid;
  grid-template-columns: 0.4375rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0.4375rem;
  transition: background 0.3s;
}

.brow[data-state='answered'] {
  background: color-mix(in srgb, var(--signal) 8%, transparent);
}

.brow .m {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--rule-2);
  transition:
    background 0.3s,
    box-shadow 0.3s;
}

.brow[data-state='answered'] .m {
  background: var(--signal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 18%, transparent);
}

.brow .b {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brow[data-state='answered'] .b {
  color: var(--text);
}

.brow .s {
  font-family: var(--mono);
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  white-space: nowrap;
}

.brow[data-state='answered'] .s {
  color: var(--signal-text);
}

.brow .p {
  grid-column: 2 / -1;
  height: 2px;
  border-radius: 2px;
  background: var(--rule);
  overflow: hidden;
  margin-top: 0.3rem;
}

.brow .p i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--faint);
  transition: width 0.65s linear;
}

.brow[data-state='answered'] .p i {
  background: var(--signal);
}

.board-foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--rule);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.board-foot b {
  margin-left: auto;
  font-family: 'Geist', sans-serif;
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
  color: var(--signal-text);
  letter-spacing: -0.02em;
}

/* ============================================================== capabilities */
.cap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  overflow: hidden;
}

.cap {
  background: var(--panel);
  padding: 1.4rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: background 0.25s;
}

.cap:hover {
  background: var(--panel-2);
}

.cap-k {
  font-family: var(--mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--signal-text);
}

.cap p:not(.cap-k) {
  color: var(--muted);
  font-size: 0.9375rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding-top: 0.35rem;
}

.chips li {
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--muted);
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
}

.chips .more {
  color: var(--signal-text);
  border-color: color-mix(in srgb, var(--signal) 32%, transparent);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1rem;
  padding-top: 0.35rem;
}

.mini {
  font-family: var(--mono);
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
  padding-bottom: 0.35rem;
}

.ticks {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ticks.two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.ticks li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--signal);
  opacity: 0.55;
}

/* ============================================================== steps */
.steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3.5vw, 2.75rem);
  max-width: 46rem;
}

/* The spine fills as you scroll the section — progress through a real sequence. */
.steps-line {
  position: absolute;
  left: 0.9375rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: var(--rule);
}

.steps-line i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  height: 100%;
  background: var(--signal);
  transform: scaleY(0);
  transform-origin: top;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 1.875rem minmax(0, 1fr);
  gap: 0 1.15rem;
}

.step-n {
  width: 1.875rem;
  height: 1.875rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--rule-2);
  background: var(--ground);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--faint);
  transition:
    color 0.3s,
    border-color 0.3s,
    box-shadow 0.3s,
    background 0.3s;
}

.step.is-active .step-n {
  color: var(--signal-text);
  border-color: color-mix(in srgb, var(--signal) 52%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 10%, transparent);
}

.step-b {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
  padding-bottom: 0.25rem;
}

.step-b p {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ============================================================== command */
.cmd {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--sunken);
  border: 1px solid var(--rule-2);
  border-radius: 0.5rem;
  padding: 0.5rem 0.5rem 0.5rem 0.85rem;
  min-width: 0;
}

.cmd code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.8125rem;
  white-space: pre;
  overflow-x: auto;
  min-width: 0;
}

.cmd .pr {
  color: var(--faint);
  user-select: none;
}

.copy {
  margin-left: auto;
  flex: none;
  font-family: 'Geist', sans-serif;
  font-size: 0.6875rem;
  font-weight: 640;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--rule-2);
  border-radius: 0.375rem;
  padding: 0.28rem 0.55rem;
  cursor: pointer;
  transition:
    color 0.18s,
    border-color 0.18s;
}

.copy:hover {
  color: var(--text);
  border-color: var(--faint);
}

.copy[data-state='copied'] {
  color: var(--signal-text);
  border-color: var(--signal-text);
}

/* ============================================================== note */
.note {
  background: var(--caution-bg);
  border: 1px solid var(--caution-rule);
  border-left-width: 2px;
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.note-k {
  font-family: var(--mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--caution);
}

.note p:not(.note-k) {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Hero copy is wide; the callout reads as a sidebar note, not a second lede. */
.hero-note {
  margin-top: 1.5rem;
  max-width: 34rem;
  gap: 0.6rem;
}

.hero-note .cmd {
  background: var(--panel);
}

.note-link {
  font-weight: 600;
  color: var(--caution);
  text-decoration: none;
}

.note-link:hover {
  text-decoration: underline;
}

/* ============================================================== tiles + tools */
.tiles,
.tool-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  overflow: hidden;
}

/* Every row full: 2x2 capabilities; tools 3 across then 2 across. An auto-fit
 * column count leaves the last row short and the gap shows as a bare slab. */
@media (min-width: 60rem) {
  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tool-groups {
    grid-template-columns: repeat(6, 1fr);
  }

  .tool {
    grid-column: span 2;
  }

  .tool:nth-child(4),
  .tool:nth-child(5) {
    grid-column: span 3;
  }
}

.tile,
.tool {
  background: var(--panel);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: background 0.25s;
}

.tile:hover,
.tool:hover {
  background: var(--panel-2);
}

.tile p,
.tool p:not(.cap-k) {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ============================================================== spec table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
}

.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 32rem;
}

.spec tr {
  border-bottom: 1px solid var(--rule);
}

.spec tr:last-child {
  border-bottom: 0;
}

.spec tr:nth-child(odd) {
  background: var(--panel);
}

.spec tr:nth-child(even) {
  background: var(--panel-2);
}

.spec th {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--faint);
  padding: 0.8rem 1rem;
  width: 12rem;
  vertical-align: top;
}

.spec td {
  padding: 0.8rem 1rem;
  color: var(--muted);
}

.spec .num {
  font-variant-numeric: tabular-nums;
  color: var(--text);
  font-weight: 620;
}

/* ============================================================== faq */
.faq {
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  overflow: hidden;
  max-width: 50rem;
}

.faq details {
  border-bottom: 1px solid var(--rule);
  background: var(--panel);
}

.faq details:last-child {
  border-bottom: 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 570;
  transition: background 0.2s;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: '';
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--rule-2);
  flex: none;
  transition:
    background 0.25s,
    box-shadow 0.25s;
}

.faq summary:hover {
  background: var(--panel-2);
}

.faq details[open] summary::before {
  background: var(--signal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 16%, transparent);
}

.faq-b {
  padding: 0 1.1rem 1.1rem 2.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.faq-b p {
  color: var(--muted);
  font-size: 0.9375rem;
}

.link {
  color: var(--signal-text);
  text-decoration-color: color-mix(in srgb, var(--signal) 40%, transparent);
  text-underline-offset: 3px;
}

/* ============================================================== footer */
.foot {
  padding: 2rem var(--gut) 3rem;
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.foot-name {
  font-weight: 680;
  letter-spacing: -0.015em;
}

.foot-note,
.foot-in nav {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--faint);
}

.foot-in nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  align-items: center;
}

.foot-in nav a {
  text-decoration: none;
  color: var(--muted);
}

.foot-in nav a:hover {
  color: var(--signal-text);
}

/* ============================================================== motion guards
 * Anything GSAP animates starts hidden only when JS is present and motion is allowed; otherwise the
 * final state is what renders, so no-JS and reduced-motion readers see a complete page. */
.js .anim {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .js .anim {
    opacity: 1;
    transform: none !important;
  }
}

/* ============================================================== app window
   Recreation of the app itself: rail, terminal, status strip. Deliberately
   fixed dark regardless of page theme — it is a picture of the product. */
.app {
  margin-top: clamp(2rem, 4vw, 3rem);
  background: #0a0a0a;
  border: 1px solid rgb(255 255 255 / 0.07);
  border-radius: 0.75rem;
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.75);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: #a1a1a1;
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.8rem;
  background: #171717;
  border-bottom: 1px solid rgb(255 255 255 / 0.07);
}

.app-bar .bd.r {
  background: #e0564f;
}
.app-bar .bd.y {
  background: #dfa63f;
}
.app-bar .bd.g {
  background: #81b88b;
}

.app-name {
  margin-left: 0.5rem;
  font-weight: 600;
  color: #fafafa;
  font-size: 0.6875rem;
}

.app-tab {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgb(255 255 255 / 0.07);
  border-radius: 0.375rem;
  background: #0a0a0a;
  color: #a1a1a1;
  font-size: 0.625rem;
  white-space: nowrap;
  overflow: hidden;
}

.app-tab-dot {
  width: 0.3125rem;
  height: 0.3125rem;
  border-radius: 50%;
  background: var(--signal);
  flex: none;
}

.app-body {
  display: grid;
  grid-template-columns: 10.75rem minmax(0, 1fr);
  min-height: 17rem;
}

.app-rail {
  border-right: 1px solid rgb(255 255 255 / 0.07);
  background: #0d0d14;
  padding: 0.8rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.app-k {
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8a8a8a;
  margin-top: 0.35rem;
}

.app-k:first-child {
  margin-top: 0;
}

.app-tree,
.app-sites {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.app-tree li,
.app-sites li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.45rem;
  border-radius: 0.3125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-tree li.proj {
  color: #a1a1a1;
}

.app-tree li.ws {
  padding-left: 1.1rem;
  color: #e5e5e5;
}

.app-tree li.ws.on {
  background: #16161f;
  color: #eef;
}

.app-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: #81b88b;
  flex: none;
  transition: background 0.4s;
}

.app-dot[data-s='answered'] {
  background: var(--signal);
  box-shadow: 0 0 6px color-mix(in srgb, var(--signal) 70%, transparent);
}

.app-dot[data-s='idle'] {
  background: #3a3a4a;
}

.app-site-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  border: 1px solid #4a4a5e;
  flex: none;
}

.app-term {
  display: flex;
  flex-direction: column;
  padding: 0.9rem 1rem 0.6rem;
  min-width: 0;
}

.app-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  line-height: 1.5;
  overflow: hidden;
}

.app-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-line .u {
  color: #fafafa;
}
.app-line .t {
  color: #7ea8f8;
}
.app-line .ok {
  color: #86efac;
}
.app-line .dim {
  color: #8a8a8a;
}
.app-line .sig {
  color: var(--signal);
}

.app-caret {
  display: inline-block;
  width: 0.5em;
  height: 1em;
  vertical-align: text-bottom;
  background: #a1a1a1;
  animation: app-blink 1s steps(1) infinite;
}

@keyframes app-blink {
  50% {
    opacity: 0;
  }
}

.app-statusline {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-top: 0.55rem;
  margin-top: 0.6rem;
  border-top: 1px solid rgb(255 255 255 / 0.07);
  font-size: 0.625rem;
  color: #a1a1a1;
  white-space: nowrap;
  overflow: hidden;
}

.as-model {
  color: #e5e5e5;
}

.as-ctx {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.as-bar {
  width: 3.4rem;
  height: 0.375rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.07);
  overflow: hidden;
  display: inline-block;
}

.as-bar b {
  display: block;
  height: 100%;
  width: 4%;
  background: #86efac;
  border-radius: inherit;
  transition: width 0.8s ease;
}

.as-env,
.as-agents {
  margin-left: auto;
}

.as-env {
  margin-left: auto;
}

.as-agents {
  margin-left: 0;
}

@media (max-width: 46rem) {
  .app-body {
    grid-template-columns: 1fr;
  }

  .app-rail {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-caret {
    animation: none;
  }
}

/* ============================================================== task list
   Recreation of the ActiveCollab project view, same fixed dark as .app. */
.tasks {
  margin-top: 0.5rem;
  background: #0a0a0a;
  border: 1px solid rgb(255 255 255 / 0.07);
  border-radius: 0.625rem;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.625rem;
  color: #a1a1a1;
}

.tasks-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  background: #171717;
  border-bottom: 1px solid rgb(255 255 255 / 0.07);
  color: #fafafa;
  font-weight: 600;
}

.tasks-back {
  color: #8a8a8a;
}

.tasks-n {
  margin-left: auto;
  color: #8a8a8a;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.tasks-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.7rem;
  background: #171717;
  border-block: 1px solid rgb(255 255 255 / 0.07);
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8a8a8a;
}

.tasks-group:first-of-type {
  border-top: 0;
}

.tasks-group span {
  font-variant-numeric: tabular-nums;
}

.tasks-rows {
  list-style: none;
}

.tasks-rows li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.7rem;
  white-space: nowrap;
  overflow: hidden;
}

.tasks-rows li + li {
  border-top: 1px solid rgb(255 255 255 / 0.07);
}

.tid {
  color: #8a8a8a;
  flex: none;
}

.ttl {
  color: #e5e5e5;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tlab {
  flex: none;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lab-g {
  background: rgb(134 239 172 / 0.12);
  color: #86efac;
}
.lab-y {
  background: rgb(226 192 141 / 0.12);
  color: #e2c08d;
}
.lab-o {
  background: #291d10;
  color: #e0a967;
}
.lab-r {
  background: #2a1416;
  color: #e08a90;
}

.tav {
  flex: none;
  margin-left: auto;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgb(255 255 255 / 0.07);
  border: 1px solid rgb(255 255 255 / 0.15);
  color: #a1a1a1;
  font-size: 0.4375rem;
  letter-spacing: 0;
}

/* ============================================================== feature sections
   Copy beside a product recreation. `.mock` is the shared dark chrome — like
   `.app`, deliberately fixed dark in both themes. */
.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
}

@media (min-width: 60rem) {
  .feature {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .feature.flip > .feature-copy {
    order: 2;
  }
}

.feature-copy {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.mock {
  background: #0a0a0a;
  border: 1px solid rgb(255 255 255 / 0.07);
  border-radius: 0.75rem;
  box-shadow: 0 24px 60px -28px rgb(0 0 0 / 0.7);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: #a1a1a1;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.8rem;
  background: #171717;
  border-bottom: 1px solid rgb(255 255 255 / 0.07);
  color: #fafafa;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}

.mock-n {
  margin-left: auto;
  color: #8a8a8a;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------- agent dashboard */
.arow-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.arow {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.07);
}

.arow-dot {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: #81b88b;
  transition: background 0.4s;
}

.arow[data-state='answered'] .arow-dot {
  background: var(--signal);
  box-shadow: 0 0 6px color-mix(in srgb, var(--signal) 70%, transparent);
}

.arow-main {
  min-width: 0;
}

.arow-name {
  color: #fafafa;
}

.arow-step {
  color: #8a8a8a;
  font-size: 0.625rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arow-state {
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a1a1a1;
}

.arow[data-state='answered'] .arow-state {
  color: var(--signal);
}

.usage-strip {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.55rem 0.8rem;
  background: #171717;
  border-top: 1px solid rgb(255 255 255 / 0.07);
  font-size: 0.625rem;
  color: #a1a1a1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
}

.us {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.us i {
  font-style: normal;
  color: #8a8a8a;
}

.us-bar {
  width: 2.6rem;
  height: 0.3125rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.07);
  overflow: hidden;
  display: inline-block;
}

.us-bar u {
  display: block;
  height: 100%;
  width: 0;
  background: #86efac;
  border-radius: inherit;
  transition: width 1s ease;
}

/* -------------------------------------------------------------- run log */
.run-steps {
  list-style: none;
  padding: 0.55rem 0.8rem 0.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.run-steps li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #8a8a8a;
  transition: color 0.3s;
}

.rs-m {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.15);
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  transition:
    border-color 0.3s,
    background 0.3s;
}

.run-steps li[data-on] {
  color: #e5e5e5;
}

.run-steps li[data-on] .rs-m {
  border-color: var(--signal);
}

.run-steps li[data-done] {
  color: #e5e5e5;
}

.run-steps li[data-done] .rs-m {
  border-color: rgb(134 239 172 / 0.35);
  background: rgb(134 239 172 / 0.12);
}

.run-steps li[data-done] .rs-m::before {
  content: '✓';
  color: #86efac;
}

.env-pill {
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgb(226 192 141 / 0.12);
  color: #e2c08d;
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 400;
}

.run-tail {
  margin: 0.5rem 0.8rem 0.8rem;
  padding: 0.55rem 0.65rem;
  background: #07070c;
  border: 1px solid rgb(255 255 255 / 0.07);
  border-radius: 0.4375rem;
  font-size: 0.625rem;
  color: #a1a1a1;
  line-height: 1.6;
  min-height: 4.6em;
  white-space: nowrap;
  overflow: hidden;
}

.run-tail div {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* -------------------------------------------------------------- chat thread */
.chat-rows {
  list-style: none;
  padding: 0.7rem 0.8rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.chat-rows li {
  display: grid;
  gap: 0.3rem;
  justify-items: start;
}

/* #8a8a8a is what the other mock micro-labels use, but it measures 3.31:1 here —
   this is the same tone lifted to clear AA at 9px. */
.chat-who {
  color: #a1a1a1;
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chat-msg {
  padding: 0.45rem 0.6rem;
  border-radius: 0.5rem;
  background: #262626;
  border: 1px solid rgb(255 255 255 / 0.07);
  color: #e5e5e5;
  line-height: 1.6;
}

.chat-agent .chat-msg {
  background: #171717;
  border-color: rgb(255 255 255 / 0.07);
}

/* Matches the composer's attachment chips, which is where task and file context shows. */
.chat-chip {
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgb(81 162 255 / 0.12);
  border: 1px solid rgb(81 162 255 / 0.3);
  color: #51a2ff;
  font-size: 0.5625rem;
}

.chat-foot {
  padding: 0.5rem 0.8rem 0.7rem;
  border-top: 1px solid rgb(255 255 255 / 0.07);
}

/* -------------------------------------------------------------- tasks extras */
.tasks-rows li.sel {
  background: #262626;
}

.tasks-foot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  background: #171717;
  border-top: 1px solid rgb(255 255 255 / 0.07);
  white-space: nowrap;
  overflow: hidden;
}

.tasks-cta {
  color: var(--signal);
}

.tasks .dim,
.mock .dim {
  color: #8a8a8a;
}

/* -------------------------------------------------------------- diff */
.diff-lines {
  list-style: none;
  padding: 0.45rem 0;
  line-height: 1.7;
  font-size: 0.65rem;
}

.diff-lines li {
  display: flex;
  gap: 0.7rem;
  padding: 0 0.8rem;
  white-space: nowrap;
  overflow: hidden;
}

.dn {
  color: #3a3a4a;
  min-width: 1.4rem;
  text-align: right;
  flex: none;
}

.diff-lines .del {
  background: #1d1113;
  color: #d99;
}

.diff-lines .add {
  background: #0f1c13;
  color: #9c9;
}

.diff-comment {
  margin: 0.45rem 0.8rem 0.8rem;
  padding: 0.6rem 0.7rem;
  background: #171717;
  border: 1px solid rgb(255 255 255 / 0.07);
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dc-a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #8a8a8a;
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dc-a .tav {
  margin-left: 0;
}

.dc-t {
  color: #e5e5e5;
  font-size: 0.65rem;
  line-height: 1.5;
  white-space: normal;
}

.dc-send {
  color: var(--signal);
  font-size: 0.625rem;
}

/* -------------------------------------------------------------- automations */
.autos {
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.auto-card {
  background: #171717;
  border: 1px solid rgb(255 255 255 / 0.07);
  border-radius: 0.5rem;
  padding: 0.7rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auto-name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  color: #fafafa;
}

.auto-when {
  color: #8a8a8a;
  font-size: 0.625rem;
  font-variant-numeric: tabular-nums;
}

.auto-runs {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.5625rem;
}

.ar {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 0.125rem;
}

.ar.ok {
  background: rgb(134 239 172 / 0.35);
}
.ar.bad {
  background: #6e2f34;
}

.auto-runs .dim {
  margin-left: 0.35rem;
}

/* ============================================================== scroll flourishes */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 80;
  pointer-events: none;
}

/* Section designator rule draws itself when the section arrives (JS adds .grown). */
.js .strip::after {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.js .strip.grown::after {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress {
    display: none;
  }

  .js .strip::after {
    transform: none;
    transition: none;
  }
}
