/* Homepage reward announcement. */
.welcome-reward-banner{display:flex;align-items:center;gap:20px;margin:0 0 28px;padding:22px 26px;border:1px solid var(--line);border-radius:16px;background:var(--card)}
.welcome-reward-icon{display:grid;place-items:center;flex:0 0 60px;width:60px;height:60px;border-radius:16px;background:var(--soft);color:var(--accent)}
.welcome-reward-icon svg{width:30px;height:30px}
.welcome-reward-banner .welcome-reward-kicker{font-size:var(--text-small-size,16px);text-transform:uppercase;letter-spacing:1.2px;line-height:1.4;color:var(--accent);margin:0 0 6px;font-weight:600}
.welcome-reward-banner h2{font:400 26px/1.2 Georgia,serif;letter-spacing:-.4px;margin:0 0 7px}
.welcome-reward-banner p{font-size:var(--text-small-size,16px);line-height:1.5;color:var(--muted);margin:0}
.welcome-reward-banner .welcome-reward-limit{font-size:var(--text-small-size,16px);margin-top:6px}
.welcome-reward-banner>a{display:inline-flex;align-items:center;justify-content:center;gap:12px;margin-left:auto;flex-shrink:0;min-height:42px;padding:10px 16px;border:1px solid var(--line);border-radius:8px;font-size:var(--text-small-size,16px);color:var(--accent);text-decoration:none;white-space:nowrap}
.welcome-reward-banner>a:hover{background:var(--soft);border-color:var(--accent)}
@media(max-width:760px){
 .welcome-reward-banner{flex-wrap:wrap;align-items:flex-start;padding:20px;gap:14px}
 .welcome-reward-icon{flex-basis:44px;width:44px;height:44px;border-radius:12px}
 .welcome-reward-icon svg{width:25px;height:25px}
 .welcome-reward-banner>div{flex:1 1 calc(100% - 58px);min-width:0}
 .welcome-reward-banner h2{font-size:23px}
 .welcome-reward-banner>a{margin-left:58px;font-size:var(--text-small-size,16px);min-height:38px;padding:8px 13px}
}

.recruitment-banner{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:28px 32px;margin:40px 0 0;border:1px solid var(--line);border-radius:18px;background:var(--card)}.recruitment-banner .eyebrow{margin:0 0 8px;font-size:var(--text-small-size,16px)}.recruitment-banner h2{font:400 32px/1.2 Georgia,serif;margin:0}.recruitment-roles{display:flex;gap:12px;flex-wrap:wrap}.recruitment-roles button{display:flex;align-items:center;gap:24px;padding:16px 20px;border:1px solid var(--line);border-radius:12px;color:var(--accent);background:var(--soft);font-size:16px;font-weight:600;text-align:left}.recruitment-roles button:hover{border-color:var(--accent);background:var(--card)}.recruitment-roles button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.recruitment-dialog{width:min(520px,calc(100% - 32px));max-height:calc(100dvh - 40px);overflow:auto;position:fixed;padding:32px;border:1px solid var(--line);background:var(--card);color:var(--ink);border-radius:18px}.recruitment-dialog::backdrop{background:#251e2466}.recruitment-dialog .eyebrow{margin:0 30px 14px 0;font-size:var(--text-small-size,16px)}.recruitment-dialog h2{font:400 30px/1.25 Georgia,serif;margin:0 0 20px}.recruitment-dialog p{font-size:var(--text-small-size,16px);line-height:1.7}.recruitment-dialog strong{color:var(--accent)}.recruitment-close{position:absolute;top:16px;right:16px;width:32px;height:32px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted)}.recruitment-close svg{display:block;pointer-events:none}.recruitment-close:hover{background:var(--soft)}.recruitment-dialog .recruitment-limited{font-size:var(--text-small-size,16px);color:var(--muted);padding-top:16px;border-top:1px solid var(--line)}.recruitment-dialog .detail-actions{margin-bottom:0}@media(max-width:700px){.recruitment-banner{align-items:stretch;flex-direction:column;padding:24px;gap:20px}.recruitment-roles{display:grid;grid-template-columns:1fr}.recruitment-roles button{justify-content:space-between}.recruitment-dialog{padding:26px 24px}.recruitment-dialog h2{font-size:27px}}

.recruitment-gift{margin:20px 0;padding:18px 20px;border-radius:12px;background:var(--soft);color:var(--accent)}

.recruitment-gift-link{display:flex;align-items:center;gap:20px;border:1px solid transparent;text-decoration:none;transition:border-color .15s,background .15s}.recruitment-gift-link:hover{border-color:var(--accent);background:var(--card)}.recruitment-gift-link:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.recruitment-gift-link>img{display:block;width:78px;height:auto;flex:0 0 78px;border-radius:3px 6px 6px 3px;box-shadow:0 4px 12px #49343f1c}.recruitment-gift-copy{display:grid;gap:5px;min-width:0}.recruitment-gift-label{font-size:var(--text-small-size,16px);font-weight:600;letter-spacing:.1em;text-transform:uppercase}.recruitment-gift-title{font:400 22px/1.25 Georgia,serif;color:var(--ink)}.recruitment-gift-subtitle{font-size:var(--text-small-size,16px);line-height:1.4;color:var(--muted)}.recruitment-gift-action{font-size:var(--text-small-size,16px);line-height:1.5;margin-top:6px;color:var(--accent)}@media(max-width:420px){.recruitment-gift-link{padding:16px;gap:14px}.recruitment-gift-link>img{width:64px;flex-basis:64px}.recruitment-gift-title{font-size:20px}}

.home-promotions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:0 0 28px}
.home-promotions>:is(.welcome-reward-banner,.recruitment-banner){display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;margin:0;padding:26px;border:1px solid var(--line);border-radius:16px;background:var(--card)}
.home-promotions :is(.welcome-reward-kicker,.eyebrow){margin:0 0 10px;font-size:var(--text-small-size,16px);font-weight:600;line-height:1.5;letter-spacing:1.2px;text-transform:uppercase;color:var(--accent)}
.home-promotions :is(.welcome-reward-banner,.recruitment-banner) h2{font:400 26px/1.25 Georgia,serif;letter-spacing:-.3px;margin:0 0 12px;color:var(--ink)}
.home-promotions :is(.welcome-reward-banner,.recruitment-banner) p:not(.eyebrow):not(.welcome-reward-kicker){font-size:var(--text-small-size,16px);line-height:1.6;color:var(--muted);margin:0}
.home-promotions .welcome-reward-limit{padding-top:6px}
.home-promotions .promotion-actions{display:flex;align-items:stretch;flex-wrap:wrap;gap:10px;margin-top:auto;padding-top:22px}
.home-promotions .promotion-actions>:is(a,button){display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;min-height:44px;margin:0;padding:10px 14px;border:1px solid var(--line);border-radius:9px;background:transparent;color:var(--accent);font:500 var(--text-small-size,16px)/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-decoration:none;text-align:left}
.home-promotions .promotion-actions>:is(a,button):hover{background:var(--soft);border-color:var(--accent)}
.home-promotions .promotion-actions>:is(a,button):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.recruitment-role-icon{width:20px;height:20px;flex-shrink:0}.recruitment-role-arrow{font-size:var(--text-small-size,16px);color:var(--muted)}
.home-promotions>.welcome-reward-banner[hidden]{display:none}.home-promotions:has(>.welcome-reward-banner[hidden]){grid-template-columns:minmax(0,1fr)}
@media(max-width:850px){.home-promotions{grid-template-columns:minmax(0,1fr);width:fit-content;max-width:100%}}
@media(max-width:420px){.home-promotions>:is(.welcome-reward-banner,.recruitment-banner){padding:22px}.home-promotions .recruitment-roles{display:grid;grid-template-columns:1fr}.home-promotions .recruitment-roles button{justify-content:flex-start}.recruitment-role-arrow{margin-left:auto}}

.home-promotions{grid-template-columns:minmax(0,1fr);width:fit-content;max-width:100%}
.recruitment-strip{display:flex;align-items:center;align-self:start;justify-content:flex-start;flex-wrap:wrap;gap:12px 20px;box-sizing:border-box;width:100%;min-width:0;margin:0;padding:16px 20px;border:1px solid var(--line);border-radius:12px;background:var(--card)}
.recruitment-strip h2{margin:0;font:500 var(--text-small-size,16px)/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--muted);white-space:nowrap}
.recruitment-strip-roles{display:flex;flex-wrap:wrap;gap:6px 16px}
.recruitment-strip-roles button{display:inline-flex;align-items:center;gap:9px;min-height:36px;margin:0;padding:4px 0;border:0;border-radius:4px;background:transparent;color:var(--accent);font:500 var(--text-small-size,16px)/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-align:left}
.recruitment-strip-roles button:hover{text-decoration:underline;text-underline-offset:4px}.recruitment-strip-roles button:focus-visible{outline:2px solid var(--accent);outline-offset:4px}.recruitment-strip .recruitment-role-icon{width:19px;height:19px}.recruitment-strip .recruitment-role-arrow{margin-left:0;font-size:var(--text-small-size,16px)}
@media(max-width:600px){.recruitment-strip h2{padding-top:7px}}
.home-promotions>.welcome-reward-banner{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:20px;max-width:620px;padding:20px 22px}.home-promotions .welcome-reward-banner>.promotion-actions{margin:0;padding:0}@media(max-width:600px){.home-promotions>.welcome-reward-banner{grid-template-columns:minmax(0,1fr);gap:16px}}

.hero-side-panel{display:grid;gap:18px;align-self:center}.hero-promotions{min-width:0}.hero-promotions .home-promotions{width:100%;margin:0 0 12px}.hero-promotions .home-promotions>.welcome-reward-banner{width:100%;padding:20px;grid-template-columns:minmax(0,1fr);gap:14px}.hero-promotions .welcome-reward-banner h2{font-size:24px}.hero:has(.hero-promotions){align-items:end}.hero:has(.hero-promotions) .hero-side-panel{align-self:start}.hero:has(.hero-promotions) .hero-copy{align-self:stretch;display:flex;flex-direction:column}.hero:has(.hero-promotions) .hero-copy .hero-stats{margin-top:auto}.hero:has(.hero-promotions) .hero-copy h1{margin-bottom:24px}.hero-promotions .home-promotions:has(>.welcome-reward-banner[hidden]){display:none}@media(max-width:760px){.hero-side-panel{gap:16px}}

.finder-entry{gap:9px}.finder-entry-lock{display:none;flex-shrink:0}.finder-entry.is-locked .finder-entry-lock{display:block}

.hero-promotions .home-promotions{margin-bottom:0}

/* Align the panel with the lowercase letter height of the hero heading. */
@media(min-width:761px){.hero:has(.hero-promotions) .hero-side-panel{margin-top:0}}

/* Catalogue totals: a quiet row of three distinct counters. */
.hero-copy .hero-stats{display:flex;align-items:stretch;flex-wrap:nowrap;gap:0;margin-bottom:26px;color:var(--muted)}
.hero-copy .hero-stats>span{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:6px;padding:0 24px;min-width:0}
.hero-copy .hero-stats>span:first-child{padding-left:0}
.hero-copy .hero-stats>span:last-child{padding-right:0}
.hero-copy .hero-stats>span+span{border-left:1px solid var(--line)}
.hero-copy .hero-stats strong{display:block;min-width:0;padding:0;font-size:32px;line-height:1.1;font-weight:500;letter-spacing:-1px;color:var(--accent);font-variant-numeric:tabular-nums}
.hero-copy .hero-stats>span>span{font-size:var(--text-small-size,16px);line-height:1.4;max-width:140px}
@media(max-width:540px){.hero-copy .hero-stats{margin-bottom:22px}.hero-copy .hero-stats>span{padding:0 16px;gap:5px}.hero-copy .hero-stats strong{font-size:27px}.hero-copy .hero-stats>span>span{font-size:var(--text-small-size,16px);max-width:115px}}
@media(max-width:360px){.hero-copy .hero-stats>span{padding:0 12px}.hero-copy .hero-stats strong{font-size:24px}}

@media(min-width:761px){
 .hero:has(.hero-promotions) .hero-side-panel{align-self:start}
 .hero:has(.hero-promotions) .home-main-actions{margin-bottom:0}
}

.hero-authors-link{display:flex;flex-direction:column;gap:6px;color:inherit;text-decoration:none}.hero-authors-link>span{font-size:var(--text-small-size,16px);line-height:1.4}.hero-authors-link:hover>span{text-decoration:underline;text-underline-offset:4px}@media(max-width:540px){.hero-authors-link{gap:5px}.hero-authors-link>span{font-size:var(--text-small-size,16px)}}

.hero-models-link{display:flex;flex-direction:column;gap:6px;color:inherit;text-decoration:none}.hero-models-link>span{font-size:var(--text-small-size,16px);line-height:1.4;max-width:140px}.hero-models-link:hover>span{text-decoration:underline;text-underline-offset:4px}@media(prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}@media(max-width:540px){.hero-models-link{gap:5px}.hero-models-link>span{font-size:var(--text-small-size,16px);max-width:115px}}

.hero-magazines-link{display:flex;flex-direction:column;gap:6px;color:inherit;text-decoration:none}.hero-magazines-link>span{font-size:var(--text-small-size,16px);line-height:1.4}.hero-magazines-link:hover>span{text-decoration:underline;text-underline-offset:4px}@media(max-width:540px){.hero-magazines-link{gap:5px}.hero-magazines-link>span{font-size:var(--text-small-size,16px)}}

.hero-copy .hero-stats strong{font-size:28px}
.hero-copy .hero-stats :is(.hero-models-link,.hero-authors-link,.hero-magazines-link)>span,.hero-copy .hero-stats>span>span{font-size:16px}
@media(max-width:540px){.hero-copy .hero-stats strong{font-size:24px}.hero-copy .hero-stats :is(.hero-models-link,.hero-authors-link,.hero-magazines-link)>span,.hero-copy .hero-stats>span>span{font-size:16px}}

/* Compact square model cards on the home catalogue. */
:is(#model-grid,.profile-favorite-grid){gap:18px}
:is(#model-grid,.profile-favorite-grid) .model-card{aspect-ratio:1;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--card);box-shadow:0 2px 10px #39263308;transition:border-color .16s,box-shadow .16s}
:is(#model-grid,.profile-favorite-grid) .model-card>a{height:100%;position:relative;overflow:hidden}
:is(#model-grid,.profile-favorite-grid) .card-photo{width:100%;height:100%;aspect-ratio:1;object-fit:cover;object-position:center 20%;border-radius:0}
:is(#model-grid,.profile-favorite-grid) .card-info{position:absolute;inset:auto 0 0;padding:10px 12px 11px;background:#fffdfbf5;border-top:1px solid #ffffffb3;backdrop-filter:blur(8px)}
:is(#model-grid,.profile-favorite-grid) .card-info .tag{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:var(--text-small-size,16px);line-height:1.3;letter-spacing:.6px;margin-bottom:4px}
:is(#model-grid,.profile-favorite-grid) .card-info h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;margin:0 0 4px;font-size:16px;font-weight:600;line-height:1.3}
:is(#model-grid,.profile-favorite-grid) .card-source{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;margin:0;font-size:var(--text-small-size,16px);line-height:1.4}
:is(#model-grid,.profile-favorite-grid) .card-meta{position:absolute;right:10px;bottom:100%;margin:0 0 8px;gap:4px}
:is(#model-grid,.profile-favorite-grid) .card-meta .mini-tag{padding:3px 7px;border-radius:5px;background:#fffdfbf0;font-size:var(--text-small-size,16px);color:var(--accent)}
:is(#model-grid,.profile-favorite-grid,.author-description-card .project-card-photo) .save-card,:is(#model-grid,.profile-favorite-grid,.author-description-card .project-card-photo) .collect-card{top:8px;width:34px;height:34px;min-height:34px;background:#fffdfbf0;border:1px solid #ffffffb0;box-shadow:0 1px 5px #39263315}
:is(#model-grid,.profile-favorite-grid,.author-description-card .project-card-photo) .save-card{right:8px}
:is(#model-grid,.profile-favorite-grid,.author-description-card .project-card-photo) .collect-card{right:48px}
:is(#model-grid,.profile-favorite-grid,.author-description-card .project-card-photo) .save-card.saved{background:var(--accent);color:#fff}
:is(#model-grid,.profile-favorite-grid) .model-card:hover{border-color:#bda6b3;box-shadow:0 5px 16px #39263315}
@media(max-width:540px){#model-grid{gap:12px}#model-grid .card-info{padding:8px 9px}#model-grid .card-info h3{font-size:var(--text-small-size,16px)}#model-grid .card-source{font-size:var(--text-small-size,16px)}#model-grid .card-info .tag{font-size:var(--text-small-size,16px)}:is(#model-grid,.author-description-card .project-card-photo) :is(.save-card,.collect-card){width:32px;height:32px;min-height:32px}:is(#model-grid,.author-description-card .project-card-photo) .collect-card{right:44px}}
@media(prefers-reduced-motion:reduce){#model-grid .model-card{transition:none}}

/* Give the model photograph its full area, with details below it. */
:is(#model-grid,.profile-favorite-grid) .model-card{aspect-ratio:auto}
:is(#model-grid,.profile-favorite-grid) .model-card>a{height:auto}
:is(#model-grid,.profile-favorite-grid) .card-photo{height:auto;aspect-ratio:var(--catalog-photo-ratio);object-fit:cover;object-position:center top}
:is(#model-grid,.profile-favorite-grid) .card-info{position:static;padding:10px 12px 11px;background:var(--card);border-top:0;backdrop-filter:none}

:is(#model-grid,.profile-favorite-grid){grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:540px){#model-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

:is(#model-grid,.profile-favorite-grid) .card-info h3{display:block;-webkit-line-clamp:unset;overflow:visible;white-space:normal;overflow-wrap:anywhere;font-size:20px;line-height:1.35;margin-bottom:6px}
@media(max-width:540px){#model-grid .card-info h3{font-size:17px}}

:is(#model-grid,.profile-favorite-grid) .card-source{font-size:var(--text-small-size,16px);line-height:1.5}
@media(max-width:540px){#model-grid .card-source{font-size:var(--text-small-size,16px)}}

:is(#model-grid,.profile-favorite-grid) .card-info .tag{font-size:var(--text-small-size,16px);line-height:1.5;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;margin-bottom:6px}
@media(max-width:540px){#model-grid .card-info .tag{font-size:var(--text-small-size,16px)}}

@media(max-width:540px){#model-grid .card-info h3{font-size:var(--text-small-size,16px);line-height:1.35;overflow-wrap:normal}}

@media(max-width:540px){#model-grid .card-source{font-size:var(--text-small-size,16px);line-height:1.4}}

/* Profile previews use the catalogue's available width and photo proportions. */
.projects-page:has(#projects-content > :is(.projects-grid,.author-description-list,.profile-favorite-grid)){
 max-width:var(--catalog-width);
 padding-inline:var(--catalog-gutter);
}
#projects-content > :is(.projects-grid,.author-description-list) .project-card-photo > img{
 height:auto;
 aspect-ratio:var(--catalog-photo-ratio);
 object-position:center top;
}
#projects-content .project-card-copy{padding:10px 12px 11px}
#projects-content .project-card h2{font-size:18px;line-height:1.4;margin:6px 0}
#projects-content .project-creator{padding:0 12px 11px}
@media(max-width:760px){
 #projects-content .project-card-copy{padding:10px}
 #projects-content .project-card h2{font-size:16px}
 #projects-content .project-creator{padding-inline:10px}
}

/* Illustrated catalogue heading; keep the complete artwork visible. */
.hero-copy{min-width:0}
.hero-copy h1.hero-title-art{width:100%;max-width:600px;margin:0 0 24px;padding:0;line-height:1}
.hero-title-art img{display:block;width:100%;height:auto;object-fit:contain;transform:translateY(-10px)}

.home-promotions .promotion-actions>a.welcome-reward-link{justify-content:flex-start;min-height:0;padding:3px 0;border:0;border-radius:0;background:none;font-weight:500;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;text-decoration-color:color-mix(in srgb,var(--accent) 35%,transparent)}
.home-promotions .promotion-actions>a.welcome-reward-link:hover{background:none;text-decoration-color:var(--accent)}

.hero-side-panel>.home-main-actions{margin:0;display:flex;flex-wrap:wrap;gap:12px}

@media(min-width:761px){
 .hero:has(.hero-promotions) .hero-side-panel{align-self:stretch;display:flex;flex-direction:column}
 .hero-side-panel>.home-main-actions{margin-top:auto}
 .hero:has(.hero-promotions) .hero-copy .hero-stats{margin-bottom:0}
}

/* The two home-page promotion panels share the same outer edges. */
.hero-promotions .home-promotions,.hero-promotions .home-promotions>.welcome-reward-banner{width:100%;max-width:none;min-width:0;box-sizing:border-box}

:root body .home-promotions>.welcome-reward-banner[hidden],:root body .hero-promotions .home-promotions:has(>.welcome-reward-banner[hidden]){display:none!important}

/* After the certificate is sent, keep recruitment directly above the actions. */
@media(min-width:761px){
 .hero-side-panel:not(:has(.welcome-reward-banner:not([hidden])))>.hero-promotions{margin-top:auto}
 .hero-side-panel:not(:has(.welcome-reward-banner:not([hidden])))>.home-main-actions{margin-top:0}
}

/* Catalogue first: keep browsing controls ahead of announcements. */
.catalog-first-home::before{display:none}
.catalog-first-home #catalog-view{padding-top:28px}
.catalog-first-home .home-catalog-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 22px}
.catalog-first-home .home-catalog-heading h1{font:400 var(--page-title-size)/1.15 var(--page-title-font);letter-spacing:-1px;margin:0}
.catalog-first-home .home-finder-action>.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:12px 20px;font-size:16px;margin:0}
.catalog-first-home .catalog-toolbar{border:0;margin:0 0 14px;padding:0;display:flex;align-items:center;gap:20px;flex-wrap:nowrap}
.catalog-first-home .catalog-toolbar>.catalog-search-slot{order:0;flex:1;max-width:680px;margin:0;padding:0}
.catalog-first-home .catalog-toolbar .catalog-search,.catalog-first-home .catalog-toolbar .catalog-search:focus-within,.catalog-first-home .catalog-toolbar .catalog-search:has(input:not(:placeholder-shown)){width:100%;min-height:48px;transition:none;border-radius:12px}
.catalog-first-home .catalog-toolbar>.tabs{order:1;margin:0 0 0 auto;width:auto;flex-shrink:0;align-self:center;gap:12px}
.catalog-first-home .catalog-toolbar .tab{min-height:40px;padding:6px 0;border:0;font-size:16px;white-space:nowrap}
.catalog-first-home #filter-controls{margin:0;padding:0;border:0;min-width:0}
.catalog-first-home .filter-summary-heading{display:none}
.catalog-first-home #filter-panel-general{padding:0;margin:0 0 14px}
.catalog-first-home #filter-summary-general{gap:var(--filter-row-gap) var(--filter-column-gap)}
.catalog-first-home #catalog>.sort-row{display:flex;justify-content:flex-end;align-items:center;min-height:44px;margin:0 0 16px;padding:0}
.catalog-first-home #catalog .page-size-control{display:none}
:is(.catalog-first-home #model-grid,.favorites-page #model-grid,#projects-content > :is(.projects-grid,.author-description-list,.profile-favorite-grid)){grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
:is(.catalog-first-home #model-grid,.favorites-page #model-grid,.profile-favorite-grid) .card-info h3{font-size:18px;line-height:1.4}
.catalog-first-home .home-community{border-top:1px solid var(--line);padding:30px 0 0;margin:36px 0 24px}
.catalog-first-home .home-community>.hero-promotions{display:grid;grid-template-columns:1fr 1fr;align-items:stretch;gap:20px;width:100%;max-width:none}

.catalog-first-home .home-community .home-promotions{margin:0;min-width:0}
.catalog-first-home .home-community .welcome-reward-banner{height:100%;margin:0;padding:22px;min-width:0}
.catalog-first-home .home-community>.hero-copy{margin-top:24px}
.catalog-first-home .home-community .hero-stats{margin:0}
.catalog-first-home .home-community .hero-stats strong{font-size:24px}
.home-mobile-filter-bar,#home-selected-filters{display:none}
.home-filter-dialog{box-sizing:border-box;position:fixed;inset:auto 0 0;width:100%;max-width:none;max-height:90dvh;margin:0;padding:0;border:1px solid var(--line);border-radius:22px 22px 0 0;background:var(--card);color:var(--ink);overflow:hidden}
.home-filter-dialog[open]{display:flex;flex-direction:column}
.home-filter-dialog::backdrop{background:#30272d66}
.home-filter-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid var(--line)}
.home-filter-dialog>header h2{font:600 22px/1.3 system-ui,sans-serif;margin:0}
.home-filter-dialog>header>.icon-button{width:40px;height:40px;min-width:40px;min-height:40px;flex:none}
.home-filter-body{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:20px}
.home-filter-dialog>footer{padding:14px 20px calc(14px + env(safe-area-inset-bottom));border-top:1px solid var(--line);margin:0;background:var(--card)}
.home-filter-dialog>footer>.button{width:100%;display:flex;justify-content:center;align-items:center;font-size:16px;min-height:46px}
html.home-filters-open{overflow:hidden}
html.home-filters-open body{position:fixed;top:var(--home-filter-scroll);width:100%}
@media(min-width:761px) and (max-width:1050px){:is(.catalog-first-home #model-grid,.favorites-page #model-grid,#projects-content > :is(.projects-grid,.author-description-list,.profile-favorite-grid)){grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){
 .catalog-first-home #catalog-view{padding-top:20px}
 .catalog-first-home .home-catalog-heading{display:contents}
 .catalog-first-home .home-catalog-heading h1{font-size:var(--page-title-size);margin:0 0 18px}
 .catalog-first-home #catalog-view{display:flex;flex-direction:column}
 .catalog-first-home .home-catalog-heading h1{order:0}
 .catalog-first-home #catalog{display:contents}
 .catalog-first-home .catalog-toolbar{order:1;margin:0 0 12px;display:block}
 .catalog-first-home .catalog-toolbar>.tabs{display:none}
 .catalog-first-home .catalog-toolbar>.catalog-search-slot{max-width:none}
 .catalog-first-home .catalog-toolbar .catalog-search{min-height:48px}
 .catalog-first-home .home-finder-action{order:2;margin:0 0 12px}
 .catalog-first-home .home-finder-action>.button{width:100%;box-sizing:border-box}
 .home-mobile-filter-bar{order:3;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
 .home-mobile-filter-bar>.button{display:inline-flex;align-items:center;gap:8px;font-size:16px;min-height:44px;padding:10px 16px}
 #home-filter-count{border-radius:50%;background:var(--accent);color:white;min-width:24px;height:24px;display:inline-grid;place-items:center}
 #home-filter-count[hidden]{display:none}
 #home-mobile-result-count{font-size:16px;color:var(--muted)}
 #home-selected-filters:not([hidden]){order:4;display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
 #home-selected-filters .filter-summary-chosen{display:inline-flex;align-items:center;gap:6px;max-width:100%;border:1px solid var(--line);border-radius:10px;padding:6px 8px 6px 12px;background:var(--card);font-size:16px}
 #home-selected-filters .filter-chip-text{overflow-wrap:anywhere}
 #home-selected-filters .filter-chip-delete{width:28px;height:28px;flex:none}
 .catalog-first-home #filter-controls{order:5}
 .catalog-first-home #catalog>.sort-row{order:6;justify-content:flex-start;margin:0 0 14px}
 .catalog-first-home #catalog-results-area{order:7}
 .catalog-first-home .home-community{order:8;padding-top:24px;margin-top:28px}
 .catalog-first-home #catalog-view>footer{order:9}
 .catalog-first-home #catalog-error,.catalog-first-home #retry-catalog,.catalog-first-home #saved-note{order:6}
 :is(.catalog-first-home #model-grid,.favorites-page #model-grid,#projects-content > :is(.projects-grid,.author-description-list,.profile-favorite-grid)){grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}
 :is(.catalog-first-home #model-grid,.favorites-page #model-grid,.profile-favorite-grid) .card-info{padding:10px}
 :is(.catalog-first-home #model-grid,.favorites-page #model-grid,.profile-favorite-grid) .card-info h3{font-size:16px}
 .catalog-first-home .home-community>.hero-promotions{grid-template-columns:1fr;gap:16px}
 .home-filter-dialog #filter-panel-general{padding:0;margin:0}
 .home-filter-dialog #filter-summary-general{display:flex;flex-direction:column;align-items:stretch;gap:18px}
 .home-filter-dialog #filter-summary-general>.filter-summary-entry{display:flex;align-items:center;gap:8px;max-width:100%}
 .home-filter-dialog .catalog-filter-picker{max-width:100%}
 .home-filter-dialog .catalog-filter-menu{position:static;width:100%;max-width:100%;box-sizing:border-box;box-shadow:none;margin-top:8px;max-height:220px;overflow-y:auto}
 .home-filter-dialog .filter-summary-entry:has(.catalog-filter-picker[open]){display:block}
 .home-filter-dialog .filter-summary-entry:has(.catalog-filter-picker[open])>.filter-summary-values{margin-top:8px}
 .home-filter-dialog .catalog-filter-menu [role=option]{white-space:normal;overflow-wrap:anywhere}
 .home-filter-dialog .filter-summary-heading{display:none}
 .home-filter-dialog #reset-filters{align-self:flex-start}
}
@media(min-width:761px){
 .catalog-first-home #catalog{display:grid;grid-template-columns:minmax(0,1fr) 220px;column-gap:24px;align-items:start}
 .catalog-first-home #catalog>*{grid-column:1/-1}
 .catalog-first-home #catalog>#filter-controls{grid-column:1}
 .catalog-first-home #catalog>.sort-row{grid-column:2;margin:0 0 16px;min-height:40px}
 .catalog-first-home #catalog>.sort-row>.sort-choice{display:flex;align-items:center;width:100%;margin:0}
 .catalog-first-home #catalog>.sort-row>.sort-choice>span:not(.site-select){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .catalog-first-home #catalog>.sort-row .site-select{width:100%;min-width:0}
}
@media(max-width:760px){
 :root body .home-filter-dialog #filter-summary-general{width:100%;align-items:stretch;text-align:left}
 :root body .home-filter-dialog #filter-summary-general>.filter-summary-entry{width:100%;justify-content:flex-start;align-items:flex-start}
 :root body .home-filter-dialog .catalog-filter-picker{width:100%}
 :root body .home-filter-dialog .catalog-filter-picker>summary,:root body .home-filter-dialog .catalog-size-trigger{width:100%;box-sizing:border-box;justify-content:space-between;min-height:44px}
 :root body .home-filter-dialog .catalog-filter-menu{width:100%;max-width:100%;left:auto;right:auto;box-shadow:none}
 .catalog-first-home #catalog>.sort-row>.sort-choice{display:flex;align-items:center;gap:12px;width:100%;margin:0}
 .catalog-first-home #catalog>.sort-row>.sort-choice>span{white-space:nowrap}
 .catalog-first-home #catalog>.sort-row .site-select{min-width:0;flex:1}
}
/* Recruitment remains a compact strip beside the independent gift card. */
.catalog-first-home .home-community>.hero-promotions{align-items:start}

.catalog-first-home .home-community .welcome-reward-banner{height:auto}

@media(max-width:760px){
 .catalog-first-home .home-catalog-heading h1{display:none}
 .catalog-first-home #catalog>.sort-row>.sort-choice>span:not(.site-select){display:none}
}

@media(max-width:760px){.catalog-first-home .home-finder-action{display:none}}

 .model-sort-icon{display:none}
@media(max-width:760px){
 .catalog-first-home .home-mobile-search-tools>.sort-row{grid-column:2;grid-row:2;justify-self:end;display:flex;align-items:center;min-height:44px;margin:0;padding:0}
 :root body .home-mobile-search-tools>#home-mobile-result-count{align-self:start;min-height:24px;margin:0;padding:0 54px 0 0;line-height:1.5}
 .catalog-first-home .home-mobile-search-tools .sort-choice{display:flex;width:44px;margin:0}
 .catalog-first-home .home-mobile-search-tools .sort-choice>span:not(.site-select),.catalog-first-home .home-mobile-search-tools .page-size-control{display:none}
 .catalog-first-home .home-mobile-search-tools .site-select{flex:none;width:44px;min-width:0}
 .catalog-first-home .home-mobile-search-tools .model-sort-trigger{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:12px;background:var(--soft);color:var(--accent)}
 .catalog-first-home .home-mobile-search-tools .model-sort-trigger>span:not(.model-sort-icon){display:none}
 .catalog-first-home .home-mobile-search-tools .model-sort-icon{display:flex;align-items:center;justify-content:center}
}

@media(min-width:761px){
 :root body #finder-entry{background:var(--collection-selection-gradient);border:1px solid #c4a9ba;color:var(--accent)}
 :root body #finder-entry:hover{border-color:var(--accent);filter:brightness(.98)}
}
@media(min-width:761px){
 :root body.catalog-first-home #catalog>.sort-row{justify-content:flex-end}
 :root body.catalog-first-home #catalog>.sort-row>.sort-choice{margin-left:auto;width:44px;flex:0 0 44px}
}

@media(max-width:760px){
 :root body.catalog-first-home .home-mobile-search-tools>.sort-row{transform:translateY(6px)}
}

@media(min-width:761px){
 :root body.catalog-first-home #catalog>.sort-row{align-self:end;margin-bottom:14px;min-height:var(--filter-height,40px)}
}

@media(min-width:761px){
 :root body.catalog-first-home #catalog>#filter-controls{grid-column:1/-1}
 :root body.catalog-first-home #filter-summary-general>.sort-row{display:flex;align-items:flex-end;align-self:flex-end;justify-content:flex-end;flex:1 0 44px;min-height:var(--filter-height);margin:0;padding:0}
 :root body.catalog-first-home #filter-summary-general>.sort-row>.page-size-control{display:none}
 :root body.catalog-first-home #filter-summary-general>.sort-row>.sort-choice{margin:0;flex:0 0 44px}
 :root body.catalog-first-home #filter-summary-general .site-sort-select>.model-sort-trigger{height:var(--filter-height)!important;min-height:var(--filter-height)!important;max-height:var(--filter-height)}
}

@media(max-width:760px){
 :root body.catalog-first-home .home-mobile-search-tools{grid-template-columns:44px minmax(0,1fr) 44px;align-items:end}
 :root body.catalog-first-home .home-mobile-search-tools>.sort-row{grid-column:3;grid-row:1;align-self:end;min-height:48px;height:48px;margin:0;padding:0;transform:none}
 :root body.catalog-first-home .home-mobile-search-tools .site-sort-select>.model-sort-trigger{height:48px!important;min-height:48px!important;max-height:48px}
 :root body.catalog-first-home .home-mobile-search-tools>#home-mobile-result-count{grid-column:1/-1;grid-row:2;padding:0}
}

@media(min-width:761px){
 :root body.catalog-first-home #catalog>.sort-row>.sort-choice,
 :root body.catalog-first-home #catalog>.sort-row .site-sort-select{
  width:fit-content;min-width:0;max-width:100%;flex:0 1 auto;
 }
 :root body.catalog-first-home #catalog>.sort-row .site-sort-select>.model-sort-trigger{
  display:flex;justify-content:space-between;gap:8px;
  width:fit-content!important;min-width:0;max-width:100%;
  height:40px!important;min-height:40px!important;max-height:40px;
  padding:6px 10px!important;aspect-ratio:auto;
  border:1px solid var(--line);border-radius:var(--select-radius,8px);
  background:var(--card);color:var(--ink);white-space:nowrap;
 }
 :root body.catalog-first-home #catalog>.sort-row .model-sort-trigger>span:not(.model-sort-icon){display:inline-flex}
 :root body.catalog-first-home #catalog>.sort-row .model-sort-trigger>.model-sort-icon{display:none}
}

.author-directory-invitation{
 display:flex;
 flex-direction:column;
 justify-content:center;
 gap:10px;
 padding:28px;
 border:1px solid #c4a9ba;
 border-radius:14px;
 background:var(--collection-selection-gradient);
 color:var(--ink);
 font-size:var(--text-small-size,16px);
 line-height:1.55;
}
.author-directory-invitation h2{margin:0;font:400 26px/1.2 Georgia,serif}
.author-directory-invitation p{margin:0}
.author-directory-invitation a{color:var(--accent);text-underline-offset:3px}
@media(max-width:760px){
 .author-directory-invitation{grid-column:1/-1;padding:22px}
}

.author-description-card .project-card-photo :is(.save-card,.collect-card) svg{width:21px;height:21px}


.preview-actions{
 position:absolute;
 inset:8px 8px auto auto;
 display:flex;
 flex-direction:row-reverse;
 align-items:center;
 gap:6px;
}
:is(#model-grid,.profile-favorite-grid,.author-description-card) .preview-actions :is(.save-card,.collect-card){
 position:static;
 margin:0;
}
.preview-actions .preview-heart,
:is(#model-grid,.profile-favorite-grid,.author-description-card) .preview-actions .save-card{
 box-sizing:border-box;
 display:inline-flex;
 align-items:center;
 justify-content:center;
 height:34px;
 border:1px solid #ffffffb0;
 background:#fffdfbf0;
 color:var(--accent);
 box-shadow:0 1px 5px #39263315;
 width:auto;
 min-width:34px;
 padding:0 8px;
 gap:5px;
 border-radius:8px;
 font-size:var(--text-small-size,16px);
 font-variant-numeric:tabular-nums;
}
.preview-actions .favorite-count{margin:0;color:inherit;font-weight:600;line-height:1;white-space:nowrap}
.preview-actions :is(.preview-heart,.save-card) svg{width:21px;height:21px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7}
.preview-actions :is(.preview-heart,.save-card)[aria-pressed="true"] svg{fill:currentColor}

.preview-actions .preview-heart{cursor:pointer}
.preview-actions .preview-heart[aria-pressed="true"],
:is(#model-grid,.profile-favorite-grid,.author-description-card) .preview-actions .save-card[aria-pressed="true"]{
 background:var(--accent);
 color:#fff;
}
@media(max-width:540px){
 .preview-actions .preview-heart,
 :is(#model-grid,.profile-favorite-grid,.author-description-card) .preview-actions .save-card{height:32px;min-height:32px}
}

.favorite-preview-menu{
 top:calc(100cqi * 4 / 3 - 8px);
 transform:translateY(-100%);
 right:8px;
}
.model-card:has(>.favorite-preview-menu){container-type:inline-size}
.favorite-preview-menu>.project-card-menu-panel{top:auto;bottom:calc(100% + 6px)}

@media(min-width:761px){
 .catalog-first-home .home-catalog-heading{align-items:center}
 .catalog-first-home .home-catalog-heading>.home-finder-action{display:flex;align-items:center}
}
