.epd-tool {
    max-width: 56rem;
}

.epd-section {
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
}

.epd-section:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.epd-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.epd-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.75rem;
}

.epd-section-head .epd-section-title {
    margin-bottom: 0;
}

.epd-input {
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    width: 100%;
    background: #fff;
}

.epd-input:focus {
    outline: 2px solid #0f766e;
    outline-offset: 1px;
}

.epd-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
}

.epd-field-full {
    grid-column: 1 / -1;
}

.epd-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}

@media (max-width: 640px) {
    .epd-grid-2 {
        grid-template-columns: 1fr;
    }
}

.epd-upload {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.epd-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.epd-file-label {
    display: inline-flex;
    align-items: center;
    border: 1px dashed #94a3b8;
    border-radius: 0.75rem;
    padding: 0.65rem 1rem;
    background: #f8fafc;
    color: #334155;
    font-size: 0.875rem;
    cursor: pointer;
}

.epd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
}

.epd-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.epd-btn-primary {
    background: #0f766e;
    color: #fff;
}

.epd-btn-primary:hover:not(:disabled) {
    background: #0d9488;
}

.epd-btn-secondary {
    background: #e2e8f0;
    color: #0f172a;
}

.epd-btn-ghost {
    background: transparent;
    border-color: #cbd5e1;
    color: #0f766e;
}

.epd-btn-download {
    background: #0f172a;
    color: #fff;
}

.epd-btn-download:hover:not(:disabled) {
    background: #1e293b;
}

.epd-download-row,
.epd-actions-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.epd-status {
    margin: 0.75rem 0 0;
    font-size: 0.875rem;
    color: #64748b;
    min-height: 1.25rem;
}

.epd-status.is-error {
    color: #b91c1c;
}

.epd-status.is-ok {
    color: #047857;
}

.mt-4 {
    margin-top: 1rem;
}
