/* Captions - landing page + step-by-step studio. Same dark FlyMotion shell. */

.cap-body {
  --cap-bg: #09090b;
  --cap-card: #111114;
  --cap-card-2: #17171c;
  --cap-line: #ffffff14;
  --cap-line-2: #ffffff24;
  --cap-ink: #f5f6fa;
  --cap-muted: #a2a7b5;
  --cap-blue: #3264f0;
  --cap-blue-2: #648cff;
  --cap-r: 28px;
  --cap-spring: cubic-bezier(0.34, 1.36, 0.64, 1);
  background: var(--cap-bg);
  color: var(--cap-ink);
  font-family: Inter, "Plus Jakarta Sans", system-ui, sans-serif;
}
.cap-body .site-footer { background: var(--cap-bg); border-top-color: var(--cap-line); }

.cap-wrap { width: min(100% - 32px, 1240px); margin: 0 auto; }
.cap-muted { color: var(--cap-muted); font-size: 15px; line-height: 1.6; margin: 0; }

/* ---------- landing ---------- */

.cap-meter { margin-top: 36px; max-width: 520px; padding: 22px 24px; border: 1px solid var(--cap-line); border-radius: 22px; background: #ffffff05; }
.cap-meter-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cap-meter-top strong { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.cap-meter-top span { color: var(--cap-muted); font-size: 13px; font-weight: 600; }
.cap-bar { height: 10px; margin: 14px 0 10px; border-radius: 99px; background: #ffffff10; overflow: hidden; }
.cap-bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cap-blue), var(--cap-blue-2)); transition: width 0.6s var(--cap-spring); }
.cap-meter-foot { display: flex; justify-content: space-between; gap: 12px; color: var(--cap-muted); font-size: 13px; font-weight: 600; }
.cap-meter-foot a { color: #c9d3ff; font-weight: 700; text-decoration: none; }
.cap-meter-foot a:hover { text-decoration: underline; }

.cap-section { padding: 64px 0; }
.cap-h2 { margin: 0 0 28px; font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.cap-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 32px; margin-bottom: 28px; }
.cap-section-head .cap-h2 { margin: 0; }

.cap-projects { display: grid; gap: 12px; }
.cap-project { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 14px 18px 14px 14px; border-radius: 22px; background: var(--cap-card); border: 1px solid var(--cap-line); }
.cap-project-thumb { width: 96px; height: 64px; border-radius: 14px; background: #1c1f29 center / cover no-repeat; }
.cap-project-name { margin: 0; font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap-project-meta { margin: 4px 0 0; color: var(--cap-muted); font-size: 13px; font-weight: 600; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cap-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; background: #ffffff10; color: #dfe4f2; }
.cap-chip.is-done { background: #22c55e22; color: #6ee7a0; }
.cap-chip.is-busy { background: #3264f026; color: #9db5ff; }
.cap-chip.is-bad { background: #ff2d5522; color: #ff8aa0; }
.cap-project-actions { display: flex; gap: 8px; }

.cap-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--cap-line-2); background: #ffffff08; color: #eef1f8; font: 700 14px/1 Inter, sans-serif; text-decoration: none; cursor: pointer; transition: background 0.18s, border-color 0.18s, transform 0.18s; }
.cap-btn:hover:not(:disabled) { background: #ffffff12; border-color: #ffffff40; }
.cap-btn:active:not(:disabled) { transform: scale(0.97); }
.cap-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.cap-btn svg { width: 17px; height: 17px; }
.cap-btn--primary { background: var(--cap-blue); border-color: transparent; color: #fff; }
.cap-btn--primary:hover:not(:disabled) { background: #3d6ff6; border-color: transparent; }
.cap-btn--danger:hover:not(:disabled) { border-color: #ff2d5577; color: #ff9db0; }

/* ---------- studio ---------- */

.cap-body--studio .site-footer { display: none; }
.cap-studio { min-height: 100svh; padding: 96px 0 64px; }
.cap-studio-bar { width: min(100% - 32px, 1100px); margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; }
.cap-back { display: inline-flex; align-items: center; gap: 6px; color: #cfd5e4; text-decoration: none; font-weight: 700; font-size: 14px; }
.cap-back svg { width: 18px; height: 18px; }
.cap-back:hover { color: #fff; }
.cap-stepper { display: flex; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cap-stepper li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 99px; color: #737a8c; font-size: 13px; font-weight: 700; transition: color 0.2s, background 0.2s; }
.cap-stepper li b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #ffffff10; font-size: 11px; font-weight: 900; }
.cap-stepper li.is-done { color: #b7c1d8; }
.cap-stepper li.is-done b { background: #22c55e2e; color: #6ee7a0; }
.cap-stepper li.is-on { color: #fff; background: #ffffff0d; }
.cap-stepper li.is-on b { background: var(--cap-blue); color: #fff; }
.cap-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 99px; background: #ffffff0a; border: 1px solid var(--cap-line); font-size: 13px; font-weight: 700; color: #dfe4f2; white-space: nowrap; }
.cap-pill svg { width: 16px; height: 16px; color: var(--cap-blue-2); }

.cap-stage { width: min(100% - 32px, 760px); margin: 56px auto 0; }
.cap-stage.is-wide { width: min(100% - 32px, 1100px); }
.cap-panel { animation: cap-in 0.42s var(--cap-spring) both; }
@keyframes cap-in { from { opacity: 0; transform: translateY(18px) scale(0.985); } to { opacity: 1; transform: none; } }
.cap-panel-head { text-align: center; margin-bottom: 36px; }
.cap-kicker { margin: 0 0 12px; color: var(--cap-blue-2); font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.cap-panel-title { margin: 0; font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.08; }
.cap-panel-sub { margin: 14px auto 0; max-width: 560px; color: var(--cap-muted); font-size: 16px; line-height: 1.6; }
.cap-panel-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.cap-panel-actions .fm-library-cta { min-height: 64px; padding: 18px 30px; font-size: 18px; }

.cap-drop { position: relative; display: grid; place-items: center; gap: 14px; padding: 64px 32px; border-radius: 32px; border: 2px dashed #ffffff24; background: #ffffff04; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.3s var(--cap-spring); }
.cap-drop:hover, .cap-drop.is-over { border-color: var(--cap-blue-2); background: #3264f00f; }
.cap-drop.is-over { transform: scale(1.01); }
.cap-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cap-drop-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 24px; background: var(--cap-blue); box-shadow: 0 16px 30px -12px #3264f0aa; }
.cap-drop-icon svg { width: 34px; height: 34px; color: #fff; }
.cap-drop strong { font-size: 20px; font-weight: 800; }
.cap-drop span { color: var(--cap-muted); font-size: 14px; font-weight: 600; }

.cap-card { padding: 32px; border-radius: var(--cap-r); background: var(--cap-card); border: 1px solid var(--cap-line); }
.cap-file { display: flex; align-items: center; gap: 18px; }
.cap-file-icon { flex: 0 0 56px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: #3264f022; color: var(--cap-blue-2); }
.cap-file-icon svg { width: 26px; height: 26px; }
.cap-file-name { margin: 0; font-weight: 800; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cap-file-meta { margin: 4px 0 0; color: var(--cap-muted); font-size: 14px; font-weight: 600; }
.cap-progress { margin-top: 24px; }
.cap-progress .cap-bar { height: 12px; margin: 0 0 10px; }
.cap-progress-row { display: flex; justify-content: space-between; color: var(--cap-muted); font-size: 13px; font-weight: 700; }
.cap-cost { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.cap-cost div { padding: 18px 20px; border-radius: 18px; background: #ffffff06; }
.cap-cost dt { color: var(--cap-muted); font-size: 13px; font-weight: 700; }
.cap-cost dd { margin: 6px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.cap-cost .is-bad dd { color: #ff8aa0; }

.cap-langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cap-lang { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--cap-line); background: var(--cap-card); color: #e6e9f2; font: 700 15px/1.2 Inter, sans-serif; cursor: pointer; text-align: left; transition: border-color 0.18s, background 0.18s, transform 0.3s var(--cap-spring); }
.cap-lang:hover { border-color: #ffffff38; }
.cap-lang.is-on { border-color: var(--cap-blue-2); background: #3264f01c; transform: scale(1.02); }
.cap-lang .cap-auto { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--cap-blue), #a855f7); font-size: 11px; font-weight: 900; color: #fff; }
.cap-lang--auto { grid-column: 1 / -1; padding: 20px 22px; }
.cap-lang--auto small { display: block; margin-top: 4px; color: var(--cap-muted); font-weight: 600; font-size: 13px; }

.cap-busy { text-align: center; padding: 56px 32px; }
.cap-ring span { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.cap-busy p { margin: 0; color: var(--cap-muted); font-size: 15px; line-height: 1.6; }
.cap-busy strong { display: block; margin-bottom: 8px; font-size: 20px; color: #fff; }

.cap-lines { display: grid; gap: 10px; max-height: min(58vh, 640px); overflow: auto; padding-right: 6px; }
.cap-line { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: start; }
.cap-line time { padding-top: 15px; color: #6f7689; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.cap-line textarea { width: 100%; min-height: 50px; resize: vertical; padding: 13px 16px; border-radius: 16px; border: 1px solid var(--cap-line); background: var(--cap-card); color: #f1f3f9; font: 600 16px/1.5 Inter, sans-serif; field-sizing: content; transition: border-color 0.18s, background 0.18s; }
.cap-line textarea:focus { outline: 0; border-color: var(--cap-blue-2); background: #15161c; }
.cap-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; padding: 14px 18px; border-radius: 16px; background: #ffb02010; border: 1px solid #ffb0202e; color: #f3e3c2; font-size: 14px; line-height: 1.55; }
.cap-note svg { flex: 0 0 18px; width: 18px; height: 18px; color: #ffb020; margin-top: 2px; }

.cap-style-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cap-style-opt { position: relative; padding: 0; border-radius: 24px; border: 2px solid transparent; background: var(--cap-card); cursor: pointer; overflow: hidden; text-align: left; color: inherit; font: inherit; transition: border-color 0.2s, transform 0.35s var(--cap-spring); }
.cap-style-opt:hover { transform: translateY(-2px); }
.cap-style-opt.is-on { border-color: var(--cap-blue-2); transform: scale(1.02); }
.cap-style-opt .cap-frame { border-radius: 0; }
.cap-style-opt-name { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 16px; font-weight: 800; font-size: 16px; }
.cap-check { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--cap-blue); color: #fff; opacity: 0; transform: scale(0.5); transition: opacity 0.2s, transform 0.35s var(--cap-spring); }
.cap-check svg { width: 14px; height: 14px; }
.cap-style-opt.is-on .cap-check { opacity: 1; transform: none; }
.cap-accents { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.cap-accents p { margin: 0 8px 0 0; align-self: center; color: var(--cap-muted); font-weight: 700; font-size: 14px; }
.cap-swatch { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #09090b; box-shadow: 0 0 0 2px transparent; background: var(--c); cursor: pointer; transition: box-shadow 0.18s, transform 0.3s var(--cap-spring); }
.cap-swatch.is-on { box-shadow: 0 0 0 2px #fff; transform: scale(1.1); }

.cap-frame { position: relative; overflow: hidden; border-radius: 22px; background: #1a1d27 center / cover no-repeat; container-type: inline-size; }
.cap-frame .cap-demo { position: absolute; left: 7%; right: 7%; transform: translateY(-50%); }
.cap-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#00000014, #00000030); pointer-events: none; }
.cap-frame .cap-demo { z-index: 1; }

.cap-place { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: center; }
.cap-place .cap-frame { max-height: 64vh; margin: 0 auto; cursor: ns-resize; touch-action: none; }
.cap-place .cap-frame .cap-demo { cursor: grab; }
.cap-place-hint { position: absolute; left: 50%; bottom: 12px; z-index: 2; transform: translateX(-50%); padding: 7px 12px; border-radius: 99px; background: #000000a8; color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; pointer-events: none; }
.cap-guide { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed #ffffff55; z-index: 1; pointer-events: none; }
.cap-controls { display: grid; gap: 26px; }
.cap-controls h3 { margin: 0 0 12px; font-size: 14px; font-weight: 800; color: #cfd5e4; }
.cap-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px; border-radius: 16px; background: #ffffff08; }
.cap-seg button { min-height: 42px; border: 0; border-radius: 12px; background: transparent; color: #b8bfd0; font: 800 14px/1 Inter, sans-serif; cursor: pointer; transition: background 0.2s, color 0.2s; }
.cap-seg button.is-on { background: #ffffff18; color: #fff; }

.cap-done { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.cap-done video { width: 100%; max-height: 70vh; border-radius: 24px; background: #000; display: block; }
.cap-done-side { display: grid; gap: 12px; }
.cap-done-side .fm-library-cta { width: 100%; min-height: 64px; font-size: 18px; }
.cap-done-side .cap-btn { width: 100%; min-height: 52px; }
.cap-done-side p { margin: 4px 0 0; color: var(--cap-muted); font-size: 13px; line-height: 1.55; }

.cap-error { margin: 0 0 18px; padding: 14px 18px; border-radius: 16px; background: #ff2d5514; border: 1px solid #ff2d5533; color: #ffb3c1; font-size: 14px; font-weight: 600; line-height: 1.5; }

.cap-login { text-align: center; padding: 56px 32px; }
.cap-login h2 { margin: 0 0 12px; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.cap-login p { margin: 0 auto; max-width: 440px; color: var(--cap-muted); line-height: 1.6; }

@media (max-width: 1080px) {
  .cap-hero-grid { grid-template-columns: 1fr; }
  .cap-phone { width: min(78vw, 300px); }
  .cap-steps, .cap-style-grid, .cap-plan-row, .cap-style-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap-place, .cap-done { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .cap-hero { padding-top: 104px; }
  .cap-steps, .cap-plan-row { grid-template-columns: 1fr; }
  .cap-studio-bar { grid-template-columns: auto auto; }
  .cap-stepper { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; }
  .cap-stepper li span { display: none; }
  .cap-stepper li.is-on span { display: inline; }
  .cap-project { grid-template-columns: 72px minmax(0, 1fr); }
  .cap-project-thumb { width: 72px; height: 52px; }
  .cap-project-actions { grid-column: 1 / -1; }
  .cap-card { padding: 22px; }
  .cap-cost { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .cap-panel, .cap-demo .cap-chunk.is-pop { animation: none; }
}

/* ---------- landing v2: headline, minutes, drop ---------- */

.cap-hero { position: relative; overflow: clip; min-height: min(100svh, 980px); display: grid; align-items: center; padding: 128px 0 72px; }
.cap-hero::before { content: ""; position: absolute; left: 50%; top: 38%; width: min(1100px, 120vw); aspect-ratio: 1.6; transform: translate(-50%, -50%); background: radial-gradient(closest-side, #3264f02e, transparent 70%); pointer-events: none; }
.cap-hero-inner { position: relative; text-align: center; display: grid; justify-items: center; }
.cap-title { margin: 0; max-width: 15ch; font-family: "Dela Gothic One", Inter, sans-serif; font-weight: 400; font-size: clamp(44px, 7.4vw, 108px); line-height: 1.06; letter-spacing: -0.02em; }
.cap-title .fm-mark { --mark: #648cff; }
.cap-title-chip { display: inline-block; margin-left: 0.08em; padding: 0.02em 0.26em 0.1em; border-radius: 0.24em; background: #ffe600; color: #0b0b0f; transform: rotate(-3deg); box-shadow: 0 0.12em 0 #00000066, 0 18px 40px -16px #ffe60099; animation: cap-chip-in 1.1s 0.25s both; }
@keyframes cap-chip-in {
  0% { opacity: 0; transform: rotate(-3deg) scale(0.55); }
  9% { opacity: 1; }
  22% { transform: rotate(-3deg) scale(1.13); }
  42% { transform: rotate(-3deg) scale(0.97); }
  62% { transform: rotate(-3deg) scale(1.01); }
  100% { opacity: 1; transform: rotate(-3deg) scale(1); }
}
.cap-lead { max-width: 560px; margin: 30px auto 0; color: #c3c8d4; font-size: 18px; line-height: 1.6; font-weight: 500; }
.cap-minutes-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.cap-minutes { display: inline-flex; align-items: center; gap: 10px; margin-top: 0; padding: 11px 18px; border-radius: 99px; background: #ffffff0a; border: 1px solid var(--cap-line); font-size: 15px; font-weight: 700; color: #eef1f8; }
.cap-minutes svg { width: 18px; height: 18px; color: var(--cap-blue-2); }
.cap-minutes a { color: #9db5ff; text-decoration: none; margin-left: 4px; }
.cap-hero-drop { width: min(100%, 720px); margin-top: 36px; }
.cap-drop--hero { padding: 56px 32px; border-radius: 34px; background: #ffffff05; }
.cap-upload-card { text-align: left; }

.fm-mark { position: relative; display: inline-block; white-space: nowrap; isolation: isolate; }
.fm-mark::after { content: ""; position: absolute; pointer-events: none; left: -3%; width: 106%; top: 98%; height: .2em; background: var(--mark, #648cff); -webkit-mask: var(--mark-shape) center / 100% 100% no-repeat; mask: var(--mark-shape) center / 100% 100% no-repeat; }
.fm-mark--wave { --mark-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16' preserveAspectRatio='none'%3E%3Cpath d='M3 9 Q 10 3 17 9 T 31 9 T 45 9 T 59 9 T 73 9 T 87 9 T 101 9 T 115 9' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ---------- studio v2 ---------- */

.cap-stage { display: grid; }
.cap-stage > .cap-panel { grid-area: 1 / 1; }
.cap-panel.is-leaving { animation: cap-out 0.24s ease-in both; pointer-events: none; }
@keyframes cap-out { to { opacity: 0; transform: translateY(-10px) scale(0.99); filter: blur(4px); } }

.cap-flag { width: 28px; height: 21px; flex: 0 0 28px; border-radius: 5px; object-fit: cover; box-shadow: 0 0 0 1px #ffffff1f; }
.cap-globe { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #3264f026; color: var(--cap-blue-2); }
.cap-globe svg { width: 18px; height: 18px; }

.cap-ring { position: relative; width: 156px; height: 156px; margin: 0 auto 26px; }
.cap-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; filter: drop-shadow(0 0 10px #648cff59); }
.cap-ring-track { fill: none; stroke: #ffffff10; stroke-width: 9; }
.cap-ring-fill { fill: none; stroke: var(--cap-blue-2); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; }
.cap-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 32px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

.cap-textstep { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 28px; align-items: start; }
.cap-player { position: sticky; top: 96px; }
.cap-player video, .cap-player .cap-frame { display: block; width: 100%; max-height: 64vh; border-radius: 24px; background: #000; }
.cap-words-col { min-width: 0; }
.cap-words-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.cap-words-btns { display: flex; gap: 8px; flex: 0 0 auto; }
.cap-hint { margin: 0; color: var(--cap-muted); font-size: 14px; line-height: 1.5; }
.cap-btn--sm { min-height: 38px; padding: 0 14px; font-size: 13px; border-radius: 12px; flex: 0 0 auto; }
.cap-lines { display: grid; gap: 8px; max-height: min(62vh, 680px); overflow: auto; padding: 4px 6px 4px 2px; }
.cap-wline { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 12px; border-radius: 18px; background: var(--cap-card); border: 1px solid var(--cap-line); }
.cap-wline time { padding-top: 8px; color: #6f7689; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cap-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cap-chip-w { position: relative; display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 11px; background: #ffffff0d; border: 1px solid #ffffff14; color: #f1f3f9; font-size: 15px; font-weight: 700; cursor: text; transition: background 0.15s, border-color 0.15s, transform 0.3s var(--cap-spring), opacity 0.16s; }
.cap-chip-w:hover { background: #3264f022; border-color: #648cff66; }
.cap-chip-w:focus-visible { outline: 2px solid #9cb9ff; outline-offset: 2px; }
.cap-chip-w.is-live { background: var(--cap-blue); border-color: transparent; color: #fff; transform: scale(1.06); }
.cap-chip-w.is-removing { opacity: 0; transform: scale(0.6); }
.cap-chip-x { position: absolute; top: -7px; right: -7px; display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: #ff2d55; color: #fff; font: 800 13px/1 Inter, sans-serif; cursor: pointer; opacity: 0; transform: scale(0.6); transition: opacity 0.15s, transform 0.25s var(--cap-spring); }
.cap-chip-w:hover .cap-chip-x, .cap-chip-w:focus-within .cap-chip-x { opacity: 1; transform: none; }
.cap-chip-input { min-width: 3ch; padding: 7px 10px; border-radius: 11px; border: 2px solid var(--cap-blue-2); background: #15161c; color: #fff; font: 700 15px/1.2 Inter, sans-serif; outline: 0; }
.cap-split-preview { align-self: center; color: #9db5ff; font-size: 12px; font-weight: 800; }
.cap-split-preview.is-del { color: #ff8aa0; }

.cap-canvas { display: block; max-width: 100%; border-radius: 22px; background: #1a1d27; }
.cap-count-pick { display: grid; gap: 10px; }
.cap-count-pick button { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 18px; border: 1px solid var(--cap-line); background: var(--cap-card); color: #e6e9f2; font: 700 15px/1.2 Inter, sans-serif; cursor: pointer; text-align: left; transition: border-color 0.18s, background 0.18s, transform 0.3s var(--cap-spring); }
.cap-count-pick button b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: #ffffff0d; font-size: 18px; font-weight: 900; }
.cap-count-pick button.is-on { border-color: var(--cap-blue-2); background: #3264f01c; transform: scale(1.02); }
.cap-count-pick button.is-on b { background: var(--cap-blue); color: #fff; }
.cap-place .cap-canvas { margin: 0 auto; }
.cap-drag { position: relative; margin: 0 auto; max-width: 100%; border-radius: 22px; overflow: hidden; cursor: ns-resize; touch-action: none; }
.cap-style-opt .cap-canvas { border-radius: 0; margin: 0 auto; }

@media (max-width: 1080px) {
  .cap-textstep { grid-template-columns: 1fr; }
  .cap-player { position: static; }
  .cap-player video { max-height: 42vh; }
}
.cap-player video { object-fit: contain; height: auto; }
.cap-lang .cap-flag { width: 28px; height: 21px; flex: 0 0 28px; border-radius: 5px; object-fit: cover; }

/* ---------- custom player ---------- */
.fm-player { position: relative; overflow: hidden; border-radius: 24px; background: #000; user-select: none; -webkit-user-select: none; }
.fm-player video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.fm-player-big { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 76px; height: 76px; margin: -38px 0 0 -38px; border: 0; border-radius: 50%; background: #ffffffe6; color: #0b0b0f; cursor: pointer; box-shadow: 0 18px 40px -12px #000c; transition: transform 0.35s var(--cap-spring), opacity 0.2s; }
.fm-player-big svg { width: 30px; height: 30px; margin-left: 4px; }
.fm-player-big:hover { transform: scale(1.06); }
.fm-player.is-playing .fm-player-big { opacity: 0; transform: scale(0.7); pointer-events: none; }
.fm-player-bar { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 16px; background: #0b0b0fcc; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; transition: opacity 0.25s, transform 0.3s var(--cap-spring); }
.fm-player.is-playing.is-idle .fm-player-bar { opacity: 0; transform: translateY(8px); pointer-events: none; }
.fm-player.is-playing.is-idle { cursor: none; }
.fm-player-btn { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; }
.fm-player-btn:hover { background: #ffffff1a; }
.fm-player-btn svg { width: 18px; height: 18px; }
.fm-player-time { flex: 0 0 auto; font: 700 12px/1 Inter, sans-serif; font-variant-numeric: tabular-nums; color: #dfe4f2; }
.fm-player-track { position: relative; flex: 1 1 auto; height: 24px; cursor: pointer; touch-action: none; }
.fm-player-track::before, .fm-player-track i, .fm-player-track b { content: ""; position: absolute; left: 0; top: 50%; height: 5px; margin-top: -2.5px; border-radius: 99px; }
.fm-player-track::before { right: 0; background: #ffffff24; }
.fm-player-track b { background: #ffffff38; }
.fm-player-track i { background: var(--cap-blue-2, #648cff); }
.fm-player-track i::after { content: ""; position: absolute; right: -7px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px #0008; transform: scale(0); transition: transform 0.2s var(--cap-spring); }
.fm-player-track:hover i::after, .fm-player.is-seeking .fm-player-track i::after { transform: scale(1); }
.cap-done { grid-template-columns: minmax(0, 1fr) 320px; align-items: center; }
.cap-done .fm-player { margin: 0 auto; }
.cap-player .fm-player { margin: 0 auto; }
.cap-done-note { margin: 2px 0 6px !important; color: var(--cap-muted); font-size: 14px !important; line-height: 1.55; text-align: center; }
.cap-studio .cap-stage { margin-top: 36px; }
.cap-done { grid-template-columns: auto minmax(280px, 340px); justify-content: center; gap: 40px; }
.cap-done-side .fm-library-cta { min-height: 72px; font-size: 20px; }
.cap-done-side .cap-btn { min-height: 56px; font-size: 15px; }
@media (max-width: 1080px) { .cap-done { grid-template-columns: 1fr; } }
.fm-player { container-type: inline-size; }
@container (max-width: 300px) {
  .fm-player-time { display: none; }
  .fm-player-bar { left: 8px; right: 8px; bottom: 8px; gap: 4px; padding: 6px 8px; }
}
@media (max-height: 860px) {
  .cap-studio { padding-top: 88px; }
  .cap-studio .cap-stage { margin-top: 20px; }
  .cap-panel-head { margin-bottom: 22px; }
  .cap-kicker { margin-bottom: 8px; }
  .cap-panel-title { font-size: clamp(28px, 3.2vw, 38px); }
  .cap-panel-sub { margin-top: 8px; font-size: 15px; }
  .cap-panel-actions { margin-top: 22px; }
  .cap-panel-actions .fm-library-cta { min-height: 56px; padding: 14px 26px; }
}

/* ---------- style step tools ---------- */
.cap-style-tools { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 22px; margin-top: 26px; }
.cap-style-tools .cap-accents { margin-top: 0; }
.cap-cz-open { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; border-radius: 99px; border: 1px solid #ffffff24; background: #ffffff0a; color: #eef1f8; font: 700 14px/1 Inter, sans-serif; cursor: pointer; transition: background .18s, border-color .18s, transform .3s var(--cap-spring); }
.cap-cz-open:hover { background: #ffffff14; border-color: #648cff88; transform: translateY(-1px); }
.cap-cz-open svg { width: 18px; height: 18px; color: #8fa9ff; }
.cap-cz-open em { padding: 3px 8px; border-radius: 99px; background: #3264f0; color: #fff; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.cap-cz-active { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 14px 0 0; color: #a7f0c4; font-size: 14px; font-weight: 700; }
.cap-cz-active svg { width: 16px; height: 16px; }
.cap-cz-active button { margin-left: 6px; padding: 0; border: 0; background: none; color: #9db5ff; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- personalisation modal ---------- */
.cz-dialog { position: fixed; inset: 0; margin: auto; width: fit-content; height: fit-content; max-width: none; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; color: #f5f6fa; }
.cz-dialog::backdrop { background: #000b; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: czBack .22s ease both; }
.cz-dialog.is-closing::backdrop { animation: czBackOut .18s ease both; }
.cz-card { display: grid; grid-template-columns: auto minmax(340px, 400px); width: min(1040px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); box-sizing: border-box; border-radius: 32px; overflow: hidden; background: linear-gradient(180deg, #17171c, #101013); border: 1px solid #ffffff17; box-shadow: 0 50px 120px -30px #000, inset 0 1px 0 #ffffff0d; font-family: Inter, "Plus Jakarta Sans", system-ui, sans-serif; animation: czIn .5s cubic-bezier(.34, 1.36, .64, 1) both; }
.cz-dialog.is-closing .cz-card { animation: czOut .18s ease-in both; }
.cz-stage { display: grid; place-items: center; min-width: 0; padding: 22px; background: radial-gradient(120% 90% at 50% 0%, #22305a, #0c0e15 70%); }
.cz-stage .cap-canvas { border-radius: 22px; box-shadow: 0 30px 60px -24px #000; max-width: 100%; }
.cz-side { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid #ffffff10; }
.cz-head { display: flex; justify-content: space-between; gap: 16px; padding: 26px 26px 10px; }
.cz-head h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.025em; }
.cz-head p { margin: 4px 0 0; color: #a2a7b5; font-size: 14px; }
.cz-x { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid #ffffff17; border-radius: 12px; background: #ffffff08; color: #cfd5e4; font-size: 22px; line-height: 1; cursor: pointer; }
.cz-x:hover { background: #ffffff14; color: #fff; }
.cz-controls { display: grid; gap: 18px; padding: 12px 26px 18px; overflow-y: auto; overscroll-behavior: contain; }
.cz-row { display: grid; gap: 10px; }
.cz-row--inline { grid-template-columns: 1fr auto; align-items: center; }
.cz-label { font-size: 13px; font-weight: 800; color: #dfe4f2; letter-spacing: .01em; }
.cz-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.cz-sw { position: relative; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 2px solid #ffffff1f; background: var(--c); cursor: pointer; transition: transform .3s var(--cap-spring), box-shadow .18s; }
.cz-sw:hover { transform: scale(1.08); }
.cz-sw.is-on { box-shadow: 0 0 0 2px #101013, 0 0 0 4px #fff; }
.cz-sw--pick { background: conic-gradient(from 0deg, #ff2d55, #ffe600, #22e07a, #00e5ff, #3264f0, #a855f7, #ff2d55); color: #fff; }
.cz-sw--pick.is-on { background: var(--c); }
.cz-sw--pick svg { width: 16px; height: 16px; filter: drop-shadow(0 1px 2px #0009); }
.cz-sw--pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.cz-range { display: grid; grid-template-columns: 1fr 52px; align-items: center; gap: 12px; }
.cz-range output { color: #cfd5e4; font-size: 13px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.cz-range input { --fill: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin: 0; border-radius: 99px; background: linear-gradient(90deg, #648cff var(--fill), #ffffff1f var(--fill)); outline: 0; cursor: pointer; }
.cz-range input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px #000a; border: 0; transition: transform .2s; }
.cz-range input::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px #000a; border: 0; }
.cz-range input:active::-webkit-slider-thumb { transform: scale(1.15); }
.cz-toggle { position: relative; width: 48px; height: 28px; padding: 0; border: 0; border-radius: 99px; background: #ffffff24; cursor: pointer; transition: background .2s; }
.cz-toggle i { position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px #0007; transition: transform .35s var(--cap-spring); }
.cz-toggle.is-on { background: #3264f0; }
.cz-toggle.is-on i { transform: translateX(20px); }
.cz-foot { display: flex; align-items: center; gap: 10px; padding: 16px 26px 24px; border-top: 1px solid #ffffff10; }
.cz-reset { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; padding: 0; border: 0; background: none; color: #a2a7b5; font: 700 13px/1 Inter, sans-serif; cursor: pointer; }
.cz-reset:hover { color: #fff; }
.cz-reset svg { width: 15px; height: 15px; }
.cz-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 16px; border: 1px solid #ffffff1c; background: #ffffff0a; color: #eef1f8; font: 700 15px/1 Inter, sans-serif; text-decoration: none; cursor: pointer; transition: background .18s, transform .2s; }
.cz-btn:hover { background: #ffffff14; }
.cz-btn:active { transform: scale(.97); }
.cz-btn.is-primary { border-color: transparent; background: linear-gradient(135deg, #5b84ff, #3264f0 55%, #2a55d0); color: #fff; box-shadow: 0 12px 24px -12px #3264f0cc; min-width: 120px; }
.cz-lock { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 12px 12px 12px 16px; border-radius: 18px; background: linear-gradient(135deg, #3264f01f, #a855f71a); border: 1px solid #648cff40; }
.cz-lock > svg { width: 22px; height: 22px; color: #9db5ff; }
.cz-lock strong { display: block; font-size: 14px; font-weight: 800; }
.cz-lock span { display: block; margin-top: 2px; color: #b9c2d8; font-size: 12.5px; line-height: 1.4; }
.cz-lock .cz-btn { min-height: 44px; padding: 0 16px; font-size: 14px; min-width: 0; }
.cz-foot:has(.cz-lock) .cz-reset { display: none; }
@keyframes czIn { 0% { opacity: 0; transform: translateY(18px) scale(.95); } 40% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes czOut { to { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes czBack { from { opacity: 0; } }
@keyframes czBackOut { to { opacity: 0; } }
@media (max-width: 860px) {
  .cz-card { grid-template-columns: 1fr; overflow-y: auto; }
  .cz-stage .cap-canvas { height: min(42vh, 420px) !important; width: auto !important; }
  .cz-side { border-left: 0; border-top: 1px solid #ffffff10; }
}

/* ---------- done screen v3 ---------- */
.cap-done2 { display: grid; grid-template-columns: auto minmax(300px, 380px); justify-content: center; align-items: center; gap: 48px; }
.cap-done2-media { position: relative; }
.cap-done2-media::before { content: ""; position: absolute; inset: 8% -6% -4%; border-radius: 40px; background: radial-gradient(closest-side, #3264f055, transparent); filter: blur(30px); z-index: -1; }
.cap-done2-media .fm-player { box-shadow: 0 40px 80px -30px #000, 0 0 0 1px #ffffff14; }
.cap-done2-card { display: grid; gap: 18px; padding: 32px; border-radius: 30px; background: linear-gradient(180deg, #17171c, #111114); border: 1px solid #ffffff14; box-shadow: 0 30px 70px -30px #000; }
.cap-done2-badge { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 7px 12px 7px 9px; border-radius: 99px; background: #22c55e1f; color: #7ef0ad; font-size: 13px; font-weight: 800; }
.cap-done2-badge svg { width: 16px; height: 16px; }
.cap-done2-card h1 { margin: -4px 0 0; font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.cap-done2-file { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 20px; background: #ffffff07; border: 1px solid #ffffff10; }
.cap-done2-file .cap-file-name { font-size: 15px; }
.cap-done2-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.cap-done2-meta span { padding: 3px 9px; border-radius: 99px; background: #ffffff0d; color: #c3c9d6; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cap-done2-expiry-top { display: flex; align-items: center; gap: 8px; color: #cfd5e4; font-size: 14px; font-weight: 700; }
.cap-done2-expiry-top svg { width: 17px; height: 17px; color: #ffb020; }
.cap-done2-expiry .cap-bar { height: 6px; margin: 10px 0 0; }
.cap-done2-expiry .cap-bar > i { background: linear-gradient(90deg, #ffb020, #ffd166); }
.cap-done2-dl { width: 100%; min-height: 70px !important; font-size: 19px !important; }
.cap-done2-new { width: 100%; min-height: 52px; gap: 8px; }
.cap-done2-new svg { width: 16px; height: 16px; }
@media (max-width: 1080px) { .cap-done2 { grid-template-columns: 1fr; gap: 28px; } }
.cz-card { grid-template-columns: auto minmax(360px, 420px); }
.cz-sw { width: 30px; height: 30px; }
.cz-swatches { gap: 7px; }
.cz-lock { grid-template-columns: auto 1fr; row-gap: 12px; padding: 16px; }
.cz-lock .cz-btn { grid-column: 1 / -1; width: 100%; min-height: 48px; }
.cz-lock strong { font-size: 15px; }
.cap-style-tools { margin-top: 20px; }

/* Plan name exactly like the header pill: display font, uppercase, plan colour (Lite = #00c8ff) */
.fm-plan-tag { font-family: "Dela Gothic One", Inter, sans-serif; font-weight: 400; font-style: normal; text-transform: uppercase; letter-spacing: .02em; color: #00c8ff; }
.cap-cz-open em.fm-plan-tag { padding: 0; background: none; font-size: 12px; line-height: 1; }
.cz-lock { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 14px 16px; }
.cz-lock > svg { flex: 0 0 auto; }
.cz-lock strong { flex: 1 1 auto; font-size: 15px; font-weight: 800; }
.cz-lock strong .fm-plan-tag { font-size: 14px; }
.cz-lock .cz-btn { flex: 1 1 100%; }
.cz-lock .fm-plan-tag, .cap-cz-open .fm-plan-tag { display: inline; margin: 0; color: #00c8ff; }
.cap-done2 { grid-template-columns: minmax(0, auto) minmax(300px, 380px); }
.cap-done2:has(.fm-player[style*='100vw']) .cap-done2-media { justify-self: end; }

/* ---------- FlyMotion colour picker ---------- */
.cz-sw--pick { border: 2px solid #ffffff1f; }
.cz-picker { position: fixed; z-index: 10; width: 280px; box-sizing: border-box; padding: 14px; border-radius: 22px; background: #1b1b21; border: 1px solid #ffffff1f; box-shadow: 0 30px 60px -20px #000, inset 0 1px 0 #ffffff0d; font-family: Inter, sans-serif; animation: czPickIn .32s cubic-bezier(.34, 1.42, .64, 1) both; }
.cz-picker.is-closing { animation: czPickOut .15s ease-in both; }
.cz-picker-sv { --hue: red; position: relative; height: 160px; border-radius: 14px; background: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, var(--hue)); cursor: crosshair; touch-action: none; }
.cz-picker-sv i, .cz-picker-hue i { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 8px #000a; pointer-events: none; box-sizing: border-box; }
.cz-picker-hue { position: relative; height: 14px; margin-top: 14px; border-radius: 99px; background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); cursor: pointer; touch-action: none; }
.cz-picker-hue i { top: 50%; }
.cz-picker-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: end; margin-top: 14px; }
.cz-picker-prev { width: 40px; height: 40px; border-radius: 12px; box-shadow: inset 0 0 0 1px #ffffff26; }
.cz-picker-row label { display: grid; gap: 4px; }
.cz-picker-row label span { color: #8b93a6; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cz-picker-row input { width: 100%; box-sizing: border-box; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid #ffffff1f; background: #0b0b0e; color: #fff; font: 700 14px/1 Inter, sans-serif; letter-spacing: .04em; outline: 0; }
.cz-picker-row input:focus { border-color: #648cff; }
.cz-picker-ok { height: 40px; padding: 0 14px; border-radius: 12px; border: 0; background: #3264f0; color: #fff; font: 800 13px/1 Inter, sans-serif; cursor: pointer; }
@keyframes czPickIn { from { opacity: 0; transform: translateY(-6px) scale(.94); } }
@keyframes czPickOut { to { opacity: 0; transform: translateY(-4px) scale(.97); } }

/* ---------- saved looks ---------- */
.cap-looks-bar { display: flex; justify-content: center; margin: -14px 0 22px; }
.cap-looks-toggle { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 16px; border-radius: 99px; border: 1px solid #ffffff24; background: #ffffff0a; color: #eef1f8; font: 700 14px/1 Inter, sans-serif; cursor: pointer; transition: background .18s, border-color .18s, transform .3s var(--cap-spring); }
.cap-looks-toggle:hover { background: #ffffff14; border-color: #648cff88; }
.cap-looks-toggle svg { width: 17px; height: 17px; color: #8fa9ff; }
.cap-looks-toggle b { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 99px; background: #3264f0; color: #fff; font-size: 12px; }
.cap-looks-toggle.is-back svg { color: #cfd5e4; }
.cap-style-pick.is-saved { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.cap-style-opt-name em { margin-left: 6px; font-style: normal; color: #9db5ff; font-size: 13px; font-weight: 700; }
.cap-style-opt-name > span:first-child { flex: 1 1 auto; text-align: left; }
.cap-look-del { display: grid; place-items: center; width: 30px; height: 30px; margin-right: 8px; border-radius: 10px; color: #8b93a6; transition: background .18s, color .18s; }
.cap-look-del:hover { background: #ff2d5522; color: #ff8aa0; }
.cap-look-del svg { width: 16px; height: 16px; }
.cz-btn { gap: 8px; }
.cz-btn svg { width: 17px; height: 17px; }
.cz-btn.is-saved { border-color: #22c55e66; background: #22c55e1f; color: #a7f0c4; }
.cz-btn.is-saved:disabled { opacity: 1; cursor: default; }

/* done screen v4: no card, just file, expiry and actions */
.cap-done2 { grid-template-columns: minmax(0, auto) minmax(0, 360px); }
.cap-done2-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; width: min(360px, 100%); }
.cap-done2-info { min-width: 0; }
.cap-done2-file { min-width: 0; }
.cap-done2-file .cap-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* modal footer: two equal buttons, never wrapping; "Domyślne" lives in the header */
.cz-head-actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.cz-head .cz-reset { margin: 0; }
.cz-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cz-foot .cz-btn { min-width: 0; padding: 0 14px; white-space: nowrap; }
.cz-foot .cz-btn span { overflow: hidden; text-overflow: ellipsis; }
.cz-foot:has(.cz-lock) { grid-template-columns: 1fr; }
.cz-foot { grid-template-columns: minmax(0, 1.6fr) minmax(104px, 1fr); }
.cz-foot .cz-btn { font-size: 14px; padding: 0 12px; }

/* saved looks: centred, fixed-width cards */
.cap-style-pick.is-saved { display: flex; flex-wrap: wrap; justify-content: center; }
.cap-style-pick.is-saved .cap-style-opt { width: min(100%, 262px); }
.cap-style-opt-name > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* naming a look in the modal footer */
.cz-foot.is-naming { grid-template-columns: 1fr 1fr; row-gap: 8px; }
.cz-name { grid-column: 1 / -1; display: grid; gap: 6px; }
.cz-name span { font-size: 13px; font-weight: 800; color: #dfe4f2; }
.cz-name input { height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid #ffffff1f; background: #0b0b0e; color: #fff; font: 600 15px/1 Inter, sans-serif; outline: 0; }
.cz-name input:focus { border-color: #648cff; }
.cz-name-err { grid-column: 1 / -1; margin: 0; min-height: 0; color: #ff9db0; font-size: 13px; font-weight: 600; }
.cz-name-err:empty { display: none; }

/* words-per-screen and position steps: preview and controls side by side, centred */
.cap-place { grid-template-columns: auto minmax(260px, 320px); justify-content: center; align-items: center; gap: 48px; }
.cap-place > .cap-canvas, .cap-place > .cap-drag { margin: 0; }
@media (max-width: 1080px) {
  .cap-place { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 24px; }
  .cap-place > .cap-canvas, .cap-place > .cap-drag { max-width: 100%; }
  .cap-place .cap-controls { width: min(100%, 420px); }
}

/* "Your videos": 3 newest, the rest behind a button; lazy thumbnails */
.cap-project-thumb { overflow: hidden; }
.cap-project-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cap-projects-more { justify-self: center; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 4px; padding: 0 18px; border-radius: 99px; border: 1px solid #ffffff1f; background: #ffffff08; color: #dfe4f2; font: 700 14px/1 Inter, sans-serif; cursor: pointer; transition: background .18s, border-color .18s; }
.cap-projects-more:hover { background: #ffffff12; border-color: #ffffff38; }
.cap-projects-more svg { width: 17px; height: 17px; }

/* waiting in the queue: the ring spins, no percentage */
.cap-ring-wait { position: absolute; inset: 0; display: none; place-items: center; color: #9db5ff; }
.cap-ring-wait svg { width: 40px; height: 40px; }
.cap-busy.is-queued .cap-ring span { display: none; }
.cap-busy.is-queued .cap-ring-wait { display: grid; }
.cap-busy.is-queued .cap-ring svg { animation: capQueueSpin 1.4s linear infinite; }
.cap-busy.is-queued .cap-ring-fill { stroke-dashoffset: 250 !important; }
@keyframes capQueueSpin { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }
@media (prefers-reduced-motion: reduce) { .cap-busy.is-queued .cap-ring svg { animation: none; } }
/* the clock in the middle stays upright (ring rules target only the ring itself) */
.cap-ring .cap-ring-wait svg { transform: none !important; animation: none !important; filter: none !important; overflow: visible; }
.cap-busy.is-queued .cap-ring > svg { animation: capQueueSpin 1.4s linear infinite; }
.cap-busy.is-queued .cap-ring-wait svg { animation: none !important; }

/* Next to the minutes left, for accounts without a paid plan. */
.cap-plan-cta {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px 0 20px; border-radius: 99px;
  color: #fff; text-decoration: none; font-size: 15px; font-weight: 800; white-space: nowrap;
  background: linear-gradient(135deg, color-mix(in srgb, var(--cap-blue, #3264f0) 72%, #fff), var(--cap-blue, #3264f0) 55%, color-mix(in srgb, var(--cap-blue, #3264f0) 78%, #000));
  box-shadow: 0 12px 24px -12px #3264f0cc, inset 0 1px 0 #ffffff47;
  transition: transform .2s ease, filter .2s ease;
}
.cap-plan-cta:hover { transform: translateY(-1px); filter: brightness(1.06); }
.cap-plan-cta:active { transform: scale(.97); }
.cap-plan-cta:focus-visible { outline: 3px solid #9db5ff; outline-offset: 4px; }
.cap-plan-cta-s { padding-left: 10px; border-left: 1px solid #ffffff40; color: #dce5ff; font-size: 13px; font-weight: 600; }
.cap-plan-cta svg { width: 18px; height: 18px; }
.cap-plan-cta[hidden] { display: none; }

/* Paid plans below the top: upgrade button + (i) with the upgrade terms. */
.cap-upgrade { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.cap-upgrade[hidden] { display: none; }
.cap-info {
  display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 50%;
  border: 1px solid var(--cap-line, #ffffff24); background: #ffffff0a; color: #c9d3ee;
  font: italic 700 15px/1 Georgia, "Times New Roman", serif; cursor: help;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.cap-info:hover, .cap-info:focus-visible, .cap-upgrade.is-info-open .cap-info { background: #ffffff1a; color: #fff; border-color: #ffffff40; }
.cap-info:focus-visible { outline: 3px solid #9db5ff; outline-offset: 3px; }
.cap-info-pop {
  position: absolute; z-index: 30; top: calc(100% + 12px); right: 0; width: min(380px, calc(100vw - 32px));
  padding: 16px 18px; border-radius: 16px; border: 1px solid #ffffff1f; background: #141418; box-shadow: 0 24px 60px -16px #000d;
  color: #d5dae6; font-size: 13.5px; font-weight: 500; line-height: 1.55; text-align: left; white-space: pre-line;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s ease, transform .18s ease, visibility 0s .18s;
}
.cap-info:focus-visible + .cap-info-pop, .cap-upgrade.is-info-open .cap-info-pop {
  opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .18s ease;
}
/* Hover only where there is a real pointer; on touch screens a tap opens it. */
@media (hover: hover) {
  .cap-info:hover + .cap-info-pop { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .18s ease; }
}
@media (max-width: 560px) { .cap-info-pop { position: fixed; top: auto; bottom: max(16px, env(safe-area-inset-bottom, 0px)); left: 16px; right: 16px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .cap-info-pop { transition: none; } }
