:root{--primary:#4e73f5;--primary-end:#7c54e8;--primary-gradient:linear-gradient(135deg, #4e73f5, #7c54e8);--primary-light:#eef2ff;--sidebar-bg:#1b2a4a;--sidebar-text:#ffffffbf;--sidebar-text-active:#fff;--bg:#f0f2f5;--surface:#fff;--border:#e8ecf2;--text-primary:#1f2937;--text-secondary:#6b7280;--text-muted:#9ca3af;--radius:12px;--radius-sm:8px;--shadow-card:0 2px 12px #0000000f;--shadow-md:0 4px 20px #0000001a;--success:#52c41a}*{box-sizing:border-box}body{color:var(--text-primary);background:var(--bg);margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Microsoft YaHei,sans-serif}a{color:inherit}.login-page{min-height:100vh;display:flex}.login-left{background:var(--primary-gradient);color:#fff;flex-direction:column;flex:1;justify-content:center;padding:60px 56px;display:flex}.login-brand{margin-bottom:48px}.login-brand-icon{object-fit:cover;border-radius:14px;width:56px;height:56px;margin-bottom:16px;box-shadow:0 4px 16px #00000026}.login-brand-name{letter-spacing:.5px;margin-bottom:10px;font-size:28px;font-weight:700}.login-brand-sub{opacity:.85;font-size:15px;line-height:1.6}.login-features{flex-direction:column;gap:16px;margin:0;padding:0;list-style:none;display:flex}.login-features li{opacity:.9;align-items:center;gap:12px;font-size:15px;display:flex}.login-feature-dot{background:#ffffffe6;border-radius:50%;flex-shrink:0;width:8px;height:8px;display:inline-block}.login-right{background:var(--sidebar-bg);flex-shrink:0;justify-content:center;align-items:center;width:460px;padding:40px;display:flex}.login-card{background:var(--surface);border-radius:var(--radius);width:100%;box-shadow:var(--shadow-md);padding:36px 32px}.login-submit-btn{margin-top:8px;background:var(--primary-gradient)!important;border:none!important;height:44px!important;font-size:15px!important}.app-shell{min-height:100vh}.app-sider.ant-layout-sider{box-shadow:2px 0 8px #0000001f;background:var(--sidebar-bg)!important}.app-sider .ant-layout-sider-children{background:var(--sidebar-bg);flex-direction:column;display:flex}.sider-logo{border-bottom:1px solid #ffffff14;flex-shrink:0;align-items:center;gap:10px;padding:20px 20px 18px;display:flex}.sider-logo-icon{font-size:20px;line-height:1}.sider-logo-text{color:#fff;letter-spacing:.3px;white-space:nowrap;font-size:14px;font-weight:700}.app-sider-menu.ant-menu-dark{flex:1;padding:8px 0;background:0 0!important}.app-sider-menu.ant-menu-dark .ant-menu-item{border-radius:var(--radius-sm);width:calc(100% - 24px);margin:2px 12px;font-size:14px;color:var(--sidebar-text)!important}.app-sider-menu.ant-menu-dark .ant-menu-item:hover{color:var(--sidebar-text-active)!important;background:#ffffff14!important}.app-sider-menu.ant-menu-dark .ant-menu-item-selected{box-shadow:0 4px 12px #4e73f566;background:var(--primary-gradient)!important;color:#fff!important}.app-sider-menu.ant-menu-dark .ant-menu-item .anticon{font-size:16px}.app-header.ant-layout-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;height:56px;padding:0 24px;line-height:56px;display:flex;background:var(--surface)!important}.app-header-title{color:var(--text-primary);font-size:16px;font-weight:600}.stats-row{grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px;display:grid}.stat-card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow-card);border:1px solid var(--border);align-items:center;gap:16px;padding:20px;display:flex}.stat-card-icon{border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;width:48px;height:48px;font-size:20px;display:flex}.stat-card-value{color:var(--text-primary);font-size:26px;font-weight:700;line-height:1.2}.stat-card-label{color:var(--text-secondary);margin-top:2px;font-size:13px}.gradient-btn.ant-btn-primary{background:var(--primary-gradient)!important;border:none!important}.gradient-btn.ant-btn-primary:hover{opacity:.9}.toolbar{justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.toolbar-left,.toolbar-right{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.page-title{color:var(--text-primary);margin:0 0 16px;font-size:22px;font-weight:700;line-height:1.3}.response-row-active>td{background:#eef2ff!important}.responses-table .ant-table-tbody>tr{cursor:pointer}.response-view-link.ant-btn{padding:0}.response-detail-title{color:#1f2937;justify-content:space-between;align-items:center;width:100%;font-size:15px;font-weight:700;display:flex}.response-detail-close{color:#6b7280;cursor:pointer;background:0 0;border:0;border-radius:6px;width:28px;height:28px;font-size:20px;line-height:1}.response-detail-close:hover{color:#1f2937;background:#f3f4f6}.response-detail{flex-direction:column;gap:16px;display:flex}.response-user{border-bottom:.5px solid #e5e7eb;align-items:center;gap:10px;padding-bottom:14px;display:flex}.response-avatar{color:#4f6ef7;background:#eef2ff;border-radius:50%;flex:none;place-items:center;width:36px;height:36px;font-size:14px;font-weight:700;display:grid}.response-user-meta{min-width:0}.response-user-name{color:#1f2937;font-size:14px;font-weight:700;line-height:1.5}.response-time{color:#9ca3af;font-size:12px;line-height:1.5}.qa-list{flex-direction:column;gap:14px;display:flex}.qa-item{flex-direction:column;gap:6px;display:flex}.qa-num{color:#9ca3af;font-size:11px;line-height:1.4}.qa-question{color:#6b7280;font-size:13px;line-height:1.5}.qa-answer{background:var(--color-background-secondary,#f7f8fa);color:#1f2937;white-space:pre-wrap;word-break:break-word;border-left:2px solid #4f6ef7;border-radius:6px;padding:8px 10px;font-size:14px;line-height:1.6}.qa-answer.empty{color:#9ca3af;border-left-color:#d1d5db;font-style:italic}.response-comment-section{padding-top:4px}.response-comment-input.ant-input-number,.response-comment-input.ant-input{box-shadow:none;border:.5px solid #e5e7eb;border-radius:8px}.response-comment-input.ant-input-number-focused,.response-comment-input.ant-input:focus{box-shadow:none;border-color:#4f6ef7}.editor-grid{grid-template-columns:minmax(0,1fr) 320px;gap:16px;display:grid}.builder-layout{grid-template-columns:260px minmax(520px,1fr) 260px;align-items:start;gap:16px;display:grid}.builder-palette,.builder-actions{position:sticky;top:24px}.builder-palette{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:18px}.palette-title{color:#555;margin:4px 0 10px;font-size:15px;display:block}.palette-grid{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:22px;display:grid}.palette-button{color:#6b7280;height:40px;font:inherit;cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:8px;justify-content:center;align-items:center;gap:8px;transition:background-color .16s,color .16s,border-color .16s;display:flex}.palette-button:hover{background:#f3f4f6}.palette-button.active{color:#4f6ef7;background:#eef2ff;border-color:#c7d2fe}.builder-canvas{min-width:0}.canvas-header-banner{background:var(--primary-gradient);border-radius:var(--radius) var(--radius) 0 0;flex-direction:column;gap:8px;margin-bottom:-8px;padding:28px 32px;display:flex}.canvas-banner-tag{color:#fff;background:#fff3;border-radius:20px;align-items:center;width:fit-content;padding:3px 10px;font-size:12px;font-weight:500;display:inline-flex}.canvas-banner-title{color:#fff;min-height:28px;font-size:20px;font-weight:700}.builder-question.active{box-shadow:0 2px 12px #4e73f51f;border:1.5px solid var(--primary)!important;border-left:4px solid var(--primary)!important}.survey-meta-card{margin-bottom:16px}.question-canvas{background:#fff;border:1px solid #e8ecf2;border-radius:8px;min-height:420px;padding:18px}.rich-editor-shell{background:#fff;border:1px solid #d9e1f2;border-radius:8px;overflow:hidden}.rich-editor-toolbar{background:#fafbfd;border-bottom:1px solid #edf1f7;flex-wrap:wrap;gap:8px;padding:12px;display:flex}.rich-editor-content{outline:none;min-height:360px;padding:20px 22px;line-height:1.7}.rich-editor-content img{border-radius:6px;max-width:100%}.rich-editor-content table{border-collapse:collapse;width:100%}.rich-editor-content table td,.rich-editor-content table th{border:1px solid #d9d9d9;padding:8px 10px}.rich-editor-content:empty:before{content:attr(data-placeholder);color:#999}.rich-preview-card{background:#fcfcfd;border:1px solid #e8ecf2;border-radius:8px;margin-top:16px;padding:18px 20px}.rich-preview-body{color:#1f2329;line-height:1.8}.rich-preview-body img{border-radius:6px;max-width:100%}.rich-preview-body table{border-collapse:collapse;width:100%}.rich-preview-body table td,.rich-preview-body table th{border:1px solid #d9d9d9;padding:8px 10px}.empty-builder{text-align:center;place-items:center;min-height:260px;display:grid}.builder-question{background:#fff;border:.5px solid #e5e7eb;border-radius:12px;margin-bottom:18px;padding:20px 24px;transition:border-color .16s,box-shadow .16s}.builder-question.active{box-shadow:none;border:2px solid #4f6ef7}.question-number{color:#1a1a1a;flex-shrink:0;margin-right:0;padding-top:5px;font-size:15px;font-weight:500;line-height:1.6}.required-mark{color:#ff4d4f;margin-right:4px}.question-head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.question-heading{flex:1;min-width:0}.question-heading-main{flex-wrap:nowrap;flex:1;align-items:flex-start;gap:8px;min-width:0;display:flex}.question-heading-title{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.question-type-tag{color:#666;background:#f0f0f0;border-radius:4px;flex:none;align-items:center;padding:2px 8px;font-size:11px;line-height:1.4;display:inline-flex}textarea.title-auto-resize{color:#1a1a1a;resize:none;box-sizing:border-box;background:0 0;border:none;border-bottom:1.5px solid #0000;outline:none;flex:1;min-width:0;min-height:32px;padding:4px 0;font-family:inherit;font-size:15px;font-weight:500;line-height:1.6;overflow:hidden}.builder-question.active textarea.title-auto-resize{border-bottom-color:#4f6ef7}textarea.title-auto-resize:hover{border-bottom-color:silver}.builder-question.active textarea.title-auto-resize:hover,.builder-question.active textarea.title-auto-resize:focus{border-bottom-color:#4f6ef7}textarea.title-auto-resize::placeholder{color:#bbb;font-weight:400}.question-desc-input{color:#8c8c8c;margin-bottom:12px;padding-left:0}.option-editor{width:min(760px,100%)}.option-row{background:#f7f8fa;border:.5px solid #e5e7eb;border-radius:8px;grid-template-columns:20px minmax(0,1fr) 28px;align-items:center;gap:12px;min-height:44px;margin-bottom:10px;padding:0 12px;display:grid}.choice-symbol{border:1.5px solid #9ca3af;border-radius:50%;flex:none;width:16px;height:16px;display:inline-block}.choice-symbol.checkbox-symbol{border-radius:3px}.option-input{width:100%}.option-input.ant-input{box-shadow:none;background:0 0;border:0;padding:0}.option-delete-button{opacity:0;transition:opacity .16s,background-color .16s}.option-row:hover .option-delete-button{opacity:1}.option-actions{gap:0;margin-top:6px}.option-action-button.ant-btn{color:#4f6ef7;padding:0}.option-action-button.ant-btn:hover{text-decoration:underline;color:#4f6ef7!important;background:0 0!important}.option-action-divider{color:#d1d5db;padding:0 8px}.rating-preview,.rating-input{width:min(760px,100%)}.rating-help{color:#6b7280;margin-bottom:12px}.rating-labels{color:#7b7f87;justify-content:space-between;width:min(520px,100%);margin-bottom:10px;display:flex}.rating-labels span{background:#f2f3f5;border-radius:6px;padding:4px 8px}.rating-scale{flex-wrap:wrap;gap:6px;display:flex}.rating-score{color:#111827;cursor:pointer;background:#e5e5e5;border:0;border-radius:6px;width:42px;height:42px;font-size:20px;line-height:1}.rating-score:hover:not(:disabled),.rating-score.selected{color:#fff;background:#2f7cf6}.rating-score:disabled{cursor:default;color:#6b7280}.question-footer{border-top:1px solid #f0f0f0;justify-content:space-between;align-items:center;margin-top:14px;padding-top:10px;display:flex}.question-item{background:#fff;border:1px solid #e5e7eb;border-radius:8px;margin-bottom:12px;padding:16px}.logic-toggle{color:#4f6ef7;font:inherit;cursor:pointer;background:0 0;border:0;padding:0}.logic-toggle:hover{text-decoration:underline}.logic-panel{width:100%;margin-top:10px}.logic-panel.ant-space,.logic-select{width:100%}.logic-select .ant-select-selector,.survey-meta-card .ant-input,.survey-meta-card .ant-select-selector{border-color:#e5e7eb!important;border-radius:8px!important}.logic-select.ant-select-single .ant-select-selector{align-items:center;height:36px!important}.logic-select .ant-select-selector{border-radius:8px!important}.survey-meta-card .ant-input,.survey-meta-card .ant-select-selector{min-height:40px}.survey-meta-card .ant-input:focus,.survey-meta-card .ant-input-focused,.survey-meta-card .ant-select-focused .ant-select-selector,.logic-select.ant-select-focused .ant-select-selector{border-color:#4f6ef7!important;box-shadow:0 0 0 3px #4f6ef726!important}.question-delete-button.ant-btn{color:#ef4444;box-shadow:none;background:0 0;border:1px solid #fecaca}.question-delete-button.ant-btn:hover,.question-delete-button.ant-btn:focus{color:#ef4444!important;background:#fef2f2!important;border-color:#fecaca!important}.fill-page{background:var(--bg);min-height:100vh}.fill-banner{background:var(--primary-gradient);text-align:center;color:#fff;padding:40px 24px 48px}.fill-banner-tag{background:#fff3;border-radius:20px;align-items:center;margin-bottom:12px;padding:3px 12px;font-size:12px;font-weight:500;display:inline-flex}.fill-banner-title{margin-bottom:8px;font-size:24px;font-weight:700;line-height:1.4}.fill-banner-user{opacity:.8;font-size:13px}.fill-body{width:min(560px,100%);margin:-20px auto 0;padding:0 16px 60px}.fill-progress-card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow-md);z-index:10;margin-bottom:16px;padding:16px 20px;position:sticky;top:12px}.fill-progress-text{color:var(--text-secondary);justify-content:space-between;align-items:center;margin-bottom:10px;font-size:13px;display:flex}.fill-progress-text strong{color:var(--text-primary)}.fill-progress-pct{color:var(--primary);font-weight:700}.fill-progress-bar-bg{background:#e8ecf2;border-radius:3px;height:6px;overflow:hidden}.fill-progress-bar-fill{background:var(--primary-gradient);border-radius:3px;height:100%;transition:width .4s}.fill-question-card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow-card);border:1.5px solid #0000;margin-bottom:12px;padding:24px 20px;transition:border-color .2s}.fill-question-card.answered{border-color:var(--success)}.fill-question-block{background:#fff;padding:24px 20px;position:relative}.fill-question-block:before{content:"";background:#ebebeb;height:1px;position:absolute;top:0;left:20px;right:20px}.fill-question-heading{color:#1a1a1a;align-items:flex-start;gap:4px;line-height:1.6;display:flex}.fill-required-mark{color:#e24b4a;font-size:14px;line-height:1.6}.fill-question-index{color:#1a1a1a;flex:none;font-size:16px;font-weight:700;line-height:1.6}.fill-question-title{color:#1a1a1a;overflow-wrap:anywhere;min-width:0;font-size:16px;font-weight:400;line-height:1.6}.fill-question-description{color:#999;margin:8px 0 0;font-size:14px;line-height:1.5}textarea.auto-resize{color:#1a1a1a;resize:none;box-sizing:border-box;background:#fff;border:1px solid #e5e7eb;border-radius:8px;outline:none;width:100%;min-height:44px;margin-top:12px;padding:11px 12px;font-family:inherit;font-size:15px;line-height:1.6;transition:border-color .15s;overflow:hidden}textarea.auto-resize::placeholder{color:#bbb}textarea.auto-resize:focus{border-color:#4f6ef7}.fill-choice-group{flex-direction:column;gap:12px;margin-top:12px;display:flex}.fill-choice-row{color:#1f2937;width:100%;min-height:44px;font:inherit;text-align:left;cursor:pointer;background:#f7f8fa;border:.5px solid #e5e7eb;border-radius:8px;align-items:center;gap:12px;padding:0 16px;transition:border-color .16s,background-color .16s,box-shadow .16s;display:flex}.fill-choice-row:hover{background:#f3f6fb;border-color:#cfd6e4}.fill-choice-row.selected{background:#eef2ff;border-color:#4f6ef7;box-shadow:0 0 0 3px #4f6ef714}.fill-choice-label{flex:1;min-width:0}.fill-submit-btn.ant-btn-primary{margin-top:8px;background:var(--primary-gradient)!important;border-radius:var(--radius)!important;border:none!important;height:48px!important;font-size:16px!important}.fill-choice-row.selected{border-color:var(--primary)!important;background:var(--primary-light)!important;box-shadow:0 0 0 3px #4e73f514!important}.fill-choice-row.selected .choice-symbol{border-color:var(--primary)!important}.fill-choice-row.selected .choice-symbol:not(.checkbox-symbol){box-shadow:inset 0 0 0 4px var(--primary-light), inset 0 0 0 8px var(--primary)!important}.fill-choice-row.selected .choice-symbol.checkbox-symbol{background:var(--primary)!important;box-shadow:inset 0 0 0 3px var(--primary-light)!important}.fill-description-block{color:#1a1a1a;white-space:pre-wrap;background:#fff;border-left:0;margin:0;line-height:1.6}.contact-import-warning{color:#ff4d4f;margin:16px 0 4px}.contact-template-link{padding-left:0}.whitelist-editor{min-height:560px}.whitelist-survey-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.whitelist-survey-card{text-align:left;cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:8px;min-height:96px;padding:16px}.whitelist-survey-card.selected{border-color:#22c55e;box-shadow:0 0 0 3px #22c55e1f}.whitelist-survey-title{color:#1f2937;margin-bottom:10px;font-size:16px;font-weight:700;line-height:1.5}.whitelist-footer{border-top:1px solid #f0f0f0;justify-content:flex-end;gap:10px;margin-top:20px;padding-top:16px;display:flex}.whitelist-survey-info{background:#fafafa;border:1px solid #e5e7eb;border-radius:8px;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px;padding:14px 16px;display:flex}.whitelist-columns{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;display:grid}.whitelist-column{background:#fff;border:1px solid #e5e7eb;border-radius:8px;min-height:360px;padding:14px}.whitelist-contact-list{flex-direction:column;gap:8px;max-height:420px;margin-top:12px;display:flex;overflow:auto}.whitelist-person-row{background:#fff;border:1px solid #f0f0f0;border-radius:8px;align-items:center;gap:10px;min-height:52px;padding:8px 10px;display:flex}.whitelist-avatar{color:#4f6ef7;background:#eef2ff;border-radius:50%;flex:none;place-items:center;width:32px;height:32px;font-weight:700;display:grid}.whitelist-avatar.active{color:#16a34a;background:#dcfce7}.whitelist-person-main{flex:1;min-width:0}.whitelist-member-head{justify-content:space-between;align-items:center;display:flex}.whitelist-import-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px;display:grid}.whitelist-import-stats .ant-card-body{flex-direction:column;gap:4px;display:flex}.whitelist-import-stats strong{color:#1f2937;font-size:22px}.whitelist-import-stats .success{color:#16a34a}.whitelist-import-stats .danger{color:#ef4444}.whitelist-fail-list{flex-direction:column;gap:8px;margin-bottom:16px;display:flex}.whitelist-fail-row{background:#fef2f2;border-radius:8px;grid-template-columns:minmax(0,1fr) 140px auto;align-items:center;gap:10px;padding:8px 10px;display:grid}.native-date{width:100%;height:32px;font:inherit;border:1px solid #d9d9d9;border-radius:6px;padding:4px 11px}@media (width<=900px){.editor-grid,.builder-layout{grid-template-columns:1fr}.builder-palette,.builder-actions{position:static}.whitelist-survey-grid,.whitelist-columns,.whitelist-import-stats{grid-template-columns:1fr}}@media (width<=480px){textarea.auto-resize{font-size:16px}}
