@layer reset, base, layout, components, documents, responsive;
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p, figure, dl, dd { margin: 0; }
  img { display: block; max-width: 100%; }
  button, input { font: inherit; }
  button, a { -webkit-tap-highlight-color: transparent; }
  [hidden] { display: none !important; }
}
@layer base {
  @font-face { font-family: "Noto Sans"; src: url("fonts/noto.woff2") format("woff2"); font-weight: 400; font-display: swap; }
  @font-face { font-family: "Noto Sans"; src: url("fonts/noto-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
  @font-face { font-family: "Noto Sans"; src: url("fonts/noto-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
  @font-face { font-family: "MesloLGS Nerd Font"; src: url("fonts/meslo.woff2") format("woff2"); font-weight: 400; font-display: swap; }
  @font-face { font-family: "Source Han Sans CN"; src: url("fonts/source-han.woff2") format("woff2"); font-weight: 400; font-display: swap; }
  :root { color-scheme: dark; --mono: var(--mono-family), "Source Han Sans CN", ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
  html { scroll-behavior: smooth; scroll-padding-top: 100px; }
  body { background: var(--bg); color: var(--text); font-family: var(--ui-family), "Source Han Sans CN", ui-sans-serif, system-ui, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
  ::selection { background: var(--selection); color: var(--selection-text); }
  a { color: inherit; text-decoration-color: #70797e; text-underline-offset: 4px; }
  a:hover { color: var(--blue); }
  button { color: inherit; cursor: pointer; }
  :focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; border-radius: 2px; }
  h1, h2, h3 { font-weight: 600; line-height: 1.1; letter-spacing: -0.045em; text-wrap: balance; }
  h2 { font-size: clamp(2rem, 3.9vw, 3.1rem); }
  h3 { font-size: 1.25rem; letter-spacing: -0.025em; }
  p { text-wrap: pretty; }
  .muted { color: var(--muted); }
  .accent { color: var(--blue); }
  .eyebrow { font: 11px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .skip { position: fixed; top: -100px; left: 20px; z-index: 20; padding: 12px 20px; background: var(--blue); color: var(--bg); }
  .skip:focus { top: 12px; }
  kbd { font: 11px var(--mono); display: inline-block; border: 1px solid #515b63; border-bottom-width: 2px; border-radius: 4px; padding: 3px 6px; color: #d8dce1; background: #20272c; white-space: nowrap; }
}
@layer layout {
  .wrap { width: min(1320px, calc(100% - 112px)); margin-inline: auto; }
  .site-header { border-bottom: 1px solid var(--line); }
  .header-inner { height: 91px; display: flex; align-items: center; gap: 52px; }
  .brand { display: inline-flex; align-items: baseline; font-weight: 650; font-size: 29px; line-height: 1; letter-spacing: -.09em; text-decoration: none; }
  .brand-plus { color: var(--blue); font-weight: 400; font-size: 36px; margin-left: 3px; line-height: .5; }
  .site-header nav { display: flex; gap: 28px; margin-left: auto; align-items: center; }
  .site-header nav a, .source-link { font-size: 13px; text-decoration: none; color: #b6babc; }
  .site-header nav a:hover, .site-header nav a[aria-current] { color: var(--text); }
  .site-header nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 9px; }
  .source-link { padding-left: 28px; border-left: 1px solid var(--line); }
  .source-link span { margin-left: 4px; color: var(--blue); }
  .hero { padding-block: 88px 78px; display: grid; grid-template-columns: minmax(260px, .65fr) minmax(0, 1.35fr); gap: 40px; align-items: center; }
  .hero h1 { font-size: clamp(48px, 4.6vw, 64px); line-height: 1.035; margin-block: 25px; letter-spacing: -.065em; }
  .hero-lede { max-width: 390px; color: #bfc3c5; font-size: 15px; line-height: 1.8; }
  .tiny-plus { color: var(--blue); font-size: 16px; margin-right: 6px; }
  .hero-footnote { font: 10px/1.6 var(--mono); color: #8c9498; margin-top: 28px; }
  .hero-visual { min-width: 0; margin-top: 8px; }
  .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; margin-top: 30px; }
  .button { display: inline-flex; gap: 30px; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; text-decoration: none; background: var(--accent); color: var(--accent-ink); padding: 13px 17px; border: 1px solid transparent; border-radius: 3px; }
  .button:hover { color: var(--accent-ink); background: var(--focus); }
  .text-link { display: inline-flex; align-items: center; gap: 15px; font-size: 13px; font-weight: 500; text-decoration: none; }
  .text-link span { color: var(--blue); }
  .intro-band { border-block: 1px solid var(--line); padding-block: 56px; display: grid; grid-template-columns: .5fr 1.15fr 1.35fr; gap: 40px; align-items: start; }
  .intro-band h2 { font-size: clamp(1.8rem, 2.7vw, 2.4rem); }
  .intro-prose { color: #bfc3c5; font-size: 14px; }
  .intro-prose p + p { margin-top: 16px; }
  .intro-prose a { color: var(--text); margin-top: 20px; }
  .workflow-section { padding-block: 78px 88px; }
  .section-top { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 36px; }
  .section-top h2 { margin-top: 13px; }
  .workflow-row { display: grid; grid-template-columns: 45px 1fr 190px 20px; align-items: center; gap: 25px; padding: 27px 2px; border-top: 1px solid var(--line); text-decoration: none; }
  .workflow-row:last-child { border-bottom: 1px solid var(--line); }
  .workflow-row p { color: var(--muted); margin-top: 8px; font-size: 13px; }
  .row-index, .row-tag { font: 11px var(--mono); color: #8f989d; }
  .workflow-row > span:last-child { color: var(--blue); }
  .workflow-row:hover { background: #171c20; }
  .build-section { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; padding-block: 86px; }
  .build-section h2 { margin-block: 16px 24px; }
  .build-section p:not(.eyebrow) { font-size: 14px; color: var(--muted); max-width: 390px; }
  .recipe-links { align-self: center; }
  .recipe-links a { position: relative; display: block; padding-block: 18px; padding-right: 30px; border-top: 1px solid var(--line); font-size: 16px; text-decoration: none; }
  .recipe-links a:last-child { border-bottom: 1px solid var(--line); }
  .recipe-links a > span:first-child { display: block; margin-bottom: 5px; font: 10px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
  .recipe-links a > span:last-child { position: absolute; right: 3px; top: 36px; color: var(--blue); }
  .site-footer { border-top: 1px solid var(--line); }
  .footer-inner { padding-block: 45px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 35px; font-size: 11px; color: var(--muted); }
  .footer-inner .brand { color: var(--text); font-size: 25px; margin-bottom: 17px; }
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 25px; align-content: start; }
  .footer-links a { text-decoration: none; }
  .footer-note { text-align: right; line-height: 1.9; }
}
@layer components {
  .workbench { min-width: 0; }
  .native-demo { min-width: 0; margin-block: 30px 42px; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
  .native-demo-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; border-bottom: 1px solid var(--line); }
  .native-demo-fallback { display: block; color: var(--blue); text-align: center; }
  .native-demo-fallback img { display: block; width: 100%; height: auto; margin-bottom: 9px; }
  .native-demo-caption { padding: clamp(17px, 3vw, 28px); }
  .native-demo-caption > .eyebrow { margin-bottom: 10px; color: var(--blue); }
  .native-demo-caption h3 { font-size: clamp(19px, 2.4vw, 26px); line-height: 1.3; }
  .native-demo-caption > p:not(.eyebrow) { margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.75; }
  .native-demo-caption .native-demo-fixture { font-size: 11px; }
  .native-demo-caption .native-demo-duration { font: 10px/1.8 var(--mono); color: var(--muted); }
  .native-demo-details { margin-top: 15px; border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); font-size: 11px; line-height: 1.75; }
  .native-demo-details summary { width: fit-content; color: var(--text); cursor: pointer; }
  .native-demo-details p { margin-top: 8px; overflow-wrap: anywhere; }
  .native-demo-details ul { margin-block: 8px; padding-left: 18px; }
  .native-demo-details li + li { margin-top: 5px; }
  .native-demo-details code { overflow-wrap: anywhere; }
  .native-demo-caption .native-demo-steps { margin-block: 16px 18px; font-size: 12px; line-height: 1.8; }
  .native-demo-caption .native-demo-steps li + li { margin-top: 5px; }
  .native-demo-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 9px; border-top: 1px solid var(--line); padding-top: 13px; font-size: 11px; }
  .native-demo-links > span:first-child { color: var(--text); }
  .native-demo-links .native-demo-provenance { color: var(--muted); }
  .native-demo-links a { text-decoration: underline; text-underline-offset: 3px; }
  .workbench-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 12px 0; font: 9px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: #9ba6ad; }
  .workbench-top > span:first-child { display: flex; align-items: center; gap: 7px; }
  .workbench-top i { width: 5px; height: 5px; background: var(--green); border-radius: 50%; }
  .workflow-scene { margin-block: 14px 24px; }
  .workflow-frame { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: #000; }
  .workflow-frame img, .prose .workflow-frame img { display: block; width: 100%; height: auto; aspect-ratio: auto; border: 0; border-radius: 0; }
  .scene-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 9px 18px; margin-top: 13px; font-size: 12px; }
  .scene-links a { color: var(--blue); text-underline-offset: 3px; }
  .scene-links > span { margin-left: auto; font: 10px var(--mono); color: var(--muted); }
  .capture-note { margin-top: 16px; font: 10px/1.8 var(--mono); color: var(--muted); }
  .capture-note a { color: var(--blue); text-underline-offset: 3px; }
  .scene-controls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 13px; }
  .scene-controls button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid var(--line); border-radius: 3px; padding: 9px 6px; background: transparent; font: 11px var(--mono); color: var(--muted); }
  .scene-controls button[aria-pressed="true"] { border-color: var(--focus); color: var(--selection-text); background: var(--selection); }
  .scene-controls button:hover { border-color: var(--blue); }
  .scene-caption { display: flex; align-items: start; justify-content: space-between; gap: 15px; padding-top: 17px; }
  .scene-name { font-size: 14px; color: var(--text); }
  .scene-caption p { font-size: 13px; color: var(--muted); line-height: 1.7; margin-top: 5px; max-width: 430px; }
  .key-hint { white-space: nowrap; font-size: 10px; color: #93a2ac; margin-top: 3px; }
  .illustration-note { font: 9px/1.7 var(--mono); color: #8a949b; margin-top: 14px; }
  .media-label { display: flex; justify-content: space-between; font: 9px var(--mono); color: var(--muted); letter-spacing: .05em; margin-bottom: 13px; }
  .architecture-map { margin-block: 32px; padding: 25px; border: 1px solid var(--line); background: #171c20; border-radius: 5px; }
  .map-workflows { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .map-workflows > div { padding: 19px; border: 1px solid #45515c; border-radius: 3px; }
  .map-workflows strong { display: block; margin-top: 10px; font-size: 16px; }
  .map-workflows p { font-size: 12px; color: var(--muted); margin-top: 6px; }
  .map-niri { margin-block: 19px; padding: 24px; text-align: center; border: 1px solid #849ebc; background: #24303a; }
  .map-niri p { margin-top: 16px; font-size: 13px; color: #bac9d7; }
  .map-services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .map-services a { text-align: center; padding: 15px 8px; border: 1px solid var(--line); font-size: 13px; text-decoration: none; }
  .map-services span { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; }
  .map-source { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 20px; display: flex; justify-content: space-between; gap: 12px; font: 10px var(--mono); color: var(--muted); }
  .snapshot { margin-block: 28px; padding: 25px; background: #1c252d; border: 1px solid #4a6278; border-radius: 4px; }
  .snapshot strong { display: block; font-size: 19px; margin-block: 10px; }
  .snapshot p { font-size: 13px; color: var(--muted); }
  .snapshot dl { margin-block: 20px; }
  .snapshot dl > div { display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid #3b4b59; padding-block: 10px; font-size: 12px; }
  .snapshot dt { color: var(--muted); }
  .snapshot > a { font-size: 12px; }
}
@layer documents {
  .document-layout { display: grid; grid-template-columns: 180px minmax(0, 1000px); gap: 32px; padding-block: 44px 90px; justify-content: center; }
  .on-this-page { align-self: start; position: sticky; top: 30px; font-size: 12px; }
  .aside-label { display: block; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: #8d989f; border-bottom: 1px solid var(--line); padding-bottom: 17px; margin-bottom: 15px; }
  .on-this-page > a { display: block; text-decoration: none; color: #a3adb3; margin-block: 13px; }
  .on-this-page > a:hover { color: var(--blue); }
  .on-this-page > p { margin-block: 20px; color: var(--muted); line-height: 2; }
  .prose { min-width: 0; }
  .prose > .eyebrow:first-child { margin-bottom: 18px; }
  .prose h1 { font-size: clamp(2.7rem, 4.7vw, 4.3rem); margin-bottom: 26px; max-width: 700px; }
  .prose h2 { font-size: 26px; letter-spacing: -.03em; margin: 48px 0 19px; padding-top: 25px; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
  .prose h3 { margin-block: 30px 15px; }
  .prose > p { color: #bfc5c8; font-size: 15px; line-height: 1.9; margin-block: 18px; max-width: 700px; }
  .prose > h1 + p { color: #d7dadd; font-size: 18px; line-height: 1.8; margin-bottom: 32px; }
  .prose p a:not(.button), .prose li a:not(.button), .prose td a:not(.button) { color: var(--blue); }
  .prose strong { color: #e3e6e8; }
  .prose ul, .prose ol { color: #bfc5c8; font-size: 14px; line-height: 1.9; padding-left: 23px; margin-block: 22px; }
  .prose li + li { margin-top: 11px; }
  .prose code { font: .88em/1.7 var(--mono); padding: 2px 5px; background: #232a30; border-radius: 3px; overflow-wrap: anywhere; color: #cbd8e7; }
  .prose pre { background: #1a2025; border: 1px solid #3a454d; padding: 21px; overflow-x: auto; margin-block: 25px; border-radius: 4px; }
  .prose pre code { padding: 0; background: none; font-size: 12px; overflow-wrap: normal; }
  .prose img:not(.workflow-capture) { border-radius: 4px; border: 1px solid #3c4850; width: 100%; }
  .prose > p:has(> a > img) { max-width: none; }
  .prose > p > em { font-size: 11px; line-height: 1.8; color: #9da8af; font-style: normal; }
  .prose .workbench { margin-block: 30px 40px; }
  .prose .native-demo { margin-block: 28px 42px; }
  .prose .native-desktop-shot { margin: 30px 0; }
  .native-desktop-frame { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: #000; }
  .prose .native-desktop-shot img { display: block; width: 100%; height: auto; border: 0; border-radius: 0; }
  .native-desktop-shot figcaption { margin-top: 16px; font: 10px/1.8 var(--mono); color: var(--muted); }
  .table-scroll { overflow-x: auto; margin-block: 25px; border: 1px solid var(--line); border-radius: 3px; }
  table { border-collapse: collapse; width: 100%; min-width: 420px; font-size: 12px; line-height: 1.8; }
  th { background: #20272d; font-weight: 500; text-align: left; color: #e1e5e8; }
  th, td { padding: 13px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
  td { color: #bfc5c8; }
  tr:last-child td { border-bottom: none; }
  .article-end { display: flex; justify-content: space-between; gap: 20px; margin-top: 55px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; }
  .key-search { margin-block: 25px; }
  .key-search label { display: block; font: 10px var(--mono); text-transform: uppercase; color: #aab5bd; margin-bottom: 10px; }
  .key-search input { display: block; width: 100%; background: #1c242a; border: 1px solid #4a5a67; border-radius: 3px; padding: 13px; color: var(--text); font-size: 13px; }
  .key-count { font: 10px var(--mono); margin-top: 9px; color: var(--muted); min-height: 16px; }
}
@layer responsive {
  @media (min-width: 1600px) { .hero { gap: 90px; } }
  @media (max-width: 1150px) {
    .wrap { width: calc(100% - 64px); }
    .hero { gap: 32px; padding-block: 60px; }
    .hero h1 { font-size: 54px; }
    .hero-lede { font-size: 14px; }
    .hero-footnote { font-size: 9px; }
    .workbench-top { font-size: 8px; }
    .intro-band { grid-template-columns: .45fr 1fr 1.2fr; gap: 25px; }
    .workflow-row { grid-template-columns: 35px 1fr 155px 15px; gap: 16px; }
    .row-tag { font-size: 9px; }
    .build-section { gap: 60px; }
    .scene-controls button { gap: 5px; }
    .scene-caption { gap: 8px; }
    .key-hint kbd { font-size: 9px; padding: 2px 4px; }
  }
  @media (max-width: 850px) {
    .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 50px; }
    .hero h1 { font-size: clamp(48px, 7vw, 64px); }
    .hero-lede { max-width: 490px; font-size: 16px; }
    .hero-copy { max-width: 650px; }
    .hero-visual { max-width: 760px; width: 100%; justify-self: center; }
    .intro-band { grid-template-columns: 1fr 1.25fr; }
    .intro-band > .eyebrow { grid-column: 1 / -1; }
    .header-inner { gap: 24px; }
    .site-header nav { gap: 22px; }
    .source-link { padding-left: 20px; }
    .workflow-row { grid-template-columns: 30px 1fr 15px; }
    .row-tag { display: none; }
    .build-section { gap: 40px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-note { text-align: left; grid-column: 1 / -1; }
    .scene-controls button { gap: 9px; }
    .workbench-top { font-size: 9px; }
  }
  @media (max-width: 560px) {
    .wrap { width: calc(100% - 36px); }
    .header-inner { height: auto; min-height: 78px; gap: 0; flex-wrap: wrap; padding-block: 18px 14px; }
    .brand { font-size: 27px; }
    .site-header nav { order: 3; margin: 19px 0 0; width: 100%; justify-content: space-between; gap: 13px; }
    .site-header nav a { font-size: 12px; }
    .source-link { margin-left: auto; border: 0; font-size: 12px; }
    .hero { padding-block: 39px 43px; gap: 26px; }
    .hero h1 { font-size: 52px; margin-block: 20px; }
    .hero-lede { font-size: 14px; }
    .hero .eyebrow { font-size: 9px; }
    .hero-footnote { font-size: 8px; margin-top: 22px; }
    .actions { gap: 20px; }
    .button, .text-link { font-size: 12px; }
    .scene-controls { gap: 4px; }
    .scene-controls button { font-size: 11px; gap: 5px; padding: 10px 3px; }
    .workbench-top { font-size: 7px; }
    .scene-caption { flex-wrap: wrap; }
    .scene-caption p { font-size: 12px; }
    .capture-note { font-size: 9px; }
    .intro-band { grid-template-columns: 1fr; gap: 20px; padding-block: 33px; }
    .intro-band h2 { font-size: 31px; }
    .intro-prose { font-size: 13px; }
    .workflow-section { padding-block: 43px; }
    .section-top { display: block; margin-bottom: 25px; }
    .section-top h2 { font-size: 31px; }
    .section-top > a { margin-top: 20px; }
    .workflow-row { gap: 13px; padding-block: 23px; grid-template-columns: 22px 1fr 12px; }
    .workflow-row h3 { font-size: 17px; }
    .workflow-row p { font-size: 11px; }
    .row-index { font-size: 9px; }
    .build-section { grid-template-columns: 1fr; padding-block: 43px; gap: 34px; }
    .build-section h2 { font-size: 34px; }
    .build-section p:not(.eyebrow) { font-size: 13px; }
    .recipe-links a { font-size: 15px; }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; padding-block: 35px; }
    .footer-note { grid-column: auto; font-size: 10px; }
    .footer-links { justify-content: start; }
    .document-layout { padding-block: 30px 55px; gap: 22px; }
    .prose h1 { font-size: 42px; }
    .prose > h1 + p { font-size: 16px; }
    .prose > p { font-size: 14px; }
    .prose h2 { font-size: 24px; margin-top: 36px; }
    .prose pre { padding: 14px; }
    .prose pre code { font-size: 10px; }
    .map-workflows { gap: 10px; }
    .map-workflows > div { padding: 12px; }
    .map-workflows strong { font-size: 12px; }
    .map-workflows p { font-size: 10px; }
    .map-workflows .eyebrow { font-size: 8px; }
    .architecture-map { padding: 15px; }
    .snapshot { padding: 18px; }
    .snapshot dl > div { display: block; }
    .snapshot dd { margin-top: 6px; }
    .article-end { flex-wrap: wrap; }
  }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
}

@layer components {
  .design-overview { margin-block: 28px 36px; border: 1px solid var(--line); background: var(--surface); }
  .design-specimen-label, .overview-topline, .overview-titlebar, .overview-toolbar, .overview-download, .terminal-window-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .design-specimen-label { padding: 10px 14px; color: var(--muted); font: 10px/1.5 var(--mono); letter-spacing: .04em; }
  .overview-stage { padding: clamp(14px, 3vw, 36px); background: var(--workspace-background, var(--canvas)); border-top: 1px solid var(--line); }
  .overview-topline { color: var(--muted); font: 9px/1.5 var(--mono); padding-bottom: 13px; border-bottom: 1px solid var(--line); }
  .overview-brand { color: var(--text); font: 600 16px/1 var(--ui-family); letter-spacing: -.08em; }
  .overview-brand span { color: var(--accent); font-size: 22px; }
  .overview-workspace { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(10px, 2vw, 22px); min-height: 470px; padding-top: 22px; }
  .overview-window { min-width: 0; min-height: 360px; border: 1px solid var(--border); background: var(--surface); }
  .overview-browser { transform: translateY(-10px); }
  .overview-terminal-window { transform: translateY(10px); }
  .overview-terminal-window { background: var(--terminal-background); color: var(--terminal-foreground); }
  .overview-terminal-window.is-focused { border: 1px solid var(--focus); box-shadow: 0 0 0 3px var(--focus); }
  .overview-titlebar { min-height: 42px; justify-content: flex-start; padding: 0 13px; background: var(--raised); border-bottom: 1px solid var(--line); font-size: 11px; }
  .overview-titlebar > span:last-child { margin-left: auto; color: var(--muted); font: 8px var(--mono); }
  .window-mark { width: 8px; height: 8px; border: 1px solid var(--muted); border-radius: 50%; }
  .overview-toolbar { height: 37px; padding-inline: 12px; color: var(--muted); font-size: 10px; border-bottom: 1px solid var(--line); }
  .overview-toolbar div { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 8px; background: var(--input); border: 1px solid var(--line); }
  .overview-web-content { padding: 26px clamp(14px, 2vw, 26px) 18px; }
  .overview-web-content .eyebrow { font-size: 8px; }
  .overview-web-content h3 { font-size: clamp(18px, 2.1vw, 26px); margin-block: 12px 8px; }
  .overview-web-content > p:not(.eyebrow) { color: var(--secondary); font-size: 11px; }
  .overview-landscape { height: 92px; margin-block: 17px; overflow: hidden; display: flex; align-items: end; background: var(--input); }
  .overview-landscape i { display: block; flex: 1; height: 60%; background: var(--raised); clip-path: polygon(0 100%, 0 50%, 35% 5%, 58% 40%, 77% 18%, 100% 60%, 100% 100%); }
  .overview-landscape i:nth-child(2) { height: 82%; background: var(--surface); transform: scaleX(-1); }
  .overview-landscape i:nth-child(3) { height: 68%; background: var(--raised); }
  .overview-download { justify-content: flex-start; min-height: 42px; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 10px; }
  .overview-download > span:first-child { color: var(--accent); font-size: 15px; }
  .overview-download > span:last-child { color: var(--muted); font: 8px var(--mono); margin-left: auto; }
  .overview-download strong, .overview-download small { display: block; }
  .overview-download small { color: var(--muted); font-size: 9px; }
  .overview-terminal-content { padding: 23px 16px; color: var(--terminal-foreground); font: 12px/1.9 var(--mono); overflow-wrap: anywhere; }
  .overview-terminal-content p { margin: 0 0 10px; }
  .terminal-blue { color: var(--ansi-4); }
  .terminal-green { color: var(--ansi-2); }
  .terminal-cyan { color: var(--ansi-6); }
  .terminal-warning { color: var(--ansi-3); }
  .terminal-error { color: var(--ansi-1); }
  .terminal-host { color: var(--ansi-7); }
  .terminal-dim { color: var(--ansi-8); }
  .overview-agent-note { margin-block: 20px; padding: 12px; background: var(--input); border-left: 2px solid var(--border); font-size: 10px; }
  .overview-agent-note small { color: var(--muted); font-size: 8px; }
  .overview-caret { display: inline-block; width: 7px; height: 15px; vertical-align: -3px; background: var(--focus); }
  .design-overview figcaption { padding: 11px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
  .surface-gallery { margin-block: 24px 30px; }
  .surface-switcher { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
  .surface-switcher button, .launch-actions button, .specimen-button, .secure-content button { min-height: 34px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 3px; color: var(--text); background: var(--raised); font: 500 12px/1.4 var(--ui-family); }
  .surface-switcher button[aria-pressed="true"], .launch-actions button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
  .surface-panel { padding: clamp(14px, 2.3vw, 24px); border: 1px solid var(--line); background: var(--canvas); }
  .surface-panel + .surface-panel { margin-top: 14px; }
  .surface-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 18px; }
  .surface-heading h3 { margin-top: 5px; font-size: clamp(18px, 2vw, 23px); letter-spacing: -.025em; }
  .surface-heading > p { color: var(--muted); font: 9px/1.6 var(--mono); }
  .launch-specimen, .information-specimen { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(210px, .7fr); gap: 18px; align-items: start; }
  .launch-window, .information-panel, .terminal-specimen { min-width: 0; border: 1px solid var(--border); background: var(--surface); }
  .launch-window { padding: 15px; }
  .launch-titlebar, .information-title, .terminal-window-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--secondary); font: 10px var(--mono); }
  .launch-titlebar span:first-child { font: 500 13px var(--ui-family); color: var(--text); }
  .launch-titlebar span:last-child { font-size: 8px; color: var(--muted); }
  .launch-search-label { display: block; margin-block: 15px 5px; color: var(--secondary); font-size: 10px; }
  .launch-window input { width: 100%; min-height: 38px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 2px; background: var(--input); color: var(--text); font: 13px var(--ui-family); }
  .launch-window input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
  .launch-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding-block: 13px; border-bottom: 1px solid var(--line); }
  .launch-actions button { min-height: 30px; font-size: 11px; }
  .launch-actions span { color: var(--muted); font: 8px var(--mono); margin-left: auto; }
  .launch-rows { padding-top: 8px; }
  .launch-row { width: 100%; display: flex; align-items: center; gap: 10px; min-width: 0; margin-block: 3px; padding: 9px 10px; text-align: left; color: var(--text); background: transparent; border: 1px solid transparent; border-left: 3px solid transparent; }
  .launch-row:hover { border-color: var(--line); }
  .launch-row.is-selected { background: var(--selection); border-color: var(--selection); border-left-color: var(--accent); color: var(--selection-text); }
  .launch-row > span:nth-child(2) { min-width: 0; flex: 1; }
  .launch-row strong, .launch-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .launch-row strong { font-size: 12px; font-weight: 500; }
  .launch-row small { color: var(--secondary); font-size: 10px; }
  .launch-row em { color: var(--muted); font: normal 8px var(--mono); }
  .provider-mark { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border: 1px solid var(--border); color: var(--accent); font: 9px var(--mono); }
  .launch-status { min-height: 28px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--secondary); font-size: 10px; }
  .launch-footer { margin-top: 8px; color: var(--muted); font: 8px var(--mono); }
  .launch-context { padding: 17px; border: 1px solid var(--line); background: var(--raised); }
  .launch-context > strong { display: block; margin-block: 7px; font-weight: 500; }
  .launch-context > p:not(.eyebrow) { color: var(--secondary); font-size: 11px; }
  .design-native-note { margin-top: 12px; color: var(--muted); font-size: 10px; line-height: 1.65; }
  .information-panel { width: min(100%, 500px); padding: 14px; }
  .information-title { margin-bottom: 12px; font: 9px var(--ui-family); }
  .information-title > span:first-child { color: var(--text); font-weight: 500; font-size: 13px; }
  .information-title > span:last-child { display: flex; align-items: center; gap: 8px; color: var(--secondary); font-size: 9px; }
  .information-title i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
  .sample-switch { display: inline-block; width: 25px; height: 13px; border: 1px solid var(--border); background: var(--raised); border-radius: 8px; }
  .information-card { padding: 10px 11px; border: 1px solid var(--border); border-radius: 4px; background: var(--raised); }
  .information-card + .information-card { margin-top: 8px; }
  .information-card h4 { margin: 0 0 7px; font-size: 12px; font-weight: 500; }
  .information-cells { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .information-cells + .information-cells { margin-top: 6px; }
  .information-cells > div { display: flex; justify-content: space-between; align-items: center; min-width: 0; gap: 8px; font-size: 10px; font-variant-numeric: tabular-nums; }
  .information-cells span { color: var(--secondary); }
  .information-cells strong { font-weight: 400; text-align: right; }
  .information-notes { display: grid; gap: 11px; }
  .sample-notification, .availability-card { padding: 15px; border: 1px solid var(--border); background: var(--raised); }
  .sample-notification > strong { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; }
  .sample-notification > p:not(.eyebrow) { color: var(--secondary); font-size: 11px; }
  .sample-notification small { display: block; margin-top: 8px; color: var(--muted); font-size: 9px; }
  .specimen-button { min-height: 28px; margin-top: 9px; font-size: 10px; }
  .availability-card p:not(.eyebrow) { margin-top: 7px; color: var(--secondary); font-size: 10px; }
  .availability-card strong { color: var(--text); font-weight: 500; }
  .terminal-specimen { overflow: hidden; border-color: var(--focus); box-shadow: 0 0 0 2px var(--focus); background: var(--terminal-background); color: var(--terminal-foreground); }
  .terminal-window-head { padding: 10px 13px; background: var(--raised); color: var(--secondary); font-size: 9px; }
  .terminal-window-head span:last-child { color: var(--muted); font-size: 8px; }
  .terminal-transcript { padding: 16px clamp(12px, 2vw, 22px); font: clamp(12px, 1.145vw, 14.6667px)/1.7 var(--mono); overflow-wrap: anywhere; }
  .terminal-transcript p { margin: 0 0 5px; }
  .terminal-rprompt { color: var(--ansi-8); text-align: right; font-size: 9px; }
  .terminal-selection { margin-block: 8px !important; padding: 2px 5px; color: var(--terminal-selection-foreground); background: var(--terminal-selection-background); border-left: 2px solid var(--terminal-cursor); }
  .terminal-transcript strong { font-weight: 600; }
  .terminal-glyph { color: var(--ansi-14); }
  .terminal-ansi-preview { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; padding: 12px; background: var(--input); border-top: 1px solid var(--line); }
  .terminal-ansi-preview span { display: grid; place-items: center; min-height: 26px; border-top: 8px solid var(--ansi-color); color: var(--text); font: 8px var(--mono); background: var(--surface); }
  .identity-palette { margin-block: 18px 28px; }
  .palette-swatch-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 10px; }
  .palette-swatch { min-width: 0; }
  .palette-swatch i { display: block; height: 42px; border: 1px solid var(--border); background: var(--swatch); }
  .palette-swatch strong { display: block; margin-top: 6px; color: var(--text); font-size: 10px; font-weight: 500; }
  .palette-swatch code { display: block; padding: 0; border: 0; background: transparent; color: var(--muted); font: 9px var(--mono); }
  .ansi-reference { margin-top: 28px; padding: 17px; background: var(--surface); border: 1px solid var(--line); }
  .ansi-reference-heading { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 7px 16px; margin-bottom: 13px; }
  .ansi-reference-heading h3 { font-size: 15px; letter-spacing: -.01em; }
  .ansi-reference-heading p { color: var(--muted); font-size: 10px; }
  .ansi-reference-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
  .ansi-slot { display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 2px 8px; padding: 7px; border: 1px solid var(--line); background: var(--canvas); min-width: 0; }
  .ansi-slot > i { grid-row: span 3; display: block; width: 22px; height: 34px; border: 1px solid var(--border); background: var(--ansi-color); }
  .ansi-slot strong { font-size: 9px; font-weight: 500; }
  .ansi-slot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 8px; }
  .ansi-slot code { color: var(--secondary); font: 8px var(--mono); }
  .type-details { margin-block: 18px 30px; }
  .type-samples { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .type-sample { min-width: 0; padding: 18px; border: 1px solid var(--line); background: var(--surface); }
  .type-sample > strong { display: block; margin-block: 7px 12px; font: 500 13px var(--ui-family); }
  .ui-sample > p:not(.eyebrow) { font-size: 14.6667px; }
  .ui-sample .type-secondary { color: var(--secondary); font-size: 13.3333px !important; }
  .ui-sample h3 { margin-top: 18px; font-size: 17.3333px; letter-spacing: -.01em; }
  .type-selected { margin-top: 13px; padding: 7px 9px; border: 1px solid var(--focus); background: var(--selection); color: var(--selection-text); font-size: 11px; }
  .type-selected span { float: right; color: var(--secondary); }
  .terminal-type-sample > strong { font-family: var(--mono); }
  .terminal-type-sample pre { overflow: auto; margin: 0; padding: 13px; background: var(--input); color: var(--text); font: 14.6667px/1.7 var(--mono); }
  .terminal-type-sample pre span { color: var(--ansi-6); }
  .identity-detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin-top: 14px; }
  .identity-detail-list > div { padding-block: 8px; border-bottom: 1px solid var(--line); }
  .identity-detail-list dt { color: var(--muted); font: 8px var(--mono); text-transform: uppercase; }
  .identity-detail-list dd { margin-top: 3px; color: var(--secondary); font-size: 10px; }
  .secure-specimen { min-height: 330px; padding: 17px; color: var(--text); background: var(--secure-surface); border: 1px solid var(--border); }
  .login-lock-specimen { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
  .secure-label { color: var(--muted); font: 8px var(--mono); }
  .secure-content { display: flex; flex-direction: column; align-items: center; width: min(100%, 240px); margin: 27px auto 0; text-align: center; }
  .secure-mark { color: var(--accent); font-size: 35px; line-height: 1; }
  .secure-content > strong { margin-top: 9px; font-size: 18px; font-weight: 500; }
  .secure-content > span { color: var(--secondary); font-size: 10px; }
  .secure-content label { align-self: stretch; margin-top: 13px; color: var(--secondary); font-size: 9px; text-align: left; }
  .secure-content input { width: 100%; height: 35px; margin-top: 4px; padding-inline: 9px; color: var(--text); background: var(--secure-input); border: 1px solid var(--border); font: 12px var(--ui-family); }
  .secure-content input::placeholder { color: var(--muted); }
  .secure-content button { width: 100%; margin-top: 8px; color: var(--accent-ink); background: var(--secure-button); border-color: var(--secure-button); font-size: 10px; }
  .secure-content button:disabled { opacity: .75; cursor: default; }
  .secure-error { margin-top: 8px; color: var(--error); font-size: 10px; }
  .lock-content { margin-top: 44px; }
  .lock-content time { font: 400 44px/1.1 var(--ui-family); font-variant-numeric: tabular-nums; }
  .lock-content > strong { margin-top: 16px; }
  .lock-button { color: var(--text) !important; background: var(--secure-input) !important; border-color: var(--border) !important; }
}
@layer responsive {
  @media (max-width: 900px) {
    .overview-workspace { min-height: 0; }
    .overview-window { min-height: 330px; }
    .launch-specimen, .information-specimen { grid-template-columns: 1fr; }
    .information-panel { width: 100%; }
    .information-notes { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 650px) {
    .overview-workspace, .type-samples, .login-lock-specimen { grid-template-columns: 1fr; }
    .overview-window { min-height: 300px; }
    .overview-browser, .overview-terminal-window { transform: none; }
    .overview-topline span:nth-child(2) { display: none; }
    .surface-heading { align-items: start; }
    .information-notes { grid-template-columns: 1fr; }
    .palette-swatch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ansi-reference-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .identity-detail-list { grid-template-columns: 1fr; }
    .terminal-ansi-preview { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .secure-specimen { min-height: 300px; }
  }
  @media (max-width: 420px) {
    .design-specimen-label { font-size: 8px; }
    .overview-titlebar > span:last-child { font-size: 7px; }
    .launch-window { padding: 10px; }
    .launch-actions span { width: 100%; margin-left: 0; }
    .palette-swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .type-sample { padding: 13px; }
  }
}

@layer documents {
  .document-layout:has(.sidebar-contents:not([open])) { grid-template-columns: 44px minmax(0, 1080px); gap: 24px; }
  .sidebar-contents { width: 100%; }
  .sidebar-contents > summary { list-style: none; display: flex; align-items: center; gap: 9px; padding: 11px 10px; min-height: 44px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); cursor: pointer; color: var(--text); font: 10px var(--mono); }
  .sidebar-contents > summary::-webkit-details-marker { display: none; }
  .sidebar-contents > summary svg { flex: 0 0 20px; width: 20px; height: 20px; }
  .sidebar-contents[open] > summary::after { content: "‹"; margin-left: auto; font-size: 20px; line-height: 1; color: var(--blue); }
  .sidebar-contents:not([open]) > summary span { display: none; }
  .sidebar-links { padding-top: 10px; }
  .sidebar-links > a { display: block; text-decoration: none; color: var(--muted); margin-block: 14px; font-size: 12px; line-height: 1.6; }
  .sidebar-links > a:hover { color: var(--blue); }
  .sidebar-links > p { margin-block: 18px; font-size: 12px; line-height: 1.8; color: var(--muted); }
  .sidebar-contents:not([open]) .sidebar-links { display: none; }
}
@layer responsive {
  @media (max-width: 900px) {
    .document-layout, .document-layout:has(.sidebar-contents:not([open])) { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 30px; }
    .on-this-page { position: relative; top: 0; z-index: 15; padding: 0; border: 0; }
    .sidebar-contents { position: relative; width: fit-content; }
    .sidebar-contents > summary { width: 170px; }
    .sidebar-contents:not([open]) > summary span { display: inline; }
    .sidebar-contents[open] > .sidebar-links { position: absolute; left: 0; top: calc(100% + 8px); width: min(280px, calc(100vw - 36px)); max-height: 65vh; overflow: auto; padding: 8px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 16px 30px #0008; }
    .hero { grid-template-columns: 1fr; gap: 28px; }
  }
}
