:root{color:#18202a;font-synthesis:none;text-rendering:optimizelegibility;background:#eef2f5;font-family:Inter,Microsoft YaHei,Segoe UI,Arial,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input,select,textarea{font:inherit}button{white-space:nowrap}.edc-shell{background:#eef2f5;flex-direction:column;min-height:100vh;display:flex}.topbar{background:#fff;border-bottom:1px solid #d9e0e7;justify-content:space-between;align-items:center;height:64px;padding:0 24px;display:flex}.brand{font-size:18px;font-weight:700}.subbrand{color:#6b7480;margin-top:4px;font-size:13px}.topbar-actions,.intro-actions,.footer-actions,.table-actions,.result-detail-toolbar{align-items:center;gap:10px;display:flex}.primary-button,.secondary-button,.ghost-button,.icon-button,.nav-item,.designer-toolbar button,.tiny-button{color:#24303d;cursor:pointer;background:#fff;border:1px solid #cfd8e3;border-radius:6px;justify-content:center;align-items:center;gap:7px;height:36px;padding:0 12px;display:inline-flex}.primary-button{color:#fff;background:#1463d9;border-color:#1463d9}.primary-button:disabled,.secondary-button:disabled,.tiny-button:disabled{opacity:.55;cursor:not-allowed}.ghost-button{background:#f7f9fb}.icon-button{width:36px;padding:0}.tiny-button{height:28px;padding:0 9px}.workspace{flex:1;grid-template-columns:220px minmax(0,1fr);min-height:0;display:grid}.side-nav{background:#1e2935;flex-direction:column;gap:8px;padding:18px 12px;display:flex}.nav-item{color:#dbe4ed;background:0 0;border-color:#0000;justify-content:flex-start;width:100%}.nav-item.active{color:#fff;background:#2f3d4c;border-color:#46586b}.designer-surface{min-width:0;padding:18px}.designer-toolbar{background:#fff;border:1px solid #d9e0e7;border-radius:8px 8px 0 0;align-items:center;gap:8px;height:48px;padding:0 10px;display:flex}.blank-form{background:#fff;border:1px solid #d9e0e7;border-top:0;min-height:calc(100vh - 150px);padding:28px}.empty-title{margin-bottom:20px;font-weight:700}.empty-line{background:#edf1f5;border-radius:3px;width:46%;height:14px;margin-bottom:16px}.empty-line.wide{width:72%}.empty-grid{border-top:1px solid #e0e6ed;border-left:1px solid #e0e6ed;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:26px;display:grid}.empty-grid div{border-bottom:1px solid #e0e6ed;border-right:1px solid #e0e6ed;height:64px}.modal-backdrop{z-index:20;background:#10182361;justify-content:center;align-items:center;padding:18px;display:flex;position:fixed;inset:0}.embedded-backdrop{background:#f5f7fa;padding:0;position:fixed}.embedded-backdrop .assistant-modal{width:100vw;height:100vh;box-shadow:none;border-radius:0}.assistant-modal{background:#fff;border-radius:8px;flex-direction:column;width:min(1560px,97vw);height:min(940px,94vh);display:flex;overflow:hidden;box-shadow:0 18px 60px #0e1a2740}.modal-header{border-bottom:1px solid #d9e0e7;justify-content:space-between;align-items:center;height:66px;padding:0 18px 0 22px;display:flex}.modal-header h1,.intro-band h2,.pane-header h2,.editor-toolbar h2,.task-band h2,.reserved-step h2,.result-detail h3{margin:0;font-size:18px;line-height:1.25}.modal-header p,.intro-band p,.editor-toolbar p,.task-band p,.result-detail p,.reserved-step p{color:#687482;margin:4px 0 0;font-size:13px;line-height:1.5}.step-rail{background:#f8fafc;border-bottom:1px solid #d9e0e7;grid-template-columns:repeat(6,minmax(0,1fr));min-height:58px;display:grid}.step-item{color:#5f6d7b;cursor:pointer;background:0 0;border:0;border-right:1px solid #e3e8ef;justify-content:center;align-items:center;gap:8px;min-width:0;font-weight:600;display:flex}.step-item span{color:#526170;background:#e8eef5;border-radius:50%;flex:none;justify-content:center;align-items:center;width:24px;height:24px;font-size:12px;display:inline-flex}.step-item.active{color:#124ea0;background:#eef5ff}.step-item.active span,.step-item.done span{color:#fff;background:#1463d9}.wizard-body{background:#fff;flex-direction:column;flex:1;gap:12px;min-height:0;padding:16px 18px;display:flex;overflow:hidden}.wizard-footer{background:#f8fafc;border-top:1px solid #d9e0e7;justify-content:space-between;align-items:center;gap:14px;min-height:58px;padding:10px 18px;display:flex}.footer-status{color:#5e6d7c;flex-wrap:wrap;align-items:center;gap:14px;min-width:0;font-size:13px;display:flex}.footer-status strong{color:#9a4b00}.notice-box{white-space:pre-wrap;border-radius:6px;flex:none;margin:0;padding:10px 12px;font-size:13px;line-height:1.45}.notice-box.ok{color:#116033;background:#f0fff6;border:1px solid #b8dfca}.notice-box.error{color:#9a1f1f;background:#fff3f3;border:1px solid #f1b8b8}.protocol-step,.generate-layout,.import-step{flex:auto;gap:14px;min-height:0;display:grid;overflow:hidden}.intro-band,.task-band,.editor-toolbar,.pane-header,.result-detail-toolbar{justify-content:space-between;align-items:center;gap:16px;display:flex}.intro-band,.task-band,.plain-panel,.reserved-step,.task-progress{background:#fff;border:1px solid #d9e0e7;border-radius:8px;padding:16px}.plain-panel h3{margin:0 0 8px;font-size:15px}.plain-panel p{color:#566575;margin:0}.summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.metric{background:#fbfcfd;border:1px solid #d9e0e7;border-radius:8px;padding:14px 16px}.metric span{color:#687482;font-size:13px;display:block}.metric strong{margin-top:8px;font-size:24px;display:block}.confirm-layout{flex:auto;grid-template-columns:300px minmax(0,1fr);gap:16px;min-height:0;display:grid;overflow:hidden}.form-list-pane,.form-editor-pane,.result-list,.result-detail{background:#fff;border:1px solid #d9e0e7;border-radius:8px;min-width:0;min-height:0}.form-list-pane,.result-list{flex-direction:column;display:flex}.pane-header{border-bottom:1px solid #e4e9ef;padding:12px 14px}.pane-header span{color:#6b7886;font-size:13px;font-weight:700}.form-list{align-content:start;gap:6px;min-height:0;padding:8px;display:grid;overflow:auto}.form-list-row{text-align:left;cursor:pointer;color:#26313e;background:0 0;border:1px solid #0000;border-radius:6px;gap:4px;padding:10px 11px;display:grid}.form-list-row strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.form-list-row span{color:#6b7886;text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.form-list-row.active{background:#eef5ff;border-color:#b7cff6}.form-editor-pane{padding:14px;overflow:auto}.form-attributes{grid-template-columns:minmax(160px,1.3fr) 150px 170px 90px;align-items:end;gap:12px;margin-top:14px;display:grid}.form-attributes label,.layout-controls label{color:#374454;gap:6px;font-size:13px;font-weight:600;display:grid}.form-attributes input,.form-attributes select,.field-edit-table input,.field-edit-table select,.layout-controls textarea{color:#1f2a36;background:#fff;border:1px solid #cfd8e3;border-radius:6px;width:100%;min-width:0;height:34px;padding:0 9px}.check-label{grid-template-columns:auto 1fr;align-items:center;height:34px;gap:8px!important;display:flex!important}.check-label input{width:auto}.validation-list{color:#815100;background:#fff9ed;border:1px solid #f2d4aa;border-radius:6px;gap:6px;margin-top:12px;padding:10px 12px;font-size:13px;display:grid}.validation-list div{align-items:flex-start;gap:7px;display:flex}.field-table-wrap,.import-table-wrap{border:1px solid #e1e7ee;border-radius:8px;margin-top:14px;overflow:auto}.field-edit-table{border-collapse:collapse;width:100%;min-width:980px;font-size:13px}.field-edit-table th,.field-edit-table td{text-align:left;vertical-align:middle;border-bottom:1px solid #e5eaf0;padding:8px}.field-edit-table th{color:#4f5d6b;background:#f6f8fb;font-weight:700}.field-edit-table tr:last-child td{border-bottom:0}.table-actions{justify-content:flex-start;margin-top:10px}.layout-section{grid-template-columns:300px minmax(0,1fr);gap:14px;margin-top:14px;display:grid}.layout-controls{flex-direction:column;gap:10px;display:flex}.layout-controls textarea{resize:vertical;height:118px;padding:10px;line-height:1.45}.layout-preview{background:#fff;border:1px solid #d9e0e7;border-radius:8px;min-height:180px;padding:12px;overflow:auto}.layout-preview table{border-collapse:collapse;width:100%}.layout-preview td,.layout-preview th{border:1px solid #d9d9d9;padding:8px}.layout-preview input,.layout-preview select,.layout-preview textarea{border:1px solid #8d98a6;border-radius:3px}.reserved-step{text-align:center;flex-direction:column;flex:auto;justify-content:center;align-items:center;min-height:0;display:flex}.reserved-icon{color:#1463d9;background:#eef5ff;border-radius:50%;justify-content:center;align-items:center;width:68px;height:68px;margin-bottom:16px;display:flex}.reserved-step p{max-width:720px}.task-progress.idle{color:#667485}.task-progress.failed{background:#fff7f7;border-color:#f1b8b8}.task-progress-header{color:#445262;justify-content:space-between;align-items:center;gap:12px;font-size:13px;display:flex}.progress-track{background:#e7edf3;border-radius:999px;height:8px;margin-top:9px;overflow:hidden}.progress-track div{background:#1463d9;height:100%;transition:width .2s}.result-layout{grid-template-columns:300px minmax(0,1fr);gap:16px;min-height:0;display:grid;overflow:hidden}.generate-layout{grid-template-rows:auto auto minmax(0,1fr);gap:10px}.generate-layout .task-band{padding:10px 16px}.generate-layout .task-band p{display:none}.generate-layout .task-progress{padding:10px 16px}.result-list{overflow:hidden}.result-list-scroll{align-content:start;gap:6px;min-height:0;padding:8px;display:grid;overflow-y:auto}.result-detail{flex-direction:column;gap:12px;min-height:0;padding:14px;display:flex;overflow:hidden}.code-output{resize:none;color:#111827;background:#fbfcfd;border:1px solid #cfd8e3;border-radius:8px;flex:0 0 clamp(96px,30%,180px);width:100%;min-height:90px;padding:12px;font-family:Cascadia Mono,Consolas,monospace;font-size:12px;line-height:1.55}.layout-preview.generated{flex:auto;min-height:0;overflow:auto}.import-step{grid-template-rows:auto auto minmax(0,1fr)}.import-table-wrap{min-height:0}.direct-modal{width:min(1480px,96vw);height:min(900px,92vh)}.direct-body{flex:1;grid-template-columns:minmax(380px,44%) minmax(0,1fr);min-height:0;display:grid;overflow:hidden}.direct-left,.direct-right{flex-direction:column;gap:12px;min-width:0;min-height:0;padding:16px;display:flex}.direct-left{background:#f7f9fb;border-right:1px solid #d9e0e7}.direct-drop-zone{cursor:pointer;background:#fff;border:1px dashed #aab7c5;border-radius:8px;flex:auto;justify-content:center;align-items:center;min-height:0;display:flex;overflow:auto}.direct-drop-zone.dragging{background:#eef5ff;border-color:#1463d9}.direct-drop-zone.has-image{justify-content:flex-start;align-items:flex-start}.direct-drop-zone img{max-width:100%;height:auto;display:block}.direct-drop-empty{text-align:center;color:#2f3d4c;justify-items:center;gap:9px;display:grid}.direct-drop-empty span{color:#75818d;font-size:13px}.direct-actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.direct-notes{color:#374454;gap:7px;font-size:13px;font-weight:600;display:grid}.direct-notes textarea{resize:vertical;border:1px solid #cfd8e3;border-radius:6px;min-height:78px;padding:10px}.direct-toolbar{flex:none;justify-content:space-between;align-items:center;gap:14px;display:flex}.direct-toolbar h2{margin:0;font-size:18px}.direct-toolbar p{color:#687482;margin:4px 0 0;font-size:13px}.direct-code-output{resize:none;color:#111827;background:#fbfcfd;border:1px solid #cfd8e3;border-radius:8px;flex:280px;width:100%;min-height:220px;padding:12px;font-family:Cascadia Mono,Consolas,monospace;font-size:13px;line-height:1.55}.direct-inspector{flex:0 0 250px;grid-template-columns:minmax(0,1fr) minmax(300px,.95fr);gap:12px;min-height:0;display:grid}.direct-summary,.direct-history{border:1px solid #d9e0e7;border-radius:8px;flex-direction:column;min-width:0;min-height:0;display:flex;overflow:hidden}.direct-field-list,.direct-history-list{align-content:start;gap:7px;min-height:0;padding:8px 12px;display:grid;overflow:auto}.direct-field-list p,.direct-history-list p{color:#687482;margin:0;font-size:13px}.direct-field-row{border-bottom:1px solid #eef2f5;grid-template-columns:96px minmax(0,1fr) 78px;align-items:center;gap:8px;min-height:28px;display:grid}.direct-field-row code{color:#1463d9;font-weight:700}.direct-field-row span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.direct-field-row em{color:#677584;font-style:normal}.direct-review-notes{color:#7a4b00;border-top:1px solid #eef2f5;gap:5px;max-height:86px;padding:8px 12px;font-size:13px;display:grid;overflow:auto}.direct-history-row{border-bottom:1px solid #eef2f5;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 10px;padding-bottom:7px;display:grid}.direct-history-row>div{color:#6d7a88;flex-wrap:wrap;align-items:center;gap:8px;font-size:12px;display:flex}.direct-history-row p{text-overflow:ellipsis;white-space:nowrap;grid-column:1/2;overflow:hidden}.direct-history-row .tiny-button{grid-area:1/2/3/3}.direct-history-row strong.ok{color:#126b3a}.direct-history-row strong.failed{color:#a02626}.spin{animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (width<=980px){.workspace{grid-template-columns:1fr}.side-nav{display:none}.assistant-modal{height:96vh}.step-rail{grid-template-columns:repeat(2,minmax(0,1fr))}.wizard-footer,.intro-band,.task-band,.editor-toolbar{flex-direction:column;align-items:flex-start}.confirm-layout,.layout-section,.result-layout,.summary-grid,.direct-body,.direct-inspector{grid-template-columns:1fr}.direct-left{border-bottom:1px solid #d9e0e7;border-right:0}.direct-toolbar{flex-direction:column;align-items:flex-start}.form-attributes{grid-template-columns:1fr}}
