.onboard {
  --onboard-accent: #0866df;
  box-sizing: border-box;
  width: min(100%, 480px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 24px max(12px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #18232e;
  letter-spacing: 0;
}
body:has(.onboard) { background: #fff; }
.onboard *, .onboard *::before, .onboard *::after { box-sizing: border-box; letter-spacing: 0; }
.onboard button { font: inherit; cursor: pointer; border: 0; }
.onboard button:focus-visible, .onboard input:focus-visible { outline: 3px solid #0866df; outline-offset: 4px; }
.onboard h1:focus { outline: none; }
.onboard-header { display: flex; align-items: center; gap: 8px; min-height: 48px; flex-shrink: 0; }
.onboard-brand { display: block; width: 85px; }
.onboard-brand .brand-wordmark { display: block; width: 100%; height: auto; }
.onboard .guide-skip { position: static; margin-left: auto; padding: 12px 0 12px 16px; color: #57616d; background: transparent; font-size: 13px; min-height: 44px; }
.onboard-back { display: grid; place-items: center; background: transparent; color: #18232e; width: 44px; height: 44px; margin-left: -12px; padding: 10px; }
.onboard .svg-icon { width: 22px; height: 22px; flex-shrink: 0; }
.onboard-content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 22px; }
.onboard-visual { margin: 0; width: 100%; height: 290px; flex-shrink: 0; overflow: hidden; }
.onboard-photo { position: relative; height: 212px; overflow: hidden; border-radius: 8px; background: #eff5fa; }
.onboard-photo > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.onboard-place { position: absolute; bottom: 12px; left: 12px; display: flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 6px; background: #fff; color: #273441; font-size: 12px; font-weight: 600; }
.onboard-place .svg-icon { width: 15px; height: 15px; color: #0866df; }
.onboard-player { display: flex; align-items: center; gap: 12px; height: 78px; padding: 12px 0; }
.onboard-listen { display: grid; place-items: center; flex-shrink: 0; height: 48px; width: 48px; background: #e9f2ff; color: #0866df; border-radius: 50%; }
.onboard-player > div:first-of-type { flex: 1; min-width: 0; }
.onboard-player strong, .onboard-player small { display: block; overflow-wrap: anywhere; }
.onboard-player small { color: #68727e; font-size: 11px; margin-bottom: 4px; }
.onboard-player strong { font-size: 14px; }
.onboard-wave { display: flex; align-items: center; gap: 3px; height: 40px; flex-shrink: 0; }
.onboard-wave i { width: 3px; height: var(--bar-height); background: #1876e8; border-radius: 2px; }
.onboard-copy { padding: 24px 0 8px; }
.onboard .onboard-eyebrow { color: var(--onboard-accent); font-size: 12px; font-weight: 700; margin: 0 0 12px; }
.onboard h1 { margin: 0; font-size: 30px; line-height: 1.3; font-weight: 750; overflow-wrap: anywhere; word-break: keep-all; }
.onboard h1 span { display: block; }
.onboard-copy > p:last-child, .onboard-welcome > p:last-child { color: #68727e; font-size: 14px; line-height: 1.75; margin: 16px 0 0; word-break: keep-all; overflow-wrap: anywhere; }
.onboard-footer { margin-top: auto; padding-top: 12px; }
.onboard-progress { display: flex; justify-content: center; align-items: center; gap: 0; height: 44px; margin-bottom: 8px; }
.onboard-progress button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: transparent; }
.onboard-progress span { display: block; width: 6px; height: 6px; background: #d5dce2; border-radius: 8px; }
.onboard-progress [aria-current] span { width: 22px; background: #0877ff; }
.onboard-next { display: grid; grid-template-columns: minmax(22px, 1fr) minmax(0, auto) minmax(22px, 1fr); align-items: center; gap: 8px; min-height: 54px; width: 100%; padding: 14px 18px; border-radius: 8px; background: #0866df; color: #fff; font-weight: 700 !important; }
.onboard-next-label { grid-column: 2; min-width: 0; text-align: center; overflow-wrap: anywhere; }
.onboard-next > .svg-icon { grid-column: 3; justify-self: start; }
.onboard-next:hover { background: #0068e9; }
.onboard .onboard-note { margin: 12px 0 0; text-align: center; color: #6c7580; font-size: 11px; line-height: 1.5; min-height: 17px; overflow-wrap: anywhere; }
.onboard-preview-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.onboard-preview-label small { font-size: 10px; font-weight: 400; color: #65757a; margin-left: auto; }
.onboard-translate-screen { --onboard-accent: #087d68; }
.onboard-translate { background: #eef8f5; border-radius: 8px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; }
.onboard-translate .onboard-preview-label { color: #087d68; }
.onboard-translation > div { padding: 8px 0; }
.onboard-translation small { color: #62776e; font-size: 11px; }
.onboard-translation p { font-size: 21px; font-weight: 650; line-height: 1.35; margin: 5px 0 0; overflow-wrap: anywhere; }
.onboard-translation > div:last-child { color: #087d68; }
.onboard-translation-arrow { display: block; height: 20px; }
.onboard-translation-arrow svg { transform: rotate(90deg); width: 18px; height: 18px; color: #6a9b8b; }
.onboard-input-icons { display: flex; gap: 28px; justify-content: center; color: #328976; padding-top: 10px; border-top: 1px solid #d5e9e1; }
.onboard-plan { padding: 14px 0 0; }
.onboard-plan .onboard-preview-label { padding-bottom: 12px; border-bottom: 1px solid #e8edf2; }
.onboard-plan .onboard-preview-label > svg { color: #0866df; }
.onboard-stops { list-style: none; margin: 0; padding: 10px 0 0; }
.onboard-stops li { position: relative; min-height: 57px; display: flex; align-items: center; gap: 14px; font-size: 14px; }
.onboard-stops li:not(:last-child)::after { content: ''; position: absolute; top: 42px; left: 18px; height: 30px; border-left: 1px dashed #c7d4df; }
.onboard-stops li > span { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; background: #f0f5f9; border-radius: 50%; z-index: 1; color: #6c7c88; }
.onboard-stops li:nth-child(2) > span { color: #0866df; background: #e7f1ff; }
.onboard-stops li:nth-child(3) > span { color: #9c7210; background: #fff6d6; }
.onboard-stops img { width: 72px; height: 46px; object-fit: cover; border-radius: 6px; margin-left: auto; }
.onboard-welcome { padding-top: 18px; }
.onboard-host { display: block; object-fit: contain; margin: 0 0 20px; width: 96px; height: 96px; }
.onboard-language h1 { font-size: 26px; }
.onboard-languages { min-width: 0; margin: 28px 0 12px; padding: 0; border: none; }
.onboard-languages legend { font-size: 12px; color: #68727e; margin-bottom: 8px; }
.onboard-language-option { display: flex; justify-content: space-between; align-items: center; min-height: 50px; border-bottom: 1px solid #edf0f2; gap: 14px; padding: 10px 0; cursor: pointer; font-size: 16px; }
.onboard-language-option:has(:checked) { color: #0866df; font-weight: 650; }
.onboard-language-option input { width: 20px; height: 20px; margin: 0 4px; accent-color: #0877ff; flex-shrink: 0; cursor: pointer; }
@media (min-width: 700px) {
  .onboard { min-height: min(880px, 100dvh); padding-top: 24px; padding-bottom: 24px; }
}
@media (max-height: 740px) {
  .onboard-content { padding-top: 14px; }
  .onboard-visual { height: 256px; }
  .onboard-photo { height: 184px; }
  .onboard-player { height: 72px; }
  .onboard-copy { padding-top: 16px; }
  .onboard h1 { font-size: 27px; }
  .onboard-copy > p:last-child { margin-top: 10px; }
  .onboard-stops li { min-height: 49px; }
  .onboard-host { height: 72px; width: 72px; margin-bottom: 12px; }
  .onboard-languages { margin-top: 18px; }
  .onboard-language-option { min-height: 46px; }
}
@media (max-width: 350px) {
  .onboard { padding-inline: 18px; }
  .onboard-wave { gap: 2px; }
  .onboard-wave i { width: 2px; }
}
@media (max-height: 650px) {
  .onboard-content { padding-top: 10px; }
  .onboard-visual { height: 200px; }
  .onboard-photo { height: 144px; }
  .onboard-player { height: 56px; gap: 10px; padding-block: 6px; }
  .onboard-listen { width: 38px; height: 38px; }
  .onboard-copy { padding-top: 12px; padding-bottom: 0; }
  .onboard h1 { font-size: 24px; }
  .onboard .onboard-eyebrow { margin-bottom: 8px; }
  .onboard-copy > p:last-child { font-size: 13px; line-height: 1.6; margin-top: 8px; }
  .onboard-progress { margin-bottom: 0; }
  .onboard-next { min-height: 48px; padding-block: 11px; }
  .onboard-slide:not(.onboard-plan-screen) .onboard-note { display: none; }
  .onboard-translate { padding: 14px 18px; }
  .onboard-translation > div { padding: 4px 0; }
  .onboard-translation p { font-size: 18px; margin-top: 3px; }
  .onboard-input-icons { padding-top: 5px; }
  .onboard-plan { padding-top: 0; }
  .onboard-plan .onboard-preview-label { padding-bottom: 8px; }
  .onboard-stops { padding-top: 6px; }
  .onboard-stops li { min-height: 40px; font-size: 13px; }
  .onboard-stops li > span { width: 30px; height: 30px; }
  .onboard-stops li:not(:last-child)::after { left: 14px; top: 30px; height: 24px; }
  .onboard-stops img { height: 34px; width: 54px; }
  .onboard-host { display: none; }
  .onboard-welcome { padding-top: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .onboard-content { animation: onboard-enter 180ms ease-out; }
  @keyframes onboard-enter { from { opacity: .7; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
}
