/* XUAI v3 — product page. Original hero typography and shaders live separately. */
html { scroll-behavior: smooth; }
.page-top,.fluid-filter { position: absolute; top: 0; left: 0; }
#fluid-canvas { touch-action: pan-y pinch-zoom; }
.skip-link { position: fixed; top: 12px; left: 12px; transform: translateY(-160%); z-index: 60; background: #15291c; color: white; padding: 14px 22px; border-radius: 6px; font: 14px/1.4 sans-serif; }
.skip-link:focus { transform: translateY(0); }
.hero-explore { position: fixed; z-index: 3; bottom: 100px; left: 50%; transform: translateX(-50%); display: inline-flex; flex-direction: column; align-items: center; gap: 12px; color: rgba(255,255,255,.66); text-decoration: none; font: 400 12px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif; letter-spacing: .09em; white-space: nowrap; transition: color .2s,opacity .2s; }
.hero-explore svg { width: 22px; height: 22px; animation: explore-drift 2.6s ease-in-out infinite; }
.hero-explore:hover { color: #fff; }
.hero-explore:focus-visible { outline: 2px solid #c5dca9; outline-offset: 8px; }
.hero-is-away .hero,.hero-is-away .hero-explore,.hero-is-away .hint { visibility: hidden; }
/* Only browsers without usable WebGL receive this static backdrop. */
.fluid-unavailable body::before { background: radial-gradient(ellipse at 22% 56%,rgba(35,71,66,.64),transparent 43%),radial-gradient(ellipse at 81% 24%,rgba(72,48,99,.58),transparent 46%),#050709; }
.fluid-unavailable #fluid-canvas { opacity: 0; }
@keyframes explore-drift { 0%,100% {transform:translateY(0)} 50%{transform:translateY(5px)} }

.gateway-page { --paper:#f6f7f2; --ink:#1d2721; --muted:#6c7568; --line:#dce1d5; --green:#2d7954; --dark:#15231c; --lime:#c4dea3; --font:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Segoe UI","PingFang SC","Microsoft YaHei","Noto Sans CJK SC",Arial,sans-serif; --mono:"SFMono-Regular",Consolas,"Liberation Mono",monospace; position:relative; z-index:4; margin-top:100vh; min-height:100vh; background:var(--paper); color:var(--ink); padding:0 clamp(20px,5.4vw,96px); font:400 14px/1.65 var(--font); text-align:left; -webkit-font-smoothing:antialiased; isolation:isolate; }
.gateway-page *,.gateway-page *::before,.gateway-page *::after { box-sizing:border-box; }
.gateway-page :is(h2,h3,h4,p,ol) { margin:0; }
.gateway-page :is(button,input) { font:inherit; }
.gateway-page :is(p,h2,h3,h4,code,pre,small) { user-select:text; }
.gateway-page button { cursor:pointer; }
.gateway-page a { color:inherit; text-decoration:none; }
.gateway-page :is(a,button,summary) { -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
.gateway-page :is(a,button,summary,pre):focus-visible { outline:2px solid var(--green); outline-offset:5px; }
.gateway-page ::selection { background:#cbdab6; color:#19251b; }
.gateway-page :is(a,button)>svg { width:19px; height:19px; flex-shrink:0; }
.gateway-page [hidden] { display:none!important; }
.gateway-page :is(#model-directory,#integration) { scroll-margin-top:104px; }
.gateway-shell { max-width:1320px; margin-inline:auto; }
.gateway-nav { position:sticky; top:0; z-index:10; display:flex; align-items:center; justify-content:space-between; gap:28px; min-height:90px; border-bottom:1px solid var(--line); background:var(--paper); }
.gateway-wordmark { display:inline-flex; align-items:center; gap:12px; white-space:nowrap; }
.gateway-wordmark>svg { width:25px!important; height:25px!important; }
.gateway-wordmark strong { font-size:22px; font-weight:650; letter-spacing:-.04em; }
.wordmark-separator { height:15px; width:1px; background:#bdc7b9; margin-inline:2px; }
.gateway-wordmark small { color:#75806e; font-size:11px; letter-spacing:.12em; }
.gateway-navlinks { display:flex; align-items:center; gap:32px; font-size:12px; }
.gateway-navlinks a { transition:color .18s; }
.gateway-navlinks a:hover { color:var(--green); }
.nav-console { display:inline-flex; align-items:center; gap:8px; }
.nav-console>svg { width:16px!important; height:16px!important; }
.gateway-overview { display:grid; grid-template-columns:minmax(0,.87fr) minmax(0,1.13fr); align-items:center; gap:clamp(30px,3.8vw,58px); padding-block:66px 54px; }
.gateway-intro { min-width:0; }
.eyebrow { display:flex; align-items:center; gap:11px; color:var(--muted); font-size:10px; letter-spacing:.1em; line-height:1.5; }
.eyebrow>span { width:18px; height:2px; background:var(--green); }
.gateway-intro h2 { margin-top:27px; font:550 clamp(36px,4.04vw,62px)/1.27 var(--font); letter-spacing:-.025em; }
.gateway-intro h2>span { display:block; white-space:nowrap; }
.gateway-intro h2 em { color:var(--green); font-style:normal; letter-spacing:-.055em; font-weight:550; }
.gateway-description { margin-top:23px!important; font-size:13px; line-height:1.95; color:var(--muted); }
.gateway-actions { display:flex; align-items:center; gap:28px; margin-top:30px; }
.primary-button { display:inline-flex; gap:36px; justify-content:space-between; align-items:center; padding:13px 20px; border:1px solid var(--ink); background:var(--ink); color:white!important; border-radius:5px; font-size:12px; transition:background .2s,transform .2s; }
.primary-button:hover { background:#314a37; transform:translateY(-2px); }
.text-link { display:inline-flex; gap:10px; align-items:center; font-size:12px; line-height:1.7; }
.text-link svg { width:17px!important; height:17px!important; transition:transform .2s; }
.text-link:hover { color:var(--green); }
.text-link:hover svg { transform:translate(2px,-2px); }
.gateway-actions .text-link svg { width:17px; }
.coverage-note { display:flex; align-items:center; gap:20px; margin-top:35px; padding-top:23px; border-top:1px solid var(--line); max-width:354px; }
.coverage-number { font-size:36px; line-height:1.1; font-weight:500; letter-spacing:-.055em; font-variant-numeric:tabular-nums; }
.coverage-number>span { font-size:25px; margin-left:2px; }
.coverage-note>div:last-child { display:flex; flex-direction:column; gap:4px; border-left:1px solid var(--line); padding-left:20px; }
.coverage-note strong { font-size:11px; font-weight:500; }
.coverage-note>div:last-child>span { font-size:10px; color:var(--muted); }

/* Parallel routing — every edge receives the same always-on animation classes. */
.network-panel { background:#17241d; border:1px solid #253a2a; border-radius:15px; min-width:0; padding:19px 21px 16px; color:#d4decb; box-shadow:0 16px 35px -30px rgba(17,34,21,.7); }
.network-topline { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.network-kicker { font:9px/1.6 var(--mono); letter-spacing:.03em; color:#90a185; }
.network-topline>div { display:flex; align-items:center; gap:12px; flex-shrink:0; }
.simulation-label { color:#8d9c84; font-size:9px; white-space:nowrap; }
.motion-control { display:inline-flex; align-items:center; justify-content:center; gap:4px; background:none; color:#c2cfb8; border:1px solid #3a4c35; border-radius:4px; padding:3px 6px; font-size:9px!important; }
.motion-control svg { width:13px!important; height:13px!important; }
.motion-control:hover { background:#2b3d2b; }
.network-panel :is(button):focus-visible { outline-color:#c4dea3; }
.network-stage { position:relative; width:100%; aspect-ratio:640/400; margin-block:19px 14px; container-type:inline-size; }
.network-grid { position:absolute; inset:0; background-image:radial-gradient(circle,rgba(157,184,135,.28) .7px,transparent .85px); background-size:19px 19px; mask-image:radial-gradient(ellipse at 52% 50%,#000 15%,transparent 72%); -webkit-mask-image:radial-gradient(ellipse at 52% 50%,#000 15%,transparent 72%); }
.network-lines { position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.network-orbit { stroke:#35442e; stroke-width:.8; opacity:.65; }
.orbit-inner { opacity:.4; }
.flow-track { stroke:#799067; stroke-width:1; opacity:.28; }
.flow-line { stroke:#9abe7d; stroke-width:1.35; stroke-dasharray:8 16; stroke-linecap:round; animation:route-forward var(--flow-duration,3.5s) linear infinite; animation-delay:var(--flow-delay,0s); opacity:.85; transition:stroke .2s,stroke-width .2s,opacity .2s; }
.flow-return { stroke:#d9e6cb; stroke-width:.85; stroke-dasharray:1 31; stroke-linecap:round; animation:route-backward calc(var(--flow-duration,3.5s)*1.15) linear infinite; animation-delay:var(--flow-delay,0s); opacity:.36; }
.packet-core { fill:#c6e89e; }
.packet-halo { fill:#b7e68c; opacity:.13; }
.route-edge.is-selected .flow-line { stroke:#e0fbc0; stroke-width:2; opacity:1; }
.route-edge.is-selected .flow-track { stroke:#b3da83; opacity:.5; }
.route-edge.is-selected .packet-core { fill:white; }
.incoming-edge .flow-line { stroke:#c5dcaa; }
@keyframes route-forward { from{stroke-dashoffset:0} to{stroke-dashoffset:-48} }
@keyframes route-backward { from{stroke-dashoffset:0} to{stroke-dashoffset:64} }
.network-panel.is-motion-paused :is(.flow-line,.flow-return) { animation-play-state:paused; }
.application-node,.gateway-hub,.route-provider { position:absolute; transform:translate(-50%,-50%); }
.application-node { left:8.75%; top:50%; width:13.75%; height:18%; border:1px solid #43543a; background:#1c2c20; border-radius:9px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; color:#9eae90; }
.application-node strong { font:500 22px/1.4 var(--mono); color:#c4d5b0; }
.application-node>span { font-size:10px; }
.gateway-hub { left:38.75%; top:50%; width:15.625%; height:25%; border-radius:23%; background:#cfdfa9; border:1px solid #e4ebc3; box-shadow:0 0 0 7px rgba(173,203,132,.045),0 8px 28px #111c1599; display:flex; flex-direction:column; align-items:center; justify-content:center; color:#22351f; gap:4px; z-index:2; }
.gateway-hub svg { width:25%; height:25%; color:#2c4925; }
.gateway-hub strong { font-size:22px; letter-spacing:-.05em; line-height:1.2; }
.gateway-hub small { font:7px/1.4 var(--mono); letter-spacing:.13em; }
.route-provider { display:flex; align-items:center; gap:10px; left:var(--node-x); top:var(--node-y); width:var(--node-width); height:11%; padding:0 11px; border:1px solid #41533a; border-radius:7px; background:#203024; color:#d1dcc8; white-space:nowrap; text-align:left; font-size:11px!important; transition:background .2s,border-color .2s,box-shadow .2s; }
.provider-symbol { display:flex; align-items:center; justify-content:center; width:18px; min-width:18px; font:500 17px/1.2 var(--font); color:#c3d8ae; }
.symbol-openai { border:1px solid #b2c59d; border-radius:6px; font-size:12px; height:19px; }
.symbol-claude { font-family:Georgia,serif; }
.symbol-gemini { font-weight:650; }
.route-provider i { margin-left:auto; width:4px; height:4px; flex:0 0 4px; border-radius:50%; background:#88a66d; opacity:.8; }
.route-provider:hover,.route-provider.is-selected { border-color:#c2dd9d; background:#31482e; box-shadow:0 0 0 3px #b5dd8309; }
.route-provider.is-selected i { background:#d3efa9; }
.network-bottomline { display:flex; align-items:center; justify-content:space-between; gap:10px; border-top:1px solid #3b4b31; padding-top:13px; font-size:10px; }
.network-mode { display:flex; align-items:center; gap:7px; color:#c4d6b1; white-space:nowrap; }
.network-mode>i { width:5px; height:5px; border-radius:50%; background:#b5d686; }
.diagram-only { color:#839575; }
#network-selection { color:#95aa84; text-align:right; }
.network-instruction { color:#7f9272; margin-top:8px!important; font-size:9px; }
.network-panel.motion-is-reduced .flow-line { animation:none; stroke-dasharray:none; }
.network-panel.motion-is-reduced :is(.flow-return,.flow-packet) { display:none; }
@supports (font-size:1cqw) { .route-provider{font-size:1.72cqw!important;padding-inline:1.65cqw;gap:1.4cqw} .provider-symbol{font-size:2.65cqw; width:2.8cqw; min-width:2.8cqw} .symbol-openai{font-size:1.9cqw;height:3cqw;border-radius:.8cqw} .application-node strong{font-size:3.6cqw} .application-node>span{font-size:1.65cqw} .gateway-hub strong{font-size:3.6cqw} .gateway-hub small{font-size:1.1cqw} .route-provider i{width:.7cqw;height:.7cqw;flex-basis:.7cqw} }

.value-strip { display:flex; align-items:center; justify-content:space-between; gap:18px; padding-block:24px; border-block:1px solid var(--line); font-size:12px; }
.value-caption { font-size:10px; color:var(--muted); line-height:1.7; }
.value-caption strong { font-weight:500; color:var(--ink); }
.value-strip>span:not(:first-child) { display:flex; align-items:center; gap:13px; }
.value-strip i { font:10px/1 var(--mono); color:#8c9982; font-style:normal; }
.value-strip .text-link { font-size:11px; }
.model-directory { padding-top:71px; }
.section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:32px; margin-bottom:30px; }
.section-heading h3 { font-size:34px; line-height:1.4; letter-spacing:-.025em; font-weight:550; margin-top:12px; }
.section-aside { display:flex; flex-direction:column; align-items:flex-end; gap:8px; padding-bottom:4px; }
.section-aside>span { font-size:10px; color:var(--muted); }
.section-aside .text-link { font-size:11px; }
.family-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:21px; }
.family-card { overflow:hidden; border:1px solid var(--line); border-radius:9px; background:#fafbf7; transition:border-color .2s,transform .2s,box-shadow .2s; min-width:0; }
.family-card:hover { border-color:#a6b39a; transform:translateY(-3px); box-shadow:0 8px 20px -18px #263d21; }
.family-card.is-selected { border-color:#7e9c64; }
.family-visual { position:relative; aspect-ratio:2.55; min-height:126px; overflow:hidden; border-bottom:1px solid var(--line); background:#e9ede3; }
.family-index { position:absolute; left:19px; top:16px; z-index:1; font:9px/1.3 var(--mono); color:#6e7b63; }
.family-series { position:absolute; bottom:15px; left:19px; font:8px/1.3 var(--mono); letter-spacing:.06em; color:#8c997f; }
.family-artwork { position:absolute; width:100%; height:145%; top:-22%; left:13%; stroke:#708663; stroke-width:.8; opacity:.77; transition:transform .5s,opacity .5s; }
.family-card:hover .family-artwork { transform:scale(1.065); opacity:1; }
.family-body { padding:20px 20px 16px; }
.family-name { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.family-name h4 { font-size:24px; font-weight:550; line-height:1.3; letter-spacing:-.025em; }
.family-name>span { font-size:10px; color:var(--muted); }
.family-body>p { font-size:12px; line-height:1.8; color:var(--muted); margin-top:12px; max-width:30em; min-height:43px; }
.family-bottom { display:flex; align-items:center; justify-content:space-between; gap:8px; padding-top:16px; margin-top:14px; border-top:1px solid #e5e9df; }
.family-bottom>span { font-size:10px; color:#707d65; }
.family-connect { display:inline-flex; align-items:center; justify-content:center; border:1px solid #d5decf; background:#eef2e8; color:#496437; border-radius:50%; width:28px; height:28px; flex:0 0 28px; transition:background .2s,color .2s; }
.family-connect svg { width:15px!important; height:15px!important; }
.family-connect:hover { background:#30452c; color:white; }
.directory-disclaimer { font-size:10px; color:#89907f; margin-top:17px!important; line-height:1.8; }
.ecosystem { border-block:1px solid var(--line); margin-top:29px; }
.ecosystem>summary { padding:24px 0; display:flex; justify-content:space-between; align-items:center; gap:20px; cursor:pointer; list-style:none; }
.ecosystem>summary::-webkit-details-marker { display:none; }
.ecosystem summary>span:first-child { display:flex; gap:22px; align-items:center; }
.ecosystem summary strong { font-size:14px; font-weight:500; }
.ecosystem summary small { font-size:10px; color:var(--muted); }
.expand-label { display:inline-flex; align-items:center; gap:13px; font-size:11px; white-space:nowrap; }
.expand-label i { border:1px solid #cbd6c1; border-radius:50%; width:23px; height:23px; display:flex; align-items:center; justify-content:center; font-style:normal; font-size:17px; font-weight:300; transition:transform .2s; }
.ecosystem[open] .expand-label i { transform:rotate(45deg); }
.ecosystem-content { padding:0 0 28px; }
.ecosystem-content>p { font-size:11px; color:var(--muted); }
.ecosystem-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1px; background:var(--line); border:1px solid var(--line); margin:19px 0; }
.ecosystem-grid>span { display:flex; align-items:center; gap:15px; padding:14px 16px; background:var(--paper); font-size:12px; }
.ecosystem-grid small { font:9px/1 var(--mono); color:#8b957f; }

.integration-panel { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:70px; padding-top:77px; align-items:start; }
.integration-copy h3 { font-size:32px; font-weight:550; line-height:1.45; letter-spacing:-.025em; margin-top:14px; }
.integration-description { margin-top:18px!important; font-size:12px; line-height:1.95; color:var(--muted); }
.setup-steps { padding:0; list-style:none; display:flex; flex-direction:column; gap:24px; margin-top:30px!important; }
.setup-steps>li { display:flex; gap:16px; align-items:start; }
.setup-steps>li>span { display:flex; align-items:center; justify-content:center; width:27px; height:27px; flex:0 0 27px; border:1px solid #d0dac6; border-radius:50%; font:9px/1 var(--mono); color:#64824b; }
.setup-steps strong { font-size:12px; font-weight:500; }
.setup-steps p { font-size:11px; color:var(--muted); line-height:1.8; margin-top:3px; }
.integration-console { margin-top:28px; }
.code-workspace { overflow:hidden; border-radius:10px; background:#19251f; border:1px solid #34432c; color:#c8d8b4; min-width:0; }
.code-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:59px; padding:0 19px; border-bottom:1px solid #38452f; }
.code-tabs { display:flex; gap:21px; align-self:stretch; }
.code-tabs button { background:none; border:0; border-bottom:2px solid transparent; padding:0 1px; color:#819471; font-size:12px; }
.code-tabs button.is-active { border-bottom-color:#c6daa5; color:#e0ebcf; }
.code-workspace :is(button,pre):focus-visible { outline-color:#b7d88b; outline-offset:-4px; }
.copy-code { display:inline-flex; align-items:center; gap:7px; background:none; color:#a8bb92; border:1px solid #48583d; padding:5px 9px; border-radius:4px; font-size:10px!important; }
.copy-code svg { width:14px!important; height:14px!important; }
.copy-code:hover { background:#293b27; }
.code-filebar { display:flex; align-items:center; justify-content:space-between; gap:12px; color:#6f8262; font:10px/1.6 var(--mono); padding:17px 23px 0; }
#code-family-label { font:10px/1.6 var(--font); text-align:right; color:#91a37f; }
#code-example { margin:0; padding:20px 23px 27px; overflow:auto; min-height:287px; max-height:403px; scrollbar-width:thin; scrollbar-color:#516443 #19251f; font:11.5px/1.92 var(--mono); tab-size:2; user-select:text; }
#request-code { display:block; font:inherit; min-width:max-content; }
.code-comment { color:#728464; }
.code-string { color:#c7dba5; }
.code-command { color:#e5d4aa; }
.code-caption { display:flex; align-items:flex-start; gap:9px; border-top:1px solid #34452c; padding:13px 20px; color:#829473; font-size:9px; line-height:1.9; }
.code-caption>span { display:inline-flex; align-items:center; justify-content:center; border:1px solid #677d55; width:13px; height:13px; flex:0 0 13px; border-radius:50%; margin-top:3px; font:9px/1 Georgia,serif; }
.integration-note { font-size:10px; color:#8b9383; line-height:1.9; margin-top:23px!important; max-width:850px; }
.support-stack { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.support-card { min-height: 260px; padding: 28px; border: 1px solid #d8d3ee; border-radius: 10px; background: #fbfaff; color: #252039; }
.support-card h4 { margin: 13px 0 0; font: 550 25px/1.35 var(--font); letter-spacing: -.025em; }
.support-card p { margin: 12px 0 0; color: #77738b; font: 12px/1.9 var(--font); max-width: 32em; }
.support-kicker { color: #8175b5; font: 10px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.support-action { display: inline-flex; align-items: center; gap: 22px; margin-top: 28px; color: #5f48bb; font: 600 12px/1.4 var(--font); text-decoration: none; }
.support-action span { font-size: 17px; font-weight: 400; }
.support-action:hover { color: #3f2a94; }
.support-contacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.support-contact { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid #d8d3ee; border-radius: 6px; background: rgba(255,255,255,.66); color: #5d547e; font: 700 11px/1 var(--font); text-decoration: none; transition: border-color .2s, background .2s, transform .2s; }
.support-contact:hover { border-color: #aa98e6; background: #fff; transform: translateY(-1px); }
.support-contact[role="button"] { cursor: pointer; user-select: none; }

/* Use one restrained radius across the main card surfaces. */
.network-panel,
.family-card,
.code-workspace,
.api-reference,
.support-card,
.invoice-card { border-radius: 12px; }
.support-contact { border-radius: 9px; }
.support-contact svg { width: 17px; height: 17px; padding: 3px; box-sizing: content-box; border-radius: 50%; }
.support-wechat { color: #138b55; }
.support-wechat svg { fill: #1aad67; background: #e5f7ed; }
.support-qq,.support-qq-group { color: #326da9; }
.support-qq svg { fill: #12b7f5; background: #e3f6fd; }
.support-qq-group svg { fill: #3478c8; background: #e7f0fc; }
.support-contact-heading { display: flex; align-items: center; justify-content: space-between; margin-top: 25px; color: #8992a6; font: 10px/1.3 var(--font); }
.support-contact-heading span:last-child { display: inline-flex; align-items: center; gap: 6px; color: #3d966c; }
.support-contact-heading span:last-child::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #43b27b; box-shadow: 0 0 0 3px rgba(67,178,123,.14); }
.support-contacts { margin-top: 9px; }
.support-availability { display: flex; align-items: center; gap: 9px; margin-top: 17px; padding-top: 13px; border-top: 1px solid #e3def2; color: #778198; font: 11px/1.4 var(--font); }
.support-availability span { display: inline-flex; align-items: center; gap: 6px; }
.support-availability span i { width: 5px; height: 5px; border-radius: 50%; background: #43b27b; }
.support-availability strong { color: #51418e; font-weight: 600; }
.support-availability small { color: #a0a8b7; font-size: 10px; }
.support-variant-1 .support-action { margin-top: 17px; }
.support-card > p strong { color: #4f3d9c; font-weight: 700; }
.invoice-card { padding: 22px 28px; border: 1px solid #d8e0eb; border-radius: 10px; background: #f8fafc; color: #2c3547; }
.invoice-kicker { color: #7b8aa0; font: 10px/1.3 var(--mono); letter-spacing: .12em; }
.invoice-card h4 { margin: 9px 0 0; font: 600 20px/1.35 var(--font); letter-spacing: -.02em; }
.invoice-card p { margin: 9px 0 0; color: #68758a; font: 11px/1.75 var(--font); }
.invoice-card p strong { color: #4f3d9c; font-weight: 700; }
.invoice-columns { display: grid; grid-template-columns: .6fr 1.4fr; align-items: start; gap: 28px; margin-top: 17px; }
.invoice-columns>div { display: flex; flex-direction: column; gap: 6px; }
.invoice-columns b { margin-bottom: 2px; color: #59677b; font: 600 10px/1.3 var(--font); }
.invoice-columns span { color: #7b8799; font: 10px/1.45 var(--font); }
.invoice-foot { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 17px; padding-top: 13px; border-top: 1px solid #e0e6ee; color: #8a95a5; font: 10px/1.4 var(--font); }
.invoice-foot a { color: #5f48bb; font-weight: 600; text-decoration: none; white-space: nowrap; }
.invoice-foot a span { margin-left: 8px; font-size: 15px; font-weight: 400; }
.support-variant-1 { display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(145deg,#fbfaff 0%,#f3f0ff 100%); }
.support-variant-1::after { content: ''; align-self: flex-end; width: 74px; height: 74px; margin-top: -54px; border: 1px solid #d7cef5; border-radius: 50%; box-shadow: 0 0 0 13px #f6f3ff, 0 0 0 14px #dfd8f7; opacity: .8; }
.support-variant-2 { display: grid; grid-template-columns: 42px minmax(0,1fr); column-gap: 16px; align-content: start; background: #f5f7fc; }
.support-variant-2 .support-icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: #7359d2; color: #fff; font: 20px/1 var(--font); }
.support-variant-2 h4 { margin-top: 8px; font-size: 21px; }
.support-variant-2 .support-action { grid-column: 2; margin-top: 25px; }
.support-variant-3 { background: #fff; }
.support-variant-3 h4 { max-width: 13em; }
.support-variant-3 ul { display: grid; gap: 11px; margin: 22px 0 0; padding: 0; list-style: none; color: #5f6578; font: 11px/1.5 var(--font); }
.support-variant-3 li { display: flex; align-items: center; gap: 11px; }
.support-variant-3 li span { color: #9b8bd3; font: 9px/1 var(--mono); }
.support-variant-4 { display: grid; grid-template-columns: 70px minmax(0,1fr); gap: 18px; align-content: start; background: #f8fbfa; border-color: #d7e7df; }
.support-variant-4 .support-orbit { position: relative; width: 70px; height: 70px; border: 1px solid #b7d6c7; border-radius: 50%; }
.support-variant-4 .support-orbit::before,.support-variant-4 .support-orbit::after { content: ''; position: absolute; inset: 10px; border: 1px solid #cde4d8; border-radius: 50%; }
.support-variant-4 .support-orbit::after { inset: 20px; border-color: #9bcbb4; }
.support-variant-4 .support-orbit b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #438b69; font: 600 21px/1 var(--font); }
.support-variant-4 .support-orbit i { position: absolute; top: 5px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: #57a77d; }
.support-variant-4 h4 { margin-top: 9px; font-size: 21px; }
.support-variant-4 .support-action { grid-column: 2; margin-top: 6px; }
.support-variant-5 { background: #101a2b; border-color: #293b58; color: #f0f4fb; }
.support-variant-5 .support-kicker { color: #9b89e9; }
.support-variant-5 p { color: #9caec8; }
.support-variant-5 .support-action { color: #c7baff; }
.support-variant-5 .support-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 21px; }
.support-variant-5 .support-meta span { padding: 5px 7px; border: 1px solid #3d5274; border-radius: 4px; color: #aec0db; font: 9px/1 var(--mono); }
.noscript-code { padding:20px; color:#c6d6b2; font-size:12px; }
.faq-section { display:grid; grid-template-columns:.8fr 1.2fr; gap:70px; padding-block:56px; margin-top:55px; border-top:1px solid var(--line); }
.faq-section h3 { font-size:24px; font-weight:550; margin-top:13px; letter-spacing:-.015em; }
.faq-list details { border-bottom:1px solid var(--line); }
.faq-list details:first-child { border-top:1px solid var(--line); }
.faq-list summary { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:17px 0; font-size:12px; cursor:pointer; list-style:none; }
.faq-list summary::-webkit-details-marker { display:none; }
.faq-list summary>span { font-size:20px; color:#849773; font-weight:300; transition:transform .2s; }
.faq-list details[open] summary>span { transform:rotate(45deg); }
.faq-list p { font-size:11px; color:var(--muted); line-height:2; padding-bottom:18px; max-width:53em; }
.gateway-footer { border-top:1px solid var(--line); padding-block:29px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.gateway-footer>span { font-size:11px; color:#7d8874; }
.gateway-footer>.text-link { font-size:10px; }
.gateway-footer>.text-link svg { transform:rotate(180deg); }
.sr-only { position:absolute!important; height:1px!important; width:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }

@media(min-width:1700px) { .gateway-overview{padding-block:77px 63px;} .network-panel{padding:21px 24px 18px;} }
@media(max-width:1180px) { .gateway-page{padding-inline:36px;} .gateway-overview{gap:26px;grid-template-columns:minmax(0,.91fr) minmax(0,1.09fr);} .gateway-intro h2{font-size:4.15vw;} .network-panel{padding:16px 15px 14px;} .network-kicker{font-size:8px;} .network-topline>div{gap:7px;} .network-bottomline{font-size:9px;} .network-instruction{font-size:8px;} .value-strip{gap:12px;} .value-strip>span:not(:first-child){gap:8px;font-size:11px;} .family-body{padding-inline:17px;} .family-name h4{font-size:22px;} .integration-panel,.faq-section{gap:44px;} .integration-copy h3{font-size:29px;} }
@media(max-width:960px) { .gateway-page{padding-inline:30px;} .gateway-nav{min-height:79px;} .gateway-overview{grid-template-columns:1fr;gap:35px;padding-block:42px 37px;} .gateway-intro{max-width:680px;} .gateway-intro h2{font-size:56px;} .gateway-description{font-size:14px;} .coverage-note{margin-top:26px;padding-top:21px;} .network-panel{width:100%;padding:22px 24px 18px;} .network-stage{max-width:680px;margin-inline:auto;margin-block:17px 13px;} .network-kicker{font-size:10px;} .simulation-label,.motion-control{font-size:10px!important;} .network-bottomline{font-size:11px;} .network-instruction{font-size:10px;} .value-strip>span:nth-child(4){display:none;} .family-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;} .section-heading h3{font-size:29px;} .section-aside .text-link{font-size:10px;} .family-visual{aspect-ratio:2.4;} .integration-panel{grid-template-columns:1fr;gap:30px;padding-top:57px;} .integration-copy h3{font-size:34px;} .integration-description{font-size:13px;} .setup-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px;} .setup-steps>li{flex-direction:column;gap:10px;} .integration-console{margin-top:22px;} #code-example{font-size:12px;} .faq-section{grid-template-columns:1fr;gap:24px;margin-top:36px;padding-block:38px;} .model-directory{padding-top:54px;} .ecosystem summary>span:first-child{gap:14px;} .ecosystem-grid{grid-template-columns:repeat(3,minmax(0,1fr));} }
@media(max-width:640px) { .gateway-page{padding-inline:20px;} .gateway-nav{min-height:70px;gap:14px;} .gateway-wordmark{gap:9px;} .gateway-wordmark strong{font-size:20px;} .gateway-wordmark>svg{width:22px!important;height:22px!important;} .gateway-nav .wordmark-separator,.gateway-nav .gateway-wordmark small{display:none;} .gateway-navlinks{gap:18px;font-size:11px;} .gateway-navlinks .nav-console>svg{width:14px!important;height:14px!important;} .gateway-navlinks .nav-console{gap:4px;} .gateway-overview{padding-top:32px;gap:28px;padding-bottom:26px;} .eyebrow{font-size:9px;} .gateway-intro h2{font-size:clamp(32px,8.4vw,50px);margin-top:20px;letter-spacing:-.015em;line-height:1.32;} .gateway-description{font-size:12px;margin-top:19px!important;line-height:1.95;} .gateway-actions{margin-top:22px;gap:24px;} .primary-button{padding:12px 17px;font-size:12px;gap:35px;} .text-link{font-size:11px;} .coverage-note{margin-top:25px;padding-top:19px;max-width:100%;gap:16px;} .coverage-number{font-size:33px;} .coverage-note>div:last-child{padding-left:16px;gap:2px;} .coverage-note strong{font-size:11px;} .coverage-note>div:last-child>span{font-size:10px;} .network-panel{padding:14px 11px 12px;border-radius:10px;} .network-topline{gap:5px;} .network-kicker{font-size:7px;letter-spacing:-.015em;} .network-topline>div{gap:6px;} .simulation-label{font-size:8px!important;} .motion-control{font-size:8px!important;padding:2px 4px;gap:1px;} .motion-control svg{width:11px!important;height:11px!important;} .network-stage{margin-block:15px 12px;} .network-bottomline{font-size:8px;padding-top:10px;gap:5px;} .network-mode{gap:5px;} #network-selection{max-width:56%;} .network-instruction{font-size:8px;line-height:1.75;margin-top:7px!important;} .route-provider{border-radius:4px;gap:5px;} .route-provider .provider-symbol{font-size:11px;min-width:11px;width:11px;} .route-provider .symbol-openai{font-size:8px;height:12px;} .route-provider{font-size:8px!important;padding-inline:5px;} .application-node{border-radius:5px;} .application-node strong{font-size:16px;} .application-node>span{font-size:7px;} .gateway-hub{gap:2px;box-shadow:0 0 0 4px #b2d39308,0 4px 17px #111c1577;} .gateway-hub strong{font-size:15px;} .gateway-hub small{font-size:5px;} .network-grid{background-size:12px 12px;} .route-provider i{width:3px;height:3px;flex-basis:3px;} .value-strip{display:grid;grid-template-columns:1fr 1fr;gap:14px 20px;padding-block:20px;} .value-caption{display:none;} .value-strip>span:nth-child(4){display:flex;} .value-strip>span:not(:first-child){font-size:10px;gap:9px;} .value-strip .text-link{font-size:9px;gap:4px;} .value-strip .text-link>svg{width:13px!important;height:13px!important;} .model-directory{padding-top:39px;} .section-heading{display:block;margin-bottom:22px;} .section-heading h3{font-size:25px;margin-top:11px;letter-spacing:-.02em;} .section-aside{align-items:flex-start;gap:5px;margin-top:14px;flex-direction:row;align-items:center;justify-content:space-between;} .section-aside>span{font-size:9px;} .section-aside .text-link{font-size:9px;gap:5px;} .section-aside .text-link>svg{width:13px!important;height:13px!important;} .family-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;} .family-visual{aspect-ratio:1.5;min-height:0;} .family-index{font-size:7px;left:10px;top:10px;} .family-series{font-size:6px;left:10px;bottom:10px;} .family-artwork{left:3%;width:124%;height:145%;top:-18%;stroke-width:1;} .family-body{padding:14px 11px 12px;} .family-name{display:block;} .family-name h4{font-size:21px;} .family-name>span{display:block;font-size:8px;margin-top:3px;} .family-body>p{font-size:10px;line-height:1.8;margin-top:10px;min-height:54px;} .family-bottom{padding-top:10px;margin-top:10px;gap:3px;} .family-bottom>span{font-size:8px;line-height:1.8;max-width:82px;} .family-connect{width:23px;height:23px;flex-basis:23px;} .family-connect svg{width:13px!important;height:13px!important;} .directory-disclaimer{font-size:9px;} .ecosystem{margin-top:23px;} .ecosystem>summary{padding:19px 0;gap:10px;} .ecosystem summary>span:first-child{display:flex;flex-direction:column;align-items:flex-start;gap:3px;} .ecosystem summary strong{font-size:12px;} .ecosystem summary small{font-size:9px;} .expand-label{font-size:10px;gap:8px;} .ecosystem-grid{grid-template-columns:repeat(2,minmax(0,1fr));} .ecosystem-grid>span{font-size:10px;gap:11px;padding:12px;} .ecosystem-content>p{font-size:10px;} .integration-panel{padding-top:43px;gap:26px;} .integration-copy h3{font-size:27px;line-height:1.45;} .integration-description{font-size:12px;margin-top:16px!important;} .setup-steps{display:flex;gap:19px;margin-top:24px!important;} .setup-steps>li{flex-direction:row;gap:13px;} .setup-steps strong{font-size:12px;} .setup-steps p{font-size:10px;} .code-toolbar{padding-inline:14px;min-height:52px;} .code-tabs{gap:20px;} .code-tabs button{font-size:11px;} .copy-code{font-size:9px!important;padding:5px 7px;gap:5px;} .copy-code svg{width:12px!important;height:12px!important;} .code-filebar{padding:14px 14px 0;font-size:9px;} #code-family-label{font-size:9px;} #code-example{padding:16px 14px 22px;font-size:10px;min-height:260px;max-height:350px;} .code-caption{padding:12px 14px;font-size:8px;} .integration-note{font-size:9px;margin-top:15px!important;} .faq-section{margin-top:29px;padding-block:29px;gap:20px;} .faq-section h3{font-size:23px;margin-top:10px;} .faq-list summary{font-size:11px;padding-block:15px;} .faq-list p{font-size:10px;} .gateway-footer{flex-wrap:wrap;gap:18px;padding-block:24px;} .gateway-footer>.gateway-wordmark{gap:9px;} .gateway-footer .gateway-wordmark small{font-size:10px;} .gateway-footer>span{display:none;} .gateway-footer>.text-link{font-size:9px;} .hero-explore{bottom:98px;font-size:11px;} }
@media(max-width:374px) { .gateway-page{padding-inline:17px;} .gateway-navlinks{gap:11px;font-size:10px;} .gateway-wordmark{gap:7px;} .gateway-wordmark strong{font-size:19px;} .gateway-intro h2{font-size:8.65vw;} .gateway-description{font-size:11px;} .network-panel{padding-inline:8px;} .network-kicker{font-size:6px;} .simulation-label{display:none;} .route-provider{font-size:6.7px!important;gap:3px;padding-inline:3px;} .route-provider .provider-symbol{width:10px;min-width:10px;font-size:9px;} .route-provider .symbol-openai{font-size:7px;height:10px;} .route-provider i{display:none;} .gateway-hub strong{font-size:13px;} .application-node strong{font-size:14px;} .application-node>span{font-size:6px;} .network-instruction{font-size:7px;} .diagram-only{display:none;} .section-heading h3{font-size:22px;} .section-aside{align-items:flex-start;flex-direction:column;gap:5px;} .family-name h4{font-size:19px;} .family-body>p{font-size:9px;min-height:49px;} .family-bottom>span{font-size:7.5px;} .family-index{font-size:6px;} .family-bottom{gap:1px;} .value-strip{gap:12px;} .value-strip .text-link{font-size:8px;} .integration-copy h3{font-size:24px;} .ecosystem summary strong{font-size:11px;} }
@media(prefers-reduced-motion:reduce) { html{scroll-behavior:auto} .hero-explore svg{animation:none} .gateway-page *{scroll-behavior:auto!important} .gateway-page :is(button,a,.family-card,.family-artwork){transition:none!important} .flow-line{animation:none!important;stroke-dasharray:none!important} .flow-return,.flow-packet{display:none!important} }

/* A true mobile graph layout: larger labels instead of shrinking the desktop diagram. */
@media(max-width:640px) {
 .network-panel.is-mobile-layout .network-stage{aspect-ratio:1;margin-block:17px 12px;}
 .network-panel.is-mobile-layout .route-provider{height:11.1765%;font-size:11px!important;gap:7px;padding-inline:8px;border-radius:6px;}
 .network-panel.is-mobile-layout .provider-symbol{font-size:14px;width:15px;min-width:15px;}
 .network-panel.is-mobile-layout .symbol-openai{font-size:10px;height:16px;border-radius:4px;}
 .network-panel.is-mobile-layout .application-node{left:7.9412%;top:50%;width:14.7059%;height:16.4706%;}
 .network-panel.is-mobile-layout .application-node strong{font-size:18px;}
 .network-panel.is-mobile-layout .application-node>span{font-size:9px;}
 .network-panel.is-mobile-layout .gateway-hub{left:37.0588%;width:20.5882%;height:20.5882%;}
 .network-panel.is-mobile-layout .gateway-hub strong{font-size:20px;}
 .network-panel.is-mobile-layout .gateway-hub small{font-size:6px;}
}
@media(max-width:374px) {
 .network-panel.is-mobile-layout .route-provider{font-size:9px!important;padding-inline:5px;gap:5px;}
 .network-panel.is-mobile-layout .provider-symbol{font-size:12px;width:13px;min-width:13px;}
 .network-panel.is-mobile-layout .symbol-openai{font-size:9px;height:14px;}
 .network-panel.is-mobile-layout .gateway-hub strong{font-size:17px;}
 .network-panel.is-mobile-layout .application-node>span{font-size:8px;}
}

/* Cyber minimal palette for the gateway pages. The fluid hero keeps its original treatment. */
.gateway-page {
  --paper: #07101b;
  --ink: #edf8ff;
  --muted: #8ea4b9;
  --line: #1b2c3e;
  --green: #58e1ff;
  --dark: #0a1422;
  --lime: #b8f4ff;
  background: var(--paper);
  color: var(--ink);
}

.gateway-nav { border-bottom-color: var(--line); background: rgba(7,16,27,.96); }
.gateway-wordmark > svg,
.gateway-navlinks a:hover,
.text-link:hover,
.text-link:hover svg { color: var(--green); }
.wordmark-separator,
.coverage-note,
.value-strip,
.family-bottom,
.ecosystem,
.faq-section,
.gateway-footer,
.family-card,
.ecosystem-grid { border-color: var(--line); }
.gateway-wordmark small,
.section-aside > span,
.family-name > span,
.family-bottom > span,
.directory-disclaimer,
.ecosystem summary small,
.gateway-footer > span { color: #71879c; }

.network-panel { background: #0b1624; border-color: #1c3a52; box-shadow: 0 18px 42px -30px rgba(45,214,255,.35); }
.network-grid { background-image: radial-gradient(circle, rgba(88,225,255,.28) .7px, transparent .85px); }
.network-orbit,
.flow-track { stroke: #214761; }
.flow-line,
.incoming-edge .flow-line { stroke: #58e1ff; }
.flow-return { stroke: #d6f8ff; }
.packet-core { fill: #b8f4ff; }
.packet-halo { fill: #58e1ff; }
.route-edge.is-selected .flow-line { stroke: #fff; }
.application-node,
.route-provider { border-color: #24465e; background: #0e1d2d; color: #dff7ff; }
.application-node { color: #8fb1c7; }
.application-node strong,
.provider-symbol { color: #a9efff; }
.gateway-hub { background: #b8f4ff; border-color: #e5fcff; color: #071522; box-shadow: 0 0 0 7px rgba(88,225,255,.08), 0 8px 30px rgba(4,25,39,.85); }
.gateway-hub svg { color: #0b4862; }
.route-provider:hover,
.route-provider.is-selected { border-color: #58e1ff; background: #102d43; box-shadow: 0 0 0 3px rgba(88,225,255,.12); }
.route-provider i,
.network-mode > i { background: #58e1ff; }
.network-topline,
.network-bottomline { border-color: #1f3a4e; }
.network-kicker,
.simulation-label,
.network-mode,
#network-selection { color: #9dc5d6; }
.network-instruction,
.diagram-only { color: #6f91a5; }

.family-card { background: #0b1624; box-shadow: 0 14px 34px -28px rgba(34,188,235,.65); }
.family-card:hover,
.family-card.is-selected { border-color: #58e1ff; box-shadow: 0 10px 28px -20px rgba(88,225,255,.65); }
.family-visual { border-bottom-color: var(--line); background: #0f2030; }
.family-index,
.family-series { color: #6d9ab0; }
.family-artwork { stroke: #55d7e9; }
.family-body > p,
.integration-description,
.setup-steps p,
.faq-list p,
.models-header p { color: #8ea4b9; }
.family-connect { border-color: #2a536a; background: #10283a; color: #58e1ff; }
.family-connect:hover { background: #58e1ff; color: #07101b; }
.ecosystem-grid > span { background: #0b1624; }
.ecosystem-grid small,
.setup-steps > li > span { color: #79cfe3; }
.setup-steps > li > span { border-color: #2a6077; }
.code-workspace { background: #050b13; border-color: #1e4058; }
.primary-button { border-color: #58e1ff; background: #58e1ff; color: #07101b !important; }
.primary-button:hover { background: #b8f4ff; }
.gateway-page ::selection { background: #58e1ff; color: #07101b; }

/* Cool white cyber theme for the gateway pages. */
.gateway-page {
  --paper: #f4f8fc;
  --ink: #171622;
  --muted: #6d6b7d;
  --line: #deddec;
  --green: #755de1;
  --dark: #f0effa;
  --lime: #ece8ff;
  background: var(--paper);
  color: var(--ink);
}

.gateway-nav { background: rgba(244,248,252,.96); }
.gateway-wordmark > svg,
.gateway-navlinks a:hover,
.text-link:hover,
.text-link:hover svg { color: #755de1; }
.wordmark-separator,
.coverage-note,
.value-strip,
.family-bottom,
.ecosystem,
.faq-section,
.gateway-footer,
.family-card,
.ecosystem-grid { border-color: var(--line); }
.gateway-wordmark small,
.section-aside > span,
.family-name > span,
.family-bottom > span,
.directory-disclaimer,
.ecosystem summary small,
.gateway-footer > span { color: #718398; }

.network-panel { background: #f0effa; border-color: #d2cfea; color: #1b1927; box-shadow: 0 18px 42px -30px rgba(117,93,225,.3); }
.network-grid { background-image: radial-gradient(circle, rgba(117,93,225,.2) .7px, transparent .85px); }
.network-orbit,
.flow-track { stroke: #cbc6e4; }
.flow-line,
.incoming-edge .flow-line { stroke: #9a88e8; }
.flow-return { stroke: #ffffff; }
.packet-core { fill: #755de1; }
.packet-halo { fill: #aa9bf0; }
.route-edge.is-selected .flow-line { stroke: #5540b6; }
.application-node,
.route-provider { border-color: #d1cdea; background: #fbfaff; color: #292541; }
.application-node { color: #716b88; }
.application-node strong,
.provider-symbol { color: #6851c8; }
.gateway-hub { background: #e9e5ff; border-color: #ffffff; color: #282144; box-shadow: 0 0 0 7px rgba(117,93,225,.09), 0 8px 30px rgba(95,78,161,.2); }
.gateway-hub svg { color: #6851c8; }
.route-provider:hover,
.route-provider.is-selected { border-color: #755de1; background: #f0edff; box-shadow: 0 0 0 3px rgba(117,93,225,.12); }
.route-provider i,
.network-mode > i { background: #755de1; }
.network-topline,
.network-bottomline { border-color: #d2cfea; }
.network-kicker,
.simulation-label,
.network-mode,
#network-selection { color: #756c94; }
.network-instruction,
.diagram-only { color: #88819d; }

.family-card { background: #fbfaff; box-shadow: 0 14px 34px -28px rgba(117,93,225,.28); }
.family-card:hover,
.family-card.is-selected { border-color: #755de1; box-shadow: 0 10px 28px -20px rgba(117,93,225,.45); }
.family-visual { border-bottom-color: var(--line); background: #f0effa; }
.family-index,
.family-series { color: #817a9f; }
.family-artwork { stroke: #8273c7; }
.family-body > p,
.integration-description,
.setup-steps p,
.faq-list p,
.models-header p { color: #64758a; }
.family-connect { border-color: #cfc8e9; background: #f0edff; color: #6851c8; }
.family-connect:hover { background: #755de1; color: #ffffff; }
.ecosystem-grid > span { background: #f9f8ff; }
.ecosystem-grid small,
.setup-steps > li > span { color: #6851c8; }
.setup-steps > li > span { border-color: #c7bee8; }
.code-workspace { background: #f0effa; border-color: #d0c9ea; color: #252039; }
.code-toolbar { border-bottom-color: #d0c9ea; }
.code-tabs button { color: #7d7791; }
.code-tabs button.is-active { border-bottom-color: #755de1; color: #5d45b8; }
.copy-code { color: #5d45b8; border-color: #bfb4e3; }
.copy-code:hover { background: #e7e2ff; }
.code-filebar { color: #7c7592; }
#code-family-label { color: #6b5bac; }
#code-example { scrollbar-color: #b5a9dc #f0effa; }
.code-comment { color: #7f7891; }
.code-string { color: #6652b7; }
.code-command { color: #9a4c95; }
.code-caption { border-top-color: #d0c9ea; color: #706988; }
.code-caption > span { border-color: #aaa0d6; }
.primary-button { border-color: #755de1; background: #755de1; color: #ffffff !important; }
.primary-button:hover { background: #5e46c4; }
.gateway-page ::selection { background: #dfd8ff; color: #241c45; }
.gateway-wordmark > svg { display: none !important; }
.gateway-wordmark::before {
  content: "";
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  background-image: url("../xuai-logo.png"), url("./assets/xuai-logo.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
@media(max-width:640px) {
  .gateway-wordmark::before { width: 24px; height: 24px; flex-basis: 24px; }
}

/* Keep purple as an accent and restore a varied cool-white system. */
.network-panel { background: #eef6fb; border-color: #c9dce8; box-shadow: 0 18px 42px -30px rgba(40,143,183,.28); }
.network-grid { background-image: radial-gradient(circle, rgba(40,143,183,.2) .7px, transparent .85px); }
.network-orbit,
.flow-track { stroke: #c2d9e6; }
.flow-line,
.incoming-edge .flow-line { stroke: #55b9d6; }
.flow-return { stroke: #ffffff; }
.packet-core { fill: #2d9fc3; }
.packet-halo { fill: #83d2e6; }
.route-edge.is-selected .flow-line { stroke: #755de1; }
.application-node,
.route-provider { border-color: #c4d8e4; background: #ffffff; color: #26394b; }
.application-node { color: #687b8c; }
.application-node strong,
.provider-symbol { color: #247e9e; }
.gateway-hub { background: #e5f7fc; border-color: #ffffff; color: #173448; box-shadow: 0 0 0 7px rgba(40,159,199,.08), 0 8px 30px rgba(68,123,151,.18); }
.gateway-hub svg { color: #247e9e; }
.route-provider:hover,
.route-provider.is-selected { border-color: #755de1; background: #f0edff; box-shadow: 0 0 0 3px rgba(117,93,225,.1); }
.route-provider i,
.network-mode > i { background: #3ea9c9; }
.network-topline,
.network-bottomline { border-color: #c9dce8; }

.family-card { background: #ffffff; box-shadow: 0 14px 34px -28px rgba(52,110,139,.24); }
.family-card:nth-child(3n + 1) .family-visual { background: #edf7fb; }
.family-card:nth-child(3n + 2) .family-visual { background: #f1f0fb; }
.family-card:nth-child(3n) .family-visual { background: #f1f7f3; }
.family-card:hover,
.family-card.is-selected { border-color: #755de1; box-shadow: 0 10px 28px -20px rgba(117,93,225,.4); }
.family-artwork { stroke: #4fa7c0; }
.family-card:nth-child(3n + 2) .family-artwork { stroke: #8173c5; }
.family-card:nth-child(3n) .family-artwork { stroke: #5c9b78; }
.family-connect { border-color: #c4d8e4; background: #eef7fb; color: #247e9e; }
.family-connect:hover { background: #755de1; color: #ffffff; }
.ecosystem-grid > span { background: #ffffff; }
.code-workspace { background: #101b2b; border-color: #c9dce8; color: #e8f4fb; }
.code-toolbar { border-bottom-color: #2b4055; }
.code-tabs button { color: #9bb1c2; }
.code-tabs button.is-active { border-bottom-color: #755de1; color: #ffffff; }
.copy-code { color: #c7bfff; border-color: #53667c; }
.copy-code:hover { background: #1d2b3e; }
.code-filebar { color: #8fa8ba; }
#code-family-label { color: #a9c7d6; }
#code-example { scrollbar-color: #587a8f #101b2b; }
.code-comment { color: #8ba5b6; }
.code-string { color: #b7e8f5; }
.code-command { color: #d8c4ff; }
.code-caption { border-top-color: #2b4055; color: #a1b6c5; }
.code-caption > span { border-color: #658397; }

.api-reference {
  width: 100%;
  margin: 0 0 28px;
  padding: 22px;
  border: 1px solid #d8d3ee;
  border-radius: 10px;
  background: #fbfaff;
}

.api-reference-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.api-reference-kicker,
.api-block-label {
  margin: 0;
  color: #8175b5;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.api-reference-head h4 {
  margin: 7px 0 0;
  color: #242237;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -.02em;
}

.api-reference-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid #d5e8df;
  border-radius: 999px;
  color: #43866d;
  font-size: 10px;
  white-space: nowrap;
}

.api-reference-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #58b18d;
}

.api-reference-tabs {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 42px;
  overflow-x: auto;
  padding: 0 4px;
  border-bottom: 1px solid #e4e0f1;
  scrollbar-width: none;
}

.api-reference-tabs::-webkit-scrollbar { display: none; }

.api-reference-tab {
  position: relative;
  flex: 0 0 auto;
  border: 0;
  padding: 9px 2px 12px;
  background: transparent;
  color: #7b7690;
  font-size: 12px;
  cursor: pointer;
}

.api-reference-tab::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
}

.api-reference-tab:hover,
.api-reference-tab.is-active { color: #6a50cf; }
.api-reference-tab.is-active::after { background: #755de1; }

.api-reference-panel { padding-top: 18px; }
.api-reference-panel[hidden] { display: none; }

.api-reference-panel-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.api-reference-panel-intro > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.api-reference-panel-intro code { overflow-wrap: anywhere; color: #3f376e; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.api-reference-panel-intro p { margin: 0; color: #77738b; font-size: 11px; line-height: 1.6; text-align: right; }
.api-reference-panel-summary { flex-direction: column; align-items: flex-end !important; gap: 5px !important; }
.api-reference-panel-summary p { font-size: 10px; }
.api-panel-status { display: inline-flex; align-items: center; gap: 6px; color: #3c9f72; font: 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap; }
.api-panel-status i { width: 6px; height: 6px; border-radius: 50%; background: #4ab982; }
.api-panel-status.is-warm { color: #c27a08; }
.api-panel-status.is-warm i { background: #e7a53d; }
.api-panel-status.is-blue { color: #4a67e8; }
.api-panel-status.is-blue i { background: #6481f5; }
.api-panel-status.is-purple { color: #7650dc; }
.api-panel-status.is-purple i { background: #8658f1; }

.api-method {
  flex: 0 0 auto;
  padding: 4px 6px;
  border-radius: 4px;
  background: #eeeafd;
  color: #6a50cf;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}

.api-reference-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.api-reference-block { min-width: 0; padding: 12px; border: 1px solid #e3dfef; border-radius: 7px; background: #f4f4fa; }
.api-reference-block.is-response { background: #f3faf8; border-color: #dbece5; }
.api-reference-block pre { overflow: auto; margin: 9px 0 0; color: #403d52; font: 11px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; }
.api-reference-block.is-response pre { color: #3d665a; }
.api-reference-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 11px; color: #8a8599; font: 10px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .03em; }
.api-reference-note { margin: 14px 2px 0; color: #7c7791; font-size: 10px; line-height: 1.6; }

@media(max-width:640px) {
  .api-reference { padding: 14px 10px; border-radius: 8px; }
  .api-reference-head { align-items: flex-start; gap: 12px; margin-bottom: 12px; }
  .api-reference-head h4 { font-size: 16px; }
  .api-reference-status { padding: 5px 7px; font-size: 9px; }
  .api-reference-tabs { gap: 15px; padding-inline: 3px; }
  .api-reference-tab { font-size: 11px; }
  .api-reference-panel-intro { align-items: flex-start; flex-direction: column; gap: 7px; }
  .api-reference-panel-summary { align-items: flex-start !important; }
  .api-reference-panel-intro p { text-align: left; }
  .api-reference-grid { grid-template-columns: 1fr; }
  .api-reference-block pre { font-size: 10px; }
}

/* Developer console treatment: quieter chrome, denser hierarchy, readable code. */
.api-reference {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
  border-top: 1px solid #d9e0d7;
  border-bottom: 1px solid #d9e0d7;
  border-radius: 0;
  background: transparent;
}
.api-reference-head { align-items: flex-end; margin: 0; padding: 24px 0 18px; }
.api-reference-kicker { color: #71806f; font: 10px/1.4 var(--mono); letter-spacing: .15em; }
.api-reference-head h4 { margin-top: 8px; color: #1f2922; font: 500 20px/1.25 var(--font); letter-spacing: -.025em; }
.api-reference-status { gap: 7px; padding: 0; border: 0; border-radius: 0; color: #2d7954; font: 10px/1 var(--mono); letter-spacing: .08em; }
.api-reference-status i { width: 5px; height: 5px; border-radius: 0; background: #4eae7a; }
.api-reference-tabs { gap: 0; min-height: 0; padding: 0; border-top: 1px solid #d9e0d7; border-bottom: 1px solid #d9e0d7; }
.api-reference-tab { padding: 12px 18px 11px; color: #7b847a; font: 11px/1.2 var(--mono); letter-spacing: .01em; }
.api-reference-tab:first-child { padding-left: 0; }
.api-reference-tab::after { bottom: -1px; height: 2px; }
.api-reference-tab:hover, .api-reference-tab.is-active { color: #30226d; }
.api-reference-tab.is-active::after { background: #6950d4; }
.api-reference-panel { padding-top: 0; }
.api-reference-panel-intro { min-height: 64px; margin: 0; padding: 15px 0 13px; border-bottom: 1px solid #d9e0d7; }
.api-reference-panel-intro > div:first-child { gap: 11px; }
.api-reference-panel-intro code { color: #2e2b44; font: 12px/1.4 var(--mono); }
.api-method { padding: 0; border-radius: 0; background: transparent; color: #6950d2; font: 700 10px/1 var(--mono); letter-spacing: .06em; }
.api-reference-panel-summary { gap: 4px !important; }
.api-reference-panel-summary p { color: #879087; font: 10px/1.3 var(--mono); }
.api-panel-status { font-size: 10px; letter-spacing: .02em; }
.api-panel-status i { width: 5px; height: 5px; border-radius: 0; }
.api-reference-grid { gap: 1px; border: 1px solid #202a35; background: #202a35; }
.api-reference-block, .api-reference-block.is-response { min-height: 186px; padding: 16px 17px 18px; border: 0; border-radius: 0; background: #101721; }
.api-reference-block.is-response { background: #0d141d; }
.api-block-label { color: #7d8b9c; font: 10px/1.2 var(--mono); letter-spacing: .16em; }
.api-reference-block pre, .api-reference-block.is-response pre { margin-top: 14px; color: #c7d2df; font: 12px/1.8 var(--mono); white-space: pre-wrap; }
.api-reference-block.is-response pre { color: #b9d8c7; }
.api-reference-meta { gap: 8px 22px; margin: 0; padding: 12px 1px 0; color: #6f7a70; font-size: 10px; }
.api-reference-note { margin: 13px 0 21px; color: #7b857b; font: 10px/1.6 var(--mono); }
.api-reference-layout { display: grid; grid-template-columns: 176px minmax(0, 1fr); min-width: 0; }
.api-reference-nav { min-width: 0; padding: 20px 18px 22px 0; border-right: 1px solid #d9e0d7; }
.api-nav-label { margin: 0 0 11px; color: #849084; font: 9px/1.2 var(--mono); letter-spacing: .15em; }
.api-reference-nav .api-reference-tabs { display: flex; flex-direction: column; align-items: stretch; gap: 2px; overflow: visible; border: 0; }
.api-reference-nav .api-reference-tab, .api-reference-nav .api-reference-tab:first-child { width: 100%; padding: 9px 10px; text-align: left; }
.api-reference-nav .api-reference-tab::after { top: 0; right: auto; bottom: 0; left: -1px; width: 2px; height: auto; }
.api-reference-nav .api-reference-tab.is-active { background: #f0edff; color: #4e3a9a; }
.api-reference-config { display: grid; gap: 6px; margin-top: 28px; padding-top: 15px; border-top: 1px solid #d9e0d7; }
.api-reference-config > span { color: #849084; font: 9px/1.2 var(--mono); letter-spacing: .12em; }
.api-reference-config code { display: block; overflow-wrap: anywhere; color: #3f4651; font: 10px/1.5 var(--mono); }
.api-reference-config p { margin: 0; color: #7b857b; font-size: 10px; line-height: 1.5; }
.api-reference-main { min-width: 0; padding-left: 24px; }

@media(max-width:640px) {
  .api-reference-head { align-items: flex-start; padding-block: 19px 15px; }
  .api-reference-head h4 { font-size: 17px; }
  .api-reference-status { padding-top: 4px; }
  .api-reference-tab { padding: 11px 14px 10px; }
  .api-reference-tab:first-child { padding-left: 0; }
  .api-reference-panel-intro { min-height: 0; padding-block: 14px 12px; }
  .api-reference-panel-intro code { font-size: 11px; }
  .api-reference-grid { grid-template-columns: 1fr; }
  .api-reference-block, .api-reference-block.is-response { min-height: 0; padding: 14px 13px 16px; }
  .api-reference-block pre, .api-reference-block.is-response pre { font-size: 10px; line-height: 1.7; }
  .api-reference-meta { gap: 7px 13px; padding-top: 11px; font-size: 9px; }
  .api-reference-note { font-size: 9px; }
  .api-reference-layout { display: block; }
  .api-reference-nav { padding: 15px 0 0; border-right: 0; }
  .api-reference-nav .api-reference-tabs { flex-direction: row; gap: 0; overflow-x: auto; border-top: 1px solid #d9e0d7; border-bottom: 1px solid #d9e0d7; }
  .api-reference-nav .api-reference-tab, .api-reference-nav .api-reference-tab:first-child { width: auto; padding: 11px 14px 10px; }
  .api-reference-nav .api-reference-tab:first-child { padding-left: 0; }
  .api-reference-nav .api-reference-tab::after { top: auto; right: 0; bottom: -1px; left: 0; width: auto; height: 2px; }
  .api-reference-config { grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 5px 10px; margin-top: 15px; padding: 12px 0 0; }
  .api-reference-config p { grid-column: 2; }
  .api-reference-main { padding-left: 0; }
}

/* Match the existing code workspace: one dark, copyable developer surface. */
.api-reference { overflow: hidden; margin: 0 0 28px; border: 1px solid #34435f; border-radius: 10px; background: #121b2c; color: #d7e2f1; }
.api-reference-head { display: none; }
.api-reference-layout { display: block; }
.api-reference-nav { display: flex; align-items: stretch; gap: 22px; padding: 0 18px; border: 0; border-bottom: 1px solid #34435f; background: #121b2c; }
.api-nav-label, .api-reference-config { display: none; }
.api-reference-nav .api-reference-tabs { flex: 1 1 auto; flex-direction: row; align-items: stretch; gap: 21px; overflow-x: auto; border: 0; scrollbar-width: none; }
.api-reference-nav .api-reference-tabs::-webkit-scrollbar { display: none; }
.api-reference-nav .api-reference-tab, .api-reference-nav .api-reference-tab:first-child { width: auto; padding: 0 1px; background: transparent; color: #8fa0b7; font: 12px/1 var(--font); white-space: nowrap; }
.api-reference-nav .api-reference-tab::after { top: auto; right: 0; bottom: -1px; left: 0; width: auto; height: 2px; background: transparent; }
.api-reference-nav .api-reference-tab:hover, .api-reference-nav .api-reference-tab.is-active { background: transparent; color: #e2d9ff; }
.api-reference-nav .api-reference-tab.is-active::after { background: #8969f6; }
.api-reference-copy { display: inline-flex; align-items: center; align-self: center; gap: 7px; flex: 0 0 auto; padding: 6px 9px; border: 1px solid #566985; border-radius: 4px; background: transparent; color: #c9baff; font-size: 10px; }
.api-reference-copy svg { width: 14px !important; height: 14px !important; }
.api-reference-copy:hover { background: #1d2b42; }
.api-reference-main { padding: 0; background: #121b2c; }
.api-reference-panel-intro { min-height: 61px; padding: 14px 18px 12px; border-bottom: 1px solid #34435f; }
.api-reference-panel-intro code { color: #dbe6f4; font-size: 12px; }
.api-method { color: #a58cff; }
.api-reference-panel-summary p { color: #9aabc0; }
.api-panel-status { color: #8ed0ad; }
.api-panel-status.is-warm { color: #e4b36b; }
.api-panel-status.is-blue { color: #9eb9ff; }
.api-panel-status.is-purple { color: #c4a7ff; }
.api-reference-grid { border: 0; border-bottom: 1px solid #34435f; background: #34435f; }
.api-reference-block, .api-reference-block.is-response { min-height: 202px; padding: 18px 18px 20px; background: #0d1421; }
.api-reference-block.is-response { background: #0b121e; }
.api-block-label { color: #7f91aa; }
.api-reference-block pre, .api-reference-block.is-response pre { margin-top: 17px; color: #bdcbe0; font: 11px/1.85 var(--mono); }
.api-reference-block.is-response pre { color: #b7d8c7; }
.api-reference-meta { gap: 8px 22px; padding: 12px 18px 0; color: #98a9bd; background: #121b2c; }
.api-reference-note { margin: 0; padding: 9px 18px 16px; color: #8fa0b7; font: 9px/1.65 var(--font); background: #121b2c; }
.api-reference-note code { color: #c4b7f4; font-family: var(--mono); }

/* Keep the API examples on the same type scale as the existing code workspace. */
.api-reference-block pre,
.api-reference-block pre code,
#code-example,
#request-code {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.92;
  letter-spacing: 0;
  tab-size: 2;
}

@media(max-width:640px) {
  .api-reference-nav { gap: 10px; padding-inline: 13px; }
  .api-reference-nav .api-reference-tabs { gap: 18px; }
  .api-reference-copy { padding: 5px 6px; }
  .api-reference-copy span { display: none; }
  .api-reference-panel-intro { padding-inline: 13px; }
  .api-reference-meta { padding-inline: 13px; }
  .api-reference-note { padding-inline: 13px; }
  .api-reference-block pre,
  .api-reference-block pre code,
  #code-example,
  #request-code { font-size: 10px; line-height: 1.7; }
}
.gateway-hub > svg { display: none !important; }

/* Overview readability: make the primary actions and routing labels legible at a glance. */
.gateway-intro .gateway-actions .primary-button { min-height: 46px; padding: 13px 20px; font-size: 14px; }
.gateway-intro .gateway-actions .text-link { font-size: 13px; }
.coverage-note { align-items: flex-start; }
.coverage-number { font-size: 40px; line-height: 1; }
.coverage-number > span { font-size: .62em; vertical-align: top; position: relative; top: -.05em; }
.coverage-note > div:last-child { margin-top: 3px; }
.coverage-note strong { font-size: 12px; }
.coverage-note > div:last-child > span { font-size: 11px; }
.network-panel .network-kicker { font-size: 10px; }
.network-panel .route-provider { font-size: 12px !important; }
.network-panel .application-node > span { font-size: 11px; }
.network-panel .gateway-hub small { font-size: 8px; }
.network-panel .network-bottomline { font-size: 11px; }
.network-panel .network-mode { gap: 8px; }
.network-panel .network-instruction,
.network-panel .simulation-label,
.network-panel .motion-control,
.network-panel .diagram-only,
.network-panel #network-selection { display: none !important; }

@media(max-width:640px) {
  .gateway-intro .gateway-actions .primary-button { min-height: 44px; padding: 12px 17px; font-size: 13px; }
  .gateway-intro .gateway-actions .text-link { font-size: 12px; }
  .coverage-number { font-size: 36px; }
  .coverage-note strong { font-size: 12px; }
  .coverage-note > div:last-child > span { font-size: 11px; }
  .network-panel .network-kicker { font-size: 8px; }
  .network-panel .route-provider { font-size: 10px !important; }
  .network-panel .application-node > span { font-size: 8px; }
  .network-panel .gateway-hub small { font-size: 6px; }
  .network-panel .network-bottomline { font-size: 10px; }
}

@media(prefers-reduced-motion:reduce) {
  .network-panel .flow-line { animation: route-forward var(--flow-duration,3.5s) linear infinite !important; }
  .network-panel .flow-return { display: block !important; animation: route-backward calc(var(--flow-duration,3.5s) * 1.15) linear infinite !important; }
  .network-panel .flow-packet { display: block !important; }
}

/* Local-only font tuning panel, enabled with ?tuner=1. */
.font-tuner { --mono:"SFMono-Regular",Consolas,"Liberation Mono",monospace; display: none; position: fixed; top: 18px; right: 18px; z-index: 100; width: 304px; max-height: calc(100vh - 36px); overflow: auto; padding: 17px; border: 1px solid #cfd7e5; border-radius: 10px; background: rgba(255,255,255,.98); box-shadow: 0 18px 50px rgba(31,47,73,.2); color: #202a38; font: 12px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif; }
body.font-tuner-enabled .font-tuner { display: block; }
.font-tuner-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #e0e5ee; }
.font-tuner-kicker { margin: 0; color: #7358cb; font: 9px/1.2 var(--mono); letter-spacing: .13em; }
.font-tuner h2 { margin: 5px 0 0; font: 600 18px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif; }
.font-tuner-close { border: 0; background: transparent; color: #76839a; font-size: 22px; line-height: 1; cursor: pointer; }
.font-tuner-intro { margin: 11px 0 14px; color: #6c7789; font-size: 11px; line-height: 1.6; }
.font-tuner-group { padding: 12px 0 13px; border-top: 1px solid #e7ebf1; }
.font-tuner-group h3 { margin: 0 0 9px; color: #39475b; font-size: 12px; font-weight: 600; }
.font-tuner-group label { display: grid; grid-template-columns: 74px minmax(0,1fr) 48px; align-items: center; gap: 8px; margin-top: 8px; }
.font-tuner-group label span { color: #637086; font-size: 11px; }
.font-tuner-group output { color: #5b45b3; font: 10px/1 var(--mono); text-align: right; }
.font-tuner-group input[type="range"] { grid-column: 2 / 4; width: 100%; height: 4px; accent-color: #7257d1; cursor: pointer; }
.font-tuner-actions { display: flex; gap: 8px; padding-top: 14px; }
.font-tuner-actions button { flex: 1; min-height: 32px; border: 1px solid #cbd4e2; border-radius: 5px; background: #f7f8fb; color: #48566c; font-size: 11px; cursor: pointer; }
.font-tuner-actions button:first-child { border-color: #7358cb; background: #7358cb; color: #fff; }
.font-tuner-actions button:hover { filter: brightness(.97); }
.font-tuner-output { overflow: auto; max-height: 170px; margin: 12px 0 0; padding: 10px; border: 1px solid #e0e5ee; border-radius: 5px; background: #f6f8fb; color: #56647a; font: 10px/1.55 var(--mono); white-space: pre; user-select: text; }

@media(max-width:640px) {
  .font-tuner { top: 10px; right: 10px; width: min(304px, calc(100vw - 20px)); max-height: calc(100vh - 20px); }
}

/* Keep every code surface visually stable while examples change length. */
.code-workspace {
  display: flex;
  flex-direction: column;
  height: 500px;
}
.code-workspace .code-toolbar,
.code-workspace .code-filebar,
.code-workspace .code-caption { flex: 0 0 auto; }
#code-example {
  height: 340px;
  min-height: 340px;
  max-height: 340px;
  box-sizing: border-box;
  flex: 0 0 340px;
}

.api-reference-grid {
  grid-auto-rows: 304px;
}
.api-reference-block,
.api-reference-block.is-response {
  height: 304px;
  min-height: 304px;
  box-sizing: border-box;
  overflow: hidden;
}
.api-reference-block pre,
.api-reference-block.is-response pre {
  max-height: 238px;
  overflow: auto;
  scrollbar-width: thin;
}

@media(max-width:640px) {
  .code-workspace { height: 440px; }
  #code-example {
    height: 280px;
    min-height: 280px;
    max-height: 280px;
    flex-basis: 280px;
  }
  .api-reference-grid { grid-auto-rows: 236px; }
  .api-reference-block,
  .api-reference-block.is-response {
    height: 236px;
    min-height: 236px;
  }
  .api-reference-block pre,
  .api-reference-block.is-response pre { max-height: 184px; }
}

/* Match the API example scrollbar to the Codex configuration surface. */
#code-example,
.api-reference-block pre,
.api-reference-block.is-response pre {
  scrollbar-width: thin;
  scrollbar-color: #587a8f #101b2b;
}
#code-example::-webkit-scrollbar,
.api-reference-block pre::-webkit-scrollbar,
.api-reference-block.is-response pre::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
#code-example::-webkit-scrollbar-track,
.api-reference-block pre::-webkit-scrollbar-track,
.api-reference-block.is-response pre::-webkit-scrollbar-track {
  background: #101b2b;
}
#code-example::-webkit-scrollbar-thumb,
.api-reference-block pre::-webkit-scrollbar-thumb,
.api-reference-block.is-response pre::-webkit-scrollbar-thumb {
  border: 2px solid #101b2b;
  border-radius: 999px;
  background: #587a8f;
}
#code-example::-webkit-scrollbar-button,
.api-reference-block pre::-webkit-scrollbar-button,
.api-reference-block.is-response pre::-webkit-scrollbar-button { display: none; }
#code-example::-webkit-scrollbar-thumb:hover,
.api-reference-block pre::-webkit-scrollbar-thumb:hover,
.api-reference-block.is-response pre::-webkit-scrollbar-thumb:hover {
  background: #7aa8bf;
}

/* Make the response status read as an active, successful state. */
.api-panel-status { color: #b7f6c7; text-shadow: 0 0 12px rgba(132, 246, 168, .22); }
.api-panel-status i { border-radius: 50%; background: #8ff5b3; box-shadow: 0 0 0 3px rgba(143, 245, 179, .12), 0 0 10px rgba(143, 245, 179, .55); }
.api-panel-status.is-warm { color: #ffd37b; text-shadow: 0 0 12px rgba(255, 211, 123, .2); }
.api-panel-status.is-warm i { border-radius: 50%; background: #ffd37b; box-shadow: 0 0 0 3px rgba(255, 211, 123, .12), 0 0 10px rgba(255, 211, 123, .5); }
.api-panel-status.is-blue { color: #c4d8ff; text-shadow: 0 0 12px rgba(160, 194, 255, .2); }
.api-panel-status.is-blue i { border-radius: 50%; background: #a8c4ff; box-shadow: 0 0 0 3px rgba(168, 196, 255, .12), 0 0 10px rgba(168, 196, 255, .5); }
.api-panel-status.is-purple { color: #e1caff; text-shadow: 0 0 12px rgba(201, 164, 255, .2); }
.api-panel-status.is-purple i { border-radius: 50%; background: #c9a4ff; box-shadow: 0 0 0 3px rgba(201, 164, 255, .12), 0 0 10px rgba(201, 164, 255, .5); }

/* TOML highlighting for the Codex configuration uses the same restrained syntax palette. */
.code-workspace .syntax-comment { color: #77869e; }
.code-workspace .syntax-section { color: #c4b4ff; font-weight: 600; }
.code-workspace .syntax-key { color: #c7b5ff; }
.code-workspace .syntax-operator { color: #8fa0b7; }
.code-workspace .syntax-string { color: #a9d8b3; }
.code-workspace .syntax-number { color: #f1c98a; }
.code-workspace .syntax-boolean { color: #e9a9d1; }
.code-filebar #code-family-label.code-config-note {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  box-sizing: border-box;
  padding: 5px 9px;
  border: 1px solid #6d5dc1;
  border-radius: 6px;
  background: #1d2b42;
  color: #d8cfff;
  font: 600 10px/1.2 var(--font);
  white-space: nowrap;
}
.code-caption strong { color: #d8cfff; font-weight: 650; }

/* One copy-button component for configuration and API examples. */
.copy-code,
.api-reference-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  min-height: 40px;
  box-sizing: border-box;
  padding: 0 13px;
  border: 1px solid #53667c;
  border-radius: 7px;
  background: transparent;
  color: #c7bfff;
  font: 500 12px/1 var(--font) !important;
  transition: background .2s, border-color .2s, color .2s;
}
.copy-code svg,
.api-reference-copy svg { width: 16px !important; height: 16px !important; }
.copy-code:hover,
.api-reference-copy:hover { border-color: #8d7ce8; background: #1d2b42; color: #e4ddff; }
.copy-code:focus-visible,
.api-reference-copy:focus-visible { outline: 2px solid #a99bff; outline-offset: 2px; }

@media(max-width:640px) {
  .code-filebar #code-family-label.code-config-note { max-width: 58%; white-space: normal; text-align: right; }
  .copy-code,
  .api-reference-copy { height: 36px; min-height: 36px; padding-inline: 10px; font-size: 11px !important; }
  .copy-code svg,
  .api-reference-copy svg { width: 14px !important; height: 14px !important; }
}

/* Five selectable Codex replacement-guide treatments. */
.code-caption code { color: #c4b4ff; font-family: var(--mono); }
.codex-guide-1 .code-caption {
  border-top-color: #8874e8;
  background: #17243a;
  color: #aebed0;
}
.codex-guide-1 .code-caption > span,
.codex-guide-5 .code-caption > span {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
  border: 0;
  background: #8069e2;
  color: #fff;
  font: 700 11px/1 var(--font);
}
.codex-guide-1 .code-caption p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.codex-guide-1 .code-caption p strong { flex-basis: 100%; color: #eeeaff; font-size: 11px; }
.codex-guide-1 .code-caption p small { color: #879ab0; font-size: 9px; }

.codex-guide-2 .code-caption {
  border-top-color: #3d7186;
  background: #132531;
  color: #b5cbd5;
}
.codex-guide-2 .code-caption > span {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
  border-color: #5b9ab1;
  color: #9cdef0;
  font-size: 11px;
}
.codex-guide-2 .code-caption p strong { color: #c5f0f7; }

.codex-guide-3 .code-caption {
  border-top-color: #7258d0;
  border-left: 3px solid #8069e2;
  background: #18213a;
  color: #b4bfd5;
}
.codex-guide-3 .code-caption > span {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  border-color: #8069e2;
  color: #d8cfff;
  font: 600 9px/1 var(--mono);
}
.codex-guide-3 .code-caption p { line-height: 1.75; }
.codex-guide-3 .code-caption p strong { color: #e2dcff; }

.codex-guide-4 .code-caption {
  border-top-color: #566c86;
  background: #152033;
  color: #bac7d6;
}
.codex-guide-4 .code-caption > span {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
  border-color: #7186a0;
  color: #d5e5f2;
  font: 700 10px/1 var(--mono);
}
.codex-guide-4 .code-caption p { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.codex-guide-4 .code-caption p strong,
.codex-guide-4 .code-caption p b { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 4px; background: #5c4bb1; color: #fff; font: 700 9px/1 var(--mono); }

.codex-guide-5 .code-caption {
  border-top-color: #c18a55;
  background: #2a2430;
  color: #d4c8c1;
}
.codex-guide-5 .code-caption > span { background: #c9874d; }
.codex-guide-5 .code-caption p strong { color: #ffe0b7; }
.codex-guide-5 .code-caption p span { display: block; margin-top: 3px; }

@media(max-width:640px) {
  .codex-guide-1 .code-caption p,
  .codex-guide-4 .code-caption p { gap: 4px 7px; }
}

/* Compact the support stack so content stays together instead of floating in tall cards. */
.support-stack { align-self: start; gap: 16px; }
.support-card { min-height: 0; padding: 22px 24px; }
.support-variant-1 { justify-content: flex-start; }
.support-card h4 { margin-top: 8px; }
.support-card p { margin-top: 8px; line-height: 1.7; }
.support-contact-heading { margin-top: 17px; }
.support-contacts { margin-top: 8px; }
.support-availability { margin-top: 14px; padding-top: 11px; }
.support-variant-1::after { width: 58px; height: 58px; margin-top: -36px; box-shadow: 0 0 0 10px #f6f3ff, 0 0 0 11px #dfd8f7; }
.support-title-row { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; width: max-content; max-width: 100%; margin-top: 8px; }
.support-title-row h4 { margin: 0; }
.support-online-status { display: inline-flex; align-items: center; gap: 6px; color: #3d966c; font: 11px/1.3 var(--font); white-space: nowrap; }
.support-online-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #58b77d; box-shadow: 0 0 0 4px rgba(88,183,125,.14); animation: support-online-pulse 1.8s ease-in-out infinite; }
@keyframes support-online-pulse {
  0%, 100% { opacity: .62; box-shadow: 0 0 0 3px rgba(88,183,125,.1), 0 0 3px rgba(88,183,125,.2); }
  50% { opacity: 1; box-shadow: 0 0 0 5px rgba(88,183,125,.2), 0 0 13px rgba(88,183,125,.62); }
}
.support-contact-heading { justify-content: flex-start; }
.invoice-card { padding: 18px 24px; }
.invoice-card h4 { margin-top: 6px; }
.invoice-card p { margin-top: 6px; line-height: 1.6; }
.invoice-columns { gap: 22px; margin-top: 13px; }
.invoice-foot { margin-top: 13px; padding-top: 10px; }

@media(max-width:640px) {
  .support-card { padding: 19px 16px; }
  .invoice-card { padding: 17px 16px; }
  .support-variant-1::after { width: 46px; height: 46px; margin-top: -28px; box-shadow: 0 0 0 8px #f6f3ff, 0 0 0 9px #dfd8f7; }
  .support-title-row { width: 100%; gap: 12px; }
}

/* Align the online indicator with the right edge of the contact controls. */
@media(min-width:961px) {
  .support-contact-heading span:last-child { margin-right: 20%; }
}
@media(max-width:640px) {
  .support-contact-heading span:last-child { margin-right: 0; }
}

@media(max-width:640px) {
  .faq-section .eyebrow { font-size: 10px; }
  .faq-section h3 { font-size: 25px; }
  .faq-list summary { padding-block: 17px; font-size: 13px; }
  .faq-list summary > span { font-size: 21px; }
  .faq-list p { padding-bottom: 18px; font-size: 12px; line-height: 1.8; }
}

@media(max-width:640px) {
  .tutorial-resources { margin-top: 22px; gap: 9px; }
  .tutorial-card { padding: 14px; }
  .tutorial-card strong { font-size: 14px; }
}

/* Typography values selected in the local tuner. */
.gateway-intro h2 { font-size: 60px; }
.gateway-description { font-size: 15px; }
.gateway-intro .gateway-actions .primary-button,
.gateway-intro .gateway-actions .text-link { font-size: 14px; }
.coverage-number { font-size: 48px; }
.coverage-note strong,
.coverage-note > div:last-child > span { font-size: 14px; }
.network-panel .route-provider { font-size: 12px !important; }
.network-panel .network-bottomline { font-size: 12px; }
.section-heading h3 { font-size: 40px; }
.family-name h4 { font-size: 28px; }
.family-body > p { font-size: 14px; }
.family-recommendations-label { font-size: 13px; }
.family-recommendation-list span { font-size: 13px; }
.invoice-card h4 { font-size: 28px; }
.invoice-card > p { font-size: 13px; }
.invoice-columns b { font-size: 14px; }
.invoice-columns span { font-size: 13px; }
.invoice-foot > span { font-size: 12px; }
.invoice-foot a { font-size: 14px; }
.integration-copy h3 { font-size: 40px; }
#code-example, #request-code,
.api-reference-block pre, .api-reference-block pre code { font-size: 12px; }
.api-reference-block .syntax-comment { color: #77869e; }
.api-reference-block .syntax-key { color: #c7b5ff; }
.api-reference-block .syntax-string { color: #a9d8b3; }
.api-reference-block .syntax-number { color: #f1c98a; }
.api-reference-block .syntax-boolean { color: #e9a9d1; }
.api-reference-block .syntax-keyword { color: #c4b4ff; }

@media(max-width:640px) {
  .gateway-intro h2 { font-size: clamp(32px, 8.4vw, 50px); }
  .gateway-description { font-size: 12px; }
  .gateway-intro .gateway-actions .primary-button { font-size: 13px; }
  .gateway-intro .gateway-actions .text-link { font-size: 12px; }
  .coverage-number { font-size: 36px; }
  .coverage-note strong { font-size: 12px; }
  .coverage-note > div:last-child > span { font-size: 11px; }
  .network-panel .route-provider { font-size: 10px !important; }
  .network-panel .network-bottomline { font-size: 10px; }
  .section-heading h3 { font-size: 25px; }
  .family-name h4 { font-size: 21px; }
  .family-body > p { font-size: 10px; }
  .integration-copy h3 { font-size: 27px; }
  #code-example, #request-code,
  .api-reference-block pre, .api-reference-block pre code { font-size: 10px; }
}

.provider-symbol .provider-logo { display: block; width: 18px; height: 18px; max-width: 100%; object-fit: contain; }
.symbol-openai .provider-logo { width: 19px; height: 19px; }
.symbol-claude .provider-logo { width: 17px; height: 17px; }
.symbol-gemini .provider-logo { width: 18px; height: 18px; }
.symbol-deepseek .provider-logo { width: 18px; height: 18px; }
.symbol-grok .provider-logo { width: 17px; height: 17px; }
.symbol-qwen .provider-logo { width: 18px; height: 18px; }
.symbol-openai { height: 18px; border: 0; border-radius: 0; }
.symbol-openai .provider-logo { width: 18px; height: 18px; }
.route-provider > span:not(.provider-symbol) { font-weight: 600; }
.family-product-logo { position: absolute; top: 50%; left: 50%; display: block; width: 92px; height: 92px; transform: translate(-50%, -50%); object-fit: contain; }
.family-visual .family-artwork { display: none !important; }
.family-visual { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 12px; padding: 25px 16px 18px; }
.family-logo-card { display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; border: 1px solid #d5dfec; border-radius: 9px; background: rgba(255,255,255,.7); }
.family-logo-card .family-product-logo { position: static; width: 62px; height: 62px; transform: none; }
.family-logo-card .family-product-logo[src*="gemini-product"] { width: 76px; height: 76px; }
.family-logo-card .family-product-logo[src*="xai-product"] { width: 88px; height: 88px; }
.family-recommendations { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.family-recommendations-label { display: inline-flex; align-items: center; align-self: flex-start; gap: 7px; padding: 5px 9px; border: 1px solid #c7d0e1; border-radius: 999px; background: linear-gradient(110deg, rgba(255,255,255,.95), rgba(242,245,252,.82)); color: #58657b; font: 600 13px/1.2 var(--font); letter-spacing: .02em; }
.family-recommendations-label::before { content: '✦'; display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; flex: 0 0 14px; border-radius: 50%; background: #7257d1; color: #fff; font: 10px/1 var(--font); box-shadow: 0 0 0 3px rgba(114,87,209,.12); }
.family-recommendation-list { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.family-recommendation-list span { overflow: hidden; padding: 7px 9px; border: 1px solid rgba(203,213,229,.9); border-radius: 6px; background: rgba(255,255,255,.78); color: #4d5a70; font: 13px/1.2 var(--font); font-weight: 500; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; box-shadow: 0 2px 6px rgba(73,91,122,.04); }
.family-product-logo[src*="gemini-product"] { width: 112px; height: 112px; }
.family-product-logo[src*="xai-product"] { width: 82px; height: 82px; }
.family-product-logo[src*="deepseek.svg"],
.family-product-logo[src*="qwen.svg"] { width: 88px; height: 88px; }
.family-models { margin: 12px 0 0; color: #707d96; font: 10px/1.6 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Model directory comparison variants. Switch with ?variant=1, ?variant=2 or ?variant=3. */
.model-directory-variant-1 .family-recommendations { gap: 8px; }
.model-directory-variant-1 .family-recommendations-label { padding: 0; border: 0; border-radius: 0; background: none; color: #78869d; font-size: 10px; font-weight: 600; letter-spacing: .08em; }
.model-directory-variant-1 .family-recommendations-label::before { content: ''; width: 18px; height: 1px; flex: 0 0 18px; border-radius: 0; background: #7257d1; box-shadow: none; }
.model-directory-variant-1 .family-recommendation-list { gap: 4px; counter-reset: featured-model; }
.model-directory-variant-1 .family-recommendation-list span { position: relative; padding: 7px 9px 7px 31px; border-color: #d5ddeb; border-radius: 5px; background: rgba(255,255,255,.58); box-shadow: none; font-size: 12px; }
.model-directory-variant-1 .family-recommendation-list span::before { content: counter(featured-model, decimal-leading-zero); counter-increment: featured-model; position: absolute; left: 9px; color: #9aa6b9; font: 9px/1 var(--mono); }
.model-directory-variant-1 .family-recommendation-list span:first-child { border-color: #b9a9ee; background: #f8f6ff; color: #4d3c9a; }

.model-directory-variant-2 .family-recommendations { gap: 10px; }
.model-directory-variant-2 .family-recommendations-label { padding: 0; border: 0; border-radius: 0; background: none; color: #8993a3; font-size: 11px; font-weight: 500; letter-spacing: .01em; }
.model-directory-variant-2 .family-recommendations-label::before { content: ''; width: 6px; height: 6px; flex-basis: 6px; background: #a88be8; box-shadow: none; }
.model-directory-variant-2 .family-recommendation-list { gap: 2px; }
.model-directory-variant-2 .family-recommendation-list span { padding: 6px 0; border: 0; border-bottom: 1px solid #e3e7ef; border-radius: 0; background: transparent; box-shadow: none; color: #526078; font-size: 13px; }
.model-directory-variant-2 .family-recommendation-list span:first-child { color: #202b3d; font-weight: 600; }

.model-directory-variant-3 .family-recommendations { gap: 9px; padding-left: 11px; border-left: 2px solid #d7cdf8; }
.model-directory-variant-3 .family-recommendations-label { padding: 0; border: 0; border-radius: 0; background: none; color: #6653ad; font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.model-directory-variant-3 .family-recommendations-label::before { content: '✦'; width: auto; height: auto; flex-basis: auto; border-radius: 0; background: none; color: #7659d5; box-shadow: none; font-size: 11px; }
.model-directory-variant-3 .family-recommendation-list { flex-direction: row; flex-wrap: wrap; gap: 5px; }
.model-directory-variant-3 .family-recommendation-list span { padding: 6px 8px; border-color: #d8d0f3; border-radius: 999px; background: #faf9ff; box-shadow: none; color: #5b4b9e; font-size: 11px; }
.model-directory-variant-3 .family-recommendation-list span:first-child { border-color: #8065dc; background: #8065dc; color: #fff; }

/* FAQ readability: give the questions and answers enough visual weight. */
.faq-section .eyebrow { font-size: 11px; }
.faq-section h3 { font-size: 30px; }
.faq-list summary { padding-block: 20px; font-size: 15px; }
.faq-list summary > span { font-size: 23px; }
.faq-list p { padding-bottom: 21px; font-size: 13px; line-height: 1.8; }
.tutorial-resources { display: grid; gap: 11px; margin-top: 27px; }
.tutorial-card { display: flex; flex-direction: column; gap: 7px; padding: 15px 16px 14px; border: 1px solid #d8d3ee; border-radius: 10px; background: #fbfaff; color: #252039; text-decoration: none; transition: border-color .2s, background .2s, transform .2s, box-shadow .2s; }
.tutorial-card:hover { border-color: #aa98e6; background: #fff; transform: translateY(-2px); box-shadow: 0 9px 20px rgba(83,66,147,.1); }
.tutorial-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tutorial-card-top > svg { width: 17px; height: 17px; color: #7d68d6; }
.tutorial-badge { display: inline-flex; align-items: center; gap: 6px; color: #b44c5d; font: 10px/1.2 var(--mono); letter-spacing: .06em; }
.tutorial-badge i { width: 6px; height: 6px; border-radius: 50%; background: #e05b6d; }
.tutorial-card strong { color: #28223e; font: 650 15px/1.35 var(--font); }
.tutorial-card > span:not(.tutorial-card-top) { color: #73728a; font: 11px/1.5 var(--font); }
.tutorial-card em { display: inline-flex; align-items: center; gap: 7px; margin-top: 3px; color: #6651c8; font: 600 10px/1.3 var(--font); font-style: normal; }
.tutorial-card em b { font-size: 14px; font-weight: 400; }

/* Tutorial card comparison variants. */
.tutorial-variant-2 { gap: 0; border-top: 1px solid #d8d3ee; }
.tutorial-variant-2 .tutorial-card { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; column-gap: 11px; row-gap: 3px; padding: 13px 0; border: 0; border-bottom: 1px solid #d8d3ee; border-radius: 0; background: transparent; transform: none; box-shadow: none; }
.tutorial-variant-2 .tutorial-card::before { content: counter(tutorial-item, decimal-leading-zero); counter-increment: tutorial-item; grid-row: 1 / span 3; align-self: start; color: #8a79d6; font: 10px/1 var(--mono); }
.tutorial-variant-2 { counter-reset: tutorial-item; }
.tutorial-variant-2 .tutorial-card-top { grid-column: 2 / 4; }
.tutorial-variant-2 .tutorial-card strong,
.tutorial-variant-2 .tutorial-card > span:not(.tutorial-card-top),
.tutorial-variant-2 .tutorial-card em { grid-column: 2; }
.tutorial-variant-2 .tutorial-card em { grid-column: 3; grid-row: 2 / span 2; align-self: center; margin: 0; }

.tutorial-variant-3 { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.tutorial-variant-3 .tutorial-card { min-height: 154px; padding: 14px; }
.tutorial-variant-3 .tutorial-card:first-child { border-top: 3px solid #8069e2; }
.tutorial-variant-3 .tutorial-card:last-child { border-top: 3px solid #db6877; }
.tutorial-variant-3 .tutorial-card strong { font-size: 14px; }
.tutorial-variant-3 .tutorial-card > span:not(.tutorial-card-top) { min-height: 32px; }

.tutorial-variant-4 { gap: 0; margin-left: 7px; padding-left: 17px; border-left: 1px solid #d8d3ee; }
.tutorial-variant-4 .tutorial-card { position: relative; padding: 12px 0 17px 17px; border: 0; border-bottom: 1px solid #e3def2; border-radius: 0; background: transparent; transform: none; box-shadow: none; }
.tutorial-variant-4 .tutorial-card::before { content: ''; position: absolute; top: 17px; left: -22px; width: 8px; height: 8px; border: 3px solid #f4f8fc; border-radius: 50%; background: #8069e2; box-shadow: 0 0 0 1px #8069e2; }
.tutorial-variant-4 .tutorial-card:last-child::before { background: #db6877; box-shadow: 0 0 0 1px #db6877; }
.tutorial-variant-4 .tutorial-card-top > svg { display: none; }
.tutorial-variant-4 .tutorial-card em { margin-top: 5px; }

.tutorial-variant-5 { gap: 12px; }
.tutorial-variant-5 .tutorial-card { overflow: hidden; padding: 0 16px 16px; border-color: #2d3850; background: #172033; color: #eef1fb; }
.tutorial-variant-5 .tutorial-card:hover { border-color: #8975e8; background: #1c2740; }
.tutorial-variant-5 .tutorial-card-top { margin: 0 -16px 11px; padding: 11px 16px; background: #252e47; }
.tutorial-variant-5 .tutorial-card-top > svg { color: #aa9bff; }
.tutorial-variant-5 .tutorial-badge { color: #ff9cab; }
.tutorial-variant-5 .tutorial-badge i { background: #f06b7c; }
.tutorial-variant-5 .tutorial-card strong { color: #f5f1ff; font-size: 15px; }
.tutorial-variant-5 .tutorial-card > span:not(.tutorial-card-top) { color: #aebbd0; }
.tutorial-variant-5 .tutorial-card em { color: #c5baff; }

@media(max-width:640px) {
  .tutorial-variant-3 { grid-template-columns: 1fr; }
  .tutorial-variant-2 .tutorial-card { grid-template-columns: 24px minmax(0,1fr) auto; }
  .tutorial-variant-4 { margin-left: 4px; padding-left: 12px; }
  .tutorial-variant-4 .tutorial-card { padding-left: 12px; }
  .tutorial-variant-4 .tutorial-card::before { left: -17px; }
}

/* Visual language comparison: switch with ?theme=1 or ?theme=2. */
#models.visual-theme-1 {
  --paper: #f7f8fc;
  --ink: #181827;
  --muted: #68738a;
  --line: #dfe2ee;
  --green: #755de1;
  --dark: #edeaff;
  --lime: #ece8ff;
  background: var(--paper);
  color: var(--ink);
}
#models.visual-theme-1 .gateway-nav { background: rgba(247,248,252,.96); border-bottom-color: #dfe2ee; }
#models.visual-theme-1 .gateway-wordmark > svg,
#models.visual-theme-1 .gateway-navlinks a:hover,
#models.visual-theme-1 .text-link:hover,
#models.visual-theme-1 .text-link:hover svg { color: #755de1; }
#models.visual-theme-1 .network-panel { background: #f0effa; border-color: #d2cfea; box-shadow: 0 18px 42px -30px rgba(117,93,225,.3); }
#models.visual-theme-1 .network-grid { background-image: radial-gradient(circle, rgba(117,93,225,.2) .7px, transparent .85px); }
#models.visual-theme-1 .network-orbit,
#models.visual-theme-1 .flow-track { stroke: #cbc6e4; }
#models.visual-theme-1 .flow-line { stroke: #9a88e8; }
#models.visual-theme-1 .packet-core { fill: #755de1; }
#models.visual-theme-1 .packet-halo { fill: #aa9bf0; }
#models.visual-theme-1 .route-edge.is-selected .flow-line { stroke: #5540b6; }
#models.visual-theme-1 .application-node,
#models.visual-theme-1 .route-provider { border-color: #d1cdea; background: #fff; color: #292541; }
#models.visual-theme-1 .gateway-hub { background: #e9e5ff; border-color: #fff; color: #282144; }
#models.visual-theme-1 .route-provider:hover,
#models.visual-theme-1 .route-provider.is-selected { border-color: #755de1; background: #f0edff; }
#models.visual-theme-1 .route-provider i,
#models.visual-theme-1 .network-mode > i { background: #755de1; }
#models.visual-theme-1 .family-card { background: #fff; border-color: #dfe2ee; box-shadow: 0 14px 34px -28px rgba(117,93,225,.28); border-radius: 14px; }
#models.visual-theme-1 .family-card .family-visual { background: #f1effb; border-bottom-color: #dfe2ee; }
#models.visual-theme-1 .family-card:nth-child(3n + 1) .family-visual,
#models.visual-theme-1 .family-card:nth-child(3n + 2) .family-visual,
#models.visual-theme-1 .family-card:nth-child(3n) .family-visual { background: #f1effb; }
#models.visual-theme-1 .family-artwork { stroke: #8173c5; }
#models.visual-theme-1 .family-card:hover,
#models.visual-theme-1 .family-card.is-selected { border-color: #755de1; }
#models.visual-theme-1 .code-workspace { background: #171d30; border-color: #535778; border-radius: 14px; }
#models.visual-theme-1 .api-reference { background: #171d30; border-color: #535778; border-radius: 14px; }
#models.visual-theme-1 .api-reference-nav,
#models.visual-theme-1 .api-reference-main,
#models.visual-theme-1 .api-reference-note,
#models.visual-theme-1 .api-reference-meta { background: #171d30; }
#models.visual-theme-1 .api-reference-panel-intro { border-bottom-color: #414965; }
#models.visual-theme-1 .api-reference-grid { background: #414965; }
#models.visual-theme-1 .api-reference-block,
#models.visual-theme-1 .api-reference-block.is-response { background: #101625; }
#models.visual-theme-1 .support-card { background: #fbfaff; border-color: #d8d3ee; border-radius: 14px; }
#models.visual-theme-1 .invoice-card { background: #f8f9fd; border-color: #dfe2ee; border-radius: 14px; }
#models.visual-theme-1 .tutorial-variant-5 .tutorial-card { background: #1b2033; border-color: #514b77; border-radius: 12px; }
#models.visual-theme-1 .tutorial-variant-5 .tutorial-card-top { background: #292544; }
#models.visual-theme-1 .tutorial-variant-5 .tutorial-card:hover { background: #232943; border-color: #8975e8; }
#models.visual-theme-1 .faq-section,
#models.visual-theme-1 .gateway-footer,
#models.visual-theme-1 .value-strip,
#models.visual-theme-1 .ecosystem { border-color: #dfe2ee; }
#models.visual-theme-1 .primary-button { background: #755de1; border-color: #755de1; border-radius: 8px; }
#models.visual-theme-1 .primary-button:hover { background: #5e46c4; }

#models.visual-theme-2 {
  --paper: #f5f9fb;
  --ink: #172330;
  --muted: #65788a;
  --line: #d8e3e9;
  --green: #3d8eaa;
  --dark: #eaf4f7;
  --lime: #e1f1f4;
  background: var(--paper);
  color: var(--ink);
}
#models.visual-theme-2 .gateway-nav { background: rgba(245,249,251,.97); border-bottom-color: #d8e3e9; }
#models.visual-theme-2 .gateway-wordmark > svg,
#models.visual-theme-2 .gateway-navlinks a:hover,
#models.visual-theme-2 .text-link:hover,
#models.visual-theme-2 .text-link:hover svg { color: #3d8eaa; }
#models.visual-theme-2 .network-panel { background: #eaf4f7; border-color: #c7dce3; box-shadow: 0 18px 42px -30px rgba(48,132,158,.3); }
#models.visual-theme-2 .network-grid { background-image: radial-gradient(circle, rgba(61,142,170,.2) .7px, transparent .85px); }
#models.visual-theme-2 .network-orbit,
#models.visual-theme-2 .flow-track { stroke: #bfd9e1; }
#models.visual-theme-2 .flow-line { stroke: #55b9d6; }
#models.visual-theme-2 .packet-core { fill: #3d9bb8; }
#models.visual-theme-2 .packet-halo { fill: #84d1e1; }
#models.visual-theme-2 .route-edge.is-selected .flow-line { stroke: #6479d3; }
#models.visual-theme-2 .application-node,
#models.visual-theme-2 .route-provider { border-color: #c4d8e1; background: #fff; color: #26394b; }
#models.visual-theme-2 .gateway-hub { background: #e0f3f7; border-color: #fff; color: #173448; }
#models.visual-theme-2 .route-provider:hover,
#models.visual-theme-2 .route-provider.is-selected { border-color: #4a9ab4; background: #e8f5f7; }
#models.visual-theme-2 .route-provider i,
#models.visual-theme-2 .network-mode > i { background: #3d9bb8; }
#models.visual-theme-2 .family-card { background: #fff; border-color: #d8e3e9; box-shadow: 0 14px 34px -28px rgba(52,110,139,.24); border-radius: 10px; }
#models.visual-theme-2 .family-card .family-visual,
#models.visual-theme-2 .family-card:nth-child(3n + 1) .family-visual,
#models.visual-theme-2 .family-card:nth-child(3n + 2) .family-visual,
#models.visual-theme-2 .family-card:nth-child(3n) .family-visual { background: #edf6f8; border-bottom-color: #d8e3e9; }
#models.visual-theme-2 .family-artwork { stroke: #4d9db4; }
#models.visual-theme-2 .family-card:hover,
#models.visual-theme-2 .family-card.is-selected { border-color: #4a9ab4; }
#models.visual-theme-2 .code-workspace { background: #132131; border-color: #45677a; border-radius: 10px; }
#models.visual-theme-2 .api-reference { background: #132131; border-color: #45677a; border-radius: 10px; }
#models.visual-theme-2 .api-reference-nav,
#models.visual-theme-2 .api-reference-main,
#models.visual-theme-2 .api-reference-note,
#models.visual-theme-2 .api-reference-meta { background: #132131; }
#models.visual-theme-2 .api-reference-panel-intro { border-bottom-color: #375165; }
#models.visual-theme-2 .api-reference-grid { background: #375165; }
#models.visual-theme-2 .api-reference-block,
#models.visual-theme-2 .api-reference-block.is-response { background: #0f1a27; }
#models.visual-theme-2 .support-card { background: #f8fbfc; border-color: #cfe0e6; border-radius: 10px; }
#models.visual-theme-2 .invoice-card { background: #f3f8fa; border-color: #d2e0e5; border-radius: 10px; }
#models.visual-theme-2 .tutorial-variant-5 .tutorial-card { background: #162536; border-color: #46657a; border-radius: 8px; }
#models.visual-theme-2 .tutorial-variant-5 .tutorial-card-top { background: #20394b; }
#models.visual-theme-2 .tutorial-variant-5 .tutorial-card:hover { background: #1b3044; border-color: #62abc3; }
#models.visual-theme-2 .faq-section,
#models.visual-theme-2 .gateway-footer,
#models.visual-theme-2 .value-strip,
#models.visual-theme-2 .ecosystem { border-color: #d8e3e9; }
#models.visual-theme-2 .primary-button { background: #3d8eaa; border-color: #3d8eaa; border-radius: 6px; }
#models.visual-theme-2 .primary-button:hover { background: #2f718b; }

@media(max-width:640px) {
  #models.visual-theme-1 .family-card,
  #models.visual-theme-1 .code-workspace,
  #models.visual-theme-1 .api-reference,
  #models.visual-theme-1 .support-card,
  #models.visual-theme-1 .invoice-card { border-radius: 10px; }
}

/* Mobile model cards: keep the logo and recommendation column inside their grid tracks. */
@media(max-width:640px) {
  #models .family-visual { overflow: hidden; }
  #models .family-recommendations { min-width: 0; width: 100%; overflow: hidden; }
  #models .family-recommendations-label { display: block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px !important; letter-spacing: .03em; }
  #models .family-recommendation-list { min-width: 0; max-width: 100%; overflow: hidden; }
  #models .family-recommendation-list span { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #models .family-series { left: 10px; bottom: 6px; z-index: 4; padding: 2px 3px; border-radius: 3px; background: rgba(241,239,251,.88); }
}

@media(max-width:960px) {
  .support-stack { grid-column: auto; grid-row: auto; }
}

@media(max-width:640px) {
  .invoice-card { padding: 19px 16px; }
  .invoice-columns { grid-template-columns: 1fr; gap: 14px; }
  .invoice-foot { align-items: flex-start; flex-direction: column; gap: 9px; }
  .family-visual { grid-template-columns: 72px minmax(0, 1fr); gap: 9px; padding: 22px 10px 15px; }
  .family-logo-card { width: 68px; height: 68px; border-radius: 7px; }
  .family-logo-card .family-product-logo { width: 45px; height: 45px; }
  .family-logo-card .family-product-logo[src*="gemini-product"] { width: 56px; height: 56px; }
  .family-logo-card .family-product-logo[src*="xai-product"] { width: 62px; height: 62px; }
  .family-recommendations { gap: 5px; }
  .family-recommendations-label { padding: 3px 5px; font-size: 11px; }
  .family-recommendation-list { gap: 3px; }
  .family-recommendation-list span { padding: 4px 5px; font-size: 11px; }
  .provider-symbol .provider-logo { width: 14px; height: 14px; }
  .symbol-openai .provider-logo { width: 15px; height: 15px; }
  .family-product-logo { width: 62px; height: 62px; }
  .family-product-logo[src*="gemini-product"] { width: 76px; height: 76px; }
  .family-product-logo[src*="xai-product"] { width: 56px; height: 56px; }
  .family-product-logo[src*="deepseek.svg"],
  .family-product-logo[src*="qwen.svg"] { width: 60px; height: 60px; }
  .family-models { margin-top: 9px; font-size: 8px; }
  .model-directory-variant-1 .family-recommendation-list span { font-size: 11px; }
  .model-directory-variant-2 .family-recommendation-list span { font-size: 11px; }
  .model-directory-variant-3 .family-recommendation-list span { font-size: 10px; }
}
