:root {
    --primary: #0f6e51;
    --primary-dark: #0b543e;
    --text: #1f2933;
    --muted: #6b7280;
    --bg: #f4f6f5;
    --card-bg: #ffffff;
    --border: #e2e6e4;
    --danger: #c0392b;
    --radius: 12px;
}

* { box-sizing: border-box; }

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

.wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 16px;
}

header.site-header {
    text-align: center;
    padding: 20px 16px 8px;
}

header.site-header .logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 20px 16px;
    margin-bottom: 16px;
}

h1, h2 { color: var(--primary-dark); }

.step-indicator {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
}

.timer {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
    font-variant-numeric: tabular-nums;
}

.timer.timer-warning { background: var(--danger); }

.question-block {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.question-block:last-of-type { border-bottom: none; }

.question-text {
    font-weight: 600;
    margin-bottom: 10px;
}

.options { display: flex; flex-direction: column; gap: 8px; }

.option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.option input { margin-top: 3px; }

.answer-input, .answer-textarea, input[type=text], input[type=tel], input[type=number], select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-top: 4px;
}

label.field-label {
    display: block;
    font-weight: 600;
    margin: 14px 0 4px;
}

.btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 999px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    width: 100%;
    margin-top: 12px;
}

.btn-primary:active { background: var(--primary-dark); }

.muted { color: var(--muted); font-size: 14px; }

table.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
}

table.admin-table th, table.admin-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

table.admin-table th { background: #f0f2f1; }

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge-correct { background: #dcf5e6; color: #14532d; }
.badge-wrong { background: #fde2e1; color: #7f1d1d; }
.badge-pending { background: #fef3c7; color: #78350f; }

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--primary-dark);
    color: #fff;
}

.top-nav a { color: #fff; text-decoration: none; font-weight: 600; }

@media (max-width: 480px) {
    .wrap { padding: 12px; }
    .card { padding: 16px 12px; }
}
