:root{color-scheme:light dark;--bg:#fafbfa;--fg:#17211e;--muted:#69716d;--line:#dfe5e1;--surface:#fff;--accent:#235c48;--button:#fff;--soft:#f2f5f3;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-synthesis:none}
@media(prefers-color-scheme:dark){:root{--bg:#141816;--fg:#eef2ef;--muted:#a3ada6;--line:#303932;--surface:#1b211d;--accent:#a8d5ba;--button:#14261b;--soft:#232c26}}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--fg);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button{font:inherit}.shell{max-width:1120px;margin:auto;padding:0 48px;min-height:100svh;display:flex;flex-direction:column}header{height:112px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:12px;align-items:center;font-size:18px;font-weight:600;letter-spacing:.04em}.brand-sub{font-size:12px;color:var(--muted);font-weight:400;margin-left:10px;letter-spacing:.1em}.mark{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--accent);border-radius:10px;color:var(--accent);font-size:19px}.nav-link{display:flex;gap:14px;align-items:center;min-height:44px;font-size:14px}.nav-link:hover,.secondary:hover,footer a:hover{color:var(--accent)}main{width:100%;max-width:680px;margin:80px auto 72px;flex:1}.eyebrow{font-size:12px;letter-spacing:.18em;color:var(--accent);font-weight:600}h1{font-size:clamp(36px,5vw,54px);font-weight:550;letter-spacing:-.045em;line-height:1.3;margin:22px 0 16px}.intro{color:var(--muted);margin:0;font-size:17px}.actions{display:flex;gap:28px;align-items:center;margin:36px 0 52px}.primary{display:inline-flex;align-items:center;justify-content:space-between;gap:30px;background:var(--accent);color:var(--button);padding:12px 20px;border-radius:8px;font-size:15px;font-weight:550;min-height:48px}.primary:hover{filter:brightness(1.12)}.secondary{font-size:14px;display:flex;gap:14px;align-items:center;min-height:44px}.endpoint{border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:24px}.endpoint-top{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:12px}.endpoint h2{font-size:14px;font-weight:550;margin:0}.endpoint-top>span{font-size:12px;color:var(--muted)}.copy-row{display:flex;align-items:center;gap:16px;justify-content:space-between}code{font-family:"SFMono-Regular",Consolas,monospace;font-size:17px;overflow-wrap:anywhere;user-select:all}.copy-row button{border:1px solid var(--line);border-radius:7px;padding:8px 12px;background:var(--surface);color:var(--fg);cursor:pointer;display:flex;align-items:center;gap:8px;flex-shrink:0;font-size:13px;min-height:44px}.copy-row button:hover{background:var(--soft)}#copy-status{font-size:13px;color:var(--muted);margin:12px 0 0;min-height:21px}.guide{margin-top:28px;display:flex;align-items:center;gap:26px}.guide-label{font-size:13px;color:var(--muted);white-space:nowrap}.guide ol{margin:0;padding:0;list-style:none;display:flex;gap:24px;flex-wrap:wrap}.guide li{font-size:13px}.guide li > span:first-child{color:var(--muted);font-size:11px;margin-right:8px;font-family:monospace}footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:16px;padding:24px 0;font-size:12px;color:var(--muted)}footer a{min-height:28px}a,button{transition:background .15s,color .15s}a:focus-visible,button:focus-visible{outline:2px solid var(--accent);outline-offset:5px}.skip{position:absolute;top:-100px;padding:10px;background:var(--surface);z-index:10}.skip:focus{top:10px}@media(max-width:640px){.shell{padding:0 24px}header{height:88px}main{margin:54px auto 56px}.actions{gap:20px;margin:30px 0 36px;flex-wrap:wrap}.endpoint{padding:18px}code{font-size:14px}.copy-row{gap:10px}.guide{display:block}.guide ol{margin-top:14px;gap:12px 20px}footer{font-size:11px;flex-wrap:wrap}h1{font-weight:600}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.brand-logo{display:block;flex-shrink:0;border-radius:8px}.language-control{display:flex;align-items:center;gap:7px}.language-control select{font:inherit;font-size:13px;color:var(--fg);background:var(--bg);border:1px solid var(--line);border-radius:6px;padding:8px;min-height:40px;max-width:170px;cursor:pointer}.language-control select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}footer{align-items:center;flex-wrap:wrap}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Compact segmented control; native radio semantics preserve arrow-key access. */
.protocol-switch{display:inline-flex;max-width:100%;gap:3px;border:0;margin:0 0 18px;padding:4px;border-radius:10px;background:#f0f0f0;color:#777}
.protocol-switch label{position:relative;display:flex;align-items:center;justify-content:center;min-height:32px;padding:5px 13px;border:1px solid transparent;border-radius:7px;font-size:13px;line-height:20px;white-space:nowrap;cursor:pointer;transition:background .15s,color .15s,box-shadow .15s}
.protocol-switch label:hover{color:#333}
.protocol-switch label:has(input:checked){background:#fff;border-color:#e8e8e8;color:#262626;box-shadow:0 1px 3px #0000000d,0 1px 2px #00000008}
.protocol-switch input{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.protocol-switch label:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
@media(prefers-color-scheme:dark){.protocol-switch{background:#252a27;color:#929b95}.protocol-switch label:hover{color:#eef2ef}.protocol-switch label:has(input:checked){background:#3a413c;border-color:#465047;color:#f5f7f5;box-shadow:0 1px 3px #0003}}
@media(pointer:coarse){.protocol-switch label{min-height:40px}}

.endpoint-top{gap:12px;margin-bottom:18px;flex-wrap:wrap}.endpoint-top .protocol-switch{margin:0 0 0 auto;flex-shrink:0}.endpoint-top h2{flex-shrink:0}
@media(max-width:380px){.endpoint-top{gap:8px}.endpoint-top .protocol-switch label{padding:5px 9px;font-size:12px}}

footer .language-control{margin-left:auto}

.language-control{position:relative}
#language-trigger{display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--fg);cursor:pointer}
#language-trigger:hover,#language-trigger[aria-expanded=true]{background:var(--soft)}
#language-menu{position:absolute;right:0;bottom:calc(100% + 6px);z-index:50;min-width:144px;padding:4px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--fg);box-shadow:0 4px 12px #00000014}
#language-menu[hidden]{display:none}
#language-menu button{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;min-height:28px;padding:5px 8px;border:0;border-radius:6px;background:transparent;color:inherit;font-size:14px;line-height:20px;text-align:left;white-space:nowrap;cursor:pointer}
#language-menu button:hover,#language-menu button:focus-visible{background:var(--soft);outline:none}
.language-check{visibility:hidden}#language-menu [aria-checked=true] .language-check{visibility:visible}

#language-trigger{display:flex;align-items:center;gap:8px;width:auto;padding:0 10px;font-size:13px;white-space:nowrap}

.footer-legal{display:flex;align-items:center;flex-wrap:wrap;gap:16px;font-size:13px}.footer-legal a{padding-block:8px}

.home-models{margin-top:28px}.home-models h2{font-size:15px;font-weight:600;margin:0}.models-hint{font-size:13px;color:var(--muted);margin:6px 0 14px}.home-model-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.home-model-list button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--fg);cursor:pointer;text-align:left}.home-model-list button:hover,.home-model-list button[aria-pressed=true]{background:var(--soft);border-color:var(--accent)}.home-model-list code{font-size:13px;overflow-wrap:anywhere;min-width:0}.home-model-list button>span{display:flex;flex-shrink:0;color:var(--muted)}#model-status{font-size:12px;color:var(--muted);min-height:20px;margin:8px 0 0}#retry-models{border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--fg);padding:6px 12px;cursor:pointer}@media(max-width:420px){.home-model-list{grid-template-columns:minmax(0,1fr)}}

/* One connection card with vertically stacked sections on every screen. */
.connection-cards{border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:24px}.connection-cards>section{min-width:0;margin:0;padding:0;border:0;border-radius:0;background:transparent}.connection-cards>.home-models{margin-top:24px;padding-top:24px;border-top:1px solid var(--line)}.connection-cards h2{font-size:14px;font-weight:550}.connection-cards .home-model-list button{background:transparent}.connection-cards .home-model-list button:hover{background:var(--soft)}
@media(max-width:640px){.connection-cards{padding:18px}.connection-cards>.home-models{margin-top:20px;padding-top:20px}}

.connection-cards>.home-keys{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:24px;padding-top:24px;border-top:1px solid var(--line)}.keys-details{min-width:0;flex:1}#keys-description{font-size:13px;color:var(--muted);margin:8px 0 0}.keys-action{display:inline-flex;align-items:center;justify-content:center;gap:10px;flex-shrink:0;max-width:48%;padding:9px 12px;min-height:44px;border:1px solid var(--line);border-radius:7px;font-size:13px;text-align:center}.keys-action:hover{background:var(--soft);border-color:var(--accent)}.keys-action>span:last-child{flex-shrink:0}@media(max-width:640px){.connection-cards>.home-keys{margin-top:20px;padding-top:20px;gap:12px}}

/* Comfortable vertical reading flow, without forcing everything into one screen. */
header{height:64px;flex-shrink:0}main{max-width:760px;margin:4px auto 36px;flex:0 0 auto}h1{margin:0 0 12px;font-size:clamp(34px,4vw,42px);line-height:1.3}.intro{font-size:16px}.actions{margin:22px 0 28px;gap:24px}.primary{min-height:46px;padding:11px 18px}.secondary{min-height:44px}.connection-cards{padding:28px}.connection-cards>.home-keys,.connection-cards>.home-models{margin-top:24px;padding-top:24px}.connection-cards h2{font-size:15px;font-weight:600}.endpoint-top{margin-bottom:18px}#copy-status{margin-top:12px}.models-hint{margin:10px 0 16px}.home-model-list{gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}.home-model-list button{min-height:48px;padding:12px 14px}.home-model-list code{font-size:14px}#model-status:empty{display:none}#keys-description{margin-top:10px}.guide{margin-top:24px;gap:20px}.guide ol{gap:16px}.guide li{font-size:13px}footer{margin-top:auto;padding:18px 0}
@media(max-width:700px){.guide{display:none}}
@media(max-width:640px){header{height:56px}main{margin:4px auto 28px}.connection-cards{padding:20px}.connection-cards>.home-keys,.connection-cards>.home-models{margin-top:20px;padding-top:20px}.actions{gap:12px 18px;margin:20px 0 24px}.intro{font-size:15px}.home-model-list button{padding:10px}.home-model-list code{font-size:13px}}
@media(max-width:400px){.home-model-list{grid-template-columns:minmax(0,1fr)}}

/* Space above the introduction, independent of its internal spacing. */
.home-intro{margin-top:64px}

/* Copyable request examples, contained within the connection card. */
.connection-cards>.home-examples{margin-top:24px;padding-top:24px;border-top:1px solid var(--line)}
.examples-hint{color:var(--muted);font-size:13px;line-height:1.7;margin:12px 0 18px}
.example-tabs{display:flex;width:max-content;max-width:100%;margin:0 0 12px auto;padding:4px;overflow-x:auto;background:var(--soft);border-radius:14px}
.example-tabs button{flex:0 0 auto;font:inherit;font-size:14px;color:var(--muted);border:0;background:transparent;border-radius:10px;padding:8px 16px;cursor:pointer}
.example-tabs button[aria-selected=true]{color:var(--fg);background:var(--surface);box-shadow:0 1px 3px #0000001f,0 1px 2px #00000014}
#example-panel{position:relative;border:1px solid var(--line);border-radius:8px;background:var(--bg);min-width:0}
#example-panel pre{margin:0;padding:48px 18px 20px;overflow-x:auto;font-size:12px;line-height:1.9;tab-size:2}
#example-code{font-size:inherit;line-height:inherit;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--fg);white-space:pre}
#copy-example{position:absolute;top:8px;right:8px;display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:6px;background:var(--bg);color:var(--muted);cursor:pointer}
#copy-example:hover{color:var(--fg);background:var(--soft)}
#example-status{font-size:12px;color:var(--muted);margin:8px 0 0;min-height:18px}
.example-tabs button:focus-visible,#copy-example:focus-visible,#example-panel:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:600px){.example-tabs{width:100%;margin-left:0}.example-tabs button{flex:1;padding:7px 9px;font-size:12px}#example-panel pre{padding-right:12px;padding-left:12px}}
