#view-videos .videos-container {
    min-height: 620px;
    height: auto !important;
    align-items: stretch;
}

#view-videos .videos-list {
    width: 280px !important;
    flex: 0 0 280px;
    padding-right: 16px !important;
}

#view-videos .videos-container.video-batch-d-single {
    display: block !important;
}

#view-videos .videos-container.video-batch-d-single .video-evaluation-main {
    width: 100%;
}

.video-batch-d-list-item {
    width: 100%;
    display: grid;
    gap: 5px;
    margin-bottom: 8px;
    padding: 13px;
    border: 1px solid #dbe3ee;
    border-radius: 6px;
    background: #fff;
    color: #172033;
    text-align: left;
    cursor: pointer;
}

.video-batch-d-list-item:hover,
.video-batch-d-list-item:focus-visible {
    border-color: #2563eb;
    outline: 2px solid rgba(37, 99, 235, .16);
    outline-offset: 1px;
}

.video-batch-d-list-item.active {
    border-color: #2563eb;
    box-shadow: inset 3px 0 #2563eb;
    background: #f8fbff;
}

.video-batch-d-list-name {
    font-weight: 700;
    font-size: .95rem;
}

.video-batch-d-list-job,
.video-batch-d-muted {
    color: #64748b;
    font-size: .84rem;
}

.video-batch-d-state {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    background: #eef2f7;
    color: #475569;
}

.video-batch-d-state.waiting { background: #fff7d6; color: #854d0e; }
.video-batch-d-state.processing { background: #e0f2fe; color: #075985; }
.video-batch-d-state.ready { background: #dcfce7; color: #166534; }
.video-batch-d-state.danger { background: #fee2e2; color: #991b1b; }
.video-batch-d-state.skipped { background: #f1f5f9; color: #475569; }

.video-batch-d-panel {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.video-batch-d-panel-header,
.video-batch-d-section-title,
.video-batch-d-dialog > header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.video-batch-d-panel-header h3,
.video-batch-d-dialog h3 {
    margin: 2px 0 0;
    font-size: 1.25rem;
}

.video-batch-d-kicker,
.video-batch-d-dialog header span {
    color: #64748b;
    font-size: .78rem;
    font-weight: 700;
}

.video-batch-d-optional {
    margin: 0;
    padding: 11px 13px;
    border-left: 4px solid #0891b2;
    background: #ecfeff;
    color: #164e63;
    font-size: .88rem;
}

.video-batch-d-media {
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #dbe3ee;
    border-radius: 6px;
    background: #f8fafc;
}

.video-batch-d-state-view {
    width: min(540px, 100%);
    padding: 40px 24px;
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
}

.video-batch-d-state-view > i { font-size: 2rem; color: #64748b; }
.video-batch-d-state-view.waiting > i { color: #a16207; }
.video-batch-d-state-view.processing > i { color: #0284c7; }
.video-batch-d-state-view.danger > i { color: #dc2626; }
.video-batch-d-state-view p { margin: 0; color: #475569; line-height: 1.65; }

.video-batch-d-state-actions,
.video-batch-d-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.video-batch-d-progress {
    width: min(360px, 100%);
    height: 8px;
    overflow: hidden;
    border-radius: 4px;
    background: #dbeafe;
}

.video-batch-d-progress span {
    display: block;
    height: 100%;
    background: #0284c7;
}

.video-batch-d-text-submission {
    width: min(780px, calc(100% - 40px));
    max-height: 310px;
    overflow: auto;
    padding: 20px;
    border-left: 4px solid #16a34a;
    background: #fff;
}

.video-batch-d-text-submission span { color: #166534; font-size: .78rem; font-weight: 700; }
.video-batch-d-text-submission p,
.video-batch-d-transcript p { white-space: pre-wrap; line-height: 1.75; }

.video-batch-d-transcript,
.video-batch-d-evaluations {
    padding: 16px;
    border: 1px solid #dbe3ee;
    border-radius: 6px;
    background: #fff;
}

.video-batch-d-transcript h4,
.video-batch-d-evaluations h4,
.video-batch-d-share-list h4 { margin: 0; font-size: .98rem; }
.video-batch-d-section-title > span { color: #64748b; font-size: .78rem; }

.video-batch-d-evaluation-card {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.video-batch-d-evaluation-card p { margin: 6px 0 0; color: #475569; }
.video-batch-d-error { color: #b91c1c; }

.video-batch-d-loading,
.video-batch-d-empty,
.video-batch-d-empty-panel {
    padding: 32px 20px;
    color: #64748b;
    text-align: center;
}

.video-batch-d-empty-panel {
    min-height: 360px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 8px;
    border: 1px dashed #cbd5e1;
}

.video-batch-d-empty-panel i { font-size: 2rem; }
.video-batch-d-empty-panel h3,
.video-batch-d-empty-panel p { margin: 0; }

.video-batch-d-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, .55);
}

.video-batch-d-dialog-backdrop[hidden] { display: none; }
.video-batch-d-dialog-open { overflow: hidden; }

.video-batch-d-dialog {
    width: min(680px, 100%);
    max-height: min(760px, calc(100vh - 40px));
    overflow: auto;
    padding: 22px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .25);
}

.video-batch-d-dialog-note {
    padding: 10px 12px;
    border-left: 4px solid #d97706;
    background: #fffbeb;
    color: #713f12;
    font-size: .86rem;
}

.video-batch-d-icon-button {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 36px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #334155;
    cursor: pointer;
}

.video-batch-d-icon-button.danger { color: #b91c1c; }
.video-batch-d-icon-button:disabled { opacity: .4; cursor: default; }

#video-batch-d-share-form {
    display: grid;
    grid-template-columns: 1fr 130px auto;
    align-items: end;
    gap: 12px;
    margin: 18px 0;
}

#video-batch-d-share-form label { display: grid; gap: 6px; font-size: .83rem; font-weight: 700; }
#video-batch-d-share-form select,
#video-batch-d-share-form input {
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
}

.video-batch-d-share-result {
    margin-bottom: 16px;
    padding: 12px;
    background: #f0fdf4;
    color: #166534;
    word-break: break-all;
}

.video-batch-d-share-result:empty { display: none; }
.video-batch-d-share-result > div { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.video-batch-d-share-result a { color: #166534; }

.video-batch-d-share-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.video-batch-d-share-row > div { min-width: 0; display: grid; gap: 2px; }
.video-batch-d-share-row span,
.video-batch-d-share-row small { color: #64748b; font-size: .77rem; }
.video-batch-d-share-status { padding: 3px 7px; border-radius: 999px; font-weight: 700; }
.video-batch-d-share-status.active { background: #dcfce7; color: #166534; }
.video-batch-d-share-status.expired,
.video-batch-d-share-status.revoked { background: #f1f5f9; color: #475569; }

@media (max-width: 767px) {
    #view-videos .video-review-header { align-items: flex-start; }
    #view-videos .videos-container { display: block !important; min-height: 0; }
    #view-videos .videos-list { width: 100% !important; max-height: 220px; padding: 0 0 12px !important; border: 0 !important; }
    .video-batch-d-media { min-height: 250px; }
    .video-batch-d-panel-header { align-items: flex-start; }
    #video-batch-d-share-form { grid-template-columns: 1fr; }
    .video-batch-d-share-row { grid-template-columns: minmax(0, 1fr) auto auto; }
    .video-batch-d-share-row .video-batch-d-share-status { grid-column: 1 / -1; grid-row: 2; width: fit-content; }
    .video-batch-d-dialog { padding: 16px; }
}
