body {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    background: #f4f6f8;
    margin: 0;
    color: #222;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.header h1 {
    margin: 0;
    font-size: 26px;
    color: #1f2d3d;
}

.card {
    background: #fff;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.card h2 {
    margin-top: 0;
    margin-bottom: 6px;
    color: #1f2d3d;
}

.card h3 {
    margin-top: 0;
}

.desc {
    color: #555;
}

.meta {
    color: #888;
    font-size: 13px;
}

.actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    border: none;
    background: #e2e6ea;
    color: #333;
    font-family: inherit;
}

.btn-primary {
    background: #2f6fed;
    color: #fff;
}

.btn-secondary {
    background: #eef1f5;
    color: #333;
}

.btn-danger {
    background: #fdeceb;
    color: #c0392b;
}

.input {
    width: 100%;
    padding: 9px 12px;
    margin: 6px 0 16px;
    border: 1px solid #d7dce1;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: inherit;
}

label {
    font-weight: 600;
    font-size: 13px;
    color: #444;
}

.error {
    color: #c0392b;
    display: block;
    margin-top: 8px;
    font-size: 13px;
}

.empty {
    text-align: center;
    color: #888;
    padding: 40px;
}

.question-preview {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.question-preview:last-child {
    border-bottom: none;
}

.question-preview ul {
    margin: 6px 0 0;
    padding-left: 20px;
    color: #555;
}

.result-row {
    margin-bottom: 14px;
}

.result-label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 4px;
}

.bar-bg {
    background: #eef1f5;
    border-radius: 6px;
    height: 14px;
    overflow: hidden;
}

.bar-fill {
    background: #2f6fed;
    height: 100%;
    border-radius: 6px;
    transition: width .3s ease;
}

.alert {
    background: #eafaf1;
    color: #1e824c;
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.rblChoices label {
    font-weight: normal;
    display: block;
    margin: 4px 0;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(20, 28, 38, 0.55);
}

.modal-box {
    width: min(420px, 100%);
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 18px 44px rgba(0,0,0,0.22);
}

.modal-box h2 {
    margin: 0 0 8px;
    color: #1f2d3d;
}

@media (max-width: 560px) {
    .result-label {
        display: block;
    }

    .btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}
