/* ===== topic-sheet/sub-categories ===== */
        .ts-main { overflow-x: hidden; }

/* ===== topic-sheet/list ===== */
        .ts-sheet-row {
            position: relative;
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 14px;
            width: 100%;
            min-height: 80px;
            padding: 14px 14px 14px 20px;
            overflow: hidden;
            text-align: left;
            background: var(--surface-1);
            color: var(--text-dark);
            border: 1px solid rgba(0, 0, 0, .05) !important;
            border-radius: 16px;
            cursor: pointer;
            transition: transform .18s ease, box-shadow .18s ease;
        }
        .ts-sheet-row::before {
            content: "";
            position: absolute;
            inset: 0 auto 0 0;
            width: 4px;
            background: linear-gradient(180deg, var(--tone), var(--tone-2));
        }
        .ts-sheet-row:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .15) !important; }
        .ts-sheet-icon {
            flex: 0 0 auto;
            width: 48px;
            height: 48px;
            display: grid;
            place-items: center;
            border-radius: 14px;
            background: linear-gradient(135deg, var(--tone), var(--tone-2));
            box-shadow: 0 6px 14px color-mix(in srgb, var(--tone) 35%, transparent);
        }
        .ts-sheet-icon .material-symbols-outlined { font-size: 26px; line-height: 1; color: #fff; font-variation-settings: 'FILL' 1; }
        .ts-sheet-title { flex: 1 1 auto; min-width: 0; font-weight: 700; line-height: 1.4; }
        .ts-sheet-arrow {
            flex: 0 0 auto;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: color-mix(in srgb, var(--tone) 12%, transparent);
            color: var(--tone);
            transition: background .18s, color .18s, transform .18s;
        }
        .ts-sheet-arrow .material-symbols-outlined { font-size: 18px; }
        .ts-sheet-row:hover .ts-sheet-arrow { background: var(--tone); color: #fff; transform: translateX(3px); }

        /* the read / download popup (this page only) */
        .ts-modal .modal-content { border: 0; border-radius: 20px; overflow: hidden; }
        .ts-modal .modal-header { color: #fff; background: linear-gradient(135deg, #129ae8, #7c3aed); border: 0; }
        .ts-modal .modal-header .btn-close { filter: invert(1) grayscale(1) brightness(2); }
        .ts-modal .modal-footer { border: 0; }
        .ts-modal .btn { border-radius: 999px; font-weight: 700; }
        .ts-modal .ls-read-btn { background: linear-gradient(135deg, #f5a623, #ea580c); color: #fff; border: 0; }
        .ts-modal .ls-read-btn:hover { background: linear-gradient(135deg, #e0951a, #d9480f); color: #fff; }

/* ===== topic-sheet/categories ===== */
        .ts-main { overflow-x: hidden; }

        .ts-tabs {
            position: sticky;
            top: 0;
            z-index: 9;
            overflow: hidden;
            background: var(--surface-1);
        }
        .ts-tab-btn {
            color: var(--text-light);
            background: var(--surface-1);
            border: none;
            border-bottom: 3px solid transparent;
            border-radius: 0;
        }
        .ts-tab-btn.active {
            color: var(--hero-blue-btn);
            background: var(--surface-3);
            border-bottom-color: var(--hero-blue-btn);
        }
        html[data-theme="dark"] .ts-tab-btn.active {
            color: #4db8ff;
            border-bottom-color: #4db8ff;
        }
        .ts-tab-btn:hover { background: var(--hover-bg); }

        .ts-info-text { color: var(--text-light); line-height: 1.5; margin: 0; }

        .ts-updated {font-size: 11px;color: var(--text-light);margin-top: 40px;line-height: 1.3;}

/* ===== topic-sheet/categories cards ===== */
        .ts-cat-card {
            --tone: #2563eb;
            --tone-2: #60a5fa;
            position: relative;
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 16px;
            padding: 16px 18px;
            min-height: 88px;
            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;
        }
        .ts-cat-card::before {
            content: "";
            position: absolute;
            inset: 0 auto 0 0;
            width: 4px;
            background: linear-gradient(180deg, var(--tone), var(--tone-2));
        }
        .ts-cat-card::after {
            content: "";
            position: absolute;
            right: -30px; top: -30px;
            width: 100px; height: 100px;
            border-radius: 50%;
            background: var(--tone);
            opacity: .06;
            pointer-events: none;
        }
        .ts-cat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.12) !important; }
        .ts-tone-0 { --tone: #2563eb; --tone-2: #60a5fa; }
        .ts-tone-1 { --tone: #7c3aed; --tone-2: #a78bfa; }
        .ts-tone-2 { --tone: #059669; --tone-2: #34d399; }
        .ts-tone-3 { --tone: #ea580c; --tone-2: #fb923c; }
        .ts-tone-4 { --tone: #db2777; --tone-2: #f472b6; }
        .ts-tone-5 { --tone: #0891b2; --tone-2: #22d3ee; }
        .ts-cat-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);
        }
        .ts-cat-icon {
            display: block;
            width: 28px;
            height: 28px;
            font-size: 28px;
            line-height: 28px;
            text-align: center;
            color: #fff;
            font-variation-settings: 'FILL' 1;
        }
        .ts-cat-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
        .ts-cat-label { font-weight: 600; font-size: 1rem; line-height: 1.4; }
        .ts-cat-updated { font-size: 11px; line-height: 1.3; color: var(--text-light); }
        .ts-cat-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;
        }
        .ts-cat-arrow .material-symbols-outlined { font-size: 20px; }
        .ts-cat-card:hover .ts-cat-arrow { background: var(--tone); color: #fff; transform: translateX(3px); }
        @media (max-width: 575.98px) {
            .ts-cat-card { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 16px 10px; min-height: 150px; }
            .ts-cat-card::before { inset: 0 0 auto 0; width: auto; height: 4px; }
            .ts-cat-icon-wrap { width: 48px; height: 48px; margin: 0 auto; }
            .ts-cat-body { flex: 0 1 auto; width: 100%; align-items: center; }
            .ts-cat-label { font-size: .9rem; }
            .ts-cat-arrow { display: none; }
        }
