* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f2f4f8;
    color: #172033;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.card {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(23,32,51,.12);
    padding: 28px;
}
.card.wide { max-width: 800px; align-self: flex-start; }
h1 { margin: 0 0 10px; font-size: 1.8rem; }
h2 { margin-top: 28px; }
.hint, .question { color: #526071; line-height: 1.45; }
label { display: block; font-weight: 650; margin-top: 18px; }
input[type="text"], input[type="password"], input[type="number"], input:not([type]) {
    width: 100%;
    border: 1px solid #cfd6e4;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 1.05rem;
    margin-top: 6px;
}
button {
    width: 100%;
    margin-top: 24px;
    border: 0;
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 1.05rem;
    font-weight: 700;
    background: #194b9b;
    color: #fff;
    cursor: pointer;
}
button:hover { background: #123b7c; }
button.button-danger {
    background: #b42318;
}
button.button-danger:hover { background: #912018; }
.admin-actions {
    margin: 20px 0 8px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e4e8f0;
}
.admin-actions button { margin-top: 0; }
.message {
    padding: 12px 14px;
    border-radius: 12px;
    margin: 16px 0;
    line-height: 1.35;
}
.message.success { background: #e8f7ef; color: #126338; }
.message.error { background: #fdecec; color: #9e1c1c; }
.options { margin-top: 12px; }
.option {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 13px 14px;
    border: 1px solid #d8deea;
    border-radius: 12px;
    margin-top: 10px;
    font-weight: 500;
}
.option input { margin-top: 3px; transform: scale(1.15); }
table { width: 100%; border-collapse: collapse; margin-top: 12px; }
th, td { text-align: left; border-bottom: 1px solid #d8deea; padding: 10px; }
th { background: #f6f8fb; }
a { color: #194b9b; font-weight: 650; }
.result-block { border-top: 1px solid #e4e8f0; padding-top: 10px; }
.criteria { margin-top: 18px; }
.criterion {
    border: 1px solid #d8deea;
    border-radius: 14px;
    padding: 16px;
    margin-top: 14px;
    background: #fafbfc;
}
.criterion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.criterion-value {
    min-width: 2.2rem;
    text-align: center;
    font-weight: 700;
    color: #194b9b;
    background: #eef3fb;
    border-radius: 999px;
    padding: 4px 10px;
}
.criterion-question {
    margin: 8px 0 14px;
    color: #526071;
    line-height: 1.45;
    font-size: 0.95rem;
}
.slider-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
}
.slider-label {
    font-size: 0.9rem;
    color: #526071;
    font-weight: 600;
}
.criterion-slider {
    width: 100%;
    accent-color: #194b9b;
    cursor: pointer;
}
.average-box {
    margin-top: 22px;
    padding: 18px;
    border-radius: 14px;
    background: #eef3fb;
    text-align: center;
}
.average-label {
    display: block;
    font-weight: 650;
    color: #526071;
}
.average-value {
    display: block;
    font-size: 2rem;
    line-height: 1.2;
    margin: 6px 0;
    color: #194b9b;
}
.average-hint {
    display: block;
    font-size: 0.9rem;
    color: #526071;
}
.summary-row td { border-top: 2px solid #d8deea; }
.grade-tag { font-weight: 500; color: #526071; margin-left: 6px; }
