/* =============================================================
   Agentic Workflow — presentation styles.
   Dark canvas, one neutral accent, hue reserved for meaning.
   ============================================================= */
:root {
  --bg: #08070b;
  --panel: #111016;
  --hover: #212024;
  --line: #262530;
  --line-soft: #6272a426;

  --text: #f2f2f2;
  --muted: #97a3b0;
  /* raised from #6272a4 — that failed 4.5:1 on the panel background */
  --comment: #8290b8;

  --cyan: #80ffea;
  --purple: #9580ff;
  --pink: #ff80bf;
  --green: #8aff80;
  --orange: #ffca80;
  --red: #ff9580;

  /* Neutral accent — the default for anything that does not need a hue. */
  --neutral: #8290b8;
  --focus: #80ffea;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace;

  --r: 4px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* One colour system, four meanings. Everything else is neutral — node type
   is always stated in text as well, so hue is reinforcement, not the signal. */
[data-kind] {
  --accent: var(--neutral);
}

[data-kind='gate'] {
  --accent: var(--pink);
}

[data-kind='tool'] {
  --accent: var(--cyan);
}

[data-kind='model'] {
  --accent: var(--orange);
}

[data-kind='verdict'] {
  --accent: var(--orange);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* The decorative glow sits deliberately off-canvas to the right. */
  overflow-x: hidden;
}

.mono {
  font-family: var(--mono);
}

/* Visible keyboard focus everywhere. */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Respect a reduced-motion preference: no looping decoration. */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Backdrop: blueprint grid + one warm glow ------------------- */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(#6272a40e 1px, transparent 1px),
    linear-gradient(90deg, #6272a40e 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 85%);
}

/* A plain radial gradient: same look as a blurred conic layer, none of the
   GPU cost of filter: blur() on a 780px permanently-composited element. */
.glow {
  position: fixed;
  z-index: 0;
  inset-block-start: -320px;
  inset-inline-end: -240px;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, #9580ff1f, #9580ff0d 42%, transparent 68%);
  pointer-events: none;
}

/* Hero: asymmetric, left-anchored, big type ------------------ */
.hero {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--line-soft);
}

.hero__inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 76px 32px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  gap: 56px;
  align-items: center;
}

@media (width < 1080px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  padding: 5px 13px 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--muted);
  background: #ffffff05;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: pulse 2.8s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 #97a3b03d;
  }

  70% {
    box-shadow: 0 0 0 7px #97a3b000;
  }

  100% {
    box-shadow: 0 0 0 0 #97a3b000;
  }
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: .98;
  letter-spacing: -.035em;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(92deg, var(--pink), var(--orange) 55%, var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 22px 0 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 34px 0 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
  width: fit-content;
}

.stats div {
  padding: 12px 26px;
  border-right: 1px solid var(--line-soft);
}

.stats div:last-child {
  border-right: 0;
}

.stats dt {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--comment);
}

.stats dd {
  margin: 2px 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

/* Hero rig: Claude Code wrapper around the tool pipeline ------ */
.rig {
  position: relative;
  margin: 0;
  padding: 38px 20px 18px;
  border: 1px dashed color-mix(in srgb, var(--orange) 42%, transparent);
  border-radius: 14px;
  background:
    radial-gradient(120% 90% at 50% -10%, #ffca8014, transparent 62%),
    #0e0d13cc;
}

.rig::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  /* box-shadow: 0 0 60px -40px var(--orange); */
  pointer-events: none;
}

.rig__badge {
  position: absolute;
  inset-block-start: -17px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 7px 18px;
  border: 1px solid color-mix(in srgb, var(--orange) 42%, transparent);
  border-radius: 999px;
  background: #100e15;
}

.prov {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  transition: transform .2s var(--ease);
}

.prov svg {
  width: 100%;
  height: 100%;
}

.prov:hover {
  transform: scale(1.12);
}

.prov[data-p='claude'] {
  color: #d97757;
}

.prov[data-p='openai'] {
  color: #f2f2f2;
}

.prov[data-p='codex'] {
  color: #10a37f;
}

.rig__flow {
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 6px 0 0;
  padding: 0;
}

.tile {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  text-align: center;
}

/* Credit line, sits quietly under the hero diagram -------------- */
.credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 14px 0 0;
  font-size: .74rem;
  color: var(--comment);
}

.credit__heart {
  width: 12px;
  height: 12px;
  color: var(--red);
  opacity: .8;
}

.credit a {
  color: var(--muted);
  text-decoration: none;
  transition: color .18s var(--ease);
}

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

/* Static connectors — order is already conveyed by left-to-right reading. */
.tile:not(:last-child)::after {
  content: '';
  position: absolute;
  inset-block-start: 33px;
  inset-inline-start: calc(50% + 26px);
  width: calc(100% - 52px);
  height: 1px;
  background: #34333f;
}
.tile__ico {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #16151d;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}

.tile__ico svg {
  width: 26px;
  height: 26px;
}

.tile:hover .tile__ico {
  transform: translateY(-3px);
  border-color: var(--comment);
}

.tile b {
  font-size: .82rem;
  font-weight: 600;
}

.tile em {
  font-style: normal;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--comment);
}

.rig__agnostic {
  margin: 14px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: .82rem;
  color: var(--text);
}

.rig__agnostic strong {
  font-weight: 700;
  color: var(--text);
}

.rig__foot {
  margin: 5px 0 0;
  text-align: center;
  font-size: .7rem;
  color: var(--comment);
}

.rig__foot .mono {
  color: var(--muted);
  font-size: .7rem;
}

@media (width < 520px) {
  .rig__flow {
    flex-wrap: wrap;
  }

  .tile {
    flex: 1 1 40%;
  }

  .tile::before,
  .tile::after {
    display: none;
  }
}

/* Workbench: sticky rail + stage ----------------------------- */
.workbench {
  position: relative;
  z-index: 1;
  max-width: 1480px;
  margin: 0 auto;
  padding: 32px;
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.rail {
  position: sticky;
  inset-block-start: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stage {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 16px 17px;
}

.card__title {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--comment);
  font-weight: 500;
}

/* Chips (binary view toggles) -------------------------------- */
.deck__group+.deck__group {
  margin-top: 18px;
}

.deck__label {
  display: block;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .8rem;
  cursor: pointer;
  transition: all .18s var(--ease);
}

.chip-btn i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3d3c48;
  transition: all .18s var(--ease);
}

.chip-btn:hover {
  border-color: var(--comment);
  color: var(--text);
}

.chip-btn[aria-pressed='true'] {
  color: var(--text);
  border-color: #3d3c4a;
  background: #2c2b36;
}

.chip-btn[aria-pressed='true'] i {
  background: var(--text);
}

/* Segmented tri-state controls ------------------------------- */
.segments {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

/* Label above, full-width control below: room for real words instead of
   abbreviations, and a much clearer selected state. */
.seg-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.seg-row__label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted);
  min-width: 0;
}

.seg-row__label i {
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: var(--muted);
  flex: none;
  opacity: .3;
  transition: opacity .18s var(--ease);
}

.seg-row.is-on .seg-row__label {
  color: var(--text);
}

.seg-row.is-on .seg-row__label i {
  opacity: 1;
}

.seg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #0c0b11;
}

.seg button {
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--comment);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .02em;
  padding: 5px 4px;
  cursor: pointer;
  transition: background .16s var(--ease), color .16s var(--ease);
}

/* Selection is shown with weight and a neutral fill, never with hue — the
   controls should not compete with the board, where colour means something. */
.seg button:hover {
  color: var(--text);
  background: var(--hover);
}

.seg button[aria-checked='true'] {
  background: #35343f;
  color: var(--text);
  font-weight: 600;
}

/* 'off' reads as disabled rather than as another active choice. */
.seg button[aria-checked='true'][data-mode='off'] {
  background: #23222b;
  color: var(--muted);
}

.deck__hint,
.deck__note {
  margin: 16px 0 0;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
  font-size: .76rem;
  line-height: 1.5;
  color: var(--comment);
}

.deck__note strong {
  color: var(--orange);
  font-weight: 500;
}

.deck__note.is-warn strong {
  color: var(--red);
}

/* Radial gauge ----------------------------------------------- */
.gauge {
  position: relative;
  width: 168px;
  margin: 4px auto 6px;
}

.gauge__svg {
  width: 100%;
  transform: rotate(-90deg);
}

.gauge__track {
  fill: none;
  stroke: #201f28;
  stroke-width: 9;
}

.gauge__value {
  fill: none;
  stroke: #b9c2d6;
  stroke-width: 9;
  stroke-linecap: round;
  transition: stroke-dashoffset .3s var(--ease), stroke .3s var(--ease);
}

.gauge.is-over .gauge__value {
  stroke: var(--red);
}

.gauge__tick {
  stroke: var(--red);
  stroke-width: 2;
  stroke-dasharray: 3 2;
  transform-origin: 66px 66px;
}

.gauge__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.gauge__center output {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.gauge__center span {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--comment);
}

/* A 26px-tall control so the pointer target clears the 24px minimum, with the
   visible track drawn inside it. */
.slider {
  width: 100%;
  appearance: none;
  height: 26px;
  background: transparent;
  cursor: grab;
  margin: 2px 0 4px;
}

.slider:active {
  cursor: grabbing;
}

.slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #b9c2d6 var(--pct, 30%), #26252f var(--pct, 30%));
}

.slider::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #b9c2d6 var(--pct, 30%), #26252f var(--pct, 30%));
}

.slider::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--text);
  border: 4px solid #23222b;
  box-shadow: 0 1px 4px #0009;
  transition: transform .15s var(--ease);
}

.slider:hover::-webkit-slider-thumb,
.slider:active::-webkit-slider-thumb {
  transform: scale(1.12);
}

.slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 4px solid #23222b;
  border-radius: 50%;
  background: var(--text);
}

/* Tells the reader the dial is interactive, and where the ends are. */
.slider__label {
  display: block;
  margin: 10px 0 0;
  font-size: .78rem;
  color: var(--muted);
  cursor: pointer;
}

.slider__scale {
  display: flex;
  justify-content: space-between;
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--comment);
}

/* Composition list ------------------------------------------- */
.comp {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.comp li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  font-size: .74rem;
}

.comp .name {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comp .tok {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--comment);
}

.comp .meter {
  grid-column: 1 / -1;
  height: 3px;
  border-radius: 2px;
  background: #24232c;
  overflow: hidden;
}

.comp .meter i {
  display: block;
  height: 100%;
  border-radius: 2px;
}

/* Node-type keys --------------------------------------------- */
.keys {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.keys li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .76rem;
  color: var(--muted);
}

.keys i {
  width: 12px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  flex: none;
}

/* Stage track (install stages) ------------------------------- */
.track__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.track__hint {
  font-size: .7rem;
  color: var(--comment);
}

.track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0;
  position: relative;
  margin: 6px 0 0;
}

.track::before {
  content: '';
  position: absolute;
  inset-inline: 6%;
  inset-block-start: 9px;
  height: 1px;
  background: var(--line);
}

.tick {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 2px 4px;
  border: 0;
  background: none;
  color: var(--comment);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .04em;
  cursor: pointer;
  transition: color .18s var(--ease);
}

.tick span:first-child {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  display: grid;
  place-items: center;
  font-size: .7rem;
  transition: all .2s var(--ease);
}

.tick:hover {
  color: var(--text);
}

.tick.is-done span:first-child {
  border-color: #43424f;
  color: var(--muted);
}

.tick.is-current span:first-child {
  background: var(--text);
  border-color: var(--text);
  color: #0a0910;
  font-weight: 600;
  box-shadow: 0 0 0 4px #ffffff14;
}

.tick.is-current {
  color: var(--text);
}

.track__caption {
  margin: 16px 0 18px;
  padding-left: 13px;
  border-left: 2px solid #43424f;
  font-size: .86rem;
  color: var(--muted);
  min-height: 2.4em;
}

/* Explorer --------------------------------------------------- */
.explorer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

@media (width >=1080px) {
  .explorer {
    grid-template-columns: minmax(240px, 34%) minmax(0, 1fr);
  }
}

.tree {
  font-family: var(--mono);
  font-size: .78rem;
}

.tree__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 3px;
  color: var(--muted);
  white-space: nowrap;
  border-left: 2px solid transparent;
}

.tree__row--file {
  cursor: pointer;
}

.tree__row--file:hover {
  background: var(--hover);
  color: var(--text);
}

.tree__row.is-active {
  background: #ffffff08;
  border-left-color: var(--accent, var(--purple));
  color: var(--text);
}

.tree__row.is-new {
  animation: slide .4s var(--ease);
}

@keyframes slide {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* File status is spelled out in the badge next to each name, so it does not
   also need six hues in the bullets. */
.tree__bullet {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: #4d4c5c;
  flex: none;
}

.tree__row--dir .tree__bullet {
  background: none;
  border: 1px solid #4d4c5c;
}

.tree__row[data-status] {
  --accent: var(--muted);
}

.tree__row[data-status] .tree__bullet {
  background: var(--muted);
}

.tree__name {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tree__badge {
  font-size: .7rem;
  color: var(--comment);
}

/* Detail ----------------------------------------------------- */
.detail {
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 15px 16px;
  background: #0d0c11;
  min-width: 0;
}

.detail__path {
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--text);
  word-break: break-all;
}

.detail__badge {
  display: inline-block;
  margin: 9px 0 11px;
  padding: 2px 9px;
  border-radius: 3px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--muted);
}

.detail h3 {
  margin: 0 0 7px;
  font-size: .98rem;
}

.detail p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: .85rem;
}

.detail pre {
  margin: 0;
  padding: 12px 13px;
  background: #08070b;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: .72rem;
  line-height: 1.6;
  color: #c9cddb;
  overflow-x: auto;
}

.detail__hint {
  font-size: .8rem;
  color: var(--comment);
}

/* Board: three phase lanes ----------------------------------- */
.board {
  min-width: 0;
}

.lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

@media (width < 1180px) {
  .lanes {
    grid-template-columns: minmax(0, 1fr);
  }
}

.lane {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: linear-gradient(180deg, #13121a, #0d0c11);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lane::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 2px;
  border-radius: var(--r) var(--r) 0 0;
  background: linear-gradient(90deg, var(--lane-accent), transparent);
}

/* Lanes share one neutral accent. Giving each phase its own hue collided with
   the node-type colours and implied relationships that do not exist. */
.lane {
  --lane-accent: var(--neutral);
}

.lane__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 4px;
}

.lane__n {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
  color: var(--lane-accent);
  opacity: .55;
}

.lane__title {
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

.lane__sub {
  font-size: .72rem;
  color: var(--muted);
  margin-top: 2px;
}

.lane__flow {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Nodes: flat, left-marked, no centred stack ----------------- */
.node {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #16151c;
  padding: 9px 11px 9px 13px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.node::before {
  content: '';
  position: absolute;
  inset-block: 8px;
  inset-inline-start: 0;
  width: 2px;
  background: var(--accent);
}

.node.is-linked {
  border-color: var(--accent);
  box-shadow: 0 0 24px -10px var(--accent), inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
}

.node__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.node__num {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--accent);
  flex: none;
}

.node__title {
  font-size: .82rem;
  font-weight: 600;
  flex: 1 1 auto;
}

.node__kind {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: .8;
  flex: none;
}

.node__sub {
  margin-top: 3px;
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.45;
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.chip {
  font-family: var(--mono);
  font-size: .7rem;
  padding: 2px 7px;
  border-radius: 2px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  color: color-mix(in srgb, var(--accent) 78%, #fff);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}

.hop {
  align-self: flex-start;
  margin-left: 5px;
  width: 1px;
  height: 9px;
  background: var(--line);
}

/* Payload node ----------------------------------------------- */
.payload {
  border: 1px dashed color-mix(in srgb, var(--purple) 45%, transparent);
  border-radius: 3px;
  background: #14121d;
  padding: 11px;
}

.payload__title {
  font-size: .8rem;
  font-weight: 600;
}

.payload__sub {
  font-size: .7rem;
  color: var(--muted);
  margin-bottom: 9px;
}

.pblock {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 6px 8px;
  margin-top: 5px;
  background: #0f0e14;
}

.pblock__k {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--comment);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.pblock__t {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--text);
  margin-top: 1px;
}

.pblock__d {
  font-size: .7rem;
  color: var(--muted);
}

.pblock--cached {
  border-color: color-mix(in srgb, var(--green) 40%, transparent);
}

.pblock--empty {
  opacity: .4;
  border-style: dashed;
}

.pblock--compact {
  border-color: color-mix(in srgb, var(--orange) 55%, transparent);
}

.grow {
  margin-top: 6px;
  height: 4px;
  border-radius: 2px;
  background: repeating-linear-gradient(135deg, #35343f 0 4px, #47465a 4px 8px);
  transition: width .25s var(--ease);
}

/* Verdict ---------------------------------------------------- */
.branches {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 9px;
}

.branch {
  border: 1px solid var(--line);
  border-left-width: 2px;
  border-radius: 2px;
  padding: 7px 9px;
  font-size: .7rem;
  color: var(--muted);
}

.branch b {
  display: block;
  font-family: var(--mono);
  font-size: .7rem;
  margin-bottom: 2px;
}

.branch[data-tone='pass'] {
  border-left-color: var(--green);
}

.branch[data-tone='pass'] b {
  color: var(--green);
}

.branch[data-tone='fail'] {
  border-left-color: var(--red);
}

.branch[data-tone='fail'] b {
  color: var(--red);
}

.loopback {
  margin-top: 10px;
  padding: 7px 10px;
  border: 1px dashed color-mix(in srgb, var(--red) 40%, transparent);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--red);
  text-align: center;
}

.lane__empty {
  border: 1px dashed var(--line);
  border-radius: 3px;
  padding: 14px;
  text-align: center;
  font-size: .72rem;
  color: var(--comment);
}

/* Footer ----------------------------------------------------- */
.footer {
  position: relative;
  z-index: 1;
  max-width: 1480px;
  margin: 0 auto;
  padding: 26px 32px 44px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line-soft);
  color: var(--comment);
  font-size: .72rem;
}

/* Collapsed views -------------------------------------------- */
.is-files-off .card--track {
  display: none;
}

.is-diagram-off .board {
  display: none;
}

@media (width < 1000px) {
  .workbench {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px 16px;
  }

  .rail {
    position: static;
  }

  .hero__inner {
    padding: 48px 16px 32px;
  }

  .footer {
    padding: 22px 16px 36px;
  }
}