/* Revision27: only narrow-screen controls; original desktop layout is unchanged. */
@media(max-width:900px){
 .wizard-page{padding-top:65px!important}.wizard-page .cvw-option label{min-height:0!important;gap:4px!important}.wizard-page .cvw-option .d{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.wizard-page .cvw-options .tpl-name{font-size:13px!important}
 body.office-mobile-ready.demo-excel-scope :is(#excelRibbon,#excelRail,.excel-rail) .office-tool-scroll [data-excel-group=font] .excel-tool-list{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:3px!important;overflow:visible!important;width:100%!important}
 body.office-mobile-ready.demo-excel-scope :is(#excelRibbon,#excelRail,.excel-rail) .office-tool-scroll [data-excel-group=alignment] .excel-tool-list{display:grid!important;grid-template-columns:repeat(9,minmax(0,1fr))!important;gap:2px!important;overflow:visible!important;width:100%!important}
 body.office-mobile-ready.demo-excel-scope :is(#excelRibbon,#excelRail,.excel-rail) .office-tool-scroll :is([data-excel-group=font],[data-excel-group=alignment]) .excel-chip{min-width:0!important;width:100%!important;max-width:none!important;min-height:32px!important;height:32px!important;padding:2px!important;flex:none!important;position:relative!important}
 body.office-mobile-ready.demo-excel-scope :is(#excelRibbon,#excelRail,.excel-rail) .office-tool-scroll :is([data-excel-group=font],[data-excel-group=alignment]) .excel-chip-label{display:none!important}
 body.office-mobile-ready.demo-excel-scope :is(#excelRibbon,#excelRail,.excel-rail) .office-tool-scroll .office-select-icon select,body.office-mobile-ready.demo-excel-scope :is(#excelRibbon,#excelRail,.excel-rail) .office-tool-scroll .excel-chip--color input{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;opacity:0!important;cursor:pointer}
 body.office-mobile-ready.demo-pptx-scope #pptxRibbon{bottom:calc(var(--office-nav-height,56px) + env(safe-area-inset-bottom,0px))!important}
 body.office-mobile-ready.demo-pptx-scope #pptxRibbon .office-tool-scroll{max-height:min(240px,36dvh)!important;overflow-y:auto!important;padding-bottom:8px!important}
 body.office-mobile-ready.demo-pptx-scope #pptxRibbon .office-tool-scroll .v26-transition-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important;width:100%!important;flex-wrap:nowrap!important}
 body.office-mobile-ready.demo-pptx-scope #pptxRibbon .office-tool-scroll .v26-transition-actions button{min-width:0!important;width:100%!important;min-height:32px!important;padding:4px!important;font-size:11px!important;white-space:nowrap!important}
 body.office-mobile-ready.demo-pptx-scope #pptxRibbon .office-tool-scroll .pptx-mobile-chrome-cluster{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important}
 body.office-mobile-ready.demo-pptx-scope #pptxRibbon .office-tool-scroll .pptx-mobile-chrome-cluster :is(label,input){min-width:0!important;max-width:100%!important;font-size:11px!important;min-height:30px!important}
 .wizard-page .container{padding:12px!important}.wizard-page .wizard-card{padding:16px!important;width:100%!important}.wizard-page .cvw-options{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.wizard-page .cvw-option label{padding:10px!important}.wizard-page .cvw-option .d{font-size:11px!important;line-height:1.5!important}.wizard-page .tplmini{height:110px!important;max-width:90px!important;margin:0 auto 8px!important}.wizard-page h1{font-size:21px!important}.wizard-page h2{font-size:17px!important}
 .cv-studio-page .cv-preview-tools{display:flex!important;flex-wrap:nowrap!important;gap:3px!important;width:100%!important;overflow:visible!important}.cv-studio-page .cv-preview-tools>div,.cv-studio-page .cv-zoom-controls{display:contents!important}.cv-studio-page .cv-preview-tools button{flex:1 1 0!important;min-width:0!important;max-width:none!important;height:34px!important;min-height:34px!important;padding:3px!important;font-size:0!important;gap:0!important}.cv-studio-page .cv-preview-tools button span{display:none!important}.cv-studio-page .cv-preview-tools #cvZoomMinus,.cv-studio-page .cv-preview-tools #cvZoomPlus{font-size:18px!important}.cv-studio-page .cv-preview-tools #cvMobBackToEdit::before{content:'←';font-size:17px}.cv-studio-page #cvZoomVal{flex:0 0 35px;font-size:10px!important;min-width:0!important}.cv-studio-page .cv-sample-badge{display:none!important}.cv-studio-page .cv-editor-topbar{gap:6px!important;padding:10px!important}.cv-studio-page .cv-title-label,.cv-studio-page .cv-eyebrow{font-size:10px!important}
}
