/* Shared Face Coach UI (login + enrollment) */
.fc-root { margin-top: 0.15rem; }
.fc-status {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  min-height: 1.35rem;
  margin: 0 0 0.55rem;
  color: #a89070;
  line-height: 1.35;
}
.fc-status[data-tone="ok"] { color: #86efac; }
.fc-status[data-tone="warn"] { color: #fcd34d; }
.fc-status[data-tone="bad"] { color: #fecaca; }

.fc-step {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a735c;
  margin-bottom: 0.45rem;
}
.fc-progress {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 0 0.75rem;
  overflow: hidden;
}
.fc-progress::after {
  content: '';
  display: block;
  height: 100%;
  width: var(--p, 0%);
  background: linear-gradient(90deg, #f4bf45, #c2410c);
  transition: width 0.25s ease;
}

.fc-meters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}
.fc-meter {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #3d2b1f;
  border-radius: 0.55rem;
  padding: 0.4rem 0.45rem 0.5rem;
}
.fc-meter span {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8a735c;
  margin-bottom: 0.3rem;
}
.fc-meter i {
  display: block;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.fc-meter i::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--p, 0%);
  background: #a89070;
  border-radius: inherit;
  transition: width 0.15s ease, background 0.15s ease;
}
.fc-meter[data-state="ok"] i::after { background: #4ade80; }
.fc-meter[data-state="low"] i::after,
.fc-meter[data-state="high"] i::after { background: #fbbf24; }

.fc-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: min(56vh, 440px);
  border-radius: 1.1rem;
  overflow: hidden;
  background: #0d0603;
  border: 1px solid #3d2b1f;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.fc-stage video,
.fc-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fc-stage video { transform: scaleX(-1); }

.fc-oval {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 62% 72% at 50% 46%, transparent 0 49.5%, rgba(10, 4, 0, 0.72) 52%);
}
.fc-oval::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 46%;
  width: 62%;
  height: 72%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px dashed rgba(253, 248, 240, 0.35);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.fc-oval.locked::after {
  border-style: solid;
  border-color: #86efac;
  box-shadow: 0 0 0 3px rgba(134, 239, 172, 0.25), 0 0 24px rgba(134, 239, 172, 0.2);
}
.fc-oval.countdown::after {
  border-color: #f4bf45;
  box-shadow: 0 0 0 3px rgba(244, 191, 69, 0.3);
}

.fc-arrow {
  position: absolute;
  left: 50%;
  top: 12%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(244, 191, 69, 0.92);
  color: #1a0a00;
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 3;
}
.fc-arrow[data-dir=""] { display: none; }

.fc-countdown {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.65);
  pointer-events: none;
  z-index: 4;
}

.fc-live-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 0.95rem;
}
.fc-shutter {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 3px solid #fdf8f0;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 58%, transparent 60%),
    linear-gradient(160deg, #f4bf45, #c2410c);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}
.fc-shutter:active { transform: scale(0.94); }
.fc-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #3d2b1f;
  background: rgba(255, 255, 255, 0.06);
  color: #fdf8f0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  flex-direction: column;
  gap: 0.1rem;
}
.fc-icon-btn[data-muted="1"] { border-color: #7f1d1d; color: #fecaca; }
.fc-icon-btn .lucide { width: 18px; height: 18px; }

.fc-preview-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.9rem;
}
.fc-hint {
  text-align: center;
  color: #7a6550;
  font-size: 0.78rem;
  margin-top: 0.9rem;
  line-height: 1.45;
}
.fc-fallback { margin-top: 0.75rem; }
.fc-fallback summary {
  cursor: pointer;
  color: #a89070;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  list-style: none;
}
.fc-fallback summary::-webkit-details-marker { display: none; }

/* Light theme variant for dashboard enrollment */
.fc-root.fc-light .fc-status { color: #6b7280; }
.fc-root.fc-light .fc-status[data-tone="ok"] { color: #15803d; }
.fc-root.fc-light .fc-status[data-tone="warn"] { color: #b45309; }
.fc-root.fc-light .fc-status[data-tone="bad"] { color: #b91c1c; }
.fc-root.fc-light .fc-step { color: #9ca3af; }
.fc-root.fc-light .fc-progress { background: #e5e7eb; }
.fc-root.fc-light .fc-meter {
  background: #f9fafb;
  border-color: #e5e7eb;
}
.fc-root.fc-light .fc-meter span { color: #6b7280; }
.fc-root.fc-light .fc-stage {
  border-color: #e5e7eb;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.fc-root.fc-light .fc-icon-btn {
  border-color: #e5e7eb;
  background: #fff;
  color: #374151;
}
.fc-root.fc-light .fc-hint { color: #6b7280; }
