.disease-count-badge {
    padding: 8px 12px;
    border: 1px solid #d7e0dc;
    border-radius: 999px;
    background: #ffffff;
    color: #39715c;
    font-size: 0.82rem;
    font-weight: 800;
}

.disease-intro {
    max-width: 720px;
}

.disease-overall-stats {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
    margin-bottom: 24px;
    padding: 22px 24px;
    border: 1px solid #cfded7;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff, #edf6f2);
    box-shadow: 0 8px 24px rgba(24, 32, 29, 0.05);
}

.disease-stat-ring {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: conic-gradient(
        #39715c var(--disease-stat-angle),
        #dfe9e4 0
    );
}

.disease-stat-ring::before {
    grid-area: 1 / 1;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #ffffff;
    content: "";
}

.disease-stat-ring span {
    z-index: 1;
    grid-area: 1 / 1;
    color: #245f49;
    font-size: 1.25rem;
    font-weight: 850;
}

.disease-stat-count {
    display: grid;
    justify-items: center;
    line-height: 1;
}

.disease-stat-count strong {
    font-size: 1.1rem;
}

.disease-stat-count small {
    margin-top: 4px;
    color: #68766f;
    font-size: 0.62rem;
    font-weight: 700;
}

.disease-overall-stats__main h2,
.disease-overall-stats__main p {
    margin: 0;
}

.disease-overall-stats__main h2 {
    margin-top: 4px;
    font-size: clamp(1.25rem, 3vw, 1.65rem);
}

.disease-overall-stats__main > p:last-child {
    margin-top: 5px;
    color: #65726c;
    font-size: 0.88rem;
}

.disease-error-bank-stat {
    min-width: 135px;
    padding: 14px 16px;
    border: 1px solid #ead0d0;
    border-radius: 13px;
    background: #fff7f7;
    text-align: center;
}

.disease-error-bank-stat strong,
.disease-error-bank-stat span {
    display: block;
}

.disease-error-bank-stat strong {
    color: #9b3b3b;
    font-size: 1.45rem;
}

.disease-error-bank-stat span {
    margin-top: 3px;
    color: #7b6666;
    font-size: 0.72rem;
}

.disease-mode-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.disease-mode-card {
    display: flex;
    gap: 20px;
    min-height: 230px;
    padding: 28px;
    border: 1px solid #d7e0dc;
    border-radius: 20px;
    background: #ffffff;
    color: #18201d;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(24, 32, 29, 0.06);
    transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.disease-mode-card:first-child {
    background: linear-gradient(145deg, #ffffff, #edf7f2);
}

.disease-mode-card:nth-child(2) {
    background: linear-gradient(145deg, #ffffff, #f4f0fa);
}

.disease-mode-card--mistakes {
    background: linear-gradient(145deg, #ffffff, #fff1f1);
}

.disease-mode-card--mistakes .disease-mode-card__icon {
    background: #f5dddd;
    color: #9d3f3f;
}

.disease-mode-card--disabled {
    cursor: not-allowed;
    opacity: 0.58;
    box-shadow: none;
}

.disease-mode-card--disabled:hover {
    transform: none;
    border-color: #d7e0dc;
    box-shadow: none;
}

.disease-mode-card:hover {
    transform: translateY(-3px);
    border-color: #79a38f;
    box-shadow: 0 16px 36px rgba(24, 32, 29, 0.11);
}

.disease-mode-card__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: #dceee6;
    color: #245f49;
    font-size: 1.75rem;
    font-weight: 900;
}

.disease-mode-card:nth-child(2) .disease-mode-card__icon {
    background: #e9e0f5;
    color: #634785;
}

.disease-mode-card > span:last-child {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.disease-mode-card strong {
    font-size: 1.35rem;
}

.disease-mode-card small {
    margin-top: 9px;
    color: #5d6a65;
    font-size: 0.95rem;
    line-height: 1.55;
}

.disease-mode-warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    padding: 9px 10px;
    border-radius: 10px;
    background: #fff3d8;
    color: #765719;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.4;
}

.disease-mode-warning b {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e2a929;
    color: #ffffff;
}

.disease-mode-card .open-label {
    margin-top: auto;
    padding-top: 18px;
}

.disease-library-status {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.disease-library-status div,
.disease-library-button {
    padding: 17px;
    border: 1px solid #dce4e0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.disease-library-button {
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.disease-library-button:hover {
    border-color: #7fa996;
    background: #f3f8f6;
}

.disease-library-status strong,
.disease-library-status span {
    display: block;
}

.disease-library-page {
    width: min(100%, 1100px);
    margin: 0 auto;
}

.disease-library-filters {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, minmax(140px, 0.8fr)) auto;
    align-items: end;
    gap: 10px;
    padding: 18px;
    border: 1px solid #d7e0dc;
    border-radius: 16px;
    background: #ffffff;
}

.disease-library-filters label,
.disease-library-filters label > span {
    display: block;
}

.disease-library-filters label > span {
    margin-bottom: 6px;
    color: #52605a;
    font-size: 0.78rem;
    font-weight: 800;
}

.disease-library-filters input,
.disease-library-filters select {
    width: 100%;
    min-height: 44px;
    padding: 9px 11px;
    border: 1px solid #cfdad5;
    border-radius: 10px;
    background: #fafcfb;
    color: #18201d;
    font: inherit;
}

.disease-library-summary {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 18px 2px 10px;
    color: #5d6a65;
}

.disease-library-summary strong {
    color: #2d7358;
    font-size: 1.25rem;
}

.disease-question-library-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.disease-library-question,
.disease-library-empty {
    padding: 18px;
    border: 1px solid #d8e1dd;
    border-radius: 14px;
    background: #ffffff;
}

.disease-library-question--disabled {
    background: #f2f4f3;
    opacity: 0.72;
}

.disease-library-question h2 {
    margin: 14px 0 8px;
    font-size: 1.05rem;
    line-height: 1.4;
}

.disease-library-question p {
    margin: 0;
    color: #59665f;
    line-height: 1.45;
}

.disease-library-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 13px;
}

.disease-library-tags span {
    padding: 4px 7px;
    border-radius: 999px;
    background: #edf3f0;
    color: #4f6f61;
    font-size: 0.7rem;
    font-weight: 750;
}

.disease-library-toggle {
    margin-top: 15px;
    padding: 8px 11px;
    border: 1px solid #c89090;
    border-radius: 9px;
    background: #fff7f7;
    color: #8a3f3f;
    font-weight: 750;
    cursor: pointer;
}

.disease-library-toggle--enable {
    border-color: #7ca58f;
    background: #eef7f2;
    color: #2f7055;
}

.disease-library-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 20px;
}

.disease-library-pagination button {
    padding: 9px 12px;
    border: 1px solid #cbd7d1;
    border-radius: 9px;
    background: #ffffff;
    color: #2d7358;
    font-weight: 750;
    cursor: pointer;
}

.disease-library-pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.disease-library-status span {
    margin-top: 4px;
    color: #68756f;
    font-size: 0.8rem;
    line-height: 1.4;
}

.disease-coming-later {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #dce3e0;
}

.disease-coming-later > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.disease-coming-later span {
    padding: 8px 11px;
    border-radius: 999px;
    background: #e9eeec;
    color: #748078;
    font-size: 0.8rem;
    font-weight: 700;
}

.disease-compact-header {
    margin-bottom: 32px;
}

.disease-setup-intro {
    margin-bottom: 22px;
}

.disease-filter-card {
    padding: 26px;
    border: 1px solid #d7e0dc;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(24, 32, 29, 0.06);
}

.disease-filter-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 15px;
}

.disease-filter-heading h2,
.disease-filter-heading p {
    margin: 0;
}

.disease-filter-heading h2 {
    font-size: 1.15rem;
}

.disease-filter-heading p {
    margin-top: 5px;
    color: #68756f;
    font-size: 0.86rem;
}

.text-button {
    padding: 6px;
    border: 0;
    background: transparent;
    color: #2d7358;
    cursor: pointer;
    font-weight: 750;
}

.disease-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.disease-filter-option {
    position: relative;
    display: flex;
    min-height: 76px;
    padding: 13px;
    border: 1px solid #dce3e0;
    border-radius: 12px;
    background: #fafcfb;
    cursor: pointer;
}

.disease-filter-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.disease-filter-option span,
.disease-filter-option strong,
.disease-filter-option small {
    display: block;
}

.disease-category-progress {
    display: block;
    height: 5px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #dfe7e3;
}

.disease-category-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #39715c;
}

.disease-filter-option span {
    width: 100%;
}

.disease-filter-option strong {
    font-size: 0.88rem;
    line-height: 1.25;
}

.disease-filter-option small {
    margin-top: 5px;
    color: #75817b;
    font-size: 0.72rem;
}

.disease-filter-option:has(input:checked) {
    border-color: #39715c;
    background: #e9f4ef;
    box-shadow: inset 0 0 0 1px #39715c;
}

.disease-filter-option:has(input:focus-visible) {
    outline: 3px solid rgba(57, 113, 92, 0.2);
    outline-offset: 2px;
}

.disease-filter-option--disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.disease-filter-divider {
    height: 1px;
    margin: 26px 0;
    background: #e3e8e5;
}

.disease-difficulty-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.disease-difficulty-option {
    min-height: 82px;
}

.disease-difficulty-option--basic:has(input:checked) {
    border-color: #438066;
    background: #e8f4ee;
    box-shadow: inset 0 0 0 1px #438066;
}

.disease-difficulty-option--intermediate:has(input:checked) {
    border-color: #ae7b17;
    background: #fff5d9;
    box-shadow: inset 0 0 0 1px #ae7b17;
}

.disease-difficulty-option--advanced:has(input:checked) {
    border-color: #a94a4a;
    background: #faeaea;
    box-shadow: inset 0 0 0 1px #a94a4a;
}

.disease-difficulty-option--supernerd:has(input:checked) {
    border-color: #69479c;
    background: #f0e9fa;
    box-shadow: inset 0 0 0 1px #69479c;
}

.disease-count-options {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0;
    padding: 0;
    border: 0;
}

.disease-count-options legend {
    margin-bottom: 11px;
    font-weight: 800;
}

.disease-count-options label {
    cursor: pointer;
}

.disease-count-options input {
    position: absolute;
    opacity: 0;
}

.disease-count-options span {
    display: block;
    min-width: 64px;
    padding: 10px 15px;
    border: 1px solid #d6dfdb;
    border-radius: 11px;
    background: #ffffff;
    text-align: center;
    font-weight: 750;
}

.disease-count-options input:checked + span {
    border-color: #39715c;
    background: #e5f1ec;
    color: #245f49;
}

.disease-start-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 28px -26px -26px;
    padding: 20px 26px;
    border-top: 1px solid #e1e7e4;
    border-radius: 0 0 20px 20px;
    background: #f7faf8;
}

.disease-start-bar strong,
.disease-start-bar span {
    display: block;
}

.disease-start-bar strong {
    font-size: 1.25rem;
}

.disease-start-bar span {
    color: #68756f;
    font-size: 0.8rem;
}

.disease-start-bar .primary-button:disabled {
    border-color: #9ba7a1;
    background: #9ba7a1;
    cursor: not-allowed;
}

.disease-session-header {
    margin-bottom: 12px;
}

.disease-session-progress-text {
    text-align: right;
}

.disease-session-progress-text span,
.disease-session-progress-text strong {
    display: block;
}

.disease-session-progress-text span {
    color: #6b7872;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.disease-progress-track {
    height: 7px;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 999px;
    background: #dfe7e3;
}

.disease-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #39715c;
    transition: width 200ms ease;
}

.disease-session-main {
    width: min(100%, 800px);
    margin: 0 auto;
}

.disease-question-card,
.disease-flashcard-area,
.disease-results-card {
    padding: 30px;
    border: 1px solid #d7e0dc;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(24, 32, 29, 0.06);
}

.disease-question-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    color: #39715c;
    font-size: 0.78rem;
    font-weight: 800;
}

.disease-difficulty-chip {
    padding: 5px 9px;
    border-radius: 999px;
}

.disease-difficulty-chip--basic {
    background: #e3f2ea;
    color: #2e7356;
}

.disease-difficulty-chip--intermediate {
    background: #fff1c8;
    color: #8b6111;
}

.disease-difficulty-chip--advanced {
    background: #f8dfdf;
    color: #983d3d;
}

.disease-difficulty-chip--supernerd {
    background: #eadff7;
    color: #684292;
}

.disease-question-card > h1 {
    max-width: 700px;
    margin: 24px 0 28px;
    font-size: clamp(1.45rem, 4vw, 2rem);
    line-height: 1.3;
}

.disease-report-question {
    display: block;
    margin: -8px 0 22px auto;
    padding: 7px 9px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #6d7a74;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
}

.disease-report-question:hover,
.disease-report-question:focus-visible {
    background: #edf3f0;
    color: #2d7358;
    outline: none;
}

.disease-answer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.disease-answer {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 80px;
    padding: 14px;
    border: 1px solid #d7e0dc;
    border-radius: 13px;
    background: #fafcfb;
    color: #18201d;
    text-align: left;
    cursor: pointer;
}

.disease-answer:not(:disabled):hover {
    border-color: #7ca58f;
    background: #eef5f2;
}

.disease-answer > span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #e4ebe7;
    color: #52605a;
    font-weight: 850;
}

.disease-answer strong {
    font-size: 0.94rem;
    line-height: 1.35;
}

.disease-answer--correct {
    border-color: #34805c;
    background: #e3f4eb;
    box-shadow: inset 0 0 0 1px #34805c;
}

.disease-answer--correct > span {
    background: #34805c;
    color: #ffffff;
}

.disease-answer--wrong {
    border-color: #b64848;
    background: #fbe9e9;
    box-shadow: inset 0 0 0 1px #b64848;
}

.disease-answer--wrong > span {
    background: #b64848;
    color: #ffffff;
}

.disease-explanation {
    margin-top: 22px;
    padding: 20px;
    border-left: 5px solid;
    border-radius: 12px;
}

.disease-explanation--correct {
    border-color: #34805c;
    background: #edf7f2;
}

.disease-explanation--wrong {
    border-color: #b64848;
    background: #fff1f1;
}

.disease-explanation h2,
.disease-explanation p {
    margin: 0;
}

.disease-explanation p {
    margin-top: 8px;
    line-height: 1.55;
}

.disease-explanation-actions .primary-button {
    margin-top: 18px;
}

.disease-deepen-button {
    margin-top: 16px;
    padding: 9px 12px;
    border: 1px solid #88aa9b;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    color: #2f6d55;
    font-weight: 800;
    cursor: pointer;
}

.disease-deepen-button:hover {
    background: #ffffff;
}

.disease-deep-explanation {
    display: grid;
    gap: 12px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid rgba(57, 113, 92, 0.22);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.68);
}

.disease-deep-section {
    padding: 14px;
    border: 1px solid #dce7e2;
    border-radius: 10px;
    background: rgba(248, 252, 250, 0.88);
}

.disease-deep-section--primary {
    border-color: #bcd4c8;
    background: #f1f8f4;
}

.disease-deep-section--abbreviations {
    border-color: #c9d9eb;
    background: #f3f7fc;
}

.disease-deep-section--mnemonic {
    border-color: #ead59a;
    background: linear-gradient(135deg, #fff9e8, #fffdf5);
}

.disease-deep-section--mnemonic h3::before {
    margin-right: 7px;
    content: "💡";
}

.disease-deep-section--mnemonic p + p {
    padding-top: 9px;
    border-top: 1px solid rgba(153, 119, 35, 0.16);
}

.disease-deep-section h3 {
    margin: 0;
    color: #285f49;
    font-size: 0.9rem;
}

.disease-deep-section p {
    margin-top: 7px;
}

.disease-word-list {
    display: grid;
    gap: 8px;
    margin: 10px 0 0;
}

.disease-word-list > div {
    display: grid;
    grid-template-columns: minmax(90px, 0.35fr) minmax(0, 1fr);
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid #e0e9e5;
}

.disease-word-list > div:first-child {
    padding-top: 0;
    border-top: 0;
}

.disease-word-list dt {
    color: #243d33;
    font-weight: 800;
}

.disease-word-list dd {
    margin: 0;
    color: #53635c;
    line-height: 1.5;
}

.disease-deep-illustration {
    margin: 0;
    overflow: hidden;
    border: 1px solid #dce7e2;
    border-radius: 10px;
    background: #ffffff;
}

.disease-deep-illustration img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: contain;
}

.disease-deep-illustration figcaption {
    padding: 10px 14px;
    color: #66756e;
    font-size: 0.8rem;
    line-height: 1.45;
}

.disease-flashcard-area {
    text-align: center;
}

.disease-flashcard {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 390px;
    margin-top: 20px;
    padding: 38px;
    border: 2px solid #9bb9aa;
    border-radius: 22px;
    background: linear-gradient(145deg, #f9fdfb, #e9f4ef);
    color: #18201d;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(36, 95, 73, 0.1);
}

.disease-flashcard--flipped {
    border-color: #9d89b7;
    background: linear-gradient(145deg, #fdfbff, #f0e9f7);
}

.disease-flashcard__side-label {
    margin-bottom: 18px;
    color: #39715c;
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.disease-flashcard strong {
    max-width: 650px;
    font-size: clamp(1.5rem, 5vw, 2.35rem);
    line-height: 1.25;
}

.disease-flashcard p {
    max-width: 610px;
    margin: 18px 0 0;
    color: #4f5d57;
    line-height: 1.6;
}

.disease-flashcard small {
    margin-top: 28px;
    color: #718078;
}

.disease-flip-button {
    margin-top: 18px;
}

.disease-rating-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 18px;
}

.disease-rating-buttons button {
    padding: 13px 10px;
    border: 1px solid #d6dfdb;
    border-radius: 11px;
    background: #ffffff;
    cursor: pointer;
    font-weight: 750;
}

.disease-rating-buttons button:first-child {
    border-color: #dcaaaa;
    color: #9b3434;
}

.disease-rating-buttons button:nth-child(2) {
    border-color: #dec77c;
    color: #86610f;
}

.disease-rating-buttons button:last-child {
    border-color: #90b9a4;
    color: #2d7358;
}

.disease-results {
    width: min(100%, 720px);
    margin: 0 auto;
}

.disease-results-card {
    text-align: center;
}

.disease-results-icon {
    display: block;
    margin-bottom: 10px;
    font-size: 3rem;
}

.disease-results h1 {
    margin: 7px 0 13px;
}

.disease-result-percent {
    color: #2d7358;
    font-size: 2.5rem;
}

.disease-flash-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 22px;
}

.disease-flash-summary span {
    padding: 14px;
    border-radius: 12px;
    background: #f2f6f4;
    color: #5d6a65;
    font-size: 0.8rem;
}

.disease-flash-summary strong {
    display: block;
    margin-bottom: 3px;
    color: #18201d;
    font-size: 1.3rem;
}

.disease-category-breakdown {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #e1e7e4;
    text-align: left;
}

.disease-category-breakdown h2 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.disease-category-breakdown > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #edf1ef;
}

.disease-results-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}

.disease-results-header {
    justify-content: flex-end;
}

.disease-level-progress {
    margin: 24px 0;
    padding: 18px;
    border: 1px solid #dde7e2;
    border-radius: 18px;
    background: #f7faf8;
    text-align: left;
}

.disease-level-progress__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
}

.disease-level-progress__heading span {
    color: #276148;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.disease-level-progress__heading strong {
    color: #31423b;
    font-size: 0.9rem;
}

.disease-level-progress__track {
    height: 13px;
    overflow: hidden;
    border-radius: 999px;
    background: #dfe8e4;
    box-shadow: inset 0 1px 2px rgba(23, 55, 42, 0.1);
}

.disease-level-progress__track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #4c9b78, #77c89f);
    box-shadow: 0 0 12px rgba(76, 155, 120, 0.32);
    animation: disease-level-progress-fill 850ms cubic-bezier(0.2, 0.8, 0.25, 1) 180ms forwards;
}

.disease-level-progress p {
    margin: 10px 0 0;
    color: #52625b;
    font-size: 0.88rem;
}

.disease-level-progress p strong {
    color: #276148;
}

@keyframes disease-level-progress-fill {
    to {
        width: var(--disease-level-target);
    }
}

.disease-level-up {
    display: grid;
    grid-template-columns: 88px 1fr;
    align-items: center;
    gap: 18px;
    margin: 26px 0 8px;
    padding: 18px;
    border: 1px solid #e7c363;
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.9), transparent 40%),
        linear-gradient(135deg, #fff5c9, #f7df8a);
    box-shadow: 0 14px 34px rgba(126, 91, 12, 0.16);
    text-align: left;
    animation: disease-level-up-arrive 620ms cubic-bezier(0.2, 0.9, 0.25, 1.25) both;
}

.disease-level-up img,
.disease-level-up > span {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 8px 20px rgba(106, 74, 7, 0.16);
}

.disease-level-up > span {
    display: grid;
    place-items: center;
    font-size: 2.7rem;
}

.disease-level-up .eyebrow {
    color: #765100;
    margin-bottom: 4px;
}

.disease-level-up h2,
.disease-level-up p {
    margin: 0;
}

.disease-level-up h2 {
    margin-bottom: 5px;
    color: #392b05;
    font-size: clamp(1.15rem, 3vw, 1.45rem);
}

.disease-level-up p:last-child {
    color: #5f511f;
    line-height: 1.45;
}

@keyframes disease-level-up-arrive {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.94);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .disease-level-up,
    .disease-level-progress__track span {
        animation: none;
    }

    .disease-level-progress__track span {
        width: var(--disease-level-target);
    }
}

@media (max-width: 800px) {
    .disease-library-filters {
        grid-template-columns: 1fr 1fr;
    }

    .disease-library-filters label:first-child,
    .disease-library-filters .primary-button {
        grid-column: 1 / -1;
    }

    .disease-mode-grid {
        grid-template-columns: 1fr;
    }

    .disease-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .disease-level-up {
        grid-template-columns: 68px 1fr;
        gap: 13px;
        padding: 14px;
    }

    .disease-level-up img,
    .disease-level-up > span {
        width: 68px;
        height: 68px;
        border-radius: 16px;
    }
    .disease-word-list > div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .disease-library-filters,
    .disease-question-library-list {
        grid-template-columns: 1fr;
    }

    .disease-library-filters label:first-child,
    .disease-library-filters .primary-button {
        grid-column: auto;
    }

    .disease-mode-grid,
    .disease-library-status,
    .disease-difficulty-grid,
    .disease-answer-grid {
        grid-template-columns: 1fr;
    }

    .disease-overall-stats {
        grid-template-columns: auto 1fr;
        gap: 16px;
        padding: 18px;
    }

    .disease-stat-ring {
        width: 76px;
        height: 76px;
    }

    .disease-stat-ring::before {
        width: 58px;
        height: 58px;
    }

    .disease-error-bank-stat {
        grid-column: 1 / -1;
    }

    .disease-mode-card {
        min-height: 210px;
        padding: 22px;
    }

    .disease-library-status {
        gap: 8px;
    }

    .disease-category-grid {
        grid-template-columns: 1fr;
    }

    .disease-filter-card,
    .disease-question-card,
    .disease-flashcard-area,
    .disease-results-card {
        padding: 20px 16px;
    }

    .disease-filter-heading,
    .disease-start-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .disease-start-bar {
        margin: 24px -16px -20px;
        padding: 18px 16px;
    }

    .disease-start-bar .primary-button {
        width: 100%;
    }

    .disease-count-options {
        width: 100%;
    }

    .disease-count-options label {
        flex: 1;
    }

    .disease-count-options span {
        min-width: 0;
    }

    .disease-flashcard {
        min-height: 360px;
        padding: 28px 18px;
    }

    .disease-rating-buttons {
        grid-template-columns: 1fr;
    }

    .disease-results-actions,
    .disease-results-actions button {
        width: 100%;
    }
}
.disease-choice-readiness {
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.disease-choice-readiness--ready {
    background: #e3f3e9;
    color: #206444;
}

.disease-choice-readiness--flashcard {
    background: #f1f0ed;
    color: #6d675f;
}

.disease-learning-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: -6px 0 22px;
    padding: 12px 16px;
    border: 1px solid #d9d2e8;
    border-radius: 12px;
    background: #f8f5fc;
    color: #5a4a73;
    font-size: 0.84rem;
}

.disease-learning-note strong {
    flex: 0 0 auto;
}

.disease-mode-card--multiple-choice {
    background: linear-gradient(145deg, #fff, #f4f0fa);
}

.disease-mode-card--flashcards {
    background: linear-gradient(145deg, #fff, #edf4fa);
}

@media (max-width: 620px) {
    .disease-learning-note {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }
}
