/* Welcome alone: no changes to the normal shell, cards or shared controls. */
html[data-welcome-pending] body > :not(.welcome-root):not(script) { visibility: hidden; }
body[data-welcome-active] { overflow: hidden; }
.welcome-root {
  --welcome-cream: #faf7f0;
  box-sizing: border-box; position: fixed; inset: 0; margin: 0;
  width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none;
  padding: 0; border: 0; border-radius: 0; color: #242528;
  background: var(--welcome-cream); overflow: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.welcome-root::backdrop { background: #faf7f0; }
.welcome-root:focus { outline: none; }
.welcome-root[data-screen="0"] { background: #f4eee6; }
.welcome-root *, .welcome-root *::before, .welcome-root *::after { box-sizing: border-box; }
.welcome-root [hidden] { display: none !important; }
.welcome-frame { width: 100%; max-width: 460px; height: 100%; margin: 0 auto; display: flex; flex-direction: column; padding: env(safe-area-inset-top, 0px) 0 0; }
.welcome-panels { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; }
.welcome-slide { min-height: 100%; padding: 36px 24px 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.welcome-root .welcome-title { white-space: pre-line; font: 750 28px/1.22 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: .1px; margin: 0 0 23px; padding: 0; color: #25262a; }
.welcome-root .welcome-copy { font: 400 19px/1.42 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; margin: 0; padding: 0; max-width: 340px; }
.welcome-art { display: block; width: auto; max-width: 100%; height: auto; object-fit: contain; flex: 0 0 auto; }
.welcome-slide-1 .welcome-art { width: 292px; margin-top: 16px; }
.welcome-slide-2 .welcome-art { width: 261px; margin-top: 3px; }
.welcome-slide-3 .welcome-art { width: 285px; margin-top: 23px; }
.welcome-root .welcome-brand { display: block; width: 226px; max-width: 85%; height: auto; margin: 28px auto 12px; }
.welcome-root .welcome-slogan { font-size: 19px; line-height: 1.2; font-weight: 750; margin: 0; transform: rotate(-1deg); }
.welcome-slide-3 { padding-top: 24px; }
.welcome-slide-3 .welcome-title { font-size: 25px; line-height: 1.22; margin-bottom: 28px; }
.welcome-slide-3 .welcome-copy { font-size: 18px; }
.welcome-slide-0 { padding: 0 14px; justify-content: center; }
.welcome-intro-media { width: 100%; margin: auto 0;
  /* Only the empty outer margins fade into the page. The source, 3:1 frame
     and fully opaque logo/robot area are kept intact. */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
}
.welcome-video, .welcome-intro-poster { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: contain; border: 0; background: transparent; }
.welcome-root .welcome-intro-copy { white-space: pre-line; margin: 0 0 12px; font-size: 18px; line-height: 1.5; font-weight: 500; color: #929292; }
.welcome-footer { flex: 0 0 auto; padding: 10px 20px calc(16px + env(safe-area-inset-bottom, 0px)); }
.welcome-dots { display: flex; gap: 9px; justify-content: center; align-items: center; height: 22px; margin: 0 0 8px; }
.welcome-dot { width: 10px; height: 10px; border-radius: 50%; background: #d6d3ce; }
.welcome-dot.is-active { background: #e76d36; }
.welcome-root .welcome-next { display: block; width: 100%; min-height: 52px; margin: 0; padding: 10px 16px; font: 650 19px/1.3 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; border: 2px solid #242424; border-radius: 11px; background: #ed7a42; color: #1d2020; box-shadow: 0 5px 0 #242424; cursor: pointer; }
.welcome-root .welcome-next:focus-visible { outline: 3px solid #347f82; outline-offset: 4px; }
.welcome-root .welcome-title:focus { outline: none; }
.welcome-root .welcome-save-error { margin: 12px 0 0; font-size: 14px; }
@media (min-height: 780px) { .welcome-slide { padding-top: 68px; } .welcome-slide-0 { padding-top: 0; } .welcome-slide-3 { padding-top: 45px; } }
@media (min-width: 768px) { .welcome-frame { max-width: 450px; } .welcome-slide { padding-top: 52px; } .welcome-slide-0 { padding-top: 0; } .welcome-footer { padding-bottom: 25px; } }
@media (prefers-reduced-motion: reduce) { .welcome-root *, .welcome-root *::before, .welcome-root *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
