.creator-storefront,.creator-storefront.site-body { margin:0; min-height:100vh; font:15px/1.5 var(--font-ui); background:radial-gradient(ellipse at 15% 0%,var(--accent-soft) 0,transparent 50%),var(--background); }
.creator-storefront * { box-sizing:border-box; }
.creator-header,.creator-main,.creator-footer { width:min(1240px,calc(100% - 64px)); margin:auto; }
.creator-header { display:flex; align-items:center; justify-content:space-between; min-height:104px; border-bottom:1px solid var(--line); gap:16px; }
.creator-header a { text-decoration:none; }
.creator-header .theme-switch [data-theme-label] { display:none; }
.creator-main { padding:32px 0 36px; }
.creator-intro h1 { font-size:clamp(32px,4vw,48px); line-height:1.08; letter-spacing:-.045em; margin:0 0 16px; font-weight:800; }
.creator-intro p { margin:0; color:var(--muted); font-size:clamp(17px,2vw,23px); line-height:1.5; }
.creator-tools { display:flex; align-items:center; gap:4px; margin-top:16px; }
.creator-search { display:flex; align-items:center; gap:12px; flex:1; background:var(--surface); border:0; border-radius:16px; padding:14px 16px 14px 20px; background:var(--accent-soft); min-width:0; }
.creator-search:focus-within { outline:3px solid var(--accent-border); }
.creator-search svg { width:22px; height:22px; flex-shrink:0; stroke:var(--muted); fill:none; stroke-width:1.7; }
.creator-search input { border:0; outline:none; font-size:15px; min-width:0; width:100%; background:var(--surface); color:var(--ink); padding:12px 0; }
.creator-search input::placeholder { color:var(--muted); }
.creator-primary,.creator-link { border:0; border-radius:10px; background:var(--accent); color:white; font-size:15px; font-weight:600; padding:13px 18px; cursor:pointer; }
.creator-primary:hover,.creator-link:hover { background:var(--accent-dark); }
.creator-segment { display:flex; gap:8px; flex-shrink:0; }
.creator-segment button { border:0; border-radius:99px; padding:14px 24px; background:var(--accent-soft); color:var(--ink); font-size:14px; cursor:pointer; min-height:44px; }
.creator-segment button[aria-pressed=true] { background:var(--accent); color:white; }
.creator-result-tools { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:24px; }
.creator-publication-details { display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px; margin:18px 0; font-size:13px; color:var(--muted); }
.creator-image-retry { position:absolute; z-index:2; border:0; border-radius:12px; padding:12px 16px; background:var(--surface); color:var(--accent-text); cursor:pointer; }
.creator-text-button { border:0; background:none; padding:10px 0; color:var(--accent-text); font-size:14px; cursor:pointer; margin-left:auto; }
.creator-status { font-size:14px; color:var(--muted); margin:14px 0 20px; min-height:18px; }
.creator-status[data-error=true] { color:var(--danger); }
.creator-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; align-items:start; }
.creator-card { background:var(--surface); border:1px solid var(--line); border-radius:10px; overflow:hidden; min-width:0; }
.creator-portrait { position:relative; aspect-ratio:1; overflow:hidden; background:linear-gradient(135deg,var(--accent-soft),#7c78dd); display:flex; align-items:center; justify-content:center; }
.creator-card-publication .creator-portrait { aspect-ratio:3 / 4; }
.creator-portrait img { width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }
.creator-portrait.creator-image-loading { background:var(--surface-raised); }
.creator-image-loading .creator-placeholder { visibility:hidden; }
.creator-image-loading .creator-photo { opacity:0; transition:opacity .25s ease; }
.creator-portrait .creator-thumbnail { opacity:0; filter:blur(18px); transform:scale(1.2); transition:opacity .25s ease; pointer-events:none; }
.creator-thumbnail-ready .creator-thumbnail,.creator-image-loaded .creator-photo { opacity:1; }
.creator-image-loaded .creator-thumbnail { opacity:0; }
.creator-image-loading:not(.creator-thumbnail-ready):not(.creator-image-loaded)::after { content:''; position:absolute; inset:0; pointer-events:none; background:linear-gradient(100deg,transparent 25%,var(--surface) 50%,transparent 75%); background-size:200% 100%; animation:creator-image-shimmer 1.5s linear infinite; }
@keyframes creator-image-shimmer { to { background-position:-200% 0; } }
@media(prefers-reduced-motion:reduce) { .creator-image-loading .creator-photo,.creator-portrait .creator-thumbnail { transition:none; } .creator-image-loading::after { animation:none!important; } }
.creator-preview-open { position:absolute; inset:0; z-index:1; width:100%; height:100%; padding:0; border:0; border-radius:0; background:transparent; cursor:zoom-in; }
.creator-portrait .creator-preview-open:focus-visible { outline:3px solid var(--accent); outline-offset:-4px; }
.creator-placeholder { color:white; font-family:var(--font-heading); font-size:80px; font-weight:700; }
.creator-username { display:block; color:var(--ink); font-weight:700; font-size:13px; line-height:1.4; overflow-wrap:anywhere; text-decoration:none; margin-bottom:4px; }
.creator-media-badge { position:absolute; z-index:2; pointer-events:none; right:12px; top:12px; color:white; filter:drop-shadow(0 1px 3px #0008); display:flex; }
.creator-media-badge .creator-icon { width:23px; height:23px; stroke-width:2; }
.creator-badge { position:absolute; top:14px; right:12px; z-index:1; border:0; color:#20243a; background:#eeedfcf0; backdrop-filter:blur(8px); border-radius:99px; padding:7px 12px; font-size:12px; }
.creator-card-body { padding:12px; }
.creator-description { font-size:13px; line-height:1.4; margin:0 0 8px; white-space:pre-wrap; overflow-wrap:anywhere; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:2.8em; }
.creator-description-clamped { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.creator-expand { border:0; padding:0 0 14px; color:var(--accent-text); background:none; cursor:pointer; }
.creator-metrics { display:grid; grid-template-columns:1fr 1fr; margin:10px 0; text-align:center; }
.creator-metric+.creator-metric { border-left:1px solid var(--accent-border); }
.creator-metric strong { display:block; font-size:15px; font-family:var(--font-heading); }
.creator-metric span { display:block; font-size:12px; color:var(--muted); margin-top:5px; }
.creator-link { display:flex; justify-content:center; align-items:center; gap:10px; text-decoration:none; width:100%; }
.creator-card-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.creator-card-actions .creator-link { padding:13px 10px; }
.creator-link-secondary { background:var(--accent-soft); color:var(--accent-text); }
.creator-link-secondary:hover { background:var(--accent-border); }
.creator-repeat-select { display:flex; flex-direction:column; gap:8px; margin:16px 0; font-size:13px; color:var(--muted); }
.creator-repeat-select select { width:100%; min-height:44px; padding:10px; border:1px solid var(--accent-border); border-radius:12px; background:var(--surface); color:var(--ink); }
.creator-repeat-hint { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.creator-toast { position:fixed; z-index:100; left:50%; bottom:calc(24px + env(safe-area-inset-bottom,0px)); transform:translateX(-50%); box-sizing:border-box; width:min(440px,calc(100% - 32px)); padding:20px 24px; border:1px solid var(--line); border-radius:16px; background:var(--surface); color:var(--ink); box-shadow:0 12px 40px #0004; font-size:16px; line-height:1.6; overflow-wrap:anywhere; pointer-events:none; }
.creator-more { display:block; margin:32px auto 0; padding:15px 32px; border-radius:14px; border:1px solid var(--accent-border); color:var(--accent-text); background:var(--surface); font-size:16px; cursor:pointer; }
.creator-footer { border-top:1px solid var(--line); padding:24px 0 36px; color:var(--muted); font-size:13px; }
.creator-storefront [hidden] { display:none!important; }
.creator-storefront button:focus-visible,.creator-storefront a:focus-visible { outline:3px solid var(--accent-border); outline-offset:3px; }
.creator-storefront button:disabled { opacity:.55; cursor:wait; }
.creator-admin-scroll { overflow-x:auto; }
.creator-admin-table { border-collapse:collapse; width:100%; min-width:1040px; }
.creator-admin-table td,.creator-admin-table th { padding:16px 10px; text-align:left; vertical-align:top; border-bottom:1px solid var(--line); }
.creator-admin-table textarea { width:100%; min-width:140px; }
.creator-admin-table small { display:block; margin-top:7px; color:var(--muted); }
.creator-admin-avatar { width:44px; height:44px; border-radius:12px; object-fit:cover; display:block; margin-bottom:8px; }
.creator-admin-secondary { display:block; border:0; background:none; color:var(--accent-text); cursor:pointer; margin-top:12px; padding:0; text-align:left; }
@media(max-width:850px) { .creator-header,.creator-main,.creator-footer { width:calc(100% - 32px); } .creator-tools { flex-wrap:wrap; gap:16px; } .creator-search { flex-basis:100%; } }
@media(max-width:640px) { .creator-header { min-height:76px; } .creator-header .motion-wordmark { font-size:22px; } .creator-main { padding-top:20px; } .creator-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; } .creator-intro h1 { font-size:26px; } .creator-tools { margin-top:16px; } .creator-search { gap:8px; padding-left:12px; } .creator-search input { font-size:14px; } .creator-primary { padding:12px; font-size:13px; } .creator-segment button { padding:12px 21px; } .creator-result-tools { flex-wrap:wrap; } .creator-card-body { padding:8px; } }
@media(prefers-reduced-motion:no-preference) { .creator-card { transition:box-shadow .2s; } .creator-card:hover { box-shadow:0 10px 30px #30306610; } }

/* Reference: underlined view tabs and a separate soft filter tray. */
#catalog-filters { align-items:center; align-self:stretch; padding:14px 20px; border-radius:16px; background:var(--accent-soft); }
#catalog-filters button { min-width:84px; padding:10px 20px; background:var(--surface); }
#catalog-filters button[aria-pressed=true] { background:var(--accent); }
#catalog-modes { gap:38px; }
#catalog-modes button { padding:8px 4px; min-height:38px; border-bottom:2px solid transparent; border-radius:0; background:transparent; color:var(--muted); }
#catalog-modes button[aria-pressed=true] { color:var(--accent-text); border-bottom-color:var(--accent); font-weight:650; }
.creator-result-tools { margin-top:12px; }
.creator-status { margin:0; min-height:0; font-size:12px; }
.creator-status[data-error=false][data-empty=false] { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.creator-status[data-error=true],.creator-status[data-empty=true] { padding:12px 0; }
.creator-grid { gap:16px; margin-top:6px; }
.creator-link { min-height:44px; }
.creator-card-actions .creator-link { padding:10px 8px; font-size:14px; border-radius:10px; }
.creator-card button.creator-link { font-family:inherit; }
.creator-icon { flex-shrink:0; width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.creator-more { width:min(366px,100%); min-height:44px; margin:20px auto 0; padding:10px 28px; border-radius:30px; color:var(--ink); }
.creator-search { gap:0; }
.creator-search>svg { box-sizing:content-box; padding:12px 12px 12px 16px; background:var(--surface); border-radius:10px 0 0 10px; }
.creator-search input { min-height:46px; border-radius:0 10px 10px 0; }
.creator-primary { min-height:46px; min-width:136px; margin-left:8px; }
@media(max-width:850px) { .creator-tools { gap:10px; } #catalog-filters { padding:10px; } }
@media(max-width:640px) {
 .creator-tools { margin-top:20px; }
 .creator-search { padding:10px; }
 .creator-search>svg { padding:12px 8px; }
 .creator-primary { min-width:76px; margin-left:5px; }
 #catalog-filters { width:100%; justify-content:space-between; }
 #catalog-filters button { flex:1; min-width:0; }
 .creator-grid { gap:8px; }
 .creator-result-tools { gap:8px; }
}

/* Photo-first catalog shared by the public site and the bot webview. */
.creator-storefront { background:var(--surface); }
.creator-storefront.site-body { background:var(--surface); }
.creator-storefront.public-brand { --site-width:1356px; --site-gutter:32px; }
.creator-intro h1 { font-size:32px; margin-bottom:8px; }
.creator-intro p { font-size:15px; }
.creator-tools { margin-top:20px; }
.creator-search { background:var(--background); border:1px solid var(--line); border-radius:10px; padding:0 6px 0 0; }
.creator-search>svg,.creator-search input { background:transparent; }
.creator-search input { min-height:44px; }
.creator-primary { min-height:36px; min-width:80px; padding:8px 16px; font-size:13px; }
#catalog-filters { background:transparent; padding:0; gap:8px; }
#catalog-filters button { border:1px solid var(--line); background:var(--background); border-radius:10px; min-width:68px; padding:8px 16px; min-height:40px; font-size:13px; }
#catalog-filters button[aria-pressed=true] { background:var(--accent); border-color:var(--accent); }
.creator-result-tools { margin:14px 0; }
#catalog-filters { margin-left:auto; }
.creator-result-tools .creator-text-button { margin-left:8px; }
#catalog-modes { gap:28px; }
.creator-publication-details { font-size:11px; margin:0 0 10px; }
.creator-card-actions { gap:8px; }
.creator-card-actions .creator-link,.creator-card-body>.creator-link { font-size:13px; padding:10px 6px; border-radius:8px; min-width:0; min-height:44px; white-space:nowrap; }
.creator-card-body>.creator-link-secondary { border:1px solid var(--line); background:var(--background); }
.creator-card-actions .creator-icon { width:15px; height:15px; }
.creator-repeat-select { margin:8px 0; font-size:11px; }
.creator-repeat-select select { font-size:12px; }
.creator-variants { position:absolute; z-index:2; bottom:8px; left:8px; right:8px; }
.creator-variants summary { display:flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:8px; background:var(--surface); color:var(--accent-text); cursor:pointer; list-style:none; box-shadow:0 1px 6px #0002; }
.creator-variants summary::-webkit-details-marker { display:none; }
.creator-variants .creator-repeat-select { margin:6px 0 0; padding:8px; border-radius:8px; background:var(--surface); box-shadow:0 1px 6px #0002; }
.creator-variants summary:focus-visible { outline:3px solid var(--accent-border); outline-offset:2px; }
@media(max-width:1000px) and (min-width:641px) { .creator-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:640px) {
 .creator-storefront.public-brand { --site-gutter:12px; }
 .creator-intro h1 { font-size:26px; }
 .creator-intro p { display:none; }
 .creator-tools { margin-top:14px; gap:10px; }
 .creator-search { padding:0 5px 0 0; }
 .creator-search input { font-size:12px; }
 .creator-primary { min-width:58px; padding:8px; font-size:12px; }
 #catalog-filters { width:auto; justify-content:flex-start; }
 #catalog-filters button { flex:0 0 auto; min-width:60px; padding:8px 14px; font-size:12px; }
 .creator-result-tools { margin:8px 0 12px; }
 #catalog-modes { order:2; width:100%; }
 #catalog-filters { margin-left:0; }
 .creator-result-tools .creator-text-button { order:3; margin:0; font-size:12px; }
 #catalog-modes button { font-size:13px; }
 .creator-card-body { padding:8px 6px; }
 .creator-username { font-size:11px; }
 .creator-description { font-size:11px; margin-bottom:6px; }
 .creator-publication-details { font-size:10px; margin-bottom:8px; }
 .creator-card-actions { gap:4px; }
 .creator-card-actions .creator-link,.creator-card-body>.creator-link { font-size:10px; padding:8px 2px; border-radius:7px; }
 .creator-card-actions .creator-icon { display:none; }
 .creator-metric strong { font-size:13px; }
 .creator-metric span { font-size:10px; }
 .creator-media-badge { right:8px; top:8px; }
 .creator-media-badge .creator-icon { width:20px; height:20px; }
}

.creator-viewer-open { overflow:hidden; }
.creator-viewer { position:fixed; inset:0; width:100%; max-width:none; height:100%; height:100dvh; max-height:none; margin:0; padding:36px 20px; border:0; background:transparent; color:white; overflow:hidden; }
.creator-viewer[open] { display:grid; place-items:center; }
.creator-viewer::backdrop { background:rgb(9 12 22 / 78%); }
.creator-viewer-panel { position:relative; max-width:84vw; max-height:86vh; max-height:86dvh; display:flex; flex-direction:column; align-items:center; gap:10px; }
.creator-viewer-stage { display:flex; align-items:center; justify-content:center; min-width:120px; min-height:80px; border-radius:12px; overflow:hidden; background:#14151b; touch-action:pinch-zoom; }
.creator-viewer-stage img,.creator-viewer-stage video { display:block; max-width:min(84vw,1100px); max-height:72vh; max-height:72dvh; width:auto; height:auto; object-fit:contain; }
.creator-viewer-close { position:absolute; z-index:2; right:-12px; top:-20px; display:grid; place-items:center; width:40px; height:40px; padding:0; border:1px solid #ffffff40; border-radius:50%; background:#20243a; color:white; font:28px/1 var(--font-ui); cursor:pointer; }
.creator-viewer-message { margin:0; max-width:360px; text-align:center; font-size:14px; }
.creator-viewer-controls { display:flex; justify-content:center; gap:8px; }
.creator-viewer-controls button,.creator-viewer-retry { min-height:44px; padding:10px 16px; border:1px solid #ffffff40; border-radius:10px; background:#20243a; color:white; cursor:pointer; font:13px/1.4 var(--font-ui); }
.creator-viewer button:focus-visible { outline:3px solid #b6b4ff; outline-offset:3px; }
.creator-viewer [hidden] { display:none!important; }
