.fd-ai-popup,.fd-cache-confirm{position:fixed;inset:0;margin:auto;padding:0;border:1px solid #dce5f1;border-radius:19px;background:#fff;color:#18263b;box-shadow:0 25px 75px #0a1a3060;width:min(640px,calc(100vw - 20px));max-width:100%;max-height:min(92dvh,900px);overflow:auto;font:14px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.fd-ai-popup::backdrop,.fd-cache-confirm::backdrop{background:rgba(15,28,49,.6);backdrop-filter:blur(4px)}.fd-ai-feature [hidden],.fd-ai-popup [hidden],.fd-cache-confirm [hidden]{display:none!important}.fd-ai-popup .dialog-body,.fd-cache-confirm .dialog-body{padding:24px;display:grid;gap:15px}.fd-ai-popup .dialog-head,.fd-cache-confirm .dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.fd-ai-popup .bulk-cache-header small,.fd-ai-popup .dialog-head small,.fd-cache-confirm .dialog-head small{font-size:10px;letter-spacing:.11em;color:#4375c8;font-weight:800}.fd-ai-popup h2,.fd-cache-confirm h2{font-size:22px;line-height:1.2;margin:5px 0 0;color:#15243d}.fd-ai-popup h3{font-size:14px;line-height:1.3;color:#203657;margin:0}.fd-ai-popup p,.fd-cache-confirm p{margin:0;line-height:1.55}.fd-ai-popup .icon-btn,.fd-cache-confirm .icon-btn{display:grid;place-items:center;flex:none;width:35px;height:35px;background:#f1f5fb;border:1px solid #e0e9f6;border-radius:9px;color:#50647f;font-size:23px;cursor:pointer}.fd-ai-popup .model-disclosure{display:flex;align-items:flex-start;gap:13px;padding:14px 15px;background:#f1f6ff;border:1px solid #dbe8ff;border-radius:12px}.fd-ai-popup .model-disclosure>span{display:grid;place-items:center;flex:none;background:#dbeaff;border-radius:9px;color:#2d63d8;font-size:18px;width:32px;height:32px}.fd-ai-popup .model-disclosure strong{font-size:13px}.fd-ai-popup .model-disclosure p{color:#62738e;font-size:12px;margin-top:4px}.fd-ai-popup .setup-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;list-style:none;margin:0;padding:0}.fd-ai-popup .setup-steps li{font-size:11px;font-weight:700;color:#667b98;border:1px solid #e3eaf4;border-radius:8px;background:#f9fbfe;text-align:center;padding:9px 4px}.fd-ai-popup .setup-steps li.active,.fd-ai-popup .setup-steps li.done{background:#eaf1ff;border-color:#97b8f7;color:#245ccd}.fd-ai-popup .field-label{font-weight:750;color:#263e60;font-size:12px;margin-bottom:-11px}.fd-ai-popup select{border:1px solid #ccd8ea;background:#fff;color:#1a2b48;border-radius:10px;padding:12px 11px;font:inherit;width:100%;max-width:100%}.fd-ai-popup .model-description{color:#657893;font-size:12px;margin-top:-9px}.fd-ai-popup .ai-recovery,.fd-ai-popup .model-bulk-clean,.fd-ai-popup .model-resources{border:1px solid #dee7f5;background:#fafcff;border-radius:13px;padding:15px;display:grid;gap:12px}.fd-ai-popup .resource-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.fd-ai-popup .resource-hint{font-size:11px;color:#7890ac}.fd-ai-popup .resource-item{display:grid;gap:5px}.fd-ai-popup .resource-label{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:8px;font-size:12px}.fd-ai-popup .resource-label strong{font-size:12px}.fd-ai-popup .resource-label span{color:#4d6480;font-size:11px}.fd-ai-popup .resource-meter{position:relative;overflow:hidden;height:11px;background:#e8eef8;border-radius:100px}.fd-ai-popup .resource-meter>span{display:block;width:0%;height:100%;border-radius:100px;background:linear-gradient(90deg,#4288f6,#275bde);transition:width .2s}.fd-ai-popup .resource-meter.resource-unknown>span{width:100%;background:repeating-linear-gradient(110deg,#d9e4f5 0 9px,#eaf0f9 9px 17px)}.fd-ai-popup .resource-note,.fd-ai-popup .setting-caption{font-size:11px;color:#63758f}.fd-ai-popup .dialog-actions,.fd-ai-popup .recovery-actions,.fd-ai-popup .resource-refresh-actions,.fd-cache-confirm .dialog-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.fd-ai-popup .resource-refresh-actions{padding-top:7px;border-top:1px solid #e5ecf7}.fd-ai-popup button.btn,.fd-cache-confirm button.btn{border-radius:9px;padding:10px 12px;font:700 12px/1.35 system-ui,sans-serif;cursor:pointer;background:#f0f5fd;border:1px solid #d8e3f3;color:#315580;min-height:38px}.fd-ai-popup button.btn.primary{background:#2865de;color:#fff;border-color:#2865de;box-shadow:0 6px 13px #235cd623}.fd-ai-popup #fd-connect-model{flex:1;min-width:170px;font-size:13px;padding:12px 15px;min-height:45px}.fd-ai-popup button.btn.danger,.fd-cache-confirm button.btn.danger{color:#b32734;border:1px solid #facad0;background:#fff5f5}.fd-ai-popup button.btn:disabled,.fd-cache-confirm button.btn:disabled{opacity:.52;cursor:not-allowed}.fd-ai-popup .model-bulk-clean{border-color:#e1e8f4;background:#fff}.fd-ai-popup .bulk-cache-header h3{font-size:15px;margin-top:3px}.fd-ai-popup .fd-ai-qa,.fd-ai-popup .model-download-help,.fd-ai-popup .recovery-advanced{background:#f8fafe;border:1px solid #e2eaf5;border-radius:10px;padding:12px;font-size:12px;color:#576d8b}.fd-ai-popup summary{font-weight:750;color:#304f80;cursor:pointer}.fd-ai-popup details p{margin:10px 0}.fd-ai-popup .capability,.fd-ai-popup .device-diagnostics{border-left:3px solid #8aaaea;background:#f5f8ff;padding:9px 12px;font-size:12px;color:#4f698c}.fd-ai-popup .capability.warn{border-color:#dc7d79;color:#a5222c;background:#fff4f4}.fd-ai-popup .ai-recovery{background:#fffaf9;border-color:#f2d5d1}.fd-ai-popup .ai-recovery-head{display:flex;justify-content:space-between;gap:8px}.fd-ai-popup .recovery-stage{font-size:11px;color:#a44832}.fd-ai-popup .recovery-danger,.fd-cache-confirm .recovery-danger{color:#a32d3a;background:#fff4f4;border:1px solid #ffdcdf;border-radius:8px;padding:10px;font-size:12px}.fd-ai-popup .progress-wrap{padding:11px;border:1px solid #dce7f8;border-radius:10px;background:#f8fbff}.fd-ai-popup .progress-status{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:center;font-size:12px;color:#2f4b70}.fd-ai-popup .progress-spinner{width:13px;height:13px;border:2px solid #abc5ef;border-top-color:#2865de;border-radius:50%;animation:ccspin 1s linear infinite}@keyframes ccspin{to{transform:rotate(360deg)}}.fd-ai-popup .progress-track{height:7px;border-radius:20px;background:#e3ebfa;margin:9px 0;overflow:hidden}.fd-ai-popup #fd-progress-bar{height:100%;width:0%;border-radius:20px;background:#3076e8}.fd-ai-popup #fd-progress-label,.fd-ai-popup .progress-hint{color:#667e98;font-size:11px}.fd-ai-popup .fd-popup-footer{border-top:1px solid #e9eef7;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px;padding-top:12px}.fd-ai-popup .fd-popup-footer span{font-size:11px;color:#74839b}.fd-cache-confirm{width:min(540px,calc(100vw - 20px));z-index:2147480001}.fd-cache-confirm .cache-confirm-check{display:flex;gap:9px;align-items:start;font-size:13px;font-weight:650;color:#24354d}.fd-ai-feature{margin-bottom:14px}.fd-ai-feature .tools{display:grid;gap:8px}.fd-ai-feature .fd-review-output{font-family:inherit;white-space:pre-wrap;overflow-wrap:anywhere;max-height:430px;overflow:auto;background:#f5f8ff;border:1px solid #dde6f7;color:#28415e;border-radius:10px;padding:13px;font-size:12px;line-height:1.55;margin:10px 0 0}.fd-ai-feature .fd-review-output:empty{display:none}.fd-ai-feature .fd-ai-qa{font-size:11px;color:#687b94}.fd-ai-feature .fd-ai-qa summary{cursor:pointer}.fd-ai-feature .fd-ai-qa pre{white-space:pre-wrap;overflow-wrap:anywhere}#fd-startup-error button{background:#2865de;color:#fff;border:0;border-radius:8px;padding:9px 14px;cursor:pointer}@media(max-width:520px){.fd-ai-popup,.fd-cache-confirm{max-height:95dvh;border-radius:13px}.fd-ai-popup .dialog-body,.fd-cache-confirm .dialog-body{padding:15px;gap:12px}.fd-ai-popup h2{font-size:19px}.fd-ai-popup .setup-steps{grid-template-columns:repeat(2,1fr)}.fd-ai-popup .recovery-actions button,.fd-ai-popup .resource-refresh-actions button{flex:1}.fd-ai-popup .dialog-actions button{flex:1}.fd-ai-popup #fd-connect-model{min-width:100%}.fd-ai-popup .resource-label{display:grid}}@media(prefers-reduced-motion:reduce){.fd-ai-popup *,.fd-cache-confirm *{animation:none!important;transition:none!important}}.fd-ai-feature{border:1px solid #d7e5fa;background:linear-gradient(135deg,#f7fbff,#fff);border-radius:16px;padding:18px;display:grid;gap:12px;margin:0 0 24px}.fd-ai-feature h3{margin:0;color:#204b84;font-size:17px}.fd-ai-feature p{margin:0;color:#536984;font-size:13px}.fd-ai-feature .fd-ai-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px}.fd-ai-feature .fd-ai-actions button{font-size:12px}.fd-ai-feature .fd-ai-output{font:13px/1.65 system-ui,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;max-height:340px;overflow:auto;background:#fff;color:#273d5c;border:1px solid #e1e9f6;border-radius:10px;padding:13px;margin:0}.fd-ai-feature .fd-ai-output:empty{display:none}.fd-ai-feature .fd-ai-qa pre{font:11px/1.5 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto}.fd-ai-feature .fd-ai-qa{font-size:12px;color:#60738d}.fd-startup-error{border:2px solid #ef8b95;border-radius:10px;padding:12px;background:#fff0f0;color:#932f3d;margin:14px 0}.fd-startup-error button{border:0;background:#2865de;color:#fff;border-radius:8px;padding:9px 12px;cursor:pointer}@media(max-width:520px){.fd-ai-feature{padding:12px}.fd-ai-feature .fd-ai-actions button{width:100%}}.fd-ai-popup .fd-technical{border:1px solid #e0e8f4;border-radius:11px;padding:12px;background:#f8fafe;font-size:12px;color:#536d8b}.fd-ai-popup .fd-technical summary{cursor:pointer;font-weight:750}.fd-ai-popup .fd-technical p{margin:9px 0}.fd-ai-popup .fd-technical pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:200px;overflow:auto;font:11px/1.5 ui-monospace,monospace}.fd-entry{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:10px 0;color:#60708d;font:12px/1.5 system-ui,sans-serif}.fd-entry button{cursor:pointer}.fd-ai-feature{margin:16px 0 22px;padding:18px;border-radius:16px;border:1px solid #d7e5fa;background:#f8fbff;color:#233c5a}.fd-ai-feature h3{font-size:18px;margin:0}.fd-ai-feature>p{color:#5d7092;font:13px/1.6 system-ui,sans-serif;margin:8px 0}.fd-ai-feature .fd-ai-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center}.fd-ai-feature .fd-ai-output{margin:10px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;max-height:380px;overflow:auto;padding:12px;background:#fff;border:1px solid #dce6f4;border-radius:10px;color:#26415e;font:13px/1.6 system-ui,sans-serif}.fd-ai-feature .fd-ai-output:empty{display:none}.fd-ai-feature .fd-ai-qa{font:12px/1.5 system-ui,sans-serif}.fd-ai-feature .fd-ai-qa pre{white-space:pre-wrap;overflow-wrap:anywhere}.fd-startup-error{margin:14px 0;padding:13px;background:#fff0f0;border:1px solid #eb8395;border-radius:10px;color:#922f41}.fd-startup-error button{background:#2865de;color:#fff;border:0;border-radius:8px;padding:9px 12px;cursor:pointer}.fd-ai-popup{z-index:2100}.fd-cache-confirm{z-index:2101}.fd-ai-popup *,.fd-cache-confirm *{box-sizing:border-box}.fd-ai-popup button,.fd-cache-confirm button{max-width:100%}body.dark .fd-ai-feature{background:#17253c;color:#e9f1ff;border-color:#435d84}body.dark .fd-ai-feature #fd-review-status,body.dark .fd-ai-feature>p{color:#c5d2e6}body.dark .fd-ai-output{background:#182a41;color:#f1f5ff;border-color:#3b587d}@media(max-width:520px){.fd-ai-feature{padding:12px}.fd-ai-feature .fd-ai-actions button{width:100%}}