.mgl-dialog,.mgl-dialog *{box-sizing:border-box}
.mgl-dialog{--ink:#341337;--paper:#fdf9f6;--edge:#d6b6e3;--pad:clamp(14px,2.3vw,22px);width:min(554px,calc(100% - 24px));max-width:none;max-height:calc(100dvh - 24px);margin:auto;padding:0;border:1px solid #e7d9f0;border-radius:18px;background:var(--paper);color:var(--ink);box-shadow:0 15px 68px #41274738;font-family:Poppins,system-ui,sans-serif;line-height:1.35;overflow-y:auto;overscroll-behavior:contain;color-scheme:light}
.mgl-dialog::backdrop{background:rgba(56,35,69,.45)}
html:has(.mgl-dialog[open]){overflow:hidden}
.mgl-dialog :is(h2,h3,p,ol){margin:0}
.mgl-head,.mgl-list-head,.mgl-state,.mgl-line{display:flex;align-items:center}
.mgl-head{position:sticky;top:0;z-index:1;justify-content:space-between;gap:12px;padding:15px var(--pad) 12px;background:var(--paper)}
.mgl-title,.mgl-name,.mgl-list-title,.mgl-level-name{font-weight:800;letter-spacing:-.049em}
.mgl-title{font-size:clamp(28px,5vw,40px);line-height:1.1}
.mgl-close{position:relative;display:block;width:38px;height:38px;flex:none;padding:0;border:0;border-radius:50%;background:#ede2ef;color:var(--ink);cursor:pointer}
.mgl-close::before,.mgl-close::after{content:"";position:absolute;inset:50% auto auto 50%;width:15px;height:2px;background:currentColor;border-radius:2px;transform:translate(-50%,-50%) rotate(45deg)}
.mgl-close::after{transform:translate(-50%,-50%) rotate(-45deg)}
.mgl-close:hover{background:#e4d3ea}.mgl-close:focus-visible{outline:3px solid #8240bb;outline-offset:2px}
.mgl-content{padding:4px var(--pad) 13px}
.mgl-hero{width:100%;position:relative;isolation:isolate;display:flex;align-items:center;min-height:156px;aspect-ratio:3 / 1;overflow:hidden;border-radius:13px;background:linear-gradient(115deg,#512252,#412047 48%,#714084);color:#fff}
.mgl-compass{background-image:url("/assets/img/mygender-level-compass-banner.webp");background-size:100% 100%;background-repeat:no-repeat}
.mgl-info{position:relative;z-index:1;width:52%;padding:14px 0 14px clamp(12px,2.5vw,21px)}
.mgl-hero-icon{position:absolute;right:5%;width:35%;height:78%;object-fit:contain}
.mgl-overline{font-weight:600;font-size:clamp(13px,2.6vw,18px);color:#edd5ff}
.mgl-name{font-size:clamp(30px,5.1vw,46px);line-height:1.08;overflow-wrap:anywhere}
.mgl-points{font-size:clamp(17px,3vw,21px);font-weight:600}
.mgl-meter{display:block;width:100%;height:8px;margin:8px 0;border:none;border-radius:5px;appearance:none;overflow:hidden;background:#89488f;color:#ffd127}
.mgl-meter::-webkit-progress-bar{background:#89488f;border-radius:inherit}.mgl-meter::-webkit-progress-value{background:#ffd127;border-radius:inherit}.mgl-meter::-moz-progress-bar{background:#ffd127;border-radius:inherit}
.mgl-next{font-weight:600;font-size:clamp(12px,2.5vw,16px)}
.mgl-list-head{justify-content:space-between;align-items:baseline;gap:10px;padding:16px 0 8px}
.mgl-list-title{font-size:clamp(22px,3.5vw,28px);line-height:1.2}
.mgl-count{font-size:clamp(12px,2.5vw,16px);font-weight:600}
.mgl-list{list-style:none;padding:0}
.mgl-row{display:grid;grid-template-columns:20% minmax(0,1fr) auto;align-items:center;gap:12px;min-height:68px;padding:6px 11px 6px 3px;border-bottom:1px solid var(--edge)}
.mgl-row:last-child{border-bottom-color:transparent}
.mgl-row[data-state="current"]{margin-block:5px;background:#f1e4fa;border:1px solid #ae64ce;border-radius:9px;padding-left:2px;padding-right:10px}
.mgl-art{display:flex;align-items:center;justify-content:center;height:54px}.mgl-level-icon{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.mgl-line{gap:8px;align-items:baseline}.mgl-no,.mgl-threshold,.mgl-state{font-weight:600}.mgl-no,.mgl-threshold{font-size:clamp(13px,2.4vw,17px);font-variant-numeric:tabular-nums}
.mgl-level-name{font-size:clamp(21px,3.5vw,28px);line-height:1.18}
.mgl-state{justify-self:start;justify-content:flex-start;gap:8px;width:145px;min-width:0;font-size:clamp(13px,2.5vw,17px);line-height:1.2}
.mgl-status-icon{width:22px;height:22px;flex-shrink:0}
@media(max-width:500px){.mgl-dialog{--pad:13px}.mgl-hero{min-height:136px}.mgl-state{width:108px;font-size:13px;gap:5px}.mgl-row{gap:8px;grid-template-columns:19% minmax(0,1fr) auto;min-height:63px;padding-right:4px}.mgl-row[data-state="current"]{padding-right:3px}.mgl-status-icon{width:18px;height:18px}.mgl-line{gap:5px}.mgl-art{height:47px}.mgl-close{width:40px;height:40px}.mgl-overline,.mgl-next{font-size:13px}.mgl-hero{background-size:cover;background-position:center}}
@media(max-width:360px){.mgl-dialog{width:calc(100% - 12px);--pad:10px}.mgl-state{width:75px;font-size:12px}.mgl-label{min-width:0}.mgl-list-head{gap:4px}.mgl-line{gap:4px}.mgl-level-name{font-size:20px}}
/* on mygender.com the site's own h2/h3 colours would win over the panel's: keep the banner text white */
.mgl-dialog .mgl-hero .mgl-name,.mgl-dialog .mgl-hero .mgl-points,.mgl-dialog .mgl-hero .mgl-next{color:#fff}
