/* Recipe uses the workspace's shared typography, colors, controls, and timing. */
.recipe-page { --recipe-section-gap: 80px; }
.recipe-grid { grid-template-columns: minmax(0, 2.2fr) minmax(240px, 1fr); align-items: start; gap: var(--recipe-section-gap); }
.recipe-page h2 { margin: 0; font-size: 13px; font-weight: 500; }
.recipe-options { position: relative; display: grid; gap: var(--recipe-section-gap); }
.recipe-options::after { content: ''; position: absolute; top: 0; bottom: 0; right: calc(var(--recipe-section-gap) / -2); border-right: 1px solid var(--border-1); pointer-events: none; }
.recipe-options > section + section { position: relative; }
.recipe-options > section + section::before { content: ''; position: absolute; top: calc(var(--recipe-section-gap) / -2); left: 0; right: 0; border-top: 1px solid var(--border-1); pointer-events: none; }
.recipe-media-card { padding: 0; border-radius: 0; background: transparent; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--recipe-section-gap); }
.recipe-video-column { min-width: 0; border: 1px solid var(--border-1); border-radius: 10px; overflow: hidden; }
.recipe-preview { position: relative; aspect-ratio: 16 / 9; background: var(--background-1); }
.recipe-preview video { display: block; width: 100%; height: 100%; object-fit: contain; }
.recipe-preview video[hidden], .recipe-preview-empty[hidden], .recipe-resolution[hidden] { display: none; }
.recipe-preview-empty { height: 100%; padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--white-3); font-size: 13px; }
.recipe-preview-empty > svg { width: 24px; height: 24px; }
.recipe-preview-empty span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recipe-remove { position: absolute; top: 8px; right: 8px; width: 32px; padding: 0; background: var(--background-2); }
.recipe-remove:disabled { opacity: .4; cursor: default; }
.recipe-remove svg, .recipe-select svg, .recipe-srt-button svg { width: 16px; height: 16px; flex: none; }
.recipe-resolution { position: absolute; top: 8px; left: 8px; padding: 5px 7px; background: var(--background-2); border-radius: 6px; font-size: 12px; }
.recipe-video-settings .recipe-select { min-height: 40px; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--white-2); }
.recipe-subtitles { min-width: 0; min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--white-2); }
.recipe-subtitles-action { min-width: 0; text-align: right; }
.recipe-select { min-width: 0; display: inline-flex; align-items: center; gap: 6px; color: var(--white-3); font-size: 12px; }
.recipe-select .dropdown-trigger { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 115px; padding: 0; border: 0; background: transparent; color: var(--white-2); font: inherit; cursor: pointer; }
.recipe-select-value { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.recipe-select:focus-within { outline: 1px solid var(--white-3); outline-offset: 4px; border-radius: 2px; }
.recipe-select svg { width: 12px; height: 12px; }
.recipe-range-column { min-width: 0; display: flex; flex-direction: column; }
.recipe-range-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 14px; }
.recipe-range-heading > span { color: var(--accent-1); font-size: 12px; }
.recipe-trim { position: relative; height: 36px; border-radius: 8px; background: var(--background-3); }
.recipe-trim-frames { position: absolute; inset: 2px; display: flex; border-radius: 6px; overflow: hidden; }
.recipe-trim-frames img { width: calc(100% / 6); min-width: 0; height: 100%; object-fit: cover; }
.recipe-trim-selection { position: absolute; inset: 0; border: 1px solid var(--white-3); border-radius: 8px; }
.recipe-trim input { appearance: none; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: transparent; pointer-events: none; }
.recipe-trim input::-webkit-slider-thumb { appearance: none; width: 8px; height: 32px; border: 0; border-radius: 4px; background: var(--white-1); pointer-events: auto; cursor: ew-resize; }
.recipe-trim input::-moz-range-thumb { width: 8px; height: 32px; border: 0; border-radius: 4px; background: var(--white-1); pointer-events: auto; cursor: ew-resize; }
.recipe-trim input:disabled { opacity: .25; }
.recipe-range-times { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--white-3); }
.recipe-range-times input { width: 78px; height: 32px; padding: 0 6px; border: 1px solid transparent; border-radius: 6px; background: var(--background-3); color: var(--white-2); font: inherit; text-align: center; }
.recipe-range-times input:focus { outline: 0; border-color: var(--white-3); }
.recipe-range-times input:disabled { opacity: .4; }
.recipe-srt-button { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: transparent; color: var(--white-3); font-size: 12px; cursor: pointer; }
.recipe-srt-button:hover { color: var(--white-1); }
.recipe-srt-name { max-width: 100%; font-size: 12px; color: var(--white-3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.recipe-settings-card { padding: 0; border-radius: 0; background: transparent; }
.recipe-feature-list { margin-top: 18px; display: grid; gap: 2px; }
.recipe-feature { min-height: 40px; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--white-2); cursor: pointer; }
.recipe-feature input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.recipe-switch { position: relative; width: 32px; height: 18px; flex: none; border-radius: 10px; background: var(--background-3); transition: background var(--transition-duration) ease; }
.recipe-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--white-3); transition: transform var(--transition-duration) ease, background var(--transition-duration) ease; }
.recipe-feature input:checked + .recipe-switch { background: var(--accent-1); }
.recipe-feature input:checked + .recipe-switch::after { transform: translateX(14px); background: var(--background-1); }
.recipe-feature input:focus-visible + .recipe-switch { outline: 1px solid var(--white-1); outline-offset: 3px; }
.recipe-summary { position: sticky; top: 24px; padding: 6px 0; }
.recipe-summary-list { margin: 20px 0 24px; display: grid; gap: 18px; }
.recipe-summary-list > div { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; line-height: 1.25em; color: var(--white-3); }
.recipe-summary-list dt { min-width: 0; }
.recipe-summary-list dd { margin: 0; white-space: nowrap; }
.recipe-total { display: flex; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--border-1); font-size: 13px; }
.recipe-create { width: 100%; margin-top: 24px; justify-content: center; }
.recipe-create:disabled { opacity: .4; cursor: default; }
.recipe-rights { margin: 20px 0 0; color: var(--white-3); font-size: 12px; line-height: 1.6em; text-align: center; }
.recipe-message { color: var(--white-3); font-size: 12px; line-height: 1.5em; }
@media (max-width: 1100px) { .recipe-media-card { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 800px) { .recipe-grid { grid-template-columns: minmax(0, 1fr); } .recipe-options::after { display: none; } .recipe-summary { position: static; border-top: 1px solid var(--border-1); margin-top: calc(var(--recipe-section-gap) / -2); padding-top: calc(var(--recipe-section-gap) / 2); } }
