/* ===== topic-test (categories + sub-categories) ===== */
        .tt-main { overflow-x: hidden; }
        .tt-card {
            --tone: #2563eb;
            --tone-2: #60a5fa;
            position: relative;
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 16px;
            padding: 16px 18px;
            min-height: 88px;
            width: 100%;
            background: var(--surface-1);
            color: var(--text-dark);
            text-align: left;
            border-radius: 16px;
            overflow: hidden;
            cursor: pointer;
            border: 1px solid rgba(0,0,0,.05) !important;
            transition: transform .18s ease, box-shadow .18s ease;
        }
        .tt-card::before {
            content: "";
            position: absolute;
            inset: 0 auto 0 0;
            width: 4px;
            background: linear-gradient(180deg, var(--tone), var(--tone-2));
        }
        .tt-card::after {
            content: "";
            position: absolute;
            right: -30px; top: -30px;
            width: 100px; height: 100px;
            border-radius: 50%;
            background: var(--tone);
            opacity: .06;
            pointer-events: none;
        }
        .tt-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.12) !important; }
        .tt-tone-0 { --tone: #2563eb; --tone-2: #60a5fa; }
        .tt-tone-1 { --tone: #7c3aed; --tone-2: #a78bfa; }
        .tt-tone-2 { --tone: #059669; --tone-2: #34d399; }
        .tt-tone-3 { --tone: #ea580c; --tone-2: #fb923c; }
        .tt-tone-4 { --tone: #db2777; --tone-2: #f472b6; }
        .tt-tone-5 { --tone: #0891b2; --tone-2: #22d3ee; }
        .tt-tone-locked { --tone: #64748b; --tone-2: #94a3b8; }
        .tt-card-icon-wrap {
            flex: 0 0 auto;
            width: 54px;
            height: 54px;
            border-radius: 14px;
            display: grid;
            place-items: center;
            background: linear-gradient(135deg, var(--tone), var(--tone-2));
            box-shadow: 0 6px 14px color-mix(in srgb, var(--tone) 35%, transparent);
        }
        .tt-card-icon {
            display: block;
            width: 28px;
            height: 28px;
            font-size: 28px;
            line-height: 28px;
            text-align: center;
            color: #fff;
            font-variation-settings: 'FILL' 1;
        }
        .tt-card-label { flex: 1 1 auto; min-width: 0; font-weight: 600; font-size: 1rem; line-height: 1.4; }
        .tt-card-arrow {
            flex: 0 0 auto;
            width: 34px; height: 34px;
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            background: color-mix(in srgb, var(--tone) 12%, transparent);
            color: var(--tone);
            transition: background .18s, color .18s, transform .18s;
        }
        .tt-card-arrow .material-symbols-outlined { font-size: 20px; }
        .tt-card:hover .tt-card-arrow { background: var(--tone); color: #fff; transform: translateX(3px); }
        /* categories (2 per row on mobile): stack icon above title; sub-category rows stay horizontal */
        @media (max-width: 575.98px) {
            .tt-card:not(.tt-card-row) { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 16px 10px; min-height: 140px; }
            .tt-card:not(.tt-card-row)::before { inset: 0 0 auto 0; width: auto; height: 4px; }
            .tt-card:not(.tt-card-row) .tt-card-icon-wrap { width: 48px; height: 48px; margin: 0 auto; }
            .tt-card:not(.tt-card-row) .tt-card-label { flex: 0 1 auto; width: 100%; font-size: .9rem; }
            .tt-card:not(.tt-card-row) .tt-card-arrow { display: none; }
        }
