    *, *::before, *::after { box-sizing: border-box; }

    .ti-shell {
        max-width: 1200px;
        margin: 30px auto 0;
        padding: 1.5rem 1.25rem 4rem;
    }

    .ti-shell h1 {
        font-size: 1.8rem;
        color: #fff;
        margin: 0 0 .5rem;
    }

    .ti-intro {
        font-size: .95rem;
        color: #fff;
        line-height: 1.55;
        margin: 0 0 1.5rem;
        max-width: 640px;
    }

    /* ── Controls ─────────────────────────────────────────── */
    .ti-controls {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.75rem;
        position: relative;
        top: 0;
        background: #ffffff;
        padding: 1rem;
        z-index: 0;
        border-radius: 10px;
        border-bottom: 1px solid #d0d8e0;
    }

    .ti-search-wrap {
        position: relative;
        max-width: 420px;
    }

    .ti-search-icon {
        position: absolute;
        left: .9rem;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        height: 18px;
        color: #7a8794;
        pointer-events: none;
    }

    .ti-search-wrap input {
        width: 100%;
        padding: .75rem .9rem .75rem 2.6rem;
        font-size: .9rem;
        border: 2px solid #d0d8e0;
        border-radius: 10px;
        background: #ffffff;
        color: #0f1923;
        transition: border-color .15s, box-shadow .15s;
    }

    .ti-search-wrap input:focus {
        outline: none;
        border-color: #005fa3;
        box-shadow: 0 0 0 3px rgba(0,95,163,.15);
    }

    .ti-tabs {
        display: flex;
        gap: .5rem;
        flex-wrap: wrap;
    }

    .ti-tab {
        padding: .55rem 1.1rem;
        font-size: .85rem;
        font-weight: 700;
        border: 2px solid #b0bcc8;
        border-radius: 999px;
        background: #ffffff;
        color: #0f1923;
        cursor: pointer;
        transition: border-color .15s, background .15s, color .15s;
        white-space: nowrap;
    }

    .ti-tab:hover:not(.active) { border-color: #005fa3; background: #e8f4fb; }
    .ti-tab.active { background: #2d3f52; border-color: #2d3f52; color: #ffffff; }
    .ti-tab .ti-count { font-weight: 600; opacity: .75; margin-left: .15rem; }

    /* ── Grid ─────────────────────────────────────────────── */
    .ti-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1rem;
    }

    .ti-card {
        display: flex;
        flex-direction: column;
        gap: .4rem;
        padding: 1.1rem 1.25rem;
        background: #ffffff;
        border: 1px solid #d0d8e0;
        border-radius: 12px;
        text-decoration: none;
        box-shadow: 0 1px 4px rgba(15,25,35,.06);
        transition: transform .15s, box-shadow .15s, border-color .15s;
        position: relative;
    }

    .ti-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(15,25,35,.12);
        border-color: #7ec8f0;
    }

    .ti-card:focus-visible {
        outline: 3px solid #005fa3;
        outline-offset: 2px;
    }

    .ti-card-badge {
        align-self: flex-start;
        font-size: .68rem;
        font-weight: 700;
        padding: .2rem .55rem;
        border-radius: 999px;
        color: #0f1923;
    }

    .ti-cat-text  .ti-card-badge { background: #a8d8b8; border: 1px solid #3d9a5a; }
    .ti-cat-calc  .ti-card-badge { background: #b8d9f0; border: 1px solid #5da8d8; }
    .ti-cat-image .ti-card-badge { background: #f0d080; border: 1px solid #b07800; }
    .ti-cat-util  .ti-card-badge { background: #d8c0f0; border: 1px solid #8050b0; }
    .ti-cat-gen   .ti-card-badge { background: #f0a8a8; border: 1px solid #b03030; }
    .ti-cat-social .ti-card-badge { background: #a8c8f0; border: 1px solid #3068b0; }

    .ti-cat-text  { border-top: 4px solid #3d9a5a; }
    .ti-cat-calc  { border-top: 4px solid #5da8d8; }
    .ti-cat-image { border-top: 4px solid #b07800; }
    .ti-cat-util  { border-top: 4px solid #8050b0; }
    .ti-cat-gen   { border-top: 4px solid #b03030; }
    .ti-cat-social { border-top: 4px solid #3068b0; }

    .ti-card-name {
        font-size: 1rem;
        font-weight: 700;
        color: #0f1923;
        line-height: 1.35;
    }

    .ti-card-desc {
        font-size: .8rem;
        font-weight: 500;
        color: #4a5560;
        line-height: 1.5;
    }

    .ti-empty {
        font-size: .9rem;
        font-weight: 600;
        color: #fff;
        text-align: center;
        padding: 3rem 1rem;
    }

    @media (max-width: 640px) {
        .ti-grid { grid-template-columns: 1fr; }
        .ti-controls { position: static; }
    }


 .ti-view-toggle
{
    display: none;
    align-items: center;
    gap: 0.6rem;
    margin-left: auto;
    color: #333;
}

.ti-switch
{
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.ti-switch input
{
    opacity: 0;
    width: 0;
    height: 0;
}

.ti-switch-slider
{
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #2563eb;
    transition: 0.25s ease;
    border-radius: 24px;
}

.ti-switch-slider::before
{
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: 0.25s ease;
    border-radius: 50%;
}

.ti-switch input:checked + .ti-switch-slider
{
    background-color: #2563eb;
}

.ti-switch input:checked + .ti-switch-slider::before
{
    background-color: #fff;
    transform: translateX(20px);
}

.ti-view-label
{
    font-size: 0.85rem;
    font-weight: 600;
}