:root {
  --ink: #17211e;
  --muted: #66736e;
  --paper: #f7f9f7;
  --panel: #ffffff;
  --line: #d8dfdb;
  --line-strong: #bac7c0;
  --teal: #1b7080;
  --teal-soft: #e8f3f4;
  --coral: #d65d4a;
  --coral-soft: #faece8;
  --green: #39785d;
  --green-soft: #eaf3ee;
  --yellow: #e0a92f;
  --yellow-soft: #fbf3dc;
  --violet: #765687;
  --violet-soft: #f1ecf4;
  --blue: #405f9a;
  --blue-soft: #edf1f8;
  --sidebar-width: 224px;
  --radius: 6px;
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(23, 33, 30, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 30, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
.map-viewport:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 26px 18px 20px;
  color: #f4f7f5;
  background: var(--ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: 0;
}

.brand strong {
  font-size: 15px;
  line-height: 1.15;
}

.brand small {
  margin-top: 2px;
  color: #9eaaa5;
  font-family: Menlo, Monaco, monospace;
  font-size: 9px;
}

.section-nav {
  display: grid;
  gap: 6px;
  margin-top: 76px;
}

.nav-link {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  border-left: 2px solid transparent;
  color: #aeb9b4;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border-left-color: #52a7b5;
}

.nav-index {
  color: #75827d;
  font-family: Menlo, Monaco, monospace;
  font-size: 9px;
}

.sidebar-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 14px 10px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-status small,
.sidebar-status strong {
  display: block;
}

.sidebar-status small {
  color: #8e9a95;
  font-size: 10px;
}

.sidebar-status strong {
  margin-top: 2px;
  font-family: Menlo, Monaco, monospace;
  font-size: 10px;
  font-weight: 500;
}

.status-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5bb486;
  box-shadow: 0 0 0 4px rgba(91, 180, 134, 0.12);
}

main {
  min-width: 0;
}

.topbar {
  display: flex;
  min-height: 112px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(24px, 4vw, 64px) 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 249, 247, 0.95);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-family: Menlo, Monaco, monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Avenir Next Condensed", "Arial Narrow", "Avenir Next", sans-serif;
}

h1 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 650;
  line-height: 0.98;
}

h2 {
  font-size: 26px;
  font-weight: 650;
}

h3 {
  font-size: 18px;
  font-weight: 650;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 2px;
}

.topbar-meta code {
  color: var(--muted);
  font-size: 10px;
}

.live-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}

.live-label span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.overview-strip {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(500px, 1.5fr);
  gap: clamp(28px, 5vw, 80px);
  padding: 30px clamp(24px, 4vw, 64px);
  background: #eef2ef;
  border-bottom: 1px solid var(--line);
}

.overview-lead p {
  max-width: 630px;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(92px, 1fr));
  margin: 0;
}

.metric-row div {
  padding-left: 18px;
  border-left: 1px solid var(--line-strong);
}

.metric-row dt {
  color: var(--muted);
  font-size: 10px;
}

.metric-row dd {
  margin: 5px 0 0;
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.content-section {
  padding: 56px clamp(24px, 4vw, 64px) 70px;
  scroll-margin-top: 20px;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.section-intro {
  width: min(520px, 48%);
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.guide-section {
  background: var(--panel);
}

.journey-explorer {
  --journey-accent: var(--teal);
  --journey-soft: var(--teal-soft);
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 300px;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
}

.journey-explorer.tone-coral {
  --journey-accent: var(--coral);
  --journey-soft: var(--coral-soft);
}

.journey-explorer.tone-yellow {
  --journey-accent: #b9830c;
  --journey-soft: var(--yellow-soft);
}

.journey-scenarios {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 22px 14px 18px;
  color: #f4f7f5;
  background: var(--ink);
}

.journey-scenarios-heading {
  padding: 0 9px 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.journey-scenarios-heading small,
.journey-scenarios-heading strong {
  display: block;
}

.journey-scenarios-heading small {
  color: #8da097;
  font-family: Menlo, Monaco, monospace;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.journey-scenarios-heading strong {
  margin-top: 6px;
  font-size: 14px;
}

.journey-scenarios [role="tablist"] {
  display: grid;
  gap: 4px;
  margin-top: 12px;
}

.journey-scenario {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  min-height: 66px;
  padding: 11px 9px;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 2px;
  color: #9eaea7;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.journey-scenario:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.journey-scenario.is-selected {
  border-left-color: var(--journey-accent);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
}

.journey-scenario > small {
  color: #6f8278;
  font-family: Menlo, Monaco, monospace;
  font-size: 8px;
}

.journey-scenario span,
.journey-scenario strong,
.journey-scenario em {
  display: block;
  min-width: 0;
}

.journey-scenario strong {
  font-size: 11px;
}

.journey-scenario em {
  margin-top: 5px;
  color: #83968d;
  font-size: 8px;
  font-style: normal;
  line-height: 1.4;
}

.journey-scenario.is-selected em {
  color: #b9c8c1;
}

.journey-scenarios > p {
  margin: auto 9px 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: #7f9289;
  font-size: 8px;
  line-height: 1.5;
}

.journey-stage {
  min-width: 0;
  padding: 26px 26px 20px;
  border-right: 1px solid var(--line);
}

.journey-stage-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.journey-stage-heading > div {
  min-width: 0;
}

.journey-stage-heading small {
  color: var(--journey-accent);
  font-family: Menlo, Monaco, monospace;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.journey-stage-heading h3 {
  margin-top: 7px;
  font-size: 24px;
  line-height: 1.08;
}

.journey-stage-heading p {
  max-width: 610px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.journey-playback {
  display: inline-flex;
  min-width: 118px;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--ink);
  background: var(--panel);
  cursor: pointer;
  font-family: Menlo, Monaco, monospace;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.journey-playback:hover,
.journey-playback.is-playing {
  border-color: var(--journey-accent);
  color: var(--journey-accent);
  background: var(--journey-soft);
}

.playback-icon {
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid currentColor;
}

.journey-playback.is-playing .playback-icon {
  width: 7px;
  height: 9px;
  border-top: 0;
  border-right: 2px solid currentColor;
  border-bottom: 0;
  border-left: 2px solid currentColor;
}

.journey-status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: Menlo, Monaco, monospace;
  font-size: 8px;
}

.journey-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--journey-accent);
  font-weight: 700;
  text-transform: uppercase;
}

.journey-state::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.journey-state.state-experimental::before {
  border-radius: 1px;
  transform: rotate(45deg);
}

.journey-route {
  display: grid;
  grid-template-columns: repeat(6, minmax(88px, 1fr));
  margin-top: 30px;
}

.journey-station {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 152px;
  padding: 0 13px 14px 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.journey-station::after {
  position: absolute;
  z-index: -1;
  top: 8px;
  right: 0;
  left: 16px;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.journey-station:last-child::after {
  display: none;
}

.journey-station.is-complete::after {
  background: var(--journey-accent);
}

.station-signal {
  position: relative;
  z-index: 2;
  display: block;
  width: 17px;
  height: 17px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--panel);
}

.station-signal::after {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #c8d0cc;
  content: "";
}

.journey-station.is-complete .station-signal,
.journey-station.is-active .station-signal {
  border-color: var(--journey-accent);
}

.journey-station.is-complete .station-signal::after,
.journey-station.is-active .station-signal::after {
  background: var(--journey-accent);
}

.journey-explorer:has(.journey-playback.is-playing) .journey-station.is-active .station-signal {
  animation: journey-signal-pulse 1.2s ease-out infinite;
}

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

.journey-station small,
.journey-station strong,
.journey-station span {
  display: block;
}

.journey-station small {
  margin-top: 20px;
  color: #97a39d;
  font-family: Menlo, Monaco, monospace;
  font-size: 8px;
}

.journey-station strong {
  min-height: 32px;
  margin-top: 7px;
  color: var(--ink);
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.journey-station span {
  margin-top: 6px;
  font-size: 9px;
  line-height: 1.4;
}

.journey-station:hover strong,
.journey-station.is-active strong {
  color: var(--journey-accent);
}

.journey-stage-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
}

.journey-stage-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.station-legend {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c8d0cc;
}

.station-legend.complete {
  background: var(--journey-accent);
}

.station-legend.current {
  border: 1px solid var(--journey-accent);
  background: var(--panel);
}

.journey-stage-footer a {
  margin-left: auto;
  color: var(--journey-accent);
  font-weight: 700;
  text-decoration: none;
}

.journey-stage-footer a::after {
  margin-left: 5px;
  content: "→";
}

.journey-inspector {
  min-width: 0;
  padding: 26px 24px;
  background: #f2f5f3;
}

.journey-inspector-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 2px solid var(--journey-accent);
  color: var(--muted);
  font-family: Menlo, Monaco, monospace;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.journey-inspector-heading strong {
  color: var(--journey-accent);
  text-align: right;
}

.journey-inspector h3 {
  margin-top: 22px;
  font-size: 21px;
  line-height: 1.1;
}

.journey-inspector > p {
  margin: 11px 0 0;
  color: #53605a;
  font-size: 10px;
  line-height: 1.58;
}

.journey-inspector dl {
  display: grid;
  margin: 22px 0 0;
}

.journey-inspector dl div {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.journey-inspector dt,
.journey-inspector dd {
  margin: 0;
}

.journey-inspector dt {
  color: var(--muted);
  font-family: Menlo, Monaco, monospace;
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
}

.journey-inspector dd {
  margin-top: 5px;
  color: var(--ink);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.45;
}

.journey-boundary {
  margin-top: 14px;
  padding: 12px 13px;
  border-left: 3px solid var(--journey-accent);
  background: var(--journey-soft);
}

.journey-boundary strong,
.journey-boundary span {
  display: block;
}

.journey-boundary strong {
  color: var(--journey-accent);
  font-family: Menlo, Monaco, monospace;
  font-size: 7px;
  text-transform: uppercase;
}

.journey-boundary span {
  margin-top: 6px;
  color: #53605a;
  font-size: 8px;
  line-height: 1.5;
}

.responsibility-heading-block {
  align-items: flex-start;
  margin-top: 54px;
}

.responsibility-heading-block > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.responsibility-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.responsibility-item {
  position: relative;
  min-width: 0;
  padding: 20px 18px 18px;
  border-top: 3px solid var(--teal);
  border-right: 1px solid var(--line);
}

.responsibility-item:last-child {
  border-right: 0;
}

.responsibility-item.tone-blue {
  border-top-color: var(--blue);
}

.responsibility-item.tone-yellow {
  border-top-color: var(--yellow);
}

.responsibility-item.tone-coral {
  border-top-color: var(--coral);
}

.responsibility-item.tone-violet {
  border-top-color: var(--violet);
}

.responsibility-marker {
  color: #9aa69f;
  font-family: Menlo, Monaco, monospace;
  font-size: 9px;
}

.responsibility-heading small,
.responsibility-heading strong {
  display: block;
}

.responsibility-heading {
  margin-top: 32px;
}

.responsibility-heading small {
  color: var(--muted);
  font-family: Menlo, Monaco, monospace;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.responsibility-heading strong {
  margin-top: 5px;
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 18px;
  line-height: 1.1;
}

.responsibility-item > p {
  min-height: 72px;
  margin: 16px 0 0;
  color: #53605a;
  font-size: 10px;
  line-height: 1.55;
}

.responsibility-item > span {
  display: block;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 9px;
  font-weight: 650;
  line-height: 1.45;
}

.reading-guide {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.5fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
  margin-top: 36px;
  padding-top: 28px;
}

.reading-guide-lead h3 {
  max-width: 380px;
  font-size: 22px;
  line-height: 1.12;
}

.reading-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.reading-rules p {
  margin: 0;
  padding: 15px 18px 0 0;
}

.reading-rules strong,
.reading-rules span {
  display: block;
}

.reading-rules strong {
  font-size: 10px;
}

.reading-rules span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.architecture-controls,
.filter-control,
.segmented-control,
.flow-tabs {
  display: flex;
  align-items: center;
}

.architecture-controls {
  gap: 12px;
}

.segmented-control,
.filter-control,
.flow-tabs {
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #edf1ee;
}

.segmented-control button,
.filter-control button,
.flow-tabs button {
  min-height: 31px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.segmented-control button.is-selected,
.filter-control button.is-selected,
.flow-tabs button[aria-selected="true"] {
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(23, 33, 30, 0.08);
}

.architecture-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
}

.map-viewport {
  min-width: 0;
  overflow: auto;
  background:
    linear-gradient(rgba(23, 33, 30, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 30, 0.04) 1px, transparent 1px),
    #fbfcfb;
  background-size: 24px 24px;
  overscroll-behavior: contain;
}

.architecture-map {
  position: relative;
  width: 1480px;
  height: 920px;
}

.map-lane {
  position: absolute;
  top: 0;
  height: 100%;
  border-right: 1px dashed #cbd4cf;
}

.map-lane::before {
  position: absolute;
  top: 22px;
  left: 0;
  color: #7b8882;
  content: attr(data-label);
  font-family: Menlo, Monaco, monospace;
  font-size: 9px;
  font-weight: 700;
}

.map-edges {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.edge-path {
  fill: none;
  stroke: #95a39c;
  stroke-width: 1.3;
  vector-effect: non-scaling-stroke;
  transition: opacity 160ms ease, stroke 160ms ease, stroke-width 160ms ease;
}

.edge-path.phase-target {
  stroke-dasharray: 6 5;
}

.edge-path.domain-agents {
  stroke: #9a7ba8;
}

.edge-path.is-dimmed {
  opacity: 0.08;
}

.edge-path.is-active {
  opacity: 1;
  stroke: var(--coral);
  stroke-width: 2.6;
}

.edge-label {
  fill: #64716b;
  font-family: Menlo, Monaco, monospace;
  font-size: 8px;
  paint-order: stroke;
  stroke: #fbfcfb;
  stroke-width: 4px;
  stroke-linejoin: round;
}

.edge-label.is-dimmed {
  opacity: 0.08;
}

.map-node {
  position: absolute;
  z-index: 2;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  align-items: flex-start;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
  color: var(--ink);
  text-align: left;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 3px 12px rgba(23, 33, 30, 0.06);
  cursor: pointer;
  transition: opacity 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.map-node:hover,
.map-node.is-selected {
  border-color: var(--teal);
  box-shadow: 0 8px 18px rgba(23, 33, 30, 0.12);
  transform: translateY(-2px);
}

.map-node.is-selected {
  box-shadow: 0 0 0 2px rgba(27, 112, 128, 0.16), 0 8px 18px rgba(23, 33, 30, 0.12);
}

.map-node.is-dimmed {
  opacity: 0.18;
}

.map-node.status-live {
  border-top-color: var(--green);
}

.map-node.status-implemented {
  border-top-color: var(--teal);
}

.map-node.status-transition {
  border-top-color: var(--yellow);
  background: #fffdf7;
}

.map-node.status-planned {
  border-top-color: var(--violet);
  border-style: dashed;
  background: #fcf9fd;
}

.map-node .node-eyebrow {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: var(--muted);
  font-family: Menlo, Monaco, monospace;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.map-node .node-status {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}

.map-node.status-live .node-status {
  color: var(--green);
}

.map-node.status-implemented .node-status {
  color: var(--teal);
}

.map-node.status-transition .node-status {
  color: var(--yellow);
}

.map-node.status-planned .node-status {
  color: var(--violet);
}

.map-node strong {
  margin-top: 7px;
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 15px;
  line-height: 1.08;
}

.map-node p {
  display: -webkit-box;
  overflow: hidden;
  margin: 7px 0 0;
  color: #5e6b65;
  font-size: 9px;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.component-detail {
  padding: 24px 21px;
  border-top: 1px solid var(--line);
  background: #f1f4f2;
}

.detail-kicker {
  color: var(--muted);
  font-family: Menlo, Monaco, monospace;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.component-detail h3 {
  margin-top: 13px;
  font-size: 24px;
  line-height: 1.05;
}

.component-detail > p {
  margin: 16px 0 0;
  color: #53605a;
  font-size: 12px;
  line-height: 1.6;
}

.detail-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
}

.detail-status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.detail-status.live {
  color: var(--green);
}

.detail-status.implemented {
  color: var(--teal);
}

.detail-status.transition {
  color: #9c711a;
}

.detail-status.planned {
  color: var(--violet);
}

.detail-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
  padding-top: 19px;
  border-top: 1px solid var(--line-strong);
}

.detail-guide small,
.detail-io small {
  display: block;
  color: var(--muted);
  font-family: Menlo, Monaco, monospace;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.detail-guide p {
  margin: 7px 0 0;
  color: #53605a;
  font-size: 10px;
  line-height: 1.55;
}

.detail-io {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 20px;
}

.detail-io > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.detail-io small {
  width: 100%;
  margin-bottom: 2px;
}

.detail-io span {
  padding: 4px 6px;
  border: 1px solid var(--line);
  color: #52605a;
  background: #fbfcfb;
  font-size: 8px;
}

.detail-dependencies {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.detail-dependencies span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: #52605a;
  font-size: 10px;
}

.detail-dependencies code {
  color: var(--ink);
  font-size: 9px;
}

.detail-source {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: Menlo, Monaco, monospace;
  font-size: 8px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 10px;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.legend-dot.live {
  background: var(--green);
}

.legend-dot.implemented {
  background: var(--teal);
}

.legend-dot.transition {
  background: var(--yellow);
}

.legend-dot.planned {
  background: var(--violet);
}

.deploy-section {
  background: #f1f4f2;
}

.deployment-runbook {
  border-top: 1px solid var(--line-strong);
}

.deployment-step {
  display: grid;
  grid-template-columns: 58px minmax(260px, 1fr) minmax(170px, 0.35fr);
  gap: 22px;
  align-items: center;
  min-height: 112px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-strong);
}

.deployment-step-marker {
  color: #8b9891;
  font-family: Menlo, Monaco, monospace;
  font-size: 10px;
}

.deployment-step-copy small,
.deployment-step-copy strong,
.deployment-step-copy p,
.deployment-proof small,
.deployment-proof span {
  display: block;
}

.deployment-step-copy small,
.deployment-proof small {
  color: var(--muted);
  font-family: Menlo, Monaco, monospace;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.deployment-step-copy strong {
  margin-top: 5px;
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 17px;
}

.deployment-step-copy p {
  max-width: 700px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.deployment-proof {
  padding-left: 16px;
  border-left: 2px solid var(--teal);
}

.deployment-proof span {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.4;
}

.deployment-contract {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-top: 18px;
  padding: 18px 20px;
  color: #f4f7f5;
  background: var(--ink);
}

.contract-label {
  color: #9fb0a8;
  font-family: Menlo, Monaco, monospace;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.deployment-contract p {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.55;
}

.subsection-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 62px 0 22px;
}

.subsection-heading h3 {
  font-size: 22px;
}

.agents-section {
  background: var(--panel);
}

.section-intro strong {
  color: var(--ink);
  font-weight: 700;
}

.slack-agent-workspace {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
}

.slack-channel-sidebar {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 22px 14px 16px;
  color: #d6e1e5;
  background: #101f29;
}

.slack-channel-sidebar header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 0 8px 16px;
  border-bottom: 1px solid rgba(214, 225, 229, 0.12);
}

.slack-channel-sidebar header > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.slack-channel-sidebar header strong {
  font-size: 15px;
}

.slack-channel-sidebar header small {
  color: #8098a3;
  font-family: Menlo, Monaco, monospace;
  font-size: 8px;
}

.slack-ai-mark {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #52707d;
  color: #91b4c1;
  font-family: Menlo, Monaco, monospace;
  font-size: 8px;
  font-weight: 700;
}

.slack-channel-sidebar nav {
  display: grid;
  gap: 3px;
  margin-top: 12px;
}

.slack-channel-button {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) 8px;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 2px;
  color: #8fafbd;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  text-align: left;
}

.slack-channel-button:hover {
  color: #e8f1f4;
  background: rgba(255, 255, 255, 0.06);
}

.slack-channel-button.is-selected {
  border-left-color: #54a9b9;
  color: #ffffff;
  background: #1d3644;
  font-weight: 700;
}

.channel-lock {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 8px;
  border: 1px solid currentColor;
  border-radius: 1px;
  color: #82a6b5;
}

.channel-lock::before {
  position: absolute;
  bottom: 6px;
  left: 1px;
  width: 6px;
  height: 5px;
  border: 1px solid currentColor;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  content: "";
}

.channel-lock.dark {
  margin-right: 10px;
  color: var(--muted);
  transform: translateY(-1px);
}

.channel-kind-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #82929a;
}

.channel-kind-dot.state-experimental {
  background: var(--yellow);
}

.channel-kind-dot.state-monitoring {
  background: #56a6b4;
}

.slack-channel-sidebar > p {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin: auto 8px 0;
  padding-top: 16px;
  border-top: 1px solid rgba(214, 225, 229, 0.12);
  color: #718995;
  font-size: 8px;
  line-height: 1.5;
}

.slack-channel-sidebar > p .channel-lock {
  margin-top: 2px;
}

.slack-channel-detail {
  min-width: 0;
  padding: 28px 30px;
}

.slack-channel-detail-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.slack-channel-detail-topline small {
  color: var(--muted);
  font-family: Menlo, Monaco, monospace;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.slack-channel-detail h3 {
  margin-top: 7px;
  font-size: 22px;
}

.slack-readiness {
  flex: 0 0 auto;
  padding: 6px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-family: Menlo, Monaco, monospace;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.slack-readiness.state-experimental {
  border-color: #d7b456;
  color: #7d5e13;
  background: var(--yellow-soft);
}

.slack-readiness.state-monitoring {
  border-color: #80b6bf;
  color: #1a6573;
  background: var(--teal-soft);
}

.slack-channel-purpose {
  max-width: 760px;
  margin: 20px 0 0;
  color: #53605a;
  font-size: 13px;
  line-height: 1.6;
}

.slack-channel-guidance {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 28px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.slack-channel-guidance strong,
.slack-next-step strong {
  display: block;
  color: var(--ink);
  font-family: Menlo, Monaco, monospace;
  font-size: 8px;
  text-transform: uppercase;
}

.slack-channel-guidance ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.slack-channel-guidance li {
  position: relative;
  padding-left: 16px;
  color: #53605a;
  font-size: 10px;
  line-height: 1.55;
}

.slack-channel-guidance li::before {
  position: absolute;
  top: 7px;
  left: 0;
  width: 6px;
  height: 1px;
  background: var(--teal);
  content: "";
}

.slack-channel-guidance p {
  margin: 12px 0 0;
  color: #53605a;
  font-size: 10px;
  line-height: 1.55;
}

.slack-next-step {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  margin-top: 22px;
  padding: 13px 15px;
  border-left: 3px solid var(--coral);
  background: var(--coral-soft);
}

.slack-next-step span {
  color: #64514d;
  font-size: 9px;
  line-height: 1.5;
}

.agent-layer-heading {
  align-items: flex-start;
  margin-top: 44px;
}

.agent-layer-heading > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.agent-roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.agent-role {
  min-width: 0;
  padding: 19px 20px 22px;
  border-top: 3px solid var(--green);
  border-right: 1px solid var(--line);
}

.agent-role:last-child {
  border-right: 0;
}

.agent-role.tone-yellow {
  border-top-color: var(--yellow);
}

.agent-role.tone-violet {
  border-top-color: var(--violet);
}

.agent-role-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-family: Menlo, Monaco, monospace;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.agent-role-topline > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.agent-role h3 {
  margin-top: 24px;
  font-size: 20px;
}

.agent-role > p {
  min-height: 64px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.agent-boundary {
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: #53605a;
  font-size: 9px;
  line-height: 1.5;
}

.agent-boundary strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-family: Menlo, Monaco, monospace;
  font-size: 8px;
  text-transform: uppercase;
}

.agent-execution {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.6fr);
  gap: 38px;
  margin-top: 18px;
  padding: 28px;
  color: #f4f7f5;
  background: var(--ink);
}

.agent-execution-copy .eyebrow {
  color: #93a59c;
}

.agent-execution-copy h3 {
  font-size: 22px;
  line-height: 1.12;
}

.agent-execution-copy > p:last-child {
  margin: 13px 0 0;
  color: #acbbb4;
  font-size: 10px;
  line-height: 1.55;
}

.agent-chain {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
}

.agent-chain-step {
  position: relative;
  min-width: 0;
  min-height: 94px;
  padding: 12px 18px 12px 0;
  border-top: 1px solid #526159;
}

.agent-chain-step:not(:nth-child(3n))::after {
  position: absolute;
  top: -4px;
  right: 12px;
  width: 7px;
  height: 7px;
  border-top: 1px solid #8da097;
  border-right: 1px solid #8da097;
  content: "";
  transform: rotate(45deg);
}

.agent-chain-step small,
.agent-chain-step strong,
.agent-chain-step span {
  display: block;
}

.agent-chain-step small {
  color: #7f9289;
  font-family: Menlo, Monaco, monospace;
  font-size: 8px;
}

.agent-chain-step strong {
  margin-top: 7px;
  font-size: 11px;
}

.agent-chain-step span {
  margin-top: 5px;
  color: #a8b7b0;
  font-size: 9px;
  line-height: 1.45;
}

.guardrail-band {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.6fr);
  gap: 38px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.guardrail-band h3 {
  font-size: 20px;
}

.guardrail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.guardrail-list p {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 13px 16px 13px 0;
  border-bottom: 1px solid var(--line);
  color: #53605a;
  font-size: 9px;
  line-height: 1.5;
}

.guardrail-list span {
  color: var(--coral);
  font-family: Menlo, Monaco, monospace;
  font-size: 8px;
}

.flow-canvas {
  min-height: 260px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
}

.flow-summary {
  max-width: 720px;
  margin: 0 0 28px;
  color: #59665f;
  font-size: 13px;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
}

.flow-step {
  position: relative;
  min-width: 0;
  padding: 18px 18px 16px 0;
  border-top: 2px solid var(--teal);
}

.flow-step:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: -5px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  color: var(--teal);
  content: "";
  transform: rotate(45deg);
}

.flow-canvas.tone-coral .flow-step {
  border-color: var(--coral);
}

.flow-canvas.tone-coral .flow-step::after {
  color: var(--coral);
}

.flow-canvas.tone-violet .flow-step {
  border-color: var(--violet);
}

.flow-canvas.tone-violet .flow-step::after {
  color: var(--violet);
}

.flow-step small,
.flow-step strong,
.flow-step span {
  display: block;
}

.flow-step small {
  color: var(--muted);
  font-family: Menlo, Monaco, monospace;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.flow-step strong {
  margin-top: 7px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.flow-step span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.n8n-catalog-section {
  background: #fbfcfb;
}

.n8n-catalog-overview {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(520px, 1.45fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  padding: 20px 22px;
  color: #f4f7f5;
  background: var(--ink);
}

.n8n-catalog-principle span,
.n8n-catalog-principle strong {
  display: block;
}

.n8n-catalog-principle span {
  color: #93a59c;
  font-family: Menlo, Monaco, monospace;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.n8n-catalog-principle strong {
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.55;
}

.n8n-catalog-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.n8n-catalog-metrics div {
  min-width: 0;
  padding-left: 16px;
  border-left: 1px solid #526159;
}

.n8n-catalog-metrics dt {
  min-height: 24px;
  color: #93a59c;
  font-size: 8px;
  line-height: 1.35;
}

.n8n-catalog-metrics dd {
  margin: 5px 0 0;
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 25px;
  font-weight: 700;
}

.n8n-use-cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.n8n-use-case {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 116px;
  align-content: start;
  padding: 17px 18px;
  border: 0;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  text-align: left;
  background: var(--panel);
  cursor: pointer;
}

.n8n-use-case::before {
  position: absolute;
  top: -1px;
  right: -1px;
  left: -1px;
  height: 3px;
  background: transparent;
  content: "";
}

.n8n-use-case:hover,
.n8n-use-case.is-selected {
  background: var(--teal-soft);
}

.n8n-use-case.is-selected::before {
  background: var(--teal);
}

.n8n-use-case-count {
  color: var(--teal);
  font-family: Menlo, Monaco, monospace;
  font-size: 8px;
  font-weight: 700;
}

.n8n-use-case strong {
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.25;
}

.n8n-use-case small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.n8n-catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-strong);
}

.n8n-search-field {
  flex: 1 1 auto;
}

.n8n-search-field input {
  width: 100%;
}

.catalog-result-count {
  min-width: 86px;
  color: var(--muted);
  font-family: Menlo, Monaco, monospace;
  font-size: 8px;
  text-align: right;
}

.n8n-workflow-catalog {
  display: grid;
}

.n8n-family {
  margin-top: 42px;
}

.n8n-family-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.5fr) minmax(0, 1fr);
  gap: 32px;
  align-items: end;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}

.n8n-family-heading h3 {
  font-size: 21px;
}

.n8n-family-heading > p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.n8n-workflow-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) minmax(230px, 0.4fr);
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.n8n-workflow-row.is-inactive {
  background: #f2f4f2;
}

.n8n-workflow-state {
  padding-top: 5px;
}

.n8n-workflow-state i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.n8n-workflow-row.is-inactive .n8n-workflow-state i {
  background: #9da7a2;
}

.n8n-workflow-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.n8n-workflow-title h4 {
  min-width: 0;
  margin: 0;
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 15px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.n8n-workflow-title > span {
  flex: 0 0 auto;
  padding: 3px 5px;
  border: 1px solid #c6d8cf;
  color: var(--green);
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
}

.n8n-workflow-row.is-inactive .n8n-workflow-title > span {
  border-color: var(--line-strong);
  color: var(--muted);
}

.n8n-workflow-copy > p {
  max-width: 760px;
  margin: 7px 0 0;
  color: #53605a;
  font-size: 10px;
  line-height: 1.55;
}

.n8n-system-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.n8n-system-tags span {
  padding: 3px 5px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #ffffff;
  font-size: 7px;
}

.n8n-workflow-meta {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.n8n-workflow-meta div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 8px;
}

.n8n-workflow-meta dt,
.n8n-workflow-meta dd {
  margin: 0;
  font-size: 8px;
  line-height: 1.4;
}

.n8n-workflow-meta dt {
  color: var(--muted);
  font-family: Menlo, Monaco, monospace;
  text-transform: uppercase;
}

.n8n-workflow-meta dd {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.catalog-empty {
  margin-top: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.inventory-heading {
  align-items: center;
}

.search-field input {
  width: min(360px, 42vw);
  height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
  font-size: 11px;
}

.search-field input::placeholder {
  color: #8a9690;
}

.inventory-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.inventory-panel {
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
}

.inventory-panel > header,
.runtime-register > header,
.agent-register > header {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.inventory-panel > header > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.inventory-panel h3,
.runtime-register h3,
.agent-register h3 {
  font-size: 17px;
}

.source-swatch {
  width: 5px;
  height: 22px;
  border-radius: 2px;
}

.source-swatch.airtable {
  background: var(--yellow);
}

.source-swatch.n8n {
  background: var(--coral);
}

.count-badge {
  flex: 0 0 auto;
  padding: 5px 7px;
  border-radius: 3px;
  color: var(--muted);
  background: #edf1ee;
  font-family: Menlo, Monaco, monospace;
  font-size: 8px;
  font-weight: 700;
}

.category-summary {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.category-chip {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  background: #fbfcfb;
  font-size: 8px;
}

.inventory-list {
  height: 390px;
  overflow-y: auto;
}

.inventory-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 8px 15px;
  border-bottom: 1px solid #e9eeeb;
}

.inventory-row:last-child {
  border-bottom: 0;
}

.inventory-row strong,
.inventory-row small {
  display: block;
}

.inventory-row strong {
  overflow: hidden;
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-row small {
  margin-top: 3px;
  color: var(--muted);
  font-family: Menlo, Monaco, monospace;
  font-size: 8px;
}

.inventory-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 8px;
}

.workflow-state {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #aeb8b3;
}

.workflow-state.active {
  background: var(--green);
}

.empty-state {
  padding: 26px 16px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.runtime-register {
  margin-top: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
}

.agent-register {
  margin-top: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
}

.agent-register > header .eyebrow {
  margin-bottom: 3px;
}

.agent-runtime-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.agent-runtime-group {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.agent-runtime-group:last-child {
  border-right: 0;
}

.agent-runtime-group > small,
.agent-runtime-group > strong {
  display: block;
}

.agent-runtime-group > small {
  color: var(--muted);
  font-family: Menlo, Monaco, monospace;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.agent-runtime-group > strong {
  margin-top: 5px;
  font-size: 12px;
}

.agent-runtime-rows {
  display: grid;
  margin-top: 13px;
}

.agent-runtime-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  min-height: 32px;
  border-top: 1px solid #e9eeeb;
  color: var(--muted);
  font-size: 8px;
}

.agent-runtime-row strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-runtime-row code {
  font-size: 8px;
}

.runtime-state {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #aeb8b3;
}

.runtime-state.active {
  background: var(--green);
}

.runtime-state.transition {
  background: var(--yellow);
}

.runtime-register > header .eyebrow {
  margin-bottom: 3px;
}

.runtime-table-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.runtime-table {
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.runtime-table:nth-child(4n) {
  border-right: 0;
}

.runtime-table code {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-table small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
}

.trajectory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.6fr);
  gap: 42px;
}

.milestone-list {
  counter-reset: milestone;
}

.milestone {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 170px;
  gap: 22px;
  align-items: start;
  min-height: 104px;
  padding: 20px 0;
  border-top: 1px solid var(--line-strong);
  counter-increment: milestone;
}

.milestone::before {
  color: #95a19b;
  content: "0" counter(milestone);
  font-family: Menlo, Monaco, monospace;
  font-size: 10px;
}

.milestone-state {
  position: absolute;
  top: 22px;
  left: 42px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.milestone.state-active .milestone-state {
  background: var(--yellow);
}

.milestone.state-next .milestone-state {
  background: var(--violet);
}

.milestone-copy small,
.milestone-copy strong,
.milestone-copy span {
  display: block;
}

.milestone-copy small {
  color: var(--muted);
  font-family: Menlo, Monaco, monospace;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.milestone-copy strong {
  margin-top: 6px;
  font-size: 14px;
}

.milestone-copy span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.milestone-evidence {
  padding-left: 14px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-family: Menlo, Monaco, monospace;
  font-size: 8px;
  line-height: 1.5;
}

.evidence-panel {
  padding: 20px;
  border-left: 1px solid var(--line-strong);
}

.evidence-panel h3 {
  margin-bottom: 18px;
}

.evidence-list {
  display: grid;
}

.evidence-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 10px;
  text-decoration: none;
}

.evidence-list a::after {
  color: var(--teal);
  content: "↗";
}

.evidence-list a:hover {
  color: var(--teal);
}

.snapshot-note {
  color: var(--muted);
  font-family: Menlo, Monaco, monospace;
  font-size: 9px;
}

footer {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(24px, 4vw, 64px);
  color: var(--muted);
  font-family: Menlo, Monaco, monospace;
  font-size: 8px;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (min-width: 1680px) {
  .architecture-workbench {
    grid-template-columns: minmax(0, 1fr) 320px;
    min-height: 630px;
  }

  .component-detail {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .detail-dependencies {
    grid-template-columns: 1fr;
  }

  .detail-guide,
  .detail-io {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .sidebar {
    align-items: center;
    padding-right: 10px;
    padding-left: 10px;
  }

  .brand > span:last-child,
  .nav-link:not(.is-active) {
    font-size: 0;
  }

  .nav-link {
    display: grid;
    width: 48px;
    grid-template-columns: 1fr;
    place-items: center;
    padding: 0;
    font-size: 0;
  }

  .nav-index {
    font-size: 9px;
  }

  .sidebar-status > span:last-child {
    display: none;
  }

  .overview-strip {
    grid-template-columns: 1fr;
  }

  .journey-explorer {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .journey-inspector {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(180px, 0.6fr) minmax(260px, 1fr) minmax(300px, 1fr);
    gap: 20px;
    border-top: 1px solid var(--line);
  }

  .journey-inspector h3 {
    margin-top: 0;
  }

  .journey-inspector > p {
    margin-top: 0;
  }

  .journey-inspector dl {
    grid-column: 1 / 3;
    grid-row: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0;
  }

  .journey-inspector dl div {
    padding-right: 14px;
  }

  .journey-boundary {
    grid-column: 3;
    grid-row: 2;
    margin-top: 0;
  }

  .n8n-catalog-overview {
    grid-template-columns: 1fr;
  }

  .n8n-use-cases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .n8n-workflow-row {
    grid-template-columns: 14px minmax(0, 1fr);
  }

  .n8n-workflow-meta {
    grid-column: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 11px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .n8n-workflow-meta div {
    grid-template-columns: 1fr;
  }

  .responsibility-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .responsibility-item:nth-child(2n) {
    border-right: 0;
  }

  .responsibility-item:last-child {
    grid-column: 1 / -1;
    border-top-color: var(--violet);
  }

  .agent-roles {
    grid-template-columns: 1fr;
  }

  .agent-role {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .agent-role:last-child {
    border-bottom: 0;
  }

  .flow-steps {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }

  .flow-step:nth-child(n + 4) {
    margin-top: 22px;
  }

  .runtime-table-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .agent-runtime-grid {
    grid-template-columns: 1fr;
  }

  .agent-runtime-group {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .agent-runtime-group:last-child {
    border-bottom: 0;
  }

  .runtime-table:nth-child(4n) {
    border-right: 1px solid var(--line);
  }

  .runtime-table:nth-child(3n) {
    border-right: 0;
  }
}

@media (max-width: 760px) {
  body {
    background-size: 24px 24px;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 0;
    display: grid;
    width: 100%;
    height: 62px;
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 9px 12px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .section-nav {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    margin: 0;
    overflow-x: auto;
  }

  .nav-link,
  .nav-link:not(.is-active) {
    display: grid;
    width: 38px;
    height: 38px;
    min-height: 38px;
    place-items: center;
    border-bottom: 2px solid transparent;
    border-left: 0;
    font-size: 0;
  }

  .nav-link.is-active {
    border-bottom-color: #52a7b5;
  }

  .sidebar-status {
    display: none;
  }

  .topbar {
    min-height: 104px;
    align-items: flex-start;
    padding: 22px 18px 18px;
  }

  .topbar-meta {
    align-items: flex-end;
    flex-direction: column;
    gap: 6px;
  }

  .live-label {
    font-size: 9px;
  }

  .topbar-meta code {
    font-size: 8px;
  }

  .overview-strip,
  .content-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .content-section {
    scroll-margin-top: 76px;
  }

  .metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 0;
  }

  .metric-row div:nth-child(3) {
    border-left: 1px solid var(--line-strong);
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-intro {
    width: 100%;
  }

  .n8n-catalog-overview {
    gap: 20px;
  }

  .n8n-catalog-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 0;
  }

  .n8n-use-cases {
    display: flex;
    margin-right: -18px;
    overflow-x: auto;
    border-left: 0;
    scroll-snap-type: x proximity;
  }

  .n8n-use-case {
    width: 245px;
    min-height: 128px;
    flex: 0 0 auto;
    border-left: 1px solid var(--line-strong);
    scroll-snap-align: start;
  }

  .n8n-catalog-toolbar,
  .n8n-family-heading {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .n8n-catalog-toolbar {
    flex-direction: column;
  }

  .n8n-search-field,
  .n8n-catalog-toolbar .segmented-control {
    width: 100%;
  }

  .n8n-catalog-toolbar .segmented-control button {
    flex: 1 1 0;
  }

  .catalog-result-count {
    width: 100%;
    text-align: left;
  }

  .n8n-family-heading {
    display: grid;
    gap: 10px;
  }

  .n8n-workflow-row {
    gap: 12px;
  }

  .n8n-workflow-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .n8n-workflow-meta {
    grid-template-columns: 1fr;
  }

  .responsibility-rail,
  .reading-rules,
  .reading-guide,
  .slack-agent-workspace,
  .slack-channel-guidance,
  .agent-execution,
  .guardrail-band {
    grid-template-columns: 1fr;
  }

  .journey-explorer {
    display: block;
  }

  .journey-scenarios {
    padding-bottom: 14px;
  }

  .journey-scenarios [role="tablist"] {
    display: flex;
    padding-bottom: 7px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .journey-scenario {
    width: 184px;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .journey-scenarios > p {
    display: none;
  }

  .journey-stage {
    padding: 24px 20px 18px;
    border-right: 0;
  }

  .journey-stage-heading {
    display: grid;
  }

  .journey-playback {
    justify-self: start;
  }

  .journey-route {
    display: flex;
    padding-bottom: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .journey-station {
    width: 142px;
    min-height: 142px;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .journey-stage-footer {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .journey-stage-footer a {
    width: 100%;
    margin-left: 0;
  }

  .journey-inspector {
    display: block;
    padding: 24px 20px;
  }

  .journey-inspector h3 {
    margin-top: 22px;
  }

  .journey-inspector > p {
    margin-top: 11px;
  }

  .journey-inspector dl {
    display: grid;
    margin-top: 22px;
  }

  .journey-boundary {
    margin-top: 14px;
  }

  .slack-channel-sidebar {
    min-height: 320px;
  }

  .slack-channel-detail {
    padding: 24px 20px;
  }

  .slack-channel-detail-topline {
    display: grid;
  }

  .slack-readiness {
    justify-self: start;
  }

  .slack-next-step {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .responsibility-item,
  .responsibility-item:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .responsibility-item:last-child {
    grid-column: auto;
    border-bottom: 0;
  }

  .responsibility-item > p,
  .agent-role > p {
    min-height: 0;
  }

  .reading-guide {
    gap: 24px;
  }

  .reading-rules p {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }

  .deployment-step {
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
  }

  .deployment-proof {
    grid-column: 2;
  }

  .deployment-contract {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .subsection-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .agent-execution,
  .guardrail-band {
    gap: 24px;
  }

  .agent-chain {
    grid-template-columns: 1fr;
  }

  .agent-chain-step {
    min-height: 0;
    padding: 13px 0 13px 18px;
    border-top: 0;
    border-left: 1px solid #526159;
  }

  .agent-chain-step:not(:nth-child(3n))::after,
  .agent-chain-step:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: 3px;
    left: -4px;
    transform: rotate(135deg);
  }

  .guardrail-list {
    grid-template-columns: 1fr;
  }

  .detail-guide,
  .detail-io,
  .detail-dependencies {
    grid-template-columns: 1fr;
  }

  .architecture-controls {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-control,
  .segmented-control {
    max-width: 100%;
    overflow-x: auto;
  }

  .architecture-workbench {
    min-height: 520px;
  }

  .map-viewport {
    min-height: 520px;
  }

  .flow-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .flow-tabs button {
    flex: 0 0 auto;
  }

  .flow-canvas {
    padding: 22px 18px;
  }

  .flow-steps {
    grid-template-columns: 1fr;
  }

  .flow-step,
  .flow-step:nth-child(n + 4) {
    margin-top: 0;
    padding: 14px 0 14px 18px;
    border-top: 0;
    border-left: 2px solid var(--teal);
  }

  .flow-step:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: 2px;
    left: -5px;
    transform: rotate(135deg);
  }

  .inventory-heading {
    align-items: stretch;
  }

  .search-field input {
    width: 100%;
  }

  .inventory-layout,
  .trajectory-layout {
    grid-template-columns: 1fr;
  }

  .inventory-list {
    height: 320px;
  }

  .runtime-table-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .runtime-table:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .runtime-table:nth-child(2n) {
    border-right: 0;
  }

  .milestone {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .milestone-state {
    left: 28px;
  }

  .milestone-evidence {
    grid-column: 2;
  }

  .evidence-panel {
    padding: 20px 0 0;
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  footer {
    padding: 0 18px;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 30px;
  }

  .topbar {
    gap: 12px;
  }

  .live-label {
    display: none;
  }

  .overview-lead p {
    font-size: 13px;
  }

  .filter-control button,
  .segmented-control button {
    padding: 0 9px;
  }
}
