/* First run (lib/onboarding.js): the Upload screen's sample link, phone hand-off and "Where's my recording?",
   a refused file's fix line, the "Ready to export" badge, the coach marks (ui/coach.js) and the sample's Export step.
   Pink stays on "Choose a clip" and the one primary button of each view. */

/* ---------- Upload: Try a sample clip (a plain link under the drop box) ---------- */
.screen-upload .fc-sample { align-self: flex-start; font-size: 14px; line-height: 20px; }
.screen-upload .fc-sample[hidden] { display: none; }

/* ---------- Upload: On your phone? ---------- */
.screen-upload .fc-phone {
  display: flex; flex-direction: column; gap: 10px; padding: 14px 16px;
  border-radius: var(--r-control); background: var(--c-field); box-shadow: inset 2px 0 0 var(--c-ink);
}
.screen-upload .fc-phone[hidden] { display: none; }
.screen-upload .fc-phone-title { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 26px; font-weight: 600; }
.screen-upload .fc-phone-text { margin: 0; font-size: 14px; line-height: 20px; }
.screen-upload .fc-phone-link { display: flex; gap: 8px; min-width: 0; }
.screen-upload .fc-link { flex: 1; min-width: 0; }
.screen-upload .fc-copy, .screen-upload .fc-copy:hover { flex: none; background: var(--c-raised); color: var(--c-ink); }
.screen-upload .fc-phone-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.screen-upload .fc-phone-actions [hidden] { display: none; }
.screen-upload .fc-discord { text-decoration: none; }

/* ---------- Upload: Where's my recording? ---------- */
.screen-upload .fc-help { border-radius: var(--r-control); background: var(--c-field); }
.screen-upload .fc-help[hidden] { display: none; }
.screen-upload .fc-help-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 0 14px;
  font-weight: 600; font-size: 14px; cursor: pointer; list-style: none;
}
.screen-upload .fc-help-summary::-webkit-details-marker { display: none; }
.screen-upload .fc-help-summary:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.screen-upload .fc-help[open] .fc-help-summary svg { transform: rotate(180deg); }
.screen-upload .fc-help-list { margin: 0; padding: 0 14px 4px 14px; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.screen-upload .fc-help-list li { font-size: var(--fs-m); line-height: 18px; color: var(--c-muted); }
.screen-upload .fc-help-list strong { color: var(--c-ink); font-weight: 600; }
.screen-upload .fc-help-long { margin: 8px 14px 14px; font-size: var(--fs-m); line-height: 18px; }

/* ---------- Upload: a refused file's fix ---------- */
.screen-upload .up-error-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.screen-upload .up-error-fix { color: var(--c-muted); }
.screen-upload .up-error-fix[hidden] { display: none; }

/* ---------- Your clips: Ready to export ---------- */
.screen-clips .clip-badge {
  align-self: flex-start; padding: 1px 6px; border-radius: var(--r-chip); box-shadow: inset 0 0 0 1px var(--c-edge);
  font-size: var(--fs-xs); line-height: 16px; font-weight: 600; letter-spacing: 0.02em; color: var(--c-ink); white-space: nowrap;
}
.screen-clips .clip-badge[hidden] { display: none; }

/* ---------- The sample's Export step ---------- */
.screen.screen-sample-export {
  flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center;
  padding: 48px 16px; background: var(--c-panel);
}
.screen-sample-export .sx-panel { width: 480px; max-width: 100%; display: flex; flex-direction: column; gap: 12px; }
.screen-sample-export .sx-kicker { font-size: var(--fs-s); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-muted); }
.screen-sample-export .title { margin: 0; }
.screen-sample-export .sx-text { margin: 0 0 8px; }

/* ---------- Coach marks (ui/coach.js): one pink bubble with an arrow at its target ---------- */
.coach {
  position: fixed; left: 0; top: 0; z-index: 900; box-sizing: border-box;
  display: flex; align-items: center; gap: 6px; width: max-content; max-width: min(440px, calc(100vw - 16px));
  padding: 8px 6px 8px 12px; border-radius: var(--r-control); background: var(--c-pink); color: var(--c-on-pink);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); font-family: var(--font-ui); font-size: 14px; line-height: 19px; font-weight: 600;
}
.coach[hidden] { display: none; }
.coach-text { min-width: 0; overflow-wrap: anywhere; }
.coach-close {
  flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0;
  border-radius: var(--r-control); background: transparent; color: var(--c-on-pink); cursor: pointer;
}
.coach-close:hover { background: rgba(0, 0, 0, 0.12); }
.coach-close:focus-visible { outline: 2px solid var(--c-on-pink); outline-offset: 0; }
.coach-arrow { position: absolute; width: 12px; height: 12px; background: var(--c-pink); transform: rotate(45deg); pointer-events: none; }
.coach[data-side="bottom"] .coach-arrow { top: -6px; margin-left: -6px; }
.coach[data-side="top"] .coach-arrow { bottom: -6px; top: auto !important; margin-left: -6px; }
.coach[data-side="right"] .coach-arrow { left: -6px !important; margin-top: -6px; }
.coach[data-side="left"] .coach-arrow { right: -6px; left: auto !important; margin-top: -6px; }
