:root {
  color-scheme: dark;
  --ink: #eaf8f5;
  --muted: #b0c5c4;
  --accent: #83eed4;
  --line: #5d908a4a;
  --paper: #091417;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --wrap: min(1300px, calc(100% - 112px));
  --nav-height: 68px;
  scroll-padding-top: var(--nav-height);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
main { position: relative; isolation: isolate; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
button:disabled { cursor: default; }
img { display: block; max-width: 100%; height: auto; }
svg { width: 1.3em; height: 1.3em; vertical-align: middle; }
h1, h2, h3, p, figure { margin: 0; }
p { color: var(--muted); line-height: 1.7; }
code, pre { font-family: var(--font-mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: fixed; top: 8px; left: 10px; z-index: 50; transform: translateY(-140%); padding: 12px; background: #204f48; }
.skip:focus { transform: none; }

.topbar { position: sticky; top: 0; z-index: 10; background: #091417e8; backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.topbar::after { content: ""; position: absolute; bottom: -1px; left: 0; width: 100%; height: 1px; transform-origin: left; transform: scaleX(var(--reading, 0)); background: #7ad5be; opacity: .65; }
.navigation { min-height: calc(var(--nav-height) - 1px); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.navigation nav {
  display: flex; align-items: center; min-width: 0; margin-inline-start: auto;
  gap: clamp(10px, 1.75vw, 28px); color: #b6cac8; font-size: .9rem;
  overflow-x: auto; scrollbar-width: none;
}
.navigation nav a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.navigation nav a:focus-visible { outline-offset: -2px; }
.navigation [aria-current], .navigation a:hover, .text-link:hover { color: var(--accent); }
.wordmark { display: inline-flex; gap: 8px; align-items: center; font-size: 1.24rem; font-weight: 730; letter-spacing: -.045em; }
.wordmark img { width: 25px; }
.product-menu a { display: block; padding: 8px; }
.text-link { color: var(--accent); display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 5px; }
.text-link:hover { text-decoration: underline; }

.page-atmosphere { --color: 30 113 106; --drift: 0; position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: #091417; }
.ambient-light { position: absolute; inset: -12%; background: radial-gradient(ellipse at var(--light-x, 78%) var(--light-y, 39%), rgb(var(--color) / .55), rgb(var(--color) / .13) 39%, transparent 70%); transform: translate3d(calc(var(--drift) * -1.8%), calc(var(--drift) * 2.3%), 0); }
.page-signal { position: absolute; inset: 0; width: 100%; height: 100%; color: #a0f2df; transform: translate3d(calc(var(--drift) * -16px), calc(var(--drift) * -25px), 0); }
.page-signal path { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .15; }
.page-signal path:nth-child(2) { opacity: .08; }
.page-signal path:nth-child(3) { opacity: .045; }

.screen { --arrival: 1; --stage-height: min(760px, calc(100svh - var(--nav-height) - 96px)); position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 26px 70px; }
.hero { min-height: calc(100svh - var(--nav-height)); }
.screen-layout { display: grid; grid-template-columns: minmax(280px, .70fr) minmax(0, 1.3fr); align-items: center; gap: clamp(18px, 4.3vw, 66px); }
.screen-copy { position: relative; z-index: 2; }
.kicker { color: var(--accent); font-size: .86rem; font-weight: 680; letter-spacing: .13em; margin-bottom: 19px; }
.screen h1, .screen h2 { font-size: clamp(4rem, 5.15vw, 6.1rem); line-height: 1.09; letter-spacing: -.086em; font-weight: 750; }
.hero h1 { font-size: clamp(4.25rem, 6.5vw, 6.5rem); white-space: nowrap; }
.screen :is(h1,h2) span { color: var(--accent); }
.screen-lede { max-width: 33ch; margin-top: 24px; font-size: 1.1rem; }
.screen-art { position: relative; min-width: 0; }
.air-stage { height: max(405px, var(--stage-height)); }
.network-stage { min-height: clamp(410px, 45vw, 570px); }
#duo-stage { position: absolute; inset: 0; }
.mobile-network { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .screen-copy {
    opacity: calc((.42 + .58 * var(--arrival)) * (1 - .61 * var(--exit, 0)));
    transform: translate3d(0, calc((1 - var(--arrival)) * 57px - var(--exit, 0) * 51px), 0);
  }
  .screen-art {
    transform: translate3d(0, calc((1 - var(--arrival)) * -125px + var(--exit, 0) * 110px), 0)
      scale(calc(.85 + .15 * var(--arrival) - var(--exit, 0) * .12));
    transform-origin: center;
    opacity: calc(var(--arrival) * (1 - var(--exit, 0) * .48));
  }
  .screen:focus-within .screen-copy, .screen:focus-within .screen-art { opacity: 1; }
  .duo-slot .model-camera {
    transform: rotateX(calc(3deg + (1 - var(--arrival)) * 11deg))
      rotateY(calc(-2deg + (1 - var(--arrival)) * 19deg + var(--exit, 0) * 9deg)) rotateZ(calc(-2deg - (1 - var(--arrival)) * 5deg));
  }
  .site-lab, .recorder-lab { transform-origin: center bottom; }
  .resource-lab, .api-lab { transform-origin: center top; }
}

.section-anchor { position: absolute; top: 0; }

.network-screen { --accent: #86ddf3; }
.site-screen { --accent: #9befbf; }
.site-screen .screen-layout { grid-template-columns: minmax(0, 1.18fr) minmax(265px, .82fr); }
.site-screen .screen-copy { grid-column: 2; grid-row: 1; }
.site-screen .screen-art { grid-column: 1; grid-row: 1; }
.recorder-screen { --accent: #f2c58f; }

.lab-controls { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.lab-controls button { min-height: 44px; border-radius: 7px; border: 1px solid #51736d; background: #101f22; color: #d2e0e1; padding: 7px 12px; font-size: .83rem; }
.lab-controls button:hover { border-color: var(--accent); }
.lab-controls button[aria-pressed="true"], .recorder-controls button:first-child { background: var(--accent); border-color: var(--accent); color: #102020; font-weight: 680; }
.lab-controls button:disabled { opacity: .45; }
.waterfall-live, .request-inspection { padding: 14px; height: 100%; background: #102126; color: #eaf6f7; }
.waterfall-live header { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .9rem; font-weight: 650; min-height: 27px; }
.waterfall-live header code { color: #95bec8; font-size: .67rem; }
.waterfall-axis { display: flex; justify-content: space-between; padding-block: 12px 8px; margin-bottom: 2px; border-bottom: 1px solid #355158; font: .68rem var(--font-mono); color: #b6d0d6; }
.waterfall-rows button { width: 100%; padding: 5px 6px; display: grid; align-items: center; grid-template-columns: 1.12fr 1fr; min-height: 39px; gap: 6px; border: 0; border-bottom: 1px solid #36535c; background: transparent; text-align: left; }
.waterfall-rows button:first-child { margin-top: 3px; }
.waterfall-rows button[aria-pressed="true"] { background: #244b57; box-shadow: inset 2px 0 #9ee7f4; }
.waterfall-rows button:hover, .site-bars button:hover { background: #28505b; }
.waterfall-rows button:focus-visible { outline-offset: -2px; }
.waterfall-rows button > span:first-child { min-width: 0; display: grid; gap: 3px; }
.waterfall-rows button > span:first-child small { color: #abdbe4; font: .6rem var(--font-mono); }
.waterfall-rows button strong { overflow-wrap: anywhere; font: 650 .68rem var(--font-mono); }
.waterfall-time { display: block; background: repeating-linear-gradient(90deg, #80b1b52b 0 1px, transparent 1px 50%); min-width: 0; }
.waterfall-time i { display: block; position: relative; overflow: hidden; margin-left: var(--start); width: var(--length); height: 4px; background: #37565f; border-radius: 2px; }
.waterfall-time i::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #5c9da9 var(--ttfb), #97e4f1 var(--ttfb)); transform: scaleX(var(--visible-time, 1)); transform-origin: left; }
.waterfall-overview { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px; margin-top: 8px; color: #b5d5de; font: .62rem var(--font-mono); }
.overview-track { position: relative; height: 16px; width: 100%; background: repeating-linear-gradient(90deg, #9dc8d331 0 1px, transparent 1px 25%); border-bottom: 1px solid #4e747c; }
.overview-track i { position: absolute; left: var(--start); width: var(--length); top: calc(2px + 3px * var(--lane)); height: 1px; background: #80cada; }
.overview-playhead { position: absolute; inset: 0 auto 0 var(--cursor-time, 100%); width: 1px; background: #deffff; box-shadow: 0 0 6px #b9fff7; }
.waterfall-footer { display: flex; gap: 8px; align-items: center; min-height: 29px; color: #bbd2d7; font: .64rem var(--font-mono); }
.waterfall-footer button { margin-left: auto; padding: 4px 7px; min-height: 28px; background: #203a40; border: 1px solid #5a8791; border-radius: 5px; }
.waterfall-footer button:hover { border-color: var(--accent); }
.waterfall-rows [data-state="queued"] .waterfall-time small { color: #9eb4bb; }
.network-clock { display: grid; grid-template-columns: 1fr auto; margin-top: 23px; align-items: center; max-width: 330px; gap: 8px; color: #bbdce3; font-size: .82rem; }
.network-clock output { color: var(--accent); font-family: var(--font-mono); }
.network-clock input { grid-column: 1 / -1; width: 100%; margin: 0; min-height: 33px; cursor: ew-resize; accent-color: var(--accent); }
.inspection-await { padding: 20px 0; color: #a2c2cf; border-top: 1px solid #35515b; font-size: .8rem; }
.waterfall-time small { display: block; font: .59rem var(--font-mono); padding-top: 3px; }
.request-inspection { background: #0d1d23; overflow-wrap: anywhere; }
.inspection-label { font-size: .76rem; color: #b6d1d5; }
.inspection-path { display: block; margin-block: 6px 8px; font: 650 .92rem var(--font-mono); }
.inspection-meta { display: flex; flex-wrap: wrap; gap: 5px 8px; color: #a5d7c6; font: .72rem var(--font-mono); }
.inspection-tabs { margin-block: 13px 10px; flex-wrap: nowrap; }
.inspection-tabs button { flex: 1; min-width: 0; min-height: 40px; padding-inline: 5px; font-size: .74rem; }
.mime-label { font: .68rem/1.5 var(--font-mono); margin-bottom: 6px; color: #a2c2cf; }
.response-code { font: .72rem/1.53 var(--font-mono); color: #d2f2f6; background: #08151a; border: 1px solid #35515b; padding: 10px; max-height: 220px; overflow: auto; }
.response-image { width: 100%; border-radius: 5px; }
.inspection-fields { margin-block: 5px 9px; font-size: .75rem; }
.inspection-fields div { display: grid; gap: 4px; padding-block: 6px; border-bottom: 1px solid #395058; }
.inspection-fields dt { color: #acd1da; }
.inspection-fields dd { margin: 0; font-family: var(--font-mono); }
.timing-fields div { grid-template-columns: 1fr auto; min-height: 35px; }

.site-instrument, .recorder-instrument { background: #0d1d20; border: 1px solid #558178; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px #02080a6e; }
.site-instrument header { display: flex; justify-content: space-between; gap: 8px; padding: 15px 20px; color: #d1ece1; border-bottom: 1px solid #31574e; }
.site-instrument header svg { color: #a2eac8; }
.site-instrument header code { color: #b1cabe; font-size: .8rem; }
.instrument-metrics { display: grid; grid-template-columns: 1fr 1fr 1fr; border-bottom: 1px solid #31574e; }
.instrument-metrics > div { padding: 21px 20px; }
.instrument-metrics > div + div { border-left: 1px solid #31574e; }
.instrument-metrics span { display: block; color: #a8c3bc; font-size: .8rem; margin-bottom: 6px; }
.instrument-metrics strong { font: 620 clamp(1.45rem, 3vw, 2.65rem) var(--font-mono); letter-spacing: -.07em; color: var(--accent); white-space: nowrap; }
.instrument-metrics strong small { font-size: .7rem; letter-spacing: normal; }
.site-breakdown { display: grid; grid-template-columns: 1fr 1fr; min-height: 250px; }
.site-bars { display: flex; flex-direction: column; padding: 13px; }
.site-bars button { display: grid; grid-template-columns: 45px minmax(10px, 1fr) 15px; align-items: center; gap: 8px; color: #d5e7e1; background: transparent; border: 0; border-radius: 5px; min-height: 41px; padding: 4px 9px; text-align: left; font-size: .78rem; }
.site-bars button[aria-pressed="true"] { background: #24473e; }
.site-bar { height: 5px; background: #496658; border-radius: 3px; }
.site-bar i { display: block; transform-origin: left; transform: scaleX(calc(var(--portion) * var(--arrival))); height: 100%; border-radius: 3px; background: #8fe7b1; }
.site-selection { padding: 14px 15px; border-left: 1px solid #31574e; background: #101f22; }
.site-selection p { font-size: .8rem; color: #c7e1d8; }
.site-selection ul { margin: 10px 0 0; padding: 0; list-style: none; }
.site-selection li { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 8px 0; border-block-end: 1px solid #31574e; font-size: .73rem; }
.site-selection li code { overflow-wrap: anywhere; }
.site-selection li span { color: #b1cabd; white-space: nowrap; }

.recorder-instrument { display: grid; grid-template-columns: 1fr 1.12fr; min-height: 365px; border-color: #926d53; }
.recorder-instrument > * { min-width: 0; }
.recorder-instrument .screen-report { padding: 16px 18px; background: #1e211e; }
.recorder-instrument .screen-section-name { color: #f0c69c; border-color: #6c5140; }
.recorder-instrument .record-index { color: #eec391; }
.recorder-instrument .recorded-list li { border-color: #6c5140; padding-inline: 5px; }
.recorder-instrument .recorded-list .current { background: #443b2c; }
.recorder-instrument .recorded-list button { width: 100%; min-height: 44px; display: grid; grid-template-columns: 21px minmax(0, 1fr) auto; align-items: center; gap: 7px; text-align: left; border: 0; background: none; padding: 4px 0; }
.recorder-instrument .recorded-list button:hover { color: #ffe2bf; }
.recorder-instrument .recorded-list button:focus-visible { outline-offset: -1px; }
.recorder-instrument .recorded-list li { display: block; }
.recorder-instrument .playback-page { background: #e6e3d9; }
.recorder-instrument .playback-window { height: 300px; }
.recorder-instrument .playback-scroll { padding: 15px; }
.recorder-instrument .playback-scroll img { max-height: 155px; }
@media (prefers-reduced-motion: no-preference) {
  .recorder-instrument .playback-page:not(.show-cursor) .playback-scroll { transition: transform .45s cubic-bezier(.2,.7,.28,1); }
}
.recorder-controls button { border-color: #82644a; }

.section-intro h2 { font-size: clamp(2.25rem, 4.6vw, 4.55rem); line-height: 1.12; letter-spacing: -.07em; }
.section-intro > p:not(.kicker) { margin-top: 18px; max-width: 36ch; }
.sample-page { background: #eae8e0; color: #181c19; padding: 16px; display: grid; align-content: start; gap: 16px; }
.sample-brand { font-family: Georgia, serif; font-weight: bold; letter-spacing: .13em; border-bottom: 1px solid #9a9a91; padding-bottom: 8px; }
.sample-brand span, .sample-content small { font-size: .67rem; color: #50564e; letter-spacing: .09em; }
.sample-content { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; }
.sample-content h3 { font: 600 clamp(1.28rem, 2.7vw, 2.4rem)/1 Georgia, serif; margin-top: 6px; }
.sample-content img { width: 100%; min-height: 94px; object-fit: cover; }
.sample-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .8rem; }
.sample-actions span { background: #303a33; color: white; border: 0; padding: 9px 12px; border-radius: 5px; }
.mini-dock { padding: 11px 16px; border-top: 1px solid #40506a; }
.mini-address { display: flex; gap: 5px; align-items: center; padding: 7px 12px; background: #202e42; color: #dce8fa; border-radius: 999px; font: .76rem monospace; }
.mini-address span { margin-left: auto; }
.mini-toolbar { display: flex; align-items: center; justify-content: space-around; margin-top: 6px; color: #c2d3ec; font-size: 1.1rem; }
.wave-button { display: grid; place-items: center; width: 54px; height: 44px; background: #294467; color: #bbd5ff; border: 1px solid #6887b5; border-radius: 13px; }
.wave-button svg { width: 23px; height: 23px; }

pre { margin: 6px 0 0; border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }

.final { display: grid; gap: 14px; justify-items: start; border-block: 1px solid var(--line); padding-block: 45px; }
.final h2 { font-size: clamp(2.1rem, 5vw, 4rem); }
.footer { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; justify-content: space-between; padding-block: 25px; color: var(--muted); font-size: .9rem; }
.footer .wordmark { color: var(--ink); }

@media (max-width: 1120px) {
  :root { --wrap: calc(100% - 68px); }
  .screen-layout { gap: 26px; }
  .screen h1, .screen h2 { font-size: clamp(3.35rem, 5.9vw, 4.65rem); }
}
@media (max-width: 900px) {
  .network-stage { min-height: 0; }
  .network-stage #duo-stage { position: relative; height: clamp(290px, 45vw, 415px); }
  .mobile-network { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #45636a; border: 1px solid #45636a; border-radius: 14px; overflow: hidden; }
  .network-stage #duo-stage .waterfall-live, .network-stage #duo-stage .request-inspection { padding: 7px 9px; }
  .network-stage #duo-stage .waterfall-rows button { min-height: 30px; padding: 4px; }
}
@media (max-width: 740px) {
  :root { --wrap: calc(100% - 38px); --nav-height: 92px; }
  .navigation { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 7px; padding-block: 7px 1px; }
  .navigation nav { grid-column: 1 / -1; grid-row: 2; justify-content: start; margin-inline-start: 0; gap: clamp(9px, 2.7vw, 17px); }
  .navigation nav a { font-size: .77rem; }
  .screen { min-height: 100svh; padding-block: 42px 67px; }
  .hero { min-height: calc(100svh - var(--nav-height)); padding-block: 30px 60px; }
  .screen-layout, .site-screen .screen-layout { grid-template-columns: 1fr; gap: 26px; }
  .site-screen :is(.screen-copy,.screen-art) { grid-row: auto; grid-column: auto; }
  .screen h1, .screen h2 { font-size: clamp(3.05rem, 11.5vw, 4.7rem); }
  .screen h1 br, .screen h2 br { display: none; }
  .screen h1 { white-space: normal; }
  .screen h1 span, .screen h2 span { display: block; }
  .kicker { margin-bottom: 12px; }
  .screen-lede { font-size: 1rem; margin-top: 16px; max-width: 34ch; }
  .air-stage { height: clamp(320px, 90vw, 475px); }
  .network-stage #duo-stage { height: clamp(215px, 67vw, 380px); margin-bottom: 18px; }
  #network-controls button { padding-inline: 8px; font-size: .77rem; }
  .screen-art { transform: translateY(calc((1 - var(--arrival)) * -22px)); }
  .screen-copy { transform: translateY(calc((1 - var(--arrival)) * 12px)); }
  .footer .wordmark { flex-basis: 100%; }
}
@media (max-width: 430px) {
  .mobile-network, .site-breakdown { grid-template-columns: 1fr; }
  .site-selection { border-left: 0; border-top: 1px solid #31574e; }
  .instrument-metrics > div { padding-inline: 11px; }
  .recorder-instrument { grid-template-columns: 1fr; }
  .recorder-instrument .playback-window { height: 224px; }
  .network-stage #duo-stage .waterfall-rows button { min-height: 24px; }
  .network-stage #duo-stage :is(.waterfall-live header, .inspection-path) { font-size: .61rem; }
  .network-stage #duo-stage .waterfall-live header code { display: none; }
  .network-stage #duo-stage :is(.waterfall-axis, .waterfall-time small, .waterfall-rows button strong, .inspection-meta, .mime-label) { font-size: .51rem; }
  .network-stage #duo-stage .inspection-tabs { margin-block: 7px; gap: 3px; }
  .network-stage #duo-stage .inspection-tabs button { min-height: 24px; font-size: .53rem; }
  .network-stage #duo-stage .response-code { font-size: .53rem; padding: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-bar i { transform: scaleX(var(--portion)); }
}

@media (prefers-reduced-motion: reduce) {
  .screen-art, .screen .air-stage, .screen-copy { transform: none; opacity: 1; }
}

/* Give the instruments the usable width, with controls beside or above them. */
.hero .screen-layout { grid-template-columns: minmax(245px, .63fr) minmax(0, 1.37fr); }
.network-screen .screen-layout { grid-template-columns: minmax(210px, min(21vw, 270px)) minmax(0, 1fr); gap: clamp(18px, 3vw, 47px); }
.network-stage { min-height: clamp(410px, 49vw, 675px); }
.network-screen h2, .site-screen h2, .recorder-screen h2 { font-size: clamp(2.15rem, 4.15vw, 4.6rem); letter-spacing: -.06em; }
.site-screen .screen-layout, .recorder-screen .screen-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.site-screen .screen-copy, .site-screen .screen-art { grid-column: auto; grid-row: auto; }
.site-screen .screen-copy, .recorder-screen .screen-copy { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.site-screen .lab-controls, .recorder-screen .lab-controls { margin-top: 0; }
.sort-control { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .77rem; }
.network-screen .sort-control { display: flex; margin-top: 15px; }
.sort-control select { color: var(--ink); background: #132529; border: 1px solid #4c6a68; border-radius: 6px; min-height: 38px; padding: 4px 7px; }
.instrument-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.site-selection li { display: grid; grid-template-columns: minmax(0, 1fr) 62px 65px; }
.site-selection li > :not(:first-child) { text-align: right; }
.site-bars button { grid-template-columns: 74px minmax(10px, 1fr) 19px; }
.site-hosts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border-top: 1px solid #376052; background: #376052; }
.site-hosts button { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; text-align: left; padding: 12px 16px; min-height: 49px; background: #102323; color: #c8e3d6; border: 0; font-size: .78rem; }
.site-hosts button code { overflow-wrap: anywhere; }
.site-hosts button[aria-pressed="true"], .site-hosts button:hover { background: #22483e; }
.site-hosts button:focus-visible { outline-offset: -2px; }
.waterfall-summary { display: flex; flex-wrap: wrap; gap: 5px 11px; font: .67rem var(--font-mono); color: #a9d2d8; margin-bottom: 5px; }
.response-headers { margin: 6px 0 9px; color: #a2c2cf; font: .68rem var(--font-mono); }
.response-headers p { margin-bottom: 3px; }
.recorder-instrument { grid-template-columns: .8fr 1.2fr; min-height: 450px; }
.recorder-instrument .playback-window { height: 404px; }
.recorder-instrument .playback-scroll img { max-height: 235px; }
.record-seek { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 9px; color: #c6b09c; font-size: .73rem; margin-top: 18px; }
.record-seek input { width: 100%; min-height: 32px; accent-color: var(--accent); }
.record-readout { display: flex; justify-content: space-between; gap: 7px; align-items: center; margin-top: 7px; }
.record-readout output { font: .71rem var(--font-mono); color: #f2c58f; }
.footer { padding-block: 24px; }

@media (max-width: 990px) {
  .network-stage { min-height: 0; }
}
@media (max-width: 740px) {
  .hero .screen-layout, .network-screen .screen-layout { grid-template-columns: 1fr; }
  .screen:focus-within .screen-art { opacity: 1; }
  .network-screen .screen-copy { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; }
  .network-screen .lab-controls, .network-clock { grid-column: 1 / -1; margin-top: 0; }
  .network-screen .sort-control { grid-column: 2; grid-row: 1; margin-top: 0; }
  .site-hosts { grid-template-columns: 1fr; }
  .site-hosts button { font-size: .72rem; }
  .site-selection li { grid-template-columns: minmax(0,1fr) 49px 51px; }
  .recorder-instrument .playback-scroll img { max-height: 185px; }
  .recorder-instrument .playback-window { height: 300px; }
  .mobile-network .waterfall-footer button { min-height: 40px; }
}
@media (max-width: 430px) {
  .instrument-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .instrument-metrics > div:nth-child(n + 3) { border-top: 1px solid #31574e; }
  .recorder-instrument { grid-template-columns: 1fr; }
}
.waterfall-legend, .response-timing { display: flex; gap: 9px; color: #a5c4cb; font: .67rem var(--font-mono); }
.waterfall-legend { margin-top: 6px; }
.waterfall-legend span::before { content: ""; display: inline-block; width: 12px; height: 3px; margin-right: 5px; vertical-align: middle; background: #5c9da9; }
.waterfall-legend span:nth-child(2)::before { background: #97e4f1; }
.response-timing { justify-content: space-between; margin-top: 13px; padding-top: 9px; border-top: 1px solid #36535c; }
.response-timing b { color: #b9edf3; }
.site-milestones { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; border-top: 1px solid #376052; padding: 12px 16px; color: #bbd8c9; font: .71rem var(--font-mono); }
.site-time-track { position: relative; height: 26px; }
.site-time-track i { position: absolute; left: 0; right: 0; bottom: 5px; height: 1px; background: #6c9e86; }
.site-time-track b { position: absolute; left: var(--point); padding-bottom: 10px; font-size: .65rem; white-space: nowrap; font-weight: 500; color: #bfe5d1; }
.site-time-track b::after { content: ""; position: absolute; left: 0; bottom: 0; height: 8px; width: 1px; background: #7be3b3; }
.site-time-dom { transform: translateX(-100%); padding-inline-end: 4px; }
.site-time-track .site-time-dom::after { left: auto; right: 0; }
.site-time-load { padding-inline-start: 4px; }
@media (max-width: 740px) {
  .site-milestones { padding-inline: 10px; gap: 7px; font-size: .61rem; }
  .site-time-track b { font-size: .59rem; }
}

.source-code { padding: 10px 0; overflow: auto; max-height: 260px; white-space: pre; }
.source-line { display: inline-block; min-width: 100%; padding-right: 12px; }
.source-line:nth-child(even) { background: #a3bbee08; }
.line-number { display: inline-block; width: 3em; margin-right: 1em; padding-right: .55em; text-align: right; color: #91afb9; border-right: 1px solid #31545f; user-select: none; }
.syntax-keyword { color: #baaef6; }
.syntax-string { color: #a4e3b8; }
.syntax-comment { color: #9bb7bc; }

.structure-screen { --accent: #b2d6ff; }
.api-screen { --accent: #a5efd3; }
.structure-screen .screen-layout, .api-screen .screen-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.structure-screen h2, .api-screen h2 { font-size: clamp(2.15rem, 4.15vw, 4.6rem); letter-spacing: -.06em; }
.trace-instrument {
  min-width: 0; overflow: hidden; border: 1px solid #5c7e88; border-radius: 18px;
  background: #0e2026; box-shadow: 0 30px 80px #02080a70;
}
.trace-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 21px; border-bottom: 1px solid #31505c; color: var(--accent); font-weight: 640; }
.trace-title code { color: #a9c5cb; font-size: .75rem; font-weight: 400; }
.trace-grid { display: grid; grid-template-columns: minmax(250px, .78fr) minmax(0, 1.22fr); }
.trace-tree { padding: 12px 14px; max-height: 522px; overflow: auto; background: #132831; }
.trace-tree details { min-width: 0; }
.trace-tree details details { margin: 2px 0 8px 13px; border-left: 1px solid #395561; padding-left: 10px; }
.trace-tree summary { position: relative; min-height: 38px; padding: 10px 13px; cursor: pointer; color: #d5e9fb; font-size: .86rem; }
.trace-tree summary::marker { color: var(--accent); }
.trace-tree summary small { float: right; color: #a3c0cd; }
.trace-tree ul { padding-left: 10px; margin: 0; list-style: none; }
.trace-tree button { display: flex; text-align: left; justify-content: space-between; gap: 12px; width: 100%; min-height: 41px; padding: 9px 11px; background: none; border: 0; border-radius: 5px; }
.trace-tree button:is(:hover, [aria-pressed="true"]) { background: #254758; color: #e2f2ff; }
.trace-tree button[aria-pressed="true"] { box-shadow: inset 2px 0 var(--accent); }
.trace-tree button span { font: .74rem var(--font-mono); color: #a6c5d0; }
.trace-detail, .api-request, .api-result { padding: clamp(16px, 3.5vw, 48px); min-width: 0; }
.trace-path { display: flex; flex-wrap: wrap; gap: 8px; color: #a9c7ce; font-size: .81rem; }
.trace-path span { color: #81a1a9; }
.trace-detail h3 { font: 620 clamp(1.75rem, 4vw, 3.5rem) / 1.15 var(--font-mono); margin-block: 12px 29px; }
.trace-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-block: 1px solid #355560; padding-block: 18px; gap: 10px; }
.trace-metrics dt { color: #a9c5cb; font-size: .75rem; }
.trace-metrics dd { margin: 5px 0 0; font: .92rem var(--font-mono); white-space: nowrap; }
.trace-timing { display: flex; flex-wrap: wrap; gap: 5px 21px; margin-block: 14px; font: .75rem var(--font-mono); color: #adc7cd; }
.trace-timing b { color: #d4eaff; font-weight: 500; }
.trace-detail .text-link { gap: 8px; font-size: .88rem; }

.recorder-instrument { border-radius: 18px 18px 0 0; border-bottom: 0; }
.record-trace {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #1a201c; border: 1px solid #926d53; border-radius: 0 0 18px 18px;
}
.record-trace li { min-width: 0; min-height: 54px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; padding: 9px 16px; font-size: .76rem; color: #b9a68f; }
.record-trace li + li { border-left: 1px solid #624c3d; }
.record-trace li > :not(time) { visibility: hidden; }
.record-trace li.revealed { box-shadow: inset 0 2px #e4a972; color: #ffe0b9; }
.record-trace li.revealed > * { visibility: visible; }
.record-http { text-underline-offset: 3px; text-decoration: underline; }

.api-screen .trace-instrument { border-color: #538375; }
.api-grid { min-height: 360px; }
.api-request { position: relative; background: #142826; }
.api-request h3, .api-result h3 { font-size: 1rem; }
.api-request label { display: flex; align-items: center; gap: 6px; min-height: 44px; color: #b8d3cf; font-size: .81rem; }
.api-request input { accent-color: var(--accent); }
.api-result header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 5px 12px; }
.api-result output { color: var(--accent); font: .78rem var(--font-mono); }
.api-tabs { margin-block: 13px; }
.api-tabs button { min-height: 38px; }
.api-content > p { padding-block: 13px; color: #aac5c6; font-size: .84rem; }
.api-content pre { max-height: 220px; overflow: auto; }
.api-checks { list-style: none; padding: 0; }
.api-checks li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #35564e; font-size: .82rem; }
.api-checks b { color: var(--accent); padding-left: 8px; }
@media (max-width: 740px) {
  .trace-grid { grid-template-columns: minmax(0, 1fr); }
  .trace-tree { max-height: 285px; border-bottom: 1px solid #31505c; }
  .trace-detail h3 { margin-block: 8px 14px; }
  .api-grid { min-height: 0; }
  .record-trace { grid-template-columns: minmax(0, 1fr); }
  .record-trace li { min-height: 40px; }
  .record-trace li + li { border-left: 0; border-top: 1px solid #624c3d; }
}

.language-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: #d6eeea;
}
.language-menu svg {
  position: absolute;
  inset-inline-start: 9px;
  width: 15px;
  height: 15px;
  pointer-events: none;
  color: #93d4c7;
}
.language-menu::after {
  content: "";
  position: absolute;
  inset-inline-end: 10px;
  top: 49%;
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-62%) rotate(45deg);
  pointer-events: none;
}
.language-menu select {
  min-height: 36px;
  max-width: min(37vw, 191px);
  appearance: none;
  border: 1px solid #51867c88;
  border-radius: 7px;
  padding: 5px 23px 5px 31px;
  color: inherit;
  background: #132929;
  font: 560 .79rem system-ui, sans-serif;
  text-overflow: ellipsis;
  cursor: pointer;
}
.language-menu select:hover { border-color: #92cdbf; }
@media (min-width: 741px) and (max-width: 940px) {
  .navigation { gap: 11px; }
  .navigation nav { gap: 13px; font-size: .81rem; }
}
@media (max-width: 740px) {
  .language-menu { grid-column: 2; grid-row: 1; justify-self: end; }
  .language-menu select { min-height: 38px; }
}
