/* Shared source-video intake treatment for Clipping, Editor, and Captions. */
#clipping-intake-title { font-family: 'Manrope', system-ui, sans-serif !important; }
.source-intake-shell {
    width: min(100%, 720px);
    margin-inline: auto;
}
.caption-source-bar.source-intake-shell {
    display: block;
    padding: 28px 32px;
}
.caption-source-bar.source-intake-shell .source-path-stack { display: block; }
.caption-source-bar.source-intake-shell .source-intake-dropzone {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
}
.caption-source-bar.source-intake-shell .source-intake-icon { grid-row: auto; }

.source-intake-dropzone {
    min-height: 260px;
    padding: 40px 28px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 8px;
    border: 2px dashed var(--v2-border-strong, rgba(255,255,255,.14));
    border-radius: 20px;
    background: rgba(255,255,255,.02);
    color: var(--v2-muted, #98a2b3);
    text-align: center;
    cursor: default;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.source-intake-dropzone:hover,
.source-intake-dropzone.drag,
.source-intake-dropzone.is-dragover {
    border-color: var(--v2-blue-light, #4c4cff);
    background: rgba(76,76,255,.055);
}
.source-intake-dropzone.drag,
.source-intake-dropzone.is-dragover { transform: scale(1.01); }
.source-intake-dropzone strong {
    color: var(--v2-white, #f4f6f9);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.01em;
}
.source-intake-dropzone p,
.source-intake-dropzone > span:not(.source-intake-icon):not(.sp-intake-drop-icon) {
    margin: 0;
    color: var(--v2-muted, #98a2b3);
    font-size: .92rem;
    line-height: 1.55;
}
.source-intake-dropzone .source-intake-sub {
    color: var(--v2-dim, #687386);
    font-size: .82rem;
}
.source-intake-icon,
.sp-intake-drop-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #1014EF, #2F74C9);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 10px 28px rgba(16,20,239,.4);
    font-size: 1.5rem;
    line-height: 1;
}
.source-intake-icon svg { width: 26px; height: 26px; stroke: currentColor; }
.source-intake-dropzone .btn,
.source-intake-dropzone .btn-primary,
.source-intake-dropzone .btn-secondary { position: relative; z-index: 1; }
.source-intake-dropzone .btn-primary,
.source-intake-url-row .btn-primary {
    border-color: rgba(99, 121, 255, .72);
    background: linear-gradient(135deg, #1014EF, #2F2FFF);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 8px 22px rgba(16,20,239,.28);
}
.source-intake-dropzone .btn-primary:hover,
.source-intake-url-row .btn-primary:hover { background: linear-gradient(135deg, #2429FF, #3D3DFF); }
.source-intake-dropzone button:focus-visible,
.source-intake-url-row button:focus-visible,
.source-intake-url-row input:focus-visible {
    outline: 3px solid rgba(76,76,255,.45);
    outline-offset: 3px;
}
.source-intake-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 24px 0 33px;
    color: var(--v2-dim, #687386);
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}
.source-intake-divider::before,
.source-intake-divider::after { content: ""; height: 1px; flex: 1; background: var(--v2-border, rgba(255,255,255,.085)); }
.source-intake-url-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 10px;
    width: 100%;
}
.source-intake-url-row input {
    min-width: 0;
    min-height: 46px;
    padding: 12px 15px;
    border: 1px solid var(--v2-border, rgba(255,255,255,.085));
    border-radius: 12px;
    background: rgba(255,255,255,.035);
    color: var(--v2-white, #f4f6f9);
    font-size: .92rem;
}
.source-intake-url-row input:focus { border-color: var(--v2-blue-light, #4c4cff); box-shadow: 0 0 0 3px rgba(76,76,255,.18); }
.source-intake-url-row button {
    min-height: 46px;
    padding-inline: 18px;
    border-radius: 12px;
}

.editor-page .recent { margin-top: 40px; }
.editor-page .source-intake-dropzone { height: 310px; }
.editor-page .source-intake-dropzone .btn { min-height: 56px; margin-top: 22px; }
.editor-page .source-intake-dropzone .btn,
.editor-page .source-intake-url-row .btn { font-size: 1.05rem; font-weight: 700; }
.editor-page .source-intake-url-row input { min-height: 56px; }

@media (max-width: 620px) {
    .source-intake-dropzone { min-height: 184px; padding: 32px 20px; }
    .source-intake-url-row { grid-template-columns: 1fr; }
    .source-intake-url-row button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .source-intake-dropzone { transition: none; }
    .source-intake-dropzone.drag,
    .source-intake-dropzone.is-dragover { transform: none; }
}

/* Keep empty intake controls stationary when switching creative tools.
   Reference: Clipping starts 72px below the shared app header. */
body.editor-page main { padding-top: 72px; }
body.editor-page .ed-hero.ed-hero--compact { width: 100%; max-width: none; margin: 0 0 18px; }
body.editor-page .ed-hero.ed-hero--compact h1 { margin: 0; font-size: clamp(1.75rem,3vw,2.2rem); line-height: 1.1; font-weight: 800; }
body.captions-page-v4 main.main-container.main-container { margin-top: 72px; }
body.captions-page-v4 .caption-workbench { gap: 18px; }
body.captions-page-v4 .caption-page-intro { margin: 0; padding: 0; }
body.captions-page-v4 .caption-page-intro h1 { margin: 0; }
body.editor-page .source-intake-divider { width: min(100%,720px); }
body.editor-page .path-row.source-intake-url-row { margin-top: 0; }
body .source-intake-url-row { display: grid; grid-template-columns: minmax(0,1fr) 154px; gap: 10px; }
body .source-intake-url-row button { width: 154px; }
@media(max-width:620px) {
    body .source-intake-url-row { grid-template-columns: minmax(0,1fr); }
    body .source-intake-url-row button { width: 100%; }
}

/* Match the reference controls, including their contents rather than only the shell. */
body .source-intake-dropzone > button.btn-primary {
    padding: 16px;
    border: 1px solid rgba(99, 121, 255, .72);
}
body.editor-page .source-intake-message,
body.captions-page-v4 .caption-source-bar .source-message {
    width: min(100%, 720px);
    min-height: 1.35rem;
    margin: 12px auto 0;
    padding: 0;
    color: var(--v2-muted, #9da6af);
    font-size: .82rem;
    line-height: 1.45;
    text-align: left;
}
