
:root {
  color-scheme: dark;
  --bg: #101518; --panel: #161e22; --depth: #11191c; --line: #334247;
  --ink: #eff7f4; --muted: #acc0bf; --signal: #8df0b6; --hot: #ffc98d;
  --control-border: #82989d;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-family: "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.55; }
[hidden] { display: none !important; }
a { color: var(--signal); text-underline-offset: .24em; }
a:hover { color: #cbfada; }
:focus-visible { outline: 3px solid var(--hot); outline-offset: 4px; }
.skip { position: absolute; left: .8rem; top: -5rem; padding: .6rem 1rem; background: var(--bg); z-index: 2; }
.skip:focus { top: .6rem; }
.top { min-height: 73px; display: flex; align-items: center; gap: 1.6rem; padding: .75rem max(1.25rem, calc((100% - 1160px) / 2)); border-bottom: 1px solid var(--line); }
.top nav { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.3rem; }
.top nav a { color: var(--muted); display: inline-flex; align-items: center; min-height: 32px; text-decoration: none; white-space: nowrap; font-size: .95rem; }
.top nav a:hover { color: var(--signal); }
.logo { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.15rem; color: var(--ink); text-decoration: none; font-weight: 750; letter-spacing: -.025em; }
.mark { display: inline-block; position: relative; width: 29px; height: 23px; flex: 0 0 auto; }
.mark::before, .mark::after { content: ""; position: absolute; width: 18px; height: 12px; border: 2px solid var(--signal); border-radius: 5px; transform: rotate(-40deg); }
.mark::before { left: 0; top: 8px; }
.mark::after { left: 11px; top: 2px; }
.shell { width: min(1160px, calc(100% - 3rem)); margin-inline: auto; }
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3rem; align-items: center; padding: 3.7rem 0 3.6rem; }
.eyebrow { color: var(--signal); font: 600 .78rem/1.5 var(--mono); letter-spacing: .115em; margin: 0 0 .6rem; }
.eyebrow > span:not(.signal) { color: var(--muted); margin: 0 .35rem; }
.signal { display: inline-block; width: .48rem; height: .48rem; border-radius: 50%; background: var(--signal); vertical-align: 1px; margin-right: .3rem; }
h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -.045em; }
h1 { font-size: clamp(2.85rem, 6.5vw, 5.4rem); font-weight: 750; }
h1 span { color: var(--signal); }
h2 { font-size: clamp(1.8rem, 3.3vw, 2.6rem); }
h3 { font-size: 1.17rem; letter-spacing: -.02em; }
.lede { color: var(--muted); max-width: 36rem; margin: 1.15rem 0 0; font-size: clamp(1rem, 1.6vw, 1.2rem); }
.diagram { background-color: #132027; background-image: radial-gradient(#34504c 1px, transparent 1px); background-size: 15px 15px; border: 1px solid #34514d; border-radius: 1rem; font: .75rem var(--mono); padding: 1rem 1.25rem; }
.diagram-label, .diagram-caption { display: flex; justify-content: space-between; color: var(--muted); letter-spacing: .07em; }
.diagram-caption { justify-content: center; gap: .65rem; }
.diagram-caption span { color: var(--signal); }
.nodes { min-height: 153px; display: grid; grid-template-columns: max-content minmax(20px, 1fr) max-content; align-items: center; justify-content: center; margin: 0 auto; max-width: 350px; }
.node { display: flex; align-items: center; gap: .35rem; white-space: nowrap; padding: .65rem .75rem; border: 1px solid #44605c; background: #142620; border-radius: .5rem; color: var(--ink); }
.primary-node { border-color: var(--signal); box-shadow: 0 0 22px #8df0b625; }
.branches { display: grid; grid-auto-rows: 38px; gap: .55rem; }
.wire { position: relative; height: calc(76px + 1.1rem); border-right: 1px solid #68a189; margin-right: 14px; }
.wire::before { content: ""; position: absolute; width: 100%; top: 50%; height: 1px; background: #68a189; }
.wire i { position: absolute; right: -15px; width: 15px; height: 1px; background: #68a189; }
.wire i:first-child { top: 0; }.wire i:nth-child(2) { top: 50%; }.wire i:last-child { bottom: 0; }
.section { margin-bottom: 3.8rem; }
.section-heading, .report-header { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; }
.workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.panel { min-width: 0; border: 1px solid var(--line); background: var(--panel); border-radius: .85rem; padding: clamp(1rem, 2.4vw, 1.55rem); }
.workspace > .panel { min-height: 17.5rem; }
.report-panel { background: var(--depth); }
.report-header { border-bottom: 1px solid var(--line); padding-bottom: .85rem; align-items: center; }
.badge { display: inline-block; flex: 0 0 auto; font: .79rem/1.4 var(--mono); border: 1px solid var(--line); border-radius: 2rem; padding: .25rem .65rem; color: var(--muted); }
.spec-link { font-size: .87rem; }
.switcher { display: inline-flex; gap: .2rem; padding: .2rem; background: var(--depth); border: 1px solid var(--line); border-radius: .6rem; margin: 0 0 1.05rem; }
form { margin: 0; }
label { font-weight: 650; display: block; margin: .55rem 0 .35rem; font-size: .94rem; }
input, textarea, select { color: var(--ink); background: #0e171b; border: 1px solid var(--control-border); border-radius: .45rem; display: block; width: 100%; padding: .68rem .78rem; font: inherit; min-height: 44px; }
input::placeholder, textarea::placeholder { color: #91a8a9; }
textarea { resize: vertical; font: .9rem/1.5 var(--mono); }
button { cursor: pointer; min-height: 43px; border-radius: .45rem; border: 1px solid transparent; background: var(--signal); color: #09241a; padding: .5rem .87rem; line-height: 1.3; font-family: inherit; font-size: .94rem; font-weight: 700; }
button:hover:not(:disabled):not([aria-disabled="true"]) { filter: brightness(1.13); }
button:disabled, button[aria-disabled="true"] { cursor: default; }
.secondary, .chip, .switch { background: #202c30; color: var(--ink); border-color: var(--control-border); }
.switch { background: transparent; color: var(--muted); min-height: 38px; }
.switch[aria-pressed="true"], .chip[aria-pressed="true"] { color: var(--signal); background: #203a31; border-color: var(--signal); text-decoration: underline; text-underline-offset: .2em; }
.help, .status { color: var(--muted); font-size: .91rem; margin: .55rem 0 .85rem; }
.status { margin-bottom: 0; overflow-wrap: anywhere; }
.status.error { color: var(--hot); }
.status:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.examples, .buttons, .search-row, .demo-links { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.examples { border-top: 1px solid var(--line); margin-top: 1.05rem; padding-top: .85rem; }
.examples span { color: var(--muted); margin-right: .3rem; font-size: .9rem; }
.chip { min-height: 37px; padding: .35rem .66rem; font-size: .86rem; }
.empty-report { min-height: 152px; display: grid; justify-items: center; align-content: center; text-align: center; color: var(--muted); }
.empty-report p { max-width: 18rem; margin: .85rem 0 0; }
.report-icon { width: 36px; height: 43px; border: 1px solid #53706b; border-radius: .35rem; padding: 10px 7px; display: grid; gap: 4px; }
.report-icon i { height: 2px; background: #8ac0ab; border-radius: 2px; }
.report-icon i:last-child { width: 60%; }
.score { display: flex; flex-wrap: wrap; align-items: baseline; gap: .65rem; color: var(--muted); }
.score strong { font: 700 2.4rem var(--mono); color: var(--signal); }
.findings, .trace { padding-inline-start: 1.2rem; overflow-wrap: anywhere; }
.findings li, .trace li { margin: .5rem 0; }
.findings code, .trace, pre { font-family: var(--mono); font-size: .88rem; }
.findings strong { color: var(--hot); }
pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 26rem; overflow: auto; color: var(--muted); line-height: 1.65; }
details { padding: .6rem 0; border-top: 1px solid var(--line); margin-top: .65rem; }
summary { cursor: pointer; font-weight: 700; }
.agent-list { padding-inline-start: 1.2rem; overflow-wrap: anywhere; }
.agent-list small { display: block; color: var(--muted); font-size: .87rem; }
.search-row input { flex: 1 1 17rem; }
.directory-results { margin: 1rem 0 .75rem; display: grid; gap: .65rem; }
.record { background: var(--depth); border: 1px solid var(--line); border-radius: .6rem; padding: .85rem; overflow-wrap: anywhere; }
.record p { color: var(--muted); margin: .35rem 0 .75rem; }
.directory-footer { justify-content: space-between; border-top: 1px solid var(--line); padding-top: .65rem; }
.directory-footer p { margin: 0; }
.peer-examples { border: 0; padding: 0 0 .4rem; margin: 0; }
#peer-form textarea, #demo-form textarea { margin-bottom: .85rem; }
.demo-links { gap: 1rem; margin-top: 1.1rem; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; border-top: 1px solid var(--line); padding: 1rem 0 2rem; color: var(--muted); font-size: .88rem; }
.footer div { display: flex; flex-wrap: wrap; gap: .9rem; }
dialog { width: min(560px, calc(100% - 2rem)); max-height: 90dvh; color: var(--ink); background: var(--panel); border: 1px solid #536962; border-radius: .8rem; padding: 1.4rem; }
dialog::backdrop { background: #030a0ccc; }
dialog p, dialog pre { overflow-wrap: anywhere; }
dialog .buttons { margin-top: .95rem; }
.demo { padding: 3rem 0; }.demo .panel { margin-top: 1.45rem; max-width: 42rem; }
@media (max-width: 850px) { .hero { gap: 1.25rem; } .top { gap: 1rem; } }
@media (max-width: 680px) {
  .shell { width: calc(100% - 2rem); }
  .top { padding: .65rem 1rem; flex-wrap: wrap; gap: .45rem 1rem; }
  .top nav { width: 100%; margin: 0; padding: .3rem 0; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 2.5rem 0; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .diagram { max-width: 24rem; width: 100%; }
  .section { margin-bottom: 2.5rem; }
  .desktop-break { display: none; }
}
@media (max-width: 365px) {
  .diagram { padding-inline: .65rem; }.node { padding-inline: .45rem; }.node .mark { display: none; }
  .spec-link { max-width: 6rem; }.eyebrow { letter-spacing: .06em; }
}
@media (forced-colors: active) { :focus-visible { outline-color: Highlight; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
