.cp-regulations{position:fixed;inset:0 0 0 auto;width:min(720px,calc(100vw - 20px));height:100dvh;max-height:100dvh;max-width:none;margin:0;padding:0;border:0;border-radius:8px 0 0 8px;background:#fff;color:#172b45;font:12px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;box-shadow:-12px 0 50px #172b4529;overflow:auto}
.cp-regulations *{box-sizing:border-box}.cp-regulations::backdrop{background:#142d4d66}.cp-regulations button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:30px;border:0;border-radius:4px;padding:5px 10px;background:transparent;color:#17579e;font:inherit;cursor:pointer;white-space:nowrap}.cp-regulations button:hover{background:#edf4fc}.cp-regulations button:disabled{opacity:.5;cursor:not-allowed}.cp-regulations svg{width:17px;height:17px;flex:0 0 17px}.cp-regulations :focus-visible{outline:2px solid #2f78d0;outline-offset:2px}
.cp-regulations>header{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;padding:10px 18px;border-bottom:1px solid #e3ebf3;background:#fff}.cp-regulations>header>div{display:flex;align-items:center;gap:8px;color:#17579e}.cp-regulations h2{font-size:14px;font-weight:600;margin:0;color:#172b45}.cp-regulations .cp-reg-close{font-size:22px;line-height:1;color:#61748b}.cp-reg-form{padding:14px 18px 0}.cp-reg-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.cp-reg-form label{display:flex;align-items:center;gap:8px;color:#526c89;white-space:nowrap}.cp-reg-form input:not([type=checkbox]),.cp-reg-form select{font:inherit;min-width:0;flex:1;width:100%;min-height:30px;padding:5px 8px;border:1px solid #cbd8e5;border-radius:4px;background:#fff;color:#172b45;box-shadow:none}.cp-reg-form input:focus,.cp-reg-form select:focus{outline:0;border-color:#2f78d0}.cp-reg-form fieldset{border:0;margin:12px 0;padding:0;min-width:0}.cp-reg-form legend{padding:0;margin-bottom:7px;color:#526c89}.cp-reg-scenes{display:flex;flex-wrap:wrap;gap:6px}.cp-reg-scenes label{position:relative;cursor:pointer}.cp-reg-scenes input{position:absolute;opacity:0;width:1px;height:1px}.cp-reg-scenes span{padding:3px 9px;background:#f1f5f9;border-radius:4px;color:#526c89}.cp-reg-scenes input:checked+span{background:#e8f2ff;color:#17579e;box-shadow:inset 0 0 0 1px #b7d2f2}.cp-reg-scenes input:focus-visible+span{outline:2px solid #2f78d0;outline-offset:2px}.cp-reg-search{display:flex;align-items:center;gap:10px}.cp-reg-search label{flex:1;min-width:0}.cp-regulations .cp-reg-primary{background:#2f78d0;color:#fff;min-height:32px;padding:5px 12px}.cp-regulations .cp-reg-primary:hover{background:#17579e}.cp-reg-mode{font-size:11px;line-height:1.8;color:#61748b;margin:10px 0;padding:8px 10px;background:#f3f7fc;border-radius:4px}
.cp-reg-results{margin:0 18px;border-top:1px solid #d9e3ed;min-height:240px}.cp-reg-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 0;font-size:11px;color:#61748b}.cp-reg-summary strong{font-weight:500;font-size:12px;color:#345779}.cp-reg-result{padding:13px 0;border-bottom:1px solid #e7eef5}.cp-reg-result-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.cp-reg-result h3{margin:0;font-weight:600;font-size:13px;line-height:1.6;overflow-wrap:anywhere}.cp-regulations .cp-reg-collect{background:#edf4fc;font-size:11px;flex-shrink:0}.cp-reg-tags{display:flex;gap:6px;flex-wrap:wrap;margin:5px 0 7px}.cp-reg-tags span{padding:1px 6px;border-radius:3px;background:#f0f3f7;color:#526c89;font-size:11px}.cp-reg-tags .cp-reg-review{background:#fff4df;color:#8b621e}.cp-reg-reason{margin:0 0 8px;color:#526c89;line-height:1.8}.cp-reg-reason b{font-size:11px;font-weight:500;color:#345779;margin-right:8px}.cp-reg-source{display:flex;align-items:center;gap:12px;font-size:11px;color:#61748b}.cp-reg-source a{color:#17579e;text-decoration:none}.cp-reg-source a:hover{text-decoration:underline}.cp-reg-block{margin:7px 0 0;color:#b4424a;font-size:11px}.cp-reg-empty{min-height:245px;padding:32px 12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;color:#526c89}.cp-reg-empty>svg{width:28px;height:28px;color:#7f9fbd}.cp-reg-empty strong{font-weight:500}.cp-reg-empty small{font-size:11px;color:#61748b}.cp-regulations>footer{padding:14px 18px;font-size:11px;color:#61748b}.cp-reg-retrieval-note{margin:0 0 12px;padding:8px 10px;background:#f3f7fc;border-radius:4px;color:#526c89;font-size:11px}
@media(max-width:600px){.cp-reg-fields{grid-template-columns:1fr;gap:8px}.cp-reg-summary{align-items:flex-start;flex-direction:column;gap:3px}.cp-reg-source{flex-wrap:wrap;gap:4px 12px}.cp-reg-form,.cp-regulations>header{padding-left:12px;padding-right:12px}.cp-reg-results{margin:0 12px}.cp-reg-search{gap:6px}}
.cp-ai-settings{width:min(860px,calc(100vw - 20px));overflow:hidden}
.cp-ai-config-form{display:flex;flex-direction:column;height:calc(100dvh - 53px);min-height:0}
.cp-ai-tabs{display:flex;flex-shrink:0;gap:24px;padding:0 18px;border-bottom:1px solid #e3ebf3}
.cp-ai-tabs button{height:40px;padding:0 2px;border-radius:0;color:#61748b}
.cp-ai-tabs button[aria-selected=true]{color:#17579e;box-shadow:inset 0 -2px #2f78d0;font-weight:600}
.cp-ai-config-body{padding:14px 18px;overflow:auto;min-height:0;flex:1}
.cp-ai-config-body [hidden]{display:none}
.cp-ai-note{margin:0 0 14px;padding:9px 11px;background:#f3f7fc;border-radius:4px;color:#526c89;line-height:1.85}
.cp-ai-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px}
.cp-ai-grid>label{display:flex;flex-direction:column;gap:5px;color:#526c89;min-width:0}
.cp-ai-grid input,.cp-ai-grid select,.cp-ai-grid textarea{width:100%;font:inherit;color:#172b45;background:#fff;border:1px solid #cbd8e5;border-radius:4px;padding:6px 8px;min-height:32px;box-shadow:none}
.cp-ai-grid input:focus,.cp-ai-grid select:focus,.cp-ai-grid textarea:focus{outline:0;border-color:#2f78d0}
.cp-ai-grid textarea{resize:vertical;line-height:1.8}
.cp-ai-wide,.cp-ai-grid>label:has(.cp-ai-industry){grid-column:1/-1}
.cp-ai-help{margin:16px 0 0;color:#526c89}
.cp-ai-help>div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px;padding:9px 0;border-bottom:1px solid #edf1f5}
.cp-ai-help dt{color:#345779}.cp-ai-help dd{margin:0;line-height:1.85;overflow-wrap:anywhere}
.cp-ai-config-body code{font-size:11px;color:#345779;overflow-wrap:anywhere}
.cp-ai-test{display:flex;align-items:center;gap:10px;margin-top:12px}
.cp-ai-test button{background:#edf4fc;flex-shrink:0}.cp-ai-test span{color:#61748b;font-size:11px}
.cp-ai-config-footer{flex-shrink:0;padding:10px 18px;border-top:1px solid #e3ebf3;background:#fff}
.cp-ai-config-footer>div{display:flex;align-items:center;justify-content:flex-end;gap:8px}
.cp-ai-status{margin:0;color:#21845f;font-size:11px;overflow-wrap:anywhere;line-height:1.8}.cp-ai-status:not(:empty){margin-bottom:8px}.cp-ai-status.is-error{color:#b4424a}
.cp-ai-parameters{margin:16px 0}.cp-ai-parameters>strong,.cp-ai-preview-title strong{font-size:12px;font-weight:500;color:#345779}
.cp-ai-parameters>div{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0}.cp-ai-parameters button{background:#f1f5f9;font-size:11px}
.cp-ai-parameters table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}.cp-ai-parameters th{background:#f4f7fb;font-weight:500;color:#61748b}.cp-ai-parameters td,.cp-ai-parameters th{padding:6px 8px;border-bottom:1px solid #e7eef5;font-size:11px}
.cp-ai-preview-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.cp-ai-config-body pre{margin:8px 0 14px;background:#f6f9fc;border-radius:4px;padding:12px;color:#345779;font:11px/1.85 ui-monospace,SFMono-Regular,Consolas,"Microsoft YaHei",monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.cp-ai-steps{margin:0 0 14px;padding-left:20px;color:#526c89;line-height:2}.cp-ai-config-body summary{cursor:pointer;color:#345779;font-weight:500;margin:10px 0}.cp-ai-endpoint-preview{display:block;font-weight:500;overflow-wrap:anywhere}
@media(max-width:600px){.cp-ai-grid{grid-template-columns:1fr}.cp-ai-config-body,.cp-ai-config-footer{padding:12px}.cp-ai-tabs{padding:0 12px;gap:18px}.cp-ai-help>div{grid-template-columns:1fr;gap:4px}.cp-ai-parameters{overflow:auto}.cp-ai-test{align-items:flex-start;flex-direction:column}.cp-ai-config-footer>div{gap:4px;flex-wrap:wrap}.cp-ai-settings{width:calc(100vw - 10px)}}
