:root{--welcome-ink:#102c45;--welcome-teal:#008694}
body[data-auth-state=guest]{margin:0;height:100vh;height:100dvh;overflow:hidden;background:#b5cad9;color:var(--welcome-ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body[data-auth-state=guest] #home{position:fixed;inset:0;width:100%;height:100%;max-width:none;padding:0;margin:0;background:url('/home-illustration.png?v=personnalisee-20261024') center center/cover no-repeat;isolation:isolate}
body[data-auth-state=guest] #home:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(248,252,255,.97),rgba(245,251,255,.82) 27%,rgba(235,246,252,.25) 51%,transparent 72%),linear-gradient(0deg,rgba(10,35,56,.68),transparent 24%)}
body[data-auth-state=guest]>header{position:fixed;top:0;left:0;right:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:24px;background:transparent;padding:clamp(20px,3.5vw,48px);color:var(--welcome-ink)}
.welcome-brand{text-decoration:none;font-size:clamp(28px,3vw,42px);font-weight:800;letter-spacing:-1.5px;color:#102c45;line-height:1}.welcome-brand span{display:block;margin-top:10px;font-size:11px;font-weight:600;letter-spacing:1px;color:#47667b}
.welcome-login-link{display:flex;align-items:center;gap:24px;text-decoration:none;color:white;background:#008694;border:1px solid #ffffff40;border-radius:28px;min-height:48px;padding:13px 25px;font-size:15px;font-weight:700;box-shadow:0 4px 18px #12384a20;white-space:nowrap}.welcome-login-link:hover{background:#006f7b}
body[data-auth-state=guest] header nav,body[data-auth-state=guest] .connected-heading,body[data-auth-state=guest] #account-bar,body[data-auth-state=guest]>aside,body[data-auth-state=guest] .connected-only{display:none!important}
.welcome-intro{position:absolute;left:clamp(24px,5.5vw,88px);top:50%;transform:translateY(-54%);max-width:650px}.welcome-eyebrow{font-size:clamp(10px,1vw,13px);font-weight:700;letter-spacing:2px;margin:0 0 22px;color:#476a80}#welcome-title{display:flex;flex-direction:column;line-height:.96;margin:0 0 28px;letter-spacing:-4px}.welcome-team{font-size:clamp(54px,7.7vw,116px);font-weight:800}.welcome-planning{font-size:clamp(38px,5vw,74px);font-weight:400;letter-spacing:-2.5px;margin-top:10px;color:#007c8b}.welcome-tagline{font-size:clamp(21px,2.5vw,36px);font-weight:600;line-height:1.3;letter-spacing:-.7px;margin:0}.welcome-tagline em{font-style:normal;color:#007c8b}
.welcome-features{position:absolute;bottom:clamp(24px,4vh,46px);left:clamp(24px,5.5vw,88px);right:clamp(24px,5.5vw,88px);display:flex;justify-content:space-between;align-items:center;gap:20px;padding-top:22px;border-top:1px solid #ffffff65;color:white;text-shadow:0 1px 8px #102c4570}.welcome-features>span{font-size:clamp(14px,1.5vw,21px);font-weight:600;letter-spacing:.2px}
#welcome-dialog{box-sizing:border-box;width:calc(100% - 36px);max-width:450px;max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);margin:auto;border:1px solid #d8e5ed;border-radius:18px;padding:34px;overflow:auto;background:white;box-shadow:0 20px 70px #102c4555;color:#102c45}#welcome-dialog::backdrop{background:transparent}#welcome-close{position:absolute;top:8px;right:8px;width:44px;height:44px;font-size:27px;line-height:1;border:0;background:transparent;color:#50697c;cursor:pointer}#welcome-dialog #home-access{margin:0;padding:0;border:0;border-radius:0;background:transparent}.login-eyebrow{font-size:10px;letter-spacing:1.6px;color:#537286;font-weight:700;margin:12px 0 18px}#home-access h2{font-size:29px;letter-spacing:-.7px;margin:0 0 10px}#home-account-summary{font-size:14px;color:#5a7182;line-height:1.6;margin:0 0 20px}#home-login{max-width:none}#home-login label{display:flex;flex-direction:column;font-size:14px;font-weight:600;gap:8px;margin:17px 0}#home-login input{width:100%;min-height:48px;border:1px solid #bfcfda;border-radius:8px;padding:12px;font-size:16px;color:#102c45;background:#fbfdff}#home-login button{width:100%;min-height:48px;background:#008694;border:0;border-radius:8px;color:white;font-size:16px;font-weight:700;padding:12px;cursor:pointer}#home-login button:disabled{opacity:.65;cursor:wait}#home-auth-status:empty{display:none}.welcome-help{margin-top:22px;padding-top:18px;border-top:1px solid #e0e9ef;color:#536e80;font-size:12px;line-height:1.6}.welcome-help p{margin:5px 0}.welcome-private{font-size:11px;color:#6a7e8c;line-height:1.6;margin:16px 0 0}
body[data-auth-state=connected] .welcome-intro,body[data-auth-state=connected] .welcome-features,body[data-auth-state=connected] .welcome-login-link,body[data-auth-state=connected] .welcome-brand{display:none}
@media(max-width:700px){body[data-auth-state=guest]>header{padding:22px}.welcome-brand span{font-size:9px;letter-spacing:0}.welcome-login-link{font-size:13px;gap:12px;padding:12px 18px}.welcome-intro{left:26px;right:22px;top:44%;transform:translateY(-40%)}#welcome-title{letter-spacing:-2px}.welcome-team{font-size:65px}.welcome-planning{font-size:45px}.welcome-tagline{font-size:25px}.welcome-eyebrow{font-size:9px;letter-spacing:1.2px}.welcome-features{flex-wrap:wrap;justify-content:flex-start;gap:14px 24px;left:26px;right:26px;bottom:26px}.welcome-features>span{font-size:15px}body[data-auth-state=guest] #home{background-position:64% center}body[data-auth-state=guest] #home:before{background:linear-gradient(90deg,#f4faffed,#eff8ffab 55%,#e5f4ff40),linear-gradient(0deg,#12344be0,transparent 30%)}#welcome-dialog{padding:28px}}
@media(max-height:560px){.welcome-intro{top:48%}.welcome-eyebrow{margin-bottom:12px}.welcome-team{font-size:52px}.welcome-planning{font-size:34px;margin-top:6px}#welcome-title{margin-bottom:14px}.welcome-tagline{font-size:21px}.welcome-features{bottom:15px;padding-top:12px}.welcome-brand span{display:none}body[data-auth-state=guest]>header{padding:18px 26px}}
/* Titre ancré dans l’espace libre, en haut à gauche. */
body[data-auth-state=guest] .welcome-brand{display:none}body[data-auth-state=guest]>header{justify-content:flex-end;pointer-events:none}.welcome-login-link{pointer-events:auto}.welcome-intro{top:clamp(42px,7vh,78px);left:clamp(28px,5.5vw,88px);right:30px;transform:none;max-width:620px}#welcome-title{margin:0 0 24px;line-height:.95;letter-spacing:-3px}.welcome-team{font-size:clamp(60px,7.6vw,108px);font-weight:800;letter-spacing:-4px}.welcome-planning{font-size:clamp(36px,4.4vw,62px);font-weight:400;letter-spacing:-2px;margin-top:12px}.welcome-eyebrow{font-size:11px;letter-spacing:1.8px;margin:0 0 38px}.welcome-tagline{font-size:clamp(22px,2.25vw,31px);line-height:1.4;font-weight:500;letter-spacing:-.6px}.welcome-tagline em{font-weight:650}@media(max-width:900px){.welcome-intro{max-width:450px}.welcome-team{font-size:64px;letter-spacing:-2.5px}.welcome-planning{font-size:42px}.welcome-eyebrow{font-size:9px;letter-spacing:1.1px;margin-bottom:30px}.welcome-tagline{font-size:24px}}@media(max-width:600px){body[data-auth-state=guest]>header{padding:20px}.welcome-intro{top:100px;left:27px;right:22px}.welcome-team{font-size:56px}.welcome-planning{font-size:38px}.welcome-eyebrow{margin-bottom:25px;font-size:9px}.welcome-tagline{font-size:23px}}@media(max-height:560px) and (min-width:601px){.welcome-intro{top:26px}.welcome-team{font-size:54px}.welcome-planning{font-size:35px;margin-top:7px}#welcome-title{margin-bottom:15px}.welcome-eyebrow{margin-bottom:20px}.welcome-tagline{font-size:21px}}
/* Cinq fonctions, une signature visuelle commune. */
.welcome-features{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;align-items:stretch;padding:18px 10px;border:1px solid #ffffff4a;border-radius:18px;background:linear-gradient(115deg,#123950c9,#102e44b8);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 8px 30px #0c2c3b1c;text-shadow:none;bottom:clamp(22px,3.5vh,40px)}.welcome-function{display:flex;align-items:center;justify-content:center;gap:13px;min-width:0;padding:7px 12px;border-right:1px solid #ffffff26}.welcome-function:last-child{border-right:0}.welcome-function svg{width:29px;height:29px;flex-shrink:0;color:#9be2df}.welcome-function span{font-size:clamp(14px,1.35vw,19px);font-weight:550;letter-spacing:.25px;color:#fff}@media(max-width:900px){.welcome-features{padding:13px 4px}.welcome-function{gap:8px;padding:8px 6px}.welcome-function svg{width:24px;height:24px}.welcome-function span{font-size:14px}}@media(max-width:600px){.welcome-features{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 0;padding:14px 6px;left:20px;right:20px;bottom:20px;border-radius:16px}.welcome-function{flex-direction:column;gap:7px;padding:0 6px;border:0}.welcome-function span{font-size:13px}.welcome-function:nth-child(4){grid-column:1 / 2;margin-left:40%}.welcome-function:nth-child(5){grid-column:2 / 4;margin-right:25%}}@media(max-height:560px) and (min-width:601px){.welcome-features{padding:7px 4px;bottom:14px}.welcome-function{padding:5px}.welcome-function svg{width:23px;height:23px}}
/* Laisser les livres et le mug lisibles sous la zone de titre. */
body[data-auth-state=guest] #home:before{background:linear-gradient(90deg,rgba(248,252,255,.97),rgba(245,251,255,.82) 27%,rgba(235,246,252,.25) 51%,transparent 72%);mask-image:linear-gradient(#000 0%,#000 44%,transparent 80%);-webkit-mask-image:linear-gradient(#000 0%,#000 44%,transparent 80%)}.welcome-features{bottom:14px}@media(max-width:700px){body[data-auth-state=guest] #home:before{background:linear-gradient(90deg,#f4faffed,#eff8ffab 55%,#e5f4ff40)}}
/* Repères informatifs flottants, sans bandeau ni apparence de bouton. */
.welcome-features{background:none;border:0;border-radius:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;padding:0;bottom:clamp(18px,3vh,30px);gap:20px;pointer-events:none}.welcome-function{flex-direction:column;gap:8px;padding:0;border:0;cursor:default;text-shadow:0 1px 7px #062338b3}.welcome-function svg{width:27px;height:27px;color:#f0ffff;filter:drop-shadow(0 1px 3px #092c4899);opacity:.9}.welcome-function span{font-size:13px;line-height:1.3;font-weight:500;letter-spacing:.35px;color:#fff;opacity:.95}@media(max-width:900px){.welcome-features{padding:0;gap:12px}.welcome-function{padding:0;gap:7px}.welcome-function svg{width:25px;height:25px}.welcome-function span{font-size:12px}}@media(max-width:600px){.welcome-features{grid-template-columns:repeat(5,minmax(0,1fr));left:14px;right:14px;gap:4px;bottom:20px}.welcome-function:nth-child(4),.welcome-function:nth-child(5){grid-column:auto;margin:0}.welcome-function svg{width:23px;height:23px}.welcome-function span{font-size:10px;letter-spacing:0}}@media(max-height:560px) and (min-width:601px){.welcome-features{bottom:12px}.welcome-function{gap:4px}.welcome-function svg{width:23px;height:23px}}
/* Icônes flottantes plus lisibles, avec une présence translucide. */
.welcome-features{bottom:clamp(18px,2.8vh,30px);gap:24px}.welcome-function{gap:10px;text-shadow:0 1px 6px #0b304366}.welcome-function svg{width:54px;height:54px;stroke-width:1.35;color:#efffff;opacity:.72;filter:drop-shadow(0 2px 4px #0b30434d)}.welcome-function span{font-size:14px;font-weight:500;letter-spacing:.5px;opacity:.88}@media(max-width:900px){.welcome-function svg{width:46px;height:46px}.welcome-function{gap:9px}.welcome-function span{font-size:13px}.welcome-features{gap:14px}}@media(max-width:600px){.welcome-features{bottom:20px;gap:6px}.welcome-function svg{width:36px;height:36px}.welcome-function{gap:8px}.welcome-function span{font-size:10px;letter-spacing:.1px}}@media(max-height:560px) and (min-width:601px){.welcome-function svg{width:38px;height:38px}.welcome-function{gap:5px}.welcome-features{bottom:12px}}
/* Repères abaissés sous le bord de la table. */
.welcome-features{bottom:4px}.welcome-function{gap:5px}@media(max-width:900px){.welcome-features{bottom:5px}.welcome-function{gap:5px}}@media(max-width:600px){.welcome-features{bottom:8px}}@media(max-height:560px) and (min-width:601px){.welcome-features{bottom:3px}}
@media(min-width:601px){.welcome-features{bottom:0}.welcome-function{flex-direction:row;gap:10px;align-items:center}}
/* Relief de verre et ombre portée : les symboles flottent sans support. */
.welcome-features{bottom:10px}.welcome-function{gap:13px;position:relative}.welcome-function svg{width:52px;height:52px;opacity:1;overflow:visible;stroke-width:1.65;filter:drop-shadow(0 1px 0 #ffffffb3) drop-shadow(0 2px 1px #21536d99) drop-shadow(0 8px 5px #092f4e80)}.welcome-function span{font-size:13px;font-weight:550;letter-spacing:.35px;color:#f4ffff;opacity:.94;text-shadow:0 2px 4px #12344d99}@media(max-width:900px){.welcome-function svg{width:46px;height:46px}.welcome-function{gap:10px}.welcome-features{bottom:10px}.welcome-function span{font-size:12px}}@media(max-width:600px){.welcome-function svg{width:36px;height:36px}.welcome-function{gap:7px}.welcome-function span{font-size:10px}.welcome-features{bottom:16px}}@media(max-height:560px) and (min-width:601px){.welcome-function svg{width:36px;height:36px}.welcome-features{bottom:8px}}
/* Fonctions regroupées sous la phrase d’accueil, trois puis deux. */
.welcome-intro .welcome-features{position:static;inset:auto;display:grid;grid-template-columns:repeat(3,88px);gap:23px 26px;width:max-content;max-width:100%;margin:32px 0 0;padding:0;background:none;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;pointer-events:none}.welcome-intro .welcome-function{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;margin:0;padding:0;border:0;text-shadow:none;grid-column:auto}.welcome-intro .welcome-function svg{width:33px;height:33px;color:#195b70;stroke-width:1.55;opacity:1;filter:none}.welcome-intro .welcome-function span{font-size:12px;line-height:1.3;font-weight:500;letter-spacing:.25px;color:#174e63;opacity:1;text-shadow:none}@media(max-width:900px){.welcome-intro .welcome-features{grid-template-columns:repeat(3,76px);gap:20px 18px;margin-top:27px}.welcome-intro .welcome-function svg{width:30px;height:30px}.welcome-intro .welcome-function span{font-size:11px}}@media(max-width:600px){.welcome-intro .welcome-features{grid-template-columns:repeat(3,72px);gap:16px 18px;margin-top:25px}.welcome-intro .welcome-function svg{width:28px;height:28px}}@media(max-height:560px) and (min-width:601px){.welcome-intro .welcome-features{grid-template-columns:repeat(3,76px);gap:11px 18px;margin-top:18px}.welcome-intro .welcome-function svg{width:25px;height:25px}.welcome-intro .welcome-function{gap:5px}}
/* Informations discrètes et aide à la connexion. */
.welcome-footer{position:fixed;z-index:2;bottom:12px;left:0;right:0;display:flex;justify-content:center;align-items:center;gap:12px;padding:0 16px;font-size:11px;color:#f0f7fc;text-shadow:0 1px 4px #102d4dcc}.welcome-footer a{color:inherit;text-decoration:none;min-height:28px;display:inline-flex;align-items:center;padding:4px}.welcome-footer a:hover,.welcome-footer a:focus-visible{text-decoration:underline}.welcome-footer a:focus-visible{outline:2px solid #fff;outline-offset:3px;border-radius:3px}body[data-auth-state=connected] .welcome-footer{display:none}
.welcome-help h3{font-size:13px;color:#264f66;margin:0 0 8px}.welcome-help details{border-bottom:1px solid #e4ebf0}.welcome-help summary{cursor:pointer;padding:10px 0;min-height:40px;font-size:12px;color:#17596d}.welcome-help details p{margin:0 0 12px;line-height:1.6}.welcome-help summary:focus-visible{outline:2px solid #008694;outline-offset:2px}.welcome-demo-contact{margin:14px 0 0!important;overflow-wrap:anywhere}.welcome-demo-contact small{color:#758691}.welcome-info-dialog{box-sizing:border-box;position:fixed;margin:auto;width:calc(100% - 36px);max-width:580px;max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);overflow:auto;border:1px solid #d8e5ed;border-radius:18px;padding:32px;color:#17364c;background:white;box-shadow:0 16px 60px #102c454d;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;line-height:1.65}.welcome-info-dialog::backdrop{background:transparent}.welcome-info-dialog h2{font-size:25px;line-height:1.2;margin:8px 35px 20px 0}.welcome-info-dialog h3{font-size:15px;color:#17596d;margin:22px 0 7px}.welcome-info-dialog p{margin:7px 0;overflow-wrap:anywhere}.welcome-info-close{position:absolute;top:8px;right:8px;border:0;background:transparent;color:#50697c;font-size:27px;width:44px;height:44px;cursor:pointer}.welcome-info-close:focus-visible{outline:2px solid #008694;border-radius:6px}.welcome-demo-notice{font-size:12px;background:#edf5f8;padding:10px 12px;border-radius:7px;color:#416476}.welcome-info-note{border-top:1px solid #dce7ed;padding-top:16px;font-size:12px;color:#657b89}@media(max-width:600px){.welcome-footer{bottom:7px;font-size:10px}.welcome-info-dialog{padding:25px}}
/* L’accueil illustré devient également le premier onglet connecté. */
body[data-auth-state=connected]{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body[data-auth-state=connected]>.site-header{display:flex;align-items:center;gap:14px;padding:10px 16px;background:#103e56;color:#fff;position:relative;z-index:20;min-height:64px}
body[data-auth-state=connected] .connected-heading{display:none}
body[data-auth-state=connected] .site-header>nav{display:flex;align-items:center;gap:4px;flex:1;min-width:0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#6491a6 transparent;padding:2px 0}
body[data-auth-state=connected] .site-header nav a{flex-shrink:0;white-space:nowrap;border:1px solid transparent;background:transparent;color:#e4eef4;padding:10px 9px;border-radius:7px;font-size:13px;line-height:20px}
body[data-auth-state=connected] .site-header nav a:hover{background:#ffffff13}
body[data-auth-state=connected] .site-header nav a[aria-current=page]{background:#087e8b;border-color:#50a2aa;color:#fff}
body[data-auth-state=connected] #account-bar{display:flex;align-items:center;gap:12px;flex:0 0 auto;padding:0 0 0 14px;background:transparent;border:0;border-left:1px solid #ffffff30;flex-wrap:nowrap;color:#fff}
body[data-auth-state=connected] #account-label{display:inline-block;white-space:nowrap;font-size:13px;font-weight:700;color:#c2f2ed;background:#ffffff0c;padding:7px 9px;border-radius:6px;max-width:180px;overflow:hidden;text-overflow:ellipsis}
body[data-auth-state=connected] #account-bar>div{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}
body[data-auth-state=connected] #account-bar a,body[data-auth-state=connected] #account-bar button{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;min-height:40px;padding:8px 9px;font-size:12px;text-decoration:none;color:#fff;background:transparent;border:1px solid #ffffff30;border-radius:6px;cursor:pointer}
body[data-auth-state=connected] #account-bar a:hover,body[data-auth-state=connected] #account-bar button:hover{background:#ffffff14}
body[data-auth-state=connected][data-view=home]>#notice{display:none}
body[data-auth-state=connected] #home{position:relative;isolation:isolate;max-width:none;width:100%;height:calc(100vh - var(--shell-header-height,64px));height:calc(100dvh - var(--shell-header-height,64px));margin:0;padding:0;background:url('/home-illustration.png?v=personnalisee-20261024') center center/cover no-repeat;overflow:hidden}
body[data-auth-state=connected] #home:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(248,252,255,.97),rgba(245,251,255,.82) 27%,rgba(235,246,252,.25) 51%,transparent 72%);mask-image:linear-gradient(#000 0%,#000 44%,transparent 80%);-webkit-mask-image:linear-gradient(#000 0%,#000 44%,transparent 80%)}
body[data-auth-state=connected] #home .welcome-intro{display:block}
body[data-auth-state=connected] #home .cards,body[data-auth-state=connected] #home .connected-only{display:none}
body[data-auth-state=connected][data-view=home] .welcome-footer{display:flex}
body[data-auth-state=connected] #page{height:calc(100vh - var(--shell-header-height,64px) - 44px);height:calc(100dvh - var(--shell-header-height,64px) - 44px);min-height:0}
body[data-auth-state=connected].planning-expanded-shell #page{height:100vh;height:100dvh}
@media(max-width:1100px){body[data-auth-state=connected]>.site-header{gap:9px;padding:8px 10px}body[data-auth-state=connected] .site-header nav a{padding:10px 8px;font-size:12px}body[data-auth-state=connected] #account-bar{gap:8px;padding-left:10px}body[data-auth-state=connected] #account-label{max-width:120px}}
@media(max-width:600px){body[data-auth-state=connected]>.site-header{flex-wrap:wrap;gap:5px}body[data-auth-state=connected] .site-header>nav{flex-basis:100%;order:2}body[data-auth-state=connected] #account-bar{margin-left:auto;border-left:0;padding-left:0}body[data-auth-state=connected] #home:before{background:linear-gradient(90deg,#f4faffed,#eff8ffab 55%,#e5f4ff40)}body[data-auth-state=connected] #home{background-position:64% center}}
@media(min-width:601px) and (max-width:1200px){body[data-auth-state=connected] .site-header>nav{flex-wrap:wrap;overflow-x:visible;row-gap:3px}}
/* Copie Dashboard : conserver les libellés de navigation et du compte lisibles. */
body[data-auth-state=connected]>.site-header{flex-wrap:wrap}
body[data-auth-state=connected] .site-header>nav{flex-wrap:wrap;overflow-x:visible;flex-basis:650px}
body[data-auth-state=connected] #account-bar{flex-wrap:wrap;max-width:100%;min-width:0}
body[data-auth-state=connected] #account-label{max-width:none;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
body[data-auth-state=connected] #account-bar>div{flex-wrap:wrap}

@media(max-width:1023px){
 body.medipole-shell.mobile-shell[data-auth-state=connected]{overflow:hidden}
 body.medipole-shell.mobile-shell[data-auth-state=connected]>:is(header,#notice,#mobile-date,.simulation-notice,.release-badge){display:none!important}
 body.medipole-shell.mobile-shell[data-auth-state=connected]>#page{position:fixed;inset:0;width:100%;height:100vh;height:100dvh;min-height:0}
}

/* Authentication presentation only; the existing MFA component owns verification. */
html.auth-modal-open,html.auth-modal-open body{overflow:hidden!important;overscroll-behavior:none}
#welcome-dialog{width:calc(100% - 28px);max-width:560px;padding:28px;max-height:calc(var(--auth-viewport-height,100dvh) - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));border-radius:var(--mp-radius);border-color:var(--mp-line);color:var(--mp-ink);overscroll-behavior:contain;scrollbar-gutter:stable}
#welcome-dialog::backdrop{background:rgb(16 62 86 / 46%)}
#welcome-dialog #welcome-close{z-index:2;color:var(--mp-nav)}
#welcome-dialog #home-access{padding-top:8px}#welcome-dialog #home-access-title{font-size:25px;padding-right:24px}
#welcome-dialog .login-eyebrow{color:var(--mp-ink);font-size:13px;letter-spacing:0;text-transform:none}
#welcome-dialog #home-login{max-width:none}#welcome-dialog #home-login input{font-size:16px;border:1px solid var(--mp-muted);border-radius:8px;min-height:46px}
#welcome-dialog #home-login button{width:100%;background:var(--mp-accent);min-height:46px;border-radius:8px}
#welcome-dialog #home-account-summary{color:var(--mp-ink)}
#welcome-dialog #home-mfa-frame{display:block;width:100%;min-height:0;height:min(var(--mfa-content-height,650px),calc(var(--auth-viewport-height,100dvh) - 100px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));border:0;background:transparent}
#welcome-dialog :focus-visible{outline:3px solid var(--mp-accent);outline-offset:3px}
@media(max-width:600px){#welcome-dialog{padding:20px 16px;width:calc(100% - 20px);max-height:calc(var(--auth-viewport-height,100dvh) - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));scrollbar-gutter:auto}#welcome-dialog #home-access-title{font-size:23px}}
/* The only guest frame is the existing public MFA form, never a business module. */
body[data-auth-state=guest] #welcome-dialog #home-mfa-frame:not([hidden]){display:block!important}
