/* One signal color connects the runtime map and its reference material. */
:root {
  color-scheme: light dark;
  --paper: #f3f6fb;
  --surface: #ffffff;
  --surface-subtle: #f7f9fd;
  --ink: #17253d;
  --muted: #53647c;
  --signal: #1554d1;
  --signal-soft: #eaf0ff;
  --line: #cfd9e8;
  --strong-line: #7588a2;
  --code-key: #244b8e;
  --code-string: #245d58;
  --code-number: #7045a1;
  --sans: "Avenir Next", Avenir, "Segoe UI Variable Text", "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101a29;
    --surface: #152238;
    --surface-subtle: #192940;
    --ink: #e6eef9;
    --muted: #aabbd3;
    --signal: #81adff;
    --signal-soft: #203758;
    --line: #344761;
    --strong-line: #7186a5;
    --code-key: #9fc2ff;
    --code-string: #99d3ca;
    --code-number: #d0adf5;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-padding-top: 28px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { color: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
a { color: var(--signal); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: 1; }
button:focus-visible, a:focus-visible, input:focus-visible, pre:focus-visible { outline: 3px solid var(--signal); outline-offset: 5px; }
::selection { background: var(--signal); color: var(--surface); }
p, h1, h2, h3, dl, dd, fieldset, figure { margin: 0; }
svg { display: block; }
code, pre { font-family: var(--mono); }
p code, dd code { font-size: .87em; overflow-wrap: anywhere; }
p { max-width: 72ch; }
h1, h2, h3 { text-wrap: balance; }

.page-shell { max-width: 1304px; margin: 0 auto; padding: 0 52px; }
.skip-link { position: fixed; z-index: 20; left: 20px; top: 12px; padding: 10px 18px; background: var(--surface); border: 2px solid var(--signal); border-radius: 5px; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { min-height: 104px; display: flex; justify-content: space-between; align-items: center; gap: 32px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-size: 23px; font-weight: 650; letter-spacing: -.06em; white-space: nowrap; }
.brand-mark { width: 40px; height: 40px; color: var(--signal); }
.brand-ne { font-weight: 450; letter-spacing: -.04em; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 30px; font-size: 14px; font-weight: 550; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 10px 0; }
.site-nav a:hover { color: var(--signal); }
.site-nav .source-link { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.source-link svg, .text-link svg, .primary-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.hero { padding-top: 77px; display: grid; grid-template-columns: 1.3fr 1fr; column-gap: 68px; }
.product-kind { margin-bottom: 20px; color: var(--muted); font-size: 14px; font-weight: 550; }
h1 { font-size: clamp(48px, 5.65vw, 78px); line-height: 1.075; font-weight: 600; letter-spacing: -.065em; }
.hero-copy { padding-top: 42px; }
.hero-intro { margin-bottom: 16px; max-width: 29ch; font-size: 24px; line-height: 1.45; font-weight: 550; letter-spacing: -.03em; }
.hero-copy > p:not(.hero-intro) { color: var(--muted); font-size: 16px; }
.hero-copy .text-link { margin-top: 23px; }
.text-link { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; text-decoration: none; line-height: 1.6; }
.text-link:hover { text-decoration: underline; }
.preview-note { grid-column: 1 / -1; margin-top: 49px; padding: 17px 0; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 28px; }
.release-label { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; font-size: 12px; font-weight: 600; }
.status-square { width: 7px; height: 7px; background: var(--signal); }
.preview-note p { color: var(--muted); font-size: 12px; }

.architecture-section { padding-top: 48px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 32px; margin-bottom: 24px; }
.diagram-heading h2 { font-size: 24px; font-weight: 550; letter-spacing: -.035em; }
.diagram-heading > p { color: var(--muted); font-size: 13px; }
.runtime-board { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.board-toolbar { padding: 18px 26px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.board-toolbar > p { font-size: 13px; font-weight: 600; }
.flow-legend { display: flex; gap: 22px; color: var(--muted); font-size: 11px; }
.flow-legend span { display: inline-flex; align-items: center; gap: 7px; }
.flow-legend i { width: 22px; border-top: 2px solid var(--signal); }
.flow-legend .legend-control { border-top-style: dashed; border-top-color: var(--muted); }
.runtime-map { display: grid; grid-template-columns: minmax(140px, .95fr) minmax(0, 4fr); gap: 30px; padding: 28px 26px 25px; }
.app-region { padding: 16px 0 18px; }
.provider-region { padding: 16px 12px 18px; background: var(--surface-subtle); border: 1px solid var(--line); border-radius: 10px; }
.process-heading { min-height: 76px; position: relative; padding: 0 9px; }
.process-heading h3 { font-size: 12px; font-weight: 600; letter-spacing: -.01em; }
.process-heading p { color: var(--muted); font-size: 11px; margin-top: 2px; }
.provider-heading { padding-right: 95px; }
.process-tag { position: absolute; top: 0; right: 10px; color: var(--muted); font-size: 11px; padding: 1px 8px; border: 1px solid var(--line); border-radius: 4px; }
.native-stages { display: grid; grid-template-columns: 1.18fr 1fr 1fr 1.12fr; }
.stage { width: 100%; position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 5px; border: 0; background: transparent; min-width: 0; min-height: 153px; text-align: center; isolation: isolate; border-radius: 6px; }
.stage::before { content: ""; position: absolute; z-index: -1; top: 31px; left: -50%; right: 50%; border-top: 2px solid var(--signal); }
.stage-flutter::before { display: none; }
.stage-ne::before { left: calc(-50% - 43px); border-top: 2px dashed var(--muted); }
.stage-port { width: 64px; height: 64px; flex-shrink: 0; display: grid; place-items: center; border: 1.5px solid var(--strong-line); border-radius: 15px; background: var(--surface); color: var(--ink); position: relative; }
.stage-port svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.stage-name { font-size: 13px; line-height: 1.4; font-weight: 600; margin-top: 17px; letter-spacing: -.025em; overflow-wrap: anywhere; }
.stage-name small { display: block; color: var(--muted); font-size: 11px; line-height: 1.65; font-weight: 450; letter-spacing: 0; }
.stage-meta { display: block; font-size: 10px; color: var(--muted); margin-top: 5px; line-height: 1.45; }
.stage[aria-pressed="true"] .stage-port { border: 2px solid var(--signal); color: var(--signal); background: var(--signal-soft); }
.stage[aria-pressed="true"] .stage-name { text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 5px; }
.stage:not(:disabled):hover .stage-port { border-color: var(--signal); color: var(--signal); }
.port-transport { border-radius: 5px 12px 12px 5px; }
.custom-symbol { display: none; }
.runtime-board[data-transport="custom"] .custom-symbol { display: initial; }
.runtime-board[data-transport="custom"] .udp-symbol { display: none; }
.runtime-board[data-transport="custom"] .port-transport { border-style: dashed; }
.runtime-board.is-swapping .port-transport { animation: seat-plug 320ms ease-out; }
@keyframes seat-plug { 0% { transform: translateX(9px); } 65% { transform: translateX(-2px); } 100% { transform: translateX(0); } }
.transport-dock { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 26px; border-top: 1px solid var(--line); }
.transport-choice { border: 0; padding: 0; min-width: 0; }
.transport-choice legend { padding: 0; font-size: 11px; font-weight: 600; margin-bottom: 8px; color: var(--muted); }
.transport-options { display: flex; gap: 8px; flex-wrap: wrap; }
.transport-option { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 12px; border: 1px solid var(--strong-line); border-radius: 5px; font-size: 12px; font-weight: 550; cursor: pointer; }
.transport-option:has(input:checked) { border-color: var(--signal); background: var(--signal-soft); color: var(--signal); }
.transport-option input { margin: 0; width: 14px; height: 14px; accent-color: var(--signal); }
.socket-value { min-width: 0; text-align: right; }
.socket-value > span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 7px; }
.socket-value code { display: block; font-size: 11px; overflow-wrap: anywhere; }
.flow-detail { display: grid; grid-template-columns: 136px 1fr auto; align-items: start; column-gap: 28px; padding: 25px 26px 27px; border-top: 1px solid var(--line); background: var(--surface-subtle); }
.detail-position { display: flex; flex-direction: column; font-size: 11px; line-height: 1.6; }
.detail-position > span:first-child { font-weight: 600; }
.stage-counter { color: var(--muted); margin-top: 4px; }
.detail-copy { min-height: 112px; }
.detail-copy h3 { font-size: 16px; font-weight: 600; letter-spacing: -.025em; margin-bottom: 8px; }
.detail-copy p { max-width: 66ch; color: var(--muted); font-size: 13px; line-height: 1.7; }
.step-button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 0 8px 8px; background: transparent; border: 0; color: var(--signal); font-size: 11px; font-weight: 600; white-space: nowrap; }
.step-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.step-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.diagram-footnote { margin-top: 13px; color: var(--muted); font-size: 11px; }
.noscript-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

.reference-section { display: grid; grid-template-columns: .83fr 1.17fr; gap: 72px; padding: 98px 0 86px; }
.section-context { color: var(--muted); font-size: 12px; font-weight: 550; margin-bottom: 17px; }
.section-copy h2, .configuration-heading h2 { font-size: clamp(30px, 3.2vw, 43px); line-height: 1.2; font-weight: 550; letter-spacing: -.055em; }
.section-copy > p:not(.section-context) { margin-top: 22px; font-size: 14px; color: var(--muted); max-width: 43ch; }
.section-copy .scope-note { padding-left: 16px; border-left: 2px solid var(--signal); }
.section-copy > .text-link { margin-top: 26px; }
.contract { min-width: 0; }
.code-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.code-header { min-height: 51px; padding: 12px 19px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: 11px; }
.code-header > a { color: var(--muted); text-decoration: none; }
.code-header > a:hover { color: var(--signal); text-decoration: underline; }
.code-header > span { color: var(--muted); }
.code-tools { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.code-tools > span { color: var(--muted); font-size: 10px; }
.copy-button { min-width: 49px; min-height: 30px; padding: 4px 7px; border: 1px solid var(--strong-line); border-radius: 4px; background: transparent; color: var(--ink); font-size: 10px; line-height: 1.5; }
.copy-button:hover { color: var(--signal); border-color: var(--signal); }
pre { margin: 0; padding: 23px 20px 25px; overflow: auto; font-size: 11px; line-height: 1.9; tab-size: 4; scrollbar-color: var(--strong-line) var(--surface); }
pre code { display: block; min-width: max-content; }
.code-keyword, .code-type, .code-key { color: var(--code-key); }
.code-string { color: var(--code-string); }
.code-number { color: var(--code-number); }
.contract-rules { margin-top: 20px; }
.contract-rules > div { display: grid; grid-template-columns: 104px 1fr; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.contract-rules dt { font-weight: 600; }
.contract-rules dd { color: var(--muted); }
.reference-note { margin-top: 17px; color: var(--muted); font-size: 11px; }

.configuration-section { padding: 57px 0 72px; border-top: 1px solid var(--line); }
.configuration-heading { align-items: end; margin-bottom: 31px; }
.configuration-heading .section-context { margin-bottom: 10px; }
.configuration-heading .text-link { flex-shrink: 0; font-size: 12px; margin-bottom: 4px; }
.configuration-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; }
.config-panel pre { font-size: 11px; line-height: 1.85; padding: 23px 23px 26px; }
.example-note { font-size: 13px; color: var(--muted); padding: 3px 0 19px; }
.config-notes > div { padding: 21px 0 22px; border-top: 1px solid var(--line); }
.config-notes dt { font-size: 14px; font-weight: 600; letter-spacing: -.02em; }
.config-notes dd { font-size: 13px; line-height: 1.75; color: var(--muted); margin-top: 9px; max-width: 46ch; }
.singbox-scope { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 33px; padding: 28px 0 0; border-top: 1px solid var(--line); }
.singbox-scope h3 { font-size: 16px; font-weight: 550; letter-spacing: -.025em; margin-bottom: 8px; }
.singbox-scope > div > p { color: var(--muted); font-size: 12px; max-width: 64ch; }
.registrations { padding-top: 3px; }
.registrations > p { font-size: 11px !important; }
.registrations ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.registrations li { border: 1px solid var(--line); border-radius: 4px; padding: 4px 9px; font-size: 11px; }

.integration-section { display: grid; grid-template-columns: .83fr 1.17fr; gap: 72px; padding: 64px 0 73px; border-top: 1px solid var(--line); }
.integration-links { display: flex; flex-direction: column; align-items: start; gap: 16px; margin-top: 27px; }
.primary-link { display: inline-flex; align-items: center; justify-content: center; gap: 19px; min-height: 46px; padding: 11px 18px; background: var(--signal); border: 1px solid var(--signal); border-radius: 5px; color: var(--surface); font-size: 13px; font-weight: 600; text-decoration: none; }
.primary-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.integration-links .text-link { font-size: 12px; }
.ownership-list { padding-top: 1px; }
.ownership-list > div { display: grid; grid-template-columns: 144px 1fr; gap: 23px; padding: 21px 0 24px; border-bottom: 1px solid var(--line); }
.ownership-list > div:first-child { padding-top: 0; }
.ownership-list dt { font-size: 13px; font-weight: 600; letter-spacing: -.015em; }
.ownership-list dd { color: var(--muted); font-size: 13px; line-height: 1.75; }
.project-note { display: flex; align-items: start; gap: 37px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.project-note .release-label { padding-top: 2px; }
.project-note > p { color: var(--muted); font-size: 12px; max-width: 79ch; }
.site-footer { padding: 36px 0 35px; display: grid; grid-template-columns: 1fr 1.1fr auto; gap: 40px; }
.footer-name { display: inline-block; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; margin-bottom: 9px; }
.footer-project > p, .footer-license > p { color: var(--muted); font-size: 10px; line-height: 1.75; max-width: 42ch; }
.footer-license > p:first-child { color: var(--ink); font-size: 11px; margin-bottom: 8px; }
.footer-nav { display: grid; grid-template-columns: auto auto; align-content: start; gap: 8px 23px; padding-top: 3px; }
.footer-nav a { font-size: 11px; color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--signal); text-decoration: underline; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (min-width: 1440px) {
  .page-shell { max-width: 1376px; padding: 0 64px; }
  .hero { column-gap: 88px; }
  .native-stages { grid-template-columns: 1.15fr 1fr 1fr 1.1fr; }
  .stage-name { font-size: 14px; }
  .stage-meta { font-size: 11px; }
  pre, .config-panel pre { font-size: 12px; }
}

@media (max-width: 1100px) {
  .page-shell { padding: 0 32px; }
  .hero { column-gap: 42px; }
  .hero-copy { padding-top: 38px; }
  .hero-intro { font-size: 21px; }
  .runtime-map { padding: 24px 18px; gap: 20px; grid-template-columns: minmax(116px, .85fr) minmax(0, 4fr); }
  .provider-region { padding-left: 8px; padding-right: 8px; }
  .stage-ne::before { left: calc(-50% - 28px); }
  .stage-port { width: 56px; height: 56px; border-radius: 12px; }
  .stage::before { top: 27px; }
  .port-transport { border-radius: 4px 10px 10px 4px; }
  .stage-name { font-size: 12px; }
  .stage-meta { font-size: 9px; }
  .process-heading { padding-left: 5px; }
  .process-tag { right: 4px; }
  .provider-heading { padding-right: 85px; }
  .flow-detail { grid-template-columns: 112px 1fr auto; column-gap: 20px; }
  .reference-section, .integration-section { gap: 42px; grid-template-columns: .8fr 1.2fr; }
  .configuration-layout { gap: 32px; grid-template-columns: 1.3fr 1fr; }
  .configuration-heading .text-link { max-width: 170px; flex-shrink: 1; }
  .ownership-list > div { grid-template-columns: 118px 1fr; gap: 18px; }
  .site-footer { gap: 28px; }
}

@media (max-width: 800px) {
  .site-header { min-height: 88px; gap: 16px; }
  .site-nav { gap: 20px; font-size: 12px; }
  .brand { font-size: 21px; gap: 8px; }
  .brand-mark { width: 34px; height: 34px; }
  .hero { padding-top: 51px; grid-template-columns: 1fr; }
  h1 { font-size: clamp(48px, 8.5vw, 68px); }
  .product-kind { font-size: 12px; }
  .hero-copy { padding-top: 27px; max-width: 58ch; }
  .hero-intro { max-width: 39ch; font-size: 21px; }
  .hero-copy > p:not(.hero-intro) { font-size: 14px; }
  .preview-note { margin-top: 33px; gap: 13px; flex-wrap: wrap; }
  .diagram-heading { display: block; }
  .diagram-heading > p { margin-top: 7px; }
  .architecture-section { padding-top: 33px; }
  .runtime-map { grid-template-columns: 1fr; padding: 23px; gap: 0; }
  .app-region { padding: 0 15px 19px; }
  .provider-region { padding: 20px 14px 8px; }
  .process-heading { min-height: 0; margin-bottom: 16px; padding: 0; }
  .provider-heading { padding-left: 77px; padding-right: 0; margin-bottom: 5px; min-height: 63px; }
  .process-heading h3 { font-size: 12px; }
  .process-heading p { font-size: 11px; }
  .process-tag { position: static; display: inline-block; margin-top: 8px; font-size: 10px; padding: 0 5px; }
  .native-stages { display: block; }
  .stage { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: 1fr 1fr; column-gap: 20px; align-items: center; text-align: left; min-height: 105px; padding: 0; }
  .stage-port { grid-column: 1; grid-row: 1 / 3; }
  .stage-name { grid-column: 2; grid-row: 1; align-self: end; margin: 0; font-size: 15px; padding-bottom: 3px; }
  .stage-name small { display: inline; font-size: 11px; margin-left: 5px; }
  .stage-meta { grid-column: 2; grid-row: 2; align-self: start; margin-top: 3px; font-size: 11px; }
  .stage::before { top: -50%; bottom: 50%; left: 27px; right: auto; width: 0; border-top: 0; border-left: 2px solid var(--signal); }
  .stage-ne::before { top: -130px; border-left: 2px dashed var(--muted); }
  .stage-flutter { min-height: 87px; }
  .flow-detail { grid-template-columns: 1fr auto; gap: 13px 24px; padding: 22px 24px 24px; }
  .detail-position { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 15px; }
  .stage-counter { margin: 0; }
  .detail-copy { min-height: 132px; }
  .detail-copy p { font-size: 12px; }
  .flow-legend { gap: 12px; font-size: 10px; }
  .board-toolbar { padding: 17px 23px; }
  .board-toolbar > p { font-size: 12px; }
  .transport-dock { padding: 19px 23px 21px; gap: 19px; flex-wrap: wrap; }
  .socket-value { text-align: left; }
  .socket-value code { font-size: 10px; }
  .reference-section, .integration-section { grid-template-columns: 1fr; gap: 31px; padding: 64px 0; }
  .section-copy h2, .configuration-heading h2 { font-size: 37px; }
  .section-copy > p:not(.section-context) { max-width: 60ch; }
  .section-copy h2 br { display: none; }
  pre { font-size: 12px; }
  .configuration-section { padding: 43px 0 49px; }
  .configuration-heading { display: block; }
  .configuration-heading .text-link { max-width: none; margin-top: 17px; }
  .configuration-layout { grid-template-columns: 1fr; gap: 25px; }
  .config-panel pre { font-size: 12px; }
  .config-notes > div { display: grid; grid-template-columns: 162px 1fr; gap: 23px; padding: 20px 0; }
  .config-notes dd { margin-top: 0; max-width: none; }
  .example-note { max-width: 68ch; padding-bottom: 24px; }
  .singbox-scope { gap: 32px; }
  .ownership-list > div { grid-template-columns: 162px 1fr; }
  .project-note { display: block; padding: 23px 0; }
  .project-note > p { margin-top: 10px; }
  .site-footer { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 24px; }
}

@media (max-width: 520px) {
  .page-shell { padding: 0 21px; }
  .site-header { flex-wrap: wrap; padding: 18px 0 13px; gap: 10px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 9px; font-size: 11px; }
  .site-nav a { padding: 9px 0; }
  .site-nav .source-link { gap: 5px; }
  .source-link svg { width: 12px; height: 12px; }
  .hero { padding-top: 38px; }
  .product-kind { font-size: 10px; margin-bottom: 17px; }
  h1 { font-size: clamp(38px, 10.3vw, 53px); letter-spacing: -.065em; }
  .hero-intro { font-size: 20px; }
  .hero-copy { padding-top: 24px; }
  .hero-copy > p:not(.hero-intro) { font-size: 13px; }
  .hero-copy .text-link { margin-top: 18px; }
  .preview-note { margin-top: 27px; padding-bottom: 3px; }
  .preview-note p { font-size: 11px; }
  .release-label { font-size: 10px; }
  .diagram-heading h2 { font-size: 22px; max-width: 24ch; }
  .diagram-heading > p { font-size: 11px; }
  .runtime-board { border-radius: 12px; }
  .board-toolbar { padding: 15px 17px; flex-wrap: wrap; gap: 9px; }
  .flow-legend { gap: 17px; font-size: 9px; }
  .flow-legend i { width: 18px; }
  .runtime-map { padding: 20px 13px; }
  .app-region { padding-left: 12px; padding-right: 12px; }
  .provider-region { padding-left: 11px; padding-right: 11px; }
  .stage { column-gap: 17px; min-height: 101px; }
  .stage-flutter { min-height: 87px; }
  .stage-name { font-size: 13px; }
  .stage-meta { font-size: 10px; }
  .provider-heading { padding-left: 73px; min-height: 90px; }
  .process-heading h3 { font-size: 11px; }
  .process-heading p { font-size: 10px; }
  .stage-ne::before { top: -155px; }
  .transport-dock { padding: 18px 17px; }
  .transport-options { gap: 6px; }
  .transport-option { min-height: 44px; padding: 8px 10px; font-size: 11px; }
  .socket-value code { font-size: 9px; }
  .socket-value > span { font-size: 10px; }
  .flow-detail { grid-template-columns: 1fr; padding: 20px 18px; }
  .detail-position { font-size: 10px; }
  .detail-copy { min-height: 154px; }
  .detail-copy h3 { font-size: 15px; }
  .detail-copy p { font-size: 12px; }
  .step-button { justify-self: start; padding-left: 0; font-size: 12px; min-height: 44px; }
  .diagram-footnote { font-size: 10px; }
  .reference-section { padding-top: 58px; padding-bottom: 51px; }
  .section-context { font-size: 11px; margin-bottom: 14px; }
  .section-copy h2, .configuration-heading h2 { font-size: 33px; }
  .section-copy > p:not(.section-context) { font-size: 13px; margin-top: 19px; }
  .code-header { padding: 11px 14px; gap: 10px; font-size: 10px; }
  .code-tools { gap: 8px; }
  pre { padding: 21px 15px; font-size: 10px; }
  .config-panel pre { font-size: 10px; padding: 21px 15px; }
  .contract-rules > div { grid-template-columns: 87px 1fr; gap: 12px; font-size: 11px; padding: 9px 0; }
  .config-notes > div { display: block; }
  .config-notes dt { font-size: 13px; }
  .config-notes dd { margin-top: 7px; font-size: 12px; }
  .singbox-scope { grid-template-columns: 1fr; gap: 20px; }
  .singbox-scope > div > p { font-size: 11px; }
  .registrations li { font-size: 10px; }
  .integration-section { padding: 43px 0 51px; }
  .ownership-list > div { grid-template-columns: 1fr; gap: 8px; padding: 21px 0; }
  .ownership-list dd { font-size: 12px; }
  .primary-link { font-size: 12px; }
  .project-note > p { font-size: 11px; }
  .site-footer { grid-template-columns: 1fr; padding: 29px 0 31px; gap: 21px; }
  .footer-nav { grid-column: auto; gap: 19px; }
  .footer-nav a { padding: 4px 0; }
  .footer-project > p, .footer-license > p { max-width: 50ch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
  .stage-port, .transport-option { border-color: ButtonText; }
  .stage[aria-pressed="true"] .stage-port, .transport-option:has(input:checked) { outline: 2px solid Highlight; }
  .status-square { background: CanvasText; }
  .stage::before, .flow-legend i { border-color: CanvasText; }
}
