.cppp-converter {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    font-family: inherit;
}

.cppp-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.cppp-header h3 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.2;
}

.cppp-header p {
    margin: 0 0 18px;
    color: #4b5563;
}

.cppp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.cppp-upload {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px;
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.cppp-upload-secondary {
    background: #ffffff;
}

.cppp-upload:hover {
    border-color: #0f766e;
    background: #f0fdfa;
}

.cppp-upload input {
    margin-bottom: 10px;
    max-width: 100%;
}

.cppp-upload-title {
    font-weight: 700;
    color: #111827;
}

.cppp-upload-hint {
    font-size: 14px;
    color: #64748b;
}

.cppp-status,
.cppp-base-status {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f3f4f6;
    color: #374151;
    font-size: 14px;
}

.cppp-base-status {
    margin-top: 14px;
}

.cppp-status.is-loading,
.cppp-base-status.is-loading {
    background: #eff6ff;
    color: #1d4ed8;
}

.cppp-status.is-success,
.cppp-base-status.is-success {
    background: #ecfdf5;
    color: #047857;
}

.cppp-status.is-error,
.cppp-base-status.is-error {
    background: #fef2f2;
    color: #b91c1c;
}

.cppp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.cppp-actions button {
    border: 0;
    border-radius: 10px;
    padding: 12px 16px;
    background: #0f766e;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: transform .08s ease, opacity .2s ease;
}

.cppp-actions button:hover:not(:disabled) {
    transform: translateY(-1px);
    opacity: .94;
}

.cppp-actions button:disabled {
    background: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
}

.cppp-result {
    margin-top: 18px;
}

.cppp-summary {
    margin-bottom: 12px;
    font-size: 14px;
    color: #334155;
}

.cppp-preview-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.cppp-preview {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cppp-preview th,
.cppp-preview td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    white-space: nowrap;
}

.cppp-preview th {
    background: #0f766e;
    color: #ffffff;
    font-weight: 700;
}

.cppp-preview tr:last-child td {
    border-bottom: 0;
}

@media (max-width: 760px) {
    .cppp-card {
        padding: 18px;
    }

    .cppp-grid {
        grid-template-columns: 1fr;
    }

    .cppp-actions button {
        width: 100%;
    }
}
