    .mt-app {
        --mt-border: #212529;
    }

    .mt-app h2,
    .mt-app h3,
    .mt-app h4 {
        scroll-margin-top: 100px;
    }

    .mt-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: .5rem;
        margin-bottom: 1.25rem;
    }

    .mt-tab {
        border: 2px solid var(--mt-border);
        background: #fff;
        color: var(--mt-border);
        font-weight: 700;
        padding: .55rem 1.1rem;
        border-radius: 0;
        cursor: pointer;
        transition: .15s;
    }

    .mt-tab:hover {
        background: #f8f9fa;
    }

    .mt-tab.active {
        background: #dc3545;
        border-color: #dc3545;
        color: #fff;
    }

    .mt-set-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1rem;
    }

    .mt-set-card {
        border: 2px solid var(--mt-border);
        background: #fff;
        padding: 1rem 1.1rem;
        cursor: pointer;
        transition: .15s;
        position: relative;
    }

    .mt-set-card:hover {
        box-shadow: 5px 5px 0 var(--mt-border);
        transform: translate(-2px, -2px);
    }

    .mt-set-card h3 {
        font-size: 1.05rem;
        font-weight: 800;
        margin-bottom: .35rem;
    }

    .mt-set-card .mt-set-meta {
        font-size: .82rem;
        color: #6c757d;
    }

    .mt-badge {
        display: inline-block;
        font-size: .7rem;
        font-weight: 700;
        letter-spacing: .04em;
        text-transform: uppercase;
        padding: .2rem .5rem;
        border: 1px solid currentColor;
        border-radius: 0;
    }

    .mt-badge.easy { color: #198754; }
    .mt-badge.moderate { color: #8a6500; }
    .mt-badge.hard { color: #dc3545; }

    .mt-info-strip {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: .75rem;
        margin: 1.25rem 0;
    }

    .mt-info-strip div {
        border: 1px solid #dee2e6;
        background: #f8f9fa;
        padding: .7rem .85rem;
        font-size: .85rem;
    }

    .mt-info-strip b {
        display: block;
        font-size: 1.05rem;
        color: var(--mt-border);
    }

    .mt-resume {
        border: 2px dashed #dc3545;
        background: #fff5f5;
        padding: 1rem;
        margin-bottom: 1.25rem;
    }

    .mt-test-head {
        display: flex;
        flex-wrap: wrap;
        gap: .75rem;
        align-items: center;
        justify-content: space-between;
        border-bottom: 2px solid var(--mt-border);
        padding-bottom: .75rem;
        margin-bottom: 1rem;
    }

    .mt-test-title {
        font-weight: 800;
        font-size: 1.05rem;
        line-height: 1.2;
    }

    .mt-timer-wrap {
        display: flex;
        align-items: center;
        gap: .5rem;
    }

    .mt-timer {
        font-size: 1.35rem;
        font-weight: 800;
        font-variant-numeric: tabular-nums;
        letter-spacing: .02em;
    }

    .mt-timer.warn { color: #e67e22; }
    .mt-timer.danger { color: #dc3545; animation: mtBlink 1s steps(2, start) infinite; }

    @keyframes mtBlink {
        50% { opacity: .45; }
    }

    .mt-progress {
        height: 6px;
        background: #e9ecef;
        margin-bottom: 1.25rem;
        overflow: hidden;
    }

    .mt-progress span {
        display: block;
        height: 100%;
        width: 0;
        background: #dc3545;
        transition: width .2s;
    }

    .mt-q-card {
        border: 2px solid var(--mt-border);
        background: #fff;
        padding: 1.25rem;
    }

    .mt-chip-row {
        display: flex;
        flex-wrap: wrap;
        gap: .35rem;
        margin-bottom: .85rem;
        align-items: center;
    }

    .mt-chip {
        font-size: .7rem;
        font-weight: 700;
        padding: .2rem .5rem;
        background: #f1f3f5;
        border: 1px solid #dee2e6;
        color: #495057;
    }

    .mt-chip.section { background: #212529; color: #fff; border-color: #212529; }

    .mt-q-text {
        font-size: 1.1rem;
        font-weight: 600;
        line-height: 1.55;
        margin-bottom: 1.1rem;
    }

    .mt-opt {
        display: flex;
        align-items: flex-start;
        gap: .8rem;
        width: 100%;
        text-align: left;
        border: 2px solid #dee2e6;
        background: #fff;
        padding: .8rem 1rem;
        margin-bottom: .6rem;
        cursor: pointer;
        transition: .12s;
        font-size: .97rem;
        line-height: 1.45;
        color: #212529;
    }

    .mt-opt:hover {
        border-color: var(--mt-border);
        background: #f8f9fa;
    }

    .mt-opt.selected {
        border-color: #dc3545;
        background: #fff5f5;
    }

    .mt-opt.correct {
        border-color: #198754;
        background: #eefbf2;
    }

    .mt-opt.wrong {
        border-color: #dc3545;
        background: #fff5f5;
    }

    .mt-opt-key {
        flex: 0 0 auto;
        font-weight: 800;
        width: 1.4rem;
        text-align: center;
    }

    .mt-nav {
        display: flex;
        flex-wrap: wrap;
        gap: .5rem;
        margin-top: 1.1rem;
    }

    .mt-btn {
        border: 2px solid var(--mt-border);
        background: #fff;
        font-weight: 700;
        font-size: .88rem;
        padding: .55rem 1rem;
        border-radius: 0;
        cursor: pointer;
        transition: .15s;
        display: inline-block;
        text-decoration: none;
        color: #212529;
        line-height: 1.4;
    }

    .mt-btn:hover { background: #f1f3f5; }
    .mt-btn:disabled { opacity: .4; cursor: not-allowed; }

    .mt-btn.primary {
        background: #dc3545;
        border-color: #dc3545;
        color: #fff;
    }

    .mt-btn.primary:hover { background: #bb2d3b; border-color: #bb2d3b; }

    .mt-btn.dark {
        background: #212529;
        border-color: #212529;
        color: #fff;
    }

    .mt-btn.dark:hover { background: #000; }

    .mt-palette-card {
        border: 2px solid var(--mt-border);
        background: #fff;
        padding: 1rem;
        position: sticky;
        top: 90px;
    }

    .mt-palette-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 800;
        font-size: .9rem;
        margin-bottom: .7rem;
    }

    .mt-palette-group {
        margin-bottom: .8rem;
    }

    .mt-palette-group h4 {
        font-size: .72rem;
        letter-spacing: .05em;
        text-transform: uppercase;
        color: #6c757d;
        font-weight: 800;
        margin-bottom: .35rem;
    }

    .mt-chips {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(34px, 1fr));
        gap: .3rem;
    }

    .mt-chip-btn {
        height: 34px;
        border: 2px solid #adb5bd;
        background: #fff;
        font-weight: 700;
        font-size: .78rem;
        color: #495057;
        cursor: pointer;
        border-radius: 0;
        padding: 0;
        line-height: 1;
    }

    .mt-chip-btn.answered { background: #198754; border-color: #198754; color: #fff; }
    .mt-chip-btn.skipped { background: #dc3545; border-color: #dc3545; color: #fff; }
    .mt-chip-btn.marked { background: #6f42c1; border-color: #6f42c1; color: #fff; }
    .mt-chip-btn.current { outline: 3px solid #0d6efd; outline-offset: 1px; }

    .mt-legend {
        display: flex;
        flex-wrap: wrap;
        gap: .75rem;
        font-size: .72rem;
        color: #6c757d;
        margin-top: .8rem;
        border-top: 1px solid #e9ecef;
        padding-top: .7rem;
    }

    .mt-legend i {
        display: inline-block;
        width: 12px;
        height: 12px;
        margin-right: .25rem;
        vertical-align: -1px;
        border: 1px solid #adb5bd;
    }

    .mt-result-hero {
        border: 2px solid var(--mt-border);
        background: #212529;
        color: #fff;
        padding: 1.5rem;
        text-align: center;
        margin-bottom: 1.25rem;
    }

    .mt-result-hero .score {
        font-size: 3rem;
        font-weight: 800;
        line-height: 1;
        font-variant-numeric: tabular-nums;
    }

    .mt-result-hero .score small {
        font-size: 1rem;
        font-weight: 600;
        opacity: .75;
    }

    .mt-stat-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: .75rem;
        margin-bottom: 1.25rem;
    }

    .mt-stat {
        border: 1px solid #dee2e6;
        background: #fff;
        padding: .8rem;
        text-align: center;
    }

    .mt-stat b {
        display: block;
        font-size: 1.35rem;
        font-weight: 800;
        line-height: 1.1;
    }

    .mt-stat span {
        font-size: .74rem;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: #6c757d;
        font-weight: 700;
    }

    .mt-section-table {
        width: 100%;
        border-collapse: collapse;
        font-size: .88rem;
        margin-bottom: 1.25rem;
    }

    .mt-section-table th,
    .mt-section-table td {
        border: 1px solid #dee2e6;
        padding: .5rem .6rem;
        text-align: center;
    }

    .mt-section-table th {
        background: #f1f3f5;
        font-size: .75rem;
        text-transform: uppercase;
        letter-spacing: .03em;
    }

    .mt-section-table td:first-child,
    .mt-section-table th:first-child { text-align: left; }

    .mt-filter-row {
        display: flex;
        flex-wrap: wrap;
        gap: .4rem;
        margin-bottom: 1rem;
    }

    .mt-filter {
        border: 1px solid #adb5bd;
        background: #fff;
        font-size: .8rem;
        font-weight: 700;
        padding: .35rem .7rem;
        cursor: pointer;
        border-radius: 0;
    }

    .mt-filter.active {
        background: #212529;
        border-color: #212529;
        color: #fff;
    }

    .mt-solution {
        border: 1px solid #dee2e6;
        border-left: 4px solid #adb5bd;
        padding: .9rem 1rem;
        margin-bottom: .9rem;
        background: #fff;
    }

    .mt-solution.correct { border-left-color: #198754; }
    .mt-solution.wrong { border-left-color: #dc3545; }
    .mt-solution.unattempted { border-left-color: #adb5bd; }

    .mt-solution .exp {
        background: #f8f9fa;
        border: 1px dashed #ced4da;
        padding: .6rem .75rem;
        font-size: .86rem;
        margin-top: .6rem;
    }

    .mt-solution .opt-line {
        font-size: .88rem;
        padding: .18rem 0;
        color: #495057;
    }

    .mt-solution .opt-line.is-correct { color: #198754; font-weight: 700; }
    .mt-solution .opt-line.is-chosen-wrong { color: #dc3545; font-weight: 700; }

    .mt-note {
        font-size: .8rem;
        color: #6c757d;
    }

    .mt-content h2 {
        font-size: 1.35rem;
        font-weight: 800;
        margin-top: 1.75rem;
    }

    .mt-content h3 {
        font-size: 1.1rem;
        font-weight: 700;
        margin-top: 1.25rem;
    }

    .mt-content p,
    .mt-content li {
        font-size: .95rem;
        line-height: 1.7;
    }

    .mt-content table {
        width: 100%;
        border-collapse: collapse;
        font-size: .88rem;
        margin: .75rem 0 1.25rem;
    }

    .mt-content th,
    .mt-content td {
        border: 1px solid #dee2e6;
        padding: .45rem .6rem;
    }

    .mt-content th {
        background: #f1f3f5;
        text-align: left;
    }

    @media (max-width: 767.98px) {
        .mt-palette-card { position: static; margin-top: 1.25rem; }
        .mt-q-text { font-size: 1rem; }
        .mt-nav .mt-btn { flex: 1 1 45%; }
        .mt-result-hero .score { font-size: 2.4rem; }
    }

    @media print {
        #screen-setup, #screen-test, .mt-no-print, .star-rating-widget { display: none !important; }
        .mt-result-hero { background: #fff !important; color: #000 !important; border-color: #000 !important; }
        .mt-solution { break-inside: avoid; }
    }
