@font-face {
  font-family: Manrope;
  src: url("./assets/manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --paper: #080512;
  --white: #110d20;
  --ink: #f3f0ff;
  --muted: #b1abc4;
  --line: #2d2541;
  --accent: #d1bcff;
  --deep: #0e091b;
  --code: #f3f0ff;
  --warm: #efd79b;
  --focus: #dfcbff;
  --body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: Manrope, var(--body);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --measure: 70ch;
  --gap: clamp(24px, 5vw, 80px);
  --action-hover: #7b46dc;
  --surface-hover: #211632;
  --code-ground: #151022;
  --inline-code-ground: #261d38;
  --line-strong: #776391;
  --loop-panel: #171027;
  --loop-selected: #382256;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px / 1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}

a {
  color: inherit;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-color: var(--ink);
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

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

button {
  caret-color: var(--ink);
}

[hidden] {
  display: none !important;
}

.setup-requirements {
  border-top: 1px solid var(--line);
  padding-block: 24px;
}

.setup-requirements strong {
  display: block;
  margin-bottom: 12px;
}

.setup-requirements p {
  font-size: 14px;
  color: var(--muted);
}

.setup-requirements p:last-child {
  margin-bottom: 0;
}

.setup-layout .doc-title h1 {
  max-width: 18ch;
}

.setup-next {
  margin-top: 40px;
}

.setup-next .text-link {
  display: inline-block;
  margin: 16px 0 0 20px;
}

.setup-layout .prompt {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

svg {
  display: block;
}

img {
  max-width: 100%;
}

p {
  max-width: var(--measure);
  margin: 0 0 1.2em;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.13;
  text-wrap: balance;
  margin: 0;
  font-weight: 600;
  letter-spacing: -.035em;
}

h1 {
  font-size: clamp(48px, 5.2vw, 76px);
}

h2 {
  font-size: clamp(34px, 3.3vw, 48px);
}

h3 {
  font-size: 24px;
  letter-spacing: -.025em;
}

code,
pre {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

code {
  font-size: .88em;
}

pre {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

p code,
li code,
td code {
  background: var(--inline-code-ground);
  padding: 2px 5px;
  border-radius: 3px;
  overflow-wrap: anywhere;
}

button {
  border: 0;
}

main {
  min-height: 60vh;
}

.wrap {
  width: min(1280px, calc(100% - 2 * var(--gap)));
  margin-inline: auto;
}

.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 10;
  background: var(--accent);
  padding: 12px 20px;
  color: var(--paper);
}

.skip:focus {
  top: 12px;
}

.site-header {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 30px;
}

.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  font: 700 22px / 1 var(--display);
  text-decoration: none;
  letter-spacing: -.035em;
}

.brand svg {
  width: 28px;
  height: 28px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  text-decoration: underline;
}

.nav .nav-start {
  padding: 9px 17px;
  background: var(--accent);
  color: var(--paper);
  border-radius: 5px;
}

.nav a[aria-current="page"] {
  text-decoration: underline;
}

.hero {
  display: grid;
  grid-template-columns: .87fr 1.13fr;
  gap: 6%;
  padding-block: 80px 70px;
  align-items: start;
}

.hero-copy {
  padding-top: 24px;
}

.hero-copy h1 {
  max-width: 9ch;
}

.hero-copy .lead {
  font-size: 19px;
  line-height: 1.65;
  max-width: 34ch;
  margin-top: 28px;
  color: var(--muted);
}

.actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 32px 0 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 12px 20px;
  min-height: 48px;
  background: var(--accent);
  color: var(--paper);
  border-radius: 5px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.button svg {
  width: 18px;
  height: 18px;
}

.button:hover {
  background: var(--action-hover);
}

.button.light {
  background: var(--accent);
  color: var(--paper);
}

.text-link {
  font-size: 14px;
  font-weight: 500;
}

.small {
  font-size: 13px;
  color: var(--muted);
}

.hero-note {
  max-width: 33ch;
  font-size: 13px;
  color: var(--muted);
  margin-top: 25px;
}

.specimen {
  background: var(--white);
  border: 1px solid var(--line);
  min-width: 0;
}

.specimen-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--ink);
  border-radius: 50%;
  margin-right: 8px;
}

.example-controls {
  display: flex;
  gap: 5px;
  padding: 16px 18px 0;
  flex-wrap: wrap;
}

.example-controls button {
  background: transparent;
  padding: 8px 10px;
  min-height: 40px;
  font-size: 12px;
  border-radius: 4px;
  color: var(--muted);
}

.example-controls button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--paper);
  font-weight: 600;
}

.example-controls button:hover {
  background: var(--surface-hover);
}

.example-panel {
  padding: 20px 22px 22px;
}

.source-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font: 11px var(--mono);
  color: var(--muted);
  margin-bottom: 10px;
}

.source-code {
  font-size: 12px;
  padding-bottom: 20px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.85;
  color: var(--ink);
}

.source-code .mark {
  background: var(--accent);
  padding: 2px 1px;
  color: var(--paper);
}

.report {
  background: var(--deep);
  color: var(--code);
  padding: 20px;
  margin-inline: -22px;
  min-height: 203px;
}

.report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 11px var(--mono);
  margin-bottom: 16px;
  color: var(--muted);
}

.severity {
  color: var(--warm);
  font-size: 11px;
  letter-spacing: .04em;
  border: 1px solid var(--line-strong);
  padding: 3px 6px;
}

.report-title {
  font: 12px / 1.7 var(--mono);
  color: var(--accent);
  overflow-wrap: anywhere;
}

.report p {
  font: 12px / 1.8 var(--mono);
  max-width: none;
  margin: 10px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.report details {
  margin-top: 14px;
  font-size: 12px;
}

.report summary {
  cursor: pointer;
  color: var(--muted);
  text-underline-offset: 4px;
}

.report details pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  margin-top: 12px;
  color: var(--code);
}

.interpretation {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.6;
  max-width: none;
}

.interpretation strong {
  font-weight: 600;
}

.specimen-foot {
  padding: 13px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  color: var(--muted);
}

.proof-strip {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 23px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.proof-strip span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.proof-strip svg {
  width: 16px;
  height: 16px;
}

.section {
  padding-block: 94px;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: start;
  margin-bottom: 48px;
}

.section-heading p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 17px;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 24px;
  counter-reset: steps;
}

.workflow li {
  position: relative;
  counter-increment: steps;
  padding-top: 45px;
}

.workflow li::before {
  content: counter(steps);
  display: grid;
  place-content: center;
  position: absolute;
  left: 0;
  top: 0;
  font: 12px var(--mono);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  background: var(--paper);
  z-index: 1;
}

.workflow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 27px;
  width: calc(100% - 2px);
  height: 1px;
  background: var(--line);
}

.workflow h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.workflow p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.workflow .decision::before {
  background: var(--accent);
  border-color: var(--ink);
  color: var(--paper);
}

.section-tail {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 30px;
  margin-top: 40px;
}

.section-tail p {
  font-size: 14px;
  color: var(--muted);
  max-width: 60ch;
}

.section-tail a {
  white-space: nowrap;
  font-size: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: var(--gap);
}

.split-section h2 {
  max-width: 13ch;
}

.split-section .intro {
  color: var(--muted);
  margin-top: 24px;
  max-width: 33ch;
}

.command-list {
  margin: 0;
}

.command-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.command-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.command-row dt {
  font: 14px var(--mono);
  padding-top: 3px;
}

.command-row dd {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.command-row dd strong {
  font-weight: 500;
  color: var(--ink);
}

.limits {
  background: var(--white);
  color: var(--ink);
  padding: 38px 40px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  border: 1px solid var(--line);
}

.limits h3 {
  font-size: 30px;
  max-width: 13ch;
}

.limits p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 16px;
}

.limits a {
  font-size: 14px;
  color: var(--accent);
}

.close {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
  padding-block: 85px;
}

.close h2 {
  max-width: 12ch;
}

.close p {
  color: var(--muted);
  margin: 24px 0;
  max-width: 42ch;
}

.install-block {
  background: var(--code-ground);
  padding: 28px;
  min-width: 0;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 12px;
  color: var(--muted);
}

.copy-button {
  flex-shrink: 0;
  white-space: nowrap;
  background: var(--white);
  padding: 6px 11px;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  min-height: 36px;
}

.copy-button:hover {
  background: var(--accent);
  color: var(--paper);
}

.copy-status {
  font-size: 12px;
  min-height: 20px;
  margin-top: 12px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 27px 35px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  font-size: 12px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.docs-layout {
  display: grid;
  grid-template-columns: 205px minmax(0, 790px);
  gap: clamp(40px, 7vw, 110px);
  padding-block: 55px 100px;
  align-items: start;
}

.docs-nav {
  position: sticky;
  top: 30px;
  font-size: 14px;
}

.docs-nav p {
  font-size: 12px;
  color: var(--muted);
  margin: 24px 0 8px;
}

.docs-nav p:first-child {
  margin-top: 0;
}

.docs-nav a {
  display: block;
  padding: 6px 0;
  text-decoration: none;
  color: var(--muted);
}

.docs-nav a:hover,
.docs-nav a[aria-current="location"] {
  color: var(--ink);
  text-decoration: underline;
}

.docs-nav .nav-group {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.doc-title h1 {
  font-size: 54px;
  max-width: 15ch;
}

.doc-title > p {
  font-size: 19px;
  color: var(--muted);
  margin-top: 24px;
}

.doc-section {
  padding-top: 55px;
  margin-top: 50px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 25px;
}

.doc-section h2 {
  font-size: 34px;
  margin-bottom: 24px;
}

.doc-section h3 {
  font-size: 22px;
  margin: 35px 0 14px;
}

.doc-section p {
  font-size: 16px;
  line-height: 1.75;
}

.doc-section ul,
.doc-section ol {
  padding-left: 22px;
}

.doc-section li {
  padding-left: 4px;
  margin-bottom: 10px;
}

.doc-section pre {
  background: var(--code-ground);
  padding: 22px;
  margin-block: 20px;
  max-width: 100%;
}

.doc-section .code-head {
  margin-bottom: -20px;
  background: var(--code-ground);
  padding: 15px 22px 0;
}

.doc-section .code-head + pre {
  margin-top: 20px;
}

.doc-section table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  line-height: 1.65;
  text-align: left;
  margin: 22px 0;
}

.doc-section th {
  font-weight: 600;
}

.doc-section td,
.doc-section th {
  padding: 13px 16px 13px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.doc-section td:first-child {
  min-width: 125px;
}

.table-scroll {
  overflow-x: auto;
}

.note {
  background: var(--code-ground);
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 14px;
}

.note p:last-child {
  margin-bottom: 0;
}

.doc-section details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.doc-section summary {
  cursor: pointer;
  font-weight: 600;
  list-style-position: outside;
  margin-left: 18px;
}

.doc-section details p {
  margin: 15px 0 0;
  font-size: 14px;
}

.doc-section details code {
  overflow-wrap: anywhere;
}

.doc-section .workflow {
  display: block;
}

.doc-section .workflow li {
  padding-top: 0;
  padding-left: 45px;
  margin-bottom: 28px;
}

.doc-section .workflow li::after {
  display: none;
}

.doc-section .workflow h3 {
  margin: 0 0 8px;
}

.doc-section .workflow p {
  font-size: 15px;
}

.doc-end {
  margin-top: 50px;
  font-size: 14px;
}

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

.example-panel.changed .report {
  animation: mark-report .32s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mark-report {
  from {
    box-shadow: inset 0 0 0 2px var(--accent);
  }
  to {
    box-shadow: inset 0 0 0 0 transparent;
  }
}

@media (min-width: 1600px) {
  .hero {
    gap: 9%;
    grid-template-columns: .8fr 1.2fr;
  }
  .hero-copy h1 {
    font-size: 78px;
  }
}

@media (max-width: 1050px) {
  .hero {
    gap: 35px;
    grid-template-columns: .9fr 1.1fr;
  }
  .hero-copy h1 {
    font-size: 56px;
  }
  .hero-copy .lead {
    font-size: 17px;
  }
  .specimen-head,
  .example-panel {
    padding-inline: 17px;
  }
  .report {
    margin-inline: -17px;
    padding: 17px;
  }
  .example-controls {
    padding-inline: 10px;
    gap: 0;
  }
  .example-controls button {
    font-size: 11px;
    padding-inline: 8px;
  }
  .workflow {
    gap: 17px;
  }
  .workflow h3 {
    font-size: 18px;
  }
  .docs-layout {
    grid-template-columns: 165px minmax(0, 1fr);
    gap: 40px;
  }
  .nav {
    gap: 22px;
  }
  .proof-strip {
    font-size: 12px;
  }
}

@media (max-width: 760px) {
  :root {
    --gap: 24px;
  }
  .site-header {
    min-height: 83px;
    gap: 20px;
    flex-wrap: wrap;
    padding-block: 20px;
  }
  .brand {
    font-size: 20px;
  }
  .nav {
    gap: 20px;
    font-size: 13px;
  }
  .nav .nav-start {
    display: none;
  }
  .nav .github-link {
    display: none;
  }
  .hero {
    display: block;
    padding-block: 44px 38px;
  }
  .hero-copy {
    padding: 0;
  }
  .hero-copy h1 {
    font-size: 54px;
    max-width: 10ch;
  }
  .hero-copy .lead {
    font-size: 17px;
    max-width: 40ch;
    margin-top: 22px;
  }
  .hero-note {
    max-width: 44ch;
    margin-top: 20px;
  }
  .actions {
    gap: 24px;
    margin-top: 25px;
  }
  .specimen {
    margin-top: 35px;
  }
  .specimen-head {
    padding: 14px 17px;
  }
  .specimen-foot {
    padding-inline: 17px;
  }
  .example-controls button {
    font-size: 11px;
    flex: 1;
    padding-inline: 6px;
  }
  .report {
    min-height: 0;
  }
  .proof-strip {
    flex-wrap: wrap;
    gap: 13px;
    padding-block: 20px;
    font-size: 12px;
  }
  .proof-strip span {
    width: 100%;
  }
  .section {
    padding-block: 54px;
  }
  .section-heading {
    display: block;
    margin-bottom: 32px;
  }
  .section-heading h2 {
    max-width: 16ch;
  }
  .section-heading p {
    margin-top: 22px;
    font-size: 16px;
  }
  .workflow {
    display: block;
  }
  .workflow li {
    padding: 0 0 30px 44px;
  }
  .workflow li:last-child {
    padding-bottom: 0;
  }
  .workflow li:not(:last-child)::after {
    top: 27px;
    left: 13px;
    width: 1px;
    height: calc(100% - 26px);
  }
  .workflow h3 {
    font-size: 21px;
    margin: 0 0 9px;
  }
  .workflow p {
    font-size: 14px;
    max-width: 43ch;
  }
  .section-tail {
    display: block;
    margin-top: 28px;
  }
  .section-tail p {
    margin-bottom: 20px;
  }
  .split-section {
    display: block;
  }
  .split-section h2 {
    max-width: 15ch;
  }
  .split-section .intro {
    max-width: 45ch;
    margin-bottom: 35px;
  }
  .command-row {
    grid-template-columns: 100px 1fr;
    gap: 15px;
  }
  .limits {
    display: block;
    padding: 28px;
  }
  .limits h3 {
    max-width: 15ch;
    font-size: 29px;
    margin-bottom: 20px;
  }
  .close {
    display: block;
    padding-block: 50px;
  }
  .close h2 {
    max-width: 16ch;
  }
  .install-block {
    padding: 22px;
    margin-top: 30px;
  }
  .install-block pre {
    font-size: 11px;
  }
  .site-footer {
    display: block;
    padding-block: 25px;
  }
  .footer-links {
    margin-top: 15px;
  }
  .docs-layout {
    display: block;
    padding-top: 28px;
  }
  .docs-nav {
    position: static;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    margin-bottom: 36px;
    padding-bottom: 18px;
  }
  .docs-nav p {
    display: none;
  }
  .docs-nav .nav-group {
    display: contents;
  }
  .docs-nav a {
    white-space: nowrap;
    font-size: 13px;
  }
  .doc-title h1 {
    font-size: 42px;
  }
  .doc-title > p {
    font-size: 17px;
  }
  .doc-section {
    margin-top: 35px;
    padding-top: 35px;
  }
  .doc-section h2 {
    font-size: 29px;
  }
  .doc-section td,
  .doc-section th {
    font-size: 13px;
  }
  .doc-section pre {
    padding: 17px;
    font-size: 12px;
  }
  .doc-section .code-head {
    padding-inline: 17px;
  }
  .doc-section .workflow li {
    padding-left: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .example-panel.changed .report {
    animation: none;
  }
}

pre code {
  font-size: inherit;
}

html {
  scrollbar-color: var(--line-strong) #090b12;
}

@media (max-width: 760px) {
  .specimen-head {
    font-size: 12px;
  }
  .specimen-head > span:last-child {
    white-space: nowrap;
  }
}

.report :focus-visible {
  outline-color: var(--accent);
}

.task-hero {
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
}

.task-hero h1 {
  max-width: 12ch;
  font-size: clamp(44px, 4.7vw, 68px);
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.starting-paths {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.path-row {
  display: grid;
  grid-template-columns: 24px 1fr 18px;
  gap: 16px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.path-row h2 {
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -.02em;
  margin: 0 0 8px;
}

.path-row p {
  font-size: 15px;
  margin: 0 0 12px;
}

.path-number {
  font-size: 12px;
  padding-top: 5px;
  color: var(--muted);
}

.path-outcome {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.path-row:hover h2 {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.role-workflow {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.role-workflow li {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.role-workflow h3 {
  font-size: 22px;
  margin: 14px 0;
}

.role-workflow p {
  font-size: 16px;
  max-width: 35ch;
}

.example-preview {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--white);
}

.example-preview iframe,
.demo-frame {
  width: 100%;
  height: 175px;
  border: 1px solid var(--line);
  margin: 18px 0;
  display: block;
}

.prompt {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.doc-section > p {
  max-width: 68ch;
}

@media (max-width: 1050px) {
  .task-hero {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .task-hero h1 {
    font-size: clamp(42px, 5.4vw, 60px);
  }
  .role-workflow {
    gap: 24px;
  }
}

@media (max-width: 760px) {
  .task-hero {
    grid-template-columns: 1fr;
  }
  .task-hero h1 {
    max-width: 14ch;
    font-size: clamp(40px, 8vw, 56px);
  }
  .role-workflow {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .role-workflow p {
    max-width: none;
  }
  .path-row {
    padding: 22px 0;
  }
  .example-preview {
    padding: 16px;
  }
}

.loop-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 30px;
  font-size: 13px;
}

.loop-owner {
  display: inline-block;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  width: fit-content;
}

.owner-engine {
  background: var(--deep);
  color: var(--code);
}

.owner-team {
  background: var(--warm);
  color: var(--paper);
}

.loop-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.loop-column {
  min-width: 0;
  border-top: 1px solid var(--ink);
  padding-top: 24px;
}

.loop-column header {
  min-height: 176px;
}

.loop-column h3 {
  font-size: 24px;
  margin: 0 0 8px;
}

.loop-column header p {
  font-size: 15px;
}

.loop-status {
  font-size: 12px !important;
  color: var(--muted);
  margin: 0 0 16px;
}

.loop-steps {
  padding: 0;
  margin: 0;
  list-style: none;
}

.loop-step {
  position: relative;
  padding: 18px;
  margin: 0 0 24px;
  background: var(--white);
  border: 1px solid var(--line);
}

.loop-step:not(:last-child)::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 24px;
  left: 26px;
  bottom: -25px;
  background: var(--ink);
}

.loop-step:not(:last-child)::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  left: 23px;
  bottom: -24px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transform: rotate(45deg);
}

.loop-step > strong {
  display: block;
  font-size: 16px;
  margin: 12px 0 6px;
  line-height: 1.4;
}

.loop-step p {
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

.loop-column .loop-step {
  min-height: 174px;
}

.loop-return {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 20px;
}

.loop-return svg {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
}

.loop-memory {
  margin-top: 40px;
  border-block: 1px solid var(--line);
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.loop-memory h3 {
  margin: 0 0 8px;
  font-size: 23px;
}

.loop-memory p {
  margin: 0;
  font-size: 15px;
  max-width: 65ch;
}

.loop-memory a {
  flex: 0 0 auto;
  font-size: 14px;
}

.doc-section .loop-detail {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  padding: 0;
  margin: 0;
}

.doc-section .loop-detail:last-of-type {
  border-bottom: 1px solid var(--line);
}

.loop-detail summary {
  padding: 20px 0;
  cursor: pointer;
  font-size: 22px;
  font-family: var(--display);
}

.loop-detail summary .loop-status {
  display: block;
  font-family: var(--body);
  margin: 4px 0 0 22px;
}

.loop-detail > p {
  font-size: 15px;
}

.loop-detail .loop-steps {
  margin: 24px 0;
}

.loop-detail .loop-step {
  padding: 20px 24px;
}

.loop-detail .loop-step > strong {
  font-size: 19px;
}

.loop-detail .loop-step p {
  font-size: 15px;
}

.loop-detail .scenario-step {
  background: transparent;
}

.loop-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0;
}

.loop-choices[hidden],
.loop-scenario[hidden] {
  display: none;
}

.loop-choices button {
  min-height: 44px;
  padding: 9px 18px;
  font: 600 14px var(--body);
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}

.loop-choices button:hover {
  background: var(--surface-hover);
}

.loop-choices button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--ink);
  color: var(--paper);
}

.loop-scenario h4 {
  font: 600 22px / 1.35 var(--display);
  margin: 20px 0 10px;
}

.loop-scenario p + p {
  margin-top: 12px;
}

.loop-scenario a {
  display: inline-block;
  font-size: 14px;
  margin-top: 16px;
}

.loop-conclusion {
  margin-top: 24px;
}

@media (max-width: 1050px) {
  .loop-map {
    gap: 20px;
  }
  .loop-column h3 {
    font-size: 22px;
  }
  .loop-column header {
    min-height: 188px;
  }
  .loop-column .loop-step {
    min-height: 200px;
    padding: 15px;
  }
}

@media (max-width: 760px) {
  .loop-map {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .loop-column header {
    min-height: 0;
  }
  .loop-column .loop-step {
    min-height: 0;
    padding: 18px;
  }
  .loop-column h3 {
    font-size: 24px;
  }
  .loop-legend {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 10px;
  }
  .loop-memory {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .loop-detail .loop-step {
    padding: 18px;
  }
  .loop-choices button {
    padding-inline: 14px;
  }
}

.loop-detail summary h3 {
  display: inline;
  font: inherit;
  margin: 0;
}

.loop-detail summary .loop-status {
  font-weight: 400;
}

.nav .nav-start:hover {
  background: var(--action-hover);
}

.button.light:hover {
  background: var(--action-hover);
}

.example-controls button[aria-pressed="true"]:hover {
  background: var(--accent);
}
