.video-edit-page { --ve-line: var(--line, #e4e8ee); --ve-muted: var(--muted, #7b8495); display: grid; gap: 22px; }
.video-edit-page .section-block { margin: 0; }
.video-edit-page .page-heading p { max-width: 760px; line-height: 1.7; }
.ve-kicker { display: block; margin-bottom: 8px; color: var(--green, #5965e8); font-size: 10px; font-weight: 800; letter-spacing: .2em; }
.ve-limit { padding: 9px 12px; border: 1px solid var(--ve-line); border-radius: 99px; font-size: 11px; white-space: nowrap; }
.ve-runtime { margin-top: 14px; color: var(--ve-muted); font-size: 12px; line-height: 1.8; }
.ve-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 22px; margin-bottom: 22px; }
.ve-work-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.ve-work-tools > input { flex: 1 1 150px; min-width: 0; }
.video-edit-page input:not([type="checkbox"]), .video-edit-page select, .video-edit-page textarea { max-width: 100%; border: 1px solid var(--ve-line); border-radius: 10px; padding: 11px 12px; color: inherit; background: var(--input-bg, #fff); font: inherit; }
.video-edit-page input[type="color"] { width: 100%; padding: 5px; min-height: 43px; }
.video-edit-page textarea { min-height: 86px; resize: vertical; }
.ve-work-list { display: grid; max-height: 490px; overflow: auto; margin-top: 14px; scrollbar-width: thin; }
.ve-work-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 9px; padding: 14px 0; border-bottom: 1px solid var(--ve-line); }
.ve-work-row[hidden] { display: none; }
.ve-work-choice { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; min-width: 0; }
.ve-work-choice input { margin-top: 4px; accent-color: var(--green, #5965e8); }
.ve-work-choice strong { display: block; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.ve-work-choice small { display: block; margin-top: 5px; color: var(--ve-muted); font-size: 10px; }
.ve-work-row > input { width: 100%; }
.ve-work-row > select { width: 100%; }
.ve-work-row > button { font-size: 11px; padding-inline: 8px; }
.ve-target-summary { margin-bottom: 0; color: var(--green, #5965e8); font-size: 12px; line-height: 1.7; }
.ve-region-tabs { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 17px; }
.ve-region-tabs button { min-height: 36px; padding: 8px 11px; font-size: 11px; }
.ve-region-tabs button.is-active { border-color: var(--green, #5965e8); color: var(--green, #5965e8); box-shadow: inset 0 0 0 1px currentColor; }
.ve-coordinates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-bottom: 13px; }
.ve-rule-panel > [data-ve-regions] > .field { margin-bottom: 13px; }
.ve-coordinates .field { min-width: 0; }
.ve-coordinates .field > span { font-size: 11px; line-height: 1.5; }
.ve-timing > button { align-self: end; font-size: 11px; }
.ve-preview-tools { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 17px; }
.ve-preview-tools .field:first-child { flex: 1 1 240px; }
.ve-preview-tools .field:nth-child(2) { flex: 0 1 150px; }
.ve-preview-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; min-height: 160px; max-height: 580px; border-radius: 16px; background: #000; }
.ve-preview-stage video { display: block; width: 100%; height: 100%; object-fit: contain; }
.ve-picture { position: absolute; pointer-events: none; overflow: hidden; }
.ve-overlay { position: absolute; display: flex; align-items: center; justify-content: center; overflow: hidden; white-space: pre-wrap; text-align: center; line-height: 1.2; font-family: sans-serif; overflow-wrap: anywhere; }
.ve-overlay.is-selected { outline: 2px dashed #b693ff; outline-offset: -2px; }
.ve-draw { position: absolute; inset: 0; }
.ve-draw.is-marking { pointer-events: auto; cursor: crosshair; touch-action: none; border: 1px dashed #b693ff; }
.ve-preview-empty { position: absolute; inset: 0; display: grid; place-content: center; padding: 18px; color: #9093a1; font-size: 13px; text-align: center; pointer-events: none; }
.ve-preview-empty[hidden] { display: none; }
.ve-preview-options { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 14px 0; }
.ve-preview-options .switch-label { font-size: 12px; }
.ve-preview-options > span { color: var(--ve-muted); font-size: 12px; margin-inline-start: auto; }
.ve-submit-row { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--ve-line); }
.ve-submit-row > span { flex: 1 1 230px; font-size: 12px; color: #df5b6c; line-height: 1.7; }
.ve-error { color: #df5b6c !important; }
.ve-jobs { display: grid; gap: 12px; }
.ve-job { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px; padding: 17px; border: 1px solid var(--ve-line); border-radius: 14px; }
.ve-job-main { min-width: 0; flex: 1 1 260px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.ve-job-main > strong { font-size: 13px; overflow-wrap: anywhere; }
.ve-job-main > strong small { color: var(--ve-muted); margin-inline-start: 5px; font-size: 11px; }
.ve-job-main > small { color: var(--ve-muted); font-size: 10px; }
.ve-job-main > p { flex-basis: 100%; margin: 0; color: var(--ve-muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.ve-job-status { display: inline-flex; padding: 5px 8px; border-radius: 99px; font-size: 10px; background: #edeaf5; color: #7351b1; }
.ve-job-status--completed, .ve-job-status--ready { background: #e5f4ed; color: #22875b; }
.ve-job-status--failed, .ve-job-status--conflict { background: #fbe9ed; color: #c3435d; }
.ve-job-status--cancelled, .ve-job-status--restored { background: #ebedf2; color: #6c7584; }
.ve-job-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ve-job-actions button { font-size: 11px; }
.video-edit-page input:disabled, .video-edit-page select:disabled { opacity: .5; }
@media (max-width: 1180px) { .ve-layout { grid-template-columns: minmax(0, 1fr); } .ve-work-list { max-height: 370px; } }
@media (max-width: 800px) { .video-edit-page { gap: 16px; } .ve-layout { gap: 16px; margin-bottom: 16px; } .ve-preview-tools button { width: 100%; } .ve-preview-options > span { margin-inline-start: 0; } .ve-work-tools > button { flex: 1; } .video-edit-page input:not([type="checkbox"]), .video-edit-page select, .video-edit-page textarea { font-size: 16px; min-height: 44px; } .ve-job { padding: 13px; } .ve-preview-stage { border-radius: 10px; } .ve-limit { white-space: normal; line-height: 1.6; } }
@media (max-width: 480px) { .ve-submit-row > .primary-button { width: 100%; } .ve-preview-tools .field { flex: 1 1 100% !important; } .ve-preview-options > button { width: 100%; } .ve-region-tabs button { min-height: 44px; } .ve-coordinates { gap: 8px; } .ve-work-row { grid-template-columns: minmax(0, 1fr) 105px; } .ve-job-actions { width: 100%; } .ve-job-actions > button { flex: 1; } }
