/* 5–6 October scope: builder and its nested editors; later survey steps keep their design. */
.phase-oct2 [data-survey-panel="2"], .phase-oct2 .projects-modal--survey-nested {
 --accent:#6956c5; --accent-soft:#efecfb; --text-strong:#292d45; --muted:#767c91;
}
.phase-oct2 [data-survey-panel="2"] .survey-qbuilder {border:0;background:transparent;padding:0}
.phase-oct2 [data-survey-panel="2"] .survey-qbuilder__toolbar {gap:10px;padding:16px;border:1px solid #e6e4f1;border-radius:18px;background:#f8f7fc}
.phase-oct2 :is([data-survey-panel="2"],.projects-modal--survey-nested) .survey-qbuilder__btn {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border:1px solid #e4e1f0;border-radius:12px;background:#fff;color:#63568e;padding:11px 15px;box-shadow:0 3px 8px #4c3e8e07;transition:transform .2s,background .2s,box-shadow .2s}
.phase-oct2 :is([data-survey-panel="2"],.projects-modal--survey-nested) .survey-qbuilder__btn--primary {background:linear-gradient(120deg,#5141c6,#7966d4);color:#fff;border-color:transparent}
.phase-oct2 :is([data-survey-panel="2"],.projects-modal--survey-nested) .survey-qbuilder__btn:hover:enabled {transform:translateY(-2px);box-shadow:0 6px 14px #5947a51c}
.phase-oct2 :is([data-survey-panel="2"],.projects-modal--survey-nested) button:hover:enabled .ui-icon {transform:translateY(-2px)}
.phase-oct2 .survey-builder-status {color:#7b7397;margin:18px 2px 12px;font-size:12px}
.phase-oct2 .survey-qcard {border:1px solid #e8e5f2;border-radius:18px;padding:20px;gap:16px;background:linear-gradient(120deg,#fff,#fcfbff);box-shadow:0 7px 20px #4b3b8309;transition:box-shadow .2s,border-color .2s}
.phase-oct2 .survey-qcard:hover {border-color:#cfc6ec;box-shadow:0 9px 23px #4b3b8312}
.phase-oct2 .survey-qcard__num {background:#eeeafa;color:#6956c5;border-radius:12px;width:36px;height:36px}
.phase-oct2 .survey-qcard__actions {gap:8px}
.phase-oct2 .survey-qcard__icon-btn {width:38px;height:38px;min-width:38px;border:0;background:#f0edf9;color:#79699d;border-radius:10px;transition:background .2s,transform .2s}
.phase-oct2 .survey-qcard__icon-btn:hover:enabled {background:#e5dff7;color:#5944a7;transform:translateY(-2px)}
.phase-oct2 .survey-qcard__icon-btn:disabled {opacity:.35}
.phase-oct2 .survey-qcard__icon-btn--danger {background:#fff2f5;color:#bd6580}
.phase-oct2 .survey-qcard__badge {background:#eeeafa;color:#6956ad;font-weight:500}
.phase-oct2 .survey-qcard__text {font-size:16px;line-height:1.65;overflow-wrap:anywhere}
.phase-oct2 .survey-qcard__meta {font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.phase-oct2 .projects-modal--survey-nested :is(.survey-qeditor__panel,.survey-import__panel,.survey-bank__panel) {width:min(720px,100%);display:flex;flex-direction:column;overflow:hidden;padding:0;max-height:88dvh;border:1px solid #e9e5f5;border-radius:24px;box-shadow:0 28px 80px #25165330}
.phase-oct2 .projects-modal--survey-nested .projects-modal__header {flex:none;padding:22px 26px;margin:0;border-bottom:1px solid #ece9f4;background:#faf9ff}
.phase-oct2 .survey-qeditor__form {min-height:0;overflow:hidden;gap:0;padding:0;flex:1}
.phase-oct2 .survey-editor-body {min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:24px 26px;display:flex;flex-direction:column;gap:22px}
.phase-oct2 .projects-modal--survey-nested .survey-qeditor__actions {flex:none;margin:0;padding:16px 26px;border-top:1px solid #ece9f4;background:#faf9ff;display:flex;justify-content:flex-end;gap:10px}
.phase-oct2 .survey-qeditor__types {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.phase-oct2 .survey-qeditor__type {font-size:12px;line-height:1.5;align-items:center;border:1px solid #e5e1ef;padding:14px;min-height:58px;background:#fff;transition:background .2s,border-color .2s}
.phase-oct2 .survey-qeditor__type:has(input:checked) {background:#efecfb;border-color:#b9aae0;color:#645092}
.phase-oct2 .survey-qeditor__type input {accent-color:#6956c5;flex:none}
.phase-oct2 .survey-editor-caption {margin:0 0 10px;color:#64677b;font-size:12px}
.phase-oct2 .survey-qeditor__labels, .phase-oct2 .survey-numeric-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.phase-oct2 .survey-numeric-fields .projects-field-hint {grid-column:1/-1;margin:0}
.phase-oct2 #surveyQuestionEditorForm .ui-floating > :is(input,textarea) {width:100%;padding:25px 14px 10px;border:1px solid #dfdaed;border-radius:12px;box-sizing:border-box;background:#fff;min-height:62px}
.phase-oct2 #surveyQuestionEditorForm .ui-floating > label {left:14px;top:20px;line-height:1.4;font-size:13px;background:transparent;transform-origin:left top}
.phase-oct2 #surveyQuestionEditorForm .ui-floating:focus-within > label,
.phase-oct2 #surveyQuestionEditorForm .ui-floating:has(:is(input,textarea):not(:placeholder-shown)) > label {transform:translateY(-14px) scale(.8);color:#7664bd}
.phase-oct2 #surveyQuestionEditorForm .ui-floating .projects-field-hint {margin:8px 0 0;font-size:11px}
.phase-oct2 .survey-qeditor__bank-toggle {font-size:12px;color:#73718b}
.phase-oct2 :is(.survey-import__body,.survey-bank__list) {min-height:0;overflow-y:auto;padding:22px 26px}
.phase-oct2 .survey-bank__filters {padding:20px 26px 0;gap:12px;flex:none}
.phase-oct2 .survey-bank__item {border-color:#e5dff2;background:#fcfbff}
@media(max-width:600px){
 .phase-oct2 .survey-qcard {grid-template-columns:40px minmax(0,1fr);padding:16px;gap:12px}
 .phase-oct2 .survey-qcard__actions {grid-column:2;justify-content:flex-start}
 .phase-oct2 .survey-qeditor__types {grid-template-columns:1fr}
 .phase-oct2 .survey-editor-body {padding:20px 16px}
 .phase-oct2 .projects-modal--survey-nested :is(.projects-modal__header,.survey-qeditor__actions) {padding:16px}
 .phase-oct2 [data-survey-panel="2"] .survey-qbuilder__toolbar {padding:12px}
 .phase-oct2 .survey-qbuilder__toolbar .survey-qbuilder__btn {flex:1 1 140px}
}
@media(prefers-reduced-motion:reduce){.phase-oct2 :is(.survey-qcard,.survey-qcard__icon-btn,.survey-qbuilder__btn,.survey-qeditor__type) {transition:none}}
.phase-oct2 #surveyQuestionEditorForm .ui-floating {position:relative;display:block}
.phase-oct2 #surveyQuestionEditorForm .ui-floating > label {position:absolute;pointer-events:none;width:auto;margin:0;transition:transform .24s cubic-bezier(.2,.75,.25,1),color .2s}
.phase-oct2 #surveyQuestionEditorForm .survey-qeditor__type input {width:16px;min-width:16px;height:16px;min-height:16px;padding:0;margin:0;box-shadow:none}
.phase-oct2 #surveyQuestionEditorForm .survey-qeditor__type span {min-width:0}
.phase-oct2 #surveyQuestionEditorForm .survey-qeditor__bank-toggle input {width:16px;height:16px;min-height:16px;padding:0;accent-color:#6956c5}
@media(prefers-reduced-motion:reduce){.phase-oct2 #surveyQuestionEditorForm .ui-floating > label{transition:none}}
.phase-oct2 #runSurveyModal:has([data-survey-panel="2"]:not([hidden])) .survey-wizard-nav {background:#6956c5;border-color:#6956c5;color:#fff}
.phase-oct2 #runSurveyModal:has([data-survey-panel="2"]:not([hidden])) .survey-wizard-nav--prev {background:#fff;color:#6956c5;border-color:#ddd5ee}
.phase-oct2 #runSurveyModal:has([data-survey-panel="2"]:not([hidden])) .survey-wizard-step.is-active :is(.survey-wizard-step__bubble){background:#6956c5;border-color:#6956c5;color:#fff}
.phase-oct2 [data-survey-panel="2"] .survey-qbuilder__btn--ghost {text-decoration:none}
.phase-oct2 :is(#surveyDeleteQuestionModal,#surveyDeleteBankQuestionModal) .projects-modal__panel {padding:0;overflow:hidden;border-radius:20px}
.phase-oct2 :is(#surveyDeleteQuestionModal,#surveyDeleteBankQuestionModal) .projects-field-hint {padding:20px 26px;margin:0;color:#858093;font-size:12px}
.phase-oct2 .projects-modal--survey-nested .survey-qbuilder__btn--danger {background:#fbecf1;color:#a9506d;border-color:#efd1db}
.phase-oct2 #runSurveyModal:has([data-survey-panel="2"]:not([hidden])) .survey-wizard-step.is-active .survey-wizard-step__label {color:#6956c5}
.phase-oct2 [data-survey-panel="2"] .survey-qbuilder__btn {font-size:12px;padding:10px 12px;gap:7px}
.phase-oct2 [data-survey-panel="2"] .survey-wizard-panel__intro {margin-bottom:18px}
.phase-oct2 [data-survey-panel="2"] .survey-wizard-panel__lede {font-size:13px;line-height:1.7}
