/* Converter schematics inside a .window. Based on the app's flow, simplified so they read at page size. */

.cf { padding: clamp(14px, 2vw, 20px); color: var(--text-on-dark); font-size: 0.8125rem; line-height: 1.35; text-align: left; }
.cf b { display: block; font-weight: 600; }
.cf small { display: block; font-size: 0.75rem; color: var(--text-on-dark-2); }
.cf-photo { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--card-dark-2); }
.cf-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cf-photo__inset { position: absolute; left: 53%; top: 7%; width: 42%; aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; }
.cf-photo__inset img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cf-photo__inset--empty { background: #000; }

/* Step 1: two videos */
.cf-add { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.cf-add b { margin-top: 10px; }
.cf-add .material-icons { font-size: 20px; color: var(--text-on-dark-2); }

/* Step 2: queue */
.cf-queue__title { margin-bottom: 12px; font-size: 0.9375rem; font-weight: 600; }
.cf-queue__row { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.cf-queue__row:last-child { padding-bottom: 0; }
.cf-queue__row .material-icons { font-size: 18px; color: var(--text-on-dark-2); }
.cf-queue__row small.is-active { color: #FF8F85; font-weight: 500; }
.cf-bar { display: block; height: 4px; margin-top: 6px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.cf-bar i { display: block; width: 58%; height: 100%; border-radius: 2px; background: #E5483B; transform-origin: left; animation: cf-fill 5s ease-in-out infinite; }
@keyframes cf-fill { from { transform: scaleX(.25); } 80%, to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .cf-bar i { animation: none; } }

/* Step 3: result */
.cf-seg { display: inline-flex; margin-top: 12px; padding: 3px; border-radius: 8px; background: var(--card-dark-2); font-size: 0.75rem; font-weight: 500; color: var(--text-on-dark-2); }
.cf-seg span { padding: 4px 10px; border-radius: 6px; }
.cf-seg .is-on { background: rgba(255, 255, 255, .14); color: var(--text-on-dark); }
.cf-timeline { position: relative; margin-top: 12px; padding: 6px 8px 8px; border-radius: 8px; background: #0E0F13; border: 1px solid rgba(255, 255, 255, .08); }
.cf-timeline__ruler { display: flex; justify-content: space-between; height: 20px; padding-top: 1px; font-size: 0.625rem; font-variant-numeric: tabular-nums; color: var(--text-on-dark-2); background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 1px, transparent 1px 10%) left bottom / 100% 5px no-repeat; }
.cf-timeline__lane { display: grid; grid-template-columns: 30% 38% 22%; column-gap: 5%; align-items: stretch; height: 28px; margin-top: 4px; padding: 3px 0; border-radius: 4px; background: rgba(255, 255, 255, .05); }
.cf-timeline__lane b { display: flex; align-items: center; min-width: 0; padding: 0 6px; overflow: hidden; border-radius: 3px; border: 1px solid rgba(255, 255, 255, .16); background: var(--card-dark-2); font-size: 0.625rem; font-weight: 500; color: var(--text-on-dark-2); white-space: nowrap; }
.cf-timeline__lane b.is-selected { border-color: #E5483B; background: rgba(229, 72, 59, .16); color: var(--text-on-dark); }
.cf-timeline__wave { height: 14px; margin-top: 4px; opacity: .5; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .55) 0 1px, transparent 1px 3px); clip-path: polygon(0 45%, 8% 25%, 15% 60%, 24% 15%, 33% 55%, 42% 30%, 50% 65%, 60% 20%, 70% 55%, 80% 30%, 90% 60%, 100% 40%, 100% 60%, 90% 40%, 80% 70%, 70% 45%, 60% 80%, 50% 35%, 42% 70%, 33% 45%, 24% 85%, 15% 40%, 8% 75%, 0 55%); }
.cf-timeline__head { position: absolute; left: 14%; top: 4px; bottom: 4px; width: 1px; background: #E5483B; }
.cf-timeline__head::before { content: ''; position: absolute; left: -3px; top: 0; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; border-top: 5px solid #E5483B; }
.cf-files { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-weight: 500; }
.cf-files span { display: inline-flex; align-items: center; gap: 4px; }
.cf-files .material-icons { font-size: 16px; color: #FF8F85; }

/* Recorder: preview + sync log */
.cf-rec { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; align-items: start; }
.cf-rec__live { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .72); color: #fff; font-size: 0.6875rem; font-weight: 600; }
.cf-rec__live i { width: 7px; height: 7px; border-radius: 50%; background: #E5483B; }
.cf-rec__log b { margin-bottom: 6px; }
.cf-rec__log span { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 0.75rem; color: var(--text-on-dark-2); }
.cf-rec__log time { color: var(--text-on-dark); font-variant-numeric: tabular-nums; }

/* Editor: linked tracks */
.cf-tracks { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; margin-top: 12px; font-size: 0.75rem; color: var(--text-on-dark-2); }
.cf-tracks__row { display: grid; grid-template-columns: 3fr 2fr 4fr; gap: 2px; height: 24px; padding: 3px; border-radius: 4px; background: #0E0F13; }
.cf-tracks__row i { border-radius: 3px; border: 1px solid rgba(255, 255, 255, .16); background: var(--card-dark-2); }
.cf-tracks__row--sync i { border-color: rgba(229, 72, 59, .7); background: rgba(229, 72, 59, .16); }

/* React Central app */
.cf-phone { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 34px 10px 10px; color: var(--text-on-dark); font-size: 0.6875rem; line-height: 1.3; }
.cf-phone b { display: block; font-size: 0.75rem; font-weight: 600; }
.cf-phone small { color: var(--text-on-dark-2); font-size: 0.625rem; }
.cf-phone .cf-photo { border-radius: 6px; flex: none; }

/* React Central on the web */
.cf-web__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; font-size: 0.75rem; font-weight: 500; color: var(--text-on-dark-2); }
.cf-web__tabs span { padding: 4px 10px; border-radius: 999px; background: var(--card-dark-2); }
.cf-web__tabs .is-on { background: var(--red); color: #fff; }
.cf-web__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cf-web__grid b { margin-top: 8px; font-size: 0.75rem; }
.cf-web__grid small { font-size: 0.6875rem; }
@media (max-width: 640px) { .cf-web__grid { grid-template-columns: repeat(2, 1fr); } .cf-web__grid > :nth-child(n+5) { display: none; } }

/* Neutral stand-ins, so one photo isn't repeated across a list or grid */
.cf-blank { display: block; aspect-ratio: 16 / 9; border-radius: 8px; background: var(--card-dark-2); }
.cf-line { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .14); }
.cf-line + .cf-line { width: 60%; margin-top: 6px; background: rgba(255, 255, 255, .08); }
.cf-web__grid .cf-blank + .cf-line { margin-top: 10px; }

/* Recorder motion: REC pulses and the sync log fills in */
.cf-rec__live i { animation: cf-rec 1.4s ease-in-out infinite; }
.cf-rec__log span { animation: cf-log 6s linear infinite; }
.cf-rec__log span:nth-of-type(2) { animation-delay: 1s; }
.cf-rec__log span:nth-of-type(3) { animation-delay: 2s; }
@keyframes cf-rec { 50% { opacity: .25; } }
@keyframes cf-log { 0%, 6% { opacity: .2; } 12%, 82% { opacity: 1; } 92%, 100% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .cf-rec__live i, .cf-rec__log span { animation: none; } }
