/* ============================================
   COACH FORM REVIEW EDITOR (all classes prefixed fe-)
   ============================================ */

.fe-root { max-width: 1200px; margin: 0 auto; }

.fe-head { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.fe-title {
  flex: 1;
  min-width: 140px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #3f3550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fe-btn {
  background: #ddd2eb;
  color: #3d2f52;
  border: none;
  border-radius: 10px;
  padding: 7px 16px;
  font-size: 0.85rem;
  cursor: pointer;
}
.fe-btn:hover:not(:disabled) { background: #c6b7e2; }
.fe-btn:disabled { opacity: 0.45; cursor: default; }
.fe-save { background: #c6b7e2; font-weight: 600; }
.fe-btn.fe-send { background: #6b5a8a; color: #fff; font-weight: 600; } .fe-btn.fe-send:hover:not(:disabled) { background: #5a4a78; }
.fe-status { font-size: 0.8rem; color: #8a8073; min-width: 70px; }
.fe-status-err { color: #b3261e; }

.fe-info { margin-bottom: 0.6rem; }
.fe-set { font-size: 0.85rem; color: #4b3f5c; }
.fe-note {
  background: #faf7f2;
  border: 1px solid #eee6da;
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: #4b3f5c;
  line-height: 1.4;
  white-space: pre-wrap;
}

.fe-video { max-width: 900px; margin: 0 auto 0.5rem; }
.fe-video-msg { color: #4b3f5c; font-size: 0.85rem; padding: 1rem; text-align: center; }
.fe-error { color: #b3261e; font-size: 0.85rem; padding: 0.6rem; text-align: center; }

/* ---------- drawing toolbar + cursor (6f-i) ---------- */
.fe-dtools { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; max-width: 1200px; margin: 0 auto 0.8rem; }
.fe-dtools-off { opacity: 0.45; pointer-events: none; }
.fe-btn.fe-dt-on { background: #6b5a8a; color: #fff; }
.fe-btn.fe-dt-on:hover:not(:disabled) { background: #5a4a78; }
.fe-dsep { width: 1px; height: 20px; background: #ddd2eb; margin: 0 0.2rem; }
.fe-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #b8aec8;
  padding: 0;
  cursor: pointer;
}
.fe-swatch:disabled { cursor: default; }
.fe-swatch-on { outline: 2px solid #6b5a8a; outline-offset: 2px; }
.fe-size { width: 120px; accent-color: #6b5a8a; cursor: pointer; }
.fe-stay { display: inline-flex; align-items: center; gap: 4px; font-size: 0.78rem; color: #4b3f5c; white-space: nowrap; }
.fe-stay svg { color: #1e6fb8; }
.fe-stay-in {
  width: 46px;
  font-size: 0.78rem;
  font-family: inherit;
  padding: 3px 5px;
  border: 1px solid #c6b7e2;
  border-radius: 8px;
  color: #3d2f52;
  background: #fff;
}
.fe-stay-in:disabled { opacity: 0.45; }
.fe-video .rp-mode-edit .rp-canvas { cursor: pointer; }
.fe-video .rp-mode-edit .rp-canvas.fe-can-draw { cursor: none; }
.fe-cursor {
  position: absolute;
  pointer-events: none;
  box-sizing: border-box;
  border-radius: 50%;
  border: 1.5px solid #fff;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.fe-cursor[hidden] { display: none; }
.fe-cursor-erase { border-style: dashed; }
.fe-dsub { display: inline-flex; gap: 0.25rem; }
.fe-dsub[hidden] { display: none; }
.fe-mag {
  position: absolute;
  pointer-events: none;
  box-sizing: border-box;
  border: 2px solid #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  background: #000;
  z-index: 3;
}
.fe-mag[hidden] { display: none; }
.fe-mag canvas { display: block; width: 100%; height: 100%; }

.fe-rows { display: flex; flex-direction: column; gap: 0.5rem; }
.fe-rows-off { opacity: 0.45; pointer-events: none; }
.fe-row {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
  background: #fff;
  border: 1px solid #ddd2eb;
  border-radius: 10px;
  padding: 0.4rem;
}
.fe-row-label {
  flex: 0 0 78px;
  display: flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #4b3f5c;
}
.fe-row-body { flex: 1; min-width: 0; min-height: 44px; position: relative; background: #faf7f2; border-radius: 6px; }
.fe-placeholder { color: #8a8073; font-size: 0.78rem; padding: 0.75rem; }

/* ---------- video row (6e-ii, 6e-iii) ---------- */
.fe-btn-sm { padding: 4px 12px; font-size: 0.78rem; border-radius: 8px; }
.fe-vtools { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; padding: 0.4rem 0.5rem 0; }
.fe-vtools-gap { flex: 1; }
.fe-speed { display: flex; align-items: center; gap: 0.3rem; font-size: 0.78rem; color: #4b3f5c; }
.fe-speed-sel {
  font-size: 0.78rem;
  padding: 3px 6px;
  border: 1px solid #c6b7e2;
  border-radius: 8px;
  background: #fff;
  color: #3d2f52;
  cursor: pointer;
}
.fe-speed-sel:disabled { opacity: 0.45; cursor: default; }
.fe-zoom { width: 110px; accent-color: #6b5a8a; cursor: pointer; }
.fe-zoom:disabled { opacity: 0.45; cursor: default; }

.fe-vwrap { position: relative; overflow-x: auto; overflow-y: hidden; scrollbar-gutter: stable; padding: 0.3rem 16px 0.5rem; }
.fe-vinner { position: relative; user-select: none; -webkit-user-select: none; }
.fe-ruler { position: relative; height: 18px; cursor: pointer; touch-action: none; }
.fe-tick { position: absolute; top: 11px; bottom: 0; width: 0; border-left: 1px solid #b8aec8; }
.fe-tick-label {
  position: absolute;
  top: -11px;
  left: 0;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: #8a8073;
  white-space: nowrap;
  pointer-events: none;
}
.fe-track {
  position: relative;
  height: 48px;
  background: #ece6dc;
  border-radius: 6px;
  cursor: pointer;
  touch-action: none;
}
.fe-piece {
  position: absolute;
  top: 0;
  bottom: 0;
  box-sizing: border-box;
  background: #ddd2eb;
  border: 1px solid #b9a9d6;
  border-radius: 5px;
  overflow: hidden;
  min-width: 2px;
  cursor: grab;
}
.fe-piece-alt { background: #cfe0ea; border-color: #a2c0d2; }
.fe-piece-fz { background: repeating-linear-gradient(135deg, #d6e8f6 0 7px, #c2dcf0 7px 14px); border-color: #7fb0d8; }
.fe-piece-fz .fe-piece-info, .fe-piece-fz .fe-piece-clip { color: #164f80; }
.fe-piece-fz .fe-piece-clip { display: inline-flex; align-items: center; gap: 3px; }
.fe-piece-seam { border-left: 3px solid #4b3f5c; }
.fe-piece-sel { outline: 2px solid #6b5a8a; outline-offset: -2px; z-index: 2; }
.fe-piece-drag { z-index: 3; opacity: 0.92; }
.fe-moving .fe-piece { transition: left 0.12s ease; }
.fe-moving .fe-piece.fe-piece-move {
  transition: none;
  cursor: grabbing;
  z-index: 5;
  opacity: 0.95;
  box-shadow: 0 2px 8px rgba(61, 47, 82, 0.35);
}
.fe-piece-info {
  position: absolute;
  inset: 0 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 0.68rem;
  line-height: 1.25;
  color: #3d2f52;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
}
.fe-piece-clip { font-weight: 700; color: #4b3f5c; }
.fe-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 9px;
  background: rgba(107, 90, 138, 0.55);
  cursor: ew-resize;
  touch-action: none;
  z-index: 4;
}
.fe-handle:hover { background: rgba(107, 90, 138, 0.9); }
.fe-handle-l { left: 0; border-radius: 4px 0 0 4px; }
.fe-handle-r { right: 0; border-radius: 0 4px 4px 0; }
.fe-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 2px solid #d33a2f;
  pointer-events: none;
  z-index: 6;
}

/* ---------- stickers row (6f-iii) ---------- */
.fe-sbox { position: relative; }
.fe-swrap {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.3rem 16px 0.4rem;
  box-sizing: content-box;   /* max-height (4 lanes) is the lanes alone, not the padding */
  scrollbar-width: none;   /* hidden: .fe-sbar is the scrollbar */
}
.fe-swrap::-webkit-scrollbar { display: none; }
/* our own scrollbar, in the row's right padding (Windows can hide the browser's until you hover right on it) */
.fe-sbar { position: absolute; top: 0.3rem; bottom: 0.4rem; right: 3px; width: 9px; background: #ddd2eb; border-radius: 5px; cursor: pointer; touch-action: none; }
.fe-sbar[hidden] { display: none; }
.fe-sthumb { position: absolute; left: 1px; right: 1px; background: #8a78ad; border-radius: 4px; cursor: grab; }
.fe-sthumb:hover { background: #6b5a8a; }
.fe-sinner {
  position: relative;
  min-height: 24px;
  background: #ece6dc;
  border-radius: 6px;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.fe-sbars { position: absolute; inset: 0; }
.fe-stk {
  position: absolute;
  height: 20px;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 5px;
  color: #fff;
  overflow: hidden;
  min-width: 2px;
  cursor: grab;
}
.fe-stk-light { color: #3d2f52; border-color: #b8aec8; }
.fe-stk-sel { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #6b5a8a; z-index: 2; }
.fe-stk-label {
  position: absolute;
  inset: 0 8px;
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.fe-stk-h {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 7px;
  background: rgba(0, 0, 0, 0.18);
  cursor: ew-resize;
  touch-action: none;
}
.fe-stk-h:hover { background: rgba(0, 0, 0, 0.4); }
.fe-stk-light .fe-stk-h { background: rgba(107, 90, 138, 0.35); }
.fe-stk-h-l { left: 0; }
.fe-stk-h-r { right: 0; }

/* ---------- voiceover row + past-the-video shading (6g-i, 7a) ---------- */
.fe-voslot { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; }
.fe-voslot:empty { display: none; }
.fe-vowrap { position: relative; overflow: hidden; scrollbar-gutter: stable; padding: 0.3rem 16px 0.4rem; }
.fe-voinner {
  position: relative;
  height: 38px;
  background: #ece6dc;
  border-radius: 6px;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.fe-vo { top: 2px; height: 34px; background: #c6b7e2; border-color: #a593c7; color: #1f1a2b; }
.fe-vo .fe-stk-label { bottom: auto; height: 14px; line-height: 14px; font-size: 0.65rem; }
.fe-vo .fe-stk-h { background: rgba(61, 47, 82, 0.22); z-index: 1; }
.fe-vo .fe-stk-h:hover { background: rgba(61, 47, 82, 0.45); }
.fe-wave {
  position: absolute;
  left: 0;
  bottom: 2px;
  display: block;
  width: 100%;
  height: 16px;
  pointer-events: none;
}
.fe-wave path { fill: #000; }
.fe-voempty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 0.6rem;
  font-size: 0.72rem;
  color: #8a8073;
  pointer-events: none;
}
.fe-past {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  background: rgba(60, 50, 70, 0.12);
  border-radius: 0 6px 6px 0;
  pointer-events: none;
}
.fe-past[hidden] { display: none; }

/* ---------- voiceover recording (7a) ---------- */
.fe-rec-ic { color: #e53935; }
.fe-mic { max-width: 220px; }
.fe-reclive { display: inline-flex; align-items: center; gap: 0.35rem; }
.fe-reclive[hidden] { display: none; }
.fe-recdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e53935;
  animation: fe-blink 1s ease-in-out infinite;
}
@keyframes fe-blink { 50% { opacity: 0.3; } }
.fe-rectime { font-size: 0.78rem; font-variant-numeric: tabular-nums; color: #3d2f52; min-width: 30px; }
.fe-meter { width: 60px; height: 6px; background: #ddd2eb; border-radius: 3px; overflow: hidden; }
.fe-meter-fill { display: block; height: 100%; width: 0; background: #43a047; }
.fe-vomsg { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; font-size: 0.75rem; }
.fe-vomsg:empty { display: none; }
.fe-vomsg-err { color: #b3261e; }
.fe-vomsg-info { color: #8a8073; }
.fe-count {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 96px;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  z-index: 6;
}
/* while recording: everything except the recording controls (and Close) is greyed */
.fe-recording .rp-stage { pointer-events: none; }
.fe-recording .fe-dtools,
.fe-recording .rp-bar,
.fe-recording .fe-vwrap,
.fe-recording .fe-swrap,
.fe-recording .fe-vowrap,
.fe-recording .fe-vtools > :not(.fe-voslot) { opacity: 0.45; pointer-events: none; }
/* recording paused or frozen: drawing works again (freeze chat, phase 3) */
.fe-recording.fe-recdraw .rp-stage { pointer-events: auto; }
.fe-recording.fe-recdraw .fe-dtools { opacity: 1; pointer-events: auto; }
.fe-recpill {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  pointer-events: none;
  background: rgba(229, 57, 53, 0.92);
  color: #fff;
}
.fe-recpill-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.fe-recpill-fz { background: rgba(30, 111, 184, 0.95); }
.fe-recpill-paused { background: rgba(255, 255, 255, 0.92); color: #3d2f52; }
.fe-btn.fe-fz-on { background: #1e6fb8; color: #fff; }
.fe-btn.fe-fz-on:hover:not(:disabled) { background: #185d9b; }
.fe-voslot .fe-btn svg { vertical-align: -1px; }
.fe-voslot .fe-btn svg, .fe-voslot .fe-btn span { pointer-events: none; }   /* clicks always land on the button */

/* ---------- note to the client (reply note) ---------- */
.fe-rnote { margin: 0 0 0.6rem; }
.fe-rnote-lbl { display: block; font-size: 0.8rem; font-weight: 700; color: #4b3f5c; margin-bottom: 0.25rem; }
.fe-rnote-box {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 0.88rem;
  color: #3f3550;
  border: 1px solid #c6b7e2;
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  resize: vertical;
  background: #fff;
}
.fe-rnote-box:disabled { opacity: 0.6; }
.fe-rnote-count { font-size: 0.72rem; color: #8a8073; text-align: right; margin-top: 2px; }
