.auth-page { min-height: 100dvh; height: 100dvh; overflow: auto; background: #f2f4f7; color: #243248; font-family: system-ui, -apple-system, 'PingFang SC', sans-serif; }
.auth-header { height: 96px; display: flex; justify-content: space-between; align-items: center; padding: 24px 46px; }
.auth-brand { display: inline-flex; align-items: center; white-space: nowrap; }
.auth-brand-lockup { display:block; flex:none; height:38px; width:auto; }
.auth-header-right { display: flex; align-items: center; gap: 20px; font-size: 13px; color: #999; }
.auth-switch { display: inline-grid; place-items: center; min-width: 80px; height: 34px; background: #536df1; color: #fff; border-radius: 10px; font-size: 13px; }
.auth-main { display: flex; align-items: center; flex-direction: column; margin: max(35px, calc(20vh - 96px)) auto 40px; }
.auth-card { width: 400px; max-width: calc(100vw - 40px); padding: 36px; border: 1px solid #e1e6ee; border-radius: 18px; background: #fff; box-shadow: 0 20px 55px -20px #293c612b, 0 2px 8px #26374f08; }
.auth-card h1 { font-size: 26px; line-height: 36px; font-weight: 650; margin: 0 0 26px; letter-spacing: 0; }
.auth-card h1:has(+ .auth-card-intro) { margin-bottom: 8px; }
.auth-card-intro { margin: 0 0 28px; color: #7f8b9d; font-size: 13px; line-height: 1.8; }
.auth-form { display: flex; flex-direction: column; gap: 15px; }
.auth-form input:not([type=checkbox]) { display: block; width: 100%; height: 44px; border: 1px solid #dce2eb; border-radius: 9px; padding: 0 13px; background: #fbfcfe; color: #2c394c; outline: none; font-size: 14px; transition: border-color .15s, box-shadow .15s, background .15s; }
.auth-form input::placeholder { color: #9ba6b6; }
.auth-form input:focus { border-color: #7b8ff0; background: #fff; box-shadow: 0 0 0 3px #536df112; }
.auth-form input[aria-invalid=true] { border-color: #d87070; }
.auth-primary { height: 44px; width: 100%; border-radius: 9px; color: #fff; background: #536df1; font-size: 14px; font-weight: 500; box-shadow: 0 4px 10px #536df11a; transition: background .15s; }
.auth-primary:hover { background: #4b62dd; }
.auth-primary:active { background: #4057cf; }
.auth-primary:disabled { opacity: .6; cursor: wait; }
.auth-secondary-link { font-size: 12px; text-align: center; color: #8290a3; cursor: pointer; }
.auth-secondary-link:hover { color: #536df1; }
.auth-agreement { display: flex; gap: 7px; color: #999; align-items: flex-start; font-size: 12px; line-height: 1.6; margin: 0; }
.auth-agreement input { appearance: none; width: 12px; height: 12px; margin: 4px 0 0; border: 1px solid #ddd; border-radius: 3px; flex-shrink: 0; }
.auth-agreement input:checked { background: #536df1; border-color: #536df1; box-shadow: inset 0 0 0 2px #fff; }
.auth-agreement a { color: inherit; text-decoration: underline; }
.auth-error { font-size: 12px; color: #c75b5b; line-height: 1.6; margin: -2px 0 0; }
.auth-providers { padding-top: 24px; border-top: 1px solid #f7f7f7; margin-top: 24px; display: grid; gap: 14px; }
.auth-wechat { height: 40px; border-radius: 10px; color: #fff; background: #79b678; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.auth-wechat svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.auth-more-providers { display: flex; gap: 10px; justify-content: center; }
.auth-more-providers button { height: 32px; min-width: 72px; padding: 0 10px; border: 1px solid #eee; border-radius: 8px; font-size: 12px; color: #888; }
.auth-footer { font-size: 12px; color: #8b96a6; margin-top: 24px; }
.auth-footer a { color: #657cea; }
.auth-note { font-size: 12px; color: #999; line-height: 1.7; margin: 0 0 18px; }
.auth-legacy { padding: 10px; font-size: 12px; background: #f7f8fd; color: #78809b; border-radius: 8px; margin-bottom: 16px; line-height: 1.7; }
.auth-recovery-code { font-family: ui-monospace, monospace; background: #f7f8fd; border: 1px solid #e9ecf5; border-radius: 9px; padding: 14px 10px; font-size: 14px; color: #4a5877; word-break: break-all; user-select: all; margin: 18px 0; }
.auth-provider-message { width: min(390px, calc(100vw - 32px)); padding: 25px; border-radius: 14px; border: 1px solid #eee; box-shadow: 0 12px 50px #0002; color: #333; }
.auth-provider-message::backdrop { background: #0003; }
.auth-provider-message h2 { font-size: 18px; margin-top: 0; }
.auth-provider-message p { font-size: 13px; line-height: 1.8; color: #888; }
.auth-document { max-width: 760px; margin: 40px auto 80px; background: #fff; border-radius: 15px; padding: 40px; }
.auth-document h1 { font-size: 26px; margin-bottom: 24px; }
.auth-document h2 { font-size: 17px; margin-top: 28px; }
.auth-document p { font-size: 14px; line-height: 1.9; color: #666; }
@media(max-width:620px) { .auth-header { padding: 18px 20px; height: 74px; }.auth-header-right > span { display: none; }.auth-header-right { gap: 5px; }.auth-main { margin-top: 35px; }.auth-card { width: min(400px, calc(100vw - 32px)); max-width: calc(100vw - 32px); padding: 30px 26px; }.auth-document { margin: 20px 16px; padding: 25px; } }
@media(prefers-reduced-motion:reduce) { .auth-form input:not([type=checkbox]), .auth-primary { transition: none; } }
.api-token-manager{width:640px;max-width:calc(100vw - 32px);max-height:calc(100vh - 48px);padding:0}.api-token-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px 12px;border-bottom:1px solid var(--border,#ececec)}.api-token-header h2{margin:0;font-size:18px}.api-token-body{padding:18px 24px;max-height:calc(100vh - 175px);overflow:auto}.api-token-toolbar,.api-token-actions,.api-token-footer{display:flex;align-items:center;gap:10px}.api-token-toolbar{margin:18px 0}.api-token-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--border,#ececec)}.api-token-info{min-width:0;overflow-wrap:anywhere}.api-token-title{display:flex;align-items:center;gap:10px}.api-token-title strong{font-size:14px}.api-token-state{font-size:11px;color:var(--muted,#999);white-space:nowrap}.api-token-state.active{color:#629469}.api-token-hint{display:block;font-size:12px;margin:8px 0;color:var(--muted,#888)}.api-token-actions{flex-shrink:0}.api-token-empty{color:var(--muted,#888);font-size:13px;padding:28px 0;text-align:center}.api-token-status{font-size:12px;padding:0 24px 18px;margin:0;color:var(--muted,#777)}.api-token-status.error{color:#cb5b5b}.api-token-permissions{border:0;padding:0;margin:20px 0}.api-token-permissions legend{font-size:13px;font-weight:600;margin-bottom:8px}.api-token-permission{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:7px 0;font-size:13px}.api-token-permission select{width:130px;padding:7px 10px;border:1px solid var(--border,#ddd);border-radius:6px;background:var(--surface,#fff);color:inherit}.api-token-footer{justify-content:flex-end;margin-top:24px;padding:0!important}.api-token-form .account-edit-field input{width:100%;box-sizing:border-box}.api-token-secret,.api-token-pending{padding:15px;border:1px solid var(--border,#ddd);border-radius:8px;margin:12px 0}.api-token-secret h3{font-size:14px;margin:0 0 10px}.api-token-secret .button{margin-right:8px}.api-token-value{display:block;width:100%;box-sizing:border-box;resize:vertical;min-height:74px;margin:12px 0;font-size:13px;padding:10px;border:1px solid var(--border,#ddd);border-radius:6px;background:var(--surface,#fff);color:inherit;overflow-wrap:anywhere}.api-token-pending p{font-size:13px;line-height:1.6}.api-token-endpoint{box-sizing:border-box;width:100%;padding:10px;border:1px solid var(--border,#ddd);border-radius:6px;background:var(--surface,#fff);color:inherit}@media(max-width:600px){.api-token-body{padding:14px 18px}.api-token-row{flex-wrap:wrap}.api-token-permission select{width:112px}.api-token-toolbar{gap:7px;flex-wrap:wrap}}
.ai-tool-group{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:18px}.ai-tool-group h3{margin:0;font-size:14px;font-weight:600}.ai-tool-field{display:flex;flex-direction:column;align-items:flex-start;gap:8px;font-size:13px}.ai-tool-field .api-token-endpoint{width:100%;box-sizing:border-box;resize:vertical;min-height:58px;font-family:ui-monospace,SFMono-Regular,monospace;font-size:12px;line-height:1.6}.ai-tool-field .setting-action{align-self:flex-end}.ai-tool-status{font-size:13px;line-height:1.6;color:var(--muted)}.ai-tool-status.error{color:var(--danger,#d74a49)}
.auth-filing { padding: 18px 12px; color: #8b8f98; font-size: 11px; text-align: center; }
.auth-filing a { color: inherit; text-decoration: none; }
.auth-filing a:hover { text-decoration: underline; }
