.ee-practice-wrap {
    padding-bottom: 3rem;
}

#ee-practice-page[data-page="exams"] .ee-practice-wrap,
#ee-practice-page[data-page="questions"] .ee-practice-wrap,
#ee-exam-page[data-page="exams"] .ee-practice-wrap,
#ee-exam-category-page[data-page="exams"] .ee-practice-wrap,
#ee-exam-category-page[data-page="topics"] .ee-practice-wrap {
    padding-top: 1.25rem;
    padding-bottom: 2.25rem;
}

#ee-practice-page[data-page="questions"] .ee-practice-q.is-page-first {
    border-top: 0;
    padding-top: 0.15rem;
}

.ee-practice-q[hidden] {
    display: none !important;
}

.ee-practice-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-top: 0.35rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.ee-practice-pager[hidden] {
    display: none !important;
}

.ee-practice-page-summary {
    margin: 0;
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.4;
}

.ee-practice-page-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.ee-practice-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.7rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #1e293b;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.ee-practice-page-btn:hover:not(:disabled):not(.is-current) {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.ee-practice-page-btn.is-current {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.ee-practice-page-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

.ee-practice-page-btn:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.ee-practice-page-gap {
    min-width: 1.25rem;
    text-align: center;
    color: #94a3b8;
    font-weight: 700;
}

@media (max-width: 640px) {
    .ee-practice-pager {
        flex-direction: column;
        align-items: stretch;
    }

    .ee-practice-page-nav {
        justify-content: center;
    }
}

.ee-practice-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.ee-practice-btn--primary {
    background: #2563eb;
    color: #fff;
}

.ee-practice-btn--primary:hover {
    background: #1d4ed8;
    color: #fff;
}

.ee-practice-btn--ghost {
    background: #fff;
    color: #1e3a8a;
    border-color: #cbd5e1;
}

.ee-practice-split > .col-lg-8,
.ee-practice-split > .col-lg-4 {
    min-width: 0;
}

@media (min-width: 992px) {
    .ee-practice-split > .col-lg-8:has(+ .col-lg-4[hidden]) {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }
}

.ee-practice-main,
.ee-practice-side,
.ee-practice-assets,
.ee-mod {
    background: #fff;
    border: 1px solid #e7edf5;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ee-practice-main {
    min-width: 0;
    padding: 1rem 1.35rem 1.5rem;
}

.ee-practice-side {
    min-width: 0;
    padding: 1.15rem 1rem 1.5rem;
}

.ee-practice-modules,
#dynamicCategoriesContainer.ee-practice-modules,
#dynamicSubcategoriesContainer.ee-practice-modules,
#ee-exam-modules.ee-practice-modules,
#ee-exam-category-modules.ee-practice-modules {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
    width: 100%;
}

#dynamicCategoriesContainer.ee-practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: 0.85rem;
    width: 100%;
}

.ee-mod {
    padding: 1.05rem 1.15rem 1.1rem;
}

a.ee-mod-toggle {
    text-decoration: none;
    color: inherit;
}

.ee-assets-row.is-current .ee-assets-name {
    color: #1d4ed8;
}

.ee-mod-toggle {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas:
        "icon kicker meta chev"
        "icon title meta chev";
    column-gap: 0.85rem;
    row-gap: 0.12rem;
    align-items: center;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent;
    box-shadow: none !important;
    color: inherit;
    font-size: inherit !important;
    line-height: inherit !important;
    text-align: left;
    cursor: pointer;
}

.ee-mod-toggle:focus {
    outline: none;
}

.ee-mod-toggle:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 4px;
    border-radius: 12px;
}

.ee-mod-icon {
    grid-area: icon;
    align-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 1rem;
}

.ee-mod-icon.is-orange {
    background: #fff7ed;
    color: #ea580c;
}

.ee-mod-icon.is-violet {
    background: #f5f3ff;
    color: #7c3aed;
}

.ee-mod-icon.is-green {
    background: #f0fdf4;
    color: #16a34a;
}

.ee-mod-kicker {
    grid-area: kicker;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.ee-mod-label {
    color: #2563eb;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.ee-mod-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.08rem 0.45rem;
    border-radius: 999px;
    background: #dcfce7;
    color: #16a34a;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.4;
}

.ee-mod-title {
    grid-area: title;
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
}

.ee-mod-meta {
    grid-area: meta;
    color: #94a3b8;
    font-size: 0.86rem;
    white-space: nowrap;
}

.ee-mod-chev {
    grid-area: chev;
    color: #94a3b8;
    font-size: 0.8rem;
    transition: transform 0.15s ease;
}

.ee-mod.is-open .ee-mod-chev {
    transform: rotate(180deg);
}

.ee-mod-body {
    display: none;
    margin-top: 0.9rem;
}

.ee-mod.is-open .ee-mod-body {
    display: block;
}

.ee-mod-desc {
    margin: 0 0 0.85rem;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.5;
}

.ee-mod-topics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.ee-mod-topic {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.92rem;
    line-height: 1.35;
    text-decoration: none;
}

.ee-mod-topic i {
    flex: 0 0 auto;
    margin-top: 0.12rem;
    color: #22c55e;
}

.ee-mod-topic:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.ee-practice-assets {
    padding: 0.85rem 0.95rem 0.95rem;
}

@media (min-width: 992px) {
    .ee-practice-assets,
    .ee-practice-side {
        position: sticky;
        top: 1rem;
    }
}

.ee-assets-heading {
    margin: 0 0 0.65rem;
    padding: 0 0 0.65rem;
    border-bottom: 1px solid #e7edf5;
    color: #111827;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
}

.ee-assets-list {
    display: grid;
}

.ee-assets-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.2rem;
    color: #1e293b;
    text-decoration: none;
}

.ee-assets-row:hover .ee-assets-name {
    color: #1d4ed8;
}

.ee-assets-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
}

.ee-assets-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
}

.ee-assets-count {
    flex: 0 0 auto;
    color: #94a3b8;
    font-size: 0.82rem;
    white-space: nowrap;
}

.ee-assets-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 2.75rem;
    margin-top: 0.55rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
}

.ee-assets-btn:hover {
    background: #f8fafc;
    color: #0f172a;
}

@media (max-width: 640px) {
    .ee-mod-toggle {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "icon kicker chev"
            "icon title chev"
            "meta meta meta";
    }

    .ee-mod-meta {
        margin-top: 0.35rem;
        white-space: normal;
    }

    .ee-mod-topics {
        grid-template-columns: 1fr;
    }
}

.ee-practice-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.35rem;
}

.ee-practice-back {
    margin: 0 0 0.35rem;
    font-size: 0.875rem;
}

.ee-practice-back a {
    color: #1d4ed8;
    text-decoration: none;
}

.ee-practice-back a:hover {
    text-decoration: underline;
}

.ee-practice-head h1 {
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: rgb(15 23 42);
}

.ee-practice-head p {
    margin: 0;
    max-width: 42rem;
    color: rgb(71 85 105);
    line-height: 1.5;
}

.ee-practice-grid,
.ee-practice-questions {
    display: grid;
    gap: 0.85rem;
}

.ee-practice-grid {
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}

.ee-practice-card,
.ee-practice-q {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1rem;
    border: 1px solid rgb(226 232 240);
    border-radius: var(--ee-radius, 10px);
    background: #fff;
}

.ee-practice-card h2,
.ee-practice-card h3,
.ee-practice-q-text {
    margin: 0;
    color: rgb(15 23 42);
}

.ee-practice-card h2,
.ee-practice-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
}

.ee-practice-card p,
.ee-practice-count {
    margin: 0;
    color: rgb(71 85 105);
    font-size: 0.9rem;
    line-height: 1.45;
}

.ee-practice-subjects-label {
    margin: 0.75rem 0 0.15rem;
    color: #111827;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ee-practice-subjects {
    list-style: none;
    margin: 0;
    padding: 0.15rem 0 0;
    display: grid;
    gap: 0.1rem;
}

.ee-practice-subjects a {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.28rem 0;
    color: #1d4ed8;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}

.ee-practice-subjects a:hover {
    color: #1e3a8a;
}

.ee-practice-subject-count {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
}

.ee-practice-card-top span {
    display: inline-flex;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgb(239 246 255);
    color: rgb(29 78 216);
    font-size: 0.75rem;
    font-weight: 700;
}

.ee-practice-open {
    margin-top: auto;
    justify-content: center;
}

.ee-practice-soon {
    margin-top: auto;
    color: rgb(100 116 139);
    font-size: 0.875rem;
}

.ee-practice-empty {
    grid-column: 1 / -1;
    padding: 2rem 1rem;
    text-align: center;
    color: rgb(71 85 105);
}

.ee-practice-questions {
    display: block;
}

.ee-practice-q {
    gap: 0.15rem;
    padding: 0.95rem 0.15rem 1.15rem;
    border: 0;
    border-top: 1px solid #e5e7eb;
    border-radius: 0;
    background: transparent;
}

.ee-practice-q-title {
    margin: 0 0 0.55rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    color: #111827;
}

.ee-practice-q-num {
    margin-right: 0.2rem;
}

.ee-practice-q-text,
.ee-practice-passage p {
    white-space: pre-wrap;
    line-height: 1.55;
}

.ee-practice-passage {
    padding: 0.75rem;
    border-radius: var(--ee-radius, 8px);
    background: rgb(248 250 252);
    border: 1px solid rgb(226 232 240);
}

.ee-practice-passage span {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgb(37 99 235);
}

.ee-practice-passage p {
    margin: 0;
    color: rgb(51 65 85);
}

.ee-practice-q-image,
.ee-practice-opt-image {
    display: block;
    max-width: 100%;
    max-height: 16rem;
    margin-top: 0.5rem;
    border-radius: 8px;
}

.ee-practice-options {
    display: grid;
    gap: 0.15rem;
    margin-top: 0.15rem;
}

.ee-practice-opt {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0.22rem 0.1rem;
    border: 0;
    border-radius: 4px;
    background: transparent;
    box-shadow: none;
    color: #4b5563;
    font-size: 0.98rem;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    cursor: pointer;
}

.ee-practice-opt:hover:not(:disabled) {
    background: #f8fafc;
}

.ee-practice-opt:focus-visible {
    outline: 2px solid #86efac;
    outline-offset: 1px;
}

.ee-practice-radio {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    margin-top: 0.05rem;
    border: 1.5px solid #22c55e;
    border-radius: 999px;
    background: #fff;
    color: #16a34a;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.ee-practice-radio--inline {
    margin-top: 0;
    vertical-align: -0.2rem;
}

.ee-practice-opt-text {
    flex: 1 1 auto;
    min-width: 0;
}

.ee-practice-tick,
.ee-practice-wrong {
    display: none;
    margin-left: 0.35rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.ee-practice-opt.is-right {
    color: #111827;
}

.ee-practice-opt.is-right .ee-practice-tick {
    display: inline;
    color: #16a34a;
}

.ee-practice-opt.is-muted {
    color: #9ca3af;
}

.ee-practice-opt.is-muted .ee-practice-radio {
    border-color: #d1d5db;
    color: #9ca3af;
}

.ee-practice-opt.is-picked-wrong .ee-practice-wrong {
    display: inline;
    color: #dc2626;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
}

.ee-practice-opt:disabled {
    cursor: default;
}

.ee-practice-opt.is-pending {
    opacity: 0.7;
}

.ee-practice-solution {
    margin-top: 0.85rem;
}

.ee-practice-answer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.7rem;
    color: #111827;
    font-size: 1rem;
}

.ee-practice-answer-label,
.ee-practice-explain-label {
    color: #16a34a;
    font-weight: 700;
}

.ee-practice-explain-label {
    margin: 0 0 0.2rem;
}

.ee-practice-explain {
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #111827;
    font-size: 0.98rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.ee-exam-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.ee-exam-list-title,
.ee-exam-list .ee-practice-empty {
    grid-column: 1 / -1;
}

.ee-exam-list-title {
    margin: 0 0 0.15rem;
    color: #111827;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
}

.ee-exam-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.85rem;
    min-width: 0;
    padding: 0.7rem 0.8rem;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    background: #f8fafc;
    color: #111827;
    text-decoration: none;
}

.ee-exam-row:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.ee-exam-row.is-disabled {
    opacity: 0.55;
    cursor: default;
}

.ee-exam-row > i {
    flex: 0 0 auto;
    color: #22c55e;
    font-size: 0.95rem;
}

.ee-exam-row-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
}

.ee-exam-row-go {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    color: #2563eb;
    font-size: 0.82rem;
    font-weight: 700;
}

@media (max-width: 640px) {
    .ee-exam-list {
        grid-template-columns: 1fr;
    }
}

.ee-practice-side-nav {
    display: grid;
    gap: 1.05rem;
}

.ee-practice-side-group h2 {
    margin: 0 0 0.3rem;
    color: #16a34a;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.3;
}

.ee-practice-side-group a {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.35;
    text-decoration: none;
}

.ee-practice-side-group a span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ee-practice-side-group a:hover {
    color: #111827;
}

.ee-practice-side-group a.is-current {
    color: #111827;
    font-weight: 700;
}

.ee-practice-chev {
    flex: 0 0 auto;
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.35;
}

.dark .ee-practice-head h1,
.dark .ee-practice-card h2,
.dark .ee-practice-card h3,
.dark .ee-practice-q-title,
.dark .ee-practice-q-text,
.dark .ee-practice-opt,
.dark .ee-practice-answer,
.dark .ee-practice-explain,
.dark .ee-mod-title,
.dark .ee-assets-heading,
.dark .ee-assets-name,
.dark .ee-assets-btn {
    color: rgb(248 250 252);
}

.dark .ee-practice-main,
.dark .ee-practice-side,
.dark .ee-practice-assets,
.dark .ee-mod,
.dark .ee-assets-btn {
    background: rgb(15 23 42);
    border-color: rgb(51 65 85);
}

.dark .ee-exam-list-title,
.dark .ee-exam-row-name {
    color: rgb(248 250 252);
}

.dark .ee-assets-heading {
    border-color: rgb(51 65 85);
}

.dark .ee-exam-row {
    background: rgb(30 41 59);
    border-color: rgb(51 65 85);
}

.dark .ee-exam-row:hover {
    background: rgb(51 65 85);
}

.dark .ee-practice-q,
.dark .ee-practice-side {
    border-color: rgb(51 65 85);
}

.dark .ee-practice-opt.is-muted,
.dark .ee-practice-side-group a {
    color: rgb(148 163 184);
}

.dark .ee-practice-side-group a.is-current,
.dark .ee-practice-opt.is-right {
    color: rgb(248 250 252);
}

.dark .ee-practice-head p,
.dark .ee-practice-card p,
.dark .ee-practice-count,
.dark .ee-practice-empty,
.dark .ee-practice-passage p,
.dark .ee-practice-explain {
    color: rgb(203 213 225);
}

.dark .ee-practice-card,
.dark .ee-practice-opt,
.dark .ee-practice-passage,
.dark .ee-mod-topic {
    background: rgb(15 23 42);
    border-color: rgb(51 65 85);
}

.dark .ee-mod-topic,
.dark .ee-mod-desc,
.dark .ee-mod-meta,
.dark .ee-assets-count {
    color: rgb(203 213 225);
}

.dark .ee-assets-ico,
.dark .ee-mod-topic {
    background: rgb(30 41 59);
}

.dark .ee-practice-radio {
    background: transparent;
}

.dark .ee-practice-pager {
    border-color: rgb(51 65 85);
}

.dark .ee-practice-page-summary,
.dark .ee-practice-page-gap {
    color: rgb(148 163 184);
}

.dark .ee-practice-page-btn {
    background: rgb(15 23 42);
    border-color: rgb(51 65 85);
    color: rgb(248 250 252);
}

.dark .ee-practice-page-btn.is-current {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
