.qt-management-head{display:flex;align-items:end;justify-content:space-between;gap:16px;flex-wrap:wrap}.qt-management-head label{display:grid;gap:8px;min-width:220px}.qt-template-list{display:grid;gap:16px;margin-top:20px}.qt-template-card{display:flex;align-items:center;justify-content:space-between;gap:20px}.qt-template-card h2{font-size:20px;overflow-wrap:anywhere;margin:10px 0}.qt-small-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.qt-small-actions button{min-height:44px;border:0;padding:8px 12px;border-radius:8px;background:#eaf4ef;color:#18583f;font:inherit;cursor:pointer}.qt-small-actions button:disabled{opacity:.4;cursor:default}.qt-small-actions .qt-danger{background:#fbedeb;color:#a33c32}.qt-error{font-size:14px;color:#a32d2b;white-space:pre-wrap;overflow-wrap:anywhere}.qt-error:empty{display:none}
.qt-editor{width:min(940px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);padding:0;border:1px solid #d7e5dc;border-radius:18px;background:#fff;color:#17392e;overflow:hidden}.qt-editor::backdrop{background:#102e2466}.qt-editor *{box-sizing:border-box}.qt-editor-layout{display:flex;flex-direction:column;max-height:calc(100dvh - 26px)}.qt-editor header{padding:16px 22px;border-bottom:1px solid #dce8e1;display:flex;gap:16px;align-items:center;justify-content:space-between;flex:none}.qt-editor header h2{font-size:22px;margin:0}.qt-editor header p{margin:5px 0 0;font-size:14px;color:#586d63}.qt-editor [data-close]{width:44px;height:44px;border:0;border-radius:8px;background:#edf5f0;font-size:24px;color:#175b41;flex:none;cursor:pointer}.qt-editor-body{padding:20px 22px;overflow-y:auto;min-height:0;overscroll-behavior:contain}.qt-editor label{display:grid;gap:8px;font-weight:600;font-size:15px;margin:0 0 16px;min-width:0}.qt-editor input:not([type=checkbox]),.qt-editor select,.qt-editor textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;padding:11px 12px;border:1px solid #c6d9cc;border-radius:9px;font-size:16px;line-height:1.5;font-family:inherit;font-weight:400;color:#17392e;background:#fff}.qt-editor input,.qt-editor textarea,.qt-editor select{font-size:16px!important;font-family:inherit}.qt-editor textarea{resize:vertical;min-height:72px}.qt-editor input[type=number]{appearance:textfield;-moz-appearance:textfield}.qt-editor input[type=number]::-webkit-inner-spin-button,.qt-editor input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.qt-editor .qt-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.qt-editor .qt-check{display:flex;align-items:center;gap:10px;font-weight:500;min-height:44px}.qt-check input{width:18px;height:18px;accent-color:#176c50}.qt-section,.qt-question{border:1px solid #dce8e1;border-radius:12px;margin:0 0 16px;overflow:hidden}.qt-section>summary{background:#eff6f2;padding:15px 16px;font-weight:700;cursor:pointer;overflow-wrap:anywhere}.qt-section-body,.qt-question-content{padding:16px}.qt-question>summary{padding:13px 14px;font-weight:600;cursor:pointer;overflow-wrap:anywhere}.qt-advanced{margin:0 0 16px;border-top:1px solid #e4ece6}.qt-advanced>summary{padding:12px 0;cursor:pointer;font-weight:500}.qt-settings{padding-bottom:4px}.qt-editor footer{padding:10px 22px max(14px,env(safe-area-inset-bottom));border-top:1px solid #dce8e1;flex:none;background:#fff}.qt-editor footer p{margin:4px 0 10px}.qt-save-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.qt-save-actions button{min-height:46px;font-size:15px;padding:11px 10px;white-space:normal}.qt-editor [hidden]{display:none!important}
.questionnaire-preview .questionnaire-wrap{padding:16px 12px 24px;max-width:390px}.questionnaire-preview .questionnaire-title{font-size:21px}.questionnaire-preview .questionnaire-card{padding:18px 14px}.questionnaire-preview .questionnaire-field>label,.questionnaire-preview .questionnaire-field>legend,.questionnaire-preview .questionnaire-choice{font-size:16px}.questionnaire-preview .questionnaire-choices-compact{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.questionnaire-preview .questionnaire-choices-compact .questionnaire-choice{justify-content:center;padding:10px 6px;gap:6px}.questionnaire-dialog.qt-preview-dialog{width:min(430px,calc(100vw - 24px))}.qt-preview-dialog .questionnaire-dialog-body{padding:0}.qt-preview-dialog .questionnaire-save-bar{position:sticky;bottom:0}
@media(max-width:600px){.qt-template-card{align-items:stretch;flex-direction:column;gap:4px}.qt-editor header{padding:12px 14px}.qt-editor header h2{font-size:20px}.qt-editor-body{padding:16px 14px}.qt-editor footer{padding:10px 14px max(12px,env(safe-area-inset-bottom))}.qt-editor .qt-two{grid-template-columns:minmax(0,1fr);gap:0}.qt-section-body,.qt-question-content{padding:12px}.qt-save-actions{gap:8px}.qt-save-actions button{font-size:14px;padding:11px 5px}.qt-management-head label{width:100%;min-width:0}}

.questionnaire-preview{background:#f3f8f6;color:#17392e;font-size:16px;line-height:1.6}
.qt-management-head select{width:100%;min-height:48px;padding:10px 12px;border:1px solid #c6d9cc;border-radius:9px;font:inherit;background:#fff;color:#17392e}
