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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f0f2f5;
    color: #333;
    padding: 40px 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #1a1a2e;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 24px;
}

.row {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    min-width: 140px;
}

.label {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a2e;
}

.value.green { color: #2ecc71; }
.value.red   { color: #e74c3c; }

.progress-bar {
    background: #eee;
    border-radius: 8px;
    height: 12px;
    margin-top: 24px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 8px;
    transition: width 0.4s ease;
    width: 0%;
}

#progress-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 8px;
}

.actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

button, .btn-download {
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s, transform 0.1s;
}

button {
    background: #3498db;
    color: #fff;
}

button:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); }
button:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-download {
    background: #2ecc71;
    color: #fff;
}

.btn-download:hover:not(.disabled) { opacity: 0.9; transform: translateY(-1px); }
.btn-download.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.hint {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.6;
}

.hint a { color: #3498db; }
.hint code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}