.acc-page .acc-api-key{margin:24px 0}.acc-page .acc-key-heading,.acc-page .acc-key-heading>div,.acc-page .acc-key-footer,.acc-page .acc-key-footer>div,.acc-page .acc-key-loading{align-items:center;gap:12px;display:flex}.acc-page .acc-key-heading,.acc-page .acc-key-footer{justify-content:space-between}.acc-page .acc-key-heading>div>svg{color:var(--accent)}.acc-page .acc-key-heading h2{margin:0}.acc-page .acc-key-status{color:var(--text-faint);font-size:12px}.acc-page .acc-key-status.enabled{color:var(--accent)}.acc-page .acc-key-value{border:1px solid var(--border-strong);background:var(--bg);border-radius:8px;align-items:center;gap:8px;padding:8px;display:flex}.acc-page .acc-key-value input{min-width:0;color:var(--text);background:0 0;border:0;flex:1;padding:8px;font:13px ui-monospace,monospace}.acc-page .acc-key-value button,.acc-page .acc-key-footer button{justify-content:center;align-items:center;gap:8px;display:inline-flex}.acc-page .acc-key-value button{min-width:36px;min-height:36px;color:var(--text-muted);cursor:pointer;background:0 0;border:0;border-radius:6px;padding:8px}.acc-page .acc-key-value button:hover{color:var(--text);background:var(--surface)}.acc-page .acc-api-key button:focus-visible,.acc-page .acc-key-value input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.acc-page .acc-key-footer{flex-wrap:wrap;margin-top:16px}.acc-page .acc-key-footer>span,.acc-page .acc-key-loading{color:var(--text-faint);font-size:12px}.acc-page .acc-api-key button:disabled{opacity:.5;cursor:wait}@media (max-width:560px){.acc-page .acc-key-footer{flex-direction:column;align-items:flex-start}.acc-page .acc-key-value button span{display:none}}.acc-page .acc-key-retry{color:var(--accent);cursor:pointer;font-size:inherit;background:0 0;border:0;margin-left:4px;padding:0}.acc-page .acc-key-actions{flex-wrap:wrap;gap:8px;margin-top:16px;display:flex}.acc-page .acc-key-actions button{justify-content:center;align-items:center;gap:8px;min-height:40px;display:inline-flex}.acc-page .acc-key-actions button:disabled{cursor:not-allowed}.acc-page .acc-key-footer>div{flex-wrap:wrap}
.key-setup-overlay{z-index:240;background:#000000a6;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.key-setup-dialog{width:min(840px,100%);min-width:0;max-height:calc(100dvh - 48px);color:var(--text);background:var(--bg);border:1px solid var(--border-strong);font-family:var(--ui);border-radius:12px;outline:none;flex-direction:column;font-weight:400;display:flex}.key-setup-heading{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:16px;padding:20px 24px;display:flex}.key-setup-heading>div{align-items:center;gap:12px;display:flex}.key-setup-heading h2{margin:0;font-size:20px;font-weight:600}.key-setup-dialog button{cursor:pointer;font:inherit;transition:background .16s ease-out,color .16s ease-out}.key-setup-dialog button:disabled{cursor:not-allowed;opacity:.5}.key-setup-dialog button:focus-visible,.key-setup-dialog a:focus-visible,.key-setup-dialog pre:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.key-setup-heading>button,.key-setup-endpoint button{min-width:36px;min-height:36px;color:var(--text-muted);background:0 0;border:0;border-radius:6px;justify-content:center;align-items:center;display:inline-flex}.key-setup-heading>button:hover,.key-setup-endpoint button:hover{background:var(--surface);color:var(--text)}.key-setup-body{overscroll-behavior:contain;padding:20px 24px 24px;overflow-y:auto}.key-setup-body>p,.key-setup-help,.key-setup-import p{color:var(--text-muted);margin:0 0 16px;font-size:13px;line-height:1.8}.key-setup-tabs{border-bottom:1px solid var(--border);gap:8px;margin:0 0 20px;display:flex}.key-setup-tabs button{color:var(--text-muted);background:0 0;border:0;border-bottom:2px solid #0000;padding:12px 16px;font-size:14px}.key-setup-tabs button[aria-selected=true],.key-setup-tabs button[aria-pressed=true]{color:var(--text);border-bottom-color:var(--accent)}.key-setup-tabs button:hover{color:var(--text);background:var(--surface)}.key-setup-tabs.small{flex-wrap:wrap;gap:4px;margin-top:24px}.key-setup-tabs.small button{padding:12px;font-size:12px}.key-setup-model{gap:8px;margin:0 0 16px;display:grid}.key-setup-model>label{font-size:13px;font-weight:500}.key-setup-model>p{flex-wrap:wrap;align-items:center;gap:8px;margin:0;font-size:13px;line-height:1.8;display:flex}.key-setup-model>p button{text-underline-offset:3px;color:var(--accent);background:0 0;border:0;padding:4px;text-decoration:underline}.key-setup-endpoint{margin:0;font-size:12px}.key-setup-endpoint dt{color:var(--text-muted);margin-bottom:4px}.key-setup-endpoint dd{align-items:center;gap:8px;margin:0;display:flex}.key-setup-endpoint code{overflow-wrap:anywhere}.key-setup-endpoint button{white-space:nowrap;flex-shrink:0;gap:6px;font-size:12px}.key-setup-help{overflow-wrap:anywhere}.key-setup-dialog h3{margin:24px 0 8px;font-size:14px;font-weight:600}.key-setup-code{border:1px solid var(--border-strong);border-radius:8px;margin:12px 0 24px;overflow:hidden}.key-setup-code header{color:var(--text-muted);background:var(--surface);border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:16px;padding:8px 16px;font-size:12px;display:flex}.key-setup-code header button{color:var(--text);background:0 0;border:0;border-radius:6px;align-items:center;gap:6px;padding:8px;display:inline-flex}.key-setup-code header button:hover{background:var(--surface-2,var(--bg))}.key-setup-code pre{color:var(--text);tab-size:2;white-space:pre;margin:0;padding:16px;font:12px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-x:auto}.key-setup-code ::selection{background:var(--accent);color:var(--bg)}.key-setup-import{padding-bottom:8px}.key-setup-import a,.key-setup-footer>a{color:var(--text-muted);text-underline-offset:3px;align-items:center;gap:6px;font-size:12px;display:inline-flex}.key-setup-import a:hover,.key-setup-footer>a:hover{color:var(--text);text-decoration:underline}.key-setup-notice,.key-setup-error{border:1px solid var(--border-strong);background:var(--surface);border-radius:8px;margin:16px 0;padding:12px 16px;font-size:13px;line-height:1.8}.key-setup-footer{border-top:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;padding:16px 24px;display:flex}.key-setup-footer>div{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.key-setup-footer button{background:var(--surface);min-height:40px;color:var(--text);border:1px solid var(--border-strong);border-radius:8px;align-items:center;gap:8px;padding:10px 12px;font-size:12px;display:inline-flex}.key-setup-footer button.primary{background:var(--accent);color:var(--bg);border-color:var(--accent)}@media (max-width:600px){.key-setup-overlay{padding:12px}.key-setup-dialog{max-height:calc(100dvh - 24px)}.key-setup-heading,.key-setup-body{padding:16px}.key-setup-heading h2{font-size:18px}.key-setup-footer{padding:12px 16px}.key-setup-footer>div{width:100%}.key-setup-footer button.primary{flex:1;justify-content:center}}@media (prefers-reduced-motion:reduce){.key-setup-dialog button{transition:none}}
