* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: #fff;
    color: #000;
    line-height: 1.6;
}

.card {
    border: 1px solid #ddd;
    background: #fff;
    padding: 24px;
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.section-header p {
    font-size: 13px;
    color: #666;
}

.upload-card .upload-group {
    margin-bottom: 16px;
}

.file-drop {
    border: 2px dashed #d1d5db;
    border-radius: 0;
    padding: 48px 20px;
    text-align: center;
    cursor: pointer;
    background: #f9fafb;
    transition: border-color 0.2s ease, background 0.2s ease;
    outline: none;
}

.file-drop:hover,
.file-drop:focus-visible,
.file-drop.dragging {
    border-color: #000;
    background: #f3f4f6;
}

.file-drop.has-file .drop-message {
    display: none;
}

.file-drop.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.drop-title {
    font-size: 17px;
    font-weight: 600;
}

.drop-desc {
    margin-top: 6px;
    font-size: 13px;
    color: #666;
}

.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
}

.file-name {
    font-size: 15px;
    font-weight: 600;
    word-break: break-all;
}

.file-size {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.btn-small {
    height: 34px;
    padding: 0 14px;
    font-size: 13px;
}

.upload-tip {
    font-size: 13px;
    color: #666;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.setting-item {
    border: 1px solid #eee;
    padding: 16px;
    background: #fafafa;
}

.setting-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 600;
}

.setting-label span {
    font-weight: 500;
    color: #333;
}

.setting-desc {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

input[type="range"] {
    width: 100%;
    appearance: none;
    height: 4px;
    background: #e5e7eb;
    border-radius: 999px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #000;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #000;
    border: none;
    cursor: pointer;
}

.actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.status-text {
    font-size: 13px;
    color: #555;
}

.progress-card {
    border-style: dashed;
}

.progress-track {
    width: 100%;
    height: 10px;
    background: #f3f4f6;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #000;
    transition: width 0.2s ease;
}

.progress-label {
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.stat {
    border: 1px solid #eee;
    padding: 16px;
    background: #fafafa;
}

.stat-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    word-break: break-all;
}

.result-actions {
    margin-top: 20px;
}

.warning-card {
    border-color: #000;
}

.warning-list {
    list-style: disc;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: #444;
}

@media (max-width: 640px) {
    .file-drop {
        padding: 36px 16px;
    }

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