.mh-help { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; min-width:44px; padding:0; border:0; background:transparent; color:#8b6470; vertical-align:middle; flex:none; touch-action:manipulation; cursor:pointer; }
.mh-help > span { display:grid; place-items:center; width:19px; height:19px; border:1.5px solid currentColor; border-radius:50%; font:600 13px/1 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; }
.mh-help:focus-visible, .mh-sheet button:focus-visible, .mh-case-entry:focus-visible { outline:2px solid #c9173a; outline-offset:2px; }
.mh-label { display:flex; align-items:center; gap:0; flex-wrap:wrap; }
.mh-label > .mh-help { margin-block:-8px; }
.mh-editor-tools { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:8px 0; }
.mh-case-entry { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:44px; border:1px solid #f2cbd3; background:#fff5f7; border-radius:10px; padding:8px 12px; color:#b71e3d; font:inherit; font-size:13px; font-weight:600; cursor:pointer; }
.mh-editor-tools .mh-help { margin-left:auto; }
.mh-action-help { display:flex; align-items:center; justify-content:flex-end; gap:2px; font-size:12px; color:#8a6d78; margin:0 0 4px; }
.mh-action-help .mh-help { margin-block:-5px; }
.hd + .mh-action-help { padding:0 16px; background:#fff; margin-bottom:10px; }
.cv4-btnrow + .mh-action-help { margin-top:2px; }
.mh-scope { margin:6px 0 10px; padding:8px 10px; border-left:2px solid #e9c4ce; color:#765e66; background:#fcf8f9; border-radius:0 7px 7px 0; font-size:12px; line-height:1.7; overflow-wrap:anywhere; }
.mh-next { display:flex; align-items:flex-start; gap:10px; padding:12px 14px; margin:10px 0 14px; border:1px solid #f1dce1; border-radius:12px; background:#fff9fa; color:#654953; font-size:13px; line-height:1.7; }
.mh-next b { color:#a8233e; white-space:nowrap; }
.mh-next p { margin:0; flex:1; }
.mh-next .mh-help { margin:-8px -8px -8px 0; }
.mh-mask { position:fixed; inset:var(--visual-top,0px) 0 auto; height:var(--visual-h,100dvh); display:flex; align-items:flex-end; justify-content:center; background:rgba(35,21,27,.48); z-index:20050; overscroll-behavior:contain; }
.mh-sheet { display:flex; flex-direction:column; width:100%; max-width:600px; max-height:calc(var(--visual-h,100dvh) - 14px); box-sizing:border-box; background:#fff; border-radius:22px 22px 0 0; color:#33272b; overflow:hidden; box-shadow:0 -12px 40px rgba(43,20,28,.14); }
.mh-grip { height:4px; width:36px; border-radius:4px; background:#e5d9dd; margin:10px auto 0; flex:none; }
.mh-head { display:flex; align-items:center; gap:8px; padding:12px 16px; border-bottom:1px solid #f2e8eb; flex:none; }
.mh-head h2 { margin:0; flex:1; font-size:18px; line-height:1.5; font-weight:700; overflow-wrap:anywhere; }
.mh-close { min-height:44px; min-width:52px; padding:8px; border:0; background:#f7f2f4; border-radius:10px; font-size:14px; color:#735460; flex:none; }
.mh-body { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; padding:16px; scroll-padding:16px; }
.mh-body p { margin:0 0 14px; font-size:15px; line-height:1.8; overflow-wrap:anywhere; }
.mh-kicker { color:#b51f3f; font-size:11px; letter-spacing:.08em; font-weight:700; margin-bottom:6px; }
.mh-steps { padding-left:22px; margin:14px 0; }
.mh-steps li { padding:0 0 12px 4px; font-size:14px; line-height:1.8; overflow-wrap:anywhere; }
.mh-note { background:#fff6f1; border:1px solid #f6e5da; border-radius:12px; padding:12px; color:#7b5744; font-size:13px; line-height:1.8; }
.mh-foot { padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px)); border-top:1px solid #f2e8eb; display:flex; gap:8px; flex-wrap:wrap; flex:none; background:#fff; }
.mh-btn { flex:1; min-width:0; min-height:46px; padding:10px 12px; border:1px solid #ebdfe3; border-radius:12px; background:#fff; color:#674c56; font:600 14px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; cursor:pointer; }
.mh-btn.primary { background:#e72849; color:#fff; border-color:#e72849; }
.mh-btn:disabled { opacity:.5; cursor:default; }
.mh-status { width:100%; font-size:13px; line-height:1.7; color:#76515e; overflow-wrap:anywhere; }
.mh-status:empty { display:none; }
.mh-case-card { width:100%; display:grid; grid-template-columns:64px minmax(0,1fr) 16px; gap:12px; align-items:center; text-align:left; min-height:92px; margin:0 0 10px; padding:12px; border:1px solid #eedfe4; border-radius:14px; background:#fff; color:#442c35; cursor:pointer; }
.mh-case-card img { width:64px; height:78px; object-fit:cover; border-radius:7px; background:#faf4f6; }
.mh-case-card strong { display:block; font-size:15px; line-height:1.5; margin-bottom:4px; }
.mh-case-card small { display:block; color:#8c747d; font-size:12px; line-height:1.6; }
.mh-preview { display:block; width:100%; border:0; background:#f8f3f5; border-radius:12px; padding:0; overflow:hidden; cursor:zoom-in; }
.mh-preview img { display:block; width:100%; max-height:320px; object-fit:contain; }
.mh-caption { font-size:12px; color:#8a707a; line-height:1.7; margin:6px 0 14px; }
.mh-section { margin:20px 0 10px; font-size:15px; font-weight:700; color:#50323e; }
.mh-ref-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.mh-ref-grid img { height:136px; }
.mh-prompt { margin:0; white-space:pre-wrap; word-break:break-word; overflow-wrap:anywhere; padding:14px; border:1px solid #eee2e6; background:#fcf8fa; border-radius:12px; font:14px/1.85 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; }
.mh-prompt mark { background:#ffe3eb; color:#a41d3b; border-radius:3px; }
.mh-zoom { position:fixed; inset:0; z-index:20060; background:rgba(17,12,15,.96); display:flex; flex-direction:column; padding-top:env(safe-area-inset-top,0px); }
.mh-zoom .mh-close { align-self:flex-end; margin:12px; color:#fff; background:#44363d; }
.mh-zoom-body { min-height:0; flex:1; overflow:auto; overscroll-behavior:contain; touch-action:pan-x pan-y pinch-zoom; }
.mh-zoom img { display:block; width:100%; min-height:0; object-fit:contain; }
html:has(.mh-mask), body:has(.mh-mask) { overflow:hidden; }
@media (max-width:600px) {
  .mh-head { padding:10px 14px; }
  .mh-body { padding:14px; }
  .mh-foot { padding-inline:14px; }
  .mh-sheet { max-height:calc(var(--visual-h,100dvh) - 8px); }
  .mh-scope { font-size:12px; }
  .mh-next { margin-inline:0; }
  .mh-body textarea { font-size:16px; }
}
@media (max-height:480px) {
  .mh-grip { display:none; }
  .mh-head { padding:4px 12px; }
  .mh-foot { padding-top:8px; padding-bottom:calc(8px + env(safe-area-inset-bottom,0px)); }
  .mh-preview img { max-height:160px; }
}
@media (prefers-reduced-motion:reduce) { .mh-mask *, .mh-mask { scroll-behavior:auto !important; } }
