/* MMUST CU Version 2.0 — Speaker Invitation professional A4/mobile preview */
.phase412-letter-stage{overflow:visible!important}
.phase412-letter-scroll{width:100%;overflow:auto;overscroll-behavior-inline:contain;padding:4px 2px 14px;scrollbar-gutter:stable}
.phase412-letter-paper{width:min(900px,100%)!important;flex:0 0 auto}
.phase412-letter-content{top:12.45%!important;bottom:19.2%!important;font-size:clamp(13px,1.45vw,17px)!important;line-height:1.5!important}
.phase412-letter-paper h1{font-size:1.08em!important;margin:.88em 0 .58em!important}
.phase412-letter-paper h2{font-size:1.02em!important;margin:.55em 0 .45em!important}
.phase412-letter-paper p{margin:.34em 0!important}
.phase412-letter-paper ol{margin:.18em 0 .48em!important}
.phase412-letter-paper li{margin:.16em 0!important}
.phase412-letter-contacts{margin:.5em 0!important}
.phase412-letter-reference{bottom:1.6%!important;font-size:.78em!important}
.phase412-preview-mode{min-height:40px!important;padding:9px 13px!important}
.phase412-overflow-warning{display:none;margin:10px 0 0;padding:10px 12px;border:1px solid #FFCC66;border-left:4px solid #FF9900;border-radius:10px;background:#fffaf0;color:#5f4300;font-size:12px;font-weight:650;line-height:1.5}
.phase412-overflow-warning.is-visible{display:block}
.official-document-preview .mmustcu-assist{display:none!important}
@media(max-width:760px){
  .phase412-letter-stage{padding-left:10px!important;padding-right:10px!important}
  .phase412-letter-scroll:not(.fit-page) .phase412-letter-paper{width:760px!important;min-width:760px!important}
  .phase412-letter-scroll:not(.fit-page) .phase412-letter-content{font-size:14px!important}
  .phase412-letter-scroll.fit-page .phase412-letter-paper{width:100%!important;min-width:0!important}
  .phase412-letter-scroll.fit-page .phase412-letter-content{font-size:clamp(5.9px,2.12vw,10px)!important}
  .phase412-letter-toolbar{gap:10px!important}
  .phase412-letter-toolbar .actions{width:100%;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px!important}
  .phase412-letter-toolbar .actions .button{width:100%!important;justify-content:center!important;padding:9px 8px!important}
}
@media print{
  .phase412-letter-scroll{overflow:visible!important;padding:0!important}
  .phase412-letter-paper{width:210mm!important;min-width:0!important;height:297mm!important}
  .phase412-letter-content{font-size:10.5pt!important}
  .phase412-preview-mode,.phase412-overflow-warning{display:none!important}
}


/* Phase 51.6.16 — stronger official-letter readability + vertical balance */
.phase412-letter-content{
  top:12.45%!important;
  bottom:17.7%!important;
  font-size:clamp(15px,1.65vw,19px)!important;
  line-height:1.58!important;
}
.phase412-letter-paper h1{
  font-size:1.13em!important;
  line-height:1.35!important;
  margin:1em 0 .72em!important;
}
.phase412-letter-paper h2{
  font-size:1.08em!important;
  line-height:1.35!important;
  margin:.74em 0 .58em!important;
}
.phase412-letter-paper p{margin:.52em 0!important}
.phase412-letter-paper ol{margin:.35em 0 .72em!important}
.phase412-letter-paper li{margin:.32em 0!important;line-height:1.52!important}
.phase412-letter-contacts{margin:.72em 0!important;gap:28px!important}
.phase412-letter-reference{bottom:2.35%!important;font-size:.82em!important}

@media(max-width:760px){
  .phase412-letter-scroll:not(.fit-page) .phase412-letter-content{font-size:16px!important;line-height:1.58!important}
  .phase412-letter-scroll.fit-page .phase412-letter-content{font-size:clamp(6.5px,2.34vw,10.8px)!important}
}
@media print{
  .phase412-letter-content{font-size:12pt!important;line-height:1.55!important}
}
