.shq-app {
    --shq-bg: #f4f7fb;
    --shq-card: #ffffff;
    --shq-text: #172033;
    --shq-muted: #637083;
    --shq-border: #dce3ec;
    --shq-primary: #2563eb;
    --shq-primary-dark: #1d4ed8;
    --shq-success: #16803c;
    --shq-success-bg: #eaf8ef;
    --shq-danger: #b42318;
    --shq-danger-bg: #fff0ee;
    --shq-training: #8a4b00;
    --shq-training-bg: #fff7e6;
    max-width: 860px;
    margin: 24px auto;
    color: var(--shq-text);
    font-family: inherit;
}

.shq-app *,
.shq-app *::before,
.shq-app *::after {
    box-sizing: border-box;
}

.shq-card {
    background: var(--shq-card);
    border: 1px solid var(--shq-border);
    border-radius: 20px;
    padding: clamp(22px, 4vw, 42px);
    box-shadow: 0 14px 40px rgba(30, 52, 84, 0.09);
}

.shq-card[hidden],
.shq-feedback[hidden],
.shq-review[hidden],
.shq-best[hidden],
.shq-button[hidden],
.shq-source-note[hidden] {
    display: none !important;
}

.shq-card h2,
.shq-card h3,
.shq-card h4,
.shq-card p {
    margin-top: 0;
}

.shq-category-label {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #e9f0ff;
    color: #1e4fb7;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 11px;
    margin-bottom: 14px;
}

.shq-lead {
    color: var(--shq-muted);
    line-height: 1.65;
    margin-bottom: 20px;
}


.shq-field {
    margin-bottom: 18px;
}

.shq-field label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.shq-field select,
.shq-self-answer {
    width: 100%;
    border: 1px solid var(--shq-border);
    border-radius: 12px;
    background: #fff;
    color: var(--shq-text);
    font: inherit;
}

.shq-field select {
    min-height: 48px;
    padding: 10px 14px;
}

.shq-field select:disabled {
    background: #f3f5f8;
    color: var(--shq-muted);
}

.shq-self-answer {
    min-height: 112px;
    padding: 14px 16px;
    line-height: 1.5;
    resize: vertical;
}

.shq-self-answer:focus,
.shq-field select:focus,
.shq-answer:focus,
.shq-button:focus {
    outline: 3px solid rgba(37, 99, 235, 0.2);
    outline-offset: 2px;
}

.shq-button {
    appearance: none;
    border: 0;
    border-radius: 12px;
    padding: 13px 20px;
    min-height: 48px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.shq-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.shq-button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.shq-button-primary {
    background: var(--shq-primary);
    color: #fff;
}

.shq-button-primary:hover:not(:disabled) {
    background: var(--shq-primary-dark);
}

.shq-button-success {
    background: var(--shq-success);
    color: #fff;
}

.shq-button-secondary {
    background: #fff;
    color: var(--shq-text);
    border: 1px solid var(--shq-border);
}

.shq-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: var(--shq-muted);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.shq-progress {
    height: 8px;
    border-radius: 999px;
    background: #e8edf4;
    overflow: hidden;
    margin-bottom: 24px;
}

.shq-progress span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--shq-primary);
    transition: width .25s ease;
}

.shq-question {
    font-size: clamp(21px, 3vw, 29px);
    line-height: 1.4;
    margin-bottom: 22px;
}

.shq-source-note {
    margin: -8px 0 18px;
    padding: 11px 13px;
    border-radius: 10px;
    background: var(--shq-danger-bg);
    color: var(--shq-danger);
    font-size: 14px;
    font-weight: 700;
}

.shq-answers {
    display: grid;
    gap: 12px;
}

.shq-answer {
    appearance: none;
    width: 100%;
    border: 1px solid var(--shq-border);
    border-radius: 14px;
    background: #fff;
    color: var(--shq-text);
    padding: 15px 17px;
    text-align: left;
    font: inherit;
    line-height: 1.45;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.shq-answer:hover:not(:disabled) {
    border-color: var(--shq-primary);
    transform: translateY(-1px);
}

.shq-answer:disabled {
    cursor: default;
    opacity: 1;
}

.shq-answer.is-correct {
    border-color: var(--shq-success);
    background: var(--shq-success-bg);
}

.shq-answer.is-wrong {
    border-color: var(--shq-danger);
    background: var(--shq-danger-bg);
}

.shq-self-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.shq-feedback {
    border-radius: 14px;
    padding: 15px 17px;
    line-height: 1.55;
    margin: 18px 0;
}

.shq-feedback.is-correct {
    color: #135f30;
    background: var(--shq-success-bg);
    border: 1px solid #bfe7cb;
}

.shq-feedback.is-wrong {
    color: #8a211a;
    background: var(--shq-danger-bg);
    border: 1px solid #f2c4bf;
}

.shq-feedback-source,
.shq-review-source {
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px solid currentColor;
    font-size: 13px;
    line-height: 1.5;
    opacity: .9;
}

.shq-feedback-source a,
.shq-review-source a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.shq-review-source {
    color: var(--shq-muted);
}

.shq-best,
.shq-bank-summary {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--shq-bg);
    color: var(--shq-muted);
    font-weight: 700;
}

.shq-bank-summary {
    border: 1px solid var(--shq-border);
}

.shq-result {
    text-align: center;
}

.shq-result-icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    border-radius: 50%;
    font-size: 38px;
    font-weight: 800;
}

.shq-result-icon.is-passed {
    background: var(--shq-success-bg);
    color: var(--shq-success);
}

.shq-result-icon.is-failed {
    background: var(--shq-danger-bg);
    color: var(--shq-danger);
}

.shq-result-icon.is-training {
    background: var(--shq-training-bg);
    color: var(--shq-training);
}

.shq-result-score {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.shq-result-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.shq-review {
    text-align: left;
    margin-top: 28px;
}

.shq-review-item {
    border-top: 1px solid var(--shq-border);
    padding: 20px 0;
}

.shq-review-item h4 {
    line-height: 1.45;
}

.shq-review-item p {
    color: var(--shq-muted);
    line-height: 1.55;
    margin-bottom: 8px;
}

.shq-review-item .shq-review-question {
    color: var(--shq-text);
    font-weight: 700;
}

.shq-hint {
    margin: 8px 0 0;
    color: var(--shq-muted);
    font-size: 13px;
    line-height: 1.5;
}

.shq-timer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 76px;
    padding: 5px 9px;
    border: 1px solid var(--shq-border);
    border-radius: 999px;
    background: var(--shq-bg);
    color: var(--shq-text);
    font-variant-numeric: tabular-nums;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.shq-timer[hidden] {
    display: none !important;
}

.shq-timer.is-warning {
    color: #8a4b00;
    background: var(--shq-training-bg);
    border-color: #f2c66d;
    animation: shq-timer-pulse 1s ease-in-out infinite;
}

.shq-timer.is-expired {
    color: var(--shq-danger);
    background: var(--shq-danger-bg);
    border-color: #f2c4bf;
    animation: none;
}

.shq-result-meta {
    color: var(--shq-muted);
    font-weight: 700;
}

@keyframes shq-timer-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

@media (max-width: 560px) {
    .shq-app {
        margin: 14px 0;
    }

    .shq-card {
        border-radius: 14px;
    }

    .shq-topline {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .shq-result-actions,
    .shq-result-actions .shq-button,
    .shq-self-actions,
    .shq-self-actions .shq-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shq-timer.is-warning {
        animation: none;
    }
}

/* Rebuilt package: force stylesheet cache refresh. */
