/* copy-edit-setup-wizard.css - the setup screen on phones: the wizard the
   owner picked on 2026-11-04 (from three options). copy-edit-setup.js adds
   body.ce-su1 on phones. One step on screen, dots on top, the player above
   it; while the edit is read the player area shows the reading panel
   instead of a card pinned over the screen; the clips' bars sit on the
   clips card. One blue, no gradients on controls, 12px floor, 44px taps. */

@media (max-width: 899px) {
  /* the player takes the video's own shape (sized by copy-edit-setup.js) */
  body.ce-v2.ce-su1 #cfSetup .cfs-frame { aspect-ratio: auto; max-width: none; border-radius: 18px; }
  body.ce-v2.ce-su1 #cfSetup .cfs-stage { width: 100%; }

  /* ── the wizard: one step on screen, dots on top ───────────────────── */
  body.ce-v2.ce-su1 #cfSetup { gap: 14px; }
  body.ce-v2.ce-su1 #cfSetup .cf-copy-hero { display: none !important; }
  body.ce-v2.ce-su1 #cfSetup .cfs-wiz { order: -1; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; }
  body.ce-v2.ce-su1 #cfSetup .cfs-wiz-back {
    width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
    background: var(--cfs-l1); color: var(--cfs-ink);
  }
  body.ce-v2.ce-su1 #cfSetup .cfs-wiz-back svg { width: 20px; height: 20px; }
  body.ce-v2.ce-su1 #cfSetup .cfs-wiz-back:disabled { opacity: .35; cursor: default; }
  body.ce-v2.ce-su1 #cfSetup .cfs-wiz-dots { display: flex; justify-content: center; gap: 2px; }
  body.ce-v2.ce-su1 #cfSetup .cfs-wiz-dots button { width: 44px; height: 44px; border: 0; background: none; padding: 0; display: grid; place-items: center; cursor: pointer; }
  body.ce-v2.ce-su1 #cfSetup .cfs-wiz-dots button:disabled { cursor: default; }
  body.ce-v2.ce-su1 #cfSetup .cfs-wiz-dots i { display: block; width: 8px; height: 8px; border-radius: 4px; background: var(--cfs-ink3); opacity: .45; transition: width .25s ease, background-color .25s, opacity .25s; }
  body.ce-v2.ce-su1 #cfSetup .cfs-wiz-dots .is-done i { background: var(--cfs-blue); opacity: .55; }
  body.ce-v2.ce-su1 #cfSetup .cfs-wiz-dots .is-on i { width: 28px; background: var(--cfs-blue); opacity: 1; }
  body.ce-v2.ce-su1 #cfSetup .cfs-wiz-count { justify-self: end; font-size: 13px; font-weight: 700; color: var(--cfs-ink3); font-variant-numeric: tabular-nums; white-space: nowrap; }
  body.ce-v2.ce-su1 #cfSetup #cfPair .cf-drop:not(.cfs-cur),
  body.ce-v2.ce-su1 #cfSetup #cfGoRow:not(.cfs-cur) { display: none !important; }
  body.ce-v2.ce-su1 #cfSetup .cfs-cur { animation: cfs-wiz-in .38s cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes cfs-wiz-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
  /* the one card on screen is a full step: big title, big button */
  body.ce-v2.ce-su1 #cfSetup #cfPair .cf-drop.cfs-cur { padding: 22px 18px 18px !important; border-radius: 20px !important; }
  body.ce-v2.ce-su1 #cfSetup #cfPair .cf-drop.cfs-cur .cf-pair-tag { font-size: 26px !important; font-weight: 800 !important; letter-spacing: -.03em !important; }
  body.ce-v2.ce-su1 #cfSetup #cfPair .cf-drop.cfs-cur .cfs-text p { display: block !important; font-size: 15px !important; margin-top: 4px !important; }
  body.ce-v2.ce-su1 #cfSetup #cfPair #cfFootageDrop.cfs-cur .cfs-text p { display: none !important; }
  body.ce-v2.ce-su1 #cfSetup #cfPair .cf-drop.cfs-cur .cf-drop-actions .sb-bt-btn { height: 60px !important; min-height: 60px !important; font-size: 18px !important; }
  body.ce-v2.ce-su1 #cfSetup #cfGoRow.cfs-cur { padding: 22px 18px 18px !important; border-radius: 20px !important; }
  body.ce-v2.ce-su1 #cfSetup .cfs-cap { font-size: 15px; }

  /* ── reading: the panel takes the player's place ───────────────────── */
  body.ce-v2.ce-su1 #cfSetup.cfs-reading .cfs-frame,
  body.ce-v2.ce-su1 #cfSetup.cfs-reading .cfs-strip,
  body.ce-v2.ce-su1 #cfSetup.cfs-reading .cfs-cap { display: none !important; }
  body.ce-v2.ce-su1 #cfSetup .cfs-stage #cfProgress.cfm-has-stage:not([hidden]) {
    position: relative !important; left: auto; right: auto; top: auto; z-index: auto; width: 100%; box-sizing: border-box;
    margin: 0 !important; max-height: none; border-radius: 18px; box-shadow: none; animation: cfrp-in .36s cubic-bezier(.16, 1, .3, 1) both;
  }
  body.ce-v2.ce-su1 #cfSetup .cfs-stage #cfProgress .cfm-ref .cfm-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  body.ce-v2.ce-su1 #cfSetup .cfs-stage #cfProgress .cfm-ref .cfm-side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
  body.ce-v2.ce-su1 #cfSetup .cfs-stage #cfProgress .cfm-ref .cfm-big-l { font-size: 12px; margin: 0; }
  body.ce-v2.ce-su1 #cfSetup .cfs-stage #cfProgress .cfm-ref .cfm-steps--col { flex-direction: row; flex-wrap: wrap; gap: 4px; margin: 2px 0 0; width: 100%; }
  body.ce-v2.ce-su1 #cfSetup .cfs-stage #cfProgress .cfm-ref .cfm-step { font-size: 12px; padding: 3px 9px 3px 8px; }
  body.ce-v2.ce-su1 #cfSetup .cfs-stage #cfProgress .cfm-ref .cfm-hud { font-size: 12px; }
  body.ce-v2.ce-su1 #cfSetup .cfs-stage #cfProgress .cfm-ref .cfm-title { font-size: 15px; }
  body.ce-v2.ce-su1 #cfSetup .cfs-stage #cfProgress .cfm-ref .cfm-meta { font-size: 13px; }
  body.ce-v2.ce-su1 #cfSetup .cfs-stage #cfProgress.cfm-has-stage > .cf-progress-msg { font-size: 12px; }

  /* ── the clips' loading bars, on the clips card ────────────────────── */
  body.ce-v2.ce-su1 #cfSetup #cfPair #cfFootageDrop #cfFootageProgress:not([hidden]) {
    grid-column: 1 / -1; position: relative; z-index: 2; margin: 14px 0 0 !important;
    padding: 12px 14px !important; border-radius: 14px !important; text-align: left;
  }
  body.ce-v2.ce-su1 #cfSetup #cfFootageDrop #cfFootageProgress .cfm-file-name,
  body.ce-v2.ce-su1 #cfSetup #cfFootageDrop #cfFootageProgress .cfm-file-pct,
  body.ce-v2.ce-su1 #cfSetup #cfFootageDrop #cfFootageProgress .cf-progress-msg { font-size: 12px !important; }
}
