.ap-field-label{display:flex!important;align-items:center;gap:4px;flex-wrap:wrap;min-height:26px}
.ap-polish{display:inline-flex;align-items:center;justify-content:center;gap:4px;margin-left:auto;padding:3px 0 3px 10px;min-height:26px;border:0;background:none;white-space:nowrap;cursor:pointer;font-family:inherit;font-size:12px!important;font-weight:500;color:#6065d8;line-height:20px}
.ap-polish>span{background:linear-gradient(100deg,#336de2,#9656c5);background-clip:text;-webkit-background-clip:text;color:transparent}
.ap-polish svg{width:14px;height:14px;color:#7a65d2;stroke-linecap:round;stroke-linejoin:round}
.ap-polish:hover>span{background:none;color:#4f53c4}.ap-polish:disabled{cursor:not-allowed;opacity:.42}.ap-polish:disabled>span{background:none;color:#8a94a7}
.ap-field-toolbar{display:flex;justify-content:flex-end;margin-bottom:5px}
.ap-polish:focus-visible,.ap-drawer button:focus-visible{outline:2px solid #5881e3;outline-offset:3px;border-radius:5px}
dialog.ap-drawer{position:fixed;inset:0 0 0 auto;width:480px;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;border-left:1px solid #e9edf5;border-radius:0;background:#fff;color:#344054;box-shadow:-16px 0 50px #23334c16;font:13px/1.6 var(--font-family,"Microsoft YaHei",sans-serif);overflow:hidden}
.ap-drawer[open]{display:flex;flex-direction:column;animation:ap-enter .22s ease-out}.ap-drawer::backdrop{background:#15213830}
.ap-drawer header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:22px 24px 18px;border-bottom:1px solid #edf1f7;flex-shrink:0}
.ap-heading{display:flex;align-items:center;gap:10px}.ap-brand{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:linear-gradient(135deg,#eaf2ff,#f4edfc);color:#7864d6}.ap-brand svg{width:19px;height:19px}
.ap-drawer h2{font-size:18px;line-height:26px;color:#253247;margin:0;font-weight:650}.ap-drawer header p{font-size:12px;color:#7c889a;margin:3px 0 0;max-width:328px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ap-close{display:grid;place-items:center;width:30px;height:30px;border:0;border-radius:8px;background:#f7f9fc;color:#7b879a;cursor:pointer;font-size:22px;font-weight:300;flex-shrink:0}
.ap-content{padding:20px 24px;overflow-y:auto;min-height:0;flex:1}.ap-source-badge{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:#7f7b99;background:#f6f5fa;border-radius:5px;padding:3px 7px;margin-bottom:18px}
.ap-drawer fieldset{padding:0;margin:0 0 18px;border:0;min-width:0}.ap-drawer legend,.ap-section-heading label{font-weight:600;color:#42516a;font-size:13px;padding:0;margin-bottom:9px}
.ap-modes{display:flex;gap:7px;flex-wrap:wrap}.ap-mode{position:relative;display:flex;cursor:pointer;flex:0 0 calc((100% - 14px)/3)}.ap-mode input{position:absolute;opacity:0;width:1px;height:1px}.ap-mode span{width:100%;text-align:center;font-size:12px;border:1px solid #e8edf5;border-radius:7px;line-height:20px;padding:7px 8px;background:#fff;color:#69778e}.ap-mode input:checked+span{background:#f0f4ff;border-color:#b9cbf9;color:#365ecc;font-weight:600}.ap-mode input:focus-visible+span{outline:2px solid #5881e3;outline-offset:2px}.ap-mode input:disabled+span{opacity:.6;cursor:wait}
.ap-mode-description{margin:10px 0 0;font-size:12px;color:#8893a4;min-height:20px}.ap-section{margin-top:18px}.ap-section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.ap-section-heading label{margin:0}.ap-section-heading>span{font-size:11px;color:#929daf}
.ap-drawer textarea{display:block;width:100%;padding:12px 14px;border:1px solid #e1e8f3;border-radius:9px;color:#44516a;font:13px/1.85 var(--font-family,"Microsoft YaHei",sans-serif);resize:vertical;outline:none;box-sizing:border-box;min-height:136px;background:#fff}.ap-drawer textarea:focus{border-color:#85a4eb;box-shadow:0 0 0 3px #f1f5ff}.ap-drawer #ap-original{background:#f6f8fb;border-color:#edf1f6;color:#728097;max-height:220px}.ap-drawer #ap-result{min-height:210px}.ap-drawer #ap-result:disabled{background:#fafbfe;color:#97a1b2}
.ap-warning{margin:9px 0 0;color:#8d97a6;font-size:12px}.ap-status{display:flex;align-items:center;gap:7px;margin:10px 0 0;color:#637797;font-size:12px;min-height:20px}.ap-status[data-loading=true]::before{content:'';height:11px;width:11px;border:2px solid #dce6fc;border-top-color:#638be6;border-radius:50%;animation:ap-spin .9s linear infinite;flex-shrink:0}
.ap-error{color:#b54c48;font-size:12px;margin:8px 0 0;min-height:0}.ap-error:empty{display:none}.ap-rules{display:flex;gap:7px;align-items:flex-start;font-size:12px;color:#7f8c9f;padding-top:14px;margin-top:18px;border-top:1px solid #eff2f7}.ap-rules svg{width:14px;height:14px;flex-shrink:0;margin-top:3px}
.ap-drawer footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:16px 24px 20px;border-top:1px solid #edf1f7;background:white;flex-shrink:0}.ap-drawer footer>div{display:flex;gap:8px;align-items:center}.ap-drawer footer button{font-family:inherit;font-size:12px;line-height:20px;white-space:nowrap;padding:8px 10px;border:1px solid #e1e8f3;background:#fff;color:#637089;border-radius:7px;cursor:pointer}.ap-drawer footer .ap-copy{border-color:transparent;padding-left:4px;padding-right:4px;color:#6876a0}.ap-drawer footer .ap-primary{background:#3265e8;border-color:#3265e8;color:white}.ap-drawer footer .ap-cancel{background:#f5f7fa;border-color:#f5f7fa;color:#748096}.ap-drawer footer button:disabled{opacity:.45;cursor:not-allowed}
@keyframes ap-enter{from{transform:translateX(100%)}to{transform:translateX(0)}}@keyframes ap-spin{to{transform:rotate(360deg)}}
@media(max-width:520px){.ap-drawer header,.ap-content{padding:18px}.ap-drawer footer{padding:14px 12px;gap:5px}.ap-drawer footer>div{gap:4px}.ap-drawer footer button{padding:8px}.ap-drawer header p{max-width:240px}.ap-modes{gap:6px}.ap-mode span{padding:6px 9px}}
@media(prefers-reduced-motion:reduce){.ap-drawer[open],.ap-status[data-loading=true]::before{animation:none}}
