/* Phase 2: form session. */

/* ---- Live form session: on-device rep counting and set logging.
   The session is always dark (it sits on the camera picture), so colors are
   fixed here like the other .live-fs rules in styles.css. */

/* One calm line under the status badge: loading, counting, step back, or
   "not available". */
.form-pose-note {
  max-width: 100%;
  margin: 0;
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(10, 13, 16, 0.5);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
  line-height: 1.35;
}
.form-pose-note.is-warn { color: #FCD9A0; }

/* Panel shown when the set ends: typed count, saving, saved, or retry. */
.form-set-panel {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 420px);
  max-height: 80dvh;
  overflow-y: auto;
  display: grid;
  gap: 10px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: rgba(10, 13, 16, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #F9FAFB;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.form-set-panel[hidden] { display: none; }
.form-set-panel p { margin: 0; }
.form-set-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
}
.form-set-title .icon { width: 22px; height: 22px; color: #C6F432; }
.form-set-main { font-size: 1.3rem; font-weight: 700; color: #E2F98B; }
.form-set-note { font-size: 0.86rem; color: rgba(255, 255, 255, 0.72); }
.form-set-plan { font-size: 0.92rem; line-height: 1.4; }
.form-set-plan.is-done { color: #C6F432; font-weight: 600; }
.form-set-error { font-size: 0.86rem; color: #FCD9A0; }
.form-set-error[hidden] { display: none; }
.form-set-input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #F9FAFB;
  font-size: 1.2rem;
}
.form-set-actions { display: grid; gap: 8px; margin-top: 4px; }
.form-set-btn {
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #F9FAFB;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.form-set-btn.is-primary { border-color: #C6F432; background: #C6F432; color: #0A0D10; }
