:root {
  color-scheme: light;
  --paper: #f3f1e9;
  --paper-deep: #e7e3d7;
  --ink: #111713;
  --muted: #626a64;
  --line: #c9c8be;
  --green: #1d6b45;
  --green-bright: #b9f36a;
  --orange: #ed6a36;
  --terminal: #111814;
  --terminal-line: #2c3730;
  --terminal-text: #d9e4dc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: var(--paper); color: var(--ink); overflow-wrap: break-word; }
a { color: inherit; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 20; padding: 10px 14px; background: var(--ink); color: white; }
.skip-link:focus { top: 16px; }
.topbar, main, footer { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.topbar { height: 82px; display: grid; grid-template-columns: 1fr auto auto auto; gap: 0 24px; align-items: center; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; font-size: 19px; font-weight: 760; letter-spacing: -.03em; text-decoration: none; }
.brand-mark { display: inline-flex; align-items: end; gap: 2px; width: 25px; height: 25px; padding: 5px; background: var(--ink); }
.brand-mark i { display: block; width: 3px; background: var(--green-bright); }
.brand-mark i:nth-child(1) { height: 7px; }
.brand-mark i:nth-child(2) { height: 14px; }
.brand-mark i:nth-child(3) { height: 10px; }
nav { display: flex; align-items: center; gap: 30px; }
nav a, .console-link { color: #343b36; font-size: 13px; font-weight: 650; text-decoration: none; }
nav a:hover, nav a:focus-visible, .console-link:hover, .console-link:focus-visible { color: var(--green); }
.console-link { justify-self: end; padding-bottom: 3px; border-bottom: 1px solid currentColor; }
.locale-switch { display: inline-flex; align-items: center; justify-self: end; min-width: 67px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #ebe8de; }
.locale-switch a { flex: 1; min-width: 28px; padding: 4px 6px; border-radius: 999px; color: var(--muted); font: 750 10px/1 ui-monospace, monospace; text-align: center; text-decoration: none; }
.locale-switch a[aria-current="true"] { background: var(--ink); color: white; }
.locale-switch a:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.hero { min-height: 660px; display: grid; grid-template-columns: minmax(0, .94fr) minmax(520px, 1.06fr); gap: clamp(54px, 7vw, 100px); align-items: center; padding: 76px 0 84px; }
.kicker, .section-index { margin: 0 0 24px; color: var(--green); font: 750 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; }
.kicker { display: flex; align-items: center; gap: 10px; }
.kicker span { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
h1, h2, h3 { line-break: strict; text-wrap: balance; }
p { line-break: strict; text-wrap: pretty; }
.keep-together { white-space: nowrap; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { line-break: auto; overflow-wrap: normal; word-break: normal; hyphens: none; }
html[lang="en"] p, html[lang="en"] li { line-break: auto; word-break: normal; }
html[lang="en"] .keep-together { white-space: normal; }
html[lang="en"] h1 { font-size: clamp(50px, 5.7vw, 80px); letter-spacing: -.055em; }
html[lang="en"] h2 { font-size: clamp(36px, 4.2vw, 58px); letter-spacing: -.045em; }
h1 { margin: 0; max-width: 700px; font-size: clamp(52px, 6.2vw, 83px); line-height: .99; letter-spacing: -.06em; font-weight: 780; }
.lede { max-width: 590px; margin: 30px 0 0; color: var(--muted); font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 36px; }
.hero-text-link { color: var(--green); font-size: 12px; font-weight: 700; text-decoration: none; text-underline-offset: 5px; }
.hero-text-link:hover, .hero-text-link:focus-visible { text-decoration: underline; }
.public-key-availability { display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin: 13px 0 0; color: var(--muted); font: 700 10px/1.45 ui-monospace, monospace; letter-spacing: .025em; }
.public-key-availability i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #919891; }
.public-key-availability[data-available="true"] { color: var(--green); }
.public-key-availability[data-available="true"] i { background: var(--green); box-shadow: 0 0 0 4px #1d6b4514; }
.public-key-availability[data-available="false"] i { background: var(--orange); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 0 19px; border: 1px solid var(--ink); font-size: 13px; font-weight: 720; text-decoration: none; transition: transform .18s ease, background .18s ease, color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--ink); color: white; }
.button.primary:hover { background: var(--green); border-color: var(--green); }
.button.secondary { background: transparent; }
.release-badge { padding: 3px 6px; background: var(--green-bright); color: var(--ink); font: 700 9px ui-monospace, monospace; letter-spacing: .08em; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 42px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.hero-facts div { min-width: 0; }
.hero-facts dt { color: #787f79; font: 650 10px ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.hero-facts dd { margin: 7px 0 0; overflow: hidden; font-size: 13px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }

.product-scene { position: relative; min-height: 505px; overflow: hidden; border: 1px solid #29332d; background: var(--terminal); color: var(--terminal-text); box-shadow: 20px 24px 0 #d8d4c8; }
.scene-head { height: 50px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; padding: 0 18px; border-bottom: 1px solid var(--terminal-line); color: #8d9b91; font: 600 10px ui-monospace, monospace; }
.scene-head > span:nth-child(2) { justify-self: center; }
.scene-dots { display: flex; gap: 6px; }
.scene-dots i { width: 7px; height: 7px; border-radius: 50%; background: #3c4b42; }
.scene-dots i:first-child { background: var(--orange); }
.cloud-status { justify-self: end; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.cloud-status i { width: 6px; height: 6px; border-radius: 50%; background: #849087; }
.cloud-status.is-online { color: var(--green-bright); }
.cloud-status.is-online i { background: var(--green-bright); box-shadow: 0 0 10px #b9f36a80; }
.cloud-status.is-offline { color: #f08a76; }
.cloud-status.is-offline i { background: #f08a76; }
.terminal-line { display: grid; grid-template-columns: 42px 1fr; min-height: 42px; align-items: center; border-bottom: 1px solid #1d261f; font: 500 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.terminal-line > span { color: #536158; text-align: center; }
.terminal-line code { color: #c6d3ca; }
.terminal-line.muted code { color: #8c9a90; }
.terminal-line.blank { min-height: 25px; }
.terminal-line.success code { color: var(--green-bright); }
.message-event { margin: 20px 28px; padding: 18px 20px 21px; border-left: 3px solid var(--green-bright); background: #1b251f; }
.event-meta { display: flex; justify-content: space-between; color: #7f8d84; font: 700 9px ui-monospace, monospace; letter-spacing: .12em; }
.message-event p { margin: 17px 0 7px; color: #8fa096; font: 600 11px ui-monospace, monospace; }
.message-event strong { display: block; font: 570 14px/1.6 ui-monospace, monospace; }
.message-event mark { padding: 3px 5px; background: var(--green-bright); color: var(--ink); }
.phone-chip { position: absolute; right: 22px; bottom: 18px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #3b493f; background: #141d17ee; }
.phone-chip span { display: block; color: #7d8b82; font: 700 8px ui-monospace, monospace; letter-spacing: .12em; }
.phone-chip strong { display: block; margin-top: 4px; color: #d7e1da; font-size: 11px; }
.phone-icon { position: relative; width: 24px; height: 34px; border: 1px solid #718078; border-radius: 3px; }
.phone-icon::before { content: ""; position: absolute; top: 3px; left: 8px; width: 6px; height: 1px; background: #718078; }
.phone-icon i { position: absolute; left: 10px; bottom: 3px; width: 3px; height: 3px; border-radius: 50%; background: var(--green-bright); }

.capability-rail { display: flex; align-items: center; justify-content: space-between; gap: 18px; overflow: hidden; padding: 18px 2px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #6d746f; font: 700 10px ui-monospace, monospace; letter-spacing: .11em; white-space: nowrap; }
.capability-rail i { flex: 1; min-width: 18px; height: 1px; background: var(--line); }
.section { padding: 120px 0; border-bottom: 1px solid var(--line); }
.beta-section { display: grid; grid-template-columns: minmax(340px, .9fr) minmax(420px, 1.1fr); gap: clamp(60px, 9vw, 140px); align-items: start; }
.beta-heading h2 { max-width: 650px; font-size: clamp(38px, 4vw, 52px); }
.beta-copy { padding-top: 8px; }
.beta-copy > p { max-width: 620px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.78; }
.beta-copy ul { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.beta-copy li { position: relative; padding: 13px 0 13px 27px; border-bottom: 1px solid var(--line); color: #404742; font-size: 13px; line-height: 1.55; }
.beta-copy li::before { content: "↳"; position: absolute; left: 0; color: var(--green); }
.beta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 30px; }
.section-intro { display: grid; grid-template-columns: 170px minmax(360px, 1fr) minmax(260px, .7fr); gap: 34px; align-items: start; }
.section-intro .section-index { margin-top: 8px; }
h2 { margin: 0; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.06; letter-spacing: -.055em; }
.section-intro > p:last-child, .api-copy > p { margin: 8px 0 0; color: var(--muted); line-height: 1.75; }
.steps { margin: 76px 0 0 170px; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.steps li { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 28px; align-items: center; min-height: 138px; border-bottom: 1px solid var(--line); }
.step-number { color: var(--green); font: 700 11px ui-monospace, monospace; }
.steps h3, .security-lines h3 { margin: 0; font-size: 21px; letter-spacing: -.025em; }
.steps p, .security-lines p { max-width: 600px; margin: 9px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.step-action { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0 7px; border-bottom: 1px solid currentColor; color: var(--green); font: 700 11px ui-monospace, monospace; letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.step-action:hover { color: var(--ink); }
.keepalive-guide { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(430px, 1.28fr); gap: 58px 80px; margin: 72px 0 0 170px; padding: 34px 38px 30px; border: 1px solid #29332d; background: var(--terminal); color: var(--terminal-text); box-shadow: 12px 14px 0 var(--paper-deep); }
.keepalive-guide h3 { margin: 10px 0 0; color: #f1f5f2; font-size: 26px; line-height: 1.25; letter-spacing: -.03em; }
.keepalive-guide > div > p:last-child { margin: 17px 0 0; color: #98a59c; font-size: 13px; line-height: 1.75; }
.keepalive-guide ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid #38443c; }
.keepalive-guide li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid #2c3730; }
.keepalive-guide li span { padding-top: 2px; color: var(--green-bright); font: 700 9px ui-monospace, monospace; }
.keepalive-guide li p { margin: 0; color: #cbd5ce; font-size: 13px; line-height: 1.65; }
.keepalive-guide li strong { color: #f3f7f4; }
.keepalive-note { grid-column: 1 / -1; margin: -9px 0 0; padding-top: 20px; border-top: 1px solid #38443c; color: #89968d; font-size: 12px; line-height: 1.72; }
.keepalive-note strong { color: var(--green-bright); }

.api-section { display: grid; grid-template-columns: minmax(340px, .82fr) minmax(500px, 1.18fr); gap: clamp(60px, 8vw, 120px); align-items: center; }
.api-copy h2 { max-width: 650px; }
.api-copy > p { max-width: 570px; margin-top: 27px; }
.check-list { margin: 34px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); color: #404742; font-size: 13px; }
.check-list li::before { content: "↳"; position: absolute; left: 0; color: var(--green); }
.code-window { overflow: hidden; border: 1px solid #29332d; background: var(--terminal); color: var(--terminal-text); box-shadow: 14px 16px 0 var(--paper-deep); }
.code-window-head { display: flex; align-items: center; justify-content: space-between; height: 48px; padding-right: 18px; border-bottom: 1px solid var(--terminal-line); }
.code-tabs { display: flex; height: 48px; align-items: end; gap: 6px; padding: 0 18px; color: #67756b; font: 700 10px ui-monospace, monospace; letter-spacing: .08em; }
.code-tabs button { height: 48px; padding: 0 8px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; }
.code-tabs button:hover { color: #b5c1b8; }
.code-tabs button.active { border-bottom-color: var(--green-bright); color: var(--green-bright); }
.copy-code { padding: 6px 8px; border: 1px solid #435047; background: transparent; color: #9aa69d; font: 700 10px ui-monospace, monospace; cursor: pointer; }
.copy-code:hover { border-color: var(--green-bright); color: var(--green-bright); }
pre { margin: 0; overflow-x: auto; padding: 30px 28px 35px; font: 500 12px/1.85 ui-monospace, SFMono-Regular, Menlo, monospace; }
.code-panel { min-height: 360px; }
[hidden] { display: none !important; }
.code-muted { color: #65736a; }
.code-string { color: #c6eb9c; }
.code-key { color: #9ac9e8; }

.skill-section { display: grid; grid-template-columns: minmax(340px, .82fr) minmax(520px, 1.18fr); gap: clamp(60px, 8vw, 120px); align-items: start; }
.skill-heading > p:not(.section-index) { max-width: 540px; margin: 28px 0 0; color: var(--muted); line-height: 1.75; }
.skill-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.skill-install-card { overflow: hidden; border: 1px solid #29332d; background: var(--terminal); color: var(--terminal-text); box-shadow: 14px 16px 0 var(--paper-deep); }
.skill-card-head { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 22px; border-bottom: 1px solid var(--terminal-line); color: #89968d; font: 700 9px ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.skill-ready { display: inline-flex; align-items: center; gap: 7px; color: var(--green-bright); }
.skill-ready i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px #b9f36a80; }
.install-label { margin: 28px 28px 12px; color: #849188; font: 700 10px ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.install-command { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: 0 28px; border: 1px solid #3a473f; background: #0d130f; }
.install-command code { overflow-x: auto; padding: 15px 16px; color: var(--green-bright); font: 600 11px/1.6 ui-monospace, monospace; white-space: nowrap; }
.install-command button { border: 0; border-left: 1px solid #3a473f; background: transparent; color: #9aa69d; padding: 0 14px; font: 700 10px ui-monospace, monospace; cursor: pointer; }
.install-command button:hover { background: #19221c; color: var(--green-bright); }
.alternate-install { margin: 13px 28px 0; color: #738078; font-size: 11px; line-height: 1.7; }
.alternate-install code { color: #a9b5ac; font-family: ui-monospace, monospace; }
.secret-note { margin: 13px 28px 0; color: #95a198; font-size: 12px; line-height: 1.7; }
.secret-note strong { color: #d9e4dc; }
.secret-note code { color: var(--green-bright); font-family: ui-monospace, monospace; }
.agent-prompts { margin-top: 27px; padding: 24px 28px 26px; border-top: 1px solid var(--terminal-line); }
.agent-prompts p { margin: 0 0 12px; color: #849188; font: 700 10px ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.agent-prompts ul { margin: 0; padding: 0; list-style: none; }
.agent-prompts li { position: relative; padding: 8px 0 8px 20px; border-bottom: 1px solid #202a23; color: #cbd6ce; font-size: 13px; line-height: 1.6; }
.agent-prompts li::before { content: ">"; position: absolute; left: 0; color: var(--green-bright); font-family: ui-monospace, monospace; }
.agent-compatibility { margin: 0; padding: 18px 28px 21px; border-top: 1px solid var(--terminal-line); color: #718077; font: 650 10px/1.7 ui-monospace, monospace; letter-spacing: .04em; }

.security-section { display: grid; grid-template-columns: minmax(340px, .9fr) minmax(480px, 1.1fr); gap: 90px; }
.security-lines { border-top: 1px solid var(--ink); }
.security-lines article { display: grid; grid-template-columns: 50px 1fr; gap: 18px; padding: 28px 0 31px; border-bottom: 1px solid var(--line); }
.security-lines article > span { color: var(--green); font: 700 10px ui-monospace, monospace; }
.project-status { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.status-list { border-top: 1px solid var(--ink); }
.status-list p { display: flex; align-items: center; gap: 14px; margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line); color: #4e5650; font-size: 13px; }
.status-list span { min-width: 66px; color: #707871; font: 700 9px ui-monospace, monospace; letter-spacing: .07em; }
.status-list .done { color: var(--green); }
.status-list .active { color: var(--orange); }

.closing { margin: 100px 0 0; padding: 78px clamp(28px, 7vw, 90px); background: var(--ink); color: white; }
.closing .section-index { color: var(--green-bright); }
.closing h2 { max-width: 850px; font-size: clamp(48px, 7vw, 92px); }
.closing > div { display: flex; align-items: center; gap: 28px; margin-top: 48px; }
.button.inverted { border-color: var(--green-bright); background: var(--green-bright); color: var(--ink); }
.text-link { color: #c3cbc5; font-size: 13px; text-underline-offset: 5px; }
footer { min-height: 150px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; color: #6b736d; font-size: 12px; }
.footer-brand { color: var(--ink); }
footer p { text-align: center; }
footer > div { display: flex; justify-content: flex-end; gap: 24px; }
footer a { text-underline-offset: 4px; }

.legal-content { max-width: 820px; margin: 0 auto; padding: 84px 0 120px; }
.legal-header { padding-bottom: 54px; border-bottom: 1px solid var(--ink); }
.legal-header h1 { font-size: clamp(48px, 6vw, 76px); }
.legal-header > p:last-child { max-width: 680px; margin: 28px 0 0; color: var(--muted); font-size: 16px; line-height: 1.78; }
.legal-content section { padding: 39px 0 42px; border-bottom: 1px solid var(--line); }
.legal-content section h2 { font-size: clamp(29px, 3.2vw, 39px); }
.legal-content section p, .legal-content section li { color: #424a44; font-size: 16px; line-height: 1.82; }
.legal-content section p { margin: 17px 0 0; }
.legal-content section ul { margin: 17px 0 0; padding-left: 1.25em; }
.legal-content section li + li { margin-top: 10px; }
.legal-content section strong { color: var(--ink); }
.legal-content section code { padding: 2px 4px; background: var(--paper-deep); color: var(--green); font: 700 .9em ui-monospace, monospace; }
.legal-content section a { color: var(--green); text-underline-offset: 4px; }
.legal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding-top: 35px; }

body:has(.key-dialog[open]) { overflow: hidden; }
.key-dialog { width: min(860px, calc(100% - 32px)); max-height: min(880px, calc(100dvh - 32px)); margin: auto; padding: 0; overflow: auto; border: 1px solid #29332d; background: var(--paper); color: var(--ink); box-shadow: 18px 20px 0 #11171338; }
.key-dialog::backdrop { background: #0c120ee0; backdrop-filter: blur(3px); }
.key-dialog-shell { min-width: 0; }
.key-dialog-head { position: sticky; z-index: 2; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 26px 30px 23px; border-bottom: 1px solid var(--line); background: #f3f1e9f5; backdrop-filter: blur(12px); }
.key-dialog-head .section-index { margin-bottom: 8px; }
.key-dialog-head h2 { font-size: clamp(31px, 4vw, 44px); }
.dialog-close { flex: 0 0 auto; padding: 7px 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--muted); font: 700 10px ui-monospace, monospace; letter-spacing: .06em; cursor: pointer; }
.dialog-close span { margin-left: 5px; font-size: 17px; line-height: 0; }
#key-request-view, .dialog-result { padding: 27px 30px 32px; }
.dialog-intro { max-width: 660px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.dialog-issuance-status { display: inline-flex; width: fit-content; margin: 16px 0 0; padding: 7px 9px; border: 1px solid var(--line); color: var(--muted); font: 650 10px ui-monospace, monospace; letter-spacing: .02em; }
.dialog-issuance-status[data-available="true"] { border-color: #75a98d; background: #e6f1e9; color: var(--green); }
.dialog-form { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 20px; margin-top: 25px; }
.dialog-form label { display: grid; min-width: 0; gap: 8px; color: #3d463f; font-size: 12px; font-weight: 720; }
.dialog-form label em { margin-left: 4px; color: var(--green); font-size: 9px; font-style: normal; }
.dialog-form label span { color: var(--muted); font-size: 10px; font-weight: 500; }
.dialog-form input, .dialog-form select, .dialog-form textarea { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #aeb3aa; border-radius: 0; outline: none; background: #fffef9; color: var(--ink); font: inherit; font-size: 13px; font-weight: 520; line-height: 1.5; }
.dialog-form textarea { min-height: 84px; resize: vertical; }
.dialog-form input:focus, .dialog-form select:focus, .dialog-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 2px #1d6b4526; }
.dialog-form-wide { grid-column: 1 / -1; }
.dialog-honeypot { position: absolute; left: -9999px; opacity: 0; }
.dialog-submit-row { display: flex; align-items: center; gap: 18px; margin-top: 3px; }
.dialog-submit-row .button { flex: 0 0 auto; cursor: pointer; }
.dialog-submit-row .button:disabled { cursor: wait; opacity: .6; }
.dialog-submit-row p { max-width: 430px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.dialog-form-error { min-height: 1.4em; margin: -8px 0 0; color: #9d2f28; font-size: 12px; }
.dialog-result .result-state { margin: 0 0 12px; color: var(--green); font: 750 10px ui-monospace, monospace; letter-spacing: .12em; }
.dialog-result > h2 { max-width: 650px; font-size: clamp(32px, 4.6vw, 50px); }
.dialog-result > p:not(.result-state) { max-width: 690px; margin: 16px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.dialog-result > p code { color: var(--green); font-family: ui-monospace, monospace; font-weight: 700; }
.issued-secret { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin-top: 22px; border: 1px solid #354139; background: var(--terminal); }
.issued-secret code { min-width: 0; overflow-x: auto; padding: 15px 16px; color: var(--green-bright); font: 650 12px/1.6 ui-monospace, monospace; white-space: nowrap; }
.issued-secret button, .handoff-copy-block button { border: 0; border-left: 1px solid #354139; background: transparent; color: #9ba79e; font: 700 9px ui-monospace, monospace; cursor: pointer; }
.issued-secret button { padding-inline: 15px; }
.issued-secret button:hover, .handoff-copy-block button:hover { color: var(--green-bright); }
.agent-handoff-steps { margin: 25px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.agent-handoff-steps li { display: grid; grid-template-columns: 38px 1fr; gap: 11px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.agent-handoff-steps li > span { padding-top: 2px; color: var(--green); font: 700 9px ui-monospace, monospace; }
.agent-handoff-steps strong { font-size: 13px; }
.agent-handoff-steps p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.handoff-copy-block { margin-top: 18px; border: 1px solid #354139; background: var(--terminal); color: var(--terminal-text); }
.handoff-copy-block > div { display: flex; align-items: center; justify-content: space-between; min-height: 37px; border-bottom: 1px solid #354139; }
.handoff-copy-block > div span { padding: 0 13px; color: #839087; font: 700 10px ui-monospace, monospace; letter-spacing: .1em; }
.handoff-copy-block button { align-self: stretch; padding-inline: 13px; }
.handoff-copy-block > code { display: block; overflow-x: auto; padding: 13px; color: var(--green-bright); font: 600 11px/1.7 ui-monospace, monospace; white-space: nowrap; }
.handoff-copy-block > p { margin: 0; padding: 13px; color: #cbd6ce; font-size: 12px; line-height: 1.7; }
.dialog-result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.dialog-result-actions .button { cursor: pointer; }

a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
@media (max-width: 980px) {
  .topbar { grid-template-columns: 1fr auto auto; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 62px; }
  .product-scene { width: min(720px, 100%); }
  .section-intro { grid-template-columns: 1fr; }
  .section-intro > p:last-child { max-width: 620px; }
  .steps { margin-left: 0; }
  .keepalive-guide { grid-template-columns: 1fr; margin-left: 0; }
  .api-section, .skill-section, .security-section, .project-status, .beta-section { grid-template-columns: 1fr; }
  .security-section { gap: 60px; }
}

@media (max-width: 640px) {
  .topbar, main, footer { width: min(100% - 28px, 1240px); }
  .topbar { height: 70px; }
  .topbar { gap: 0 12px; }
  .console-link { font-size: 10px; }
  .console-link span { font-size: 10px; }
  .hero { min-height: auto; gap: 46px; padding: 52px 0 64px; }
  h1 { font-size: clamp(42px, 13vw, 62px); }
  html[lang="en"] h1 { font-size: clamp(39px, 11.5vw, 54px); line-height: 1.02; letter-spacing: -.045em; }
  html[lang="en"] h2 { font-size: clamp(34px, 9.6vw, 42px); }
  .lede { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-text-link { padding: 10px 0; text-align: center; }
  .hero-facts { grid-template-columns: 1fr; gap: 14px; }
  .product-scene { min-height: 470px; box-shadow: 8px 10px 0 #d8d4c8; }
  .scene-head { grid-template-columns: 1fr 1fr; }
  .scene-head > span:nth-child(2) { display: none; }
  .terminal-line { grid-template-columns: 32px 1fr; font-size: 10px; }
  .message-event { margin: 15px 14px; }
  .phone-chip { right: 10px; bottom: 10px; }
  .capability-rail { justify-content: flex-start; }
  .capability-rail i { min-width: 30px; flex: 0 0 30px; }
  .section { padding: 86px 0; }
  h2 { font-size: 40px; }
  .beta-heading h2 { font-size: 36px; }
  .steps li { grid-template-columns: 38px 1fr; gap: 12px; padding: 25px 0; }
  .steps li > :last-child { grid-column: 2; justify-self: start; }
  .keepalive-guide { gap: 30px; padding: 27px 22px 24px; box-shadow: 7px 8px 0 var(--paper-deep); }
  .keepalive-guide h3 { font-size: 23px; }
  .api-section { gap: 48px; }
  .legal-content { padding: 60px 0 84px; }
  .legal-actions { align-items: stretch; flex-direction: column; }
  .legal-actions .button { width: 100%; }
  .code-window { width: 100%; box-shadow: 7px 8px 0 var(--paper-deep); }
  .code-tabs { gap: 0; padding-inline: 8px; }
  .code-tabs button { padding-inline: 7px; font-size: 9px; }
  .copy-code { margin-left: 4px; }
  pre { padding: 24px 18px; font-size: 10px; }
  .code-panel { min-height: 330px; }
  .skill-section { gap: 46px; }
  .skill-links { align-items: stretch; flex-direction: column; }
  .skill-links .button { width: 100%; }
  .skill-install-card { box-shadow: 7px 8px 0 var(--paper-deep); }
  .install-label, .alternate-install, .secret-note { margin-inline: 18px; }
  .install-command { grid-template-columns: 1fr; margin-inline: 18px; }
  .install-command button { min-height: 40px; border-top: 1px solid #3a473f; border-left: 0; }
  .agent-prompts, .agent-compatibility { padding-inline: 18px; }
  .closing { margin-top: 70px; padding: 54px 24px; }
  .closing > div { align-items: stretch; flex-direction: column; }
  footer { grid-template-columns: 1fr; gap: 22px; padding: 42px 0; text-align: left; }
  footer p { text-align: left; }
  footer > div { justify-content: flex-start; }
  .key-dialog { width: 100%; max-width: none; max-height: 100dvh; margin: 0; border-inline: 0; box-shadow: none; }
  .key-dialog-head { padding: 20px 18px 17px; }
  #key-request-view, .dialog-result { padding: 21px 18px 26px; }
  .dialog-form { grid-template-columns: 1fr; gap: 15px; }
  .dialog-form-wide { grid-column: auto; }
  .dialog-submit-row { align-items: stretch; flex-direction: column; }
  .dialog-submit-row .button { width: 100%; }
  .issued-secret { grid-template-columns: 1fr; }
  .issued-secret button { min-height: 40px; border-top: 1px solid #354139; border-left: 0; }
  .handoff-copy-block > code { white-space: normal; overflow-wrap: anywhere; }
  .dialog-result-actions { align-items: stretch; flex-direction: column; }
  .dialog-result-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
