.mf-entry { display:flex; justify-content:center; background:#edf7fa; border-bottom:1px solid #d6e8ed }
#mf-open { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:46px; padding:6px 12px; color:#045f82; font:600 14px/1.35 var(--body); text-decoration:none }
#mf-open .icon, #mf-dialog .icon { width:21px; height:21px; flex-shrink:0 }
#mf-open:hover, #mf-dialog a:hover { text-decoration:underline }
#mf-open:focus-visible, #mf-dialog :focus-visible { outline:3px solid #d68615; outline-offset:2px }
@media(min-width:1440px) {
  /* Keep the 58px launcher 24px outside the content column. */
  .mf-entry { --mf-half-column:620px; position:fixed; right:max(18px, calc(50% - var(--mf-half-column) - 82px)); bottom:26px; z-index:15; background:none; border:0 }
  #mf-open { width:58px; height:58px; padding:0; border-radius:50%; color:#fff; background:#006c92; box-shadow:0 4px 18px #134b6233 }
  #mf-open .icon { width:27px; height:27px }
  #mf-open span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%) }
  #mf-open:hover { background:#005577 }
}
#mf-dialog { margin:auto; width:min(880px,96vw); max-width:100%; height:90vh; height:min(900px,94dvh); max-height:100%; padding:0; background:#fff; border:0; border-radius:16px; color:#153c4b; overflow:hidden }
#mf-dialog:not([open]) { display:none }
#mf-dialog[open] { display:grid; grid-template-rows:auto minmax(0,1fr) auto }
#mf-dialog::backdrop { background:rgb(12 44 60 / .52) }
html:has(#mf-dialog[open]) { overflow:hidden }
.mf-head,.mf-help { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:6px 16px }
.mf-head button { display:grid; place-items:center; width:44px; height:44px; flex-shrink:0; background:#edf7fa; color:#16455b; border:none; border-radius:10px; cursor:pointer }
#mf-dialog iframe { width:100%; height:100%; min-height:0; border:0; background:#f5f9fa }
.mf-help { border-top:1px solid #d6e8ed; font-size:14px; line-height:1.3 }
.mf-help a { display:flex; align-items:center; min-height:44px; color:#045f82; text-decoration:underline }
.mf-help a:last-child { text-align:right }
@media(max-width:700px) {
  #mf-dialog { width:100%; height:100vh; height:100dvh; border-radius:0; padding-top:env(safe-area-inset-top); padding-bottom:env(safe-area-inset-bottom) }
  .mf-head,.mf-help { padding-inline:12px }
  .mf-help { font-size:13px }
}
@media(min-width:1600px) { .mf-entry { --mf-half-column:660px } }
