/* Editor extends the accepted glass workbench with a source-time timeline. */
body[data-tool='video-studio'] .workbench { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); }
body[data-tool='video-studio'] .preview { min-height: 340px; }
.editor-modes { min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.editor-modes legend { margin-bottom: 12px; font-weight: 600; }
.editor-modes__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.editor-mode { position: relative; display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--hairline); border-radius: var(--radius-md); cursor: pointer; background: rgb(255 255 255 / .25); }
.editor-mode input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.editor-mode strong, .editor-mode small { display: block; }
.editor-mode strong { font-weight: 600; }
.editor-mode small { color: var(--ink-muted); font-size: var(--text-sm); line-height: 1.35; }
.editor-mode__mark { display: grid; place-items: center; flex: none; width: 28px; height: 32px; border-radius: 8px; background: rgb(6 38 59 / .06); font-weight: 700; }
.editor-mode:has(input:checked) { border-color: var(--navy); background: rgb(255 255 255 / .8); box-shadow: inset 0 0 0 1px var(--navy); }
.editor-mode:has(input:checked) .editor-mode__mark { background: var(--lime); }
.editor-mode:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: 3px; }
.editor-mode:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.editor-speed { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding-top: 16px; }
.editor-speed output { font-variant-numeric: tabular-nums; font-weight: 600; }
.editor-speed input { grid-column: 1 / -1; }
.editor-speed small { color: var(--ink-muted); }
.editor-speed small:last-child { text-align: right; }
.editor-speed input, .editor-range input { width: 100%; min-width: 0; accent-color: var(--navy); min-height: 28px; cursor: pointer; }
.editor-note { color: var(--ink-muted); font-size: var(--text-sm); line-height: 1.45; margin-top: 12px; }
.editor-summary { padding: 12px 14px; margin-top: 14px; border-radius: var(--radius-md); background: rgb(218 244 112 / .35); font-weight: 600; font-variant-numeric: tabular-nums; }
.editor-timeline { margin-top: 20px; }
.editor-timeline__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block: 10px; }
.editor-timeline__head small { max-width: 240px; color: var(--ink-muted); font-size: var(--text-sm); }
.editor-time { font-variant-numeric: tabular-nums; font-weight: 600; }
.editor-timeline__track { position: relative; height: 52px; overflow: hidden; border-radius: 10px; background: repeating-linear-gradient(90deg, rgb(6 38 59 / .07) 0 1px, transparent 1px 12px), rgb(6 38 59 / .06); }
.editor-timeline__selection { position: absolute; inset-block: 0; background: rgb(218 244 112 / .5); border: 2px solid var(--navy); border-radius: 8px; }
.editor-timeline__playhead { position: absolute; inset-block: 0; width: 2px; background: var(--navy); }
.editor-range { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: center; font-size: var(--text-sm); }
.editor-range:first-of-type { margin-top: 8px; }
.editor-times { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.editor-times label { display: grid; gap: 6px; color: var(--ink-muted); font-size: var(--text-sm); }
.editor-times input { width: 100%; min-width: 0; padding: 10px; border: 1px solid var(--hairline); border-radius: 10px; background: rgb(255 255 255 / .65); color: var(--ink); font: inherit; font-variant-numeric: tabular-nums; }
.editor-timeline input:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 1050px) { body[data-tool='video-studio'] .workbench { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 719px) {
  body[data-tool='video-studio'] .preview { min-height: 268px; }
  .editor-timeline__head { flex-wrap: wrap; }
  .editor-timeline__head small { max-width: none; }
}
@media (max-width: 400px) { .editor-modes__grid { grid-template-columns: 1fr; } }
.editor-results { display: grid; gap: 8px; }
.editor-result { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; border-bottom: 1px solid var(--hairline); }
.editor-result span { min-width: 0; overflow-wrap: anywhere; }
.editor-result strong, .editor-result small { display: block; }
.editor-result small { color: var(--ink-muted); }
.editor-result button { flex: none; }
