/* Check-in forms: filling one in (the same look as the intake) and building one. */
.ff-form.intake-welcome { display: grid; gap: 12px; }
.ff-form.intake-step { display: grid; gap: 10px; }
.ff-form .intake-progress { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ff-form .intake-progress-bar { height: 100%; background: var(--lime); border-radius: 99px; transition: width .25s ease; }
.ff-form .intake-count { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); letter-spacing: .02em; margin: 0; }
.ff-form .intake-question { display: grid; gap: 12px; }
.ff-form .intake-question h1, .ff-form.intake-welcome h1 { font-size: 20px; font-weight: 700; line-height: 1.35; margin: 0; }
.ff-form .optional-tag { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 0; }
.ff-form .option-list { display: grid; gap: 8px; }
.ff-form .option-card { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg); cursor: pointer; font-size: 15px; }
.ff-form .option-card:has(input:checked) { border-color: var(--accent, var(--lime)); background: var(--lime-soft, rgba(163, 230, 53, .12)); }
.ff-form .option-card input { width: 20px; height: 20px; accent-color: var(--lime); flex: none; }
.ff-form .intake-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; }
.ff-form .intake-nav .button { flex: 1; }
.ff-form .intake-review { display: grid; gap: 10px; }
.ff-form .review-list { list-style: none; margin: 0; padding: 0; display: grid; }
.ff-form .review-list li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.ff-form .review-list li > div { display: grid; gap: 2px; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.ff-form .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Linear scale: a row of numbers with a label at each end. */
.ff-scale { display: flex; gap: 6px; }
.ff-scale-point { flex: 1; }
.ff-scale-point input { position: absolute; opacity: 0; pointer-events: none; }
.ff-scale-point span { display: grid; place-items: center; min-height: 52px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg); font-size: 18px; font-weight: 700; cursor: pointer; }
.ff-scale-point input:checked + span { border-color: var(--lime); background: var(--lime); color: #10130a; }
.ff-scale-point input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.ff-scale-labels { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.ff-stars { display: flex; gap: 4px; }
.ff-star input { position: absolute; opacity: 0; pointer-events: none; }
.ff-star span[aria-hidden] { font-size: 36px; line-height: 1; color: var(--lime); cursor: pointer; }
.ff-grid { display: grid; gap: 10px; }
.ff-grid-row { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; margin: 0; }
.ff-grid-row legend { font-weight: 600; padding: 0 4px; }
.ff-grid-options { display: flex; flex-wrap: wrap; gap: 6px; }
.ff-pill input { position: absolute; opacity: 0; pointer-events: none; }
.ff-pill span { display: inline-block; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; font-size: 14px; }
.ff-pill input:checked + span { border-color: var(--lime); background: var(--lime); color: #10130a; }
.ff-photo { display: grid; gap: 8px; justify-items: start; }
.ff-photo img { max-width: 220px; max-height: 220px; border-radius: 12px; object-fit: cover; }
.ff-photo-pick { cursor: pointer; }
.number-answer { display: flex; align-items: center; gap: 8px; }

/* A submitted check-in, for the coach. */
.ff-answers { margin: 0; padding-left: 20px; display: grid; gap: 14px; }
.ff-answers h4 { margin: 0 0 4px; font-size: 14px; }
.ff-answers p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ff-answer-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ff-answer-grid li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.ff-answer-photo { max-width: 260px; border-radius: 10px; }

/* The builder. */
.ff-builder { display: grid; gap: 12px; }
.ff-builder-card { display: grid; gap: 10px; }
.ff-builder-title { border-top: 4px solid var(--lime); }
.ff-builder-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ff-builder-number { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--line); font-weight: 700; font-size: 13px; flex: none; }
.ff-type { flex: 1; min-width: 180px; margin: 0; }
.ff-builder-tools { display: flex; gap: 4px; margin-left: auto; }
.ff-builder-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ff-narrow { max-width: 200px; }
.check-line { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.ff-required { justify-self: end; font-weight: 600; }
.ff-add { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.ff-add .field { margin: 0; min-width: 200px; }
.ff-builder-actions { position: sticky; bottom: 0; padding: 10px 0; background: var(--bg); z-index: 2; }

/* The coach's Forms page and a client's check-ins. */
.form-list { display: grid; gap: 10px; }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.form-row h3 { margin: 0; font-size: 16px; }
.checkin-list { list-style: none; margin: 0; padding: 0; display: grid; }
.checkin-list li { border-top: 1px solid var(--line); }
.checkin-list button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 4px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.checkin-list button:hover { background: var(--line); }
.checkin-list button:disabled { cursor: default; background: none; }
.form-history { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.form-history li { font-size: 14px; }
.form-history ul { margin: 2px 0 0; padding-left: 18px; color: var(--muted); }
.assign-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 50vh; overflow-y: auto; }
.intake-q-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.intake-q-list li { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.intake-q-list .muted { font-size: 13px; }
.ff-form .field input[type="date"], .ff-form .field input[type="time"], .ff-form .field input[type="text"], .ff-form .field input[type="number"], .ff-form .field select, .ff-form .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; }
.ff-form .number-answer input { max-width: 180px; }
.ff-form .field { display: grid; gap: 6px; }
/* The check-in note on Home and in the planner: like prep and shopping days. */
.day-flag.is-later { background: none; border-style: dashed; color: var(--muted); }
.day-flag.is-done { background: none; }
