:root {
    --accent: #4f46e5;
    --bg: #f7f7fb;
    --card: #ffffff;
    --text: #1f2937;
    --border: #e5e7eb;
    --error: #dc2626;
    --success: #16a34a;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.page {
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 20px;
}

header h1 { margin-bottom: 4px; }
.subtitle { color: #6b7280; margin-top: 0; }

.download-form {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.download-form label {
    font-weight: 600;
    margin-top: 12px;
    font-size: 14px;
}

.download-form input,
.download-form select {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: white;
    font-family: inherit;
}

.download-form button {
    margin-top: 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.download-form button:hover { opacity: 0.9; }

.field-error { color: var(--error); font-size: 13px; }

.result {
    margin-top: 20px;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.result.success { border-color: var(--success); background: #f0fdf4; }
.result.error { border-color: var(--error); background: #fef2f2; }

.previous {
    margin-top: 32px;
}

.previous ul {
    list-style: none;
    padding: 0;
}

.previous li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
