html[data-workspace="member"] {
  --flow-ink: #162f39;
  --flow-copy: #435e68;
  --flow-accent: #086b59;
  --flow-tint: #e9f7f0;
  --flow-line: #d2e2e0;
}

/* Keep language controls visible on both the account screen and the workspace. */
#languageBar {
  padding-block: 2px;
  background: #f8fbfb;
}

#languageButton {
  min-height: 44px;
  border-color: #bacfcf;
  border-radius: 12px;
  font-weight: 650;
}

#languageButton:hover, .language-option:hover {
  background: #e9f7f0;
}

#languageDialog {
  border: 1px solid #d2e2e0;
  border-radius: 22px;
}

.language-heading h2 {
  color: #162f39;
}

.language-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.language-option {
  line-height: 1.4;
}

/* Give the account actions priority over the reward information. */
html[data-workspace="member"] .auth-screen.auth-layout:not(.hidden) {
  inset-block-start: 48px;
  place-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(24px, 4vh, 54px);
  background: radial-gradient(ellipse at 10% 14%, #d9f2e7, transparent 56%), #f4f8fb;
}

.auth-layout .auth-intro {
  justify-self: stretch;
  min-width: 0;
  padding: clamp(24px, 4vw, 48px);
  border-radius: 24px;
  background: linear-gradient(155deg, #174154, #0e3839);
  box-shadow: 0 16px 36px #133e4224;
}

.auth-intro .auth-tag {
  border-color: #82bfad;
  background: #bcebd5;
  color: #153f35;
}

.auth-layout .auth-intro h2 {
  color: #fff;
  font-size: clamp(30px, 3.6vw, 49px);
  overflow-wrap: anywhere;
}

.auth-layout .auth-intro > p, .auth-layout .auth-intro li span, .auth-layout .auth-truth {
  color: #d0e7e8;
}

.auth-layout .auth-intro li b {
  color: #fff;
}

.auth-layout .auth-intro li::before {
  border-color: #72aa9d;
  background: #daf4e7;
  color: #205545;
}

.auth-layout .auth-truth {
  border-color: #67908f;
}

.auth-layout .auth-panel {
  min-width: 0;
  border-color: var(--flow-line);
  padding: clamp(22px, 3vw, 36px);
  box-shadow: 0 20px 56px #1a424a17;
}

.auth-layout .auth-panel h1 {
  color: var(--flow-ink);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.auth-layout .auth-panel > p {
  margin-block-end: 18px;
  color: var(--flow-copy);
}

.auth-layout .auth-panel .auth-brand {
  margin-block-end: 18px;
}

.auth-layout #authKicker {
  color: var(--flow-accent);
  font-weight: 750;
}

.auth-layout .auth-panel .field-label {
  margin-block-end: 12px;
}

.auth-layout #authModeToggle {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #9bbeb3;
  border-radius: 11px;
  background: var(--flow-tint);
  color: #075244;
  text-align: center;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.auth-layout #authModeToggle:hover {
  border-color: #679d90;
  background: #dff3e9;
}

.auth-layout #authModeToggle + .auth-toggle {
  min-height: 44px;
  margin-block-start: 2px;
  text-align: start;
}

.auth-layout .login-earnings {
  margin: 8px 0 0;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
}

.auth-layout .login-earnings > div {
  min-width: 0;
}

.auth-layout .login-earnings span {
  color: #3c6556;
  font-size: 12px;
}

.auth-layout .login-earnings div:last-child strong {
  white-space: normal;
  overflow-wrap: anywhere;
}

.auth-layout .auth-demo {
  margin-block-start: 12px;
}

#registrationError, #recoveryCodeStatus {
  color: #9d2636;
  font-size: .9rem;
  line-height: 1.45;
}

#registrationError:empty, #recoveryCodeStatus:empty {
  display: none;
}

#taskAvailabilityNote {
  padding: 10px 12px;
  border-radius: 9px;
  background: #fff5e5;
  color: #664712;
  font-size: .9rem;
}

/* Use the existing next-step guide as the visual focus of the workspace. */
#userView > .page-heading h1 {
  color: var(--flow-ink);
}

#userView #nextStepGuide {
  min-width: 0;
  background: linear-gradient(130deg, #142e46, #114641);
}

#userView .guide-action > .button {
  white-space: normal;
  overflow-wrap: anywhere;
}

#userView > .how-it-works {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
}

#userView .how-step {
  min-width: 0;
  padding: 11px 13px;
  justify-content: flex-start;
  border: 1px solid var(--flow-line);
  border-radius: 12px;
  background: #fff;
  overflow-wrap: anywhere;
}

#userView .how-step.is-current {
  border-color: #78b7a5;
  background: var(--flow-tint);
}

#userView .how-step small {
  color: var(--flow-copy);
  line-height: 1.45;
}

#userView .task-picker .section-kicker, #userView .task-panel .section-kicker {
  color: var(--flow-accent);
  font-weight: 750;
}

#userView #taskPicker .country-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

#userView #taskPicker .country-tab {
  overflow-wrap: anywhere;
}

#userView #taskPicker .country-tab small {
  margin-inline-start: 0;
}

#userView #taskPicker .country-tab.is-active:not(:disabled) {
  border-color: #589783;
  background: var(--flow-tint);
  box-shadow: inset 0 0 0 1px #9bc9b9;
}

#userView #taskPicker .batch-card:not(:disabled):hover {
  border-color: #589783;
  background: #eff9f5;
}

#userView #taskPicker .country-tab:disabled,
#userView #taskPicker .batch-card:disabled {
  opacity: 1;
  background: #f2f5f5;
  border-color: #d6e1e2;
  color: #4a6268;
  filter: none;
  transform: none;
}

#userView #taskPicker .country-tab:disabled small,
#userView #taskPicker .batch-card:disabled :is(strong, small, .batch-number) {
  color: #4a6268;
}

#userView .empty-task, #userView .empty-copy {
  color: var(--flow-copy);
  overflow-wrap: anywhere;
}

#userView .empty-task {
  min-height: 92px;
  padding: 18px 20px;
  background: #f8fbfc;
  text-align: center;
}

#userView .next-card-top {
  flex-wrap: wrap;
  background: var(--flow-tint);
}

#userView :is(.next-open, .completion-banner .button, .task-details summary) {
  min-height: 44px;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 740px) {
  html[data-workspace="member"] .auth-screen.auth-layout:not(.hidden) {
    inset-block-start: auto;
    align-items: stretch;
    padding: 16px 14px 28px;
  }

  .auth-layout .auth-intro {
    padding: 23px 21px;
    border-radius: 19px;
  }

  #userView .how-step {
    align-items: flex-start;
    padding: 9px 7px;
    gap: 6px;
  }

  #userView .how-step strong {
    line-height: 1.4;
  }

  #userView #taskPicker .batch-card {
    gap: 10px;
  }

  #userView #taskPicker .batch-main {
    min-width: 0;
    gap: 8px;
  }

  #userView #taskPicker .batch-earn {
    max-width: 44%;
  }

  #userView .completion-banner > div:nth-child(2) {
    min-width: 0;
  }
}

@media (max-width: 385px) {
  #userView .how-step {
    flex-direction: column;
  }

  #userView #taskPicker .batch-card {
    flex-wrap: wrap;
    min-height: 0;
  }

  #userView #taskPicker .batch-earn {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #userView .batch-card {
    transition: none;
  }

  #userView #taskPicker .batch-card:hover {
    transform: none;
  }
}

#claimRetry {
  margin-block-start: 10px;
}

.auth-layout #legacyActivationButton {
  margin-block-start: 0;
}

#nextNumberCard.is-number-waiting :is(.next-card-label, .next-phone, .next-help) {
  display: none;
}

#userView .task-state.is-number-waiting {
  white-space: normal;
}

#proofProgress + #retryProofDraft {
  margin-block-end: 8px;
}

#issuedActivationCode {
  font-family: ui-monospace, monospace;
}
