:root {
  color-scheme: light dark;
  --paper: #fff;
  --ink: #24272c;
  --muted: #60666f;
  --line: #d9dde2;
  --rule: #9ba2ac;
  --wash: #f5f6f8;
  --accent: #5145bd;
  --accent-wash: #efedf9;
  --grid: #e7eaee;
  --selection: #dcd8fb;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141619;
    --ink: #e4e7eb;
    --muted: #a1a8b3;
    --line: #343940;
    --rule: #68717d;
    --wash: #1b1e23;
    --accent: #b6acff;
    --accent-wash: #28243e;
    --grid: #292e35;
    --selection: #453e6d;
  }
  .init-logo { filter: invert(1); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--selection); color: var(--ink); }
.mono { font-family: var(--mono); }
.skip-link { position: fixed; top: -80px; left: 20px; background: var(--ink); color: var(--paper); z-index: 20; padding: 10px 18px; }
.skip-link:focus { top: 12px; }
.masthead { min-height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 16px 32px; border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 10; background: var(--paper); gap: 24px; }
.brand, .footer-logos { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.workos-logo { display: block; width: 116px; height: auto; }
.init-logo { display: block; width: 86px; height: auto; }
.brand-divider { height: 22px; width: 1px; background: var(--rule); flex-shrink: 0; }
.header-label { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; color: var(--muted); }
.header-link { font-family: var(--mono); font-size: .875rem; white-space: nowrap; }
.header-link span { margin-left: 10px; color: var(--accent); }
.layout { display: grid; grid-template-columns: 216px minmax(0, 1fr); max-width: 1440px; margin: auto; }
.sidebar { border-right: 1px solid var(--line); padding: 30px 22px; align-self: start; position: sticky; top: 72px; min-height: calc(100svh - 72px); display: flex; flex-direction: column; }
.small { font-size: .75rem; letter-spacing: .04em; color: var(--muted); }
.sidebar-top p { margin: 16px 0 2px; font-family: var(--mono); font-size: 1.125rem; font-weight: 600; }
.side-model { color: var(--muted); font-size: .75rem; }
nav { margin: 28px -22px 0; }
nav a { display: flex; gap: 14px; align-items: center; padding: 10px 22px; border-left: 2px solid transparent; font-size: .875rem; color: var(--muted); white-space: nowrap; }
nav a span { font-family: var(--mono); font-size: .75rem; }
nav a:hover { color: var(--ink); background: var(--wash); }
nav a.active { color: var(--accent); border-left-color: var(--accent); background: var(--accent-wash); }
.sidebar-bottom { margin-top: auto; padding-top: 60px; font-size: .75rem; }
.document-label { display: block; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 18px; line-height: 1.9; }
.sidebar-bottom a { color: var(--accent); }
main { min-width: 0; padding: 0 42px; }
.document-header { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0 14px; border-bottom: 1px solid var(--ink); color: var(--muted); font-size: .75rem; letter-spacing: .04em; }
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; padding: 32px 0; align-items: center; }
.eyebrow { font-family: var(--mono); color: var(--muted); font-size: .75rem; letter-spacing: .06em; }
h1 { font-family: var(--mono); font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1.15; font-weight: 500; letter-spacing: -.055em; margin: 14px 0 8px; }
.hero-copy > p { max-width: 440px; margin: 16px 0 0; color: var(--muted); }
.hero-copy > .document-subtitle { margin: 0; color: var(--ink); font-size: 1.125rem; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 24px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 20px; padding: 9px 14px; border: 1px solid var(--rule); font-size: .875rem; font-weight: 500; }
.primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.primary:hover { background: var(--accent); border-color: var(--accent); }
.text-link { color: var(--accent); font-size: .875rem; }
.text-link:hover, .header-link:hover, .sidebar-bottom a:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link span { margin-left: 6px; }
.device-visual { margin: 0; border: 1px solid var(--rule); min-width: 0; }
.figure-header, .device-visual figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; font-size: .75rem; color: var(--muted); }
.figure-header { border-bottom: 1px solid var(--line); letter-spacing: .02em; }
.device-drawing { display: grid; place-items: center; background-color: var(--wash); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; padding: 4px 20px; }
.device-drawing img { display: block; width: min(100%, 256px); height: auto; }
.device-visual figcaption { border-top: 1px solid var(--line); font-family: var(--mono); font-size: .75rem; flex-wrap: wrap; }
.spec-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.spec-strip > div { padding: 14px 16px; border-right: 1px solid var(--line); }
.spec-strip > div:first-child { padding-left: 0; }
.spec-strip > div:last-child { border-right: 0; }
.spec-value, .spec-label { display: block; }
.spec-value { font-family: var(--mono); font-size: 1rem; font-weight: 500; letter-spacing: -.03em; }
.spec-label { font-size: .75rem; color: var(--muted); margin-top: 4px; }
.section { padding-top: 40px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-kicker { font-size: .75rem; letter-spacing: .05em; color: var(--accent); }
h2 { font-family: var(--mono); margin: 8px 0 0; font-size: 1.5rem; font-weight: 500; letter-spacing: -.045em; line-height: 1.35; }
h3 { font-size: 1rem; font-weight: 600; line-height: 1.5; }
.start-grid { border-top: 1px solid var(--rule); }
.start-card { display: grid; grid-template-columns: 36px 170px minmax(0, 1fr); gap: 0 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.step { color: var(--accent); font-size: .875rem; padding-top: 2px; grid-row: 1 / 3; }
.start-card h3 { margin: 0; grid-row: 1 / 3; }
.start-card p { color: var(--muted); margin: 0 0 9px; }
.start-card a { grid-column: 3; font-size: .875rem; color: var(--accent); justify-self: start; }
.start-card a span { padding-left: 6px; }
.start-card a:hover, .hardware-summary a:hover { text-decoration: underline; text-underline-offset: 4px; }
.inline-note { display: flex; align-items: baseline; gap: 16px; margin-top: 18px; padding: 12px 16px; border-left: 2px solid var(--rule); background: var(--wash); }
.note-symbol { color: var(--muted); font-size: .75rem; }
.inline-note p { margin: 0; color: var(--muted); font-size: .875rem; }
.inline-note strong { color: var(--ink); font-weight: 500; }
.hardware-grid { display: grid; grid-template-columns: 1fr 2fr; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.hardware-summary { padding: 20px 24px 20px 0; border-right: 1px solid var(--line); }
.hardware-summary h3 { margin: 0 0 10px; font-family: var(--mono); font-weight: 500; }
.hardware-summary p { margin: 0 0 20px; color: var(--muted); }
.hardware-summary a { font-size: .875rem; color: var(--accent); }
.hardware-list { margin: 0; padding: 0 0 0 24px; }
.hardware-list > div { display: grid; grid-template-columns: 140px 1fr; gap: 14px; border-bottom: 1px solid var(--line); padding: 14px 0; }
.hardware-list > div:last-child { border-bottom: 0; }
dt { color: var(--ink); font-size: .875rem; }
dd { margin: 0; color: var(--muted); font-size: .875rem; }
.detail { border: 1px solid var(--line); margin-top: 16px; }
summary { cursor: pointer; padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; list-style: none; font-size: .875rem; }
summary:hover { background: var(--wash); }
summary::-webkit-details-marker { display: none; }
.detail-plus { color: var(--accent); font-family: var(--mono); font-size: 1.25rem; line-height: 1; }
.detail[open] .detail-plus { transform: rotate(45deg); }
.detail[open] summary { border-bottom: 1px solid var(--line); }
.detail-body { padding: 16px 20px; color: var(--muted); max-width: 860px; }
.detail-body p { margin: 0 0 12px; }
.detail-body p:last-child { margin-bottom: 0; }
.detail-body strong { color: var(--ink); font-weight: 500; }
.detail-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.setup-steps { margin: 0 0 18px; padding-left: 22px; }
.setup-steps li { margin: 9px 0; padding-left: 5px; }
.revision-note { border-left: 2px solid var(--accent); }
.featured-resource { display: grid; grid-template-columns: 116px minmax(0, 1fr) 20px; align-items: center; gap: 24px; border: 1px solid var(--rule); padding: 20px; background: var(--wash); }
.featured-resource:hover { border-color: var(--accent); }
.feature-icon { color: var(--ink); padding: 20px 0; border-right: 1px solid var(--rule); display: flex; flex-direction: column; justify-content: center; font-size: 1.5rem; letter-spacing: -.06em; }
.feature-icon span { font-size: .75rem; letter-spacing: 0; margin-top: 8px; color: var(--muted); }
.resource-tag { color: var(--muted); font-family: var(--mono); font-size: .75rem; letter-spacing: .03em; }
.feature-copy h3 { font-size: 1.125rem; font-weight: 500; margin: 4px 0; }
.feature-copy p { margin: 0; color: var(--muted); }
.feature-arrow { font-size: 1.25rem; color: var(--accent); }
.resource-list { margin-top: 12px; }
.resource-list > a { display: grid; grid-template-columns: 118px minmax(0, 1fr) 20px; gap: 20px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.resource-list > a:hover h3 { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.resource-kind { font-size: .75rem; padding-top: 2px; letter-spacing: .02em; color: var(--muted); }
.resource-list h3 { margin: 0 0 4px; font-weight: 500; }
.resource-list p { margin: 0; font-size: 1rem; color: var(--muted); }
.resource-list > a > span:last-child { color: var(--accent); }
.agent-section { padding-bottom: 40px; }
.agent-badge { color: var(--muted); border: 1px solid var(--rule); font-size: .75rem; padding: 3px 9px; }
.agent-intro { color: var(--muted); max-width: 740px; margin: 0 0 20px; }
.prompt-box { background: var(--wash); border: 1px solid var(--rule); padding: 20px; position: relative; }
.prompt-label { font-size: .75rem; letter-spacing: .04em; color: var(--muted); padding-right: 140px; }
.prompt-box p { font-family: var(--mono); font-size: .875rem; line-height: 1.8; margin: 22px 0 0; overflow-wrap: anywhere; }
#skill-address { color: var(--accent); }
.copy-button { position: absolute; top: 12px; right: 12px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); cursor: pointer; padding: 7px 11px; font-size: .875rem; }
.copy-button:hover { background: var(--accent-wash); border-color: var(--accent); }
.copy-button span { margin-left: 7px; }
.agent-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 18px; }
.secondary { color: var(--accent); background: var(--paper); }
.secondary:hover { background: var(--accent-wash); border-color: var(--accent); }
.copy-status { font-size: .875rem; color: var(--accent); }
.agent-fineprint { color: var(--muted); font-size: .875rem; margin: 16px 0 0; }
.page-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; border-top: 1px solid var(--ink); padding: 24px 0 32px; }
.footer-logos { gap: 14px; padding: 5px 0; }
.footer-logos .workos-logo { width: 100px; }
.footer-logos .init-logo { width: 74px; }
.footer-logos .brand-divider { height: 20px; }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; font-size: .75rem; color: var(--muted); }
.footer-meta a:hover { color: var(--accent); }
@media (min-width: 1440px) { main { padding-left: 60px; padding-right: 60px; } }
@media (max-width: 1150px) {
  .layout { grid-template-columns: 190px minmax(0, 1fr); }
  .sidebar { padding: 28px 18px; }
  nav { margin-left: -18px; margin-right: -18px; }
  nav a { padding-left: 18px; padding-right: 18px; gap: 10px; }
  main { padding: 0 28px; }
  .hero { gap: 24px; }
  .start-card { grid-template-columns: 34px 145px minmax(0, 1fr); gap: 0 12px; }
  .hardware-grid { grid-template-columns: 1fr; }
  .hardware-summary { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 0; }
  .hardware-summary p { margin-bottom: 10px; }
  .hardware-list { padding: 0; }
  .hardware-list > div { grid-template-columns: 175px 1fr; }
  .figure-header, .device-visual figcaption { padding-left: 9px; padding-right: 9px; gap: 8px; }
  .spec-strip > div { padding-left: 12px; padding-right: 12px; }
  .page-footer { flex-wrap: wrap; }
  .footer-meta { align-items: flex-start; }
}
@media (max-width: 850px) {
  .masthead { padding-left: 24px; padding-right: 24px; }
  .header-label { display: none; }
  .layout { display: block; }
  .sidebar { position: sticky; top: 72px; padding: 0 16px; min-height: 0; background: var(--paper); z-index: 9; border-bottom: 1px solid var(--line); border-right: 0; }
  .sidebar-top, .sidebar-bottom { display: none; }
  nav { display: flex; gap: 8px; margin: 0; overflow-x: auto; }
  nav a { flex-shrink: 0; font-size: .875rem; gap: 8px; padding: 12px 10px; border-left: 0; border-bottom: 2px solid transparent; }
  nav a.active { border-bottom-color: var(--accent); background: transparent; }
  html { scroll-padding-top: 140px; }
  .hero { padding: 28px 0; }
}
@media (max-width: 600px) {
  .masthead { min-height: 64px; padding: 15px 16px; gap: 14px; }
  .brand { gap: 12px; }
  .brand .workos-logo { width: 94px; }
  .brand .init-logo { width: 69px; }
  .brand-divider { height: 19px; }
  .header-link { font-size: .75rem; }
  .header-link span { margin-left: 2px; }
  .sidebar { top: 64px; padding: 0 8px; }
  nav { justify-content: space-between; gap: 0; }
  nav a { gap: 6px; padding: 11px 8px; }
  nav a span { display: none; }
  main { padding: 0 20px; }
  .document-header { padding-top: 18px; font-size: .75rem; flex-wrap: wrap; gap: 4px 20px; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding: 26px 0 24px; }
  h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .hero-copy > p { max-width: none; }
  .device-drawing img { width: 230px; }
  .spec-strip { grid-template-columns: repeat(2, 1fr); }
  .spec-strip > div { padding: 14px 12px; }
  .spec-strip > div:nth-child(odd) { padding-left: 0; }
  .spec-strip > div:nth-child(even) { border-right: 0; }
  .spec-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section { padding-top: 32px; }
  .section-heading { flex-wrap: wrap; gap: 12px; }
  h2 { font-size: 1.375rem; }
  .start-card { grid-template-columns: 32px minmax(0, 1fr); gap: 8px 12px; }
  .step { grid-row: 1 / 4; }
  .start-card h3 { grid-row: auto; }
  .start-card p, .start-card a { grid-column: 2; }
  .start-card p { margin-bottom: 0; }
  .inline-note { display: block; padding: 12px 14px; }
  .note-symbol { display: block; margin-bottom: 4px; }
  .hardware-list > div { grid-template-columns: 1fr; gap: 4px; }
  dd { font-size: 1rem; }
  .detail-body { padding: 14px 16px; }
  .featured-resource { grid-template-columns: minmax(0, 1fr) 20px; gap: 14px; padding: 18px; }
  .feature-icon { display: none; }
  .resource-list > a { grid-template-columns: minmax(0, 1fr) 20px; gap: 6px 16px; }
  .resource-kind { grid-column: 1 / -1; }
  .prompt-box { padding: 16px; }
  .prompt-label { padding-right: 0; }
  .prompt-box p { margin-top: 16px; }
  .copy-button { position: static; margin-top: 18px; }
  .agent-footer { gap: 16px; }
  .page-footer { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  :root { color-scheme: light; --paper: #fff; --ink: #000; --muted: #444; --line: #ccc; --rule: #666; --wash: #fff; --accent: #000; --grid: #eee; }
  .masthead { position: static; }
  .layout { display: block; }
  .sidebar, .header-link, .hero-actions, .copy-button, .agent-footer { display: none; }
  main { padding: 0; }
  .init-logo { filter: none; }
  .workos-logo { filter: brightness(0); }
  .hero { grid-template-columns: 1fr 1fr; }
  .section { break-inside: avoid; }
  a { text-decoration: underline; }
}
