/* Presentation only: no training, authentication or call state lives here. */
x-dc { display: none !important; }
html, body { margin: 0; background: #F4F6FB; }
html:not(.cresla-ready) #dc-root { visibility: hidden; }
.cresla-boot {
  position: fixed; inset: 0; width: 100vw; height: 100dvh; z-index: 20000; display: grid;
  place-items: center; padding: 0; box-sizing: border-box;
  background: #F4F6FB; color: #0B1220;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: opacity 180ms ease;
}
.cresla-boot *, .cresla-boot *::before, .cresla-boot *::after { box-sizing: border-box; font-family: inherit; animation: none !important; }
.cresla-boot__content { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(360px, calc(100% - 48px)); height: 96px; text-align: center; }
.cresla-boot__brand { display: flex; justify-content: center; align-items: center; gap: 12px; }
.cresla-boot__mark { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: #0A1633; }
.cresla-boot__mark img { width: 24px; height: 24px; }
.cresla-boot__name { text-align: left; font-size: 18px; line-height: 22px; font-weight: 700; letter-spacing: -.03em; }
.cresla-boot__name small { display: block; margin-top: 3px; color: #1F4FE0; font-size: 10px; line-height: 12px; letter-spacing: .18em; font-weight: 500; }
.cresla-boot__status { position: absolute; top: 68px; left: 0; width: 100%; margin: 0; min-height: 22px; color: #5B6478; font-size: 14px; line-height: 22px; }
.cresla-boot__skeleton { display: grid; gap: 9px; margin: 22px auto 0; width: 192px; }
.cresla-boot__skeleton span { height: 9px; background: #E3E8F2; border-radius: 6px; }
.cresla-boot__skeleton span:last-child { width: 68%; justify-self: center; }
.cresla-boot__help { position: absolute; top: 112px; left: 0; width: 100%; margin: 0; max-height: max(100px, calc(50dvh - 90px)); overflow: auto; color: #5B6478; font-size: 13px; line-height: 1.6; }
.cresla-boot__retry { display: inline-block; margin-top: 12px; padding: 12px 20px; border-radius: 12px; background: #0A1633; color: #F4F6FB; font-weight: 600; text-decoration: none; }
.cresla-boot__retry:focus-visible { outline: 3px solid #2F6BFF; outline-offset: 4px; }
.cresla-boot[hidden], .cresla-boot [hidden] { display: none !important; }
.cresla-boot--leaving { opacity: 0; pointer-events: none; }
.cresla-boot--handoff { opacity: 1; pointer-events: auto; }
.cresla-boot__skeleton { display: none; }
/* Mode switches use the same quiet surface on both sides of navigation.
   Do not translate the destination or replay the welcome entrance. */
html.cresla-mode-handoff .cresla-boot__skeleton { display: none; }
.cresla-boot--handoff .cresla-boot__skeleton { display: none; }
html.cresla-welcome-handoff .cresla-boot--handoff .cresla-boot__brand { display: flex; }
html.cresla-welcome-handoff .cresla-boot--handoff .cresla-boot__status { display: block; }
html.cresla-mode-handoff.cresla-ready #dc-root { animation: creslaModeReveal 160ms ease-out both; }
@keyframes creslaModeReveal { from { opacity: 0; } to { opacity: 1; } }
html.cresla-mode-handoff .cresla-boot { transition: opacity 160ms ease-out; }
/* Keep both badge children in the same cell: an empty status span must not
   create a second grid row and push the lock below the badge centre. */
[data-pin-badge] > span, [data-pin-badge] > svg { grid-area: 1 / 1; }
[data-pin-card] > h2, [data-pin-card] > p { align-self: center; }
[data-call-connecting] { transition: opacity 240ms ease, transform 240ms cubic-bezier(.22,.8,.24,1); }
[data-call-connecting], [data-call-connecting] * { animation: none !important; }
@keyframes creslaConnectEnter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
[data-call-connecting] > div { animation: creslaConnectEnter 240ms cubic-bezier(.22,.8,.24,1) both !important; }
[data-call-connecting] [style*="opacity:0"] { opacity: 1 !important; }
[data-call-connecting] [style*="transform:scaleX(0)"] { transform: scaleX(.35) !important; transition: transform 240ms ease; }
[data-call-connecting] [style*="transform:scale(0)"] { transform: scale(0) !important; transition: transform 180ms ease; }
[data-call-connecting] [style*="animation:ccDot"] { display: none; }
[data-call-connecting][data-call-state="live"] { opacity: 0; transform: translateY(-6px); pointer-events: none; }
[data-call-connecting][data-call-state="live"] [style*="transform:scaleX(0)"] { transform: scaleX(1) !important; }
[data-call-connecting][data-call-state="live"] [style*="transform:scale(0)"] { transform: scale(1) !important; }
[data-call-live] { min-height: 100dvh; }
@media (max-width: 400px) {
  [data-call-connecting] > div { width: min(460px, 88vw) !important; }
}
html.cresla-pin #dc-root { visibility: visible; }
html.cresla-pin .cresla-boot { display: none; }
html.cresla-pin, html.cresla-pin body { background: linear-gradient(160deg,#1A2F78,#0A1633 58%,#060D24) left / 51.22% 100% no-repeat, #F4F6FB; }
@media (max-width: 900px) { html.cresla-pin, html.cresla-pin body { background: #F4F6FB; } }
[data-m="wl"] > [aria-hidden="true"] { pointer-events: none; }
#dc-root:has([data-m="wl"]) { overflow: hidden; max-height: 100dvh; }
html.cresla-welcome-handoff, html.cresla-welcome-handoff body { background: #F4F6FB !important; }
html.cresla-welcome-handoff .cresla-boot__brand,
html.cresla-welcome-handoff .cresla-boot__status,
html.cresla-welcome-handoff .cresla-boot__skeleton { display: none; }
html.cresla-welcome-handoff .cresla-boot { transition: none; }
@keyframes pgFadeIn { from { opacity: 0; } to { opacity: 1; } }
html.cresla-welcome-handoff.cresla-ready #dc-root { animation: pgFadeIn .7s ease both; }
@media (prefers-reduced-motion: reduce) {
  html.cresla-mode-handoff.cresla-ready #dc-root { animation: none; }
  .cresla-boot { transition: none; }
  [data-call-connecting] > div { animation: none !important; }
  #dc-root *, #dc-root *::before, #dc-root *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
