.hero-video {
    margin: 0 0 1rem;
    border: 1px solid #d9d0c3;
    border-radius: 14px;
    padding: 0.5rem;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.hero-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 10px;
    display: block;
}

.source-material {
    margin: 0 0 1rem;
    border: 1px solid #d8d1c6;
    border-radius: 12px;
    background: #fff;
    padding: 0.8rem;
}

.source-actions {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0.65rem;
}

.source-pdf-wrapper {
    display: block;
    margin: 0;
}

.source-image {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #e8e2d8;
    display: block;
    height: auto;
}

.form-title {
    margin: 0 0 0.8rem;
    font-size: 1.1rem;
}

.entries {
    display: grid;
    gap: 0.9rem;
}

.entry-row {
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: 0.85rem;
    display: grid;
    gap: 0.8rem;
    background: #fffcf6;
}

.fields {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
}

.signature-area {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    padding: 0.65rem;
}

.signature-title {
    margin: 0 0 0.35rem;
    font-weight: 700;
}

.signature-canvas {
    width: 100%;
    height: 180px;
    border: 1px dashed #b7afa5;
    border-radius: 8px;
    background: repeating-linear-gradient(-45deg,
            #fff,
            #fff 8px,
            #fdfaf4 8px,
            #fdfaf4 16px);
    touch-action: none;
}

.clear-signature-btn {
    margin-top: 0.5rem;
    background: #f0ebe3;
    color: #2d2926;
}

#addEntryBtn {
    background: #ece7dd;
    color: #2d2926;
}

@media (max-width: 768px) {
    .fields {
        grid-template-columns: 1fr;
    }

    .clear-signature-btn,
    .source-link {
        width: 100%;
    }

    .signature-canvas {
        height: 150px;
    }

    .hero-video {
        margin-bottom: 0.85rem;
    }
}
