/* copy-edit-desktop.css - Copy an Edit on computers, 1024px and up (2026-11-06).
 * Owner: "for copy and edit portal make it for desktop like the UI. It's stuck
 * looking as small as the mobile version."
 *
 *   cover   .ced (copy-edit-cover-desktop.js): words + button on the left,
 *           a big 16:9 example edit on the right. Replaces the small card.
 *   setup   steps on the left, the player on the right taking the video's
 *           own shape at full column width (copy-edit-setup.js sizes it).
 *   editor  wider clip bin, bigger preview, readable labels, a taller
 *           Effects lane.
 *
 * Everything is inside min-width: 1024px, so phones and tablets keep their
 * layouts exactly. Desktop is dark only. House rules: one blue (#3B82F6),
 * no gradients on controls, 12px type floor, no pills that read as AI-made.
 */

/* ── cover ──────────────────────────────────────────────────────────── */
.ced { display: none; }
@media (min-width: 1024px) {
  .ce-cover .ce-cover-inner { display: none !important; }
  .ce-cover { background: #0A0A0D !important; }
  .ced {
    --ced-ink: #FFFFFF; --ced-ink2: rgba(255, 255, 255, .72); --ced-ink3: rgba(255, 255, 255, .55);
    --ced-l1: #141418; --ced-l2: #1E1E24; --ced-blue: #3B82F6;
    flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto;
    color: var(--ced-ink); font-family: var(--cf-font, Inter, system-ui, -apple-system, "Segoe UI", sans-serif);
  }
  .ced-head {
    flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
    width: min(1440px, 100%); margin: 0 auto; padding: 20px clamp(24px, 4vw, 56px); box-sizing: border-box;
  }
  .ced-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.01em; color: var(--ced-ink); text-decoration: none; }
  .ced-brand img { width: 32px; height: 32px; border-radius: 9px; }
  .ced-home {
    display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 10px;
    background: var(--ced-l2); color: var(--ced-ink); font-size: 14px; font-weight: 700; text-decoration: none;
  }
  .ced-home:hover { background: #262630; }
  .ced-home:focus-visible, .ced-brand:focus-visible { outline: 2px solid var(--ced-blue); outline-offset: 2px; }

  .ced-main {
    flex: 1 0 auto; display: grid; align-items: center;
    grid-template-columns: minmax(340px, 5fr) minmax(0, 7fr); gap: clamp(32px, 4.5vw, 80px);
    width: min(1440px, 100%); margin: 0 auto; padding: 8px clamp(24px, 4vw, 56px) clamp(28px, 5vh, 56px); box-sizing: border-box;
  }
  .ced-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
  .ced-eyebrow { margin: 0 0 14px; font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--ced-blue); }
  .ced-title {
    margin: 0; font-size: clamp(44px, 4.6vw, 76px); font-weight: 800; line-height: .98; letter-spacing: -.045em;
    color: var(--ced-ink); text-wrap: balance; max-width: 11ch;
  }
  .ced-lead { margin: 18px 0 0; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; color: var(--ced-ink2); max-width: 36ch; }
  .ced-go {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 56px; margin-top: 28px; padding: 0 30px; border: 0; border-radius: 14px;
    background: var(--ced-blue); color: #fff; font-family: inherit; font-size: 17px; font-weight: 800; line-height: 1; cursor: pointer;
    transition: background-color .15s ease, transform .15s ease;
  }
  .ced-go svg { width: 15px; height: 15px; fill: #fff; }
  .ced-go:hover { background: #2F74E8; }
  .ced-go:active { transform: scale(.985); }
  .ced-go:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

  .ced-facts { list-style: none; margin: 36px 0 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .ced-facts li { display: flex; flex-direction: column; gap: 6px; padding: 16px 14px; border-radius: 16px; background: var(--ced-l1); min-width: 0; }
  .ced-facts svg { width: 24px; height: 24px; margin-bottom: 4px; fill: none; stroke: var(--ced-blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .ced-facts b { font-size: 15px; font-weight: 800; color: var(--ced-ink); }
  .ced-facts span { font-size: 13px; line-height: 1.4; color: var(--ced-ink3); }

  .ced-media { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
  .ced-frame {
    position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 190px); max-height: calc(100dvh - 190px);
    border-radius: 22px; overflow: hidden; background: #000; isolation: isolate;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 80px rgba(0, 0, 0, .55);
    animation: ced-in .7s cubic-bezier(.16, 1, .3, 1) both;
  }
  .ced-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
  .ced-label {
    position: absolute; left: 14px; top: 14px; z-index: 2; padding: 6px 11px; border-radius: 8px;
    background: rgba(0, 0, 0, .58); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    color: #fff; font-size: 13px; font-weight: 700;
  }
  .ced-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 2; background: rgba(255, 255, 255, .18); }
  .ced-bar i { display: block; height: 100%; background: var(--ced-blue); transform-origin: 0 50%; transform: scaleX(0); }
  .ced-cap { margin: 0; font-size: 14px; color: var(--ced-ink3); }
  .ced-copy > * { animation: ced-up .6s cubic-bezier(.16, 1, .3, 1) both; }
  .ced-copy > :nth-child(2) { animation-delay: .05s; }
  .ced-copy > :nth-child(3) { animation-delay: .1s; }
  .ced-copy > :nth-child(4) { animation-delay: .15s; }
  .ced-copy > :nth-child(5) { animation-delay: .2s; }
  @keyframes ced-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes ced-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
}
/* short laptop screens: keep the button and the video above the fold */
@media (min-width: 1024px) and (max-height: 820px) {
  .ced-head { padding-top: 14px; padding-bottom: 14px; }
  .ced-title { font-size: clamp(40px, 4vw, 60px); }
  .ced-lead { margin-top: 14px; }
  .ced-go { margin-top: 22px; }
  .ced-facts { margin-top: 26px; }
  .ced-facts li { padding: 12px; }
  .ced-facts span { display: none; }
}
@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .ced-frame, .ced-copy > * { animation: none; }
}

/* ── setup ──────────────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  body.ce-v2 .cf-copy-shell[data-stage="setup"] .cf-copy-main { width: min(1440px, 100%) !important; padding: 24px clamp(24px, 4vw, 56px) 48px !important; box-sizing: border-box; }
  body.ce-v2 #cfSetup {
    grid-template-columns: minmax(380px, 460px) minmax(0, 1fr); gap: clamp(32px, 4vw, 72px);
    align-items: center; min-height: calc(100vh - 150px); min-height: calc(100dvh - 150px);
  }
  body.ce-v2 #cfSetup .cfs-side { max-width: none; gap: 12px; }
  body.ce-v2 #cfSetup .cf-copy-hero h1 { font-size: clamp(42px, 3.8vw, 64px) !important; max-width: 11ch; }
  body.ce-v2 #cfSetup .cfs-stage { align-self: center; padding: 24px; border-radius: 28px; gap: 16px; }
  body.ce-v2 #cfSetup .cfs-frame { border-radius: 18px; max-width: 100%; width: 100%; height: auto; aspect-ratio: 16 / 9; }
  body.ce-v2 #cfSetup .cfs-label { font-size: 13px; left: 14px; top: 14px; }
  body.ce-v2 #cfSetup .cfs-strip { max-width: 100%; gap: 8px; }
  body.ce-v2 #cfSetup.cfs-land .cfs-slot { aspect-ratio: 16 / 9; max-width: 120px; border-radius: 8px; }
  body.ce-v2 #cfSetup .cfs-cap { font-size: 15px; }
  body.ce-v2 #cfSetup #cfPair .cf-pair-tag { font-size: 17px !important; }
  body.ce-v2 #cfSetup #cfPair .cf-drop.cfs-open .cf-pair-tag { font-size: 22px !important; }
  body.ce-v2 #cfSetup #cfPair .cf-pair-status, body.ce-v2 #cfSetup #cfPair .cf-drop p { font-size: 14px !important; }
  body.ce-v2 #cfSetup #cfGoRow .cf-go-hint { font-size: 14px !important; }
}

/* ── editor ─────────────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .cf-copy-shell[data-stage="edit"] .cf-copy-main { padding-top: 20px; }
  .cf-copy-shell[data-stage="edit"] .cf-studio { width: calc(100vw - 48px); max-width: 1800px; }
  .cf-ed-bar { margin-bottom: 14px; }
  .cf-ed-title { font-size: 26px; letter-spacing: -.02em; }
  .cf-ed-sub { font-size: 14px; margin-top: 4px; }
  .cf-ed-bar-actions { gap: 10px; }
  .cf-ed-bar-actions #cfRestartBtn { height: 44px; padding: 0 18px; font-size: 14px; }
  .cf-ed-bar-actions #cfGenBtn { min-width: 150px; height: 44px; font-size: 15px; }
  .cf-ed-grid {
    gap: 12px; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    grid-template-rows: minmax(340px, calc(100vh - 540px)) auto; grid-template-rows: minmax(340px, calc(100dvh - 540px)) auto;
  }
  .cf-ed-tab { height: 46px; font-size: 14px; }
  .cf-ed-count { font-size: 13px; }
  .cf-ed-pane { padding: 14px; }
  #cfEdAddClips { min-height: 34px; padding: 0 12px; font-size: 13px; }
  #cfEdBin .cf-tl-bin { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
  #cfEdBin .cf-tl-scene-name { font-size: 12px; padding: 2px 5px; }
  #cfEdBin .cf-tl-scene-dur, #cfEdBin .cf-tl-scene-uses { font-size: 12px; padding: 1px 5px; }
  .cf-ed-pane .cf-tl-binhint { font-size: 13px; }
  .cf-ed-center .cf-tl-pv-bar { font-size: 13px; }
  .cf-ed-center .cf-tl-pv-time, .cf-ed-center .cf-tl-pv-note { font-size: 13px; }

  /* the timeline: readable heads, labels and ticks; a taller Effects lane */
  .cf-ed-bottom .cf-tl { --tl-head-w: 150px; }
  .cf-ed-bottom .cf-tl-tools { padding: 12px 14px; }
  /* cutflux-mobile-polish.css pins these at 11px !important everywhere */
  .cf-ed-bottom .cf-tl-label, .cf-ed-bottom .cf-tl-pct { font-size: 12px !important; }
  .cf-ed-bottom .cf-tl-head { font-size: 12px !important; padding: 0 14px; }
  .cf-ed-bottom .cf-tl-head--ruler, .cf-ed-bottom .cf-tl-ruler { height: 24px; }
  .cf-ed-bottom .cf-tl-head--swap, .cf-ed-bottom .cf-tl-lane--swap { height: 30px; }
  .cf-ed-bottom .cf-tl-head--audio, .cf-ed-bottom .cf-tl-lane--audio { height: 44px; }
  .cf-ed-bottom .cf-tl-head--fx, .cf-ed-bottom .cf-tl-lane--fx { height: 76px; }
  .cf-ed-bottom .cf-tl-tick.is-major { font-size: 12px; }
  .cf-ed-bottom .cf-tl-tag { font-size: 12px; }
  .cf-ed-bottom .cf-tl-swap { font-size: 12px; }
  .cf-ed-bottom .cf-tl-fx { height: 20px; font-size: 12px; line-height: 18px; padding: 0 7px; }
  .cf-tl-insp-sub { font-size: 13px; }
}
/* 900-1023px uses the same two-column setup: wide examples get wide slots there too */
@media (min-width: 900px) and (max-width: 1023px) {
  body.ce-v2 #cfSetup.cfs-land .cfs-slot { aspect-ratio: 16 / 9; max-width: 96px; }
}
