/* Centered welcome screen, with one shared language picker for public access pages. */
body.accessPage.welcomePage{background-color:#101113;background-image:radial-gradient(ellipse at 50% 40%,rgba(93,103,117,.14),rgba(45,51,61,.06) 34%,transparent 68%),linear-gradient(155deg,#15171b 0%,#101113 52%,#0d0e10 100%);background-size:100% 100%;background-repeat:no-repeat}
.welcomeHeader{position:absolute;z-index:30;inset:0 0 auto;padding:25px 30px;display:flex;justify-content:flex-end;pointer-events:none}.welcomeHeaderControls{position:relative;display:flex;align-items:center;gap:10px;max-width:100%;pointer-events:auto}.welcomeHeaderControls .accessLanguage{position:static}.welcomeTopLogin{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:10px;border:1px solid #373b41;border-radius:14px;background:#24272c;color:#e5e6e2;transition:background .2s,border-color .2s}.welcomeTopLogin:hover{background:#191b1f;border-color:#555b64}.welcomeTopLogin .icon{width:21px;height:21px}
.welcomeHero{min-height:100svh;margin:0 auto;padding:104px 24px;display:grid;place-items:center;text-align:center}
.welcomeCopy{width:100%;max-width:700px;min-width:0}.welcomeBrand{justify-content:center;gap:16px;margin:0 auto 38px;font-size:33px;letter-spacing:1.6px;text-align:start}.welcomeBrand img{width:65px;height:65px}.welcomeBrand small{font-size:10px;letter-spacing:4px;margin-top:5px}
.welcomeCopy h1{font-size:clamp(36px,4.8vw,56px);font-weight:750;line-height:1.12;letter-spacing:-1.8px;margin:0 0 23px;overflow-wrap:break-word}.welcomeCopy h1 span{display:block}.welcomeCopy h1 span:last-child{color:#b0b3b6}
.welcomeDescription{max-width:500px;margin:0 auto;color:#a7abb2;font-size:15px;line-height:1.8;text-wrap:pretty}
.welcomeAction{max-width:310px;margin:31px auto 0}.welcomeAction .primary{display:flex;justify-content:space-between;align-items:center;gap:20px;width:100%;padding:17px 21px;min-height:57px;border-radius:15px;background:#e2e1db;border:1px solid #e2e1db;color:#202226;font-size:15px;font-weight:750;box-shadow:0 8px 32px #0003;transition:background .2s,box-shadow .2s}.welcomeAction .primary:hover,.welcomeAction .primary:active{background:#cccac3}.welcomeAction .primary:disabled{transform:none}.welcomeAction .primary .icon{width:20px;height:20px;stroke-width:2}.welcomeAction>p{margin:14px auto 0;color:#858b94;font-size:11px;line-height:1.65;max-width:300px}
.accessLanguage{position:relative;text-align:start;max-width:100%}.accessLanguage #authLangButton{display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:11px 13px;border:1px solid #373b41;border-radius:14px;background:#1c1e22;color:#e5e6e2;box-shadow:0 6px 22px #0002;font-size:13px;font-weight:650;transition:background .18s,border-color .18s}.accessLanguage #authLangButton:hover,.accessLanguage #authLangButton[aria-expanded=true]{background:#25282d;border-color:#656a71}.accessLanguage #authLangButton>.icon{width:18px;height:18px;color:#b4b8bd}.accessLanguage #authLangButton>span:not(.languageChevron){max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.languageChevron{display:flex;align-items:center;color:#999fa7}.languageChevron .icon{width:14px;height:14px;transform:rotate(90deg);transition:transform .18s}.accessLanguage #authLangButton[aria-expanded=true] .languageChevron .icon{transform:rotate(-90deg)}
.accessLanguageMenu{position:absolute;z-index:40;top:calc(100% + 10px);inset-inline-end:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;width:360px;max-width:calc(100vw - 36px);max-height:min(440px,calc(100svh - 100px));padding:9px;overflow-y:auto;overscroll-behavior:contain;border:1px solid #3b4047;border-radius:19px;background:#1b1e22;box-shadow:0 18px 60px #0009;scrollbar-width:thin;scrollbar-color:#4b5159 transparent;animation:languageMenuIn .16s ease-out;transform-origin:top right}
.accessLanguageMenu>button{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;min-height:54px;padding:10px 12px;border:1px solid transparent;border-radius:11px;background:transparent;text-align:start;color:#bdc1c7;font-weight:500}.accessLanguageMenu>button:hover{background:#292d33;color:#f0f1ed}.accessLanguageMenu>button:focus-visible{outline:2px solid #d2d4ce;outline-offset:-2px;background:#292d33;color:#fff}.accessLanguageMenu>button[aria-checked=true]{background:#30343a;color:#f2f2ed;border-color:#4b5159}.accessLanguageMenu>button[data-language=ro-MD]{grid-column:1/-1}.languageName{min-width:0;display:block}.languageName b{display:block;font-size:13px;font-weight:650;line-height:1.35;overflow-wrap:anywhere}.languageName small{display:block;font-size:9px;font-weight:550;color:#838b96;letter-spacing:.6px;margin-top:3px}.accessLanguageMenu>button[aria-checked=true] .languageName small{color:#b0b6bf}.languageCheck{width:16px;flex:0 0 16px;color:#e0e2db;font-size:15px;text-align:center}.languageMenuError{grid-column:1/-1;margin:5px 4px 3px;padding:10px;border-radius:10px;background:#342326;color:#ffa7ad;font-size:12px;line-height:1.5}.accessLanguageMenu[aria-busy=true]{cursor:wait}
[dir=rtl] .welcomeCopy h1{letter-spacing:normal}[dir=rtl] .welcomeAction .primary .icon{transform:scaleX(-1)}[dir=rtl] .accessLanguageMenu{transform-origin:top left}
@keyframes languageMenuIn{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){.welcomeHeader{padding:18px}.welcomeHero{padding:90px 22px}.welcomeBrand{font-size:28px;gap:13px;margin-bottom:32px}.welcomeBrand img{width:56px;height:56px}.welcomeBrand small{font-size:9px;letter-spacing:3.2px}.welcomeCopy h1{font-size:clamp(33px,8.8vw,43px);letter-spacing:-1.2px;margin-bottom:20px}.welcomeDescription{font-size:14px;line-height:1.75;max-width:420px}.welcomeAction{margin-top:27px}.welcomeAction .primary{font-size:14px;min-height:55px}.accessLanguage #authLangButton{min-height:42px;padding:10px 12px;font-size:12px;gap:8px}.accessLanguageMenu{max-width:calc(100vw - 36px);max-height:min(420px,calc(100svh - 88px));border-radius:17px}.accessLanguageMenu>button{padding:10px;min-height:52px}.languageName b{font-size:12px}}
@media(prefers-reduced-motion:reduce){.welcomeAction .primary,.accessLanguage #authLangButton,.languageChevron .icon{transition:none}.welcomeAction .primary:hover{transform:none}.accessLanguageMenu{animation:none}}

/* No system wait cursor when opening or submitting access forms. */
.accessPage button:disabled,.accessSheet button:disabled{cursor:default}
@media(max-width:600px){.welcomeTopLogin{width:42px;height:42px;min-height:42px;border-radius:13px}}
@media(prefers-reduced-motion:reduce){.welcomeTopLogin{transition:none}}
.accessSheet .primary{transition:background .2s}
.accessSheet .primary:hover,.accessSheet .primary:active{background:#cccac3;transform:none}
.accessPage .accessLanguageMenu[aria-busy=true]{cursor:default}

/* Center the complete horizontal logo as one group, along with copy and button. */
.welcomeCopy{display:flex;flex-direction:column;align-items:center;text-align:center}
.welcomeBrand{display:flex;flex-direction:row;align-items:center;justify-content:center;align-self:center;flex:0 0 auto;width:max-content;max-width:100%;margin-inline:auto;direction:ltr;text-align:left}
.welcomeBrand img{flex:0 0 auto}
.welcomeBrandText{text-align:left;line-height:1.1}
.welcomeBrandText>span{display:block}
.welcomeCopy h1{width:100%;text-align:center}
.welcomeCopy h1 span{max-width:100%;margin-inline:auto;text-align:center;text-wrap:balance}
.welcomeDescription{width:100%;text-align:center;text-wrap:balance}
.welcomeAction{width:min(310px,100%)}
.welcomeAction .primary{display:grid;grid-template-columns:20px minmax(0,1fr) 20px;gap:10px}
.welcomeAction .primary>span{grid-column:2;grid-row:1;text-align:center}
.welcomeAction .primary>.icon{grid-column:3;grid-row:1}
.welcomeAction>p{text-align:center}

/* Public welcome must fit the viewport, including narrow/zoomed phone screens. */
body.accessPage.welcomePage{width:100%;min-width:0;max-width:100%;overflow-x:hidden}
body.welcomePage #app{width:100%;min-width:0;max-width:100%}
.welcomeHero{width:100%;min-width:0;max-width:100%;grid-template-columns:minmax(0,1fr)}
.welcomeHeader,.welcomeHeaderControls{min-width:0}
.welcomeHeaderControls .accessLanguage{flex:1 1 auto;min-width:0}
.welcomeHeaderControls #authLangButton{width:100%;min-width:0;max-width:100%}
.welcomeHeaderControls #authLangButton>span:not(.languageChevron){min-width:0}
.welcomeTopLogin{flex:0 0 auto}
.welcomeBrandText{min-width:0}
.welcomeDescription,.welcomeAction>p,.welcomeAction .primary>span{min-width:0;overflow-wrap:anywhere}
@media(max-width:340px){
 .welcomeHero{padding-inline:16px}
 .welcomeBrand{font-size:clamp(18px,8.2vw,28px);gap:clamp(8px,3.8vw,13px)}
 .welcomeBrand img{width:clamp(36px,16.5vw,56px);height:auto;aspect-ratio:1}
 .welcomeBrand small{font-size:clamp(6px,2.65vw,9px);letter-spacing:clamp(1px,.94vw,3.2px)}
 .welcomeCopy h1{font-size:clamp(24px,9.7vw,33px)}
}

/* Keep the document itself stationary; only the content can scroll vertically. */
html.welcomeViewport{width:100%;min-width:0;max-width:100%;height:100%;overflow:hidden;overscroll-behavior-x:none}
html.welcomeViewport body.welcomePage{position:fixed;inset:0;width:auto;min-width:0;max-width:100%;height:100%;min-height:0;overflow:hidden;overscroll-behavior-x:none}
html.welcomeViewport body.welcomePage #app{position:relative;width:100%;height:100%;min-width:0;max-width:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior-x:none;touch-action:pan-y pinch-zoom}
html.welcomeViewport .welcomeHero{min-height:100%}
.welcomePage .accessLanguageMenu{overflow-x:hidden;touch-action:pan-y pinch-zoom}
.welcomePage .accessSheet{min-width:0;overflow-x:hidden;overscroll-behavior-x:none;touch-action:pan-y pinch-zoom}
.welcomePage #sheetContent{min-width:0;max-width:100%;overflow-wrap:anywhere}

/* Phone welcome occupies exactly the visible window, with no page scrolling. */
@media(max-width:600px){
 html.welcomeViewport body.welcomePage{height:100%;height:100svh;height:100dvh}
 html.welcomeViewport body.welcomePage #app{overflow:hidden;overscroll-behavior:none}
 html.welcomeViewport .welcomeHero{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:0;margin:0;padding:64px 22px;overflow:hidden}
 html.welcomeViewport .welcomeCopy{flex:0 0 auto;min-height:0;margin:0;transform:scale(var(--welcome-scale,1));transform-origin:center}
 .welcomeBrand{margin-bottom:24px}
 .welcomeCopy h1{margin-bottom:16px}
 .welcomeAction{margin-top:24px}
}
@media(max-width:340px){html.welcomeViewport .welcomeHero{padding-inline:16px}}
