/* Fatech Shield: the human check on sign-up and request forms. Self-contained,
   so it looks the same on the app pages (app.css) and the marketing pages. */
.fsh { margin: 18px 0 16px; font-family: inherit; text-align: left; }
.fsh-hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

.fsh-card {
  border: 1px solid #dfe5f1; border-radius: 14px; padding: 14px;
  background: linear-gradient(180deg, #fbfcff 0%, #f3f6fe 100%);
  transition: border-color .25s, background .25s;
}
.fsh-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.fsh-badge {
  position: relative; flex: none; width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; background: #e7eefe; color: #2f6fed;
}
.fsh-badge svg, .fsh-line svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fsh-i-check { display: none; }
.fsh-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.fsh-text strong { font-size: 14px; font-weight: 600; color: #0b1533; line-height: 1.3; }
.fsh-status { font-size: 12.5px; line-height: 1.4; color: #5b6884; }
.fsh-brand { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8f9bb8; white-space: nowrap; }

.fsh-track {
  --k: 50px; --p: 0; --g: .5;
  position: relative; height: 50px; border-radius: 12px; overflow: hidden;
  background: #fff; border: 1px solid #dfe5f1;
  touch-action: none; -webkit-user-select: none; user-select: none;
}
.fsh-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: calc(var(--k) + (100% - var(--k)) * var(--p));
  background: linear-gradient(90deg, rgba(47,111,237,.10), rgba(90,63,240,.16));
}
.fsh-mark {
  position: absolute; top: 5px; bottom: 5px; width: calc(var(--k) - 6px);
  left: calc(3px + (100% - var(--k)) * var(--g));
  border: 2px dashed #6f95f3; border-radius: 10px; background: rgba(47,111,237,.06);
}
.fsh-knob {
  position: absolute; top: 4px; width: calc(var(--k) - 8px); height: 40px;
  left: calc(4px + (100% - var(--k)) * var(--p));
  display: grid; place-items: center; border-radius: 10px; cursor: grab; color: #fff;
  background: linear-gradient(120deg, #2f6fed 0%, #5a3ff0 100%);
  box-shadow: 0 6px 16px rgba(47,111,237,.34);
  transition: left .35s cubic-bezier(.2,.8,.2,1), background .25s;
  touch-action: none;
}
.fsh-knob.drag { transition: none; cursor: grabbing; }
.fsh-knob:focus-visible { outline: 3px solid rgba(47,111,237,.45); outline-offset: 2px; }
.fsh-knob svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* working: a ring round the badge */
.fsh-busy .fsh-badge::after, .fsh-busy .fsh-line::before {
  content: ""; position: absolute; inset: -3px; border-radius: 13px;
  border: 2px solid transparent; border-top-color: #2f6fed; animation: fsh-spin .8s linear infinite;
}
.fsh-busy .fsh-line { position: relative; }
.fsh-busy .fsh-line::before { inset: auto; left: 0; width: 16px; height: 16px; border-radius: 50%; }
.fsh-busy .fsh-line svg { opacity: 0; }

/* done */
.fsh-ok .fsh-card { border-color: #9fe3cf; background: linear-gradient(180deg, #f5fdf9 0%, #eafaf3 100%); }
.fsh-ok .fsh-badge { background: #d6f5e9; color: #0f9c74; }
.fsh-ok .fsh-i-shield { display: none; }
.fsh-ok .fsh-i-check { display: block; }
.fsh-k-ok { display: none; }
.fsh-ok .fsh-k-go { display: none; }
.fsh-ok .fsh-k-ok { display: block; }
.fsh-ok .fsh-knob { background: #19c39a; box-shadow: 0 6px 16px rgba(25,195,154,.32); cursor: default; }
.fsh-ok .fsh-mark { border-color: #19c39a; background: rgba(25,195,154,.08); }
.fsh-ok .fsh-fill { background: linear-gradient(90deg, rgba(25,195,154,.10), rgba(25,195,154,.18)); }
.fsh-ok .fsh-status { color: #0f7f5f; }

.fsh-bad .fsh-status { color: #c2413a; }
.fsh-nudge .fsh-card { animation: fsh-shake .42s; border-color: #f0b4af; }

/* signed-in forms: one quiet line instead of the slider */
.fsh-line { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #5b6884; }
.fsh-line svg { width: 16px; height: 16px; color: #2f6fed; }
.fsh-ok .fsh-line svg { color: #19c39a; }

.fsh-noscript { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #fff4e5; color: #7a4b00; font-size: 13px; }

@keyframes fsh-spin { to { transform: rotate(360deg); } }
@keyframes fsh-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (max-width: 420px) { .fsh-brand { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .fsh-knob { transition: none; }
  .fsh-nudge .fsh-card { animation: none; }
  .fsh-busy .fsh-badge::after, .fsh-busy .fsh-line::before { animation-duration: 2.4s; }
}
