.tbf-module-heading {
    margin: 0 auto 48px;
    text-align: center;
}

.tbf-module-heading__en {
    display: block;
    color: var(--tbf-ink);
    font-family: var(--tbf-font-display) !important;
    font-size: clamp(58px, 7vw, 96px);
    line-height: .88;
    font-weight: 900;
    letter-spacing: -.065em;
    text-transform: uppercase;
}

.tbf-module-heading h2 {
    margin: 14px 0 0;
    color: var(--tbf-accent);
    font-size: clamp(17px, 1.45vw, 22px);
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: .055em;
}

.tbf-module-actions {
    margin-top: 28px;
    text-align: center;
}

.tbf-module-more,
.tbf-ui .mocat .more a,
.tbf-home-page .home-blogs .more a {
    width: auto;
    min-height: 43px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid rgba(16, 27, 49, .11);
    border-radius: 999px;
    color: var(--tbf-ink) !important;
    background: rgba(255, 255, 255, .48) !important;
    overflow: hidden;
    outline: 0;
    box-shadow: 0 10px 26px rgba(36, 54, 91, .055);
    font-size: 14px;
    font-weight: 650;
    line-height: 1;
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
}

.tbf-module-more::before,
.tbf-ui .mocat .more a::before,
.tbf-home-page .home-blogs .more a::before {
    display: none !important;
    content: none !important;
}

.tbf-module-more::after,
.tbf-ui .mocat .more a::after,
.tbf-home-page .home-blogs .more a::after {
    content: "↗" !important;
    display: inline-block !important;
    margin-left: 1px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.tbf-module-more i,
.tbf-ui .mocat .more a i {
    display: none !important;
}

.tbf-module-more:hover,
.tbf-ui .mocat .more a:hover,
.tbf-home-page .home-blogs .more a:hover {
    color: #fff !important;
    border-color: var(--tbf-ink);
    background: var(--tbf-ink) !important;
    box-shadow: 0 12px 28px rgba(16, 27, 49, .16);
    transform: translateY(-2px);
}

.tbf-ui .pagination {
    margin: 34px 0 58px;
    padding: 0 !important;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    text-align: center;
    font-size: 12px;
}

.tbf-ui .pagination ul {
    margin: 0 !important;
    padding: 6px !important;
    position: relative;
    display: inline-flex !important;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgba(16, 27, 49, .075);
    border-radius: 999px;
    background: rgba(255, 255, 255, .66);
    box-shadow: 0 12px 30px rgba(34, 54, 92, .06), inset 0 1px 0 rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
}

.tbf-ui .pagination ul > li {
    position: relative;
    z-index: 2;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.tbf-ui .pagination .tbf-pagination-indicator {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 0;
    height: 38px;
    border-radius: 999px;
    background: var(--tbf-ink);
    box-shadow: 0 8px 20px rgba(16, 27, 49, .16);
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    transition: transform .38s cubic-bezier(.22, .78, .22, 1), width .38s cubic-bezier(.22, .78, .22, 1), height .38s cubic-bezier(.22, .78, .22, 1), opacity .2s ease;
    opacity: 0;
}

.tbf-ui .pagination ul > li > a,
.tbf-ui .pagination ul > li > span {
    min-width: 38px;
    height: 38px;
    margin: 0 !important;
    box-sizing: border-box;
    padding: 0 13px !important;
    float: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    color: #6f7a8a;
    background: transparent !important;
    opacity: 1;
    font-family: var(--tbf-font-ui);
    font-size: 12px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    position: relative;
    z-index: 3;
    transition: color .24s ease, transform .24s ease;
}

.tbf-ui .pagination ul > li > a:hover,
.tbf-ui .pagination ul > li > a:focus {
    color: #fff;
    background: transparent !important;
    transform: none;
}

.tbf-ui .pagination ul.is-indicator-ready:not(.is-indicator-previewing) > .active > a,
.tbf-ui .pagination ul.is-indicator-ready:not(.is-indicator-previewing) > .active > span,
.tbf-ui .pagination ul.is-indicator-ready:not(.is-indicator-previewing) > li > span.current,
.tbf-ui .pagination ul > li.is-indicator-target > a,
.tbf-ui .pagination ul > li.is-indicator-target > span {
    color: #fff !important;
    background: transparent !important;
    box-shadow: none;
}

.tbf-ui .pagination ul.is-indicator-previewing > .active:not(.is-indicator-target) > a,
.tbf-ui .pagination ul.is-indicator-previewing > .active:not(.is-indicator-target) > span,
.tbf-ui .pagination ul.is-indicator-previewing > li:not(.is-indicator-target) > span.current {
    color: #6f7a8a !important;
}

.tbf-ui .pagination ul > li > span,
.tbf-ui .pagination ul > .disabled > span,
.tbf-ui .pagination ul > .disabled > a {
    color: #a3abb7;
}

.tbf-ui .pagination ul > li #jump_page {
    width: 44px;
    height: 38px;
    margin: 0 3px 0 7px;
    padding: 0 8px;
    box-sizing: border-box;
    float: none;
    border: 1px solid rgba(16, 27, 49, .08);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    line-height: 36px;
    text-align: center;
    vertical-align: middle;
}

.tbf-ui .pagination ul > li .page-jump {
    padding: 0 8px !important;
    align-items: center;
    justify-content: center;
}

.tbf-ui .pagination-trigger {
    margin: 30px 0 56px;
    padding: 0 !important;
    background: transparent !important;
    text-align: center;
}

.tbf-ui .pagination-trigger a {
    min-height: 42px;
    margin: 0;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(16, 27, 49, .09);
    border-radius: 999px;
    color: var(--tbf-ink) !important;
    background: rgba(255, 255, 255, .68) !important;
    box-shadow: 0 10px 26px rgba(34, 54, 92, .055);
    font-size: 13px;
    font-weight: 650;
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
}

.tbf-ui .pagination-trigger a:hover {
    color: #fff !important;
    background: var(--tbf-ink) !important;
}

@media (max-width: 760px) {
    .tbf-ui .pagination {
        margin: 26px 0 42px;
    }

    .tbf-ui .pagination ul {
        gap: 3px;
        padding: 5px !important;
    }

    .tbf-ui .pagination ul > li > a,
    .tbf-ui .pagination ul > li > span {
        min-width: 34px;
        height: 34px;
        padding: 0 10px !important;
        font-size: var(--tbf-font-size-min);
    }
}

.tbf-home-section {
    position: relative;
    padding: 72px 0;
    border: 0;
}

.tbf-home-page .tbf-home-section--plain {
    background: #fff;
}

.tbf-home-page .tbf-home-section--soft {
    background:
        radial-gradient(circle at 82% 18%, rgba(220, 231, 251, .34), transparent 32%),
        linear-gradient(180deg, #f7f9fd 0%, #f4f7fc 100%);
}

.tbf-entity-grid {
    display: grid;
    justify-content: center;
}

.tbf-entity-grid--studio {
    grid-template-columns: repeat(auto-fit, minmax(96px, 122px));
    gap: 28px 28px;
}

.tbf-entity-grid--model {
    grid-template-columns: repeat(auto-fit, minmax(132px, 164px));
    gap: 30px 22px;
}

/*
 * Homepage entity modules are component-responsive.
 * The page frame is still controlled only by the global .container system;
 * this layer only decides how many entity cards fit inside the width that the
 * module actually receives.  This avoids device/orientation-specific rules and
 * also behaves correctly inside tablet split-screen windows.
 */
body.tbf-home-page .tbf-entity-module > .container {
    container-type: inline-size;
    container-name: tbf-home-entity;
}

body.tbf-home-page .tbf-entity-grid--studio,
body.tbf-home-page .tbf-entity-grid--model {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    --tbf-home-limit-tier: mobile;
}

@container tbf-home-entity (min-width: 680px) {
    body.tbf-home-page .tbf-entity-grid--studio,
    body.tbf-home-page .tbf-entity-grid--model {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        --tbf-home-limit-tier: tablet;
    }
}

@container tbf-home-entity (min-width: 840px) {
    body.tbf-home-page .tbf-entity-grid--studio,
    body.tbf-home-page .tbf-entity-grid--model {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        --tbf-home-limit-tier: tablet;
    }
}

@container tbf-home-entity (min-width: 1040px) {
    body.tbf-home-page .tbf-entity-grid--studio {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        gap: 28px;
        --tbf-home-limit-tier: desktop;
    }

    body.tbf-home-page .tbf-entity-grid--model {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 30px 22px;
        --tbf-home-limit-tier: desktop;
    }
}

.tbf-studio-card,
.tbf-model-card {
    min-width: 0;
    text-align: center;
}

.tbf-studio-card__link,
.tbf-model-card__link {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--tbf-ink) !important;
}

.tbf-studio-card__link {
    padding: 2px 3px;
}

.tbf-studio-card__image {
    width: 108px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(16, 27, 49, .055);
    border-radius: 50%;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 12px 30px rgba(36, 54, 91, .045), inset 0 1px 0 rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.tbf-studio-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    transform: none;
}

.tbf-studio-card__image i,
.tbf-model-card__image i {
    color: rgba(16, 27, 49, .22);
    font-size: 34px;
    font-style: normal;
    font-weight: 850;
}

.tbf-studio-card__name,
.tbf-model-card__name {
    max-width: 100%;
    overflow: hidden;
    color: var(--tbf-ink);
    font-size: 15px;
    line-height: 1.35;
    font-weight: 760;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tbf-studio-card__name {
    margin-top: 12px;
}

.tbf-studio-card__count,
.tbf-model-card__count {
    display: block;
    margin-top: 4px;
    color: var(--tbf-muted);
    font-size: 12px;
    line-height: 1.35;
}

.tbf-studio-card__link:hover .tbf-studio-card__image {
    border-color: rgba(16, 27, 49, .11);
}

.tbf-studio-card__link:hover .tbf-studio-card__image,
.tbf-model-card__link:hover .tbf-model-card__image {
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 40px rgba(36, 54, 91, .09), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.tbf-model-card__link {
    padding: 4px 3px;
}

.tbf-model-card__image {
    position: relative;
    width: 120px;
    height: 120px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: #edf2f8;
    box-shadow: 0 12px 30px rgba(35, 52, 84, .08);
}

.tbf-model-card__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    display: block;
    object-fit: cover;
    object-position: 50% 14%;
}

.tbf-model-card__name {
    margin-top: 13px;
}

.tbf-ui .grids {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin: 0 0 30px;
}

.tbf-ui .grids::before,
.tbf-ui .grids::after {
    display: none;
}

.tbf-ui .grids .post.grid {
    position: relative;
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(16, 27, 49, .07);
    border-radius: 20px;
    color: var(--tbf-ink);
    background: rgba(255, 255, 255, .78) !important;
    background-image: none !important;
    box-shadow: 0 13px 34px rgba(36, 54, 91, .05), inset 0 1px 0 rgba(255, 255, 255, .66);
}

.tbf-ui .grids .post.grid:hover {
    border-color: rgba(16, 27, 49, .1);
    box-shadow: 0 20px 46px rgba(36, 54, 91, .085), inset 0 1px 0 rgba(255, 255, 255, .86);
}

.tbf-ui .grids .post.grid::before,
.tbf-ui .grids .post.grid.grid-ts::before {
    display: none !important;
}

.tbf-ui .grids .post.grid .img {
    position: relative;
    width: 100%;
    height: auto !important;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #eef2f7;
}

.tbf-ui .grids .post.grid .img > a {
    display: block;
    height: 100%;
}

.tbf-ui .grids .post.grid .thumb,
.tbf-ui .grids .post.grid.grid-ts img {
    width: 100%;
    height: 100%;
    display: block;
    visibility: visible !important;
    object-fit: cover;
    object-position: 50% 12%;
    opacity: 1 !important;
    transform: none !important;
}

.tbf-ui .grids .post.grid:hover .thumb {
    transform: none !important;
}

.tbf-ui .grids .post.grid .con {
    min-height: 0;
    padding: 14px 16px 15px;
    display: grid;
    grid-template-rows: auto auto auto;
    gap: 9px;
    color: var(--tbf-ink) !important;
    background: rgba(255, 255, 255, .84) !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

/* Journal/video list cards keep only brand/identity + one-line title in the
 * body. Resource count/capacity live on the cover hover layer; date is omitted
 * from listing cards so the visual rhythm stays compact across every surface. */
.tbf-ui .grids .post.grid.tbf-work-card--journal .con,
.tbf-ui .grids .post.grid.tbf-work-card--video .con {
    padding: 11px 16px 12px;
    gap: 6px;
}

.tbf-ui .grids .post.grid.tbf-work-card--journal .con h3,
.tbf-ui .grids .post.grid.tbf-work-card--video .con h3,
.tbf-ui .grids .post.grid.tbf-work-card--journal .con h3 a,
.tbf-ui .grids .post.grid.tbf-work-card--video .con h3 a {
    min-height: 1.4em !important;
    height: 1.4em !important;
    max-height: 1.4em !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    display: block !important;
    -webkit-line-clamp: 1 !important;
    line-clamp: 1;
}

.tbf-ui .grids .post.grid .con h3 {
    min-height: 2.8em;
    height: 2.8em;
    max-height: 2.8em;
    margin: 0;
    overflow: hidden;
    color: var(--tbf-ink) !important;
    font-family: var(--tbf-font-sans) !important;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: -.018em;
    white-space: normal !important;
    text-overflow: clip !important;
    word-break: break-word;
}

.tbf-ui .grids .post.grid .con h3 a,
.tbf-ui .grids .post.grid.grid-ts .con h3 a,
.tbf-ui .grids .post.grid .con h3 a:visited {
    width: 100%;
    min-height: 2.8em !important;
    height: 2.8em !important;
    max-height: 2.8em !important;
    margin: 0 !important;
    overflow: hidden !important;
    color: var(--tbf-ink) !important;
    font-family: var(--tbf-font-display) !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    text-overflow: clip !important;
    word-break: break-word !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2;
    opacity: 1 !important;
    text-shadow: none !important;
}

.tbf-ui .grids .post.grid .con h3 a:hover {
    color: var(--tbf-accent) !important;
}

/* 今日新发布：只给当天新发布的期刊/视频标题加一个克制的小“新”标。 */
.tbf-ui .grids .post.grid .con h3.tbf-work-card__title.has-new {
    position: relative;
    padding-left: 22px;
}

.tbf-ui .grids .post.grid .con h3.tbf-work-card__title.has-new > a {
    width: auto !important;
}

.tbf-work-card__new-badge {
    position: absolute;
    top: 2px;
    left: 0;
    width: 17px;
    height: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(244, 94, 126, .18);
    border-radius: 5px;
    color: #ef5d7d;
    background: rgba(244, 94, 126, .08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
    font-family: var(--tbf-font-sans) !important;
    font-size: 10px;
    font-weight: 760;
    line-height: 1;
    pointer-events: none;
}

.tbf-work-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.tbf-work-brand__logo {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(16, 27, 49, .065);
    border-radius: 50%;
    color: var(--tbf-ink) !important;
    background: rgba(245, 247, 251, .92);
}

.tbf-work-brand__logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    transform: none;
}

.tbf-work-brand__logo span {
    font-size: 12px;
    font-weight: 850;
}

.tbf-work-brand__identity {
    min-width: 0;
    flex: 1;
}

.tbf-work-identity {
    min-height: 18px;
    overflow: hidden;
    color: var(--tbf-muted);
    font-size: 12px;
    line-height: 1.45;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tbf-work-identity a {
    color: inherit !important;
}

.tbf-work-identity__studio {
    color: var(--tbf-ink-2) !important;
    font-weight: 760;
}

.tbf-work-identity__models,
.tbf-work-identity__model {
    color: var(--tbf-accent) !important;
    font-weight: 720;
}

.tbf-work-identity a:hover {
    text-decoration: underline;
}

.tbf-dot {
    margin: 0 5px;
    color: #abb3bf;
    font-weight: 400;
}

/* Journal/video cards keep quantity inside the existing issue badge.
 * On real mouse hover the badge expands smoothly from "NO.xxx" to
 * "NO.xxx | xx P/V". Capacity is intentionally absent from listing cards. */
.tbf-work-media-resource {
    display: none !important;
}

.tbf-work-type__count {
    max-width: 0;
    margin-left: -6px;
    padding-left: 0;
    overflow: hidden;
    border-left: 1px solid transparent;
    color: #6f7b8e;
    font-size: var(--tbf-font-size-min);
    font-weight: 720;
    letter-spacing: .01em;
    line-height: 16px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-4px);
    transition: max-width .30s cubic-bezier(.22,1,.36,1), margin-left .30s cubic-bezier(.22,1,.36,1), padding-left .30s cubic-bezier(.22,1,.36,1), border-color .18s ease, opacity .16s ease, transform .30s cubic-bezier(.22,1,.36,1);
}

@media (hover: hover) and (pointer: fine) {
    .tbf-work-card--journal .img:hover .tbf-work-type__count,
    .tbf-work-card--journal .img:focus-within .tbf-work-type__count,
    .tbf-work-card--video .img:hover .tbf-work-type__count,
    .tbf-work-card--video .img:focus-within .tbf-work-type__count,
    .tbf-work-list .img:hover .tbf-work-type__count,
    .tbf-work-list .img:focus-within .tbf-work-type__count {
        max-width: 104px;
        margin-left: 0;
        padding-left: 8px;
        border-left-color: rgba(16, 27, 49, .14);
        opacity: 1;
        transform: translateX(0);
    }
}

@media (hover: none), (pointer: coarse) {
    .tbf-work-type__count {
        display: none !important;
    }
}

.tbf-work-card--journal .tbf-work-footer,
.tbf-work-card--video .tbf-work-footer {
    display: none !important;
}

.tbf-work-footer {
    min-width: 0;
    padding-top: 1px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tbf-work-resource,
.tbf-work-date {
    overflow: hidden;
    color: #87909f;
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tbf-work-resource {
    min-width: 0;
}

.tbf-work-date {
    flex: 0 0 auto;
    color: #a0a8b5;
}

.tbf-work-type,
.tbf-access-badge,
.tbf-work-resolution {
    position: absolute;
    z-index: 5;
    top: 13px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: var(--tbf-font-size-min);
    line-height: 1;
    font-weight: 760;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.tbf-work-type {
    left: 13px;
    color: var(--tbf-ink);
    border: 1px solid rgba(255, 255, 255, .8);
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 7px 18px rgba(30, 46, 77, .065), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.tbf-work-type b,
.tbf-work-type em {
    display: inline-flex;
    align-items: center;
    height: 16px;
    line-height: 16px;
    font-style: normal;
}

.tbf-work-type em {
    padding-left: 0;
    border-left: 0;
    color: var(--tbf-ink);
    font-size: var(--tbf-font-size-min);
    font-weight: 720;
    letter-spacing: .02em;
}

/* Only a real type-label + issue pair needs a permanent separator.
 * Journal/video badges start with the issue itself; their resource-count
 * separator belongs to the hidden hover expansion and must not leak before
 * hover merely because the hidden count span is a sibling. */
.tbf-work-type b + em {
    padding-left: 6px;
    border-left: 1px solid rgba(16, 27, 49, .14);
    color: #6f7b8e;
}

.tbf-work-resolution {
    display: none;
    left: 13px;
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, #35a9ff, #596cff);
    box-shadow: 0 7px 18px rgba(35, 111, 220, .22);
    font-size: var(--tbf-font-size-min);
    font-weight: 850;
    letter-spacing: .02em;
}

.tbf-access-badge {
    right: 13px;
    min-width: 42px;
    color: #fff;
    border: 0;
    background: rgba(16, 27, 49, .82);
    box-shadow: 0 7px 18px rgba(16, 27, 49, .13);
}

.tbf-access-badge i,
.tbf-access-badge b {
    position: static !important;
    width: auto !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-grid !important;
    place-items: center;
    line-height: 16px !important;
    vertical-align: middle;
}

.tbf-access-badge i {
    font-size: 12px !important;
    transform: translateY(0) !important;
}

.tbf-access-badge i::before {
    display: block;
    line-height: 16px !important;
}

.tbf-access-badge b {
    font-size: var(--tbf-font-size-min);
    font-weight: 800;
}

.tbf-access-badge b::before,
.tbf-access-badge b::after {
    display: none !important;
    content: none !important;
}

.tbf-access-badge--vip {
    color: #6d5100;
    background: rgba(255, 239, 172, .9);
}

.tbf-access-badge--free {
    color: #145d3a;
    background: rgba(217, 247, 230, .91);
}

.tbf-ui .grids .post.grid > .vip-tag,
.tbf-ui .grids .post.grid .price,
.tbf-ui .grids .post.grid .img-cat,
.tbf-ui .grids .post.grid .excerpt,
.tbf-ui .grids .post.grid .grid-meta,
.tbf-ui .grids .post.grid .grid-author,
.tbf-ui .grids .post.grid .tag,
.tbf-ui .grids .post.grid .cat {
    display: none !important;
}

.tbf-ui .grids .post.grid > .recommend-tag {
    top: auto;
    right: 11px;
    bottom: 11px;
    width: 26px;
    height: 26px;
    line-height: 26px;
    border-radius: 50%;
    font-size: var(--tbf-font-size-min);
}

.tbf-ui .lists .post.list,
.tbf-ui .lists .post.grid {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(16, 27, 49, .07);
    border-radius: 18px;
    background: rgba(255, 255, 255, .76) !important;
    box-shadow: 0 11px 30px rgba(36, 54, 91, .045);
}

.tbf-ui .lists .post .img {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.tbf-ui .lists .post .con h3,
.tbf-ui .lists .post .con h3 a {
    color: var(--tbf-ink) !important;
    font-weight: 760;
}

.tbf-ui .lists .post .excerpt,
.tbf-ui .lists .post .grid-meta,
.tbf-ui .lists .post .cat,
.tbf-ui .lists .post .tag {
    display: none !important;
}

.tbf-work-list__foot .tbf-work-footer {
    flex: 1;
}

.tbf-ui .mocat {
    position: relative;
    padding: 72px 0;
}

.tbf-ui .mocat > .container > h2 {
    text-align: center;
}

.tbf-ui .mocat .desc {
    max-width: 680px;
    margin: -18px auto 29px;
    text-align: center;
    color: var(--tbf-muted);
}

.tbf-ui .mocat .child {
    margin: -10px auto 29px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.tbf-ui .mocat .child li {
    margin: 0;
}

.tbf-ui .mocat .child a {
    min-height: 34px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--tbf-border);
    border-radius: 999px;
    color: var(--tbf-muted);
    background: rgba(255, 255, 255, .56);
}

.tbf-ui .mocat .child a.active,
.tbf-ui .mocat .child a:hover {
    color: #fff;
    border-color: var(--tbf-ink);
    background: var(--tbf-ink);
}

.tbf-ui .mocat .more {
    margin-top: 28px;
    text-align: center;
}

.tbf-ui .mocats .molis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.tbf-ui .mocats .moli {
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(16, 27, 49, .065);
    border-radius: 24px;
    background: rgba(255, 255, 255, .68);
    box-shadow: 0 14px 36px rgba(36, 54, 91, .05), inset 0 1px 0 rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
}

.tbf-ui .mocats .moli-header {
    position: relative;
    min-height: 176px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border-radius: 23px 23px 0 0;
    background-color: #edf2f9;
    background-size: cover !important;
    background-position: center !important;
}

.tbf-ui .mocats .moli-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 20, 37, .02), rgba(11, 20, 37, .66));
}

.tbf-ui .mocats .moli-header h3,
.tbf-ui .mocats .moli-header .des {
    position: relative;
    z-index: 2;
    color: #fff;
}

.tbf-ui .mocats .moli-header h3 {
    margin: 0;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 820;
}

.tbf-ui .mocats .moli-header .des {
    margin: 8px 0 0;
    opacity: .82;
    font-size: 12px;
    line-height: 1.6;
}

.tbf-ui .mocats .moli > ul {
    padding: 14px 20px 18px;
}

.tbf-ui .mocats .moli > ul li {
    min-width: 0;
    padding: 10px 0;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(16, 27, 49, .055);
}

.tbf-ui .mocats .moli > ul li:last-child {
    border-bottom: 0;
}

.tbf-ui .mocats .moli > ul li > i {
    color: var(--tbf-accent);
    font-size: var(--tbf-font-size-min);
    font-style: normal;
    font-weight: 800;
}

.tbf-ui .mocats .moli > ul li > a {
    min-width: 0;
    overflow: hidden;
    color: var(--tbf-ink) !important;
    font-size: 13px;
    font-weight: 680;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tbf-ui .mocats .moli > ul li > span {
    color: var(--tbf-muted);
    font-size: var(--tbf-font-size-min);
}

.tbf-studio-profile {
    padding: 46px 0 18px;
}

.tbf-studio-profile__main {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 390px;
    gap: 34px;
    align-items: center;
    padding: 30px;
    border: 1px solid rgba(16, 27, 49, .07);
    border-radius: 28px;
    background: rgba(255, 255, 255, .62);
    box-shadow: 0 18px 48px rgba(36, 54, 91, .055), inset 0 1px 0 rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: blur(20px) saturate(145%);
    backdrop-filter: blur(20px) saturate(145%);
}

.tbf-studio-profile__logo {
    width: 150px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    padding: 0;
    overflow: hidden;
    border-radius: 24px;
    background: #f2f5fa;
}

.tbf-studio-profile__logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    transform: none;
}

.tbf-studio-profile__logo span {
    color: rgba(16, 27, 49, .22);
    font-size: 52px;
    font-weight: 850;
}

.tbf-studio-profile__eyebrow {
    color: var(--tbf-accent);
    font-size: var(--tbf-font-size-min);
    font-weight: 800;
    letter-spacing: .16em;
}

.tbf-studio-profile__copy h1 {
    margin: 7px 0;
    color: var(--tbf-ink);
    font-size: 36px;
    line-height: 1.15;
}

.tbf-studio-profile__aliases {
    margin: 0 0 12px;
    color: #7b8493;
    font-size: 13px;
}

.tbf-studio-profile__intro {
    max-width: 720px;
    margin: 0;
    color: var(--tbf-muted);
    font-size: 14px;
    line-height: 1.8;
}

.tbf-studio-profile__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.tbf-studio-profile__stats span {
    padding: 16px 12px;
    border: 1px solid rgba(16, 27, 49, .06);
    border-radius: 17px;
    text-align: center;
    background: rgba(248, 250, 254, .62);
}

.tbf-studio-profile__stats strong {
    display: block;
    color: var(--tbf-ink);
    font-size: 22px;
    line-height: 1;
}

.tbf-studio-profile__stats small {
    display: block;
    margin-top: 7px;
    color: var(--tbf-muted);
    font-size: var(--tbf-font-size-min);
}

.tbf-studio-profile__models {
    margin: 22px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.tbf-studio-profile__models a {
    width: 82px;
    color: var(--tbf-ink);
    text-align: center;
}

.tbf-studio-profile__model-image {
    width: 68px;
    aspect-ratio: 1;
    margin: 0 auto 7px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: #eef2f7;
}

.tbf-studio-profile__model-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 15%;
}

.tbf-studio-profile__model-image i {
    color: #a4adbc;
    font-style: normal;
    font-size: 22px;
    font-weight: 800;
}

.tbf-studio-profile__models b {
    display: block;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tbf-ui .tbf-sliding-pills {
    position: relative;
    isolation: isolate;
}

.tbf-ui .tbf-sliding-pills--compact {
    padding: 5px;
    gap: 4px !important;
    overflow: hidden;
    border: 1px solid rgba(16, 27, 49, .075);
    border-radius: 999px;
    background: rgba(255, 255, 255, .34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
}

.tbf-ui .tbf-pill-indicator {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 0;
    height: 0;
    border-radius: 999px;
    background: var(--tbf-ink);
    box-shadow: none;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(0, 0, 0);
    transition: transform .38s cubic-bezier(.22, .78, .22, 1), width .38s cubic-bezier(.22, .78, .22, 1), height .38s cubic-bezier(.22, .78, .22, 1), opacity .18s ease;
}

.tbf-ui .tbf-sliding-pills > :where(a, button) {
    position: relative;
    z-index: 2;
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    transition: color .24s ease, transform .24s ease !important;
}

.tbf-ui .tbf-sliding-pills.is-pill-indicator-ready > :where(a, button).is-selection-target {
    color: #fff !important;
    border-color: transparent !important;
    background: transparent !important;
    transform: none !important;
}

/* Keep the current choice visible if JavaScript is delayed or an AJAX update
 * temporarily rebuilds the controls before the sliding indicator is ready. */
.tbf-ui .tbf-sliding-pills:not(.is-pill-indicator-ready) > :where(a, button).is-active,
.tbf-ui .tbf-sliding-pills:not(.is-pill-indicator-ready) > :where(a, button).active,
.tbf-ui .tbf-sliding-pills:not(.is-pill-indicator-ready) > :where(a, button)[aria-current="page"],
.tbf-ui .tbf-sliding-pills:not(.is-pill-indicator-ready) > :where(a, button)[aria-selected="true"] {
    color: #fff !important;
    background: var(--tbf-ink) !important;
    box-shadow: none !important;
}

.tbf-ui .tbf-sliding-pills.is-pill-indicator-ready.is-selection-previewing > :where(a, button).is-active:not(.is-selection-target),
.tbf-ui .tbf-sliding-pills.is-pill-indicator-ready.is-selection-previewing > :where(a, button).active:not(.is-selection-target) {
    color: var(--tbf-muted) !important;
}

.tbf-ui .pagination .tbf-pagination-indicator.is-circle,
.tbf-ui .tbf-pill-indicator.is-circle {
    border-radius: 50% !important;
}

.tbf-ui .tbf-sliding-pills--circle > :where(a, button) {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    justify-content: center !important;
    border-radius: 50% !important;
    white-space: nowrap;
}

.tbf-ui .tbf-sliding-pills--circle.tbf-sliding-pills--compact {
    gap: 5px !important;
}

.tbf-ui .tbf-sliding-pills--hero .tbf-pill-indicator {
    border-radius: 999px;
}

.tbf-ui .tbf-sliding-pills--hero > a.is-selection-target {
    color: #fff !important;
}

@media (max-width: 760px) {
    .tbf-ui .tbf-sliding-pills--circle > :where(a, button) {
        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;
        min-height: 38px !important;
    }
}



/* Site tips: align Modown's native notice bar and popup with the TBF glass UI. */
body.tbf-ui .sitetips-default {
    width: min(1180px, calc(100vw - 48px));
    max-width: none;
    bottom: 24px;
    margin: 0 auto;
    padding: 15px 62px 15px 18px;
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 18px;
    color: var(--tbf-ink-2);
    background: linear-gradient(145deg, rgba(250, 253, 255, .91), rgba(244, 248, 255, .84));
    box-shadow: 0 18px 50px rgba(31, 49, 85, .13), inset 0 1px 0 rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(24px) saturate(158%);
    backdrop-filter: blur(24px) saturate(158%);
    font-family: var(--tbf-font-sans);
    font-size: 14px;
    line-height: 1.65;
    animation: tbf-sitetips-bar-enter .24s cubic-bezier(.2, .7, .2, 1) both;
}

body.tbf-ui .sitetips-default > .icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    border: 1px solid rgba(16, 27, 49, .06);
    border-radius: 50%;
    color: var(--tbf-ink-2);
    background: rgba(255, 255, 255, .62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

body.tbf-ui .sitetips-default .close,
body.tbf-ui .sitetips-pop .close {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(16, 27, 49, .08);
    border-radius: 50%;
    color: #68758b !important;
    background: rgba(255, 255, 255, .68);
    box-shadow: 0 8px 18px rgba(31, 49, 85, .08), inset 0 1px 0 rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(14px) saturate(145%);
    backdrop-filter: blur(14px) saturate(145%);
    text-decoration: none !important;
    transition: color .18s ease, background-color .18s ease, transform .18s ease;
}

body.tbf-ui .sitetips-default .close {
    top: 50%;
    right: 14px;
    bottom: auto;
    line-height: 36px;
    transform: translateY(-50%);
}

body.tbf-ui .sitetips-default .close:hover,
body.tbf-ui .sitetips-pop .close:hover {
    color: var(--tbf-ink) !important;
    background: rgba(255, 255, 255, .9);
}

body.tbf-ui .sitetips-default .close:hover {
    transform: translateY(-50%) scale(1.04);
}

body.tbf-ui .sitetips-pop .close:hover {
    transform: scale(1.04);
}

body.tbf-ui .sitetips-default .close .icon,
body.tbf-ui .sitetips-pop .close .icon {
    top: 0;
    font-size: 18px;
    line-height: 1;
}

body.tbf-ui .sitetips-default a:not(.close):not(.btn) {
    padding: 0 !important;
    color: var(--tbf-ink) !important;
    background: transparent !important;
    font-weight: 650;
    text-decoration: underline;
    text-decoration-color: rgba(16, 27, 49, .22);
    text-underline-offset: 3px;
}

body.tbf-ui .sitetips-default .btn {
    min-height: 34px;
    margin-left: 8px;
    padding: 0 13px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #101b31 !important;
    border-radius: 11px;
    color: #fff !important;
    background: #101b31 !important;
    box-shadow: 0 8px 18px rgba(16, 27, 49, .14);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

body.tbf-ui .sitetips-pop-shadow {
    background: rgba(19, 28, 46, .34);
    opacity: 1;
    -webkit-backdrop-filter: blur(10px) saturate(125%);
    backdrop-filter: blur(10px) saturate(125%);
}

body.tbf-ui .sitetips-pop {
    width: min(460px, calc(100vw - 32px));
    min-height: 0;
    max-height: min(78vh, 680px);
    overflow: auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 26px;
    color: var(--tbf-ink);
    background: linear-gradient(145deg, rgba(250, 253, 255, .93), rgba(244, 248, 255, .84));
    box-shadow: 0 34px 92px rgba(26, 39, 67, .23), inset 0 1px 0 rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: blur(34px) saturate(168%);
    backdrop-filter: blur(34px) saturate(168%);
    font-family: var(--tbf-font-sans);
    font-size: 14px;
    line-height: 1.75;
    animation: tbf-sitetips-pop-enter .24s cubic-bezier(.2, .7, .2, 1) both;
}

body.tbf-ui .sitetips-pop::before,
body.tbf-ui .sitetips-pop::after {
    content: none !important;
    display: none !important;
    background-image: none !important;
}

body.tbf-ui .sitetips-pop .sitetips-header {
    margin: 0;
    padding: 28px 72px 10px 28px;
    text-align: left;
}

body.tbf-ui .sitetips-pop .sitetips-header h3 {
    margin: 0;
    color: var(--tbf-ink);
    font-size: 20px;
    font-weight: 760;
    line-height: 1.35;
    letter-spacing: -.02em;
}

body.tbf-ui .sitetips-pop .sitetips-header h3::after {
    content: none !important;
    display: none !important;
}

body.tbf-ui .sitetips-pop .sitetips-main {
    padding: 7px 28px 30px;
    color: var(--tbf-ink-2);
}

body.tbf-ui .sitetips-pop .sitetips-main p {
    margin: 0 0 14px;
}

body.tbf-ui .sitetips-pop .sitetips-main p:last-child {
    margin-bottom: 0;
}

body.tbf-ui .sitetips-pop .sitetips-main a:not(.btn) {
    color: var(--tbf-ink);
    font-weight: 650;
    text-decoration: underline;
    text-decoration-color: rgba(16, 27, 49, .22);
    text-underline-offset: 3px;
}

body.tbf-ui .sitetips-pop .btn {
    width: 100%;
    min-height: 46px;
    margin-top: 20px;
    padding: 0 16px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #101b31 !important;
    border-radius: 14px;
    color: #fff !important;
    background: #101b31 !important;
    box-shadow: 0 12px 28px rgba(16, 27, 49, .16);
    font-size: 14px;
    font-weight: 720;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

body.tbf-ui .sitetips-pop .close {
    top: 16px;
    right: 16px;
    line-height: 36px;
}

body.night.tbf-ui .sitetips-default,
body.night.tbf-ui .sitetips-pop {
    border-color: rgba(255, 255, 255, .1);
    color: #e7edf7;
    background: linear-gradient(145deg, rgba(25, 34, 52, .94), rgba(18, 27, 44, .9));
    box-shadow: 0 30px 80px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .06);
}

body.night.tbf-ui .sitetips-pop .sitetips-header h3,
body.night.tbf-ui .sitetips-pop .sitetips-main,
body.night.tbf-ui .sitetips-default a:not(.close):not(.btn),
body.night.tbf-ui .sitetips-pop .sitetips-main a:not(.btn) {
    color: #e7edf7 !important;
}

@keyframes tbf-sitetips-bar-enter {
    from { transform: translateY(8px); }
    to { transform: translateY(0); }
}

@keyframes tbf-sitetips-pop-enter {
    from { transform: translateY(calc(-50% + 8px)); }
    to { transform: translateY(-50%); }
}

@media (max-width: 620px) {
    body.tbf-ui .sitetips-default {
        width: calc(100vw - 24px);
        bottom: 16px;
        padding: 14px 50px 14px 14px;
        border-radius: 16px;
        font-size: 13px;
        line-height: 1.6;
        text-align: left;
    }

    body.tbf-ui .sitetips-default > .icon {
        width: 28px;
        height: 28px;
        margin-right: 7px;
    }

    body.tbf-ui .sitetips-default .close {
        top: 10px;
        right: 10px;
        bottom: auto;
        width: 34px;
        height: 34px;
        transform: none;
    }

    body.tbf-ui .sitetips-default .close:hover {
        transform: scale(1.04);
    }

    body.tbf-ui .sitetips-pop {
        width: calc(100vw - 24px);
        max-width: 460px;
        max-height: calc(100vh - 40px);
        border-radius: 22px;
    }

    body.tbf-ui .sitetips-pop .sitetips-header {
        padding: 24px 64px 9px 22px;
    }

    body.tbf-ui .sitetips-pop .sitetips-header h3 {
        font-size: 18px;
    }

    body.tbf-ui .sitetips-pop .sitetips-main {
        padding: 6px 22px 24px;
    }

    body.tbf-ui .sitetips-pop .close {
        top: 11px;
        right: 11px;
        width: 34px;
        height: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.tbf-ui .sitetips-default,
    body.tbf-ui .sitetips-pop {
        animation: none;
    }
}

/* Unified glass modal surfaces: Layer dialogs, ErphpDown checkout and login/register. */
body.tbf-ui .layui-layer-shade.tbf-glass-shade {
    background: rgba(19, 28, 46, .34) !important;
    opacity: 1 !important;
    -webkit-backdrop-filter: blur(12px) saturate(125%);
    backdrop-filter: blur(12px) saturate(125%);
}

body.tbf-ui .layui-layer.tbf-glass-layer {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .84) !important;
    border-radius: 28px !important;
    color: var(--tbf-ink) !important;
    background: linear-gradient(145deg, rgba(250, 253, 255, .90), rgba(244, 248, 255, .80)) !important;
    box-shadow: 0 32px 90px rgba(26, 39, 67, .22), inset 0 1px 0 rgba(255, 255, 255, .96) !important;
    -webkit-backdrop-filter: blur(34px) saturate(170%);
    backdrop-filter: blur(34px) saturate(170%);
}

body.tbf-ui .tbf-glass-layer .layui-layer-title {
    height: 64px;
    padding: 0 72px 0 26px;
    display: flex;
    align-items: center;
    border: 0 !important;
    color: var(--tbf-ink) !important;
    background: transparent !important;
    font-family: var(--tbf-font-sans);
    font-size: 18px;
    font-weight: 760;
    line-height: 1;
}

body.tbf-ui .tbf-glass-layer .layui-layer-setwin {
    top: 14px;
    right: 16px;
}

body.tbf-ui .tbf-glass-layer .layui-layer-setwin .layui-layer-close1,
body.tbf-ui .tbf-glass-layer .layui-layer-setwin .layui-layer-close2 {
    width: 36px;
    height: 36px;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(16, 27, 49, .08);
    border-radius: 50%;
    background: rgba(255, 255, 255, .66) !important;
    box-shadow: 0 8px 18px rgba(31, 49, 85, .08), inset 0 1px 0 rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(14px) saturate(145%);
    backdrop-filter: blur(14px) saturate(145%);
}

body.tbf-ui .tbf-glass-layer .layui-layer-setwin .layui-layer-close1::before,
body.tbf-ui .tbf-glass-layer .layui-layer-setwin .layui-layer-close1::after,
body.tbf-ui .tbf-glass-layer .layui-layer-setwin .layui-layer-close2::before,
body.tbf-ui .tbf-glass-layer .layui-layer-setwin .layui-layer-close2::after {
    content: "";
    position: absolute;
    top: 17px;
    left: 10px;
    width: 16px;
    height: 1.8px;
    border-radius: 999px;
    background: #536078;
}

body.tbf-ui .tbf-glass-layer .layui-layer-setwin a::before { transform: rotate(45deg); }
body.tbf-ui .tbf-glass-layer .layui-layer-setwin a::after { transform: rotate(-45deg); }

body.tbf-ui .tbf-glass-layer.layui-layer-dialog .layui-layer-content,
body.tbf-ui .tbf-glass-layer.layui-layer-page .layui-layer-content {
    padding: 22px 26px 26px !important;
    color: var(--tbf-ink-2) !important;
    background: transparent !important;
    font-family: var(--tbf-font-sans);
    font-size: 14px;
    line-height: 1.7;
}

body.tbf-ui .tbf-glass-layer .layui-layer-btn {
    padding: 0 26px 24px !important;
    border: 0 !important;
    background: transparent !important;
}

body.tbf-ui .tbf-glass-layer .layui-layer-btn a {
    min-height: 44px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(16, 27, 49, .08) !important;
    border-radius: 14px !important;
    color: var(--tbf-ink) !important;
    background: rgba(255, 255, 255, .70) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
    font-weight: 700;
}

body.tbf-ui .tbf-glass-layer .layui-layer-btn .layui-layer-btn0 {
    border-color: #101b31 !important;
    color: #fff !important;
    background: #101b31 !important;
    box-shadow: 0 12px 28px rgba(16, 27, 49, .16);
}

body.tbf-ui .tbf-glass-layer .erphpdown-type-desc {
    margin: -4px 0 18px !important;
    padding: 18px !important;
    border: 1px solid rgba(16, 27, 49, .07);
    border-radius: 18px;
    background: rgba(255, 255, 255, .52) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

body.tbf-ui .tbf-glass-layer .erphpdown-type-desc .type-name {
    color: var(--tbf-ink-2);
    font-size: 14px;
    font-weight: 650;
}

body.tbf-ui .tbf-glass-layer .erphpdown-type-desc .type-price {
    margin-top: 4px;
    color: var(--tbf-ink);
}

body.tbf-ui .tbf-glass-layer .erphpdown-type-desc .type-price span {
    font-size: 34px;
    font-weight: 650;
    letter-spacing: -.035em;
}

body.tbf-ui .tbf-glass-layer .erphpdown-type-link {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px;
    margin: 0 0 10px !important;
    padding: 0 16px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    float: none !important;
    border: 1px solid rgba(16, 27, 49, .08) !important;
    border-radius: 16px !important;
    color: var(--tbf-ink) !important;
    background: rgba(255, 255, 255, .70) !important;
    box-shadow: 0 8px 22px rgba(31, 49, 85, .07), inset 0 1px 0 rgba(255, 255, 255, .88);
    font-size: 14px;
    font-weight: 700;
}

body.tbf-ui .tbf-glass-layer .erphpdown-type-credit {
    border-color: #101b31 !important;
    color: #fff !important;
    background: #101b31 !important;
    box-shadow: 0 12px 28px rgba(16, 27, 49, .16);
}

body.tbf-ui .tbf-glass-layer .erphpdown-promo {
    margin-top: 14px;
    color: var(--tbf-muted);
}

/* ErphpDown purchase iframe keeps the same glass shell while its inner page is restyled by JS. */
body.tbf-ui .tbf-erphp-purchase-layer .layui-layer-content,
body.tbf-ui .tbf-erphp-purchase-layer iframe {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

/* Parent-theme login/register overlay aligned to the same modal language. */
body.tbf-ui .sign-mask {
    background: rgba(19, 28, 46, .34) !important;
    opacity: 1 !important;
    -webkit-backdrop-filter: blur(12px) saturate(125%);
    backdrop-filter: blur(12px) saturate(125%);
}

body.tbf-ui .sign .sign-box {
    width: min(420px, calc(100vw - 30px)) !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .84);
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(250, 253, 255, .91), rgba(244, 248, 255, .82));
    box-shadow: 0 34px 92px rgba(26, 39, 67, .23), inset 0 1px 0 rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: blur(34px) saturate(170%);
    backdrop-filter: blur(34px) saturate(170%);
}

body.tbf-ui .sign .sign-box.has-left {
    width: min(720px, calc(100vw - 30px)) !important;
    padding-left: 280px;
}

body.tbf-ui .sign .sign-box.has-left .loginimage {
    width: 280px;
    border-radius: 29px 0 0 29px;
}

body.tbf-ui .sign form {
    padding: 30px;
}

body.tbf-ui .sign .logo-login {
    height: 66px;
}

body.tbf-ui .sign .form-item {
    margin-bottom: 12px;
}

body.tbf-ui .sign .form-control,
body.tbf-ui .sign .erphp-weixin-scan .ews-box .ews-input {
    min-height: 48px;
    padding-left: 40px;
    border: 1px solid rgba(16, 27, 49, .075) !important;
    border-radius: 15px !important;
    color: var(--tbf-ink) !important;
    background: rgba(255, 255, 255, .62) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92);
}

body.tbf-ui .sign .form-item > i {
    left: 14px;
    top: 13px;
    color: #7e899a;
}

body.tbf-ui .sign .form-slide-item {
    height: 48px;
    border: 1px solid rgba(16, 27, 49, .075);
    border-radius: 15px;
    color: var(--tbf-muted);
    background: rgba(238, 242, 248, .76);
    line-height: 48px;
    box-shadow: inset 0 2px 7px rgba(33, 54, 86, .06);
}

body.tbf-ui .sign .captcha-slide,
body.tbf-ui .sign .captcha-slide2 {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: #fff;
    background: #101b31;
    line-height: 48px;
    box-shadow: 0 8px 20px rgba(16, 27, 49, .18);
}

body.tbf-ui .sign .captcha-clk,
body.tbf-ui .sign .captcha-clk2,
body.tbf-ui .sign .captcha-sms-clk {
    right: 13px;
    top: 14px;
    color: var(--tbf-ink-2);
    font-weight: 650;
}

body.tbf-ui .sign .sign-submit {
    padding-bottom: 18px;
    border-bottom-color: rgba(16, 27, 49, .07);
}

body.tbf-ui .sign .sign-submit .btn {
    min-height: 48px;
    border: 0;
    border-radius: 15px;
    color: #fff;
    background: #101b31;
    box-shadow: 0 12px 28px rgba(16, 27, 49, .17);
    font-weight: 720;
}

body.tbf-ui .sign-trans,
body.tbf-ui .form-policy,
body.tbf-ui .sign .sign-notice {
    color: var(--tbf-muted);
}

body.tbf-ui .sign-trans a,
body.tbf-ui .form-policy a {
    color: var(--tbf-ink);
    font-weight: 650;
}

body.tbf-ui .sign-tips {
    background: rgba(190, 48, 59, .92);
}

@media (max-width: 620px) {
    body.tbf-ui .layui-layer.tbf-glass-layer {
        max-width: calc(100vw - 24px) !important;
        border-radius: 24px !important;
    }
    body.tbf-ui .tbf-glass-layer .layui-layer-title {
        height: 58px;
        padding-left: 21px;
        font-size: 17px;
    }
    body.tbf-ui .tbf-glass-layer .layui-layer-setwin {
        top: 11px;
        right: 12px;
    }
    body.tbf-ui .sign .sign-box.has-left {
        padding-left: 0;
    }
    body.tbf-ui .sign .sign-box.has-left .loginimage {
        display: none;
    }
    body.tbf-ui .sign form {
        padding: 26px 20px;
    }
}

.tbf-studio-profile__tabs {
    margin: 22px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tbf-studio-profile__tabs a {
    min-height: 36px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--tbf-border);
    border-radius: 999px;
    color: var(--tbf-muted);
    background: #fff;
}

.tbf-studio-profile__tabs a.active,
.tbf-studio-profile__tabs a:hover {
    color: var(--tbf-ink);
    border-color: transparent;
    background: transparent;
}

.tbf-work-layout-toggle {
    display: none;
}

.tbf-work-layout-toggle__grid,
.tbf-work-layout-toggle__single {
    width: 20px;
    height: 20px;
    position: absolute;
    inset: 0;
    margin: auto;
    pointer-events: none;
}

.tbf-work-layout-toggle__grid {
    display: grid;
    grid-template-columns: repeat(2, 7px);
    grid-template-rows: repeat(2, 7px);
    gap: 3px;
    place-content: center;
}

.tbf-work-layout-toggle__grid i,
.tbf-work-layout-toggle__single i {
    display: block;
    border: 1.8px solid currentColor;
    border-radius: 3px;
}

.tbf-work-layout-toggle__single {
    display: none;
}

.tbf-work-layout-toggle__single i {
    position: absolute;
    inset: 2px 1px;
    border-radius: 5px;
}

@media (max-width: 1180px) {
    .tbf-entity-grid--studio {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .tbf-entity-grid--model {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .tbf-ui .grids {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tbf-studio-profile__main {
        grid-template-columns: 130px minmax(0, 1fr);
    }

    .tbf-studio-profile__logo {
        width: 130px;
    }

    .tbf-studio-profile__stats {
        grid-column: 1 / -1;
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 760px) {
    .tbf-module-heading {
        margin-bottom: 26px;
    }

    .tbf-module-heading__en {
        font-size: clamp(38px, 12vw, 52px);
        line-height: .92;
    }

    .tbf-module-heading h2 {
        margin-top: 9px;
        font-size: 15px;
    }

    .tbf-home-section,
    .tbf-entity-module,
    .tbf-ui .mocat {
        padding: 52px 0;
    }

    .tbf-entity-grid--studio {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 21px 10px;
    }

    .tbf-studio-card__image {
        width: 82px;
        padding: 0;
    }

    .tbf-studio-card__name {
        margin-top: 9px;
        font-size: 13px;
    }

    .tbf-studio-card__count {
        display: none;
    }

    .tbf-entity-grid--model {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px 10px;
    }

    .tbf-model-card__image {
        width: 84px;
        height: 84px;
    }

    .tbf-model-card__name {
        margin-top: 9px;
        font-size: 13px;
    }

    .tbf-model-card__count {
        font-size: var(--tbf-font-size-min);
    }

    .tbf-ui .mocats .molis {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .tbf-ui .grids {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    body.tbf-ui.tbf-work-layout-single #posts.grids {
        grid-template-columns: minmax(0, 1fr);
    }

    .tbf-work-layout-toggle {
        width: 52px;
        height: 52px;
        padding: 0;
        position: fixed;
        right: 14px;
        bottom: max(82px, calc(env(safe-area-inset-bottom) + 78px));
        z-index: 9990;
        display: block;
        line-height: 0;
        border: 1px solid rgba(255, 255, 255, .82);
        border-radius: 18px;
        color: #17243e;
        background: rgba(255, 255, 255, .70);
        box-shadow: 0 12px 30px rgba(31, 49, 85, .15), 0 2px 8px rgba(31, 49, 85, .07), inset 0 1px 0 rgba(255, 255, 255, .98);
        -webkit-backdrop-filter: blur(22px) saturate(175%);
        backdrop-filter: blur(22px) saturate(175%);
    }

    .tbf-work-layout-toggle[hidden] {
        display: none !important;
    }

    .tbf-work-layout-toggle.is-single .tbf-work-layout-toggle__grid {
        display: none;
    }

    .tbf-work-layout-toggle.is-single .tbf-work-layout-toggle__single {
        display: block;
    }

    .tbf-ui .grids .post.grid {
        border-radius: 16px;
    }

    .tbf-ui .grids .post.grid .con {
        padding: 11px 12px 12px;
        gap: 7px;
    }

    .tbf-ui .grids .post.grid.tbf-work-card--journal .con,
    .tbf-ui .grids .post.grid.tbf-work-card--video .con {
        padding: 9px 12px 10px;
        gap: 5px;
    }

    .tbf-ui .grids .post.grid.tbf-work-card--journal .con h3,
    .tbf-ui .grids .post.grid.tbf-work-card--video .con h3,
    .tbf-ui .grids .post.grid.tbf-work-card--journal .con h3 a,
    .tbf-ui .grids .post.grid.tbf-work-card--video .con h3 a {
        min-height: 1.4em !important;
        height: 1.4em !important;
        max-height: 1.4em !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
        display: block !important;
        -webkit-line-clamp: 1 !important;
        line-clamp: 1;
    }

    .tbf-work-brand__logo {
        flex-basis: 25px;
        width: 25px;
        height: 25px;
    }

    .tbf-work-identity {
        font-size: var(--tbf-font-size-min);
    }

    .tbf-ui .grids .post.grid .con h3,
    .tbf-ui .grids .post.grid .con h3 a {
        min-height: 2.8em !important;
        height: 2.8em !important;
        max-height: 2.8em !important;
        font-size: 14px;
        line-height: 1.4 !important;
    }

    .tbf-ui .grids .post.grid .con h3.tbf-work-card__title.has-new { padding-left: 20px; }
    .tbf-work-card__new-badge { top: 2px; width: 15px; height: 15px; border-radius: 4px; font-size: 9px; }

    .tbf-work-footer {
        gap: 6px;
    }

    .tbf-work-resource,
    .tbf-work-date {
        font-size: var(--tbf-font-size-min);
    }

    .tbf-work-type,
    .tbf-access-badge {
        top: 9px;
        min-height: 27px;
        padding: 0 9px;
        font-size: var(--tbf-font-size-min);
    }

    .tbf-work-type {
        left: 9px;
    }

    .tbf-access-badge {
        right: 9px;
    }

    .tbf-access-badge b {
        font-size: var(--tbf-font-size-min) !important;
    }

    /* Mobile compact 1×2 work grid: the cover is too narrow for corner badges.
     * Keep both nodes in the shared cached HTML, but hide them only while the
     * existing layout switch is in its default double-column state. Switching
     * to 1×1 adds body.tbf-work-layout-single and restores the normal badges. */
    body.tbf-ui:not(.tbf-work-layout-single) #posts.grids .post.grid.tbf-work-card--journal .tbf-work-type,
    body.tbf-ui:not(.tbf-work-layout-single) #posts.grids .post.grid.tbf-work-card--journal .tbf-access-badge,
    body.tbf-ui:not(.tbf-work-layout-single) #posts.grids .post.grid.tbf-work-card--video .tbf-work-type,
    body.tbf-ui:not(.tbf-work-layout-single) #posts.grids .post.grid.tbf-work-card--video .tbf-access-badge {
        display: none !important;
    }

    .tbf-studio-profile {
        padding-top: 24px;
    }

    .tbf-studio-profile__main {
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 16px;
        padding: 18px;
        border-radius: 22px;
    }

    .tbf-studio-profile__logo {
        width: 86px;
        padding: 0;
        border-radius: 18px;
    }

    .tbf-studio-profile__copy h1 {
        font-size: 25px;
    }

    .tbf-studio-profile__intro {
        grid-column: 1 / -1;
    }

    .tbf-studio-profile__stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

body.tbf-ui :is(.tbf-empty-state, .content-none) {
    width: 100%;
    min-height: 300px;
    margin: 0 !important;
    padding: 74px 28px !important;
    grid-column: 1 / -1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(16, 27, 49, .065) !important;
    border-radius: 28px !important;
    color: var(--tbf-ink);
    background: rgba(255, 255, 255, .70) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88) !important;
    text-align: center;
    -webkit-backdrop-filter: blur(18px) saturate(135%) !important;
    backdrop-filter: blur(18px) saturate(135%) !important;
}

body.tbf-ui .tbf-empty-state__content {
    width: min(100%, 440px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

body.tbf-ui :is(.tbf-empty-state, .content-none) > svg,
body.tbf-ui .content-none svg {
    display: none !important;
}

body.tbf-ui .tbf-empty-state strong,
body.tbf-ui .content-none > div:first-of-type {
    margin: 0;
    color: var(--tbf-ink);
    font-size: 22px;
    font-weight: 720;
    line-height: 1.35;
}

body.tbf-ui .tbf-empty-state p {
    margin: 9px 0 20px;
    color: #8b95a4;
    font-size: 12px;
    line-height: 1.7;
}

body.tbf-ui .tbf-empty-state a {
    min-height: 42px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: var(--tbf-ink);
    box-shadow: 0 8px 20px rgba(16, 27, 49, .13);
    font-size: 12px;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease;
}

body.tbf-ui .tbf-empty-state a:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 11px 25px rgba(16, 27, 49, .17);
}

body.tbf-ui .tbf-library-empty {
    margin: 36px 0 70px !important;
}

body.tbf-ui .tbf-parent-empty-state {
    margin: 34px 0 72px !important;
}

body.tbf-ui .tbf-wallpaper-empty {
    margin: 0 0 52px !important;
}

body.night.tbf-ui :is(.tbf-empty-state, .content-none) {
    border-color: rgba(255, 255, 255, .075) !important;
    background: rgba(28, 31, 39, .72) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04) !important;
}

body.night.tbf-ui .tbf-empty-state strong,
body.night.tbf-ui .content-none > div:first-of-type {
    color: #f3f5fa;
}

body.night.tbf-ui .tbf-empty-state p {
    color: #929aa6;
}

@media (max-width: 620px) {
    body.tbf-ui :is(.tbf-empty-state, .content-none) {
        min-height: 248px;
        padding: 54px 20px !important;
        border-radius: 23px !important;
    }

    body.tbf-ui .tbf-empty-state strong,
    body.tbf-ui .content-none > div:first-of-type {
        font-size: 20px;
    }
}

.tbf-ui .grids .post.grid.tbf-work-card--video .img,
.tbf-ui .posts.grids .post.grid.tbf-work-card--video .img {
    aspect-ratio: 9 / 6;
}

/* Guest journal covers: one global rule for every real journal card.
 * Logged-in visitors keep each page's original journal-card ratio. */
body:not(.logged-in).tbf-ui .grids .post.grid.tbf-work-card--journal .img,
body:not(.logged-in).tbf-ui .posts.grids .post.grid.tbf-work-card--journal .img {
    aspect-ratio: 1 / 1;
}





.tbf-work-card--video .tbf-work-card__play {
    position: absolute;
    z-index: 4;
    inset: 50% auto auto 50%;
    width: 54px;
    height: 54px;
    margin: 0;
    padding: 0;
    display: grid;
    place-items: center;
    overflow: visible;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 12px 30px rgba(16, 27, 49, .20);
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.tbf-play-triangle {
    width: 0;
    height: 0;
    display: block;
    margin-left: 4px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 13px solid #111827;
}

.tbf-work-card--video:hover .tbf-work-card__play {
    box-shadow: 0 16px 38px rgba(16, 27, 49, .25);
    transform: translate(-50%, -50%) scale(1.045);
}

.tbf-work-grid--mixed {
    --tbf-masonry-row: 2px;
    display: grid !important;
    grid-auto-flow: row dense;
    grid-auto-rows: var(--tbf-masonry-row);
    align-items: start;
}

.tbf-work-grid--mixed > .tbf-work-card,
.tbf-work-grid--mixed > .tbf-library-card {
    position: relative !important;
    inset: auto !important;
    align-self: start !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    opacity: 1 !important;
    transform: none !important;
}

.tbf-work-grid--video-only > .tbf-work-card,
.tbf-work-grid--portrait-only > .tbf-work-card {
    grid-row-end: auto !important;
}

@media (max-width: 620px) {
    .tbf-work-card--video .tbf-work-card__play {
        width: 46px;
        height: 46px;
    }

    .tbf-work-card--video .tbf-play-triangle {
        margin-left: 4px;
        border-top-width: 8px;
        border-bottom-width: 8px;
        border-left-width: 13px;
    }
}


.tbf-ui .grids .post.grid.tbf-work-card--video .img > a,
.tbf-ui .posts.grids .post.grid.tbf-work-card--video .img > a {
    position: relative;
    width: 100%;
    height: 100%;


    overflow: hidden;

}

.tbf-ui .grids .post.grid.tbf-work-card--video .thumb,
.tbf-ui .posts.grids .post.grid.tbf-work-card--video .thumb {
    object-position: center;


    filter: blur(1px) saturate(.98) brightness(.99);
    transform: none;
    transition: filter .26s ease;

}

.tbf-ui .grids .post.grid.tbf-work-card--video .img > a::after,
.tbf-ui .posts.grids .post.grid.tbf-work-card--video .img > a::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .04) 0%, rgba(255, 255, 255, 0) 28%),
        linear-gradient(180deg, rgba(11, 18, 32, 0) 0%, rgba(11, 18, 32, .06) 100%);
    pointer-events: none;
}

.tbf-ui .grids .post.grid.tbf-work-card--video:hover .thumb,
.tbf-ui .posts.grids .post.grid.tbf-work-card--video:hover .thumb {
    filter: blur(.7px) saturate(.99) brightness(1);
    transform: none;
}

/* Shared model/studio resource-bundle image entrance. */
/* Entity bundle entrance: lives inside model/studio artwork, never in the stats column. */
.tbf-entity-bundle-entry {
    position: absolute;
    z-index: 8;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
    isolation: isolate;
}

.tbf-model-portrait > .tbf-entity-bundle-entry,
.tbf-agency-logo > .tbf-entity-bundle-entry {
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.tbf-entity-bundle-orb {
    position: absolute;
    z-index: 5;
    right: 12px;
    bottom: 12px;
    width: 33px;
    height: 33px;
    padding: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    color: #fff;
    background: rgba(16, 27, 49, .94);
    box-shadow: 0 9px 22px rgba(16, 27, 49, .22), inset 0 1px 0 rgba(255, 255, 255, .30);
    cursor: pointer;
    pointer-events: auto;
    -webkit-backdrop-filter: blur(16px) saturate(165%);
    backdrop-filter: blur(16px) saturate(165%);
    transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .22s ease, background-color .24s ease, box-shadow .24s ease;
}

.tbf-entity-bundle-orb::before {
    content: "";
    position: absolute;
    inset: -9px;
    border-radius: 50%;
    background: transparent;
}

.tbf-entity-bundle-orb::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    background: linear-gradient(112deg, transparent 24%, rgba(255,255,255,.48) 46%, transparent 68%);
    transform: translateX(-135%) rotate(8deg);
    opacity: 0;
    pointer-events: none;
    animation: tbf-bundle-orb-shine 2.25s ease-in-out infinite;
}

.tbf-entity-bundle-orb:hover {
    transform: none;
    background: rgba(21, 37, 65, .98);
    box-shadow: 0 11px 24px rgba(16, 27, 49, .24), inset 0 1px 0 rgba(255,255,255,.34);
}

.tbf-entity-bundle-orb svg {
    position: relative;
    z-index: 1;
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: tbf-bundle-icon-drop 1.05s ease-in-out infinite;
}

.tbf-entity-bundle-peek {
    position: absolute;
    z-index: 4;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 24px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
    border: 0;
    border-radius: inherit;
    text-align: center;
    color: #142039;
    background: linear-gradient(145deg, rgba(249, 252, 255, .84), rgba(229, 238, 249, .72));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.58);
    opacity: 0;
    visibility: hidden;
    clip-path: circle(16.5px at calc(100% - 28.5px) calc(100% - 28.5px));
    pointer-events: none;
    -webkit-backdrop-filter: blur(26px) saturate(170%);
    backdrop-filter: blur(26px) saturate(170%);
    transition: clip-path .50s cubic-bezier(.18,.82,.2,1), opacity .18s ease, visibility .18s ease;
}

.tbf-model-portrait .tbf-entity-bundle-peek,
.tbf-agency-logo .tbf-entity-bundle-peek {
    border-radius: inherit;
}

.tbf-entity-bundle-peek > span {
    color: rgba(70, 84, 110, .70);
    font: 750 9px/1.2 var(--tbf-font-display);
    letter-spacing: .16em;
}

.tbf-entity-bundle-peek > strong {
    max-width: 94%;
    margin: 9px 0 8px;
    font-size: 15px;
    font-weight: 780;
    line-height: 1.4;
}

.tbf-entity-bundle-peek > small {
    display: block;
    max-width: 96%;
    margin-top: 3px;
    color: #657189;
    font-size: 10px;
    line-height: 1.5;
}

.tbf-entity-bundle-peek > button {
    margin-top: 14px;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 999px;
    color: #fff;
    background: rgba(18, 29, 50, .94);
    box-shadow: 0 8px 22px rgba(20, 34, 58, .16);
    font-size: 11px;
    font-weight: 720;
    cursor: pointer;
    pointer-events: auto;
}

.tbf-entity-bundle-entry.is-peek-open .tbf-entity-bundle-peek {
    opacity: 1;
    visibility: visible;
    clip-path: circle(160% at calc(100% - 28.5px) calc(100% - 28.5px));
    pointer-events: auto;
}

.tbf-entity-bundle-entry.is-peek-open .tbf-entity-bundle-orb {
    opacity: 0;
    transform: scale(.72);
    pointer-events: none;
}

@keyframes tbf-bundle-orb-attention {
    0%, 100% { transform: translateY(0) scale(1); }
    48% { transform: translateY(-2px) scale(1.075); }
    72% { transform: translateY(0) scale(1.02); }
}

@keyframes tbf-bundle-orb-shine {
    0%, 30% { transform: translateX(-135%) rotate(8deg); opacity: 0; }
    44% { opacity: 1; }
    63%, 100% { transform: translateX(135%) rotate(8deg); opacity: 0; }
}

@keyframes tbf-bundle-icon-drop {
    0%, 100% { transform: translateY(-1px); }
    50% { transform: translateY(2px); }
}

@media (max-width: 760px) {
    .tbf-entity-bundle-orb { right: 10px; bottom: 10px; width: 33px; height: 33px; }
    .tbf-entity-bundle-orb svg { width: 14px; height: 14px; }
    .tbf-entity-bundle-peek { padding: 19px 15px 16px; clip-path: circle(16.5px at calc(100% - 26.5px) calc(100% - 26.5px)); }
    .tbf-entity-bundle-entry.is-peek-open .tbf-entity-bundle-peek { clip-path: circle(165% at calc(100% - 26.5px) calc(100% - 26.5px)); }
    .tbf-entity-bundle-peek > strong { font-size: 14px; }
}

/* Model resource bundle modal */
html.tbf-modal-open,
html.tbf-modal-open body {
    overflow: hidden;
}

.tbf-model-bundle-modal[hidden] {
    display: none !important;
}

.tbf-model-bundle-modal {
    position: fixed !important;
    z-index: 100080;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 !important;
    transform: none !important;
    display: grid;
    place-items: center;
    padding: 26px;
    isolation: isolate;
}

.tbf-model-bundle-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 29, 47, .22);
    -webkit-backdrop-filter: blur(10px) saturate(128%);
    backdrop-filter: blur(10px) saturate(128%);
}

.tbf-model-bundle-modal__panel {
    position: relative;
    z-index: 1;
    width: min(900px, calc(100vw - 40px));
    max-height: min(82vh, 820px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .84);
    border-radius: 30px;
    color: var(--tbf-ink);
    background: linear-gradient(145deg, rgba(251, 253, 255, .86), rgba(241, 247, 255, .76));
    box-shadow: 0 34px 90px rgba(21, 34, 58, .20), inset 0 1px 0 rgba(255, 255, 255, .95);
    -webkit-backdrop-filter: blur(36px) saturate(178%);
    backdrop-filter: blur(36px) saturate(178%);
}

.tbf-model-bundle-modal__content {
    position: relative;
    max-height: min(82vh, 820px);
    overflow: auto;
    padding: 34px;
    scrollbar-width: thin;
}

.tbf-model-bundle-modal__close {
    position: absolute;
    z-index: 4;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 50%;
    color: var(--tbf-ink-2);
    background: rgba(255, 255, 255, .58);
    box-shadow: 0 8px 24px rgba(29, 43, 70, .10), inset 0 1px 0 rgba(255, 255, 255, .95);
    font: 400 25px/1 var(--tbf-font-sans);
    cursor: pointer;
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
}

.tbf-mb-head {
    padding-right: 42px;
}

.tbf-mb-head > span,
.tbf-mb-section-title > span {
    display: block;
    color: #8b96a9;
    font: 700 11px/1.2 var(--tbf-font-display);
    letter-spacing: .14em;
}

.tbf-mb-head h2,
.tbf-mb-section-title h3 {
    margin: 8px 0 7px;
    color: var(--tbf-ink);
    font-size: 26px;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.tbf-mb-model-identity {
    width: fit-content;
    max-width: 100%;
    margin: 0 0 8px;
    display: inline-flex;
    align-items: center;
    color: #7f8a9d;
    font-size: 11px;
    font-weight: 680;
    line-height: 1.35;
    text-decoration: none;
}

a.tbf-mb-model-identity:hover {
    color: var(--tbf-ink);
}

.tbf-mb-counts {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.tbf-mb-counts.is-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tbf-mb-group-list {
    margin-top: 24px;
    display: grid;
    gap: 9px;
}

.tbf-mb-group {
    width: 100%;
    min-height: 72px;
    display: flex;
    align-items: stretch;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 18px;
    color: var(--tbf-ink);
    background: rgba(255, 255, 255, .46);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92);
    overflow: hidden;
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.tbf-mb-group:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .74);
    box-shadow: 0 10px 26px rgba(28, 44, 75, .08), inset 0 1px 0 #fff;
}

.tbf-mb-group__select {
    min-width: 0;
    flex: 1 1 auto;
    padding: 12px 8px 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 0;
    color: inherit;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.tbf-mb-group__select > span,
.tbf-mb-group__select strong,
.tbf-mb-group__select small { display: block; }
.tbf-mb-group__select strong { font-size: 14px; font-weight: 760; }
.tbf-mb-group__select small { margin-top: 4px; color: var(--tbf-muted); font-size: 11px; line-height: 1.45; }
.tbf-mb-group__select > b { flex: 0 0 auto; font-size: 12px; font-weight: 760; }
.tbf-mb-group.is-owned .tbf-mb-group__select > b { color: #2f7c58; }

.tbf-mb-group__preview {
    flex: 0 0 auto;
    margin: 10px 10px 10px 0;
    padding: 0 13px;
    border: 1px solid rgba(255,255,255,.86);
    border-radius: 13px;
    color: #536079;
    background: rgba(255,255,255,.55);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.92);
    font-size: 11px;
    font-weight: 720;
    cursor: pointer;
    transition: transform .18s ease, color .18s ease, background-color .18s ease;
}

.tbf-mb-group__preview:hover {
    transform: translateY(-1px);
    color: #fff;
    background: #101b31;
}

.tbf-mb-back-icon {
    position: absolute;
    z-index: 4;
    top: 16px;
    left: 16px;
    width: 38px;
    height: 38px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 50%;
    color: var(--tbf-ink-2);
    background: rgba(255, 255, 255, .58);
    box-shadow: 0 8px 24px rgba(29, 43, 70, .10), inset 0 1px 0 rgba(255, 255, 255, .95);
    cursor: pointer;
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.tbf-mb-back-icon:hover {
    transform: translateX(-2px);
    color: #fff;
    background: #101b31;
}

.tbf-mb-back-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tbf-mb-back-icon ~ .tbf-mb-head {
    min-height: 38px;
    padding-left: 44px;
}

.tbf-mb-type-tabs {
    width: fit-content;
    max-width: 100%;
    margin: 18px auto 0;
    padding: 4px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(106px, auto);
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, .74);
    border-radius: 16px;
    background: rgba(255, 255, 255, .44);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92);
}

.tbf-mb-type-tabs button {
    min-height: 42px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 12px;
    color: #69758a;
    background: transparent;
    font-size: 12px;
    font-weight: 720;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.tbf-mb-type-tabs button:hover {
    color: var(--tbf-ink);
    transform: translateY(-1px);
}

.tbf-mb-type-tabs button.is-active {
    color: #fff;
    background: #101b31;
    box-shadow: 0 8px 20px rgba(16, 27, 49, .16);
}

.tbf-mb-type-tabs small {
    color: inherit;
    opacity: .72;
    font-size: 10px;
    font-weight: 650;
}

.tbf-mb-no-resource {
    min-height: 170px;
    margin-top: 22px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 20px;
    color: #7b8799;
    background: rgba(255, 255, 255, .40);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.tbf-mb-preview-summary {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tbf-mb-preview-summary > span {
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 999px;
    color: var(--tbf-muted);
    background: rgba(255,255,255,.42);
    font-size: 11px;
}

.tbf-mb-preview-summary b {
    margin-left: 4px;
    color: var(--tbf-ink);
}

.tbf-mb-preview-list {
    margin-top: 16px;
    display: grid;
    gap: 7px;
}

.tbf-mb-preview-row {
    min-height: 54px;
    padding: 9px 11px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 14px;
    background: rgba(255,255,255,.42);
}

.tbf-mb-preview-seq {
    color: #7c889d;
    font: 700 11px/1 var(--tbf-font-display);
    text-align: center;
}

.tbf-mb-preview-row strong,
.tbf-mb-preview-row small { display: block; }
.tbf-mb-preview-row strong { color: var(--tbf-ink); font-size: 12px; line-height: 1.45; }
.tbf-mb-preview-row small { margin-top: 3px; color: var(--tbf-muted); font-size: 10px; }
.tbf-mb-preview-row.is-protected small { color: #a67925; }
.tbf-mb-preview-row.is-single small { color: #a65a63; }
.tbf-mb-preview-row.is-unavailable { opacity: .62; }
.tbf-mb-preview-row > a {
    color: #52617b;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.tbf-mb-preview-actions {
    position: sticky;
    bottom: -34px;
    margin: 16px -34px -34px;
    padding: 14px 34px 20px;
    background: linear-gradient(180deg, rgba(244,248,253,0), rgba(244,248,253,.94) 34%);
}

.tbf-mb-counts > div {
    min-height: 116px;
    padding: 17px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 20px;
    background: rgba(255, 255, 255, .42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
    text-align: center;
}

.tbf-mb-counts > div.is-primary {
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 12px 34px rgba(30, 47, 78, .08), inset 0 1px 0 #fff;
}

.tbf-mb-counts span,
.tbf-mb-counts small {
    color: var(--tbf-muted);
    font-size: 11px;
}

.tbf-mb-counts strong {
    margin: 7px 0 5px;
    color: var(--tbf-ink);
    font: 650 31px/1 var(--tbf-font-display);
    letter-spacing: -.04em;
}

.tbf-mb-inline-message {
    margin-top: 14px;
    padding: 11px 14px;
    border: 1px solid rgba(190, 45, 45, .14);
    border-radius: 14px;
    background: rgba(255, 244, 244, .72);
    box-shadow: 0 8px 24px rgba(25, 31, 44, .06);
    color: #9f2f2f;
    font-size: 13px;
    line-height: 1.65;
}


.tbf-mb-actions {
    margin-top: 18px;
}

.tbf-mb-manifest-button {
    width: 100%;
    min-height: 46px;
    margin: 0 0 10px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(16, 27, 49, .08);
    border-radius: 15px;
    color: #536079;
    background: rgba(255, 255, 255, .58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92);
    font-size: 13px;
    font-weight: 720;
    cursor: pointer;
    -webkit-backdrop-filter: blur(16px) saturate(145%);
    backdrop-filter: blur(16px) saturate(145%);
    transition: transform .18s ease, color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.tbf-mb-manifest-button:hover {
    transform: translateY(-1px);
    color: #fff;
    background: #101b31;
    box-shadow: 0 10px 24px rgba(16, 27, 49, .14);
}

.tbf-mb-manifest-pager {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tbf-mb-manifest-pager button {
    min-width: 74px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(16, 27, 49, .08);
    border-radius: 999px;
    color: #52617b;
    background: rgba(255, 255, 255, .58);
    font-size: 11px;
    font-weight: 720;
    cursor: pointer;
}

.tbf-mb-manifest-pager button:not(:disabled):hover {
    color: #fff;
    background: #101b31;
}

.tbf-mb-manifest-pager button:disabled {
    opacity: .42;
    cursor: default;
}

.tbf-mb-manifest-pager span {
    min-width: 52px;
    color: var(--tbf-muted);
    font-size: 11px;
    text-align: center;
}

.tbf-mb-primary {
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 17px;
    color: #fff !important;
    background: #101b31;
    box-shadow: 0 14px 30px rgba(16, 27, 49, .18);
    font-size: 14px;
    font-weight: 720;
    text-decoration: none !important;
    cursor: pointer;
}

.tbf-mb-primary:disabled {
    opacity: .62;
    cursor: wait;
}

.tbf-mb-payline,
.tbf-mb-free,
.tbf-mb-owned {
    margin-bottom: 11px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, .76);
    border-radius: 17px;
    background: rgba(255, 255, 255, .46);
}

.tbf-mb-payline span,
.tbf-mb-free span,
.tbf-mb-action-tip {
    color: var(--tbf-muted);
    font-size: 12px;
}

.tbf-mb-payline span small {
    color: #8e98a8;
    font-size: 11px;
    font-weight: 500;
}

.tbf-mb-payline b,
.tbf-mb-free strong,
.tbf-mb-owned {
    color: var(--tbf-ink);
    font-weight: 720;
}

.tbf-mb-free.is-empty {
    display: block;
}

.tbf-mb-free.is-empty span {
    display: block;
    margin-top: 5px;
    line-height: 1.55;
}

.tbf-mb-action-tip {
    margin-top: 10px;
    display: block;
    text-align: center;
    line-height: 1.6;
}

.tbf-mb-loading {
    min-height: 230px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    color: var(--tbf-muted);
}

.tbf-mb-loading span {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(16, 27, 49, .11);
    border-top-color: var(--tbf-ink);
    border-radius: 50%;
    animation: tbf-mb-spin .72s linear infinite;
}

.tbf-mb-loading p {
    margin: 0;
    font-size: 13px;
}

@keyframes tbf-mb-spin { to { transform: rotate(360deg); } }

.tbf-mb-resource-stats {
    margin: 22px 0 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.tbf-mb-resource-stats.is-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}


.tbf-mb-resource-stats b {
    min-height: 76px;
    display: grid;
    place-items: center;
    align-content: center;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 17px;
    background: rgba(255, 255, 255, .42);
    font: 650 22px/1 var(--tbf-font-display);
}

.tbf-mb-resource-stats small {
    margin-top: 7px;
    color: var(--tbf-muted);
    font: 500 11px/1.2 var(--tbf-font-sans);
}

.tbf-mb-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
}

.tbf-mb-toolbar input,
.tbf-mb-toolbar button {
    min-height: 44px;
    border: 1px solid rgba(16, 27, 49, .075);
    border-radius: 14px;
    color: var(--tbf-ink);
    background: rgba(255, 255, 255, .62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.tbf-mb-toolbar input {
    width: 100%;
    padding: 0 14px;
}

.tbf-mb-toolbar button {
    padding: 0 14px;
    font-weight: 650;
    cursor: pointer;
}

.tbf-mb-resource-list,
.tbf-mb-locked-section {
    margin-top: 14px;
}

.tbf-mb-resource,
.tbf-mb-locked {
    min-height: 66px;
    margin-top: 8px;
    padding: 10px 11px 10px 13px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(255, 255, 255, .68);
    border-radius: 16px;
    background: rgba(255, 255, 255, .43);
}

.tbf-mb-resource > div,
.tbf-mb-locked > div {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tbf-mb-resource > div > span {
    width: 30px;
    flex: 0 0 30px;
    color: #9aa4b4;
    font: 600 11px/1 var(--tbf-font-display);
}

.tbf-mb-resource p {
    min-width: 0;
    margin: 0;
}

.tbf-mb-resource strong,
.tbf-mb-locked strong {
    display: block;
    overflow: hidden;
    color: var(--tbf-ink);
    font-size: 13px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tbf-mb-resource small,
.tbf-mb-locked small {
    margin-top: 3px;
    display: block;
    color: var(--tbf-muted);
    font-size: 11px;
}

.tbf-mb-resource > a,
.tbf-mb-resource > button,
.tbf-mb-locked > a {
    min-height: 38px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(16, 27, 49, .07);
    border-radius: 12px;
    color: var(--tbf-ink);
    background: rgba(255, 255, 255, .72);
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
}

.tbf-mb-section-title {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(16, 27, 49, .07);
}

.tbf-mb-section-title h3 {
    font-size: 19px;
}

.tbf-mb-empty {
    padding: 30px;
    color: var(--tbf-muted);
    text-align: center;
}

@media (max-width: 640px) {
    .tbf-model-bundle-modal {
        padding: 12px;
        align-items: end;
    }
    .tbf-model-bundle-modal__panel {
        width: 100%;
        max-height: 88vh;
        border-radius: 28px 28px 22px 22px;
    }
    .tbf-model-bundle-modal__content {
        max-height: 88vh;
        padding: 28px 17px 20px;
    }
    .tbf-mb-head h2 { font-size: 22px; }
    .tbf-mb-counts { gap: 6px; }
    .tbf-mb-counts.is-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tbf-mb-counts.is-four > .is-primary { grid-column: auto; }
    .tbf-mb-counts > div { min-height: 96px; padding: 12px 7px; border-radius: 16px; }
    .tbf-mb-counts strong { font-size: 25px; }
    .tbf-mb-toolbar { grid-template-columns: 1fr 1fr; }
    .tbf-mb-toolbar input { grid-column: 1 / -1; }
    .tbf-mb-resource { align-items: stretch; flex-wrap: wrap; }
    .tbf-mb-resource > div { flex-basis: 100%; }
    .tbf-mb-resource > a,
    .tbf-mb-resource > button { flex: 1; }
    .tbf-mb-locked { align-items: center; }
    .tbf-mb-group { gap: 5px; }
    .tbf-mb-group__select { padding-left: 12px; gap: 8px; }
    .tbf-mb-group__select > b { font-size: 11px; }
    .tbf-mb-group__preview { margin: 8px 8px 8px 0; padding: 0 10px; }
    .tbf-mb-preview-row { grid-template-columns: 38px minmax(0, 1fr); }
    .tbf-mb-preview-row > a { grid-column: 2; width: fit-content; }
    .tbf-mb-preview-actions { bottom: -20px; margin: 14px -17px -20px; padding: 12px 17px 16px; }
    .tbf-mb-back-icon { top: 10px; left: 10px; width: 36px; height: 36px; }
    .tbf-model-bundle-modal__close { top: 10px; right: 10px; width: 36px; height: 36px; }
    .tbf-mb-back-icon ~ .tbf-mb-head { padding-left: 38px; }
    .tbf-mb-type-tabs { width: 100%; grid-auto-columns: minmax(0, 1fr); }
    .tbf-mb-type-tabs button { padding-inline: 10px; }
}




/* Shared scoped work search control. */
.tbf-scoped-work-search {
    width: min(276px, 30vw);
    height: 46px;
    padding: 4px 5px 4px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(16, 27, 49, .075);
    border-radius: 999px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 8px 24px rgba(28, 44, 75, .05), inset 0 1px 0 rgba(255,255,255,.9);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.tbf-scoped-work-search:focus-within {
    border-color: rgba(255, 82, 129, .24);
    background: rgba(255,255,255,.94);
    box-shadow: 0 0 0 4px rgba(255,82,129,.07), 0 10px 28px rgba(28,44,75,.06);
}

.tbf-scoped-work-search label {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
}

.tbf-scoped-work-search input[type="search"] {
    width: 100%;
    height: 36px;
    padding: 0;
    border: 0;
    outline: 0;
    color: var(--tbf-ink);
    background: transparent;
    font-size: 13px;
}

.tbf-scoped-work-search input[type="search"]::-webkit-search-cancel-button {
    display: none;
}

.tbf-scoped-work-search button {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--tbf-ink);
    cursor: pointer;
    font-size: 0;
    line-height: 1;
}

.tbf-scoped-work-search button svg {
    width: 17px;
    height: 17px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tbf-scoped-search-filter > strong {
    max-width: 180px;
}

.tbf-agency-current-filter {
    position: relative;
    min-height: 46px;
    margin: 0;
    padding: 6px 6px 6px 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(17, 31, 57, .08);
    border-radius: 999px;
    color: #7d8796;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 10px 26px rgba(26, 42, 72, .07), inset 0 1px 0 rgba(255, 255, 255, .90);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    isolation: isolate;
}

.tbf-agency-current-filter::before {
    content: "";
    position: absolute;
    inset: -5px;
    border: 2px solid rgba(255, 82, 129, .42);
    border-radius: 999px;
    box-shadow:
        0 0 0 2px rgba(255, 82, 129, .08),
        0 0 12px 3px rgba(255, 82, 129, .16);
    opacity: .72;
    pointer-events: none;
    transform-origin: center;
    will-change: transform, opacity, box-shadow;
    animation: tbf-agency-current-filter-glow 1.55s ease-in-out infinite;
}

@keyframes tbf-agency-current-filter-glow {
    0%, 100% {
        opacity: .42;
        transform: scale(.985);
        box-shadow:
            0 0 0 1px rgba(255, 82, 129, .06),
            0 0 6px 1px rgba(255, 82, 129, .10);
    }
    50% {
        opacity: .92;
        transform: scale(1.045);
        box-shadow:
            0 0 0 3px rgba(255, 82, 129, .10),
            0 0 18px 6px rgba(255, 82, 129, .20);
    }
}

.tbf-agency-current-filter > span {
    color: #9aa3af;
    font-weight: 620;
}

.tbf-agency-current-filter > strong {
    max-width: 150px;
    overflow: hidden;
    color: var(--tbf-ink);
    font-size: 12px;
    font-weight: 760;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tbf-agency-current-filter > a {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #7c8796;
    background: rgba(17, 31, 57, .055);
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.tbf-agency-current-filter > a:hover,
.tbf-agency-current-filter > a:focus-visible {
    color: #fff;
    background: var(--tbf-accent);
    transform: rotate(8deg);
}

@media (max-width: 760px) {
    .tbf-library-summary__meta .tbf-agency-current-filter {
        max-width: calc(100vw - 44px);
        min-height: 42px;
    }
}

@media (max-width: 620px) {
    body.tbf-ui .sign .sign-box,
    body.tbf-ui .sign .sign-box.has-left {
        top: 50% !important;
        right: auto !important;
        bottom: auto !important;
        left: 50% !important;
        width: min(420px, calc(100vw - 28px)) !important;
        max-height: calc(100vh - 28px);
        max-height: calc(100dvh - 28px);
        padding-left: 0;
        overflow-x: hidden;
        overflow-y: auto;
        border-radius: 26px !important;
        transform: translate(-50%, -50%) !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    body.tbf-ui.sign-show.tbf-has-mobile-footer-nav .footer-fixed-nav {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}


/* Wall-only metadata is hidden globally by default.
 * /journal picture-wall view explicitly reveals it in work-archive.css. */
.tbf-ui .tbf-journal-wall-meta {
    display: none !important;
}

