/* 20261024 office density: fixed UI text/control tokens; responsive rules change layout only. */
/* Approved P29/P30: one editor, typed local preview, original template actions. */
.interview-template-editor-page{--template-secondary:#4843a6;--template-border:#dce8f7;background:#fff!important;color:var(--ink)}.sme-shell #content.interview-template-editor-page>.interview-template-editor-root{padding:0;border:0;border-radius:0;margin:0}.interview-template-editor-root{min-width:0}.template-editor-heading{display:flex;align-items:center;flex-wrap:wrap;gap:16px}.template-editor-heading>h1{font-size:var(--office-title-size,24px);line-height:1.45;font-weight:650;letter-spacing:0;margin:0;color:var(--ink)}.template-editor-badge{font-size:13px;line-height:1.6;color:var(--ink);background:#eaf6ff;padding:4px 13px;border-radius:5px}.template-editor-subtitle{font-size:var(--office-body-size,14px);line-height:1.7;color:var(--template-secondary);margin:7px 0 18px}
.template-editor-basics{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr) minmax(0,.85fr);align-items:center;gap:var(--office-gap,16px);margin-bottom:18px}.template-editor-basics>label{display:flex;align-items:center;gap:var(--office-gap,16px);font-size:var(--office-body-size,14px);font-weight:550;color:var(--ink);white-space:nowrap;margin:0}.interview-template-editor-root input,.interview-template-editor-root select,.interview-template-editor-root textarea{font-size:17px;line-height:1.5;color:var(--ink);font-weight:450;padding:8px 12px;min-height:41px;border:1px solid #cbd7f1;border-radius:5px;margin:0;background:#fff;min-width:0}.interview-template-editor-root textarea{resize:vertical;min-height:88px}.template-editor-basics input{flex:1;min-width:0}.template-editor-scope{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 16px;color:var(--template-secondary);font-size:var(--office-body-size,14px)}.template-editor-scope select{width:auto;font-size:var(--office-control-size,15px);min-height:32px;padding:4px 10px;max-width:100%}
.template-editor-columns{display:grid;grid-template-columns:minmax(230px,.75fr) minmax(350px,1.2fr) minmax(290px,1fr);gap:8px;align-items:stretch;min-height:0}.interview-template-editor-root .template-editor-columns>section,.interview-template-editor-root .template-editor-columns>aside{min-width:0;border:1px solid var(--template-border);border-radius:5px;padding:0;margin:0;background:#fff;box-shadow:none}.template-editor-panel-heading,.template-editor-settings>h2{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;background:#f1faff;min-height:52px;margin:0}.template-editor-panel-heading>h2,.template-editor-settings>h2{font-size:var(--office-section-size,20px);line-height:1.45;font-weight:650;color:var(--ink);margin:0}.template-editor-panel-heading>small{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--template-secondary);line-height:1.6}.template-editor-panel-heading>small>.work-icon{width:18px;height:18px;flex:none}.interview-template-editor-root .template-editor-link{font-size:var(--office-body-size,14px);line-height:1.5;color:var(--blue);border:0;background:transparent;padding:3px 0;margin:0;min-height:30px;white-space:normal;justify-content:flex-start;box-shadow:none}.template-editor-link>.work-icon{width:20px;height:20px;flex:none}
.template-editor-items{padding:8px}.template-editor-item{display:flex;align-items:center;gap:7px;padding:10px 9px;border-radius:4px;background:#f5faff;min-height:60px;margin:0 0 8px;min-width:0;border-left:4px solid transparent}.template-editor-item.selected{background:#edf6ff;border-left-color:var(--blue)}.interview-template-editor-root .template-editor-grip{flex:none;padding:0;border:0;background:transparent;color:var(--template-secondary);cursor:grab;min-height:30px;min-width:18px}.template-editor-grip>.work-icon{width:18px;height:22px;opacity:.7}.interview-template-editor-root .template-editor-item-select{display:flex;align-items:center;justify-content:flex-start;gap:12px;flex:1;min-width:0;border:0;background:transparent;padding:0;color:var(--ink);text-align:left;box-shadow:none}.template-editor-index{display:flex;align-items:center;justify-content:center;min-width:24px;font-size:var(--office-body-size,14px);line-height:1.5;color:var(--blue);background:#e9f3ff;border-radius:4px}.template-editor-item-select>span:last-child{min-width:0}.template-editor-item-select strong{display:block;overflow-wrap:anywhere;font-size:var(--office-control-size,15px);line-height:1.6;font-weight:650}.template-editor-item-select small{display:block;font-size:13px;line-height:1.6;color:var(--template-secondary)}.template-editor-item-tools{display:flex;align-items:center;gap:9px;flex:none}.interview-template-editor-root .template-editor-icon-action{display:flex;flex-direction:column;align-items:center;gap:2px;padding:0;border:0;background:transparent;min-width:28px;font-size:13px;line-height:1.5;color:var(--blue)}.template-editor-icon-action>.work-icon{width:20px;height:20px}.template-editor-icon-action small{font-size:12px}.template-editor-item>.work-icon{width:18px;height:18px;flex:none}.interview-template-editor-root .template-editor-global-link{display:block;width:calc(100% - 16px);margin:8px;padding:10px 12px;color:var(--template-secondary);background:#f1faff;border:1px solid var(--template-border);font-size:var(--office-body-size,14px);text-align:left;justify-content:flex-start}.template-editor-global-link[aria-current=true]{color:var(--blue);border-color:#b8d3ff}
.template-editor-settings-body{padding:12px 16px 18px}.template-editor-settings-body>label,.template-editor-follow-up>label{display:flex;align-items:flex-start;gap:12px;position:relative;font-size:var(--office-body-size,14px);font-weight:550;line-height:1.6;color:var(--ink);margin:0 0 15px;min-width:0}.template-editor-settings-body>label>input,.template-editor-settings-body>label>select,.template-editor-settings-body>label>textarea,.template-editor-follow-up>label>textarea{flex:1;width:auto;min-width:0}.template-editor-settings-body>label:has(textarea){display:block}.template-editor-settings-body>label>textarea{display:block;width:100%;margin-top:7px}.template-editor-counter{display:block;text-align:right;color:var(--template-secondary);font-size:13px;line-height:1.5;font-weight:450;margin:3px 0 0}.template-editor-settings-body>h3{font-size:16px;line-height:1.6;font-weight:600;margin:18px 0 8px;color:var(--ink)}.template-editor-help{font-size:var(--office-body-size,14px);line-height:1.7;color:var(--template-secondary);margin:5px 0 12px}.template-editor-boolean{display:flex;align-items:center;gap:var(--office-gap,16px);flex-wrap:wrap;border:0;padding:0;margin:16px 0;font-size:var(--office-body-size,14px);min-width:0}.template-editor-boolean>legend{float:left;font-size:var(--office-body-size,14px);font-weight:550;line-height:1.6;padding:0;margin:0 12px 0 0;color:var(--ink)}.template-editor-boolean>label{display:flex;align-items:center;gap:8px;margin:0;font-size:var(--office-body-size,14px);color:var(--ink);white-space:nowrap}.interview-template-editor-root input[type=radio],.interview-template-editor-root input[type=checkbox]{width:19px;height:19px;min-height:19px;min-width:19px;margin:0;padding:0;accent-color:var(--blue)}.interview-template-editor-root input[type=radio]:not(:checked){appearance:none;border:1px solid #aabce9;border-radius:50%;background:#fff}.template-editor-number-range{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.template-editor-number-range>label{font-size:var(--office-body-size,14px);color:var(--template-secondary);margin:0}.template-editor-number-range input{margin-top:5px}
.template-editor-option-table{border:1px solid var(--template-border);border-radius:5px;overflow:hidden;margin:5px 0 7px}.template-editor-option-head{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:12px;padding:8px 39px;background:#f1faff;font-size:var(--office-body-size,14px);color:var(--ink);font-weight:600}.template-editor-option-row{display:grid;grid-template-columns:18px minmax(0,.8fr) minmax(0,1.2fr) 22px;gap:10px;align-items:center;padding:7px 10px;border-top:1px solid var(--template-border);min-width:0}.template-editor-option-row>label{font-size:0;margin:0;min-width:0}.template-editor-option-row input{font-size:var(--office-control-size,15px);min-height:36px;padding:6px 8px;width:100%}.interview-template-editor-root .template-editor-option-remove{padding:0;border:0;background:transparent;min-width:22px;min-height:28px}.template-editor-option-remove>.work-icon{width:19px;height:19px;opacity:.7}.template-editor-fixed{display:flex;align-items:center;gap:var(--office-gap,16px);margin:18px 0;color:var(--template-secondary);font-size:var(--office-body-size,14px)}.template-editor-fixed>strong{font-size:var(--office-body-size,14px);font-weight:500;padding:8px 14px;border:1px solid var(--template-border);border-radius:4px;flex:1;color:var(--ink)}.interview-template-editor-root .template-editor-follow-up{padding:10px 12px;border:1px solid var(--template-border);border-radius:5px;background:#f6fbff;margin-top:18px}.template-editor-follow-up>summary{font-size:var(--office-body-size,14px);font-weight:550;color:var(--ink);cursor:pointer}.template-editor-follow-up>label{display:block;font-size:var(--office-body-size,14px);margin:10px 0 0}.template-editor-follow-up textarea{display:block;width:100%;margin-top:5px}
.template-editor-preview-body{padding:14px 14px 20px;min-width:0}.interview-template-preview{color:var(--ink);font-size:16px}.interview-template-preview>section{border:0;box-shadow:none;background:transparent;padding:0;margin:0 0 18px;border-radius:0}.interview-template-preview h3{font-size:18px;line-height:1.6;font-weight:650;margin:6px 0 5px;color:var(--ink)}.template-preview-description,.template-preview-scale{font-size:16px;line-height:1.8;color:var(--template-secondary);margin:5px 0 16px;white-space:pre-wrap}.interview-template-preview .template-preview-option{display:flex;align-items:flex-start;gap:14px;font-size:16px;line-height:1.6;margin:19px 4px;color:var(--ink);font-weight:450}.template-preview-option>input{flex:none;margin-top:4px!important}.template-preview-option>span{min-width:0}.template-preview-option strong{font-size:17px;line-height:1.6;font-weight:550}.template-preview-option small{display:block;color:var(--template-secondary);font-size:15px;line-height:1.8;margin-top:4px;white-space:pre-wrap}.interview-template-preview section>label:not(.template-preview-option){display:block;font-size:16px;font-weight:550;color:var(--ink);margin:17px 0 10px}.interview-template-preview textarea{margin-top:9px;min-height:110px;font-size:16px}.interview-template-preview input[type=number]{margin-top:9px;font-size:16px}.template-preview-count{display:block;text-align:right;font-size:14px;line-height:1.6;font-weight:450;color:var(--template-secondary);margin-top:3px}.template-preview-missing{font-size:15px;line-height:1.8;color:var(--template-secondary);margin:10px 0}.template-preview-unassessed{display:flex!important;align-items:center;gap:8px;font-size:15px!important;font-weight:450!important;color:var(--template-secondary)!important}.interview-template-preview .template-preview-follow-up{border:1px solid var(--template-border);border-radius:4px;padding:9px 12px;margin-top:18px;background:#f1faff}.template-preview-follow-up>summary{font-size:16px;color:var(--ink);cursor:pointer}.template-preview-follow-up>label{display:block;font-size:14px;font-weight:450;margin-top:9px}.template-preview-follow-up textarea{margin-top:6px}
.template-editor-footer{display:flex;align-items:center;justify-content:flex-end;gap:15px;padding:17px 0 4px;margin-top:18px;border-top:1px solid var(--template-border)}.template-editor-footer>p{display:flex;align-items:center;gap:9px;font-size:var(--office-body-size,14px);line-height:1.7;color:var(--template-secondary);margin:0 5px 0 0}.template-editor-footer>p>.work-icon{width:21px;height:21px;flex:none}.interview-template-editor-root .template-editor-footer>button{font-size:var(--office-control-size,15px);font-weight:550;line-height:1.5;min-height:var(--office-button-height,40px);min-width:130px;padding:8px 16px;border:1px solid #cbd7f1;color:var(--ink);background:#fff}.interview-template-editor-root .template-editor-footer>button.primary{background:var(--blue);color:#fff;border-color:var(--blue)}.template-editor-feedback{padding:12px 16px;border:1px solid #ffe0a2;background:#fff8e8;color:#925100;border-radius:5px;margin-top:15px;font-size:var(--office-body-size,14px);line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}.template-editor-feedback.success{color:#087e40;background:#e8faf0;border-color:#c9edd8}.template-editor-feedback.error{color:#a62c21;background:#fff2f1;border-color:#ffd8d3}.interview-template-editor-root .template-editor-refresh{border:0;background:transparent;color:var(--blue);font-size:var(--office-body-size,14px);padding:4px 0;margin-top:8px}.interview-template-editor-root [hidden]{display:none!important}
@media(max-width:1250px){.template-editor-basics{gap:15px;grid-template-columns:repeat(3,minmax(0,1fr))}.template-editor-basics>label{display:block;white-space:normal}.template-editor-basics input{margin-top:6px}.template-editor-columns{grid-template-columns:minmax(190px,.65fr) minmax(300px,1.15fr) minmax(260px,1fr)}.template-editor-panel-heading{flex-wrap:wrap;padding:12px}.template-editor-settings>h2{padding:12px}.template-editor-panel-heading>h2,.template-editor-settings>h2{}.template-editor-item{padding:9px 5px;gap:5px}.template-editor-item-select{gap:7px!important}.template-editor-item-select strong{}.template-editor-item-select small{}.template-editor-item-tools{gap:5px}.template-editor-settings-body{padding:12px}.template-editor-option-row{gap:6px;padding:7px 6px}.template-editor-option-head{gap:6px;padding-inline:30px}.template-editor-option-row input{padding:5px}.template-editor-footer{flex-wrap:wrap}.template-editor-footer>p{flex-basis:100%;justify-content:flex-end}}
@media(max-width:1100px){.template-editor-columns{grid-template-columns:210px minmax(0,1fr)}.template-editor-columns>.template-editor-preview{grid-column:1/-1}.template-editor-preview-body{max-height:none}.template-editor-panel-heading>small{}.template-editor-item-tools{flex-direction:column;gap:6px}.template-editor-icon-action small{display:none}}
@media(max-width:760px){.template-editor-heading>h1{}.template-editor-subtitle{margin-bottom:18px}.template-editor-basics{grid-template-columns:minmax(0,1fr);gap:12px}.template-editor-columns{grid-template-columns:minmax(0,1fr);min-height:0}.template-editor-columns>.template-editor-preview{grid-column:auto}.template-editor-items{max-height:310px;overflow:auto}.template-editor-item-tools{flex-direction:row}.template-editor-icon-action small{display:block}.template-editor-item{min-height:60px}.template-editor-settings-body{padding:12px}.template-editor-option-row{grid-template-columns:16px minmax(0,.8fr) minmax(0,1.2fr) 20px}.interview-template-editor-root input,.interview-template-editor-root select,.interview-template-editor-root textarea{font-size:16px}.template-editor-boolean{gap:12px}.template-editor-boolean>legend{float:none;width:100%;margin-bottom:6px}.template-editor-footer{gap:10px}.template-editor-footer>p{justify-content:flex-start}.interview-template-editor-root .template-editor-footer>button{min-width:130px}.template-editor-scope select{width:100%}}
/* P29 actual Chrome/model correction: keep actions in the desktop work area. */
.interview-template-editor-root{position:relative}
.template-editor-heading>.template-editor-scope{margin:0 0 0 auto;max-width:360px}
.template-editor-scope>span{overflow-wrap:anywhere}
.template-editor-kind-row>label{display:flex;align-items:center;gap:12px;font-size:var(--office-body-size,14px);font-weight:550;color:var(--ink);margin:0;min-width:0}
.template-editor-kind-row>label>select{flex:1;min-width:0;width:auto}
.template-editor-preview>.template-editor-panel-heading>h2{flex:none;white-space:nowrap}
@media(min-width:1251px){
 .template-editor-panel-heading{padding:12px 10px;gap:6px;min-height:52px}
 .template-editor-panel-heading>h2{white-space:nowrap;flex:none}
 .interview-template-editor-root .template-editor-panel-heading>.template-editor-link{white-space:nowrap;flex:none;gap:5px}
 .template-editor-panel-heading>small{line-height:1.6;min-width:0;gap:5px}
 .template-editor-settings>h2{padding:12px 16px;min-height:52px}
 .template-editor-settings-body>label,.template-editor-settings-body>label:has(textarea){display:grid;grid-template-columns:94px minmax(0,1fr);align-items:start;gap:12px;line-height:26px;margin-bottom:18px}
 .template-editor-settings-body>label>input,.template-editor-settings-body>label>textarea{width:100%;margin:0}
 .template-editor-settings-body>label>textarea{min-height:90px;padding-bottom:25px}
 .template-editor-settings-body>label>.template-editor-counter{position:absolute;bottom:7px;right:12px;line-height:20px;margin:0}
 .template-editor-kind-row[data-kind=option]{display:grid;grid-template-columns:minmax(0,1fr) 152px;gap:16px;align-items:start;margin:0 0 18px}
 .template-editor-kind-row[data-kind=option]>.template-editor-boolean{gap:12px;margin:0;align-content:start}
 .template-editor-kind-row[data-kind=option]>.template-editor-boolean>legend{float:none;width:100%;line-height:20px;margin-bottom:5px}
 .template-editor-kind-row[data-kind=option]>.template-editor-boolean>label{gap:6px}
 .template-editor-kind-row>label{line-height:26px;white-space:nowrap}
 .template-editor-kind-row>label>select{padding-inline:9px}
 .template-editor-option-table{margin-top:4px}
}
@media(max-width:1250px){.template-editor-kind-row>label{margin-bottom:14px}.template-editor-panel-heading>h2{white-space:nowrap}.template-editor-panel-heading>.template-editor-link{white-space:nowrap!important}}
@media(max-width:760px){.template-editor-heading>.template-editor-scope{flex-basis:100%;margin-left:0;max-width:100%}.template-editor-kind-row>label{display:block}.template-editor-kind-row select{display:block;width:100%;margin-top:6px}}
.template-editor-required{color:#e53935;font-weight:650}
.interview-template-editor-root .template-editor-allow{display:flex!important;grid-template-columns:none;align-items:center;gap:10px;margin:18px 0 7px;font-size:var(--office-body-size,14px);font-weight:450;color:var(--ink)}
.template-editor-simple-options{border:0;background:transparent}.template-editor-simple-options>.template-editor-option-row{grid-template-columns:18px minmax(0,1fr) 22px;border:0;padding:6px 0;gap:12px}
.template-editor-simple-options input{min-height:var(--office-input-height,38px);font-size:var(--office-control-size,15px)}.template-editor-allow>input[type=checkbox]{flex:none!important;width:16px!important}
.template-editor-number-setting{margin:18px 0}.template-editor-number-setting>h3{font-size:16px;line-height:1.6;margin:0 0 8px;color:var(--ink)}
@media(min-width:1251px){.template-editor-number-setting{display:grid;grid-template-columns:94px minmax(0,1fr);align-items:center;gap:12px;margin:18px 0}.template-editor-number-setting>h3{font-weight:550;margin:0}.template-editor-number-range{gap:9px}.template-editor-number-range>label{display:flex;align-items:center;gap:5px;white-space:nowrap}.template-editor-number-range input{width:100%;min-width:0;margin:0;padding-inline:7px}}.template-editor-follow-up>label>textarea{width:100%;box-sizing:border-box}
@media(min-width:1101px){.template-editor-footer{position:sticky;bottom:0;z-index:2;background:#fff}}
/* Design/editor UI only. The original template preview is intentionally excluded. */
.interview-template-editor-root input:not(.interview-template-preview *):not([type=radio]):not([type=checkbox]),.interview-template-editor-root select:not(.interview-template-preview *),.interview-template-editor-root textarea:not(.interview-template-preview *){font-size:var(--office-control-size,15px);min-height:var(--office-input-height,38px);padding:7px 10px}
.interview-template-editor-root textarea:not(.interview-template-preview *){height:auto;min-height:88px;resize:vertical}
.interview-template-editor-root input[type=radio]:not(.interview-template-preview *),.interview-template-editor-root input[type=checkbox]:not(.interview-template-preview *){width:16px;height:16px;min-width:16px;min-height:16px}
