.codex-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 24px}.codex-tabs .btn{white-space:nowrap}.codex-quota-grid,.codex-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:20px 0}.codex-quota-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.codex-quota{border:1px solid var(--border);border-radius:12px;padding:24px;display:flex;flex-direction:column;gap:12px}.codex-quota strong{font-size:38px;letter-spacing:-1px}.codex-meter{height:5px;border-radius:5px;background:var(--border);overflow:hidden}.codex-meter i{display:block;height:100%;background:var(--accent);transition:width .6s ease}.codex-stats strong{display:block;font-size:24px;margin:12px 0}.codex-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:12px;margin:12px 0}.codex-pending{margin:20px 0}.codex-pending p{margin:10px 0}.codex-steps{padding-inline-start:24px;line-height:1.8}.codex-steps li{margin:20px 0}.codex-setup{max-width:1000px}.codex-setup pre,.codex-key{white-space:pre-wrap;overflow-wrap:anywhere}.codex-form-actions{margin:18px 0;flex-wrap:wrap}.codex-docs{max-width:1000px;margin:60px auto;padding:0 24px 80px;line-height:1.8}.codex-docs h1{font-size:38px;margin:12px 0}.codex-docs h2{margin-top:40px}.codex-docs table{width:100%;display:block;overflow-x:auto}.codex-docs p,.codex-docs li{overflow-wrap:anywhere}.codex-request-row{cursor:pointer;transition:background .18s,box-shadow .18s}.codex-request-row:hover,.codex-request-row:focus-visible{background:var(--raised);box-shadow:inset 3px 0 var(--accent)}.codex-chat{min-height:260px;max-height:65vh;overflow:auto;display:flex;flex-direction:column;gap:24px;padding:24px 0;direction:ltr}.codex-message{width:86%;max-width:850px;border:1px solid var(--border);border-radius:14px;padding:18px;direction:inherit;animation:codex-enter .25s ease}.codex-message.user{align-self:flex-end;background:var(--raised)}.codex-message.assistant{align-self:flex-start}.codex-message>.markdown{direction:auto;text-align:start;margin:14px 0;unicode-bidi:plaintext}.codex-message>small{display:block;color:var(--muted);font-size:11px}.codex-message>small .mono{font-size:10px;margin-inline-start:8px}.codex-message details{font-size:12px;color:var(--muted);margin-top:10px}.codex-expanded{position:fixed;inset:12px;z-index:90;overflow:auto;background:var(--bg)}.codex-expanded .codex-chat{max-height:58vh}.workflow-generation{border-top:1px solid var(--border);padding-top:12px;margin-top:12px}#workflow-generation-docs{margin-top:30px}@keyframes codex-enter{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}@media(max-width:650px){.codex-stats,.codex-quota-grid{grid-template-columns:1fr}.codex-tabs{gap:6px}.codex-tabs .btn{font-size:11px;padding:8px 10px}.codex-docs{padding:0 16px 50px;margin-top:30px}.codex-message{width:94%;padding:12px;min-width:0}.codex-setup .row{flex-wrap:wrap}.codex-expanded{inset:4px}.codex-docs h1{font-size:28px}}@media(prefers-reduced-motion:reduce){.codex-message{animation:none}.codex-meter i,.codex-request-row{transition:none}}
.codex-docs .row{flex-wrap:wrap}.codex-docs .code-block{min-width:0;max-width:100%}.codex-docs pre{max-width:100%;overflow:auto}.codex-docs #codex-doc-text{min-width:0}
@media(max-width:650px){.public-header:has(+ .codex-docs){flex-wrap:wrap;gap:14px}.public-header:has(+ .codex-docs) .public-nav{flex-wrap:wrap;gap:8px;max-width:100%}}

.key-type-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.codex-docs h2[id]{scroll-margin-top:30px}@media(max-width:650px){.key-type-grid{grid-template-columns:1fr}}
