.practice-shell {
    padding: 68px 0;
}

.practice-hero {
    max-width: 820px;
    margin-bottom: 28px;
}

.practice-hero h1,
.practice-summary h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    line-height: 1.08;
    letter-spacing: -.045em;
    margin: 0 0 16px;
}

.practice-hero p:not(.eyebrow) {
    color: var(--muted, #5f6b7a);
    font-size: 1.15rem;
}

.practice-filter-card,
.practice-question-card,
.practice-summary,
.practice-adaptive-card,
.practice-my-card,
.practice-progress-card,
.practice-history-card,
.enraiq-practice-entry {
    background: var(--surface, #fff);
    border: 1px solid var(--line, #e5e0d6);
    border-radius: 22px;
    box-shadow: var(--shadow, 0 24px 60px rgba(20, 32, 51, .08));
    padding: 26px;
}

.practice-filter-card {
    display: grid;
    gap: 18px;
}

.practice-adaptive-card,
.practice-my-card,
.practice-progress-card,
.practice-history-card {
    margin: 24px 0;
}

.practice-adaptive-card h2,
.practice-my-card h2,
.practice-progress-card h2,
.practice-history-card h2 {
    margin-top: 0;
}

.practice-action-row,
.practice-weak-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
}

.practice-button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.practice-weak-list form {
    flex: 1 1 210px;
}

.practice-weak-item,
.practice-progress-row {
    width: 100%;
    border: 1px solid var(--line, #e5e0d6);
    border-radius: 16px;
    background: #fbfaf7;
    color: inherit;
    cursor: pointer;
    font: inherit;
    padding: 14px 16px;
    text-align: left;
}

.practice-weak-item span,
.practice-weak-item small {
    display: block;
}

.practice-weak-item small,
.practice-history-row span,
.practice-history-row p {
    color: var(--muted, #5f6b7a);
}

.practice-progress-list,
.practice-history-list {
    display: grid;
    gap: 10px;
}

.practice-progress-row,
.practice-history-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.practice-history-action {
    flex: 0 0 auto;
}

.practice-progress-row strong {
    border-radius: 999px;
    padding: 6px 10px;
    white-space: nowrap;
}

.classification-needs-review {
    background: #fff1f2;
    color: #9f1239;
}

.classification-developing {
    background: #fffbeb;
    color: #92400e;
}

.classification-new {
    background: #eef2ff;
    color: #3730a3;
}

.classification-strong {
    background: #ecfdf5;
    color: #166534;
}

.practice-history-row {
    border-bottom: 1px solid var(--line, #e5e0d6);
    padding: 12px 0;
}

.practice-history-row:last-child {
    border-bottom: 0;
}

.practice-history-row strong,
.practice-history-row span {
    display: block;
}

.practice-history-row p {
    margin: 0;
    text-align: right;
}

.practice-filter-card select,
.practice-answer-form input[type="text"],
.practice-answer-form input[type="number"],
.practice-answer-form textarea {
    width: 100%;
    border: 1px solid var(--line, #e5e0d6);
    border-radius: 14px;
    background: #fff;
    padding: 12px 14px;
    font: inherit;
}

.practice-mode-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.practice-mode-card {
    border: 1px solid var(--line, #e5e0d6);
    border-radius: 18px;
    padding: 16px;
    background: #fbfaf7;
    cursor: pointer;
}

.practice-mode-card input {
    margin-bottom: 12px;
}

.practice-mode-card strong,
.practice-mode-card span {
    display: block;
}

.practice-mode-card span,
.practice-topic,
.practice-dimensions,
.practice-question-meta,
.practice-summary-grid span {
    color: var(--muted, #5f6b7a);
}

.practice-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: var(--text, #142033);
    color: #fff;
    padding: 12px 20px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.practice-button.secondary {
    background: var(--accent-soft, #eef1ff);
    color: var(--accent, #3147a8);
}

.practice-question-meta,
.practice-dimensions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: .92rem;
}

.practice-question-card h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.12;
    letter-spacing: -.035em;
    margin: 10px 0 16px;
}

.practice-prompt {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.14rem;
    line-height: 1.84;
    margin: 24px 0;
}

.practice-shell .katex-display {
    overflow-x: auto;
    overflow-y: hidden;
    padding: .35rem 0 .55rem;
}

.practice-shell .katex-display > .katex {
    white-space: nowrap;
}

.practice-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border: 1px solid var(--line, #e5e0d6);
    border-radius: 16px;
    padding: 14px;
    margin: 10px 0;
    background: #fbfaf7;
}

.practice-confidence {
    border: 0;
    padding: 0;
    margin: 18px 0;
}

.practice-confidence legend {
    font-weight: 800;
    margin-bottom: 8px;
}

.practice-confidence label {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin: 0 14px 8px 0;
}

.practice-feedback,
.practice-model-answer,
.practice-correct-answer,
.practice-explanation,
.practice-flashcard-front {
    border: 1px solid var(--line, #e5e0d6);
    border-radius: 18px;
    padding: 18px;
    margin: 18px 0;
    background: #fbfaf7;
}

.practice-feedback.is-correct {
    border-color: #86efac;
    background: #ecfdf5;
}

.practice-feedback.is-incorrect {
    border-color: #fecdd3;
    background: #fff1f2;
}

.practice-self-assess {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.practice-self-assess p {
    flex-basis: 100%;
    margin-bottom: 0;
}

.practice-summary-grid,
.practice-term-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.practice-summary-grid div,
.practice-term-card {
    background: #fbfaf7;
    border: 1px solid var(--line, #e5e0d6);
    border-radius: 18px;
    padding: 18px;
}

.practice-summary-grid strong {
    display: block;
    font-size: 2rem;
}

.practice-browse {
    margin-top: 38px;
}

.practice-term-card strong,
.practice-term-card span {
    display: block;
}

.enraiq-practice-entry {
    margin-top: 42px;
}

.enraiq-practice-entry h2 {
    margin-top: 0;
}

@media (max-width: 920px) {
    .practice-mode-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .practice-shell {
        padding: 44px 0;
    }

    .practice-mode-grid,
    .practice-summary-grid,
    .practice-term-grid {
        grid-template-columns: 1fr;
    }

    .practice-progress-row,
    .practice-history-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .practice-history-action,
    .practice-history-action form,
    .practice-history-action .practice-button {
        width: 100%;
    }

    .practice-history-row p {
        text-align: left;
    }
}
