/* Full-width documentation shell. Navigation is the primary entry point. */
:root{--sidebar:300px;--header:80px}
#protocol table{min-width:820px}
#protocol td:first-child{width:25%;min-width:205px}
#protocol td:nth-child(2){width:15%}
#protocol td code{white-space:nowrap;overflow-wrap:normal}
html{scroll-padding-top:112px}
body{font-size:15px;line-height:1.85}
.header{height:var(--header);padding:0 36px;background:#fff}
.brand{gap:15px;color:#253f67;font-weight:600;letter-spacing:0}
.brand-title{font-size:21px;letter-spacing:1px}
.brand-mark{width:36px;height:36px;border-radius:11px;font-size:33px}
.layout{display:grid;grid-template-columns:minmax(0,1fr);margin:0 0 0 var(--sidebar);max-width:none;min-height:calc(100dvh - var(--header));border:0}
.sidebar{position:fixed;top:var(--header);bottom:0;left:0;width:var(--sidebar);height:auto;padding:36px 24px 48px;background:#f7f9fd;border-right:1px solid var(--line);display:block;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:transparent transparent}
.sidebar:hover{scrollbar-color:#c8d5e8 transparent}
.sidebar::-webkit-scrollbar{width:5px}
.sidebar::-webkit-scrollbar-thumb{background:transparent;border-radius:4px}
.sidebar:hover::-webkit-scrollbar-thumb{background:#c8d5e8}
.nav-group{color:#899bb8;font-size:12px;font-weight:500;letter-spacing:1px;padding-left:20px;margin:0 0 14px}
.section-group{margin-top:32px}
.nav-link{gap:15px;padding:13px 20px;min-height:52px;border-radius:8px;margin:5px 0;font-size:15px}
.nav-link.active{background:#e4edfc;color:#245bb0}
.nav-icon{width:22px;flex-shrink:0;font-size:19px}
main{max-width:1080px;padding:44px 64px 0}
.breadcrumb{font-size:12px;margin-bottom:40px}
.eyebrow{font-size:12px;margin-bottom:12px}
h1{font-size:38px;line-height:1.4;letter-spacing:-1.1px;margin-bottom:18px}
.lead{font-size:15px;max-width:720px}
.page-title{padding-bottom:36px;margin-bottom:38px}
section{margin:38px 0}
h2{font-size:21px;margin-bottom:18px}
p{margin:14px 0 20px}
.muted{font-size:13px}
code{font-size:13px}
p code,td code,.note code,.facts code{font-size:12px}
.connection{gap:14px;padding:18px 20px;font-size:12px;margin-top:24px}
.connection code{font-size:13px}
.directory-group{font-size:13px;margin-top:32px}
.tool-grid{gap:16px;margin-top:16px}
.tool-grid:has(>.tool-card:nth-child(2):last-child),.tool-grid:has(>.tool-card:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
.tool-card{padding:24px 21px 16px;border-radius:9px}
.tool-icon{width:38px;height:38px;border-radius:9px}
.tool-card h3{font-size:16px;margin:19px 0 9px}
.tool-card p{font-size:13px;margin-bottom:24px}
.card-bottom{font-size:12px;padding-top:13px}
.note{gap:13px;padding:18px 20px;font-size:13px;margin:26px 0}
.note strong{font-size:13px}
.code{margin:20px 0}
.code-head{padding:10px 20px;font-size:11px}
.copy{font-size:11px;padding:3px 12px}
pre{padding:24px;line-height:1.95}
pre code{font-size:13px}
.facts{margin-top:24px}
.facts>div{padding:18px 21px}
.facts span{font-size:12px;margin-bottom:7px}
.facts strong{font-size:14px}
.tab-list{gap:26px;margin-top:24px}
.tab-list button{padding:10px 0;font-size:13px}
.tabs .code{margin-top:14px}
.table-wrap{margin:24px 0}
table{font-size:14px}
th,td{padding:14px 18px}
td:first-child{white-space:normal;min-width:110px;max-width:220px}
.steps{margin:20px 0;padding-left:24px}
.steps li{margin-bottom:14px;line-height:1.95}
.steps li::marker{font-size:13px}
details{padding:18px 0;font-size:14px}
.sources{padding-top:24px;gap:18px;font-size:12px}
.toc{position:fixed;z-index:4;top:calc(var(--header) + 22px);right:0;width:220px;max-height:calc(100dvh - var(--header) - 44px);padding:22px 24px;background:rgba(255,255,255,.98);border:1px solid var(--line);border-right:0;border-radius:12px 0 0 12px;box-shadow:-12px 12px 34px rgba(34,72,120,.10);font-size:13px;transform:translateX(202px);transition:transform .2s ease,box-shadow .2s ease;overflow:auto}
.toc::before{content:"";position:absolute;left:7px;top:22px;bottom:22px;width:2px;border-radius:2px;background:#9db9e2;transition:background .2s}
.toc:hover,.toc:focus-within{transform:translateX(0);box-shadow:-16px 16px 42px rgba(34,72,120,.16)}
.toc:hover::before,.toc:focus-within::before{background:#2864bd}
.toc nav{margin-top:20px}
.toc a{padding:8px 0 8px 18px}
.pager{gap:20px;margin:52px 0 34px}
.pager a{padding:16px 20px}
.pager span{font-size:12px}
.pager strong{font-size:14px;margin-top:5px}
footer{font-size:11px;padding:24px 0 30px}
@media(min-width:1600px){:root{--sidebar:320px}.sidebar{padding-left:28px;padding-right:28px}.layout{grid-template-columns:minmax(0,1fr)}main{padding:52px 72px 0}}
@media(max-width:1180px){:root{--sidebar:260px}.layout{grid-template-columns:minmax(0,1fr)}.toc{display:none}main{padding:36px 44px 0}.sidebar{padding:30px 18px 40px}.nav-link{padding-left:18px;padding-right:18px}.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){:root{--header:64px;--sidebar:min(320px,86vw)}html{scroll-padding-top:90px}.header{padding:0 22px}.brand{gap:12px}.brand-title{font-size:19px}.brand-mark{width:32px;height:32px;font-size:29px}.layout{display:block;margin-left:0}.sidebar{z-index:7;padding:30px 22px 40px;height:auto}.nav-link{font-size:15px;min-height:50px;padding:12px 18px}.nav-group{padding-left:18px}.section-group{margin-top:27px}.backdrop{inset:var(--header) 0 0}main{padding:28px 24px 0}.breadcrumb{margin-bottom:30px;font-size:11px}h1{font-size:31px}.lead{font-size:14px}.page-title{padding-bottom:28px}.tool-grid,.tool-grid:has(>.tool-card:nth-child(2):last-child),.tool-grid:has(>.tool-card:nth-child(4):last-child){grid-template-columns:1fr}.tool-card{padding:20px;grid-template-columns:38px 1fr;column-gap:16px}.tool-card h3{margin:0 0 7px}.tool-card p{margin:0 0 18px}.connection{gap:10px;padding:16px}.connection code{font-size:12px}section{margin:32px 0}h2{font-size:20px}pre{padding:18px}pre code{font-size:12px}.pager{margin-top:38px;gap:12px}.pager a{padding:13px}.pager strong{font-size:13px}.note{padding:16px;font-size:12px}.tab-list{gap:20px}.tab-list button{font-size:12px}th,td{padding:13px 15px;font-size:13px}}


/* Troubleshooting tables scroll inside the article on smaller screens. */
.error-table{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.error-table table{min-width:760px;table-layout:fixed;width:100%}
.error-table th:first-child{width:17%}
.error-table th:nth-child(2){width:35%}
.error-table td{vertical-align:top;overflow-wrap:anywhere}
.error-table:focus-visible{outline:2px solid #2864bd;outline-offset:4px}
.model-link{display:inline-flex;align-items:center;padding:8px 4px;color:#374151;background:transparent;font-size:15px;font-weight:600;letter-spacing:0;transition:color .15s}
.model-link:hover,.model-link:focus-visible{color:#155eef}
.rate-badge{display:inline-flex;align-items:center;height:24px;margin-left:4px;padding:0 9px;border-radius:999px;font:600 11px/1 "Cascadia Code",Consolas,monospace;letter-spacing:0}
.claude-rate{color:#a55320;background:#fff0e6;border:1px solid #f4d1ba}
.codex-rate{color:#1f7652;background:#eaf8f0;border:1px solid #c4e8d3}
.price-table{margin-top:18px;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.price-table table{width:100%;min-width:1160px;font-variant-numeric:tabular-nums;table-layout:fixed}
.price-table .model-col{width:22.5%}.price-table .input-col{width:10.5%}.price-table .output-col{width:8.5%}.price-table .cache-col{width:16%}.price-table .rate-col{width:6.5%}
.price-table td{vertical-align:middle}.price-table td:not(:first-child){font:500 12px/1.7 "Cascadia Code",Consolas,monospace;color:#182230}
.price-table tbody tr{transition:background .14s}.price-table tbody tr:hover{background:#f7f9fd}
.claude-price-table{--price-accent:#f97316}.codex-price-table{--price-accent:#22c55e}
.price-table tbody :is(td:nth-child(2),td:nth-child(3),td:nth-child(4)){background:color-mix(in srgb,var(--price-accent) 6%,transparent);color:#182230;font-weight:700}.price-table .paid-head{background:color-mix(in srgb,var(--price-accent) 6%,transparent);color:color-mix(in srgb,var(--price-accent) 78%,#263349)}
.price-table .official-head{background:#fff;color:#8b95a7}
.price-table tbody :is(td:nth-child(5),td:nth-child(6),td:nth-child(7)){background:#fff;color:#667085;font-weight:400}
.price-table tbody .official-cell{background:#fff!important;color:#667085!important;font-weight:400}
.price-table tbody :is(td:nth-child(5),td:nth-child(6),td:nth-child(7)) .price-value,.price-table tbody .official-cell .price-value{color:#667085;font-weight:500}.price-table tbody :is(td:nth-child(5),td:nth-child(6),td:nth-child(7)) :is(.tier-label,.cache-label,.cache-hour),.price-table tbody .official-cell :is(.tier-label,.cache-label,.cache-hour){color:#98a2b3}
.price-table tbody tr:hover :is(td:nth-child(2),td:nth-child(3),td:nth-child(4)){background:color-mix(in srgb,var(--price-accent) 11%,transparent)}
.model-id{white-space:nowrap;background:transparent!important;padding:0!important;color:#182230!important;font:500 14px/1.5 "Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
.image-model{white-space:nowrap;color:#182230;font:500 14px/1.5 "Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}.image-badge{display:inline-flex;margin-left:8px;padding:2px 7px;border-radius:5px;background:#f2f4f7;color:#667085;font:500 10px/18px "Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
.image-price-list{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.image-price-list>span{white-space:nowrap}.image-price-list small{font:500 11px "Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#8b95a7}
.tier-label,.cache-label,.cache-hour{font:400 12px/1.7 "Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#98a2b3}.price-value{font-weight:700;color:#182230}.cache-price .cache-label,.cache-price .cache-hour{font-size:11px}.price-stack{display:flex;flex-direction:column;gap:2px}.price-stack span{white-space:nowrap}.price-stack span+span{padding-top:2px}.cache-stack{min-width:max-content}.price-table tbody td:last-child{color:#344054;font-weight:700}
.models-page{--sidebar:260px}
.models-page .layout{grid-template-columns:minmax(0,1fr)}
.models-page main{max-width:none;padding:36px 30px 0}
.models-page .toc{display:block}
.models-page .page-title{max-width:880px}
.model-group{--group-accent:#2864bd;margin:32px 0;border:1px solid color-mix(in srgb,var(--group-accent) 36%,#e5eaf2);border-radius:15px;overflow:hidden;background:#fff}
.model-group.claude-group{--group-accent:#f97316}.model-group.codex-group{--group-accent:#22c55e}
.model-group-head{display:flex;align-items:center;min-height:58px;padding:13px 22px;border-bottom:1px solid #edf1f7;background:#fff}
.model-group-head h2{display:inline-flex;align-items:center;gap:6px;margin:0;padding:2px 8px;border-radius:6px;font-size:12px;line-height:20px;font-weight:500;letter-spacing:0}
.claude-group .model-group-head h2{background:#fff7ed;color:#c2410c}
.codex-group .model-group-head h2{background:#f0fdf4;color:#15803d}
.group-mark{width:15px;height:15px;border-radius:50%;background:var(--group-accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--group-accent) 11%,transparent)}
.group-icon{width:14px;height:14px;flex:0 0 auto;color:currentColor}
.rate-pill{display:inline-flex;align-items:center;height:20px;padding:0 6px;border-radius:4px;background:rgba(0,0,0,.08);color:inherit;font:700 10px "Cascadia Code",Consolas,monospace}
.model-group .price-table{margin:0;border:0;border-radius:0}
.model-group .price-table th,.model-group .price-table td{padding:10px 10px;font-size:12px}
.model-group .price-table td:not(:first-child){font-size:11.5px}
@media(max-width:760px){.model-link{padding:7px 2px;font-size:14px}.price-table{margin-left:-2px;margin-right:-2px}.models-page main{padding:28px 20px 0}.model-group{border-radius:11px}.model-group-head{padding:11px 16px}}
@media(max-width:1180px){.models-page .toc{display:none}}

.steps li::marker{color:#2864bd}
