.upload-zone {
    border: 2px dashed #d0d5dd;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: #fafbfc;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: #2563eb;
    background: #f0f4ff;
}

.upload-icon {
    width: 64px;
    height: 64px;
    line-height: 64px;
    border-radius: 50%;
    margin: 0 auto 0.8rem;
    font-size: 2rem;
    color: #2563eb;
    background: #e8f0ff;
}

.upload-text {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.35rem;
}

.upload-hint {
    font-size: 0.82rem;
    color: #999;
}

.convert-panel {
    display: grid;
    gap: 1.2rem;
}

.source-info {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e8eaf0;
    border-radius: 12px;
    background: #fff;
}

.source-preview img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}

.source-name {
    font-size: 0.96rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.45rem;
    word-break: break-all;
}

.source-meta {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    color: #6b7280;
    font-size: 0.84rem;
}

.format-select {
    padding: 1rem;
    border: 1px solid #e8eaf0;
    border-radius: 12px;
    background: #fff;
}

.format-options {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.format-option {
    position: relative;
}

.format-option input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.format-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    padding: 0.7rem 1rem;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    color: #374151;
    transition: all 0.15s;
}

.format-option input:checked + .format-tag {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.convert-result {
    padding: 1rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e8eef7;
}

.result-header {
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    color: #111827;
    margin-bottom: 0.9rem;
}

.result-compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 1rem;
}

.result-col {
    padding: 0.8rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.result-label {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.2rem;
}

.result-val {
    font-size: 0.96rem;
    color: #111827;
    font-weight: 600;
}

.result-arrow {
    color: #9ca3af;
    font-size: 1.2rem;
}

.result-preview-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.result-preview-wrap img {
    max-width: 100%;
    max-height: 320px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.tool-actions-center {
    justify-content: center;
}

.format-table-wrap {
    overflow-x: auto;
}

.format-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e8eaf0;
}

.format-table th,
.format-table td {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
    font-size: 0.88rem;
}

.format-table th {
    background: #f8fafc;
    color: #374151;
    font-weight: 700;
}

.format-table td {
    color: #4b5563;
    line-height: 1.7;
}

@media (max-width: 640px) {
    .upload-zone {
        padding: 2rem 1rem;
    }

    .source-info {
        grid-template-columns: 1fr;
    }

    .source-preview img {
        width: 100%;
        max-width: 180px;
        height: auto;
        margin: 0 auto;
        display: block;
    }

    .result-compare {
        grid-template-columns: 1fr;
    }

    .result-arrow {
        display: none;
    }
}
