#batch-compress-container {
    margin-left: 240px;
    padding: 40px;
    min-height: 100vh;
    background: #f5f6fa;
    color: #2c3e50;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI',
                 'PingFang SC', sans-serif;
    box-sizing: border-box;
}

#batch-compress-container *,
#batch-compress-container *::before,
#batch-compress-container *::after {
    box-sizing: border-box;
}

#batch-compress-container h1 {
    font-size: 20px;
    margin: 0 0 16px;
}

.batch-compress-subtitle {
    font-size: 12px;
    color: #95a5a6;
    margin-bottom: 16px;
}

#dropzone {
    max-width: 680px;
    border: 2px dashed #b0b8c4;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    transition: all .2s;
    margin-bottom: 16px;
}

#dropzone.dragover {
    border-color: #4a90e2;
    background: #eef4fb;
}

.dropzone-select-hint {
    margin-top: 6px;
    font-size: 13px;
    color: #555;
}

#dropzone .hint {
    color: #7f8c8d;
    font-size: 13px;
    margin-top: 8px;
}

.level-group {
    max-width: 680px;
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
}

.level-group label {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e4e9;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    background: #fff;
    font-size: 14px;
    transition: all .15s;
    user-select: none;
}

.level-group input[type="radio"] {
    display: none;
}

.level-group label.active {
    border-color: #4a90e2;
    background: #eef4fb;
    color: #4a90e2;
}

#batch-compress-container > button {
    max-width: 680px;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #4a90e2;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 16px;
}

#batch-compress-container > button:disabled {
    background: #b0b8c4;
    cursor: not-allowed;
}

#batch-compress-container .download-btn {
    background: #27ae60;
}

#progressSection,
#resultSection,
#failSection {
    max-width: 680px;
    background: #fff;
    border-radius: 8px;
}

#progressSection {
    display: none;
    padding: 16px;
    margin-bottom: 16px;
}

#progressBar {
    height: 12px;
    background: #e0e4e9;
    border-radius: 6px;
    overflow: hidden;
    margin: 12px 0;
}

#progressBarFill {
    height: 100%;
    background: #4a90e2;
    width: 0%;
    transition: width .2s;
}

#currentFile {
    font-size: 13px;
    color: #7f8c8d;
    word-break: break-all;
    margin-bottom: 8px;
}

#progressText {
    font-size: 15px;
    font-weight: 600;
}

#resultSection {
    display: none;
    padding: 20px;
    margin-bottom: 16px;
}

.result-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    font-size: 14px;
}

.stat-row.total {
    font-weight: bold;
    font-size: 16px;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
}

.stat-row .val {
    font-family: monospace;
}

.stat-skipped {
    color: #7f8c8d;
}

.stat-success,
.stat-saving {
    color: #27ae60;
}

.stat-fail {
    color: #e74c3c;
}

#failSection {
    display: none;
    padding: 16px;
}

#failSection h3 {
    font-size: 14px;
    color: #e74c3c;
    margin-bottom: 8px;
}

.fail-item {
    font-size: 12px;
    color: #c0392b;
    padding: 4px 0;
    border-bottom: 1px solid #fee;
    font-family: monospace;
}

.skip-item {
    font-size: 12px;
    color: #7f8c8d;
    padding: 4px 0;
    border-bottom: 1px solid #eee;
    font-family: monospace;
}

#toast {
    position: fixed;
    top: 20px;
    left: calc(50% + 120px);
    transform: translateX(-50%);
    background: #2c3e50;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    display: none;
    z-index: 1000;
    font-size: 14px;
}