:root {
  --black: #061012;
  --deep: #0b191b;
  --panel: rgba(18, 30, 33, 0.9);
  --panel-strong: #13272b;
  --text: #f5fbff;
  --soft: #c8d7dc;
  --muted: #9eb0b6;
  --line: rgba(210, 236, 240, 0.15);
  --aqua: #7df0c2;
  --cyan: #7fe7ff;
  --gold: #f4c961;
  --coral: #ff7f6e;
  --heading: "Nunito Sans", "Avenir Next", Arial, sans-serif;
  --body: "Atkinson Hyperlegible", Arial, sans-serif;
  --max-width: 1160px;
}

* { box-sizing: border-box; }
html { background: var(--black); scroll-behavior: smooth; }
body {
  background:
    linear-gradient(145deg, rgba(6, 16, 18, 0.98), rgba(8, 22, 24, 0.98)),
    linear-gradient(90deg, rgba(125, 240, 194, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(127, 231, 255, 0.05) 1px, transparent 1px);
  background-size: auto, 92px 92px, 92px 92px;
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}
main { max-width: 100vw; overflow-x: hidden; }
a { color: inherit; }
.skip-link { background: var(--gold); color: var(--black); left: 1rem; padding: .65rem .85rem; position: absolute; top: -5rem; z-index: 20; }
.skip-link:focus { top: 1rem; }
.site-header { background: rgba(6, 16, 18, .92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.nav { align-items: center; display: flex; gap: 1rem; justify-content: space-between; margin: 0 auto; max-width: var(--max-width); padding: .8rem 1.25rem; width: 100%; }
.brand-mark { display: grid; font-family: var(--heading); font-weight: 900; line-height: .9; text-decoration: none; text-transform: uppercase; }
.brand-mark span:first-child { color: var(--aqua); text-shadow: 0 0 18px rgba(125, 240, 194, .35); }
.brand-mark span:last-child { color: var(--cyan); text-shadow: 0 0 18px rgba(127, 231, 255, .35); }
.nav-links { align-items: center; display: flex; flex-wrap: wrap; gap: .55rem .95rem; justify-content: flex-end; min-width: 0; }
.nav-links a { color: var(--muted); font-family: var(--heading); font-size: .92rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.nav-links a:hover, .nav-links a:focus { color: var(--aqua); }
.nav-toggle { align-items: center; background: transparent; border: 1px solid rgba(127, 231, 255, .55); border-radius: 8px; display: none; flex-direction: column; gap: .22rem; height: 2.7rem; justify-content: center; width: 2.9rem; }
.nav-toggle span { background: var(--cyan); display: block; height: 2px; width: 1.15rem; }
.hero { background: radial-gradient(circle at 18% 24%, rgba(125, 240, 194, .16), transparent 25rem), radial-gradient(circle at 84% 18%, rgba(127, 231, 255, .12), transparent 22rem); min-height: 68vh; }
.hero-inner, .section, .site-footer { margin: 0 auto; max-width: var(--max-width); padding-left: 1.25rem; padding-right: 1.25rem; }
.hero-inner { max-width: min(1600px, 100vw); }
.hero-inner { display: flex; flex-direction: column; justify-content: center; min-height: 68vh; padding-bottom: 4.5rem; padding-top: 4.5rem; }
.hero-split { align-items: center; display: grid; gap: 2rem; grid-template-columns: minmax(36rem, .9fr) minmax(24rem, 1fr); }
.hero-copy { min-width: 0; }
.eyebrow { color: var(--aqua); font-family: var(--heading); font-size: .82rem; font-weight: 900; letter-spacing: 0; margin: 0 0 .75rem; overflow-wrap: anywhere; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--heading); letter-spacing: 0; line-height: 1.04; margin: 0; overflow-wrap: normal; word-break: normal; }
h1 { font-size: clamp(3.2rem, 7vw, 6rem); max-width: 13ch; }
.hero h1 { max-width: 16ch; overflow-wrap: normal; word-break: normal; }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); max-width: 12.5ch; }
h3 { font-size: 1.22rem; }
p { margin: 0; overflow-wrap: anywhere; }
.hero-lede { color: var(--soft); font-size: clamp(1.08rem, 2vw, 1.35rem); margin-top: 1.35rem; max-width: 58rem; }
.source-line { color: var(--gold); font-family: var(--heading); font-size: .95rem; font-weight: 900; margin-top: 1.4rem; overflow-wrap: anywhere; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.button { align-items: center; border-radius: 8px; display: inline-flex; font-family: var(--heading); font-weight: 900; justify-content: center; min-height: 3rem; min-width: 10.5rem; padding: .85rem 1rem; text-decoration: none; }
.button.primary { background: var(--aqua); color: var(--black); }
.button.secondary { background: transparent; border: 1px solid rgba(127, 231, 255, .35); color: var(--text); }
.button.danger { background: rgba(255, 127, 110, .13); border: 1px solid rgba(255, 127, 110, .42); color: var(--text); }
.feature-image { background: rgba(6, 16, 18, .62); border: 1px solid rgba(127, 231, 255, .2); border-radius: 8px; box-shadow: 0 24px 70px rgba(0, 0, 0, .34); margin: 0; overflow: hidden; }
.feature-image img { display: block; height: auto; width: 100%; }
.hero-image { transform: translateY(.35rem); }
.pipeline-image { margin-top: 2rem; }
.page-hero-image { margin-top: 2rem; }
.intro-band { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); color: var(--soft); font-family: var(--heading); font-weight: 800; padding: 1rem 1.25rem; text-align: center; }
.section { padding-bottom: 5.5rem; padding-top: 5.5rem; }
.visual-band { background: rgba(14, 31, 33, .66); max-width: none; padding-left: max(1.25rem, calc((100vw - var(--max-width)) / 2)); padding-right: max(1.25rem, calc((100vw - var(--max-width)) / 2)); }
.section-heading { max-width: 62rem; }
.section-heading p:not(.eyebrow) { color: var(--muted); margin-top: .8rem; }
.two-col, .notice-pipeline, .screen-grid, .md-examples, .file-grid, .category-grid, .theme-grid, .agent-grid, .device-grid, .entity-card-grid { display: grid; gap: 1rem; }
.two-col { align-items: start; grid-template-columns: minmax(0, .9fr) minmax(280px, .62fr); }
.source-panel, .moonshot-panel, .notice-step, .screen-card, .entity-detail, .md-card, .file-card, .category-card, .theme-card, .agent-card, .device-card, .entity-card, .question-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; min-width: 0; padding: 1.15rem; }
.moonshot-panel { border-color: rgba(244, 201, 97, .42); }
.brief-points { color: var(--soft); display: grid; gap: .85rem; margin: 1rem 0 0; padding-left: 1.2rem; }
.brief-points li::marker { color: var(--aqua); }
.notice-pipeline, .screen-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 2rem; }
.notice-step span { color: var(--gold); display: block; font-family: var(--heading); font-weight: 900; margin-bottom: .7rem; }
.notice-step p, .screen-card p, .entity-detail p { color: var(--muted); font-size: .94rem; margin-top: .65rem; }
.card-meta { color: var(--gold) !important; font-family: var(--heading); font-weight: 900; }
.entity-browser { display: grid; gap: 1rem; grid-template-columns: minmax(12rem, .34fr) minmax(0, 1fr); margin-top: 2rem; }
.entity-tabs { display: grid; gap: .55rem; }
.entity-tab { background: rgba(6, 16, 18, .72); border: 1px solid rgba(127, 231, 255, .24); border-radius: 8px; color: var(--text); cursor: pointer; font-family: var(--heading); font-weight: 900; padding: .75rem; text-align: left; }
.entity-tab.is-active { background: rgba(125, 240, 194, .14); border-color: rgba(125, 240, 194, .66); color: var(--aqua); }
.entity-list { display: grid; gap: .65rem; margin-top: 1rem; max-height: 34rem; overflow: auto; padding-right: .35rem; }
.entity-row { background: rgba(6, 16, 18, .55); border: 1px solid rgba(210, 236, 240, .1); border-radius: 8px; display: grid; gap: .35rem; padding: .75rem; }
.entity-row strong, .entity-name-link { color: var(--aqua); font-family: var(--heading); font-weight: 900; text-decoration: none; }
.entity-name-link:hover, .entity-name-link:focus { color: var(--cyan); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
.entity-row span { color: var(--gold); font-size: .82rem; }
.status-pill { align-items: center; background: rgba(244, 201, 97, .12); border: 1px solid rgba(244, 201, 97, .34); border-radius: 999px; color: var(--gold) !important; display: inline-flex; font-family: var(--heading); font-size: .78rem; font-weight: 900; justify-self: start; margin: .1rem 0 0; padding: .18rem .52rem; text-transform: uppercase; }
.compact-status { margin-bottom: .45rem; }
.directory-section { padding-top: 3.5rem; }
.directory-list { max-height: none; }
.directory-row { grid-template-columns: minmax(12rem, .35fr) minmax(14rem, .3fr) minmax(0, 1fr); align-items: start; }
.compact-button { margin-top: 1rem; min-height: 2.6rem; min-width: 0; width: fit-content; }
.compact-link { margin-top: .45rem; }
.result-count { color: var(--gold); font-family: var(--heading); font-size: .9rem; font-weight: 900; margin-top: 1rem; }
.sort-panel { align-items: end; background: rgba(6, 16, 18, .55); border: 1px solid rgba(127, 231, 255, .18); border-radius: 8px; display: grid; gap: .85rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.4rem; padding: 1rem; }
.directory-controls { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mode-toggle { background: rgba(14, 31, 33, .75); border: 1px solid rgba(127, 231, 255, .18); border-radius: 8px; display: grid; gap: .35rem; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .35rem; }
.mode-toggle button, .keyword-grid button { background: transparent; border: 1px solid transparent; border-radius: 8px; color: var(--soft); cursor: pointer; font-family: var(--heading); font-weight: 900; min-height: 2.55rem; padding: .55rem .65rem; }
.mode-toggle button.is-active, .keyword-grid button.is-active { background: rgba(125, 240, 194, .14); border-color: rgba(125, 240, 194, .52); color: var(--aqua); }
.sort-label { color: var(--soft); display: grid; gap: .35rem; font-size: .9rem; }
.sort-label select, .sort-label input { background: rgba(6, 16, 18, .72); border: 1px solid rgba(127, 231, 255, .22); border-radius: 8px; color: var(--text); font: inherit; min-height: 2.65rem; min-width: 0; padding: .55rem .65rem; width: 100%; }
.keyword-drawer { grid-column: 1 / -1; }
.keyword-drawer summary { color: var(--gold); cursor: pointer; font-family: var(--heading); font-weight: 900; }
.keyword-grid { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; }
.keyword-grid button { background: rgba(127, 231, 255, .08); border-color: rgba(127, 231, 255, .16); font-size: .8rem; min-height: 2.1rem; padding: .34rem .58rem; }
.entity-tags { margin-top: .75rem; }
.md-details { margin-top: 1rem; }
.md-details summary { color: var(--aqua); cursor: pointer; font-family: var(--heading); font-weight: 900; }
.md-examples { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2rem; }
.md-card { min-width: 0; }
.md-card pre { background: rgba(6, 16, 18, .72); border: 1px solid rgba(127, 231, 255, .16); border-radius: 8px; color: var(--soft); font-size: .78rem; line-height: 1.45; margin: .9rem 0 0; overflow-x: auto; padding: .85rem; white-space: pre-wrap; }
.md-card pre code, .entity-md code { overflow-wrap: anywhere; white-space: pre-wrap; word-break: break-word; }
.file-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 2rem; }
.file-card { color: var(--cyan); font-family: var(--heading); font-weight: 900; text-decoration: none; overflow-wrap: anywhere; }
.category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2rem; }
.category-card p:not(.eyebrow), .theme-card p:not(.eyebrow), .agent-card p:not(.eyebrow), .device-card p:not(.eyebrow), .entity-card p:not(.eyebrow) { color: var(--muted); margin-top: .65rem; }
.category-card h3, .category-card p { max-width: 100%; overflow-wrap: anywhere; }
.card-link { align-items: center; background: rgba(125, 240, 194, .12); border: 1px solid rgba(125, 240, 194, .34); border-radius: 8px; color: var(--aqua); display: inline-flex; font-family: var(--heading); font-weight: 900; justify-content: center; margin-top: 1rem; min-height: 2.55rem; padding: .58rem .78rem; text-decoration: none; width: fit-content; }
.category-card-link { color: inherit; cursor: pointer; display: block; min-height: 100%; text-decoration: none; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.category-card-link:hover, .category-card-link:focus { border-color: rgba(125, 240, 194, .62); box-shadow: 0 16px 44px rgba(0, 0, 0, .26); transform: translateY(-2px); }
.category-card-link:hover .card-link, .category-card-link:focus .card-link { background: var(--aqua); color: var(--black); }
.theme-layout { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr) minmax(18rem, .42fr); margin-top: 2rem; }
.theme-layout h3 { margin-bottom: 1rem; }
.theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.theme-grid.compact { grid-template-columns: 1fr; }
.theme-card { border-color: rgba(125, 240, 194, .22); }
.theme-card.local { border-color: rgba(244, 201, 97, .28); }
.tag-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .85rem; }
.tag-row span, .io-grid span { background: rgba(127, 231, 255, .1); border: 1px solid rgba(127, 231, 255, .18); border-radius: 999px; color: var(--soft); display: inline-flex; font-size: .78rem; padding: .22rem .48rem; }
.agent-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2rem; }
.io-grid { display: grid; gap: .8rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1rem; }
.io-grid div { align-content: start; display: flex; flex-wrap: wrap; gap: .45rem; }
.io-grid strong { color: var(--gold); flex-basis: 100%; font-family: var(--heading); }
.device-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 2rem; }
.category-hero { margin: 0 auto; max-width: var(--max-width); padding: 5rem 1.25rem 3rem; }
.category-hero h1 { max-width: 15ch; }
.entity-hero h1 { max-width: 18ch; }
.breadcrumb { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; font-family: var(--heading); font-size: .86rem; font-weight: 900; gap: .45rem; margin-bottom: 1rem; }
.breadcrumb a { color: var(--aqua); text-decoration: none; }
.breadcrumb span::before, .breadcrumb a + a::before { color: var(--muted); content: "/"; margin-right: .45rem; }
.entity-actions { margin-top: 1.35rem; }
.entity-page-layout { display: grid; gap: 1rem; grid-template-columns: minmax(0, .65fr) minmax(0, 1fr); padding-top: 2rem; }
.source-grid { display: grid; gap: .55rem; margin-top: 1rem; }
.source-row { background: rgba(6, 16, 18, .48); border: 1px solid rgba(127, 231, 255, .14); border-radius: 8px; display: grid; gap: .35rem; grid-template-columns: minmax(10rem, .35fr) minmax(0, 1fr); padding: .65rem .75rem; }
.source-row strong { color: var(--gold); font-family: var(--heading); }
.source-row span, .source-row a { color: var(--soft); min-width: 0; overflow-wrap: anywhere; }
.source-list { margin-top: .85rem; }
.source-list strong { color: var(--gold); font-family: var(--heading); }
.source-list ul { color: var(--soft); margin: .45rem 0 0; padding-left: 1.15rem; }
.source-list a { overflow-wrap: anywhere; }
.entity-md-layout { display: grid; gap: 1rem; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); margin-top: 2rem; min-width: 0; }
.entity-page-nav { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; margin-top: 1.5rem; }
.entity-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 2rem; }
.entity-card { display: grid; gap: .85rem; }
.entity-card.is-targeted, .entity-card:target { border-color: rgba(125, 240, 194, .72); box-shadow: 0 0 0 2px rgba(125, 240, 194, .16), 0 18px 50px rgba(0, 0, 0, .24); }
.entity-card:target { scroll-margin-top: 5.5rem; }
.question-list { color: var(--soft); display: grid; gap: .45rem; margin: 0; padding-left: 1.2rem; }
.question-list li::marker { color: var(--gold); }
.question-panel { border-color: rgba(244, 201, 97, .28); margin-top: 2rem; max-width: 62rem; }
.question-panel h3 { color: var(--text); margin-bottom: .85rem; }
.entity-md { background: rgba(6, 16, 18, .72); border: 1px solid rgba(127, 231, 255, .16); border-radius: 8px; color: var(--soft); font-size: .76rem; line-height: 1.45; margin: 0; overflow-x: auto; padding: .85rem; white-space: pre-wrap; }
.relationship-stack { display: grid; gap: .85rem; margin-top: 1rem; }
.relationship-stack article { background: rgba(6, 16, 18, .52); border: 1px solid rgba(127, 231, 255, .14); border-radius: 8px; padding: .9rem; }
.relationship-stack h3 { color: var(--aqua); }
.relationship-stack p { color: var(--muted); margin-top: .45rem; }
.schema-card { margin-top: 2rem; max-width: 62rem; }
.schema-card pre { max-height: none; }
.builder-layout { align-items: start; display: grid; gap: 1rem; grid-template-columns: minmax(0, .95fr) minmax(20rem, .7fr); padding-top: 2rem; }
.builder-form, .output-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; max-width: 100%; min-width: 0; padding: 1.15rem; }
.builder-form { display: grid; gap: 1rem; }
.builder-form fieldset { border: 1px solid rgba(127, 231, 255, .18); border-radius: 8px; display: grid; gap: .85rem; margin: 0; min-inline-size: 0; padding: 1rem; }
.builder-form legend, .output-panel > label { color: var(--gold); font-family: var(--heading); font-weight: 900; padding: 0 .35rem; }
.builder-form label, .output-panel > label { color: var(--soft); display: grid; gap: .35rem; font-size: .92rem; }
.builder-form input, .builder-form textarea, .builder-form select, .markdown-output { background: rgba(6, 16, 18, .72); border: 1px solid rgba(127, 231, 255, .22); border-radius: 8px; color: var(--text); font: inherit; min-width: 0; padding: .72rem .78rem; width: 100%; }
.builder-form textarea { min-height: 6.4rem; resize: vertical; }
.builder-form input:focus, .builder-form textarea:focus, .builder-form select:focus, .markdown-output:focus { border-color: rgba(125, 240, 194, .78); outline: none; }
.builder-form ::placeholder { color: rgba(200, 215, 220, .48); }
.part-note { color: var(--muted); font-size: .94rem; }
.exclusion-panel { background: rgba(255, 127, 110, .08); border: 1px solid rgba(255, 127, 110, .28); border-radius: 8px; color: var(--soft); display: grid; gap: .7rem; padding: .9rem; }
.exclusion-panel p { color: var(--soft); font-size: .92rem; }
.exclusion-panel ul { columns: 2; column-gap: 1.5rem; margin: 0; padding-left: 1.15rem; }
.exclusion-panel li { break-inside: avoid; margin: 0 0 .42rem; }
.exclusion-panel li::marker { color: var(--coral); }
.field-group { display: grid; gap: .65rem; }
.field-group > p { color: var(--soft); font-size: .92rem; }
.option-grid { display: grid; gap: .55rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.option-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.option-grid label { align-items: start; background: rgba(6, 16, 18, .46); border: 1px solid rgba(127, 231, 255, .14); border-radius: 8px; color: var(--soft); display: grid; gap: .45rem; grid-template-columns: auto minmax(0, 1fr); line-height: 1.25; padding: .68rem .72rem; }
.option-grid input { accent-color: var(--aqua); height: 1.05rem; margin: .1rem 0 0; padding: 0; width: 1.05rem; }
.option-grid label:has(input:checked) { background: rgba(125, 240, 194, .12); border-color: rgba(125, 240, 194, .48); color: var(--text); }
.conditional-field.is-hidden { display: none; }
.builder-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.builder-actions .button { border-style: solid; cursor: pointer; min-width: 0; }
.status { color: var(--aqua); font-family: var(--heading); font-size: .9rem; font-weight: 900; min-height: 1.4rem; }
.output-panel { display: grid; gap: .7rem; position: sticky; top: 6rem; }
.markdown-output { color: var(--soft); font-family: Consolas, "Courier New", monospace; font-size: .82rem; line-height: 1.45; min-height: 46rem; overflow-wrap: anywhere; resize: vertical; white-space: pre-wrap; }
.site-footer { align-items: start; border-top: 1px solid var(--line); display: flex; justify-content: space-between; padding-bottom: 2rem; padding-top: 2rem; }
.footer-note { color: var(--muted); margin-top: .45rem; }
.top-button { background: var(--aqua); border: 0; border-radius: 999px; bottom: 1.1rem; box-shadow: 0 14px 34px rgba(0, 0, 0, .36); color: var(--black); cursor: pointer; font-family: var(--heading); font-weight: 900; opacity: 0; padding: .8rem .95rem; pointer-events: none; position: fixed; right: 1.1rem; transform: translateY(.7rem); transition: opacity .18s ease, transform .18s ease; z-index: 30; }
.top-button.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
@media (max-width: 1100px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-image { transform: none; }
}
@media (max-width: 980px) {
  body { font-size: 16px; }
  .nav-toggle { display: inline-flex; }
  .nav-links { background: var(--black); border: 1px solid var(--line); border-radius: 8px; display: none; padding: .75rem; position: absolute; right: 1rem; top: 4.2rem; width: min(18rem, calc(100vw - 2rem)); }
  .nav-links a { min-height: 2.25rem; white-space: normal; }
  .nav-links.is-open { display: grid; }
  .two-col, .entity-browser, .builder-layout { grid-template-columns: 1fr; }
  .entity-page-layout, .entity-md-layout { grid-template-columns: 1fr; }
  .sort-panel, .directory-controls { grid-template-columns: 1fr; }
  .output-panel { position: static; }
  .directory-row { grid-template-columns: 1fr; }
  .notice-pipeline, .screen-grid, .md-examples, .file-grid, .category-grid, .theme-grid, .agent-grid, .device-grid, .entity-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theme-layout { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav { padding: .75rem 1rem; }
  .brand-mark { font-size: .98rem; }
  .category-hero, .hero-inner, .section, .site-footer { max-width: 100vw; padding-left: 1rem; padding-right: 1rem; width: 100%; }
  .category-hero { padding-bottom: 2.25rem; padding-top: 3.25rem; }
  .section.builder-layout { padding-top: 2.25rem; }
  .builder-form, .output-panel { margin-left: auto; margin-right: auto; max-width: 100%; padding: .85rem; width: 100%; }
  .builder-form fieldset { gap: .75rem; padding: .85rem; }
  .hero-inner { min-height: auto; padding-bottom: 4rem; padding-top: 4rem; }
  .hero-split { gap: 1.35rem; }
  h1 { font-size: clamp(2.35rem, 9.5vw, 2.75rem); }
  .hero h1 { max-width: 13ch; }
  .category-hero h1 { max-width: 12ch; overflow-wrap: anywhere; }
  .hero-lede { font-size: 1.05rem; max-width: none; }
  .hero-actions { gap: .65rem; margin-top: 1.35rem; }
  .builder-form label, .output-panel > label, .field-group > p { font-size: .9rem; }
  .builder-form input, .builder-form textarea, .builder-form select, .markdown-output { padding: .68rem .72rem; }
  .option-grid label { padding: .64rem .68rem; }
  .notice-pipeline, .screen-grid, .md-examples, .file-grid, .category-grid, .theme-grid, .agent-grid, .device-grid, .entity-card-grid, .io-grid { grid-template-columns: 1fr; }
  .source-row { grid-template-columns: 1fr; }
  .option-grid, .option-grid.compact { grid-template-columns: 1fr; }
  .exclusion-panel ul { columns: 1; }
  .button { width: 100%; }
  .site-footer { flex-direction: column; }
  .top-button { bottom: .85rem; right: .85rem; }
}
