body.agyle-portal-shell{margin:0;height:100dvh;min-height:100vh;display:flex;flex-direction:column;background:#faf8f4;color:#173c40;font:16px system-ui}
.agyle-portal-shell>.agyle-universe-header{flex-shrink:0}
#agyleModuleFrame{display:block;flex:1;width:100%;min-height:0;border:0;background:#faf8f4}
.portal-shell-legal{flex:none;background:#173c40;border-top:1px solid #ffffff25;font:12px system-ui;padding-bottom:env(safe-area-inset-bottom)}
.portal-shell-legal>summary{cursor:pointer;padding:11px 18px;color:#dcebe4;text-align:center}
.portal-shell-legal .agyle-universe-footer{margin:0;border:0}
.portal-notice{max-width:580px;margin:8vh auto;padding:28px;background:white;border-radius:22px;line-height:1.6}
.portal-notice a{color:#17606a}
.portal-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}
.portal-actions a,.portal-install-button{display:inline-block;padding:12px 18px;border:1px solid #17606a;border-radius:12px;color:#17606a;font:650 14px system-ui;text-decoration:none;cursor:pointer}
.portal-actions a.primary,.portal-install-button{background:#17606a;color:white}
.portal-offers{padding-top:35px!important}.portal-offers-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:28px}
.portal-offer p:not(.portal-price){font:15px/1.65 system-ui;color:#526764}.portal-offers .portal-offer .portal-price{font-size:30px;line-height:1.3;overflow-wrap:anywhere}
.portal-offer{background:white;border:1px solid #dedfd6;padding:26px;border-radius:22px;text-align:left}
.portal-offer h3{font-size:24px}.portal-offer .portal-price{font:700 38px system-ui;margin:20px 0;color:#173c40}.portal-offer .portal-price small{font:500 13px system-ui}
.portal-offer ul{padding-left:20px;font:14px/1.8 system-ui;color:#526764}.portal-offer a{display:inline-block;margin-top:20px;color:#17606a;font-weight:700}
.portal-account-bar{display:flex;justify-content:flex-end;gap:16px;flex-wrap:wrap;align-items:center;padding:12px 5%;font:600 13px system-ui;background:#f0f4ed}
.portal-account-bar a{color:#17606a;text-decoration:none}.portal-account-bar a:hover{text-decoration:underline}
.portal-install-page{max-width:680px;margin:40px auto;padding:26px;line-height:1.7}
.portal-install-page article{background:white;border:1px solid #e1e4dc;padding:24px;border-radius:20px;margin:18px 0}
.portal-install-page img{border-radius:18px}.portal-install-page a{color:#17606a}
@media(max-width:760px){.portal-offers-grid{grid-template-columns:1fr}.portal-account-bar{justify-content:center;padding:10px 16px;gap:12px}.portal-install-page{margin:20px auto;padding:18px}.portal-notice{margin:35px 16px}}

/* The iframe owns module scrolling; legal details never push it beyond the viewport. */
body.agyle-portal-shell{height:100dvh;min-height:0;overflow:hidden}.portal-shell-legal[open]{max-height:40dvh;overflow-y:auto;overscroll-behavior:contain}.portal-shell-legal>summary{position:sticky;top:0;background:#173c40;z-index:1}#agyleModuleFrame{flex:1 1 0;min-height:0}

@media(max-width:760px){body.agyle-portal-shell{display:block;height:auto;min-height:100dvh;overflow:visible}#agyleModuleFrame{display:block;flex:none;height:calc(100dvh - 64px);min-height:180px;width:100%}.portal-shell-legal{position:static;margin:0}.portal-shell-legal[open]{max-height:none;overflow:visible}.portal-shell-legal>summary{position:static}}
