/* Recorder and Editor page schematics. They sit inside a .window and build on converter-figures.css
   (.cf, .cf-photo, .cf-rec). Drawn from the real dock and the Virtual Editor 1.0.0 screens, simplified
   so they read at page size. */

/* ---------- Shared bits ---------- */
.cf-ui { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 6px; background: var(--card-dark-2); border: 1px solid rgba(255, 255, 255, .1); font-size: 0.75rem; color: var(--text-on-dark); }
.cf-ui .material-icons { font-size: 16px; color: var(--text-on-dark-2); }
.cf-ui--red { background: #D9473B; border-color: transparent; color: #fff; font-weight: 600; }
.cf-ui--red .material-icons { color: #fff; }
.cf-ok { color: #6FCF97; }
.cf-warn { color: #F2C14E; }
.cf-sec { margin-top: 12px; font-size: 0.6875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-on-dark-2); }

/* ---------- Recorder: OBS preview + Virtual Recorder dock ---------- */
.cf-obs { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.cf-obs__scene { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cf-obs__label { display: flex; align-items: center; gap: 6px; font-size: 0.6875rem; color: var(--text-on-dark-2); }
.cf-obs__label .material-icons { font-size: 14px; }
.cf-obs__mixer { display: grid; gap: 6px; padding: 8px 10px; border-radius: 8px; background: #0E0F13; border: 1px solid rgba(255, 255, 255, .06); font-size: 0.6875rem; color: var(--text-on-dark-2); }
.cf-obs__mixer span { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 8px; }
.cf-meter { display: block; height: 5px; border-radius: 3px; background: linear-gradient(90deg, #4CAF7A 0 60%, #F2C14E 60% 80%, rgba(255, 255, 255, .1) 80%); }
.cf-meter--low { background: linear-gradient(90deg, #4CAF7A 0 30%, rgba(255, 255, 255, .1) 30%); }

.cf-dock { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 10px; border-radius: 8px; background: #0E0F13; border: 1px solid rgba(255, 255, 255, .06); }
.cf-dock__title { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 600; }
.cf-dock__title .material-icons { font-size: 14px; color: var(--red); }
.cf .cf-dock__steps { display: grid; gap: 2px; margin: 2px 0 0; padding: 0; list-style: none; font-size: 0.6875rem; color: var(--text-on-dark-2); }
.cf .cf-dock__steps li { display: flex; font-size: inherit; color: inherit; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-dock__steps li::before { content: ''; flex: none; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .25); }
.cf-dock__steps .is-done::before { border: none; background: #4CAF7A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.5' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 9px no-repeat; }
.cf-dock__steps .is-on { background: rgba(229, 72, 59, .14); color: var(--text-on-dark); font-weight: 600; }
.cf-dock__steps .is-on::before { border-color: #E5483B; background: #E5483B; box-shadow: inset 0 0 0 2px #0E0F13; }
.cf-dock__rec { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: auto; padding: 7px 8px; border-radius: 6px; background: #D9473B; color: #fff; font-size: 0.6875rem; font-weight: 600; white-space: nowrap; }
.cf-dock__rec i { width: 8px; height: 8px; border-radius: 2px; background: #fff; }
.cf-dock__time { text-align: center; font-size: 0.6875rem; font-variant-numeric: tabular-nums; color: var(--text-on-dark-2); }

/* Recorder step 1: the dock open on Scene & Audio */
.cf-setup { display: grid; gap: 10px; }
.cf-setup__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cf-setup__head small { font-variant-numeric: tabular-nums; }
.cf-setup h4 { margin: 0; font-size: 0.9375rem; font-weight: 600; color: var(--text-on-dark); }
.cf-field { display: grid; gap: 4px; }
.cf-field > small { font-size: 0.6875rem; }
.cf-field .cf-ui { justify-content: space-between; width: 100%; }
.cf .cf-checks { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
/* .cf prefix: beats the page's .step ul / .step li rules, since these lists sit inside a step */
.cf .cf-checks li { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; font-size: 0.75rem; color: var(--text-on-dark); }
.cf-checks li::before { content: ''; width: 14px; height: 14px; border-radius: 3px; border: 1.5px solid rgba(255, 255, 255, .3); }
.cf-checks .is-on::before { border: none; background: #E5483B url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.5' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.cf-checks .is-flag { background: rgba(242, 193, 78, .08); }
.cf-checks em { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: 0.6875rem; color: #F2C14E; }
.cf .cf-checks em .material-icons { margin: 0; font-size: 14px; color: inherit; }
.cf-setup .cf-ui--wide { justify-content: center; width: 100%; }

/* Recorder step 2: link field + YouTube Controls selected in the preview */
.cf-yt { display: grid; gap: 10px; }
.cf-yt .cf-ui { width: 100%; }
.cf-yt .cf-ui span:not(.material-icons) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-on-dark-2); }
.cf-yt__frame { position: absolute; left: 53%; top: 7%; width: 42%; aspect-ratio: 16 / 9; border: 1.5px solid #E5483B; border-radius: 3px; pointer-events: none; }
.cf-yt__frame i { position: absolute; width: 8px; height: 8px; border-radius: 2px; background: #fff; border: 1.5px solid #E5483B; }
.cf-yt__frame i:nth-child(1) { left: -5px; top: -5px; }
.cf-yt__frame i:nth-child(2) { right: -5px; top: -5px; }
.cf-yt__frame i:nth-child(3) { left: -5px; bottom: -5px; }
.cf-yt__frame i:nth-child(4) { right: -5px; bottom: -5px; }
.cf-yt__tag { position: absolute; left: 53%; top: calc(49% + 6px); padding: 1px 6px; border-radius: 3px; background: #E5483B; color: #fff; font-size: 0.625rem; font-weight: 600; white-space: nowrap; }
.cf-yt__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 4px; padding: 3px 5px; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); }
.cf-yt__bar .material-icons { font-size: 12px; color: #fff; }
.cf-yt__bar b { flex: 1; height: 2px; border-radius: 1px; background: linear-gradient(90deg, #E5483B 0 35%, rgba(255, 255, 255, .35) 35%); }

/* Recorder step 4 and the "keep the pair" card: a session folder */
.cf-folder__path { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; font-size: 0.75rem; color: var(--text-on-dark-2); }
.cf-folder__path .material-icons { font-size: 15px; }
.cf-folder__path b { display: inline; color: var(--text-on-dark); }
.cf-folder__row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px; border-radius: 6px; font-size: 0.75rem; }
.cf-folder__row + .cf-folder__row { margin-top: 2px; }
.cf-folder__row > .material-icons { font-size: 20px; color: var(--text-on-dark-2); }
.cf-folder__row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.cf-folder__row small { font-size: 0.6875rem; }
.cf-folder__row.is-pair { background: rgba(229, 72, 59, .1); }
.cf-folder__row.is-pair > .material-icons { color: #FF8F85; }
.cf-folder__tag { padding: 2px 7px; border-radius: 999px; background: rgba(229, 72, 59, .18); color: #FF8F85; font-size: 0.625rem; font-weight: 600; white-space: nowrap; }
.cf-folder__tag--quiet { background: rgba(255, 255, 255, .08); color: var(--text-on-dark-2); }

/* "Keep the pair together": two files feed one viewer */
.cf-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr); gap: 12px; align-items: center; }
.cf-pair__files { display: grid; gap: 6px; }
.cf-pair__files .cf-ui { justify-content: flex-start; }
.cf-pair__files .cf-ui span:not(.material-icons) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-pair__files .material-icons { color: #FF8F85; }
.cf-pair > .material-icons { font-size: 20px; color: var(--text-on-dark-2); }
.cf-pair__view small { margin-top: 6px; text-align: center; }

/* ---------- Editor ---------- */
.cf-ed__top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 0.75rem; }
.cf-ed__top b { display: inline; }
.cf-ed__top .cf-ui { margin-left: auto; padding: 4px 9px; }
.cf-ed__top .cf-ui .material-icons { font-size: 14px; }
.cf-ed__body { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 10px; }
.cf-insp { display: grid; align-content: start; gap: 8px; padding: 10px; border-radius: 8px; background: #0E0F13; border: 1px solid rgba(255, 255, 255, .06); font-size: 0.6875rem; }
.cf-insp b { font-size: 0.75rem; }
.cf-insp dl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; margin: 0; }
.cf-insp dt { color: var(--text-on-dark-2); }
.cf-insp dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.cf-insp__lock { display: flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 5px; background: rgba(229, 72, 59, .12); color: #FF8F85; }
.cf-insp__lock .material-icons { font-size: 13px; }

/* Player bar under a preview */
.cf-play { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 8px; border-radius: 6px; background: #0E0F13; font-size: 0.6875rem; font-variant-numeric: tabular-nums; color: var(--text-on-dark-2); }
.cf-play .material-icons { font-size: 16px; color: var(--text-on-dark); }
.cf-play__bar { flex: 1; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #E5483B 0 22%, #C9A467 22% 78%, rgba(255, 255, 255, .15) 78%); }
.cf-play .cf-ui { padding: 2px 7px; font-size: 0.625rem; }

/* Timeline: label column + lanes. --lab is the label column plus its gap; clips and the playhead
   take a left/width in % of the lane (inline style), and the playhead's --at is a fraction of the lane. */
.cf-tl { --lab: 64px; position: relative; margin-top: 10px; padding: 6px 8px 8px; border-radius: 8px; background: #0E0F13; border: 1px solid rgba(255, 255, 255, .06); }
.cf-tl__tools { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.cf-tl__tools .material-icons { width: 24px; height: 22px; display: grid; place-items: center; border-radius: 5px; font-size: 15px; color: var(--text-on-dark-2); }
.cf-tl__tools .is-on { background: rgba(229, 72, 59, .18); color: #FF8F85; }
.cf-tl__tools small { margin-left: auto; font-variant-numeric: tabular-nums; }
.cf-tl__rows { position: relative; }
.cf-tl__ruler { height: 12px; margin-left: var(--lab); background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 1px, transparent 1px 10%) left bottom / 100% 4px no-repeat; }
.cf-tl__row { display: grid; grid-template-columns: calc(var(--lab) - 8px) 1fr; gap: 8px; align-items: center; margin-top: 4px; font-size: 0.625rem; color: var(--text-on-dark-2); }
.cf-tl__row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-tl__lane { position: relative; height: 24px; border-radius: 4px; background: rgba(255, 255, 255, .04); }
.cf-tl__lane i { position: absolute; top: 2px; bottom: 2px; border-radius: 3px; border: 1px solid rgba(127, 190, 200, .55); background: rgba(127, 190, 200, .14); }
.cf-tl__lane i.is-selected { border-color: #E5483B; background: rgba(229, 72, 59, .2); }
.cf-tl__lane--sync i { border-color: rgba(229, 72, 59, .55); background: rgba(229, 72, 59, .16); }
.cf-tl__lane--sync i::after { content: 'lock'; position: absolute; right: 3px; top: 50%; transform: translateY(-50%); font-family: 'Material Icons'; font-size: 10px; line-height: 1; color: #FF8F85; }
.cf-tl__lane--loose i { border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .07); }
.cf-tl__lane--dim i { border-color: rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); }
.cf-tl__head { position: absolute; top: 0; bottom: 0; left: calc(var(--lab) + (100% - var(--lab)) * var(--at, .2)); width: 1px; background: #E5483B; }
.cf-tl__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; }
/* One cut line across the lanes (below the ruler), scissors in the ruler. --first stops it after the top lane. */
.cf-tl__cut { position: absolute; top: 12px; bottom: 0; left: calc(var(--lab) + (100% - var(--lab)) * var(--at, .3)); width: 0; border-left: 1.5px dashed #F2C14E; }
.cf-tl__cut::before { content: 'content_cut'; position: absolute; left: -7px; top: -13px; font-family: 'Material Icons'; font-size: 12px; line-height: 1; color: #F2C14E; }
.cf-tl__cut--first { bottom: auto; height: 30px; }

/* Before/after comparison: one cut, two outcomes */
.cf-cmp .cf-tl { --lab: 58px; margin-top: 0; }
.cf-cmp .cf-tl__row { font-size: 0.6875rem; }
.cf-cmp .cf-tl__lane { height: 32px; }
.cf-cmp .cf-tl__cut--first { height: 38px; }
.cf-cmp__note { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; padding: 4px 9px; border-radius: 999px; font-size: 0.6875rem; font-weight: 600; }
.cf-cmp__note .material-icons { font-size: 14px; }
.cf-cmp__note--bad { background: rgba(242, 193, 78, .12); color: #F2C14E; }
.cf-cmp__note--good { background: rgba(111, 207, 151, .12); color: #6FCF97; }
.cf-cmp__drift { position: absolute; top: 2px; bottom: 2px; border-radius: 3px; background: repeating-linear-gradient(135deg, rgba(242, 193, 78, .35) 0 4px, transparent 4px 8px); border: 1px dashed rgba(242, 193, 78, .7); }

/* Editor step 1: files found together */
.cf-open { display: grid; gap: 10px; }
.cf-open__banner { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 6px; background: rgba(76, 175, 122, .12); border: 1px solid rgba(76, 175, 122, .35); color: #8EDDB0; font-size: 0.75rem; font-weight: 500; }
.cf-open__banner .material-icons { font-size: 16px; }
.cf-open__list { display: grid; gap: 4px; }
.cf-open__list > div { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; background: var(--card-dark-2); font-size: 0.75rem; }
.cf-open__list .material-icons { font-size: 18px; color: var(--text-on-dark-2); }
.cf-open__list b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.cf-chip { padding: 2px 7px; border-radius: 4px; font-size: 0.625rem; font-weight: 600; white-space: nowrap; background: rgba(76, 175, 122, .16); color: #8EDDB0; }
.cf-chip--red { background: rgba(229, 72, 59, .18); color: #FF8F85; }

/* Editor step 4: Export Files */
.cf-export { display: grid; gap: 8px; max-width: 420px; margin: 0 auto; }
.cf-export h4 { margin: 0 0 2px; font-size: 1rem; font-weight: 700; color: var(--text-on-dark); }
.cf-export__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .1); font-size: 0.75rem; }
.cf-export__row small { margin-top: 1px; }
.cf-export__row::after { content: ''; width: 16px; height: 16px; border-radius: 4px; background: #4CAF7A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.5' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.cf-export__row--muted { color: var(--text-on-dark-2); }
.cf-export .cf-ui--red { justify-self: end; margin-top: 4px; padding: 7px 14px; }

/* Phones: keep the two-column figures readable */
@media (max-width: 520px) {
  .cf-obs { grid-template-columns: 1fr; }
  .cf-obs__mixer { display: none; }
  .cf-dock { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .cf .cf-dock__steps { display: none; }
  .cf-dock__rec { margin-top: 0; }
  .cf-dock__time { grid-column: 1 / -1; text-align: left; }
  .cf-ed__body { grid-template-columns: 1fr; }
  .cf-ed__body .cf-insp { display: none; }
  .cf-pair { grid-template-columns: 1fr; justify-items: stretch; }
  .cf-pair > .material-icons { justify-self: center; transform: rotate(90deg); }
  .cf-tl { --lab: 54px; }
  .cf .cf-checks em { grid-column: 2 / -1; }
}

/* Motion: the REC dot pulses in the dock too */
.cf-dock__rec i { animation: cf-rec 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .cf-dock__rec i { animation: none; } }
