.cp-overlay{position:fixed;inset:0;z-index:18000;background:#0f172a80;display:flex;align-items:center;justify-content:center;padding:20px;box-sizing:border-box}.cp-dialog{width:min(900px,100%);max-height:calc(100dvh - 40px);display:flex;flex-direction:column;background:#fff;border-radius:16px;box-shadow:0 20px 60px #0f172a33;color:#1e293b;font:14px/1.6 system-ui,sans-serif;overflow:hidden}.cp-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 24px;background:#f8fafc;border-bottom:1px solid #e2e8f0}.cp-head h2{font-size:20px;margin:0}.cp-identity{margin:4px 0 0;color:#64748b;overflow-wrap:anywhere}.cp-body{overflow:auto;overscroll-behavior:contain;padding:20px 24px;min-height:0}.cp-dialog button{font:inherit;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#334155;cursor:pointer;padding:8px 12px}.cp-dialog button:hover{background:#eff6ff}.cp-dialog button:disabled{opacity:.5;cursor:wait}.cp-dialog .cp-primary,.cp-tabs .is-active{background:#2563eb;color:#fff;border-color:#2563eb}.cp-dialog .cp-secondary{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}.cp-dialog .cp-danger{color:#dc2626}.cp-toolbar,.cp-tabs,.cp-add,.cp-row-actions,.cp-form-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.cp-toolbar{justify-content:space-between;gap:12px}.cp-tabs{gap:4px}.cp-tip{color:#64748b;margin:12px 0;font-size:13px}.cp-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:14px}.cp-channel{border:1px solid #e2e8f0;border-radius:12px;padding:16px;min-width:0}.cp-channel-head{display:flex;justify-content:space-between;gap:12px}.cp-kind{display:block;color:#64748b;font-size:12px}.cp-enabled{color:#15803d}.cp-disabled{color:#94a3b8}.cp-details{display:grid;grid-template-columns:112px minmax(0,1fr);gap:6px;margin:14px 0}.cp-details dt{color:#64748b}.cp-details dd{margin:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.cp-qr-preview{display:inline-flex;flex-direction:column;align-items:center;color:#2563eb}.cp-qr-preview img{width:110px;height:110px;object-fit:contain}.cp-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.cp-field{display:flex;flex-direction:column;gap:6px;margin:0 0 14px;min-width:0}.cp-field input,.cp-field select,.cp-field textarea{font:inherit;width:100%;padding:10px 12px;border:1px solid #cbd5e1;border-radius:8px;box-sizing:border-box;min-width:0;background:#fff;color:#0f172a}.cp-field textarea{min-height:80px;resize:vertical}.cp-field input:focus,.cp-field select:focus,.cp-field textarea:focus{outline:2px solid #bfdbfe;border-color:#2563eb}.cp-target{display:flex;flex-direction:column;background:#eff6ff;border:1px solid #dbeafe;border-radius:8px;padding:12px;margin:0 0 16px}.cp-form-actions{justify-content:flex-end;position:sticky;bottom:-20px;background:#fff;padding:16px 0 4px;border-top:1px solid #e2e8f0;margin-top:16px}.cp-upload{padding:14px;border:1px dashed #cbd5e1;border-radius:8px;margin:0 0 16px}.cp-upload img{max-height:160px;max-width:100%;object-fit:contain}.cp-notice{padding:0 24px;margin:0 0 16px;color:#15803d}.cp-notice:empty{display:none}.cp-notice.is-error{color:#dc2626}.cp-history{margin-top:24px}.cp-history h3{font-size:15px}.cp-history article{border-top:1px solid #e2e8f0;padding:10px 0}.cp-history p{margin:4px 0;white-space:pre-wrap}.cp-history small{color:#64748b}.cp-empty{padding:24px;text-align:center;color:#64748b}.cp-dialog [hidden]{display:none!important}@media (max-width:600px){.cp-overlay{padding:8px}.cp-dialog{max-height:calc(100dvh - 16px);border-radius:12px}.cp-head,.cp-body{padding:14px}.cp-head h2{font-size:18px}.cp-form-grid{grid-template-columns:1fr;gap:0}.cp-toolbar{display:block}.cp-add{margin-top:10px}.cp-form-actions{bottom:-14px;justify-content:stretch}.cp-form-actions button{flex:1}.cp-notice{padding:0 14px}.cp-tabs button{flex:1}.cp-tabs{width:100%}}.modal-panel[data-compat-import]{max-height:calc(100dvh - 32px)!important;width:min(880px,calc(100vw - 24px))!important;display:flex;flex-direction:column}.modal-panel[data-compat-import] .modal-body{overflow:auto;min-height:0;padding:18px 22px}.modal-panel[data-compat-import] .modal-header,.modal-panel[data-compat-import] .modal-footer{flex-shrink:0}.modal-panel[data-compat-import] .bind-notice{padding:12px!important;margin-bottom:12px!important}.modal-panel[data-compat-import] .compact-import-identity{font-size:13px!important;line-height:1.5!important}.modal-panel[data-compat-import] .newcs-import-options{padding:10px 12px;margin:12px 0;display:flex;flex-wrap:wrap;gap:10px;font-size:13px}.modal-panel[data-compat-import] .newcs-import-options label{margin:0;display:flex;align-items:center;gap:6px}.modal-panel[data-compat-import] .newcs-import-options input[type=number]{width:72px;padding:6px}.modal-panel[data-compat-import] .paste-textarea{height:160px!important;min-height:120px!important;max-height:280px}.modal-panel[data-compat-import] [hidden]{display:none!important}.newcs-source-tabs{display:flex;gap:8px;margin:14px 0}.newcs-source-tabs button{border:1px solid #cbd5e1;background:white;padding:8px 16px;border-radius:8px;cursor:pointer}.newcs-source-tabs button.is-active{color:#1d4ed8;background:#eff6ff;border-color:#93c5fd}.newcs-import-help{margin-top:16px;font-size:13px;color:#64748b}.newcs-import-help summary{cursor:pointer}.newcs-import-help .format-tips{padding:10px;margin-top:8px}.auto-batch-field{width:210px!important;color:#64748b!important;background:#f8fafc!important}.act-btn.batch,.act-btn.jobs{background:#eff6ff!important;color:#1d4ed8!important}.cp-body progress{width:100%;height:16px}.modal-panel[data-compat-import] .kefu-assign-bar{display:flex!important;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px!important;margin-bottom:10px!important;border-radius:8px!important}.modal-panel[data-compat-import] .ka-left{display:flex;align-items:center;min-width:0}.modal-panel[data-compat-import] .ka-left>img,.modal-panel[data-compat-import] .ka-sub{display:none!important}.modal-panel[data-compat-import] .ka-title{font-size:13px!important;line-height:1.4!important}.modal-panel[data-compat-import] .ka-controls{display:flex!important;align-items:center;gap:10px;flex-wrap:wrap}.modal-panel[data-compat-import] .ctrl-group{margin:0!important;font-size:12px!important;display:flex;align-items:center;gap:5px}.modal-panel[data-compat-import] .locked-sub-pill{padding:2px 4px!important;font-size:12px!important}.auto-batch-label{font-size:12px;color:#64748b}.newcs-import-advanced{border:1px solid #e2e8f0;background:#f8fafc;padding:8px 12px;border-radius:8px;font-size:13px;margin:8px 0}.newcs-import-advanced summary{cursor:pointer;color:#475569}body:has(.modal-panel[data-compat-import]) .adm-im-float-wrap,body:has(.cp-overlay) .adm-im-float-wrap{display:none!important}@media (max-width:700px){.modal-panel[data-compat-import] .kefu-assign-bar{align-items:flex-start;flex-direction:column;gap:4px}.modal-panel[data-compat-import] .modal-header{padding:14px}.modal-panel[data-compat-import] .modal-body{padding:12px}.modal-panel[data-compat-import] .modal-footer{padding:12px;gap:8px}.modal-panel[data-compat-import] .paste-textarea{height:140px!important}.newcs-source-tabs{margin:10px 0}}
