.mf-entry b {display:block;color:#245540;font-size:12px;margin-top:3px}
.mf-dialog {
  width:min(1000px,calc(100% - 32px));max-width:none;max-height:92dvh;border:1px solid #c5d0c2;
  border-radius:16px;padding:0;color:#17382e;background:#fffef9;box-shadow:0 16px 62px #11291d35;
}
.mf-dialog::backdrop {background:#192f27a6}
.mf-dialog button,.mf-results a {
  min-height:38px;border:1px solid #bfcec0;border-radius:7px;background:#fffef9;color:#28503c;
  padding:6px 12px;font:600 14px/1.4 var(--hh-font);cursor:pointer;
}
.mf-head,.mf-subhead,.mf-tools {display:flex;align-items:center;justify-content:space-between;gap:8px}
.mf-head {padding:13px 20px;background:#fffef9;border-bottom:1px solid #d9dfd4;position:sticky;top:0;z-index:1}
.mf-head h2 {margin:0;font-size:21px}
.mf-body {display:grid;grid-template-columns:minmax(0,1.25fr) minmax(240px,.85fr)}
.mf-reference,.mf-library {min-width:0;padding:18px 20px}
.mf-library {border-left:1px solid #d9dfd4;background:#f6f7f0}
.mf-subhead {min-height:36px;margin-bottom:10px}
.mf-subhead h3 {margin:0;font-size:16px}
.mf-subhead a {font-size:14px;color:#315642}
.mf-viewport {
  display:grid;justify-items:start;align-items:start;overflow:auto;background:#e9eae2;
  border:1px solid #d4dacf;border-radius:8px;height:clamp(180px,45vh,440px);
  overscroll-behavior:contain;
}
.mf-frame {margin:auto;position:relative;line-height:0;user-select:none;max-width:100%}
.mf-frame img {width:auto;height:auto;max-width:100%;max-height:clamp(178px,calc(45vh - 2px),438px);display:block;margin:auto}
.mf-zoom {display:block}
.mf-zoom .mf-frame {width:max(100%,min(var(--mf-native-width),1150px));max-width:none}
.mf-zoom .mf-frame img {width:100%;max-height:none}
.mf-select {touch-action:none;cursor:crosshair}
.mf-box {position:absolute;pointer-events:none;outline:2px solid #25774d;background:#6bc68a38;box-shadow:0 0 0 1px white inset}
.mf-tools {flex-wrap:wrap;justify-content:flex-start;margin-top:10px}
.mf-tools button[aria-pressed=true] {color:#fff;background:#285a43;border-color:#285a43}
.mf-dialog .mf-primary {display:block;color:#fff;background:#214d3b;border-color:#214d3b;min-height:42px;margin-top:14px}
.mf-feedback,.mf-status,.mf-hint {font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.mf-feedback:empty {display:none}
.mf-results {padding:0;margin:12px 0 0;list-style:none}
.mf-results li {display:flex;align-items:center;gap:12px;border-top:1px solid #d6dfd4;padding:11px 0}
.mf-results img {width:56px;height:56px;object-fit:contain;flex:none;border-radius:7px;background:#fff}
.mf-results li>div {min-width:0;flex:1}
.mf-results strong,.mf-results small {display:block;overflow-wrap:anywhere}
.mf-results strong {font-size:14px}
.mf-results small {color:#506558;font-size:12px}
.mf-results a {display:inline-flex;align-items:center;flex:none;text-decoration:none}
@media(max-width:700px) {
  .mf-dialog {width:calc(100% - 16px);max-height:95dvh}
  .mf-body {grid-template-columns:minmax(0,1fr)}
  .mf-library {border-left:0;border-top:1px solid #d9dfd4}
  .mf-reference,.mf-library,.mf-head {padding:12px 14px}
  .mf-tools button,.mf-subhead button,.mf-head button,.mf-results a {min-height:44px}
  .mf-viewport {height:32vh}
  .mf-frame img {max-height:calc(32vh - 2px)}
  .mf-zoom .mf-frame {width:max(100%,min(var(--mf-native-width),720px))}
}
