/* css/clips-maker.css — Clips Studio: "How do you want to make this Clip?", the row that says who is on camera, its
 * two sheets (js/clips/clips-studio-maker.js), and the card after a Clip went to Instagram (js/clips/clips-post-ig.js).
 * .cmk-* and .cig-* ONLY (the Studio's classes are its own sheet's: tests/clips-studio-css-namespace.test.js), drawn
 * inside the Studio root, so on its tokens (css/clips-studio.css).
 *
 * The mock-ups (SHEET-B, SHEET-C of 1 Dec 2026) are the phone's dark theme; the web is the Studio's look: the
 * cards are the Film step's "How do you want to appear?" cards (.cst-ap), with the same border, the same picked
 * state and the same dark picture well.
 */

/* ── The first screen ─────────────────────────────────────────────────────── */
.cmk-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; max-width: 820px; }
.cmk-card {
  position: relative; background: #fff; border: 1px solid var(--cst-line-2); border-radius: 20px; padding: 20px;
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.cmk-card.is-on { border: 2px solid var(--cst-ind); background: var(--cst-ind-bg); padding: 19px; }
.cmk-pick {
  display: flex; flex-direction: column; gap: 14px; background: none; border: 0; padding: 0; margin: 0; text-align: left;
  font: inherit; color: inherit; min-width: 0; border-radius: 14px;
}
.cmk-pick:focus-visible { outline: 3px solid var(--cst-ind-ring); outline-offset: 4px; }
/* The picture well: the Film step's dark well (.cst-ap-face), so the two choices read as one family with it. */
.cmk-art {
  height: 210px; border-radius: 14px; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: linear-gradient(170deg, #3a3550, #1b1828);
}
.cmk-art .cart-hero svg { width: auto; height: 160px; }
.cmk-art .cart-card svg { width: auto; height: 150px; }
.cmk-tx { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cmk-t { font-weight: 700; font-size: 20px; }
.cmk-d { font-size: 15px; color: #4a4453; line-height: 1.45; }
/* The round choice mark, top right, as the mock-up draws it: empty, or filled with a tick. */
.cmk-tick {
  position: absolute; top: 14px; right: 14px; z-index: 1; width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid #c9c4d4; background: #fff;
}
.cmk-card.is-on > .cmk-pick .cmk-tick, .cmk-who-o.is-on .cmk-tick {
  border-color: var(--cst-ind); background: var(--cst-ind) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.cmk-record { align-self: flex-start; font-size: 15px; min-height: 44px; padding: 0 2px; }
.cmk-sent { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--cst-ink-2); line-height: 1.45; }
.cmk-sent a { align-self: flex-start; font-size: 15px; }
.cmk-how { max-width: 820px; text-align: center; margin-top: 18px; }
.cmk-how .cmk-how-b { font-size: 15px; min-height: 44px; padding: 0 8px; }
.cmk-foot { max-width: 820px; margin-top: 18px; }

/* ── The row on Script and Film (B6) ──────────────────────────────────────── */
.cmk-row-wrap { margin-top: 18px; }
.cmk-row {
  display: flex; align-items: center; gap: 12px; max-width: 560px; background: #fff; border: 1px solid var(--cst-line-2);
  border-radius: 14px; padding: 8px 8px 8px 14px; min-height: 52px;
}
.cmk-row-ic { flex: none; display: flex; }
.cmk-row-t { flex: 1; min-width: 0; font-size: 15px; }
.cmk-row-k { color: var(--cst-ink-3); }
.cmk-row-go { flex: none; font-size: 15px; min-height: 44px; padding: 0 10px; }

/* ── The two sheets (B5, B7), inside the app's sheet (CBSheet.panel) ──────── */
.cmk-sheet { padding: 4px 0; }
.cmk-how-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.cmk-how-list li { display: flex; align-items: center; gap: 14px; }
.cmk-how-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(170deg, #3a3550, #1b1828); display: flex; align-items: center; justify-content: center; }
.cmk-how-list b { display: block; font-size: 16px; }
.cmk-how-list li > span:last-child > span { font-size: 14.5px; color: var(--cst-ink-2); }
.cmk-who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cmk-who-o {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px; border-radius: 16px;
  border: 1px solid var(--cst-line-2); background: #fff; font: inherit; color: inherit; min-height: 44px;
}
.cmk-who-o.is-on { border: 2px solid var(--cst-ind); background: var(--cst-ind-bg); padding: 13px; }
.cmk-who-o .cmk-tick { top: 10px; right: 10px; }
.cmk-who-art { width: 100%; height: 120px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(170deg, #3a3550, #1b1828); }
.cmk-who-art .cart-card svg { width: auto; height: 96px; }
.cmk-who-o b { font-size: 16px; }
.cmk-sheet .cmk-stays { margin: 14px 0 0; text-align: center; font-size: 14.5px; color: var(--cst-ink-2); }

/* ── After a Clip went to Instagram (SHEET-C) ─────────────────────────────── */
.cig { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 14px; background: #fff; border: 1px solid var(--cst-line-2); }
.cig-on { border-color: rgba(28, 107, 67, .35); }
.cig-top { display: flex; align-items: center; gap: 14px; }
.cig-mk { flex: none; width: 44px; height: 40px; }
.cig-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cig .cig-tx b { font-size: 16px; color: var(--cst-ink); }
.cig-tx span { font-size: 14.5px; color: var(--cst-ink-2); line-height: 1.45; }
.cig-go { align-self: stretch; min-height: 44px; }
.cig-soon .cig-mk { opacity: .45; filter: grayscale(1); }

/* Phone: the clone's card keeps its big picture; "I'll film it myself" is a row, as the mock-up draws it. */
@media (max-width: 760px) {
  .cmk-cards { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 18px; }
  .cmk-card { padding: 14px; border-radius: 16px; }
  .cmk-card.is-on { padding: 13px; }
  .cmk-card-ai .cmk-art { height: 150px; }
  .cmk-card-ai .cmk-art .cart-hero svg { height: 132px; }
  .cmk-card-ai .cmk-tx { align-items: center; text-align: center; }
  .cmk-card-ai .cmk-record { align-self: center; }
  .cmk-card-ai .cmk-sent { text-align: center; align-items: center; }
  .cmk-card-me .cmk-pick { flex-direction: row; align-items: center; gap: 12px; }
  .cmk-card-me .cmk-art { width: 64px; height: 80px; flex: none; border-radius: 10px; }
  .cmk-card-me .cmk-art .cart-card svg { height: 72px; }
  .cmk-t { font-size: 17px; }
  .cmk-d { font-size: 14.5px; }
  .cmk-how { margin-top: 10px; }
  .cmk-who-art { height: 96px; }
  .cmk-who-art .cart-card svg { height: 76px; }
}
