.wf-upload-panel{padding:20px 22px;border:1px solid #34616e;border-radius:9px;background:linear-gradient(110deg,#15374477,#101e2c);margin:16px 0 20px;min-width:0}
.wf-upload-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:10px}
.wf-upload-heading h3{font-size:15px;color:#d5eff3;font-weight:500}
.wf-upload-heading p,.wf-upload-help{font-size:12px;line-height:1.85;color:#93b4c4;margin-top:6px;overflow-wrap:anywhere}
.wf-upload-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.wf-upload-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 18px!important;min-height:42px;font-size:13px!important;white-space:nowrap}
.wf-upload-input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap}
.wf-upload-status{font-size:12px;color:#87dcc5;line-height:1.8;overflow-wrap:anywhere;margin:10px 0}
.wf-upload-status:empty{display:none}
.wf-upload-status[data-state="error"],.wf-upload-status.error{color:#ffb0a5}
.wf-upload-progress{width:100%;height:8px;accent-color:#57d7c6;margin:2px 0 8px}
.wf-upload-list{display:grid;gap:10px;padding:0;margin:15px 0 0;list-style:none}
.wf-upload-item{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:12px 18px;padding:15px;border:1px solid #294657;border-radius:7px;background:#0d1c29;min-width:0}
.wf-upload-file-info{flex:1 1 230px;min-width:0}
.wf-upload-file-name{display:block;font-size:13px;font-weight:500;color:#c6e3ec;overflow-wrap:anywhere;word-break:break-word}
.wf-upload-file-meta{display:block;font-size:11px;line-height:1.85;color:#8aa8ba;margin-top:5px;overflow-wrap:anywhere}
.wf-upload-file-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}
.wf-upload-file-actions button,.wf-upload-file-actions a{font-size:12px;min-height:34px;padding:7px 10px;border-radius:5px}
.wf-upload-file-actions a{display:inline-flex;align-items:center;border:1px solid #355366;color:#b3d4e2;background:#142634}
.wf-upload-file-actions a:hover{border-color:#4a9eac;color:#8ce9ef}
.wf-upload-file-actions label{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:11px;color:#8eacbd;max-width:100%}
.wf-upload-import-target{max-width:240px;min-width:0;padding:7px 9px;border:1px solid #355467;border-radius:5px;background:#0a1723;color:#c3e0eb;font-size:12px;min-height:34px}
.wf-upload-empty{font-size:12px;line-height:1.8;color:#789db1;padding:13px 0 0}
.wf-upload-text-preview{flex-basis:100%;min-width:0;font-size:12px;color:#8db7c7}
.wf-upload-text-preview summary{cursor:pointer;padding:4px 0;color:#87c6d3}
.wf-upload-text-preview pre,pre.wf-upload-text-preview{white-space:pre-wrap;overflow-wrap:anywhere;max-height:230px;overflow:auto;padding:12px;border:1px solid #284757;border-radius:6px;background:#091622;color:#b6ccda;font:12px/1.8 var(--font-mono);margin:8px 0 0}
.cnc-workflow-manual-title{font-size:13px;color:#aac6d6;margin:17px 0 12px}
.cnc-workflow-source{grid-column:1/-1;min-width:0;display:flex;flex-direction:column;gap:10px;border-bottom:1px solid #294252;padding-bottom:17px}
.cnc-workflow-source-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.cnc-workflow-source-heading>label{font-size:12px;color:#a7bdce;overflow-wrap:anywhere}
.cnc-workflow-source>textarea{width:100%;min-width:0;min-height:104px;resize:vertical;border:1px solid #324b5f;border-radius:6px;background:#0b1723;color:#d9e8f2;padding:9px 11px;font-size:13px;line-height:1.6}
.cnc-workflow-source>textarea::placeholder{color:#6b849a;opacity:1}
.cnc-workflow-source>textarea:hover{border-color:#48697d}
.cnc-workflow-source>textarea:focus{border-color:#36b9c9;outline:2px solid #36d7e81c;outline-offset:1px}
.cnc-workflow-source-heading .wf-upload-actions{width:auto;flex:none}
.cnc-workflow-source-heading .wf-upload-button{width:auto;min-height:36px;padding:7px 13px!important;font-size:12px!important}
.wf-upload-panel.wf-upload-embedded{padding:0;margin:0;border:0;border-radius:0;background:none}
.wf-upload-embedded .wf-upload-help{font-size:11px;line-height:1.8;margin:0}
.wf-upload-embedded .wf-upload-list{margin-top:9px}
.wf-upload-embedded .wf-upload-empty{padding:2px 0 0;font-size:11px}
.wf-upload-embedded .wf-upload-item{padding:12px}
@media(max-width:700px){.cnc-workflow-source>textarea{font-size:16px;padding:8px}.cnc-workflow-source-heading .wf-upload-button{min-height:42px}.cnc-workflow-source-heading{gap:8px}}
.wf-upload-text-preview img{display:block;max-width:100%;max-height:280px;object-fit:contain;border:1px solid #294657;border-radius:6px;margin-top:10px}
.wf-upload-panel[data-dragover="true"]{outline:2px dashed #4bd2df;outline-offset:3px;background:#173a45}
@media(max-width:850px){.wf-upload-file-actions{flex-basis:100%}.wf-upload-import-target{max-width:100%}}
@media(max-width:700px){.wf-upload-panel{padding:16px}.wf-upload-heading{align-items:flex-start;flex-direction:column;gap:10px}.wf-upload-actions{width:100%}.wf-upload-button{width:100%;min-height:44px}.wf-upload-item{padding:13px}.wf-upload-file-actions{gap:8px}.wf-upload-file-actions button,.wf-upload-file-actions a{min-height:38px}.wf-upload-import-target{font-size:16px;width:100%;min-height:40px}.wf-upload-file-actions label{width:100%}.wf-upload-text-preview pre{font-size:11px}}
