.capture-container {
    width: 100%;
}

.capture-shell {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #dbe3ec;
    border-radius: 16px;
    background: linear-gradient(180deg, #fcfdff 0%, #f6f9fc 100%);
}

.capture-stage {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: 14px;
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.26), transparent 42%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.video-active,
.video-hidden {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.video-hidden {
    display: none;
}

.capture-stage__placeholder {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.55rem;
    min-height: 220px;
    padding: 1rem;
    color: #e2e8f0;
}

.capture-stage__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
}

.capture-stage__title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.capture-stage__text {
    max-width: 28rem;
    color: rgba(226, 232, 240, 0.9);
    line-height: 1.5;
}

.capture-controls {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.capture-controls__header {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.capture-controls__title {
    font-size: 0.98rem;
    font-weight: 800;
    color: #0f172a;
}

.capture-controls__copy {
    color: #475569;
    line-height: 1.45;
}

.capture-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.capture-button-row .capture-action-button.rz-button {
    min-height: 2.35rem;
    padding: 0.45rem 0.82rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.capture-button-row .capture-action-button.rz-button:hover:not(.rz-state-disabled) {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.14);
    transform: translateY(-1px);
}

.capture-button-row .capture-action-button.rz-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.capture-button-row .capture-action-button.rz-button.rz-state-disabled {
    opacity: 0.55;
    box-shadow: none;
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
}

.capture-button-row .capture-action-button--primary.rz-button {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    border-color: #1d4ed8;
    color: #ffffff;
}

.capture-button-row .capture-action-button--primary.rz-button:hover:not(.rz-state-disabled) {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    border-color: #1e40af;
    color: #ffffff;
}

.capture-upload-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.9rem 1rem;
    border: 1px dashed #93c5fd;
    border-radius: 14px;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 100%);
    cursor: pointer;
}

.capture-upload-card__title {
    font-weight: 800;
    color: #0f172a;
}

.capture-upload-card__copy {
    color: #475569;
    line-height: 1.45;
}

.capture-upload-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-top: 0.25rem;
    padding: 0.44rem 0.8rem;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
}

.capture-upload-card__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

@media (min-width: 900px) {
    .capture-shell {
        flex-direction: row;
        align-items: stretch;
    }

    .capture-stage {
        flex: 1 1 56%;
        min-height: 260px;
    }

    .video-active,
    .video-hidden,
    .capture-stage__placeholder {
        min-height: 260px;
    }

    .capture-controls {
        flex: 1 1 44%;
    }
}
