#mr-help-launch{position:fixed;right:20px;bottom:20px;z-index:1100;display:flex;align-items:center;gap:8px;min-height:48px;padding:11px 18px;border:1px solid #b49a59;border-radius:28px;background:#e7f0f5;color:#284b63;font:600 15px Arial,sans-serif;box-shadow:0 4px 18px #183e5926;cursor:pointer}
#mr-help-launch span{font-size:22px}body:has(#analytics-choice) #mr-help-launch{bottom:180px}
#mr-help-dialog{position:fixed;inset:auto 20px 20px auto;width:390px;max-width:calc(100vw - 24px);height:590px;max-height:calc(100dvh - 32px);padding:0;margin:0;border:1px solid #b49a59;border-radius:16px;background:#f5f9fc;color:#333f4b;box-shadow:0 12px 48px #183e5940;font:15px/1.55 Arial,sans-serif;overflow:hidden}
#mr-help-dialog[open]{display:flex;flex-direction:column}#mr-help-dialog::backdrop{background:#183e592b}
#mr-help-dialog *{box-sizing:border-box}#mr-help-dialog button,#mr-help-dialog a{touch-action:manipulation}#mr-help-dialog button{font:inherit;cursor:pointer}#mr-help-dialog a{color:#285979;text-underline-offset:3px}
#mr-help-dialog .mr-help-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;margin:0;padding:16px 18px;background:#e7f0f5;border-bottom:2px solid #c8ad69}
.mr-help-header strong{display:block;color:#284b63;font-size:18px}.mr-help-header span{display:block;font-size:12px;margin-top:2px}.mr-help-close{width:44px;min-width:44px;height:44px;border:0;border-radius:50%;background:#f5f9fc;color:#284b63;font-size:28px!important}
.mr-help-scroll{overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:0;padding:18px;scroll-padding-top:14px}.mr-help-intro{margin:0 0 18px}.mr-help-question{background:#e7f0f5;border-radius:12px 12px 2px 12px;padding:10px 12px;margin:16px 0 12px 28px;font-weight:600}.mr-help-answer{background:#fff;border:1px solid #d6e3e9;border-radius:12px 12px 12px 2px;padding:14px;margin:0 0 16px}.mr-help-answer p{margin:0}.mr-help-links{display:grid;gap:8px;margin-top:12px}.mr-help-links a{display:block;padding:8px 0;min-height:44px;font-weight:600}
.mr-help-choices{display:grid;gap:9px}.mr-help-choices button{min-height:44px;text-align:left;padding:10px 12px;color:#284b63;background:#edf4f8;border:1px solid #c3d6e1;border-radius:8px}.mr-help-choices button:hover{background:#ddebf2}
#mr-help-dialog .mr-help-footer{flex:none;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;background:#e7f0f5;padding:10px 16px;margin:0;border-top:1px solid #c3d6e1;font-size:13px}.mr-help-footer>a{display:flex;align-items:center;min-height:44px;font-weight:600}.mr-help-reset{border:1px solid #b49a59;border-radius:6px;padding:8px 10px;min-height:44px;background:#f5f9fc;color:#284b63}.mr-help-footer small{flex-basis:100%;font-size:11px}
#mr-help-dialog :focus-visible,#mr-help-launch:focus-visible{outline:3px solid #9d7931;outline-offset:3px}
@media(max-width:600px){#mr-help-launch{right:12px;bottom:max(12px,env(safe-area-inset-bottom));font-size:14px}#mr-help-dialog{inset:auto 12px max(12px,env(safe-area-inset-bottom)) 12px;width:auto;height:620px;max-height:calc(100dvh - 24px);border-radius:12px}.mr-help-scroll{padding:14px}#mr-help-dialog .mr-help-header{padding:12px}.mr-help-header strong{font-size:17px}}
@media print{#mr-help-launch,#mr-help-dialog{display:none!important}}

#mr-help-dialog [hidden]{display:none!important}#mr-help-dialog.mr-help-writing{width:440px;height:760px}.mr-help-message h2{font-size:20px;color:#284b63;margin:0 0 8px}.mr-help-message p{font-size:13px;margin:0 0 12px}.mr-help-message iframe{display:block;width:100%;height:700px;border:0;background:#f5f9fc}.mr-help-message .mr-help-form-note{font-size:12px;margin-top:12px}@media(max-width:600px){#mr-help-dialog.mr-help-writing{width:auto;height:calc(100dvh - 24px)}}
#mr-help-dialog.mr-help-writing .mr-help-scroll{overflow:hidden;display:flex;flex-direction:column}.mr-help-message,.mr-help-message>div{height:100%;min-height:0;display:flex;flex-direction:column}.mr-help-message iframe{flex:1;min-height:0;height:auto}.mr-help-message h2,.mr-help-message p{flex:none}

/* Give the message fields priority over repeated guide controls. */
#mr-help-dialog.mr-help-writing .mr-help-header{padding:8px 12px}
#mr-help-dialog.mr-help-writing .mr-help-scroll{padding:10px}
#mr-help-dialog.mr-help-writing .mr-help-message h2{font-size:18px;margin-bottom:3px}
#mr-help-dialog.mr-help-writing .mr-help-message p{margin-bottom:6px;line-height:1.35}
#mr-help-dialog.mr-help-writing .mr-help-message .mr-help-form-note{margin:5px 0 0;font-size:11px}
#mr-help-dialog.mr-help-writing .mr-help-footer{padding:5px 10px;gap:4px 10px;flex-wrap:nowrap}
#mr-help-dialog.mr-help-writing .mr-help-footer>a{display:none}
#mr-help-dialog.mr-help-writing .mr-help-footer small{flex-basis:auto;margin-left:auto;text-align:right}
