.modal-card:has(.theme-editor){height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);display:flex;flex-direction:column;overflow:hidden}
.modal-card:has(.theme-editor)>.modal-head{position:static;flex:0 0 auto}
.modal-card:has(.theme-editor)>#modalBody{flex:1;min-height:0;display:flex;overflow:hidden}
.modal-card .theme-editor{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;overflow:hidden;padding:18px 22px}
.theme-editor>.theme-heading{flex:0 0 auto;margin-bottom:8px}.theme-editor>.theme-footnote{flex:0 0 auto;margin:0 0 8px}.theme-editor>.theme-jumps{flex:0 0 auto;margin-bottom:12px}
.theme-editor>.theme-workspace{flex:1;min-height:0;overflow:hidden;align-items:stretch}
.theme-editor .theme-controls{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-gutter:stable;padding:3px 12px 14px 3px}
.theme-editor .theme-preview{position:static;align-self:stretch;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding-top:3px}
.theme-editor .theme-preview-label{flex:0 0 auto}.theme-editor .theme-preview>.theme-footnote{flex:0 0 auto;font-size:calc(10px * var(--business-font-scale,1));line-height:1.4}
.theme-editor .theme-sample{min-height:0;flex:1}.theme-editor .theme-sample main{min-height:0}
.theme-editor>.theme-actions{flex:0 0 auto;margin-top:12px;padding-top:12px;border-top:1px solid #dce5ee;gap:8px}
.theme-editor>.theme-actions .btn{min-height:40px;font-size:calc(12px * var(--business-font-scale,1));padding:9px 12px}
@media(max-height:800px){.theme-editor .theme-sample main{padding:8px}.theme-editor .theme-sample header{padding:10px}.theme-editor .sample-cards article,.theme-editor .sample-form{padding:8px}.theme-editor .sample-cards{margin:6px 0}.theme-editor .sample-form>div{padding:6px;margin:5px 0}.theme-editor .sample-success{margin:6px 0;padding:6px}}
@media(max-width:760px){.modal-card:has(.theme-editor){height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}.modal-card .theme-editor{padding:10px 12px}.theme-editor .theme-heading>span{display:none}.theme-editor .theme-heading h3{font-size:calc(16px * var(--business-font-scale,1))}.theme-editor .theme-heading p{display:none}.theme-editor .theme-jumps{gap:4px;margin-bottom:8px}.theme-editor .theme-jumps button{font-size:calc(10px * var(--business-font-scale,1));padding:6px 8px}.theme-editor>.theme-workspace{display:flex;flex-direction:column;gap:10px}.theme-editor .theme-preview{order:-1;flex:0 0 175px}.theme-editor .theme-preview>.theme-footnote{display:none}.theme-editor .theme-preview-label{margin-bottom:5px}.theme-editor .theme-controls{flex:1}.theme-editor .theme-sample header p,.theme-editor .sample-cards,.theme-editor .sample-success,.theme-editor .sample-form>div,.theme-editor .sample-form>b{display:none}.theme-editor .theme-sample main{padding:6px;display:flex;flex-direction:column;gap:6px}.theme-editor .theme-sample header,.theme-editor .sample-form{padding:7px}.theme-editor .theme-sample h3{font-size:calc(13px * var(--business-font-scale,1))}.theme-editor .theme-sample aside{padding:6px}.theme-editor .theme-sample aside b{margin-bottom:5px}.theme-editor .theme-sample aside span{padding:5px}.theme-editor>.theme-actions{margin-top:8px;padding-top:8px}.theme-editor>.theme-actions>.btn{flex:1 1 0;font-size:calc(10px * var(--business-font-scale,1));padding:7px 4px;min-width:0}.theme-editor>.theme-actions .ph{display:none}}
@media(max-height:600px){.theme-editor .theme-heading p,.theme-editor>.theme-footnote,.theme-editor .sample-cards,.theme-editor .sample-success,.theme-editor .theme-preview>.theme-footnote{display:none}.theme-editor .theme-heading{margin-bottom:5px}.theme-editor .theme-sample header p{display:none}.theme-editor .theme-heading>span{height:32px;flex-basis:32px}.theme-editor .theme-heading h3{font-size:calc(16px * var(--business-font-scale,1))}}
@media(max-width:760px) and (max-height:600px){.theme-editor .theme-preview{flex-basis:125px}.theme-editor .theme-sample header{display:none}.theme-editor .theme-sample aside span{padding:3px}.theme-editor .theme-sample aside b{display:none}}
