/* Native top-layer dialog keeps the active person and form intact. */
html:root body dialog.arena-consent-modal{box-sizing:border-box;width:min(1100px,calc(100vw - 48px));max-width:none;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);margin:auto;padding:0;border:1px solid #e8dce2;border-radius:24px;background:#fff;color:#172136;font-family:inherit;box-shadow:0 24px 100px #17213655;overflow:auto;overscroll-behavior:contain}
html:root body dialog.arena-consent-modal::backdrop{background:#172136b8;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
html:root body .arena-consent-modal-head{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 28px;border-bottom:1px solid #e8e9ef;background:#fff}
html:root body .arena-consent-modal-head strong{display:block;font-size:24px;font-weight:800;line-height:1.2;letter-spacing:-.025em}html:root body .arena-consent-modal-head small{display:block;font-size:13px;color:#7a6472;margin-bottom:5px}
html:root body .arena-consent-modal-head button{flex-shrink:0;min-height:48px;padding:10px 18px;border:1px solid #efd0db;border-radius:12px;background:#fff0f5;color:#ad2453;font-family:inherit;font-size:15px;font-weight:700;cursor:pointer}
html:root body .arena-consent-modal-body{padding:28px 36px}
html:root body .arena-consent-modal-body>[data-document],html:root body .arena-consent-modal-body>[data-signature-capture]{max-width:none;margin:0;padding:0;border:0;border-radius:0;background:transparent}
html:root body .arena-consent-modal-body h1,html:root body .arena-consent-modal-body h2{font-size:30px;line-height:1.2;letter-spacing:-.035em}
html:root body .arena-consent-modal-body p,html:root body .arena-consent-modal-body .af-check,html:root body .arena-consent-modal-body .consent-document{font-size:18px;line-height:1.65}
html:root body .arena-consent-modal-body .consent-document{max-height:none;overflow:visible;padding:0;white-space:pre-wrap}
html:root body .arena-consent-modal-body .af-note{font-size:15px;line-height:1.5}
html:root body .arena-consent-modal-body .af-terms-actions{position:sticky;bottom:-28px;z-index:3;display:flex;justify-content:space-between;gap:16px;padding:16px 0;background:#fff;border-top:1px solid #e8e9ef}
html:root body .arena-consent-modal-body button.af-primary,html:root body .arena-consent-modal-body button.af-secondary{min-height:54px;padding:14px 24px;font-size:17px;line-height:1.3;border-radius:13px}
html:root body dialog.arena-consent-modal [data-signature-canvas]{height:clamp(240px,32vh,360px)!important;height:clamp(240px,32dvh,360px)!important;width:100%!important;border:2px solid #e1cbd5!important;background:#fffafb!important;border-radius:18px!important}
html:root body .arena-consent-modal-body .af-review{padding:16px 22px;background:#f6f5fa;border-radius:16px}html:root body .arena-consent-modal-body .af-review p{font-size:16px;margin:8px 0}
html:root body .arena-consent-modal [hidden]{display:none!important}
@media(max-width:600px){html:root body dialog.arena-consent-modal{width:calc(100vw - 12px);max-height:calc(100vh - 12px);max-height:calc(100dvh - 12px);border-radius:18px}html:root body .arena-consent-modal-head{padding:14px 16px;gap:10px}html:root body .arena-consent-modal-head strong{font-size:20px}html:root body .arena-consent-modal-head small{font-size:12px}html:root body .arena-consent-modal-head button{padding:8px 12px;font-size:13px}html:root body .arena-consent-modal-body{padding:20px 18px}html:root body .arena-consent-modal-body h1,html:root body .arena-consent-modal-body h2{font-size:25px}html:root body .arena-consent-modal-body p,html:root body .arena-consent-modal-body .consent-document,html:root body .arena-consent-modal-body .af-check{font-size:16px}html:root body .arena-consent-modal-body button.af-primary,html:root body .arena-consent-modal-body button.af-secondary{font-size:15px;padding:12px 16px}html:root body .arena-consent-modal-body .af-terms-actions{bottom:-20px}}
@media(prefers-reduced-motion:reduce){html:root body .arena-consent-modal *{scroll-behavior:auto!important}}
html:root body .arena-consent-modal-body>[data-document]>h2,html:root body .arena-consent-modal-body>[data-signature-capture]>h2{display:none}
/* 1.113.32: constant viewport; only reading/signature content scrolls. */
html:root body dialog.arena-consent-modal{height:min(820px,calc(100vh - 48px));height:min(820px,calc(100dvh - 48px));overflow:hidden;font-family:inherit!important}
html:root body dialog.arena-consent-modal[open]{display:flex;flex-direction:column}
html:root body .arena-consent-modal-head{position:static;flex:0 0 96px;min-height:96px;box-sizing:border-box}
html:root body .arena-consent-modal-body{display:flex;flex:1 1 0;min-height:0;overflow:hidden;box-sizing:border-box;padding:24px 36px}
html:root body .arena-consent-modal-body>[data-document],html:root body .arena-consent-modal-body>[data-signature-capture]{display:flex;flex-direction:column;flex:1 1 0;min-width:0;min-height:0;width:100%;box-sizing:border-box}
html:root body .arena-consent-modal-body>[data-document]>.af-note{flex:none;margin:0 0 12px;font-size:14px;line-height:22px}
html:root body .arena-consent-modal [data-terms-flow]{display:flex;flex-direction:column;flex:1 1 0;min-height:0;overflow:hidden}
html:root body .arena-consent-modal [data-terms-item],html:root body .arena-consent-modal [data-terms-intro],html:root body .arena-consent-modal [data-terms-complete]{flex:1 1 0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:8px;scroll-behavior:auto}
html:root body .arena-consent-modal [data-terms-intro]{display:flex;flex-direction:column}
html:root body .arena-consent-modal [data-terms-begin]{margin-top:auto;align-self:flex-end;flex-shrink:0}
html:root body .arena-consent-modal-body .af-terms-actions{position:static;flex:0 0 76px;min-height:76px;box-sizing:border-box;align-items:flex-end;gap:16px;padding:16px 0 0;margin:0;background:#fff}
html:root body .arena-consent-modal [data-terms-next]{flex:1;max-width:560px;margin:0!important}
html:root body .arena-consent-modal [data-terms-back]{flex:0 0 155px;margin:0!important}
html:root body .arena-consent-modal [data-back-documents],html:root body .arena-consent-modal [data-terms-complete] [data-terms-finish]{display:none!important}
html:root body .arena-consent-modal-body .consent-document{flex:1 1 0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:8px}
html:root body .arena-consent-modal [data-document-decision]{flex:none;padding-top:12px;border-top:1px solid #e8e9ef;margin-top:12px}
html:root body .arena-consent-modal [data-document-decision]>.af-primary{display:block;margin:14px 0 0 auto!important;min-width:220px}
html:root body .arena-consent-signature-scroll{flex:1 1 0;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 8px 12px 0;scrollbar-gutter:stable}
html:root body .arena-consent-modal [data-signature-capture]>[type=submit]{flex:none;min-height:54px;margin:16px 0 0!important;width:100%}
html:root body .arena-consent-modal-body h1,html:root body .arena-consent-modal-body h2{font-family:inherit!important;font-size:30px!important;font-weight:800!important;line-height:1.2!important;letter-spacing:-.035em!important}
html:root body .arena-consent-modal-body .af-condition-text p,html:root body .arena-consent-modal-body .consent-document{font-family:inherit!important;font-size:18px!important;font-weight:400!important;line-height:1.65!important}
@media(max-width:600px){html:root body dialog.arena-consent-modal{height:calc(100vh - 12px);height:calc(100dvh - 12px)}html:root body .arena-consent-modal-head{flex-basis:86px;min-height:86px}html:root body .arena-consent-modal-body{padding:18px}html:root body .arena-consent-modal-body h1,html:root body .arena-consent-modal-body h2{font-size:25px!important}html:root body .arena-consent-modal-body .af-condition-text p,html:root body .arena-consent-modal-body .consent-document{font-size:16px!important}html:root body .arena-consent-modal [data-terms-back]{flex-basis:105px}html:root body .arena-consent-modal-body .af-terms-actions{gap:10px}html:root body .arena-consent-modal [data-terms-next]{min-width:0;padding:12px!important}}
@media(max-height:550px){html:root body .arena-consent-modal-head{flex-basis:72px;min-height:72px;padding-top:10px;padding-bottom:10px}html:root body .arena-consent-modal-body{padding-top:14px;padding-bottom:14px}}
html:root body .arena-consent-modal [data-terms-back]{width:155px!important;min-width:0!important;max-width:155px!important;height:54px!important;flex:0 0 155px!important;white-space:normal!important}
html:root body .arena-consent-modal [data-terms-next]{width:auto!important;min-width:0!important;height:54px!important;flex:1 1 0!important;white-space:normal!important}
@media(max-width:600px){html:root body .arena-consent-modal [data-terms-back]{width:105px!important;max-width:105px!important;flex-basis:105px!important}}
/* Authenticated MI ARENA uses the same reading and signature viewport. */
html:root body .mac-card.af{max-width:none;width:auto;margin:0;font-family:inherit;overflow:visible;isolation:auto}
html:root body .mac-card.af>.mac-sign{border:0;padding:0;margin:0}html:root body .mac-card.af .arena-consent-modal-body>[data-mi-document]{display:flex;flex-direction:column;min-height:0}
html:root body .arena-consent-modal [data-mi-read-next]{flex:none;margin:16px 0 0 auto!important;min-height:54px}
html:root body .mac-card.af .arena-consent-modal .mac-check{display:flex;gap:10px;font-size:16px;line-height:1.5;padding:12px;border:1px solid #e5e8ef;border-radius:12px}
html:root body .mac-card.af .arena-consent-modal label{display:block;font-size:16px}html:root body .mac-card.af .arena-consent-modal input[type=checkbox]{appearance:auto!important;width:20px!important;height:20px!important;position:static!important;opacity:1!important;margin:2px 0}
html:root body .mac-card.af .arena-consent-modal select{font-family:inherit;font-size:17px;min-height:48px;width:100%;padding:10px;border:1px solid #cbd2df;border-radius:12px;background:#fff}
html:root body .arena-consent-modal-head button{width:auto!important;max-width:130px!important;flex:0 0 auto!important;margin:0!important}html:root body .arena-consent-modal-head>strong,html:root body .arena-consent-modal-head>div{flex:1;min-width:0}html:root body .arena-consent-signature-scroll>[data-signature-clear]{width:auto!important}
