/* FFStock new-employee experience: mobile is the primary and permanent canvas. */
.ff-entry-shell,
.employee-onboarding-experience,
.ff-signup-modal {
  --ffob-forest: #075e59;
  --ffob-forest-deep: #064943;
  --ffob-mint: #e3f5f1;
  --ffob-mint-soft: #f2faf6;
  --ffob-lime: #b8dc67;
  --ffob-cream: #fffdf6;
  --ffob-ink: #18352f;
  --ffob-muted: #657872;
  --ffob-line: rgba(7, 94, 89, .14);
  --ffob-line-strong: rgba(7, 94, 89, .24);
  --ffob-shadow: 0 18px 48px rgba(7, 56, 53, .12);
  color: var(--ffob-ink);
  font-family: var(--ci-font-sans, "Noto Sans Thai", system-ui, sans-serif);
}

.ff-entry-shell,
.employee-onboarding-experience {
  width: min(100%, 460px);
  margin-inline: auto;
}

.ff-entry-shell *,
.employee-onboarding-experience *,
.ff-signup-modal * {
  box-sizing: border-box;
}

.ff-entry-shell [hidden],
.employee-onboarding-experience [hidden],
.ff-signup-modal[hidden] {
  display: none !important;
}

.ff-entry-shell .ffui-icon,
.employee-onboarding-experience .ffui-icon,
.ff-signup-modal .ffui-icon {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
}

body.page-login > .container,
body.page-login .app-shell > .container {
  box-sizing: border-box;
  width: min(100%, 492px);
  padding: 10px 12px calc(34px + env(safe-area-inset-bottom));
}

body.page-login .app-header {
  min-height: 66px;
}

.ff-entry-shell {
  display: grid;
  gap: 12px;
}

.ff-new-employee-entry {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.ff-new-employee-trigger {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100%;
  min-height: 96px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 0%, rgba(184, 220, 103, .3), transparent 36%),
    linear-gradient(145deg, var(--ffob-forest-deep), #0f7568);
  box-shadow: 0 16px 38px rgba(7, 56, 53, .19);
  color: #fff;
  cursor: pointer;
  font: inherit;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.ff-new-employee-trigger::after {
  position: absolute;
  z-index: -1;
  inset: -80% auto -80% -52%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
  content: "";
  pointer-events: none;
  transform: skewX(-18deg);
}

.ff-new-employee-trigger:focus-visible {
  outline: none;
  box-shadow: var(--ci-focus-ring, 0 0 0 3px rgba(32, 167, 154, .25)), 0 16px 38px rgba(7, 56, 53, .19);
}

.ff-new-employee-trigger__mark {
  display: grid;
  z-index: 1;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 15px;
  background: rgba(255, 255, 255, .14);
  color: #ddf39f;
}

.ff-new-employee-trigger__mark .ffui-icon {
  width: 22px;
  height: 22px;
}

.ff-new-employee-trigger__copy {
  display: grid;
  z-index: 1;
  min-width: 0;
  padding-right: 30px;
}

.ff-new-employee-trigger__copy small {
  color: #32776d;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.35;
}

.ff-new-employee-trigger__copy strong {
  margin-top: 1px;
  color: var(--ffob-ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.ff-new-employee-trigger__copy > span {
  margin-top: 2px;
  color: #56716a;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
}

.ff-new-employee-trigger__cta {
  display: inline-flex;
  z-index: 2;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  color: var(--ffob-forest);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 7px 16px rgba(1, 30, 26, .14);
}

.ff-new-employee-trigger__art {
  position: absolute;
  z-index: 0;
  right: 178px;
  bottom: -22px;
  width: 44px;
  height: 112px;
  object-fit: contain;
  opacity: .82;
  filter: drop-shadow(0 9px 12px rgba(1, 30, 26, .24));
  pointer-events: none;
  user-select: none;
}

.ff-new-employee-panel {
  display: grid;
  min-width: 0;
  gap: 10px;
  animation: ffob-panel-in 220ms cubic-bezier(.2, .7, .2, 1) both;
}

.ff-entry-shell .ff-entry-hero {
  position: relative;
  isolation: isolate;
  min-height: 274px;
  padding: 22px 142px 20px 20px;
  overflow: hidden;
  border: 1px solid var(--ffob-line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 83% 8%, rgba(184, 220, 103, .4), transparent 34%),
    linear-gradient(145deg, rgba(255, 254, 247, .98), rgba(227, 245, 235, .98));
  box-shadow: var(--ffob-shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.ff-entry-hero::before {
  position: absolute;
  z-index: -1;
  inset: auto -38px -64px auto;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .42);
  content: "";
}

.ff-entry-hero__eyebrow,
.employee-onboarding-hero__eyebrow,
.employee-profile-section__eyebrow {
  margin: 0;
  color: var(--ffob-forest);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .11em;
  line-height: 1.4;
}

.ff-entry-hero h1 {
  max-width: 250px;
  margin: 7px 0 8px;
  color: var(--ffob-ink);
  font-size: clamp(29px, 8vw, 36px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -.025em;
}

.ff-entry-hero__copy {
  max-width: 235px;
  margin: 0;
  color: var(--ffob-muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
}

.ff-entry-hero__art {
  position: absolute;
  z-index: -1;
  right: 13px;
  bottom: -54px;
  width: 122px;
  height: 286px;
  object-fit: contain;
  filter: drop-shadow(0 15px 22px rgba(7, 56, 53, .15));
  pointer-events: none;
  user-select: none;
}

.ff-entry-route {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}

.ff-entry-route li {
  min-width: 0;
  text-align: center;
}

.ff-entry-route__dot {
  display: grid;
  width: 100%;
  height: 7px;
  place-items: center;
  border-radius: 999px;
  background: rgba(7, 94, 89, .12);
  color: transparent;
}

.ff-entry-route li:first-child .ff-entry-route__dot {
  background: linear-gradient(90deg, var(--ffob-forest), var(--ffob-lime));
  box-shadow: 0 0 14px rgba(111, 170, 78, .24);
}

.ff-entry-route small {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: #4d6c63;
  font-size: 9.5px;
  font-weight: 850;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ff-entry-hero__actions {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.ff-entry-shell .ffui-button,
.employee-onboarding-experience .ffui-button,
.ff-signup-modal .ffui-button {
  min-height: 50px;
  border-radius: 16px;
  font-size: 15px;
}

.ff-entry-hero__actions .ffui-button {
  width: 100%;
}

.ff-entry-shell .ff-entry-card,
.ff-entry-shell .ff-entry-tool-card,
.ff-entry-shell .ff-new-employee-resume,
.ff-signup-modal .ff-signup-sheet,
.employee-onboarding-experience .employee-profile-card,
.employee-onboarding-experience .employee-profile-section {
  border: 1px solid var(--ffob-line);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 34px rgba(7, 56, 53, .08);
}

.ff-entry-card,
.ff-entry-tool-card,
.ff-new-employee-resume {
  padding: 18px;
  border-radius: 24px;
}

.ff-entry-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ff-entry-card__icon,
.employee-profile-section__icon,
.ff-entry-tool-card__icon,
.ff-new-employee-resume .ff-entry-tool-card__icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 15px;
  background: var(--ffob-mint);
  color: var(--ffob-forest);
}

.ff-entry-card__icon .ffui-icon,
.employee-profile-section__icon .ffui-icon,
.ff-entry-tool-card__icon .ffui-icon {
  width: 21px;
  height: 21px;
}

.ff-entry-card__head > div:first-child {
  display: flex;
  min-width: 0;
  gap: 11px;
}

.ff-entry-card h2,
.ff-entry-card h3,
.ff-entry-tool-card h3,
.ff-new-employee-resume h3 {
  margin: 0;
  color: var(--ffob-ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}

.ff-entry-card__head p,
.ff-entry-tool-card p,
.ff-new-employee-resume p {
  margin: 3px 0 0;
  color: var(--ffob-muted);
  font-size: 12px;
  line-height: 1.5;
}

.ff-entry-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 15px;
  padding: 5px;
  border: 1px solid var(--ffob-line);
  border-radius: 16px;
  background: #f3f7f5;
}

.ff-entry-tabs a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--ffob-muted);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.ff-entry-tabs a.is-active {
  background: #fff;
  color: var(--ffob-forest);
  box-shadow: 0 6px 16px rgba(7, 56, 53, .09);
}

.ff-entry-fields {
  display: grid;
  gap: 13px;
}

.ff-entry-field {
  display: grid;
  gap: 6px;
}

.ff-entry-field > label {
  color: var(--ffob-ink);
  font-size: 13px;
  font-weight: 850;
}

.ff-entry-field :where(input, select) {
  width: 100%;
  min-height: 52px;
  margin: 0;
  border: 1px solid var(--ffob-line-strong);
  border-radius: 16px;
  background: #fff;
  color: var(--ffob-ink);
  font: inherit;
  font-size: 16px;
}

.ff-entry-field :where(input, select):focus {
  border-color: #20a79a;
  outline: none;
  box-shadow: var(--ci-focus-ring, 0 0 0 3px rgba(32, 167, 154, .25));
}

.ff-phone-first-note {
  margin: -3px 0 0;
  color: var(--ffob-muted);
  font-size: 12px;
  line-height: 1.5;
}

.ff-phone-account {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid var(--ffob-line-strong);
  border-radius: 16px;
  background: var(--ffob-mint-soft);
}

.ff-phone-account > span {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  background: #fff;
  color: var(--ffob-forest);
}

.ff-phone-account > div {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.ff-phone-account small {
  color: var(--ffob-muted);
  font-size: 11px;
  font-weight: 750;
}

.ff-phone-account strong {
  overflow-wrap: anywhere;
  color: var(--ffob-ink);
  font-size: 17px;
  font-weight: 900;
}

.ff-phone-login-notice {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff4f4;
  color: #9a2d2d;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.55;
}

.ff-phone-use-other {
  justify-self: start;
  color: var(--ffob-forest);
  font-size: 12px;
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ff-entry-card form > .ffui-button,
.ff-entry-card .ff-entry-submit {
  width: 100%;
  margin-top: 15px;
}

.ff-entry-tools {
  display: grid;
  gap: 10px;
}

.ff-new-employee-resume {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}

.ff-new-employee-resume form {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.ff-new-employee-resume form input {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--ffob-line-strong);
  border-radius: 13px;
  background: #fff;
  color: var(--ffob-ink);
  font: inherit;
  font-size: 15px;
}

.ff-new-employee-resume form input:focus {
  border-color: #20a79a;
  outline: none;
  box-shadow: var(--ci-focus-ring, 0 0 0 3px rgba(32, 167, 154, .25));
}

.ff-new-employee-resume form .ffui-button {
  min-height: 44px;
  padding-inline: 14px;
}

.ff-entry-tool-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 14px;
  color: inherit;
  text-decoration: none;
}

.ff-entry-tool-card > .ffui-button {
  min-height: 42px;
  padding-inline: 12px;
}

.ff-entry-tool-card form {
  display: grid;
  grid-column: 2 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.ff-entry-tool-card form input {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--ffob-line-strong);
  border-radius: 13px;
  background: #fff;
  color: var(--ffob-ink);
  font: inherit;
  font-size: 15px;
}

.ff-entry-tool-card form .ffui-button {
  min-height: 44px;
}

.ff-signup-modal {
  position: fixed;
  z-index: 1400;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 10px;
  background: rgba(3, 35, 33, .56);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.ff-signup-modal[aria-hidden="true"] {
  display: none;
}

.ff-signup-sheet {
  position: relative;
  width: min(100%, 460px);
  max-height: calc(100dvh - 10px);
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
  overflow: auto;
  border-radius: 28px 28px 22px 22px;
  overscroll-behavior: contain;
  animation: ffob-sheet-in 220ms cubic-bezier(.2, .7, .2, 1) both;
}

.ff-signup-sheet__handle {
  width: 42px;
  height: 5px;
  margin: 0 auto 13px;
  border-radius: 999px;
  background: rgba(7, 94, 89, .18);
}

.ff-signup-sheet__head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: start;
  gap: 10px;
}

.ff-signup-sheet__mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--ffob-mint), #f7ffdb);
  color: var(--ffob-forest);
}

.ff-signup-sheet__mark .ffui-icon {
  width: 22px;
  height: 22px;
}

.ff-signup-sheet__head h3 {
  margin: 0;
  color: var(--ffob-ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
}

.ff-signup-sheet__head p {
  margin: 3px 0 0;
  color: var(--ffob-muted);
  font-size: 12px;
  line-height: 1.45;
}

.ff-signup-sheet__close {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--ffob-line);
  border-radius: 50%;
  background: #f4f8f6;
  color: var(--ffob-ink);
  cursor: pointer;
  font: inherit;
  font-size: 24px;
}

.ff-signup-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  margin: 17px 0;
  color: var(--ffob-muted);
  font-size: 11px;
  font-weight: 800;
}

.ff-signup-progress__track {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(7, 94, 89, .1);
}

.ff-signup-progress__track span {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ffob-forest), var(--ffob-lime));
  transition: width 180ms ease;
}

.ff-signup-modal[data-signup-step="2"] .ff-signup-progress__track span {
  width: 100%;
}

.ff-signup-modal[data-signup-step="2"] .ff-signup-progress__label::after {
  content: "ตรวจสอบก่อนสร้างบัญชี";
}

.ff-signup-modal[data-signup-step="1"] .ff-signup-progress__label::after {
  content: "ข้อมูลเริ่มต้น";
}

.ff-signup-callout {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin-top: 13px;
  padding: 11px 12px;
  border: 1px solid rgba(24, 117, 82, .15);
  border-radius: 15px;
  background: var(--ffob-mint-soft);
  color: #285f51;
  font-size: 12px;
  line-height: 1.5;
}

.ff-signup-callout > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 10px;
  background: #fff;
  color: var(--ffob-forest);
}

.ff-signup-error {
  margin: 11px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff0f1;
  color: #b33442;
  font-size: 13px;
  font-weight: 750;
}

.ff-signup-actions {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.ff-signup-actions .ffui-button {
  min-width: 0;
  width: 100%;
}

.ff-signup-confirm {
  display: grid;
  gap: 9px;
}

.ff-signup-confirm__row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--ffob-line);
  border-radius: 15px;
  background: #f7faf8;
  font-size: 13px;
}

.ff-signup-confirm__row span {
  color: var(--ffob-muted);
}

.ff-signup-confirm__row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

body.ff-signup-open {
  overflow: hidden;
}

/* Profile data entry: a phone-sized guided task even on larger screens. */
body.page-employee_onboarding > .container,
body.page-employee_onboarding .app-shell > .container {
  box-sizing: border-box;
  padding-inline: 10px;
}

.employee-onboarding-experience {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.employee-onboarding-experience .employee-profile-form {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
}

.employee-onboarding-experience .ff-journey {
  width: 100%;
  max-width: 100%;
  margin-bottom: 0;
}

.employee-onboarding-experience > .ff-journey.is-compact {
  gap: 8px;
  padding: 11px;
  border-radius: 20px;
}

.employee-onboarding-experience > .ff-journey.is-compact .ff-journey__mark {
  flex-basis: 34px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.employee-onboarding-experience > .ff-journey.is-compact .ff-journey__title-wrap p {
  display: none;
}

.employee-onboarding-experience > .ff-journey.is-compact .ff-journey__title-wrap h2 {
  font-size: 20px;
}

.employee-onboarding-experience > .ff-journey.is-compact .ff-journey__title-wrap > div > span {
  font-size: 10px;
}

.employee-onboarding-experience > .ff-journey.is-compact .ff-journey__percent {
  min-width: 48px;
}

.employee-onboarding-experience > .ff-journey.is-compact .ff-journey__percent strong {
  font-size: 19px;
}

.employee-onboarding-experience > .ff-journey.is-compact .ff-journey__meter {
  height: 7px;
}

.employee-onboarding-experience > .ff-journey.is-compact .ff-journey__steps {
  gap: 3px;
}

.employee-onboarding-experience > .ff-journey.is-compact .ff-journey-step {
  min-height: 68px;
  grid-template-rows: 30px auto;
  gap: 4px;
  padding: 5px 2px;
  border-radius: 12px;
}

.employee-onboarding-experience > .ff-journey.is-compact .ff-journey-step__icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.employee-onboarding-experience > .ff-journey.is-compact .ff-journey-step__body b {
  font-size: 9px;
}

.employee-onboarding-experience > .ff-journey.is-compact .ff-journey__footer {
  display: none;
}

.employee-onboarding-experience > .ff-journey.is-compact .ff-journey__credential,
.employee-onboarding-experience > .ff-journey.is-compact .ff-journey__profile-note {
  gap: 7px;
  padding: 7px 8px;
  border-radius: 12px;
  font-size: 10px;
  line-height: 1.35;
}

.employee-onboarding-experience .employee-onboarding-hero {
  --ff-surface-dark-border: rgba(255, 255, 255, .17);
  --ff-surface-dark-background:
    radial-gradient(circle at 86% 8%, rgba(184, 220, 103, .25), transparent 32%),
    linear-gradient(145deg, var(--ffob-forest-deep), #0f7568);
  --ff-surface-dark-shadow: 0 18px 42px rgba(7, 56, 53, .22);
  position: relative;
  isolation: isolate;
  min-height: 230px;
  padding: 19px 128px 19px 19px;
  overflow: hidden;
  border: 1px solid var(--ff-surface-dark-border);
  border-radius: 28px;
  background: var(--ff-surface-dark-background);
  color: #fff;
  box-shadow: var(--ff-surface-dark-shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.employee-onboarding-hero::after {
  position: absolute;
  z-index: -1;
  right: -44px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  content: "";
}

.employee-onboarding-hero__eyebrow {
  color: #c9eee1;
}

.employee-onboarding-hero h1 {
  margin: 5px 0 6px;
  color: #fff;
  font-size: clamp(27px, 8vw, 34px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.employee-onboarding-hero__copy {
  margin: 0;
  color: rgba(240, 255, 249, .82);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}

.employee-onboarding-hero__art {
  position: absolute;
  z-index: -1;
  right: 7px;
  bottom: -82px;
  width: 116px;
  height: 292px;
  object-fit: contain;
  filter: drop-shadow(0 16px 20px rgba(1, 30, 26, .22));
  pointer-events: none;
  user-select: none;
}

.employee-onboarding-hero__meter {
  display: grid;
  gap: 7px;
  margin-top: 15px;
}

.employee-onboarding-hero__meter-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(240, 255, 249, .8);
  font-size: 11px;
  font-weight: 800;
}

.employee-onboarding-hero__meter-meta strong {
  color: #fff;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.employee-onboarding-hero__track {
  height: 10px;
  padding: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 37, 33, .34);
}

.employee-onboarding-hero__bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #39d1ad, var(--ffob-lime));
  box-shadow: 0 0 15px rgba(184, 220, 103, .42);
  transition: width 240ms ease;
}

.employee-onboarding-hero__milestone {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  color: #e9fff5;
  font-size: 10px;
  font-weight: 800;
}

.employee-onboarding-hero__milestone .ffui-icon {
  color: #d4f28d;
}

.employee-onboarding-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.employee-onboarding-meta .employee-profile-pill {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  backdrop-filter: blur(9px);
}

.employee-onboarding-meta .employee-profile-status.is-draft,
.employee-onboarding-meta .employee-profile-status.is-pending,
.employee-onboarding-meta .employee-profile-status.is-approved,
.employee-onboarding-meta .employee-profile-status.is-needs-update {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.employee-onboarding-meta .ffui-button {
  min-height: 32px;
  padding: 5px 10px;
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 10px;
  box-shadow: none;
}

.employee-onboarding-experience .employee-profile-card,
.employee-onboarding-experience .employee-profile-section {
  padding: 17px;
  border-radius: 23px;
}

.employee-onboarding-lock-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
}

.employee-onboarding-lock-card__icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  background: #fff5d8;
  color: #916400;
}

.employee-onboarding-lock-card h2 {
  margin: 0 0 3px;
  font-size: 18px;
}

.employee-onboarding-lock-card .employee-profile-note {
  color: #725619;
  font-size: 12px;
  line-height: 1.5;
}

.employee-onboarding-account {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--ffob-line);
  border-radius: 19px;
  background: rgba(255, 255, 255, .76);
}

.employee-onboarding-account__item {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.employee-onboarding-account__item span {
  color: var(--ffob-muted);
  font-size: 10px;
  font-weight: 750;
}

.employee-onboarding-account__item strong {
  overflow: hidden;
  color: var(--ffob-ink);
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-onboarding-experience .employee-profile-form {
  gap: 12px;
}

.employee-profile-stepper-shell {
  position: sticky;
  z-index: 18;
  top: calc(8px + env(safe-area-inset-top));
  padding: 8px;
  border: 1px solid rgba(7, 94, 89, .11);
  border-radius: 22px;
  background: rgba(249, 252, 250, .92);
  box-shadow: 0 10px 28px rgba(7, 56, 53, .1);
  backdrop-filter: blur(16px) saturate(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
}

.employee-profile-stepper__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 5px 7px;
  color: var(--ffob-muted);
  font-size: 10px;
  font-weight: 800;
}

.employee-profile-stepper__meta strong {
  color: var(--ffob-forest);
  font-size: 11px;
}

.employee-onboarding-experience .employee-profile-stepper {
  display: flex;
  gap: 5px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  scroll-padding-inline: 4px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.employee-onboarding-experience .employee-profile-stepper::-webkit-scrollbar {
  display: none;
}

.employee-onboarding-experience .employee-profile-stepper__item {
  display: grid;
  flex: 0 0 54px;
  min-width: 54px;
  min-height: 54px;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 2px;
  padding: 5px 4px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: #74847f;
  scroll-snap-align: center;
}

.employee-onboarding-experience .employee-profile-stepper__item.is-active {
  flex-basis: 92px;
  border-color: rgba(7, 94, 89, .11);
  background: var(--ffob-mint);
  color: var(--ffob-forest);
  box-shadow: none;
}

.employee-onboarding-experience .employee-profile-stepper__number {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: #edf2ef;
  font-size: 11px;
}

.employee-onboarding-experience .employee-profile-stepper__item.is-active .employee-profile-stepper__number,
.employee-onboarding-experience .employee-profile-stepper__item.is-complete .employee-profile-stepper__number {
  background: var(--ffob-forest);
  color: #fff;
}

.employee-onboarding-experience .employee-profile-stepper__item.is-complete:not(.is-active) .employee-profile-stepper__number {
  background: #d7f2e3;
  color: #147253;
}

.employee-onboarding-experience .employee-profile-stepper__label {
  max-width: 100%;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-onboarding-experience .employee-profile-section {
  min-width: 0;
  overflow: hidden;
}

.employee-profile-section__head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  margin-bottom: 16px;
}

.employee-profile-section__head h2 {
  margin: 1px 0 3px;
  color: var(--ffob-ink);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.25;
}

.employee-profile-section__head .employee-profile-step__hint {
  margin: 0;
  color: var(--ffob-muted);
  font-size: 12px;
  line-height: 1.5;
}

.employee-onboarding-experience .employee-profile-form-grid {
  grid-template-columns: 1fr;
  gap: 14px;
}

.employee-onboarding-experience .employee-profile-field.is-span-2 {
  grid-column: auto;
}

.employee-onboarding-experience .employee-profile-field {
  gap: 6px;
}

.employee-onboarding-experience .employee-profile-field label,
.employee-onboarding-experience .employee-profile-doc-card__head strong {
  color: var(--ffob-ink);
  font-size: 13px;
  font-weight: 850;
}

.employee-onboarding-experience .employee-profile-field :where(input, select, textarea),
.employee-onboarding-experience .employee-profile-date-trigger,
.employee-onboarding-experience .employee-profile-field .readonly-value {
  min-height: 52px;
  border-color: var(--ffob-line-strong);
  border-radius: 16px;
  color: var(--ffob-ink);
  font-size: 16px;
}

.employee-onboarding-experience .employee-profile-field textarea {
  min-height: 112px;
  line-height: 1.55;
}

.employee-onboarding-experience .employee-profile-field :where(input, select, textarea):focus,
.employee-onboarding-experience .employee-profile-date-trigger:focus-visible {
  border-color: #20a79a;
  outline: none;
  box-shadow: var(--ci-focus-ring, 0 0 0 3px rgba(32, 167, 154, .25));
}

.employee-profile-field__support {
  color: var(--ffob-muted);
  font-size: 10px;
  line-height: 1.4;
}

.employee-profile-field__support:empty {
  display: none;
}

.employee-onboarding-experience .employee-profile-doc-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.employee-onboarding-experience .employee-profile-doc-card {
  position: relative;
  gap: 10px;
  padding: 14px;
  border-color: var(--ffob-line);
  border-radius: 19px;
  background: #fbfdfb;
}

.employee-profile-doc-card__title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.employee-profile-doc-card__title > span {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 11px;
  background: var(--ffob-mint);
  color: var(--ffob-forest);
}

.employee-onboarding-experience .employee-profile-badge {
  padding: 4px 8px;
  font-size: 10px;
}

.employee-onboarding-experience .employee-profile-doc-card__meta {
  color: var(--ffob-muted);
  font-size: 11px;
}

.employee-onboarding-experience input[type="file"] {
  width: 100%;
  min-height: 50px;
  padding: 6px;
  border: 1px dashed var(--ffob-line-strong);
  border-radius: 15px;
  background: #fff;
  color: var(--ffob-muted);
  font-size: 11px;
}

.employee-onboarding-experience input[type="file"]::file-selector-button {
  min-height: 36px;
  margin-right: 8px;
  padding: 7px 11px;
  border: 0;
  border-radius: 11px;
  background: var(--ffob-mint);
  color: var(--ffob-forest);
  font: inherit;
  font-weight: 850;
}

.employee-onboarding-experience .employee-profile-review-card {
  padding: 13px;
  border-color: var(--ffob-line);
  border-radius: 17px;
  background: #fbfdfb;
}

.employee-onboarding-experience .employee-profile-review-card header,
.employee-onboarding-experience .employee-profile-review-card > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.employee-onboarding-experience .employee-profile-review-card > div strong {
  max-width: 190px;
  text-align: right;
}

.employee-onboarding-experience .employee-profile-confirm {
  min-height: 52px;
  align-items: center;
  margin-top: 14px;
  padding: 13px;
  border-color: var(--ffob-line);
  border-radius: 16px;
  font-size: 13px;
}

.employee-onboarding-experience .employee-profile-confirm input {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  accent-color: var(--ffob-forest);
}

.employee-onboarding-experience .employee-profile-form-actions--sticky {
  position: sticky;
  z-index: 70;
  top: calc(100dvh - 94px - env(safe-area-inset-bottom));
  right: auto;
  bottom: auto;
  left: auto;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(7, 94, 89, .14);
  border-radius: 22px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 46px rgba(7, 56, 53, .22);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
}

.employee-onboarding-experience .employee-profile-form-actions--sticky button {
  min-width: 0;
  width: 52px;
  height: 52px;
  min-height: 52px;
  margin: 0;
  padding: 0;
  border-radius: 17px;
}

.employee-onboarding-experience .employee-profile-form-actions--sticky button .ffui-icon {
  width: 24px;
  height: 24px;
}

.employee-onboarding-experience .employee-profile-save-state {
  grid-column: 1 / -1;
  grid-row: 1;
}

.employee-onboarding-experience #employee-profile-prev {
  grid-column: 1;
  grid-row: 2;
}

.employee-onboarding-experience button[name="profile_action"][value="save_draft"] {
  grid-column: 1;
}

.employee-onboarding-experience #employee-profile-next,
.employee-onboarding-experience #employee-profile-submit {
  grid-column: 3;
  grid-row: 2;
}

.employee-onboarding-experience #employee-profile-prev:not([hidden]) + button[name="profile_action"][value="save_draft"] {
  display: none;
}

.employee-onboarding-experience .employee-profile-date-picker {
  width: calc(100vw - 12px);
  max-width: 440px;
  max-height: calc(100dvh - 12px);
  border-radius: 25px;
}

@keyframes ffob-sheet-in {
  from { opacity: 0; transform: translateY(24px) scale(.985); }
  to { opacity: 1; transform: none; }
}

@keyframes ffob-panel-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@keyframes ffob-entry-shimmer {
  from { transform: translateX(0) skewX(-18deg); }
  to { transform: translateX(520%) skewX(-18deg); }
}

@keyframes ffob-art-float {
  50% { transform: translateY(-7px) rotate(1deg); }
}

@media (min-width: 700px) {
  body.page-login > .container,
  body.page-login .app-shell > .container,
  body.page-employee_onboarding > .container,
  body.page-employee_onboarding .app-shell > .container {
    padding-top: 20px;
    padding-bottom: 42px;
  }

  .ff-signup-modal {
    align-items: center;
    padding: 24px;
  }

  .ff-signup-sheet {
    max-height: min(760px, calc(100dvh - 48px));
    border-radius: 28px;
  }

  .employee-onboarding-experience .employee-profile-form-actions--sticky { top: calc(100dvh - 98px); }
}

@media (max-width: 540px) {
  .ff-new-employee-trigger__art {
    display: none;
  }
}

@media (max-width: 359px) {
  .ff-new-employee-trigger {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 9px;
    padding-inline: 12px;
  }

  .ff-new-employee-trigger__mark {
    width: 40px;
    height: 40px;
  }

  .ff-new-employee-trigger__copy {
    padding-right: 18px;
  }

  .ff-new-employee-trigger__cta {
    grid-column: 2;
    justify-self: start;
    margin-top: -2px;
  }

  .ff-new-employee-trigger__copy > span {
    font-size: 10px;
  }

  .ff-new-employee-trigger__art {
    right: 12px;
    width: 38px;
    opacity: .24;
  }

  .ff-entry-hero {
    min-height: 270px;
    padding-right: 118px;
  }

  .ff-entry-hero__art {
    right: 2px;
    width: 106px;
  }

  .employee-onboarding-hero {
    padding-right: 108px;
  }

  .employee-onboarding-hero__art {
    right: 1px;
    width: 102px;
  }

  .ff-signup-actions {
    grid-template-columns: 92px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .ff-new-employee-trigger::after {
    animation: ffob-entry-shimmer 1.15s ease .45s both;
  }

  .ff-entry-hero__art,
  .employee-onboarding-hero__art {
    animation: ffob-art-float 5.2s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ff-entry-shell *,
  .employee-onboarding-experience * {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.employee-onboarding-experience .employee-profile-save-state {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 0 4px;
}

.employee-onboarding-experience #employee-profile-prev[hidden] ~ #employee-profile-next {
  grid-column: 1 / -1;
}

.employee-onboarding-experience.is-profile-complete .employee-onboarding-hero {
  min-height: 330px;
  padding-right: 24px;
}

.employee-onboarding-experience.is-profile-complete .employee-onboarding-hero__art {
  display: none;
}

.employee-onboarding-experience.is-profile-complete .employee-onboarding-hero__copy {
  max-width: none;
}

.employee-onboarding-experience.is-profile-complete .employee-onboarding-hero__meter,
.employee-onboarding-experience.is-profile-complete .employee-onboarding-hero__milestone {
  max-width: none;
}

.employee-onboarding-experience .employee-profile-doc-card[data-preview-shape="square"] .employee-profile-document-preview {
  aspect-ratio: 1 / 1;
  max-height: 260px;
}

.employee-onboarding-experience .employee-profile-doc-card[data-preview-shape="portrait"] .employee-profile-document-preview {
  aspect-ratio: 3 / 4;
  max-height: 300px;
}

.employee-onboarding-experience .employee-profile-doc-card[data-preview-shape="landscape"] .employee-profile-document-preview {
  aspect-ratio: 4 / 3;
  max-height: 240px;
}
