body.cdq-page-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(198, 58, 50, 0.08), transparent 30%),
        radial-gradient(circle at top right, rgba(15, 48, 71, 0.12), transparent 24%),
        var(--bg-body);
}

.cdq-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cdq-shell {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 42px;
}

.cdq-hero {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    padding: 0 0 20px;
}

.cdq-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(15, 48, 71, 0.08);
    color: var(--secondary-color);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cdq-title {
    margin-top: 16px;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.08;
    color: var(--text-main);
}

.cdq-subtitle {
    margin-top: 10px;
    color: var(--text-sub);
    font-size: 18px;
    font-weight: 600;
}

.cdq-hero-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cdq-pill,
.cdq-mini-pill {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--secondary-color);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.cdq-pill.subtle,
.cdq-mini-pill.subtle {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.cdq-list {
    display: grid;
    gap: 18px;
}

.cdq-card,
.cdq-empty-card {
    background: var(--bg-card);
    border: 1px solid rgba(229, 231, 235, 0.92);
    border-radius: 26px;
    box-shadow: var(--shadow-sm);
}

.cdq-card {
    overflow: hidden;
}

.cdq-empty-card {
    padding: 24px;
}

.cdq-card-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 22px 14px;
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    background: linear-gradient(90deg, rgba(198, 58, 50, 0.08), rgba(15, 48, 71, 0.04));
}

.cdq-question-kicker {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cdq-card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cdq-rich {
    color: var(--text-main);
    line-height: 1.78;
    white-space: pre-wrap;
    word-break: break-word;
}

.ahust-otp-answer {
    color: #7c3aed;
    font-weight: 800;
}

.cdq-question-text,
.cdq-option-text,
.cdq-solution-text,
.cdq-option-fallback-raw {
    font-size: 17px;
}

.cdq-question-text {
    padding: 20px 22px 0;
}

.cdq-figure {
    margin: 14px 22px 0;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background: rgba(15, 48, 71, 0.03);
}

.cdq-figure img {
    display: block;
    max-width: 100%;
    max-height: 360px;
    margin: 0 auto;
    object-fit: contain;
}

.cdq-options {
    margin: 18px 22px 0;
}

.cdq-option-text-flow {
    display: block;
    min-width: 0;
}

.cdq-options.is-adaptive-layout .cdq-option-text-flow > :first-child {
    margin-top: 0;
}

.cdq-options.is-adaptive-layout .cdq-option-text-flow > :last-child {
    margin-bottom: 0;
}

.cdq-option.is-correct {
    background: rgba(16, 185, 129, 0.12);
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.28);
}

.cdq-option.is-correct .cdq-option-label,
.cdq-option.is-correct .cdq-option-text {
    color: #047857;
}

.cdq-option.is-correct .cdq-marker-radio,
.cdq-option.is-correct .cdq-marker-check {
    border-color: #10b981;
    background: #10b981;
}

.cdq-option.is-correct .cdq-marker-radio::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #fff;
    transform: translate(-50%, -50%);
}

.cdq-option.is-correct .cdq-marker-check::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.cdq-option-fallback {
    margin: 18px 22px 0;
    padding: 18px;
    border-radius: 18px;
    border: 1px dashed rgba(198, 58, 50, 0.3);
    background: rgba(198, 58, 50, 0.05);
}

.cdq-option-fallback-title {
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 800;
}

.cdq-option-fallback-copy {
    margin-top: 6px;
    color: var(--text-sub);
    font-size: 14px;
}

.cdq-option-fallback-raw {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}

.cdq-option-warning {
    margin: 16px 22px 0;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(245, 158, 11, 0.28);
    background: rgba(245, 158, 11, 0.12);
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.7;
}

.cdq-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 18px 22px 0;
}

.cdq-btn,
.cdq-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.cdq-btn:hover:not(:disabled),
.cdq-link-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.cdq-btn.primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.cdq-btn.secondary {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}

.cdq-btn.is-disabled,
.cdq-btn:disabled {
    cursor: not-allowed;
    opacity: 0.76;
    transform: none;
    box-shadow: none;
    background: #e5e7eb;
    border-color: #e5e7eb;
    color: #94a3b8;
}

.cdq-link-btn {
    background: rgba(15, 48, 71, 0.05);
    border-color: rgba(15, 48, 71, 0.12);
    color: var(--secondary-color);
}

.cdq-answer-box,
.cdq-solution {
    width: 100%;
    margin: 16px 0 0;
    padding: 16px 22px;
    border-radius: 0;
}

.cdq-answer-box {
    background: rgba(16, 185, 129, 0.11);
    border: 1px solid rgba(16, 185, 129, 0.24);
    color: #065f46;
}

.cdq-answer-title,
.cdq-solution-title {
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 850;
}

.cdq-answer-value {
    font-size: 16px;
    font-weight: 700;
}

.cdq-solution {
    margin-bottom: 0;
    background: rgba(15, 48, 71, 0.04);
    border: 1px solid rgba(15, 48, 71, 0.1);
}

.cdq-answer-box,
.cdq-solution {
    border-right: 0;
    border-left: 0;
}

.cdq-answer-box:not([hidden]) + .cdq-solution:not([hidden]) {
    margin-top: 0;
}

@media (max-width: 760px) {
    .cdq-answer-box,
    .cdq-solution {
        padding-right: 18px;
        padding-left: 18px;
    }
}

.cdq-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.cdq-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    font-weight: 700;
}

.cdq-page-btn.is-current {
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}

.cdq-empty-card h2 {
    color: var(--text-main);
    font-size: 32px;
}

.cdq-empty-card p {
    margin-top: 12px;
    color: var(--text-sub);
    line-height: 1.8;
}

.cdq-empty-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

@media (max-width: 960px) {
    .cdq-hero {
        flex-direction: column;
    }

    .cdq-hero-meta {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .cdq-shell {
        width: min(100%, calc(100% - 28px));
    }

    .cdq-card-head,
    .cdq-card-meta {
        justify-content: flex-start;
    }

    .cdq-card-head {
        flex-direction: column;
    }

    .cdq-question-text,
    .cdq-option-text,
    .cdq-solution-text,
    .cdq-option-fallback-raw {
        font-size: 16px;
        line-height: 1.7;
    }

}
