.codex-setup{margin:26px 0;padding:24px;border:1px solid var(--line,#d2deee);border-radius:20px;background:linear-gradient(145deg,rgba(35,104,205,.07),rgba(35,104,205,.02));min-width:0}
.codex-setup-heading h3{margin:8px 0 10px;font-size:clamp(22px,3.5vw,30px);line-height:1.3;letter-spacing:-.02em;overflow-wrap:anywhere}
.codex-setup-heading p{max-width:74ch}.codex-setup-kicker{font:700 11px/1.5 system-ui;letter-spacing:.14em;color:var(--blue,#1d60bc)}
.codex-setup-summary{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}
.codex-setup-summary>div{display:grid;gap:6px;padding:12px 15px;border:1px solid var(--line,#d2deee);border-radius:12px;min-width:0;max-width:100%;background:var(--surface,#fff)}
.codex-setup-summary span{font-size:12px;opacity:.75}.codex-setup-summary code{overflow-wrap:anywhere;font-size:13px}
.codex-setup-os{display:flex;gap:12px;flex-wrap:wrap;border:0;padding:0;margin:20px 0;min-width:0}.codex-setup-os legend{font-weight:600;margin-bottom:10px}
.codex-os-option{display:flex;align-items:center;justify-content:center;gap:10px;min-height:56px;min-width:150px;padding:14px 22px;border:1px solid var(--line,#cbdaf0);border-radius:14px;background:var(--surface,#fff);color:inherit;font-family:inherit;font-size:16px;line-height:1.5;font-weight:600;cursor:pointer}
.codex-os-option[aria-pressed=true]{background:#175cc7;color:#fff;border-color:#175cc7;box-shadow:0 4px 15px #175cc72a}
.codex-setup :is(button,a,summary):focus-visible{outline:3px solid #65a3f3;outline-offset:4px}
.codex-setup-steps{list-style:none;display:grid;gap:18px;padding:0;margin:24px 0}
.codex-setup-steps>li{display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;align-items:start;padding:0;margin:0}
.codex-step-number{display:grid;place-items:center;min-height:34px;border-radius:50%;background:rgba(32,104,205,.12);color:var(--blue,#1d60bc);font-weight:700}
.codex-setup-steps strong{display:block;font-size:16px;margin:4px 0 7px}.codex-setup-steps p{margin:6px 0;line-height:1.7}
.codex-setup-actions{display:flex;align-items:stretch;gap:10px;flex-wrap:wrap}.codex-setup-actions .btn{min-height:48px;white-space:normal;text-align:center;line-height:1.5;max-width:100%}
.codex-setup-status{min-height:1.6em;margin:8px 0;color:var(--blue,#1d60bc);font-size:14px;overflow-wrap:anywhere}.codex-setup-note,.codex-setup-mobile{font-size:13px;line-height:1.7;opacity:.85}
.codex-setup-details{border-top:1px solid var(--line,#d2deee);padding:14px 0}.codex-setup-details summary{cursor:pointer;font-weight:600;line-height:1.6;overflow-wrap:anywhere;min-height:44px}
.codex-setup-details ul{padding-left:20px;line-height:1.8}.codex-setup-code{max-width:100%;max-height:360px;overflow:auto;white-space:pre;tab-size:2;padding:16px;margin:12px 0;border:1px solid var(--line,#d2deee);border-radius:12px;background:var(--surface,#fff);font:12px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;overscroll-behavior:contain}
.codex-copy-buffer{position:fixed;left:-9999px;top:0;width:1px;height:1px;opacity:0}
.codex-setup-docs{display:inline-block;font-size:13px;line-height:1.7;margin-top:8px;overflow-wrap:anywhere}
@media(max-width:600px){.codex-setup{padding:18px 14px;border-radius:16px;margin:22px -2px}.codex-os-option{min-width:0;flex:1;padding:12px}.codex-setup-summary{display:grid;grid-template-columns:minmax(0,1fr)}.codex-setup-actions .btn{flex:1 1 100%}.codex-setup-steps>li{grid-template-columns:28px minmax(0,1fr);gap:10px}.codex-step-number{min-height:28px}.codex-setup-code{padding:12px}}
html[data-theme=dark] .codex-setup-summary>div,html[data-theme=dark] .codex-os-option:not([aria-pressed=true]),html[data-theme=dark] .codex-setup-code{background:#10233b;color:#dce9ff;border-color:#284366}
