:root {
  --ft-navy-950: #07182b;
  --ft-navy-900: #0b223d;
  --ft-navy-800: #123657;
  --ft-blue-600: #1677d2;
  --ft-blue-500: #2b8ce6;
  --ft-teal-600: #0c8f82;
  --ft-teal-500: #14a394;
  --ft-green-600: #168052;
  --ft-red-600: #c33b4a;
  --ft-amber-500: #d68a08;
  --ft-surface: #ffffff;
  --ft-surface-soft: #f5f8fb;
  --ft-surface-tint: #edf6f5;
  --ft-border: #dbe5ee;
  --ft-text: #13253a;
  --ft-muted: #607286;
  --ft-shadow-sm: 0 8px 24px rgba(12, 38, 63, 0.08);
  --ft-shadow-md: 0 20px 55px rgba(12, 38, 63, 0.13);
  --ft-radius-sm: 12px;
  --ft-radius-md: 18px;
  --ft-radius-lg: 26px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body.ft-app {
  min-height: 100vh;
  margin: 0;
  color: var(--ft-text);
  background:
    radial-gradient(circle at 8% -5%, rgba(43, 140, 230, 0.11), transparent 27rem),
    radial-gradient(circle at 96% 8%, rgba(20, 163, 148, 0.09), transparent 25rem),
    #f4f7fa;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.ft-menu-open {
  overflow: hidden;
}

a {
  color: var(--ft-blue-600);
}

button,
input,
select,
textarea {
  font: inherit;
}

.ft-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.ft-skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 1001;
  transform: translateY(-180%);
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--ft-blue-600);
  font-weight: 800;
  text-decoration: none;
  transition: transform 150ms ease;
}

.ft-skip-link:focus {
  transform: translateY(0);
}

.ft-app-header {
  position: sticky;
  top: 0;
  z-index: 900;
  color: #fff;
  background: rgba(7, 24, 43, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 28px rgba(7, 24, 43, 0.18);
  backdrop-filter: blur(18px);
}

.ft-header-inner {
  width: min(1440px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.ft-brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.ft-brand-mark {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, var(--ft-blue-500), var(--ft-teal-500));
  box-shadow: 0 8px 20px rgba(20, 163, 148, 0.2);
  font-size: 0.98rem;
}

.ft-brand-copy {
  display: grid;
  line-height: 1.05;
}

.ft-brand-copy small {
  margin-top: 4px;
  color: #9db2c7;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ft-desktop-nav {
  min-width: 0;
  margin-left: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.ft-nav-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #c8d6e3;
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.ft-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.ft-nav-link[aria-current="page"] {
  color: #fff;
  background: rgba(43, 140, 230, 0.18);
  border-color: rgba(94, 174, 247, 0.25);
}

.ft-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ft-account-chip {
  min-height: 40px;
  max-width: 190px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.ft-account-avatar {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #062b28;
  background: #8be0d7;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ft-account-copy {
  min-width: 0;
  display: grid;
  line-height: 1.08;
}

.ft-account-copy strong {
  overflow: hidden;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ft-account-copy small {
  margin-top: 3px;
  color: #a9bbcb;
  font-size: 0.67rem;
}

.ft-icon-button,
.ft-menu-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  color: #dce7f0;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.ft-icon-button:hover,
.ft-menu-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.ft-menu-button {
  display: none;
}

.ft-menu-lines,
.ft-menu-lines::before,
.ft-menu-lines::after {
  width: 18px;
  height: 2px;
  display: block;
  border-radius: 99px;
  background: currentColor;
  content: "";
  transition: transform 150ms ease, opacity 150ms ease;
}

.ft-menu-lines {
  position: relative;
}

.ft-menu-lines::before {
  position: absolute;
  top: -6px;
}

.ft-menu-lines::after {
  position: absolute;
  top: 6px;
}

.ft-menu-button[aria-expanded="true"] .ft-menu-lines {
  background: transparent;
}

.ft-menu-button[aria-expanded="true"] .ft-menu-lines::before {
  top: 0;
  transform: rotate(45deg);
}

.ft-menu-button[aria-expanded="true"] .ft-menu-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

.ft-mobile-menu {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  width: 100%;
  max-height: calc(100dvh - 69px);
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--ft-text);
  background: rgba(246, 249, 252, 0.98);
  border-bottom: 1px solid var(--ft-border);
  box-shadow: var(--ft-shadow-md);
  backdrop-filter: blur(20px);
}

.ft-mobile-menu[hidden] {
  display: none;
}

.ft-mobile-menu-inner {
  width: min(720px, calc(100% - 24px));
  margin: 0 auto;
  padding: 14px 0 max(16px, env(safe-area-inset-bottom));
}

.ft-mobile-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ft-mobile-nav-link {
  min-height: 66px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid var(--ft-border);
  border-radius: 13px;
  color: var(--ft-text);
  background: #fff;
  box-shadow: 0 3px 10px rgba(12, 38, 63, 0.04);
  font-size: 0.78rem;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.ft-mobile-nav-link small {
  color: var(--ft-muted);
  font-size: 0.64rem;
  font-weight: 650;
}

.ft-mobile-nav-link[aria-current="page"] {
  color: #0b579a;
  background: #eaf4fd;
  border-color: #a9d2f5;
}

.ft-mobile-account {
  min-height: 48px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 8px 13px;
  border: 1px solid var(--ft-border);
  border-radius: 13px;
  background: #fff;
}

.ft-mobile-account-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  font-size: 0.78rem;
}

.ft-mobile-account-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ft-mobile-account-copy span {
  color: var(--ft-muted);
  font-size: 0.7rem;
}

.ft-mobile-logout {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #f1c3c9;
  border-radius: 10px;
  color: #a62938;
  background: #fff4f5;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 850;
}

.ft-shell-scrim {
  position: fixed;
  inset: 68px 0 0;
  z-index: 899;
  background: rgba(4, 17, 31, 0.42);
  backdrop-filter: blur(2px);
}

.ft-shell-scrim[hidden] {
  display: none;
}

body.ft-page-transitioning {
  overflow: hidden;
  cursor: progress;
}

.ft-page-transition {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 24, 43, 0.7);
  backdrop-filter: blur(11px);
  animation: ft-page-transition-in 180ms ease-out;
}

.ft-page-transition[hidden] {
  display: none;
}

.ft-page-transition-card {
  width: min(330px, 100%);
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 27px 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(145deg, rgba(11, 34, 61, 0.98), rgba(13, 74, 83, 0.98));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.ft-page-transition-mark {
  position: relative;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 7px;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(145deg, var(--ft-blue-500), var(--ft-teal-500));
  box-shadow: 0 12px 28px rgba(20, 163, 148, 0.28);
  font-weight: 950;
  letter-spacing: -0.03em;
}

.ft-page-transition-mark i {
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(139, 224, 215, 0.34);
  border-top-color: #8be0d7;
  border-radius: 21px;
  animation: ft-page-transition-spin 950ms linear infinite;
}

.ft-page-transition-card strong {
  font-size: 1.04rem;
  letter-spacing: -0.015em;
}

.ft-page-transition-card small {
  color: #b8cddd;
  font-size: 0.78rem;
  line-height: 1.4;
}

@keyframes ft-page-transition-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes ft-page-transition-spin {
  to {
    transform: rotate(1turn);
  }
}

.ft-page {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.ft-page-narrow {
  width: min(980px, calc(100% - 32px));
}

.ft-page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid #d9e5ef;
  border-radius: var(--ft-radius-lg);
  color: #fff;
  background:
    linear-gradient(115deg, rgba(8, 32, 56, 0.98), rgba(17, 69, 104, 0.95)),
    var(--ft-navy-900);
  box-shadow: var(--ft-shadow-md);
}

.ft-page-hero::after {
  position: absolute;
  right: -100px;
  bottom: -170px;
  width: 410px;
  height: 410px;
  border: 75px solid rgba(96, 211, 199, 0.1);
  border-radius: 50%;
  content: "";
}

.ft-page-hero > * {
  position: relative;
  z-index: 1;
}

.ft-eyebrow {
  margin: 0 0 10px;
  color: #8be0d7;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.ft-page-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.55rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.ft-page-hero p:not(.ft-eyebrow) {
  max-width: 760px;
  margin: 14px 0 0;
  color: #c8d8e6;
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  line-height: 1.6;
}

.ft-hero-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ft-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.ft-span-4 {
  grid-column: span 4;
}

.ft-span-5 {
  grid-column: span 5;
}

.ft-span-6 {
  grid-column: span 6;
}

.ft-span-7 {
  grid-column: span 7;
}

.ft-span-8 {
  grid-column: span 8;
}

.ft-span-12 {
  grid-column: span 12;
}

.ft-card {
  min-width: 0;
  padding: clamp(18px, 2.5vw, 26px);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-md);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--ft-shadow-sm);
}

.ft-card-header {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.ft-card-header h2,
.ft-card-header h3 {
  margin: 0;
  color: var(--ft-text);
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}

.ft-card-header p {
  margin: 6px 0 0;
  color: var(--ft-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.ft-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ft-field {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
}

.ft-field-full {
  grid-column: 1 / -1;
}

.ft-field label,
.ft-field-label {
  color: #3d5268;
  font-size: 0.82rem;
  font-weight: 850;
}

.ft-field input,
.ft-field select,
.ft-field textarea {
  width: 100%;
  min-height: 47px;
  padding: 11px 13px;
  border: 1px solid #cbd9e5;
  border-radius: var(--ft-radius-sm);
  color: var(--ft-text);
  background: #fff;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.ft-field textarea {
  min-height: 128px;
  resize: vertical;
  line-height: 1.5;
}

.ft-field input:focus,
.ft-field select:focus,
.ft-field textarea:focus {
  border-color: var(--ft-blue-500);
  box-shadow: 0 0 0 4px rgba(43, 140, 230, 0.13);
}

.ft-field input:disabled,
.ft-field select:disabled,
.ft-field textarea:disabled {
  color: #738499;
  background: #eef2f5;
  cursor: not-allowed;
}

.ft-help {
  margin: 0;
  color: var(--ft-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.ft-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #3c5167;
  font-size: 0.85rem;
  line-height: 1.45;
  cursor: pointer;
}

.ft-check input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 1px 0 0;
  accent-color: var(--ft-blue-600);
}

.ft-button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ft-button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #fff;
  background: var(--ft-blue-600);
  box-shadow: 0 7px 16px rgba(22, 119, 210, 0.16);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.ft-button:hover {
  transform: translateY(-1px);
  background: #0c68ba;
  box-shadow: 0 9px 20px rgba(22, 119, 210, 0.22);
}

.ft-button:disabled {
  transform: none;
  color: #8290a0;
  background: #e2e8ee;
  box-shadow: none;
  cursor: not-allowed;
}

.ft-button-secondary {
  color: var(--ft-text);
  background: #fff;
  border-color: #cbd9e5;
  box-shadow: none;
}

.ft-button-secondary:hover {
  color: #0c5da4;
  background: #f5f9fc;
  border-color: #a9c9e4;
  box-shadow: none;
}

.ft-button-danger {
  color: #a42a38;
  background: #fff5f6;
  border-color: #efc5ca;
  box-shadow: none;
}

.ft-button-danger:hover {
  color: #8c1f2d;
  background: #ffecef;
  box-shadow: none;
}

.ft-button-compact {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 0.78rem;
}

.ft-status {
  min-height: 21px;
  margin: 12px 0 0;
  color: var(--ft-muted);
  font-size: 0.83rem;
  font-weight: 750;
  line-height: 1.45;
}

.ft-status[data-kind="success"] {
  color: var(--ft-green-600);
}

.ft-status[data-kind="error"] {
  color: var(--ft-red-600);
}

.ft-status[data-kind="warning"] {
  color: #9a650b;
}

.ft-badge {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid #c8dceb;
  border-radius: 999px;
  color: #31566f;
  background: #f1f7fb;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ft-badge-good {
  color: #116a46;
  background: #e9f7f0;
  border-color: #bce3cf;
}

.ft-badge-warn {
  color: #8a5b0b;
  background: #fff7e7;
  border-color: #efd9a8;
}

.ft-badge-bad {
  color: #a42a38;
  background: #fff1f3;
  border-color: #efc5ca;
}

.ft-list {
  display: grid;
  gap: 11px;
}

.ft-empty {
  padding: 30px 18px;
  border: 1px dashed #c8d7e4;
  border-radius: 14px;
  color: var(--ft-muted);
  background: #f9fbfc;
  text-align: center;
  line-height: 1.55;
}

.ft-inline-note {
  padding: 12px 14px;
  border: 1px solid #cfe3f4;
  border-radius: 13px;
  color: #31566f;
  background: #f0f7fd;
  font-size: 0.82rem;
  line-height: 1.5;
}

.ft-divider {
  height: 1px;
  margin: 18px 0;
  border: 0;
  background: var(--ft-border);
}

.ft-footer {
  margin-top: 32px;
  padding: 21px 0;
  border-top: 1px solid var(--ft-border);
  color: var(--ft-muted);
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
}

:focus-visible {
  outline: 3px solid rgba(43, 140, 230, 0.38);
  outline-offset: 2px;
}

@media (max-width: 1180px) {
  .ft-desktop-nav,
  .ft-header-actions .ft-icon-button {
    display: none;
  }

  .ft-menu-button {
    display: inline-grid;
  }

  .ft-span-4,
  .ft-span-5,
  .ft-span-7,
  .ft-span-8 {
    grid-column: span 6;
  }
}

@media (max-width: 700px) {
  .ft-header-inner {
    width: min(100% - 20px, 1440px);
    min-height: 62px;
    gap: 10px;
  }

  .ft-brand-copy small,
  .ft-header-actions .ft-account-chip {
    display: none;
  }

  .ft-brand-mark {
    width: 32px;
    height: 32px;
  }

  .ft-shell-scrim {
    inset: 62px 0 0;
  }

  .ft-mobile-nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ft-page,
  .ft-page-narrow {
    width: min(100% - 20px, 1240px);
    padding: 20px 0 42px;
  }

  .ft-page-hero {
    margin-bottom: 14px;
    padding: 24px 20px;
    border-radius: 20px;
  }

  .ft-grid {
    gap: 14px;
  }

  .ft-span-4,
  .ft-span-5,
  .ft-span-6,
  .ft-span-7,
  .ft-span-8,
  .ft-span-12 {
    grid-column: 1 / -1;
  }

  .ft-card {
    padding: 17px;
    border-radius: 16px;
  }

  .ft-card-header {
    align-items: stretch;
    flex-direction: column;
  }

  .ft-form-grid {
    grid-template-columns: 1fr;
  }

  .ft-field-full {
    grid-column: auto;
  }

  .ft-button-row {
    align-items: stretch;
  }

  .ft-button-row > .ft-button {
    flex: 1 1 auto;
  }
}

body.ft-motivation-open {
  overflow: hidden;
}

.ft-motivation-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding:
    max(18px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(18px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));
  background: rgba(4, 17, 30, 0.76);
  backdrop-filter: blur(9px);
  animation: ft-motivation-backdrop-in 180ms ease-out;
}

.ft-motivation-backdrop[hidden] {
  display: none;
}

.ft-motivation-dialog {
  --ft-pop-accent: #ff5c5c;
  --ft-pop-accent-2: #ffe14d;
  --ft-pop-wash: #fff8df;
  --drag-x: 0px;
  --drag-y: 0px;
  --drag-turn: 0deg;
  --drag-opacity: 1;
  position: relative;
  width: min(550px, 100%);
  max-height: calc(100dvh - 36px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  color: #13253a;
  background: #fffdfa;
  border: 2px solid #071a2d;
  border-radius: 20px;
  box-shadow:
    9px 9px 0 var(--ft-pop-accent),
    0 28px 75px rgba(0, 0, 0, 0.34);
  opacity: var(--drag-opacity);
  transform:
    translate3d(var(--drag-x), var(--drag-y), 0)
    rotate(var(--drag-turn));
  will-change: transform, opacity;
  animation: ft-motivation-pop-in 280ms cubic-bezier(0.2, 0.88, 0.25, 1.18);
}

.ft-motivation-dialog[data-theme="blue"] {
  --ft-pop-accent: #42a5ff;
  --ft-pop-accent-2: #c9ff4a;
  --ft-pop-wash: #edf8ff;
}

.ft-motivation-dialog[data-theme="lime"] {
  --ft-pop-accent: #83dc3f;
  --ft-pop-accent-2: #7c5cff;
  --ft-pop-wash: #f3ffe9;
}

.ft-motivation-dialog[data-theme="violet"] {
  --ft-pop-accent: #8a63ff;
  --ft-pop-accent-2: #ffbd3f;
  --ft-pop-wash: #f5f0ff;
}

.ft-motivation-dialog[data-theme="gold"] {
  --ft-pop-accent: #ffb72f;
  --ft-pop-accent-2: #45c8ff;
  --ft-pop-wash: #fff8e8;
}

.ft-motivation-dialog.is-dragging {
  cursor: grabbing;
  animation: none;
  transition: none;
}

.ft-motivation-dialog.is-returning {
  animation: none;
  transition:
    transform 180ms cubic-bezier(0.2, 0.8, 0.3, 1),
    opacity 160ms ease-out;
}

.ft-motivation-dialog.is-dismissing {
  opacity: 0 !important;
  transform:
    translate3d(var(--dismiss-x), var(--dismiss-y), 0)
    rotate(var(--dismiss-turn)) !important;
  animation: none;
  transition:
    transform 220ms cubic-bezier(0.55, 0.06, 0.68, 0.19),
    opacity 180ms ease-out;
}

.ft-motivation-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 25px 27px 23px;
  color: #071a2d;
  background: var(--ft-pop-wash);
  border-bottom: 2px solid #071a2d;
  touch-action: none;
}

.ft-motivation-hero::before,
.ft-motivation-hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  border: 2px solid #071a2d;
  border-radius: 50%;
}

.ft-motivation-hero::before {
  width: 120px;
  height: 120px;
  top: -51px;
  right: -34px;
  background: var(--ft-pop-accent);
}

.ft-motivation-hero::after {
  width: 54px;
  height: 54px;
  right: 70px;
  bottom: -30px;
  background: var(--ft-pop-accent-2);
}

.ft-motivation-sticker {
  width: max-content;
  max-width: 78%;
  padding: 7px 11px;
  color: #071a2d;
  background: var(--ft-pop-accent-2);
  border: 2px solid #071a2d;
  border-radius: 999px;
  box-shadow: 3px 3px 0 #071a2d;
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1;
  transform: rotate(-2deg);
}

.ft-motivation-kicker {
  margin-top: 16px;
  color: #4d6173;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.ft-motivation-hero h2 {
  max-width: 440px;
  margin: 6px 0 8px;
  color: #071a2d;
  font-size: clamp(1.55rem, 5vw, 2rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.ft-motivation-hero p {
  position: relative;
  max-width: 455px;
  margin: 0;
  color: #33485d;
  font-size: 0.96rem;
  font-weight: 670;
  line-height: 1.48;
}

.ft-motivation-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 19px 22px 17px;
  background: #fffdfa;
  touch-action: pan-y;
}

.ft-motivation-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.ft-motivation-metric {
  min-width: 0;
  padding: 11px 10px;
  background: #fff;
  border: 1px solid #b9c8d3;
  border-left: 4px solid var(--ft-pop-accent);
  border-radius: 7px;
  box-shadow: 0 4px 0 #e5edf1;
}

.ft-motivation-metric span {
  display: block;
  margin-bottom: 5px;
  color: #607286;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.ft-motivation-metric strong {
  display: block;
  overflow-wrap: anywhere;
  color: #13253a;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.ft-motivation-swipe-option {
  display: none;
  margin: 13px 0 4px;
  justify-items: center;
}

.ft-motivation-swipe-option[hidden] {
  display: none !important;
}

.ft-motivation-swipe-hint {
  display: none;
  margin: 0 0 6px;
  color: #758495;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-align: center;
  text-transform: uppercase;
}

.ft-motivation-swipe-check {
  width: max-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  color: #65768a;
  cursor: pointer;
  font-size: 0.69rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.ft-motivation-swipe-check input {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: #0f927f;
}

.ft-motivation-swipe-status {
  min-height: 14px;
  margin-top: 2px;
  color: #617184;
  font-size: 0.66rem;
  line-height: 1.3;
  text-align: center;
}

.ft-motivation-swipe-status.bad {
  color: #b42318;
}

.ft-motivation-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 13px;
  align-items: end;
  margin-top: 15px;
}

.ft-motivation-preference-corner {
  min-width: 0;
}

.ft-motivation-preference-corner[hidden] {
  display: none;
}

.ft-motivation-preferences-link {
  display: inline-block;
  color: #718092;
  font-size: 0.71rem;
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ft-motivation-preferences-link:hover {
  color: #13253a;
}

.ft-motivation-shortcut-check {
  width: max-content;
  max-width: 100%;
  display: flex;
  gap: 7px;
  align-items: flex-start;
  margin-top: 7px;
  color: #718092;
  cursor: pointer;
  font-size: 0.69rem;
  font-weight: 650;
  line-height: 1.35;
}

.ft-motivation-shortcut-check input {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  min-height: 0;
  margin: 1px 0 0;
  padding: 0;
  accent-color: #0f927f;
}

.ft-motivation-preference-status {
  min-height: 15px;
  margin-top: 5px;
  color: #617184;
  font-size: 0.67rem;
  line-height: 1.3;
}

.ft-motivation-preference-status.bad {
  color: #b42318;
}

.ft-motivation-got-it {
  min-width: 112px;
  min-height: 44px;
  padding: 10px 17px;
  color: #fff;
  background: #071a2d;
  border: 2px solid #071a2d;
  border-radius: 9px;
  box-shadow: 4px 4px 0 var(--ft-pop-accent);
  cursor: pointer;
  font-weight: 900;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}

.ft-motivation-got-it:hover {
  box-shadow: 5px 5px 0 var(--ft-pop-accent);
  transform: translate(-1px, -1px);
}

.ft-motivation-got-it:focus-visible,
.ft-motivation-preferences-link:focus-visible,
.ft-motivation-shortcut-check:has(input:focus-visible),
.ft-motivation-swipe-check:has(input:focus-visible) {
  outline: 3px solid var(--ft-pop-accent);
  outline-offset: 3px;
}

@keyframes ft-motivation-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes ft-motivation-pop-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 620px) {
  .ft-motivation-backdrop {
    padding:
      max(13px, env(safe-area-inset-top))
      max(13px, env(safe-area-inset-right))
      max(13px, env(safe-area-inset-bottom))
      max(13px, env(safe-area-inset-left));
  }

  .ft-motivation-dialog {
    max-height: calc(100dvh - 26px);
    border-radius: 16px;
    box-shadow:
      6px 6px 0 var(--ft-pop-accent),
      0 22px 58px rgba(0, 0, 0, 0.32);
  }

  .ft-motivation-hero {
    padding: 21px 20px 19px;
  }

  .ft-motivation-scroll {
    padding: 16px 17px 15px;
  }

  .ft-motivation-metrics {
    gap: 6px;
  }

  .ft-motivation-metric {
    padding: 9px 7px;
  }

  .ft-motivation-metric span {
    font-size: 0.58rem;
  }

  .ft-motivation-metric strong {
    font-size: 0.88rem;
  }

  .ft-motivation-swipe-hint {
    display: block;
  }

  .ft-motivation-swipe-option:not([hidden]) {
    display: grid;
  }

  .ft-motivation-got-it {
    min-width: 102px;
  }
}

@media (max-width: 390px) {
  .ft-motivation-actions {
    grid-template-columns: 1fr;
  }

  .ft-motivation-got-it {
    width: 100%;
    grid-row: 1;
  }

  .ft-motivation-preference-corner {
    grid-row: 2;
    text-align: center;
  }

  .ft-motivation-shortcut-check {
    margin-inline: auto;
    text-align: left;
  }
}

@media (max-height: 590px) {
  .ft-motivation-hero {
    padding-top: 17px;
    padding-bottom: 15px;
  }

  .ft-motivation-sticker {
    display: none;
  }

  .ft-motivation-kicker {
    margin-top: 0;
  }

  .ft-motivation-scroll {
    padding-top: 13px;
  }

  .ft-motivation-actions {
    margin-top: 10px;
  }
}

@media (max-width: 390px) {
  .ft-brand-copy strong {
    font-size: 0.88rem;
  }

  .ft-mobile-nav-link {
    min-height: 60px;
    padding-inline: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .ft-motivation-backdrop,
  .ft-motivation-dialog,
  .ft-page-transition,
  .ft-page-transition-mark i {
    animation: none;
  }

  .ft-motivation-dialog,
  .ft-motivation-dialog.is-dismissing,
  .ft-motivation-got-it {
    transition: none;
  }
}
body.ft-experience-pending,
body.ft-simple-loading {
  overflow: hidden;
}

body.ft-experience-pending > [data-app-shell],
body.ft-experience-pending > #appShellMount,
body.ft-experience-pending > main,
body.ft-experience-pending > footer,
body.ft-experience-pending > dialog,
body.ft-simple-loading > [data-app-shell],
body.ft-simple-loading > #appShellMount,
body.ft-simple-loading > main,
body.ft-simple-loading > footer,
body.ft-simple-loading > dialog {
  visibility: hidden !important;
  pointer-events: none !important;
}

body.ft-experience-pending::before {
  content: "";
  position: fixed;
  z-index: 4998;
  inset: 0;
  background:
    radial-gradient(circle at 8% 5%, rgba(39, 140, 224, 0.17), transparent 25rem),
    radial-gradient(circle at 95% 10%, rgba(13, 154, 135, 0.14), transparent 24rem),
    #f3f7fa;
}

body.ft-experience-pending::after {
  content: "Opening your experience\2026";
  position: fixed;
  z-index: 4999;
  top: 50%;
  left: 50%;
  width: min(calc(100% - 40px), 390px);
  padding: 28px 24px;
  transform: translate(-50%, -50%);
  border: 1px solid #d4e2e9;
  border-radius: 22px;
  color: #10243a;
  background: #fff;
  box-shadow: 0 22px 58px rgba(7, 26, 45, 0.13);
  font: 800 1.05rem/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
}

.ft-simple-loading-gate {
  position: fixed;
  z-index: 5000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  color: #10243a;
  background:
    radial-gradient(circle at 8% 5%, rgba(39, 140, 224, 0.17), transparent 25rem),
    radial-gradient(circle at 95% 10%, rgba(13, 154, 135, 0.14), transparent 24rem),
    #f3f7fa;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ft-simple-loading-gate-card {
  width: min(100%, 390px);
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 30px 24px;
  border: 1px solid #d4e2e9;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 58px rgba(7, 26, 45, 0.13);
  text-align: center;
}

.ft-simple-loading-gate-card > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, #278ce0, #0d9a87);
  font-weight: 950;
}

.ft-simple-loading-gate-card strong {
  margin-top: 4px;
  font-size: 1.15rem;
}

.ft-simple-loading-gate-card small {
  color: #607286;
  line-height: 1.5;
}
