:root{--qa-bg:#fafafa;--qa-card:#ffffff;--qa-border:#e5e7eb;--qa-text:#111827;--qa-muted:#6b7280;--qa-primary:#111111;--qa-primary-hover:#000000;--qa-success:#059669;--qa-success-hover:#047857;--qa-ghost:#f3f4f6;--qa-ring:rgba(17,17,17,0.12);--qa-radius:12px;--qa-shadow:0 1px 2px rgba(0,0,0,0.04),0 8px 24px rgba(0,0,0,0.06)}.questionnaire-automation-container{font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Microsoft YaHei,PingFang SC,Helvetica Neue,Arial,sans-serif;color:var(--qa-text)}.questionnaire-automation-container *{font-size:14px;box-sizing:border-box}.qa-container .card{background:var(--qa-card);border:1px solid var(--qa-border);border-radius:var(--qa-radius);box-shadow:var(--qa-shadow);padding:16px}.section-title{font-size:16px;font-weight:600;color:var(--qa-text);margin-bottom:12px}.muted{color:var(--qa-muted)}.segmented{display:inline-flex;padding:4px;border:1px solid var(--qa-border);border-radius:10px;background:#fafafa;gap:4px}.segmented-option{display:inline-flex;align-items:center;gap:10px;padding:8px 12px;border-radius:8px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:background-color .2s ease,border-color .2s ease}.segmented-option input[type=radio],input[type=checkbox],input[type=radio]{accent-color:var(--qa-primary)}.segmented-option:has(input:checked){background:#f3f4f6;outline:2px solid var(--qa-ring)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:8px 16px;border-radius:10px;font-weight:600;border:1px solid transparent;transition:background-color .15s ease,color .15s ease,border-color .15s ease,box-shadow .15s ease}.btn:disabled{opacity:.6;cursor:not-allowed}.btn:focus-visible{outline:none;box-shadow:0 0 0 4px var(--qa-ring)}.btn-primary{background:var(--qa-primary);color:#fff}.btn-primary:hover{background:var(--qa-primary-hover)}.btn-success{background:var(--qa-success);color:#fff}.btn-success:hover{background:var(--qa-success-hover)}.btn-ghost{background:var(--qa-ghost);color:#374151;border-color:var(--qa-border)}.btn-ghost:hover{background:#e5e7eb}.dropzone{border:2px dashed var(--qa-border);background:#fafafa}.file-upload.dragover .dropzone{border-color:var(--qa-primary)!important;background:#eef2ff!important}.code-textarea{width:100%;height:16rem;margin-top:12px;resize:vertical;font-family:Consolas,Monaco,Courier New,monospace;background:#fbfbfb}.code-block,.code-textarea{padding:12px;border:1px solid var(--qa-border);border-radius:10px}.code-block{background:#f5f7fb}.log-box{background:#fff;padding:12px;height:16rem;overflow:auto;font-family:Consolas,Monaco,Courier New,monospace;font-size:12px}.log-box,.note{border:1px solid var(--qa-border);border-radius:10px}.note{padding:10px 12px}.note.success{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}.note.info{background:#f3f4f6;border-color:#e5e7eb;color:#111827}.questionnaire-automation-container h1{font-size:28px;font-weight:700}.questionnaire-automation-container h3{font-size:18px;font-weight:600}.questionnaire-automation-container h4{font-size:16px;font-weight:600}.questionnaire-types{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}.questionnaire-type{padding:16px;border:2px solid #e5e7eb;border-radius:8px;background:white;cursor:pointer;transition:all .3s ease;text-align:center}.questionnaire-type:hover{transform:translateY(-1px)}.questionnaire-type.active,.questionnaire-type:hover{border-color:var(--qa-primary);box-shadow:0 4px 12px rgba(0,0,0,.08)}.questionnaire-type.active{background:#f5f5f5}.questionnaire-type .title{font-size:16px;font-weight:600;color:#1f2937;margin-bottom:8px}.questionnaire-type .desc{font-size:13px;color:#6b7280;line-height:1.4}.assignee-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}.assignee-card,.assignee-item{padding:12px;border:2px solid #e5e7eb;border-radius:8px;background:white;cursor:pointer;transition:all .2s ease;text-align:center}.assignee-card:hover,.assignee-item:hover{border-color:var(--qa-primary);box-shadow:0 2px 8px rgba(0,0,0,.08)}.assignee-card.active,.assignee-card.selected,.assignee-card[aria-selected=true],.assignee-item.active,.assignee-item.selected,.assignee-item[aria-selected=true]{border-color:var(--qa-primary);background:#f5f5f5;box-shadow:0 2px 8px rgba(0,0,0,.08)}.assignee-name{font-weight:600;color:#1f2937;margin-bottom:4px}.assignee-count{font-size:12px;color:#6b7280}.date-list,.date-status{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}.assignee-item:focus-visible,.assignee-item:focus-within,.date-item:focus-visible,.date-item:focus-within{outline:none;box-shadow:0 0 0 3px var(--qa-ring)}.date-item{padding:12px;border:2px solid #e5e7eb;border-radius:8px;background:white;cursor:pointer;transition:all .2s ease;text-align:center}.date-item:hover{border-color:var(--qa-primary);box-shadow:0 2px 8px rgba(0,0,0,.08)}.date-item.active,.date-item.current,.date-item.selected,.date-item[aria-selected=true]{border-color:var(--qa-primary);background:#f5f5f5;box-shadow:0 2px 8px rgba(0,0,0,.08)}.date-item.completed{border-color:#10b981;background:#ecfdf5}.date-item.completed:hover{border-color:#059669}.date-text{font-weight:600;color:#1f2937;margin-bottom:4px}.date-count{font-size:12px;color:#6b7280}.date-item.completed .date-count{color:#059669}.code-result{margin-bottom:20px;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden}.code-header{background:#f9fafb;padding:12px 16px;border-bottom:1px solid #e5e7eb;display:flex;justify-content:space-between;align-items:center}.code-title{font-weight:600;color:#1f2937}.copy-btn,.copy-button{background:var(--qa-primary);color:white;border:none;padding:6px 12px;border-radius:6px;cursor:pointer;font-size:12px;transition:background-color .2s}.copy-btn:hover,.copy-button:hover{background:var(--qa-primary-hover)}.copy-button.copied{background:#10b981}.code-content{background:#1f2937;color:#f9fafb;padding:16px;font-family:Consolas,Monaco,Courier New,monospace;font-size:12px;line-height:1.5;overflow-x:auto;max-height:400px;overflow-y:auto}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:1000}.modal-content{background:white;border-radius:12px;padding:24px;max-width:500px;width:90%;max-height:80vh;overflow-y:auto;box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 10px 10px -5px rgba(0,0,0,.04)}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.modal-title{font-size:20px;font-weight:600;color:#1f2937}.modal-close{background:none;border:none;font-size:24px;cursor:pointer;color:#6b7280;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:6px;transition:background-color .2s}.modal-close:hover{background:#f3f4f6;color:#1f2937}.sheet-list{display:flex;flex-direction:column;gap:8px}.sheet-item{padding:12px;border:2px solid #e5e7eb;border-radius:8px;background:white;cursor:pointer;transition:all .2s ease}.sheet-item:hover{border-color:#3b82f6;background:#eff6ff}.sheet-item.active{border-color:var(--qa-primary);background:#f5f5f5;box-shadow:0 2px 8px rgba(0,0,0,.08)}.sheet-name{font-weight:600;color:#1f2937;margin-bottom:4px}.sheet-info{font-size:12px;color:#6b7280}@media (max-width:768px){.assignee-list,.questionnaire-types{grid-template-columns:1fr}.date-list,.date-status{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}.validation-buttons{flex-direction:column}.modal-content{margin:20px;width:calc(100% - 40px)}}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.fade-in{animation:fadeIn .3s ease-out}.hidden{display:none!important}.loading{opacity:.6;pointer-events:none}.loading:after{content:"";position:absolute;top:50%;left:50%;width:20px;height:20px;margin:-10px 0 0 -10px;border:2px solid #3b82f6;border-top-color:transparent;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(1turn)}}.sheet-modal{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:10000}.empty-state{padding:16px;border:1px dashed var(--qa-border);border-radius:10px;background:#fafafa}.sheet-modal-content{background:white;border-radius:12px;padding:30px;max-width:800px;width:90%;max-height:80vh;overflow-y:auto;box-shadow:0 10px 30px rgba(0,0,0,.3)}.sheet-modal h3{font-size:20px;color:#333;margin-bottom:20px;text-align:center;border-bottom:2px solid var(--qa-primary);padding-bottom:10px}.match-info{background:#f8f9fa;padding:15px;border-radius:8px;margin-bottom:20px;border-left:4px solid var(--qa-primary)}.match-info h4{color:#007bff;margin-bottom:8px;font-size:16px}.sheet-modal .sheet-list{display:grid;gap:10px;margin-bottom:20px}@media (min-width:640px){.sheet-modal .sheet-list{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}}.sheet-modal .sheet-item{padding:15px;border:2px solid #e9ecef;border-radius:8px;cursor:pointer;transition:all .3s ease;background:#f8f9fa}.sheet-modal .sheet-item.selected,.sheet-modal .sheet-item:hover{border-color:var(--qa-primary);background:#f3f4f6}.sheet-modal .sheet-item.selected{box-shadow:0 2px 8px rgba(0,0,0,.08)}.sheet-modal .sheet-item .sheet-name{font-weight:700;color:#333;margin-bottom:5px}.sheet-modal .sheet-item .sheet-info{font-size:12px;color:#666}.sheet-preview{background:#f8f9fa;padding:15px;border-radius:8px;margin-bottom:20px}.preview-table{width:100%;border-collapse:collapse;font-size:12px}.preview-table td,.preview-table th{padding:8px;border:1px solid #dee2e6;text-align:left}.preview-table th{background:#e9ecef;font-weight:700}.modal-buttons{display:flex;gap:15px;justify-content:center;margin-top:25px}.modal-btn{padding:10px 25px;border:none;border-radius:6px;cursor:pointer;font-size:14px;font-weight:700;transition:all .3s ease}.modal-btn.primary{background:var(--qa-primary);color:#fff}.modal-btn.primary:hover{background:var(--qa-primary-hover)}.modal-btn.secondary{background:var(--qa-ghost);color:#374151}.modal-btn.secondary:hover{background:#e5e7eb}.modal-btn:disabled{background:#e9ecef;color:#6c757d;cursor:not-allowed}.remember-choice{padding:10px;background:#fff3cd;border:1px solid #ffeaa7;border-radius:6px;margin-bottom:15px}.remember-choice label{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:14px;color:#856404}