/* The first-launch surface shares the app shell, type, and native safe areas. */
.first-launch .first-launch-legal { margin: 18px 0 0; color: var(--fl-muted); font-size: 11px; line-height: 1.65; text-align: center; }
.first-launch .first-launch-legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.first-launch .first-launch-legal a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.phone-app.first-launch-open {
  color: var(--home-ink);
}
.app-onboarding-entry > .app-header,
.app-onboarding-entry > .home-screen { animation: firstLaunchFade 360ms ease-out backwards; }
.first-launch-open > :not(.first-launch, .app-phone-status, .app-phone-island, .app-home-indicator) {
  display: none !important;
}
.first-launch {
  position: relative;
  min-height: 100svh;
  background: transparent;
  color: var(--fl-ink);
  isolation: isolate;
}
.first-launch-layout {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100svh;
  padding: calc(58px + env(safe-area-inset-top)) 30px calc(28px + env(safe-area-inset-bottom));
}
.first-launch-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding-left: .12em;
  font-family: var(--app-sans);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.15;
  text-transform: uppercase;
  animation: firstLaunchFade 460ms cubic-bezier(.2,.8,.2,1) backwards;
}
.first-launch-content {
  width: 100%;
  max-width: 360px;
  margin: auto 0;
  padding: 56px 0 64px;
  animation: firstLaunchEnter 620ms 60ms cubic-bezier(.22,1,.36,1) backwards;
}
/* One persistent indicator outside the transitioning form panels. */
.onboarding-progress[hidden] { display: none; }
.onboarding-progress { display: flex; align-items: center; flex: none; width: calc(100% - 52px); max-width: 308px; min-height: 44px; margin-left: 52px; }
.onboarding-progress-track { width: 100%; height: 6px; overflow: hidden; border-radius: 10px; background: #ffffffb8; box-shadow: inset 0 1px 2px #1e4c7d12, 0 1px 0 #ffffffc7; }
.onboarding-progress-fill { display: block; width: calc(var(--onboarding-progress, 0) * 100%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #78b8ff, #4399f2 70%, #8acaff); box-shadow: inset 0 1px 0 #ffffff73; transition: width 540ms cubic-bezier(.22,1,.36,1); }
.phone-app.is-dark-theme .onboarding-progress-track { background: #ffffff17; box-shadow: inset 0 1px 2px #00000030, 0 1px 0 #ffffff14; }
.phone-app.is-dark-theme .onboarding-progress-fill { background: linear-gradient(90deg, #64aaff, #8acaff); }
@media (prefers-reduced-motion: reduce) { .onboarding-progress-fill { transition: none; } }
@media (forced-colors: active) { .onboarding-progress-track { background: Canvas; border: 1px solid CanvasText; } .phone-app .onboarding-progress-fill { background: Highlight; } }
.first-launch-heading { margin-bottom: 32px; text-align: center; }
.first-launch-heading h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.2;
}
.first-launch-heading p { margin: 12px 0 0; color: var(--fl-muted); font-size: 14px; line-height: 1.5; }
.first-launch-options { display: grid; gap: 12px; }
.first-launch-provider {
  display: grid;
  grid-template-columns: 22px minmax(0,1fr) 22px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border: 1px solid var(--fl-edge);
  border-radius: 14px;
  background: var(--fl-surface);
  color: var(--fl-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -.015em;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  touch-action: manipulation;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), background-color 220ms ease, border-color 220ms ease;
}
.first-launch-provider svg { display: block; width: 21px; height: 21px; }
.first-launch-google-signin { margin-top: 16px; }
.first-launch-provider[aria-busy="true"] { background: var(--fl-busy); cursor: progress; transform: none; }
.first-launch:not(.has-press-feedback) .first-launch-provider:active,
.first-launch-provider.is-pressed {
  background: var(--fl-pressed);
  border-color: var(--fl-line);
  transform: scale(.99);
  transition-duration: 80ms;
}
.first-launch-switch { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 22px 0 0; color: var(--fl-muted); font-size: 13px; line-height: 1.5; }
.first-launch-switch button {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--fl-ink);
  font-size: inherit;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  touch-action: manipulation;
  transition: background-color 220ms ease, color 220ms ease;
}
.first-launch:not(.has-press-feedback) .first-launch-switch button:active,
.first-launch-switch button.is-pressed { color: var(--fl-muted); background: transparent; transition-duration: 80ms; }
.first-launch button:focus-visible { outline: 2px solid var(--fl-accent); outline-offset: 4px; }
.first-launch-heading h1:focus { outline: none; }
.first-launch-text-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--fl-detail);
  font-size: 13px;
  font-weight: 400;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  touch-action: manipulation;
  transition: opacity 180ms ease;
}
.first-launch-text-control.is-pressed,
.first-launch:not(.has-press-feedback) .first-launch-text-control:active { opacity: .55; }
.first-launch-back { position: absolute; top: calc(58px + env(safe-area-inset-top)); left: 24px; color: var(--fl-ink); }
.first-launch-back svg { width: 22px; height: 22px; }
.first-launch-form { margin: 0; }
.first-launch-field + .first-launch-field { margin-top: 20px; }
.first-launch-field label { display: block; margin-bottom: 9px; color: var(--fl-detail); font-size: 13px; font-weight: 450; line-height: 1.4; }
/* Shared by every text-entry step: a rounded field, never an underline. */
.first-launch-input-wrap {
  display: flex;
  align-items: center;
  min-height: 56px;
  border: 1px solid var(--fl-line);
  border-radius: 14px;
  background: var(--fl-surface);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}
.first-launch-input-wrap:focus-within { border-color: var(--fl-accent); box-shadow: 0 0 0 3px var(--fl-focus); }
.first-launch-field:has([aria-invalid="true"]) .first-launch-input-wrap { border-color: var(--fl-error-edge); box-shadow: 0 0 0 3px var(--fl-error-focus); }
.first-launch-field input {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 15px 16px;
  border: 0;
  border-radius: inherit;
  outline: none;
  background: transparent;
  color: var(--fl-ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  box-shadow: none;
  scroll-margin-block: 24px;
}
.first-launch-field input:focus-visible { outline: none; }
.first-launch-field input::placeholder { color: var(--fl-placeholder); opacity: 1; }
.first-launch input { caret-color: var(--fl-accent); }
.first-launch input::selection { color: var(--fl-ink); background: var(--fl-selected); }
.first-launch input:autofill { -webkit-text-fill-color: var(--fl-ink); box-shadow: 0 0 0 1000px var(--fl-solid-top) inset; }
.first-launch-location-field {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; min-height: 56px; padding: 15px 16px;
  border: 1px solid var(--fl-line); border-radius: 14px; background: var(--fl-surface);
  color: var(--fl-ink); font-size: 16px; font-weight: 400; line-height: 1.5; text-align: left;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background-color 180ms ease, border-color 180ms ease;
}
.first-launch-location-field span { min-width: 0; overflow-wrap: break-word; }
.first-launch-location-field .is-placeholder { color: var(--fl-placeholder); }
.first-launch-location-field svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--fl-muted); }
.first-launch-location-field.is-pressed { background: var(--fl-pressed); border-color: var(--fl-line); }
.first-launch-location-field[aria-invalid="true"] { border-color: var(--fl-error-edge); }
/* A dedicated picker keeps results clear of the form and mobile keyboard. */
.first-launch-content:has(.first-launch-location:not([hidden])) { margin-block: 0 auto; padding-top: 36px; }
.first-launch-location-search { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--fl-line); transition: border-color 180ms ease; }
.first-launch-location-search:focus-within { border-color: var(--fl-accent); }
.first-launch-location-search > svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--fl-muted); }
.first-launch-location-search input { flex: 1; min-width: 0; min-height: 54px; padding: 12px 0; border: 0; border-radius: 0; outline: none; background: transparent; color: var(--fl-ink); font-size: 16px; font-weight: 400; line-height: 1.5; box-shadow: none; }
.first-launch-location-search input::placeholder { color: var(--fl-placeholder); opacity: 1; }
.first-launch-location-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.first-launch-location-search input:focus-visible { outline: none; }
.first-launch-location-search button svg { width: 18px; height: 18px; }
.first-launch-location-status { margin: 20px 0 8px; color: var(--fl-muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
.first-launch-location-results { list-style: none; padding: 0; margin: 0; }
.first-launch-location-results li { margin: 0; padding: 0; }
.first-launch-location-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 66px; padding: 13px 8px; border: 0; border-bottom: 1px solid var(--fl-rule); border-radius: 0; background: transparent; color: var(--fl-ink); text-align: left; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: background-color 180ms ease; }
.first-launch-location-result > span { display: grid; gap: 3px; min-width: 0; }
.first-launch-location-result strong { color: var(--fl-ink); font-size: 16px; font-weight: 400; line-height: 1.4; overflow-wrap: anywhere; }
.first-launch-location-result small { color: var(--fl-muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
.first-launch-location-result svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--fl-ink); }
.first-launch-location-result.is-pressed, .first-launch-location-result:active { background: var(--fl-pressed); }
.first-launch-password-toggle { flex: 0 0 48px; margin-right: 3px; }
.first-launch-password-toggle svg { width: 20px; height: 20px; }
.first-launch-eye-slash { display: none; }
.first-launch-password-toggle[aria-pressed="true"] .first-launch-eye-slash { display: block; }
.first-launch-recovery { display: flex; justify-content: flex-end; margin: 4px 0 12px; }
.first-launch-submit {
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border: 1px solid var(--fl-primary);
  border-radius: 14px;
  color: var(--fl-primary-ink);
  background: var(--fl-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
  scroll-margin-block: 24px;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), background-color 220ms ease;
}
.first-launch-submit.is-pressed,
.first-launch:not(.has-press-feedback) .first-launch-submit:active { background: var(--fl-primary-pressed); transform: scale(.99); transition-duration: 80ms; }
.first-launch-field-error { margin: 7px 0 0; color: var(--fl-error); font-size: 12px; line-height: 1.5; }
.first-launch-form-status { margin: 16px 0 0; color: var(--fl-muted); font-size: 13px; line-height: 1.6; text-align: center; }
.first-launch-details .first-launch-heading { margin-bottom: 36px; text-align: left; }
.first-launch-details .first-launch-heading h1 { font-size: 36px; font-weight: 450; line-height: 1.12; letter-spacing: -.045em; }
.first-launch-details .first-launch-submit { margin-top: 32px; border-radius: 12px; }
.first-launch-details .first-launch-switch { margin-top: 18px; font-size: 12px; }
.first-launch-signin .first-launch-field + .first-launch-field { margin-top: 24px; }
.first-launch-signin .first-launch-recovery { margin: 6px 0 18px; }
.first-launch-signin .first-launch-submit { margin-top: 0; }
.first-launch-field-hint { margin: 12px 0 0; color: var(--fl-muted); font-size: 12px; line-height: 1.5; }
.first-launch-identity { display: flex; align-items: center; gap: 16px; margin-top: 8px; color: var(--fl-muted); font-size: 14px; line-height: 1.5; }
.first-launch-identity > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.first-launch-identity > button { flex-shrink: 0; color: var(--fl-ink); }
.first-launch-preview { display: flex; margin: 4px auto 0; color: var(--fl-ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--fl-line); }
/* The first personalisation step is part of this same phone surface. */
.first-launch-profile { --first-launch-priority-size: 60px; --first-launch-choice-gap: 10px; }
.first-launch-content:has(.first-launch-profile:not([hidden])) { padding-block: 32px; }
.first-launch-profile .first-launch-heading { margin-bottom: 28px; text-align: left; }
.first-launch-profile .first-launch-heading h1 { font-size: 36px; font-weight: 450; line-height: 1.12; }
.first-launch-profile .first-launch-heading p { color: var(--fl-muted); }
/* Reserve the same five-choice space on every step. Short lists stay at the
   top, Continue stays aligned, and longer content can grow without clipping. */
.first-launch-roles,
.first-launch-basics-fields {
  display: grid;
  align-content: start;
  gap: var(--first-launch-choice-gap);
  min-block-size: calc(5 * var(--first-launch-priority-size) + 4 * var(--first-launch-choice-gap));
}
.first-launch-basics-fields { display: block; }
.first-launch-role {
  display: grid;
  grid-template-columns: 24px minmax(0,1fr) 20px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 72px;
  padding: 16px;
  border: 1px solid var(--fl-edge);
  border-radius: 14px;
  background: var(--fl-surface);
  color: var(--fl-ink);
  font-size: 16px;
  font-weight: 450;
  line-height: 1.4;
  letter-spacing: -.02em;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  user-select: none;
  transition: background-color 220ms ease, border-color 220ms ease, transform 220ms cubic-bezier(.22,1,.36,1);
}
.first-launch-role > span:not(.first-launch-role-check) { min-width: 0; overflow-wrap: normal; }
.first-launch-role-icon { display: block; width: 24px; height: 24px; color: var(--fl-detail); }
.first-launch-role-check { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--fl-check-edge); border-radius: 6px; background: transparent; color: #fff; transition: background-color 220ms ease, border-color 220ms ease; }
.first-launch-role-check svg { width: 16px; height: 16px; opacity: 0; transition: opacity 180ms ease; }
.first-launch-role[aria-checked="true"] { border-color: var(--fl-accent); background: var(--fl-selected); }
.first-launch-role[aria-checked="true"] .first-launch-role-check { background: #006eff; border-color: #006eff; }
.first-launch-role[aria-checked="true"] .first-launch-role-check svg { opacity: 1; }
.first-launch-role.is-pressed,
.first-launch:not(.has-press-feedback) .first-launch-role:active { transform: scale(.992); background: var(--fl-disabled); border-color: var(--fl-line); transition-duration: 80ms; }
.first-launch-role-continue { margin-top: 28px; border-radius: 12px; transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease, transform 220ms cubic-bezier(.22,1,.36,1); }
.first-launch-role-continue:disabled { background: var(--fl-disabled); border-color: var(--fl-disabled); color: var(--fl-disabled-ink); cursor: default; transform: none; }
/* A quiet checklist makes multiple selections explicit, including on touch. */
.first-launch-selection-hint { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 14px; }
.first-launch-profile .first-launch-selection-hint p { margin: 0; font-size: 13px; line-height: 1.5; }
.first-launch-selection-count { flex-shrink: 0; color: var(--fl-detail); font-size: 12px; font-weight: 450; line-height: 1.5; font-variant-numeric: tabular-nums; }
.first-launch-priority { grid-template-columns: minmax(0,1fr) 20px; min-height: var(--first-launch-priority-size); }
.first-launch-team-choice { border: 1px solid var(--fl-edge); border-radius: 14px; background: var(--fl-surface); transition: border-color 220ms ease, background-color 220ms ease; }
.first-launch-team-choice > .first-launch-priority { min-height: calc(var(--first-launch-priority-size) - 2px); border: 0; background: transparent; }
.first-launch-team-choice.is-open { border-color: var(--fl-accent); }
.first-launch-team-label { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.first-launch-team-label > svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--fl-ink); transition: transform 360ms cubic-bezier(.4,0,.2,1); }
.first-launch-team-choice.is-open .first-launch-team-label > svg { transform: rotate(180deg); }
.first-launch-team-options { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 360ms cubic-bezier(.4,0,.2,1), opacity 300ms ease; }
.first-launch-team-choice.is-open .first-launch-team-options { grid-template-rows: 1fr; opacity: 1; }
.first-launch-team-clip { min-height: 0; overflow: hidden; }
.first-launch-team-body { margin: 0 16px; padding: 8px 0 12px; border-top: 1px solid var(--fl-rule); }
.first-launch-talent-options { display: grid; }
.first-launch-talent { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: calc(100% + 16px); min-height: 46px; margin-inline: -8px; padding: 11px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--fl-ink); font-size: 15px; font-weight: 400; line-height: 1.4; text-align: left; -webkit-tap-highlight-color: transparent; user-select: none; touch-action: manipulation; transition: background-color 180ms ease; }
.first-launch-talent .first-launch-role-check { flex-shrink: 0; width: 18px; height: 18px; border-radius: 5px; }
.first-launch-talent[aria-checked="true"] .first-launch-role-check { border-color: #006eff; background: #006eff; }
.first-launch-talent[aria-checked="true"] .first-launch-role-check svg { opacity: 1; }
.first-launch-talent.is-pressed,
.first-launch:not(.has-press-feedback) .first-launch-talent:active { background: var(--fl-pressed); transition-duration: 80ms; }
.first-launch-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.first-launch-byline { flex-shrink: 0; color: var(--fl-muted); font-size: 11px; line-height: 1.5; letter-spacing: .015em; animation: firstLaunchFade 480ms 160ms ease backwards; }
.first-launch-notice {
  position: absolute;
  bottom: calc(60px + env(safe-area-inset-bottom));
  left: 50%;
  width: max-content;
  max-width: calc(100% - 48px);
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--fl-primary);
  color: var(--fl-primary-ink);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 240ms ease, transform 240ms ease;
  pointer-events: none;
}
.first-launch-notice.is-visible { opacity: 1; transform: translate(-50%, 0); }
@keyframes firstLaunchFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes firstLaunchEnter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* Scale with the existing desktop phone preview, never the surrounding window. */
@media (min-width:700px) {
  .first-launch { position: absolute; inset: 0; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #ccc transparent; }
  .first-launch-layout { min-height: 100%; padding: 27cqw 8cqw 12cqw; }
  .first-launch-brand { font-size: 11cqw; }
  .first-launch-content { padding: 14cqw 0 16cqw; }
  .first-launch-heading { margin-bottom: 8cqw; }
  .first-launch-heading h1 { font-size: 8.2cqw; }
  .first-launch-heading p { margin-top: 3cqw; font-size: 3.6cqw; }
  .first-launch-options { gap: 3cqw; }
  .first-launch-provider { grid-template-columns: 5.6cqw minmax(0,1fr) 5.6cqw; gap: 2.5cqw; min-height: 13.8cqw; padding: 3.5cqw 4.6cqw; border-radius: 3.6cqw; font-size: 3.6cqw; }
  .first-launch-provider svg { width: 5.4cqw; height: 5.4cqw; }
  .first-launch-switch { gap: 1.3cqw; margin-top: 5.6cqw; font-size: 3.3cqw; }
  .first-launch-switch button { min-height: 11.2cqw; }
  .first-launch-byline { font-size: 2.8cqw; }
  .first-launch-notice { bottom: 22cqw; font-size: 3.1cqw; }
  .first-launch-back { top: 27cqw; left: 6cqw; min-width: 11.2cqw; min-height: 11.2cqw; }
  .first-launch-back svg { width: 5.6cqw; height: 5.6cqw; }
  .first-launch-field + .first-launch-field { margin-top: 5cqw; }
  .first-launch-field label { margin-bottom: 2.3cqw; font-size: 3.3cqw; }
  .first-launch-input-wrap { min-height: 14.3cqw; border-radius: 3.6cqw; }
  .first-launch-field input { min-height: 13.8cqw; padding: 3.8cqw 4cqw; font-size: 4.1cqw; }
  .first-launch-location-field { min-height: 14.3cqw; padding: 3.8cqw 4cqw; border-radius: 3.6cqw; font-size: 4.1cqw; }
  .first-launch-location-field svg { flex-basis: 4.6cqw; width: 4.6cqw; height: 4.6cqw; }
  .first-launch-content:has(.first-launch-location:not([hidden])) { padding-top: 9cqw; }
  .first-launch-location-search { gap: 3cqw; }
  .first-launch-location-search input { min-height: 13.8cqw; font-size: 4.1cqw; }
  .first-launch-location-search > svg { flex-basis: 5cqw; width: 5cqw; height: 5cqw; }
  .first-launch-location-search button { min-width: 11.2cqw; min-height: 11.2cqw; }
  .first-launch-location-status { margin-top: 5cqw; font-size: 3.1cqw; }
  .first-launch-location-result { min-height: 17cqw; padding: 3.3cqw 2cqw; }
  .first-launch-location-result strong { font-size: 4.1cqw; }
  .first-launch-location-result small { font-size: 3.1cqw; }
  .first-launch-password-toggle { flex-basis: 12cqw; min-width: 11.2cqw; min-height: 11.2cqw; }
  .first-launch-password-toggle svg { width: 5cqw; height: 5cqw; }
  .first-launch-recovery { margin: 1cqw 0 3cqw; }
  .first-launch-recovery button { min-height: 11.2cqw; font-size: 3.3cqw; }
  .first-launch-submit { min-height: 13.8cqw; padding: 3.5cqw 4.6cqw; border-radius: 3.6cqw; font-size: 3.6cqw; }
  .first-launch-field-error { font-size: 3.1cqw; }
  .first-launch-form-status { font-size: 3.3cqw; }
  .first-launch-details .first-launch-heading { margin-bottom: 9cqw; }
  .first-launch-details .first-launch-heading h1 { font-size: 9.2cqw; }
  .first-launch-details .first-launch-submit { margin-top: 8cqw; border-radius: 3cqw; }
  .first-launch-details .first-launch-switch { margin-top: 4.6cqw; font-size: 3.1cqw; }
  .first-launch-signin .first-launch-field + .first-launch-field { margin-top: 6cqw; }
  .first-launch-signin .first-launch-recovery { margin: 1.5cqw 0 4.6cqw; }
  .first-launch-signin .first-launch-submit { margin-top: 0; }
  .first-launch-field-hint { margin-top: 3cqw; font-size: 3.1cqw; }
  .first-launch-identity { gap: 4cqw; margin-top: 2cqw; font-size: 3.6cqw; }
  .first-launch-identity > button { min-height: 11.2cqw; font-size: 3.3cqw; }
  .first-launch-preview { min-height: 11.2cqw; font-size: 3.3cqw; }
  .first-launch-content:has(.first-launch-profile:not([hidden])) { padding-block: 8cqw; }
  .first-launch-profile .first-launch-heading { margin-bottom: 7cqw; }
  .first-launch-profile .first-launch-heading h1 { font-size: 9.2cqw; }
  .first-launch-profile { --first-launch-priority-size: 15.4cqw; --first-launch-choice-gap: 2.5cqw; }
  .first-launch-role { grid-template-columns: 6cqw minmax(0,1fr) 5cqw; gap: 3.5cqw; min-height: 18cqw; padding: 4cqw; border-radius: 3.6cqw; font-size: 4.1cqw; }
  .first-launch-role-icon { width: 6cqw; height: 6cqw; }
  .first-launch-role-check { width: 5cqw; height: 5cqw; }
  .first-launch-role-check svg { width: 4cqw; height: 4cqw; }
  .first-launch-role-continue { margin-top: 7cqw; border-radius: 3cqw; }
  .first-launch-selection-hint { gap: 3cqw; margin-top: 3.5cqw; }
  .first-launch-profile .first-launch-selection-hint p { font-size: 3.3cqw; }
  .first-launch-selection-count { font-size: 3.1cqw; }
  .first-launch-role-check { border-radius: 1.5cqw; }
  .first-launch-priority { grid-template-columns: minmax(0,1fr) 5cqw; min-height: var(--first-launch-priority-size); }
  .first-launch-team-choice { border-radius: 3.6cqw; }
  .first-launch-team-label { gap: 4cqw; }
  .first-launch-team-label > svg { width: 4.6cqw; height: 4.6cqw; }
  .first-launch-team-body { margin-inline: 4cqw; padding: 2cqw 0 3cqw; }
  .first-launch-talent { gap: 3cqw; width: calc(100% + 4cqw); min-height: 11.8cqw; margin-inline: -2cqw; padding: 2.8cqw 2cqw; border-radius: 2cqw; font-size: 3.85cqw; }
  .first-launch-talent .first-launch-role-check { width: 4.6cqw; height: 4.6cqw; border-radius: 1.3cqw; }
}
@media (max-width:360px) {
  .first-launch-layout { padding-inline: 24px; }
  .first-launch-provider { padding-inline: 14px; gap: 8px; font-size: 13px; }
}
@media (max-width:699px) and (max-height:700px) {
  .first-launch-layout { padding-top: calc(32px + env(safe-area-inset-top)); padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .first-launch-content { padding-block: 32px; }
  .first-launch-heading { margin-bottom: 24px; }
  .first-launch-heading h1 { font-size: 28px; }
  .first-launch-switch { margin-top: 16px; }
  .first-launch-back { top: calc(32px + env(safe-area-inset-top)); left: 18px; }
  .first-launch-field + .first-launch-field { margin-top: 16px; }
  .first-launch-details .first-launch-heading { margin-bottom: 28px; }
  .first-launch-details .first-launch-heading h1 { font-size: 32px; }
  .first-launch-content:has(.first-launch-details:not([hidden])) { padding-block: 16px; }
  .first-launch-signin .first-launch-field + .first-launch-field { margin-top: 18px; }
  .first-launch-content:has(.first-launch-profile:not([hidden])) { padding-block: 12px; }
  .first-launch-profile .first-launch-heading { margin-bottom: 18px; }
  .first-launch-profile .first-launch-heading h1 { font-size: 28px; }
  .first-launch-profile .first-launch-heading p { margin-top: 10px; font-size: 13px; }
  .first-launch-profile { --first-launch-priority-size: 56px; --first-launch-choice-gap: 8px; }
  .first-launch-role { min-height: 56px; grid-template-columns: 22px minmax(0,1fr) 18px; gap: 12px; padding: 12px 14px; border-radius: 12px; font-size: 15px; }
  .first-launch-role-icon { width: 22px; height: 22px; }
  .first-launch-role-check { width: 18px; height: 18px; }
  .first-launch-role-continue { margin-top: 20px; min-height: 48px; padding-block: 12px; }
  .first-launch-priority { grid-template-columns: minmax(0,1fr) 18px; min-height: var(--first-launch-priority-size); }
}
@media (prefers-reduced-motion:reduce) {
  .app-onboarding-entry > .app-header, .app-onboarding-entry > .home-screen { animation: none; }
  .first-launch-brand, .first-launch-content, .first-launch-byline { animation: none; }
  .first-launch button, .first-launch-notice, .first-launch-input-wrap { transition: none; }
  .first-launch-role-check, .first-launch-role-check svg { transition: none; }
  .first-launch-team-choice, .first-launch-team-options, .first-launch-team-label > svg { transition: none; }
  .first-launch button.is-pressed,
  .first-launch:not(.has-press-feedback) button:active { transform: none; }
}

/* Use the shared phone canvas; only controls carry a glass surface. */
.first-launch {
  --fl-ink: #253037;
  --fl-muted: #626d75;
  --fl-detail: #4f5c65;
  --fl-placeholder: #657078;
  --fl-line: #bcc7ce;
  --fl-rule: #dce3e7;
  --fl-check-edge: #94a1aa;
  --fl-edge: #ffffffa6;
  --fl-solid-top: #fdfdfd;
  --fl-solid-middle: #f6f6f6;
  --fl-solid-bottom: #fafafa;
  --fl-glass-top: #ffffffad;
  --fl-glass-bottom: #ffffff85;
  --fl-glass-saturation: .15;
  --fl-surface: linear-gradient(145deg,var(--fl-solid-top),var(--fl-solid-middle) 58%,var(--fl-solid-bottom));
  --fl-sheen: #ffffffb3;
  --fl-inner-edge: #70707029;
  --fl-shadow: #0000001a;
  --fl-pressed: #e9eef1;
  --fl-busy: #f3f5f6;
  --fl-primary: #111111;
  --fl-primary-ink: #ffffff;
  --fl-primary-pressed: #252525;
  --fl-disabled: #dce3e7;
  --fl-disabled-ink: #76818a;
  --fl-accent: #006eff;
  --fl-focus: #006eff1a;
  --fl-selected: #e8f0fb;
  --fl-error: #98453f;
  --fl-error-edge: #ad5550;
  --fl-error-focus: #98453f08;
}
.phone-app.is-dark-theme .first-launch {
  --fl-ink: #f2f5f6;
  --fl-muted: #b7c0c6;
  --fl-detail: #ccd3d8;
  --fl-placeholder: #a4afb7;
  --fl-line: #59666f;
  --fl-rule: #ffffff1c;
  --fl-check-edge: #82919b;
  --fl-edge: #ffffff2b;
  --fl-solid-top: #3c3c3c;
  --fl-solid-middle: #2e2e2e;
  --fl-solid-bottom: #353535;
  --fl-glass-top: #ffffff1a;
  --fl-glass-bottom: #ffffff08;
  --fl-glass-saturation: .4;
  --fl-sheen: #ffffff30;
  --fl-inner-edge: #00000066;
  --fl-shadow: #00000040;
  --fl-pressed: #3d474f;
  --fl-busy: #343d44;
  --fl-primary: #f3f5f6;
  --fl-primary-ink: #253037;
  --fl-primary-pressed: #dce3e7;
  --fl-disabled: #343e46;
  --fl-disabled-ink: #88959e;
  --fl-accent: #86b5ff;
  --fl-focus: #86b5ff24;
  --fl-selected: #203c60;
  --fl-error: #f2aaa5;
  --fl-error-edge: #e4948d;
  --fl-error-focus: #f2aaa514;
}
/* Override the older light-only overlay in app-surface.css. The phone's
   existing ::before remains the single background in both themes. */
body .phone-app.first-launch-open .first-launch { background: transparent; }
.first-launch :where(.first-launch-provider,.first-launch-input-wrap,.first-launch-location-field,.first-launch-role,.first-launch-team-choice) {
  box-shadow: inset 1px 1px 0 var(--fl-sheen),inset -1px -1px 0 var(--fl-inner-edge),0 12px 24px -20px var(--fl-shadow);
}
.first-launch-team-choice > .first-launch-priority { box-shadow: none; }
@media (prefers-reduced-transparency: no-preference) {
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .first-launch { --fl-surface: linear-gradient(145deg,var(--fl-glass-top),var(--fl-glass-bottom)); }
    .first-launch :where(.first-launch-provider,.first-launch-input-wrap,.first-launch-location-field,.first-launch-role,.first-launch-team-choice) {
      backdrop-filter: blur(22px) saturate(var(--fl-glass-saturation));
      -webkit-backdrop-filter: blur(22px) saturate(var(--fl-glass-saturation));
    }
    .first-launch-team-choice > .first-launch-priority { backdrop-filter: none; -webkit-backdrop-filter: none; }
  }
}
@media (forced-colors: active) {
  .phone-app .first-launch, .phone-app.is-dark-theme .first-launch { --fl-ink: CanvasText; --fl-muted: CanvasText; --fl-detail: CanvasText; --fl-placeholder: GrayText; --fl-line: ButtonText; --fl-rule: ButtonText; --fl-check-edge: ButtonText; --fl-edge: ButtonText; --fl-surface: Canvas; --fl-primary: ButtonText; --fl-primary-ink: ButtonFace; --fl-accent: Highlight; --fl-selected: Canvas; }
  .first-launch :where(.first-launch-provider,.first-launch-input-wrap,.first-launch-location-field,.first-launch-role,.first-launch-team-choice) { box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Onboarding starts at the controls, without a repeated brand or empty header. */
.first-launch[data-onboarding="true"] .first-launch-layout { padding: calc(24px + env(safe-area-inset-top)) 30px calc(28px + env(safe-area-inset-bottom)); }
.first-launch[data-onboarding="true"] :is(.first-launch-brand, .first-launch-byline) { display: none; }
.first-launch[data-onboarding="true"] .first-launch-back { top: calc(24px + env(safe-area-inset-top)); left: max(24px, calc(50% - 186px)); }
.first-launch[data-onboarding="true"] .first-launch-content { margin: 0 auto; padding: 28px 0 0; }
@media (min-width: 700px) {
  .first-launch[data-onboarding="true"] .first-launch-layout { padding-top: 12cqw; padding-bottom: 6cqw; }
  .first-launch[data-onboarding="true"] .first-launch-back { top: 12cqw; }
  .first-launch[data-onboarding="true"] .first-launch-content { padding-top: 7cqw; }
}
@media (max-width: 360px) { .first-launch[data-onboarding="true"] .first-launch-layout { padding-inline: 24px; } }
