: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,.danger-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}.danger-button{color:#fff;background:#d93434;border-color:#d93434}.primary-button:disabled,.secondary-button:disabled,.danger-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}.task-home{flex:1;width:min(1500px,100% - 40px);min-height:0;margin:0 auto;padding:28px 0 40px}.task-create-card,.task-list-card{background:#fff;border:1px solid #d9e0e7;border-radius:10px;box-shadow:0 4px 16px #1f30440d}.task-create-card{grid-template-columns:minmax(260px,1.4fr) minmax(220px,1fr) auto;align-items:end;gap:14px;margin-bottom:18px;padding:18px;display:grid}.task-create-card label{color:#4f5c69;gap:7px;font-size:13px;font-weight:600;display:grid}.task-create-card input,.task-inline-input{color:#1d2936;background:#fff;border:1px solid #cfd8e3;border-radius:6px;width:100%;height:38px;padding:0 10px}.task-list-card{overflow:hidden}.task-list-summary{border-bottom:1px solid #e1e7ee;justify-content:space-between;align-items:center;min-height:54px;padding:0 18px;display:flex}.task-list-summary span{color:#6d7885}.task-list-count{align-items:center;gap:12px;display:flex}.task-list-actions{align-items:center;gap:10px;display:flex}.task-list-empty{color:#718091;justify-content:center;align-items:center;gap:8px;min-height:180px;display:flex}.task-list-table-wrap{overflow:auto}.task-list-table{border-collapse:collapse;width:100%;min-width:1120px;font-size:13px}.task-list-table th,.task-list-table td{text-align:left;vertical-align:middle;border-bottom:1px solid #e5eaf0;padding:13px 14px}.task-list-table th{color:#536170;background:#f6f8fb;font-weight:700}.task-list-table tr:last-child td{border-bottom:0}.task-list-table tbody tr.selected td{background:#fff4f4}.task-list-table .task-select-cell{text-align:center;width:46px;min-width:46px;padding-left:16px;padding-right:8px}.task-select-cell input{accent-color:#1463d9;cursor:pointer;width:16px;height:16px;margin:0}.task-list-table td:nth-child(2){min-width:250px}.task-list-table td:nth-child(3){min-width:180px}.task-list-table td strong,.task-list-table td small{display:block}.task-list-table td small{color:#7b8794;margin-top:5px}.task-inline-input{background:0 0;border-color:#0000;height:32px;padding:0 7px}.task-inline-input:hover,.task-inline-input:focus{background:#fff;border-color:#bfcbd8;outline:none}.task-title-input{font-weight:700}.task-step-badge,.task-status{color:#1458b6;background:#edf4ff;border-radius:999px;align-items:center;min-height:26px;padding:0 9px;font-weight:600;display:inline-flex}.task-status{color:#287746;background:#eef7f0}.task-status.status-draft{color:#5d6977;background:#f3f5f7}.primary-button.compact{height:32px;padding:0 10px}.task-delete-backdrop{z-index:40}.task-delete-dialog{background:#fff;border-radius:10px;grid-template-columns:auto minmax(0,1fr);gap:16px;width:min(520px,100vw - 36px);padding:24px;display:grid;box-shadow:0 20px 60px #0e1a2747}.task-delete-icon{color:#b42318;background:#fee4e2;border-radius:50%;justify-content:center;align-items:center;width:44px;height:44px;display:flex}.task-delete-dialog h2{margin:1px 0 8px;font-size:20px}.task-delete-dialog p{color:#5e6875;margin:0;line-height:1.7}.task-delete-actions{justify-content:flex-end;gap:10px;margin-top:22px;display:flex}.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;align-items:center;gap:6px;min-height:76px;padding:10px 18px;display:flex;overflow-x:auto}.step-item{color:#5f6d7b;cursor:pointer;text-align:left;background:#fff;border:1px solid #0000;border-radius:9px;flex:1 0 142px;justify-content:flex-start;align-items:center;gap:10px;min-width:142px;min-height:52px;padding:7px 12px;transition:border-color .16s,background-color .16s,box-shadow .16s,transform .16s;display:flex;box-shadow:0 1px 2px #1927360a}.step-item:hover{border-color:#c9d7e8;transform:translateY(-1px);box-shadow:0 3px 10px #19273614}.step-item:focus-visible{outline-offset:2px;outline:2px solid #1463d9}.step-index{color:#526170;background:#e8eef5;border-radius:50%;flex:none;justify-content:center;align-items:center;width:28px;height:28px;font-size:12px;display:inline-flex}.step-copy{flex-direction:column;gap:1px;min-width:0;display:flex}.step-copy small{color:#8894a2;font-size:10px;font-weight:500;line-height:1.2}.step-copy strong{color:inherit;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:700;line-height:1.35;overflow:hidden}.step-item.active{color:#124ea0;background:#eef5ff;border-color:#a9c9f7;box-shadow:0 4px 14px #1463d924}.step-item.active .step-copy small{color:#1463d9}.step-item.active .step-index,.step-item.done .step-index{color:#fff;background:#1463d9}.step-item.done{color:#345674;border-color:#d6e3f4}.step-item.done .step-copy small{color:#3b73ad}.step-arrow{color:#a6b2bf;flex:0 0 20px;justify-content:center;align-items:center;width:20px;display:inline-flex}.step-arrow.done{color:#4d83c2}.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}.notice-box.warning{color:#7a4b00;background:#fff9e8;border:1px solid #f0cf8a}.protocol-step,.generate-layout,.import-step{flex:auto;gap:14px;min-height:0;display:grid;overflow:hidden}.protocol-step{padding-right:2px;overflow:hidden auto}.intro-band,.task-band,.editor-toolbar,.pane-header,.result-detail-toolbar{justify-content:space-between;align-items:center;gap:16px;display:flex}.autosave-hint{color:#4f6b5a;white-space:nowrap;flex:none;align-items:center;gap:6px;font-size:13px;display:inline-flex}.autosave-hint svg{color:#2f9e62}.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}.mock-crf-source-file{color:#1458b6;align-items:flex-start;gap:10px;min-width:0;display:flex}.mock-crf-source-file>div{gap:3px;min-width:0;display:grid}.mock-crf-source-file span,.mock-crf-source-file small{color:#667485;font-size:12px}.mock-crf-source-file strong{color:#24303d;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.metric{text-align:left;background:#fbfcfd;border:1px solid #d9e0e7;border-radius:8px;padding:14px 16px}.embedded-session-state{background:#f5f7fa;place-items:center;min-height:100vh;padding:24px;display:grid}.embedded-session-card{color:#24303d;background:#fff;border:1px solid #d9e0e7;border-radius:8px;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;width:min(620px,100%);padding:22px;display:grid}.embedded-session-card p{color:#6b7480;margin:5px 0 0}.embedded-session-card.error{border-color:#efb6b6}.metric span{color:#687482;font-size:13px;display:block}.metric strong{margin-top:8px;font-size:24px;display:block}.metric-button{width:100%;color:inherit;font:inherit;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s}.metric-button:hover{background:#f3f8ff;border-color:#8ab4ed}.metric-button:focus-visible{outline-offset:2px;outline:2px solid #1463d9}.metric-button small{color:#1458b6;margin-top:5px;font-size:12px;font-weight:600;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-list-row.template-matched{padding-right:72px;position:relative}.form-editor-pane{padding:14px;overflow:auto}.form-attributes{grid-template-columns:minmax(200px,1.3fr) 130px 150px 150px 80px;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}.matrix-field-note{color:#35566f;background:#f2f8fc;border:1px solid #c9dfef;border-radius:6px;margin-top:12px;padding:10px 12px;font-size:13px;line-height:1.6}.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{min-width:0;margin-top:14px}.layout-controls{flex-direction:column;gap:10px;display:flex}.layout-help{color:#6b7788;font-size:12px;font-weight:400;line-height:1.5}.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 minmax(0,1fr);gap:10px}.generate-layout .task-band{padding:10px 16px}.generate-layout .task-band p{display:none}.generation-control-bar{grid-template-columns:auto minmax(280px,1fr) auto;align-items:center;gap:22px;display:grid}.generation-control-bar>div:first-child{min-width:150px}.generation-progress{min-width:0}.generation-progress .task-progress{background:0 0;border:0;border-radius:0;padding:0}.generation-progress .task-progress.failed{color:#b42318}.generation-progress .task-progress p,.generation-progress .task-progress details{margin-bottom:0}.result-list{overflow:hidden}.result-list-scroll{align-content:start;gap:6px;min-height:0;padding:8px;display:grid;overflow-y:auto}.result-list .form-list-row{padding-right:70px;position:relative}.template-source-badge{color:#187443;background:#eaf8ef;border:1px solid #8bc4a2;border-radius:999px;align-items:center;min-height:20px;padding:0 7px;font-size:11px;font-style:normal;font-weight:700;line-height:1;display:inline-flex;position:absolute;top:7px;right:8px}.result-detail{flex-direction:column;gap:12px;min-height:0;padding:14px;display:flex;overflow:hidden}.result-detail-tabs{border-bottom:1px solid #d9e0e7;align-items:flex-end;gap:4px;min-height:38px;display:flex}.result-detail-tabs>button[role=tab]{color:#657382;cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;height:36px;padding:0 16px;font-weight:600}.result-detail-tabs>button[role=tab].active{color:#1458b6;border-bottom-color:#1463d9}.confirm-detail-tabs{border-bottom:0;flex:1}.confirm-tabs-toolbar{border-bottom:1px solid #d9e0e7;justify-content:space-between;align-items:flex-end;gap:12px;min-height:39px;margin-top:14px;display:flex}.optimize-layout-button{margin-bottom:5px}.confirm-tab-panels,.confirm-tab-panel{min-width:0;min-height:0}.confirm-tab-panel[hidden]{display:none}.layout-prompt-backdrop{z-index:45}.field-delete-dialog{width:min(540px,100vw - 36px)}.field-delete-summary{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;margin:16px 0 0;padding:10px 12px}.field-delete-summary>div{grid-template-columns:70px minmax(0,1fr);gap:10px;padding:4px 0;display:grid}.field-delete-summary dt{color:#718096}.field-delete-summary dd{overflow-wrap:anywhere;color:#233142;min-width:0;margin:0;font-weight:600}.layout-prompt-dialog{background:#fff;border-radius:10px;width:min(640px,100vw - 36px);overflow:hidden;box-shadow:0 20px 60px #0e1a2747}.layout-prompt-header{border-bottom:1px solid #d9e0e7;justify-content:space-between;align-items:center;gap:16px;padding:18px 20px;display:flex}.layout-prompt-header h2,.layout-prompt-header p{margin:0}.layout-prompt-header h2{font-size:18px}.layout-prompt-header p{color:#687482;margin-top:4px;font-size:13px}.layout-prompt-body{padding:20px}.layout-prompt-body label{color:#374454;gap:8px;font-size:13px;font-weight:600;display:grid}.layout-prompt-body textarea{resize:vertical;color:#1d2939;width:100%;min-height:150px;font:inherit;border:1px solid #cfd8e3;border-radius:6px;padding:10px 12px;line-height:1.55}.layout-prompt-body .layout-help{margin-top:8px;display:block}.layout-prompt-actions{background:#f8fafc;border-top:1px solid #e2e7ed;justify-content:flex-end;gap:10px;padding:14px 20px;display:flex}.result-copy-button{height:30px;margin:0 0 4px auto}.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}.wizard-step-shell{flex:auto;min-height:0;display:flex}.wizard-step-shell.is-hidden{display:none}.wizard-step-shell>.generate-layout{width:100%}.generate-loading-panel{flex:auto;place-items:center;display:grid}.result-tab-panels{flex:auto;min-height:0;display:flex;position:relative}.result-tab-panels>[hidden]{display:none}.result-tab-panels>.tab-panel{flex:auto;width:100%;min-height:0}.code-output.tab-panel,.layout-preview.generated.tab-panel{flex:auto;min-height:0}.layout-preview.generated{flex:auto;min-height:0;overflow:auto}iframe.layout-preview.generated{background:#fff;width:100%;padding:0}.import-step{grid-template-rows:auto auto minmax(0,1fr)}.import-actions{flex:none;align-items:center;gap:10px;display:flex}.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{cursor:default;justify-content:flex-start;align-items:flex-start}.direct-image-list{gap:12px;width:100%;padding:10px;display:grid}.direct-image-card{background:#fff;border:1px solid #d9e0e7;border-radius:6px;overflow:hidden}.direct-image-card-toolbar{background:#f8fafc;border-bottom:1px solid #e5ebf1;justify-content:space-between;align-items:center;gap:10px;min-height:38px;padding:7px 9px;display:flex}.direct-image-card-toolbar span{color:#445263;font-size:13px;font-weight:700}.direct-image-card-toolbar div{flex-wrap:wrap;justify-content:flex-end;gap:6px;display:flex}.direct-image-card img{max-width:100%;height:auto;display:block}.direct-image-count{color:#657382;font-size:13px}.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-output-tabs{border-bottom:1px solid #dfe5ec;flex:none;gap:4px;display:flex}.direct-output-tabs button{color:#5d6977;cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;height:36px;padding:0 16px;font-weight:600}.direct-output-tabs button.active{color:#1463d9;border-bottom-color:#1463d9}.direct-output-tabs button:disabled{color:#a4adb7;cursor:not-allowed}.direct-output-panels{flex:280px;min-height:220px;display:flex}.direct-output-panels>[hidden]{display:none}.direct-code-output{resize:none;color:#111827;background:#fbfcfd;border:1px solid #cfd8e3;border-radius:8px;flex:auto;width:100%;min-height:0;padding:12px;font-family:Cascadia Mono,Consolas,monospace;font-size:13px;line-height:1.55}.direct-html-preview{background:#fff;border:1px solid #cfd8e3;border-radius:8px;flex:auto;width:100%;min-width:0;min-height:0}.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}.tiny-button.danger{color:#a02626}.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{padding:10px 12px}.step-item{flex-basis:150px}.wizard-footer,.intro-band,.task-band,.editor-toolbar{flex-direction:column;align-items:flex-start}.generation-control-bar{grid-template-columns:1fr;gap:10px}.generation-control-bar .primary-button{width:100%}.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}}.mock-crf-result-panel{gap:14px;margin-top:16px;display:grid}.mock-crf-retry-actions{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.mock-crf-retry-actions span{color:#667485;font-size:13px}.task-progress details{color:#667485;margin-top:10px;font-size:12px}.task-progress details code{white-space:pre-wrap;word-break:break-word;margin-top:6px;display:block}.mock-summary-grid{margin-top:0}.visit-list-backdrop{z-index:40}.visit-list-dialog{background:#fff;border-radius:10px;flex-direction:column;width:min(900px,100vw - 36px);max-height:min(720px,100vh - 36px);display:flex;overflow:hidden;box-shadow:0 20px 60px #0e1a2747}.visit-list-header{border-bottom:1px solid #d9e0e7;justify-content:space-between;align-items:center;gap:16px;padding:18px 20px;display:flex}.visit-list-header h2,.visit-list-header p{margin:0}.visit-list-header h2{font-size:18px}.visit-list-header p{color:#687482;margin-top:4px;font-size:13px}.visit-list-table-wrap{min-height:0;padding:0 20px 20px;overflow:auto}.visit-list-table{border-collapse:collapse;width:100%;font-size:13px}.visit-list-table th,.visit-list-table td{text-align:left;vertical-align:top;border-bottom:1px solid #e4e9ef;padding:11px 12px}.visit-list-table th{z-index:1;color:#566575;background:#f8fafc;font-weight:700;position:sticky;top:0}.visit-list-table th:first-child,.visit-list-table td:first-child{color:#687482;width:62px}.visit-list-empty{color:#687482;text-align:center;padding:36px 12px 18px}.template-library-modal{width:min(1680px,98vw);height:min(980px,96vh)}.template-library-body{background:#f3f6f9;flex:1;grid-template-columns:330px minmax(0,1fr);min-height:0;display:grid}.template-library-list-pane{background:#fff;border-right:1px solid #d9e0e7;flex-direction:column;min-width:0;min-height:0;display:flex}.template-search{color:#6b7886;border:1px solid #cfd8e3;border-radius:7px;align-items:center;gap:8px;height:38px;margin:14px 14px 8px;padding:0 10px;display:flex}.template-search:focus-within{border-color:#78a8ee;box-shadow:0 0 0 3px #1463d91a}.template-search input{color:#1f2a36;border:0;outline:0;flex:1;min-width:0;height:100%}.template-list-summary{color:#6b7886;border-bottom:1px solid #edf0f4;justify-content:space-between;align-items:center;min-height:34px;padding:0 15px;font-size:13px;display:flex}.template-form-list{flex:1;align-content:start;gap:5px;min-height:0;padding:8px;display:grid;overflow:auto}.template-form-row{color:#253140;text-align:left;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:7px;gap:5px;width:100%;min-width:0;padding:10px 11px;display:grid}.template-form-row:hover{background:#f5f8fc}.template-form-row.active{background:#edf5ff;border-color:#aac8f4}.template-form-row strong,.template-form-row span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.template-form-row span{color:#6b7886;font-size:12px}.template-empty,.template-detail-loading{color:#73808e;text-align:center;padding:32px 18px}.template-detail-loading{justify-content:center;align-items:center;gap:8px;display:flex}.template-library-detail{background:#fff;border:1px solid #d9e0e7;border-radius:9px;flex-direction:column;min-width:0;min-height:0;margin:14px;padding:16px;display:flex;overflow:hidden}.template-detail-header{justify-content:space-between;align-items:flex-start;gap:18px;display:flex}.template-detail-header h2{margin:0;font-size:20px}.template-detail-header p{color:#6b7886;margin:5px 0 0;font-size:13px}.template-detail-metrics{grid-template-columns:repeat(3,minmax(110px,1fr));gap:8px;display:grid}.template-detail-metrics .metric{min-width:110px;padding:9px 12px}.template-detail-metrics .metric strong{margin-top:4px;font-size:17px}.template-tabs{border-bottom:1px solid #dfe5ec;gap:4px;margin-top:14px;display:flex}.template-tabs button{color:#5d6977;cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;height:38px;padding:0 16px}.template-tabs button.active{color:#1463d9;border-bottom-color:#1463d9;font-weight:700}.template-fields-wrap,.template-html-preview,.template-html-source{border:1px solid #e1e7ee;border-radius:7px;flex:1;min-height:0;margin-top:12px;overflow:auto}.template-fields-table{border-collapse:collapse;width:100%;min-width:960px;font-size:13px}.template-fields-table th,.template-fields-table td{text-align:left;vertical-align:top;border-bottom:1px solid #e6ebf0;padding:9px 10px}.template-fields-table th{z-index:1;color:#4e5b69;background:#f5f8fb;position:sticky;top:0}.template-fields-table code{color:#1458b6;font-size:12px}.template-options-cell{color:#65717e;max-width:320px;line-height:1.5}.template-html-preview{background:#fff;flex-direction:column;display:flex}.template-preview-hint{color:#65717e;background:#f5f8fb;border-bottom:1px solid #e1e7ee;flex:none;padding:8px 12px;font-size:12px}.template-preview-hint code{color:#1458b6}.template-html-preview iframe{background:#fff;border:0;flex:1;width:100%;min-height:0}.template-html-source{color:#d9e6f2;white-space:pre-wrap;overflow-wrap:anywhere;background:#101820;margin-bottom:0;padding:16px;font-size:12px;line-height:1.55}@media (width<=900px){.template-library-body{grid-template-columns:1fr}.template-library-list-pane{border-bottom:1px solid #d9e0e7;border-right:0;max-height:280px}.template-detail-header{display:grid}.template-detail-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.task-home{width:min(100% - 24px,1500px);padding-top:18px}.task-create-card{grid-template-columns:1fr}.topbar{gap:12px;height:auto;min-height:64px;padding:12px}.topbar-actions{flex-wrap:wrap;justify-content:flex-end}}
