/* The patient flow (P1 to P4), the consumer's sign-up page (E1) and the link page (E3). */

/* ---- The flow inside a .panel ---- */
.panel > * { flex-shrink: 0; }
.panel h1:focus { outline: none; }
.panel h1:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pf-spacer { width: 32px; height: 32px; }
.pf-grow { flex-grow: 1; }
.panel > .pf-grow { flex-shrink: 1; }
.pf-title { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.pf-sub { font-size: 14px; line-height: 20px; color: var(--muted); }
.pf-opt { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.pf-opt.on { border: 2px solid var(--ink); padding: 13px 15px; }
.pf-opt input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--ink); }
.pf-place { font-size: 13px; color: var(--muted); }
.pf-text { height: 40px; display: flex; align-items: center; justify-content: center; background: none; border: 0; padding: 0; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: underline; }
.pf-note { margin: 0; font-weight: 400; color: var(--muted); text-decoration: none; }
.pf-rows { display: flex; flex-direction: column; }
.pf-rows > .pf-pick { display: flex; flex-direction: column; justify-content: flex-start; gap: 6px; }
.pf-rows > .pf-pick > :last-child { text-align: left; }
.pf-rows > .pf-pick > .pf-read { color: var(--ink); align-self: flex-start; font-size: 14px; }
.pf-rows > .pf-pick > label { font-size: 13px; }
.pf-full { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.pf-letter { display: flex; flex-direction: column; gap: 6px; }
.pf-fact { display: flex; justify-content: space-between; gap: 12px; }
.pf-fact > :first-child { color: var(--muted); }
.pf-fact > :last-child { text-align: right; }
.pf-learn { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; text-decoration: underline; }
.pf-done { align-self: center; width: 64px; height: 64px; border-radius: 16px; background: var(--chip); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.pf-logo { height: 24px; width: auto; max-width: 96px; }

/* The confetti of "Request sent", right after the send (flow.js): CSS only, plays one time, about two seconds.
   None at all under reduced motion. */
.panel { position: relative; }
.pf-confetti { position: absolute; top: 0; left: 0; right: 0; height: 100%; overflow: hidden; pointer-events: none; }
.pf-confetti i { position: absolute; top: -16px; border-radius: 2px; opacity: 0; animation-name: pf-fall; animation-timing-function: cubic-bezier(0.25, 0.6, 0.45, 1); animation-fill-mode: forwards; }
@keyframes pf-fall {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--pf-x), 420px) rotate(var(--pf-rot)); }
}
.pf-confetti i:nth-child(1) { left: 3.3%; background: #111413; width: 7px; height: 14px; animation-delay: 0.05s; animation-duration: 1.69s; --pf-rot: -474deg; --pf-x: -24px; }
.pf-confetti i:nth-child(2) { left: 7.5%; background: #2F6F4F; width: 6px; height: 10px; animation-delay: 0.18s; animation-duration: 1.32s; --pf-rot: 414deg; --pf-x: -26px; }
.pf-confetti i:nth-child(3) { left: 14.8%; background: #D9A21B; width: 8px; height: 10px; animation-delay: 0.02s; animation-duration: 1.64s; --pf-rot: -522deg; --pf-x: 10px; }
.pf-confetti i:nth-child(4) { left: 20.2%; background: #C2410C; width: 6px; height: 12px; animation-delay: 0.14s; animation-duration: 1.89s; --pf-rot: -485deg; --pf-x: 24px; }
.pf-confetti i:nth-child(5) { left: 24.9%; background: #1D4ED8; width: 8px; height: 14px; animation-delay: 0.19s; animation-duration: 1.64s; --pf-rot: -252deg; --pf-x: 7px; }
.pf-confetti i:nth-child(6) { left: 29.3%; background: #9CA3AF; width: 7px; height: 14px; animation-delay: 0.03s; animation-duration: 1.73s; --pf-rot: -516deg; --pf-x: -17px; }
.pf-confetti i:nth-child(7) { left: 35.9%; background: #111413; width: 6px; height: 10px; animation-delay: 0.27s; animation-duration: 1.58s; --pf-rot: 385deg; --pf-x: -11px; }
.pf-confetti i:nth-child(8) { left: 41.9%; background: #2F6F4F; width: 7px; height: 12px; animation-delay: 0.09s; animation-duration: 1.64s; --pf-rot: 375deg; --pf-x: 16px; }
.pf-confetti i:nth-child(9) { left: 46.8%; background: #D9A21B; width: 7px; height: 12px; animation-delay: 0.03s; animation-duration: 1.61s; --pf-rot: -375deg; --pf-x: -21px; }
.pf-confetti i:nth-child(10) { left: 49.9%; background: #C2410C; width: 7px; height: 14px; animation-delay: 0.23s; animation-duration: 1.76s; --pf-rot: 374deg; --pf-x: 14px; }
.pf-confetti i:nth-child(11) { left: 57.0%; background: #1D4ED8; width: 8px; height: 14px; animation-delay: 0.28s; animation-duration: 1.34s; --pf-rot: -338deg; --pf-x: 0px; }
.pf-confetti i:nth-child(12) { left: 60.6%; background: #9CA3AF; width: 7px; height: 14px; animation-delay: 0.26s; animation-duration: 1.49s; --pf-rot: 345deg; --pf-x: 15px; }
.pf-confetti i:nth-child(13) { left: 67.0%; background: #111413; width: 6px; height: 12px; animation-delay: 0.33s; animation-duration: 1.51s; --pf-rot: -452deg; --pf-x: -27px; }
.pf-confetti i:nth-child(14) { left: 71.4%; background: #2F6F4F; width: 7px; height: 12px; animation-delay: 0.09s; animation-duration: 1.53s; --pf-rot: 241deg; --pf-x: -20px; }
.pf-confetti i:nth-child(15) { left: 78.4%; background: #D9A21B; width: 8px; height: 12px; animation-delay: 0.31s; animation-duration: 1.79s; --pf-rot: 412deg; --pf-x: -8px; }
.pf-confetti i:nth-child(16) { left: 85.3%; background: #C2410C; width: 6px; height: 12px; animation-delay: 0.05s; animation-duration: 1.41s; --pf-rot: -537deg; --pf-x: -16px; }
.pf-confetti i:nth-child(17) { left: 90.1%; background: #1D4ED8; width: 7px; height: 14px; animation-delay: 0.06s; animation-duration: 1.47s; --pf-rot: -414deg; --pf-x: 4px; }
.pf-confetti i:nth-child(18) { left: 94.4%; background: #9CA3AF; width: 8px; height: 14px; animation-delay: 0.33s; animation-duration: 1.71s; --pf-rot: -433deg; --pf-x: 27px; }
@media (prefers-reduced-motion: reduce) {
  .pf-confetti { display: none; }
}

/* ---- E1: the consumer's sign-up page ---- */
.su-page { min-height: calc(100vh - 33px); background: #F4F5F3; color: #17211E; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.su-intro { display: flex; flex-direction: column; gap: 6px; }
.su-intro h1 { font-family: var(--display); font-size: 26px; line-height: 1.2; }
.su-intro p { color: #55625D; font-size: 14px; }
.su-cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.su-frame { flex: 3 1 520px; min-width: 0; border: 1px solid #9AA8A2; border-radius: 8px; overflow: hidden; background: #FFFFFF; }
.su-url { padding: 10px 14px; background: #E3E7E4; font-size: 12px; color: #3A4743; font-family: var(--mono); overflow-wrap: anywhere; }
.su-app { position: relative; min-height: 672px; display: flex; flex-wrap: wrap; }
.su-side { flex: 1 1 150px; padding: 20px 14px; border-right: 1px solid #E1E3E6; display: flex; flex-direction: column; gap: 4px; }
.su-name { font-weight: 700; padding: 0 12px 12px 12px; display: flex; align-items: center; gap: 8px; }
.su-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.su-steps li { padding: 8px 12px; border-radius: 6px; font-size: 14px; color: #5B616B; }
.su-steps li[aria-current="step"] { background: #2B2F36; color: #FFFFFF; font-weight: 600; }
.su-main { flex: 4 1 300px; min-width: 0; padding: 28px; display: flex; flex-direction: column; gap: 14px; color: #2B2F36; }
.su-main h2 { font-size: 22px; font-weight: 600; }
.su-main h2:focus { outline: none; }
.su-bar { height: 12px; background: #E1E3E6; }
.su-get { height: 44px; width: 220px; max-width: 100%; background: #2B2F36; color: #FFFFFF; border: 0; border-radius: 6px; font-weight: 600; }
.su-upload { align-self: flex-start; background: none; border: 0; padding: 0; font-size: 14px; color: #5B616B; text-decoration: underline; }
.su-dev { flex: 2 1 380px; min-width: 0; background: #FFFFFF; border: 1px solid #C9CFCB; border-radius: 6px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.su-dev .code { white-space: pre; overflow-x: auto; overflow-wrap: normal; }

/* The panel over the sign-up page: as E1 on a wide screen, as P1 to P4 on a phone. */
.pf-dialog { position: absolute; inset: 0; z-index: 10; background: rgba(23, 33, 30, 0.45); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; }
.pf-dialog .panel { width: 360px; max-width: 100%; height: 640px; max-height: 100%; border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); overflow-y: auto; }
.pf-strip { display: none; }

@media (max-width: 640px) {
  .su-page { padding: 16px; }
  .su-dev { flex-basis: 100%; }
  .su-app { min-height: 0; }
  .su-side { border-right: 0; border-bottom: 1px solid #E1E3E6; }
  .pf-dialog { position: fixed; top: 33px; background: var(--backdrop); padding: 0; align-items: stretch; justify-content: flex-start; }
  .pf-strip { height: 64px; flex: none; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--backdrop-ink); font-size: 14px; }
  .pf-strip b { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .pf-strip b, .pf-strip span { white-space: nowrap; }
  .pf-dialog .panel { width: 100%; height: auto; max-height: none; flex: 1 1 auto; min-height: 0; border-radius: 16px 16px 0 0; box-shadow: none; }
  body.pf-open { overflow: hidden; }
}

/* ---- E3: the page that a link opens ---- */
.e3-url { padding: 10px 14px; background: var(--nav); font-size: 12px; color: var(--muted); font-family: var(--mono); overflow-wrap: anywhere; }
.e3-body { flex-grow: 1; padding: 32px 20px 24px 20px; display: flex; flex-direction: column; gap: 18px; }
.e3-logo { height: 28px; margin-right: 10px; vertical-align: -4px; }
.e3-card { border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.e3-card > div { display: flex; justify-content: space-between; gap: 8px; }
.e3-card > div > :first-child { color: var(--muted); }
.e3-card > div > :last-child { text-align: right; }
.e3-not { height: 46px; display: flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--ink); font-weight: 600; text-decoration: underline; }
.pf-page { flex-grow: 1; border-radius: 0; }
