/* Public identities and directory: shared variables follow the admin palette. */
.discover-page{max-width:1180px;margin:auto}.discovery-search{margin:30px 0 28px;display:grid;gap:12px}.discovery-search>label{font-size:14px;font-weight:650}.discovery-search>input{width:100%;padding:14px 16px;font-size:15px;border-radius:12px}.discovery-scopes{display:flex;gap:6px;flex-wrap:wrap}.discovery-scopes button{padding:9px 15px;font-size:13px;background:transparent;border-color:transparent}.discovery-scopes button[aria-pressed=true]{color:var(--accent);background:var(--accent-bg);border-color:var(--accent);font-weight:650}.discovery-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:20px 0}.discovery-toolbar label,.profile-project-toolbar label{display:grid;gap:7px;font-size:12px;color:var(--muted)}.discovery-toolbar select,.profile-project-toolbar select,.profile-project-toolbar input{font-size:13px;min-height:42px;max-width:100%}.discover-results-heading{font-size:23px;margin:30px 0 18px}#discover-profiles{margin:32px 0 44px}#discover-profiles h2{font-size:23px;margin-bottom:18px}.profile-directory{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,285px),1fr));gap:12px}.profile-directory-card{display:flex;align-items:center;gap:14px;min-width:0;padding:18px;border:1px solid var(--border);border-radius:14px;text-decoration:none;background:var(--surface);color:var(--text)}.profile-directory-card>span:nth-child(2){display:grid;gap:5px;min-width:0;flex:1}.profile-directory-card strong{font-size:16px;overflow-wrap:anywhere}.profile-directory-card span span,.profile-directory-card small{font-size:12px;color:var(--muted)}.profile-directory-card:hover{border-color:var(--accent);background:var(--panel)}.creator-avatar{width:44px;height:44px;flex:0 0 44px;object-fit:contain;box-sizing:border-box;border-radius:10px;padding:4px;background:var(--panel);border:1px solid var(--border)}.avatar-placeholder{display:grid;place-items:center;color:var(--accent);font-size:15px;font-weight:650}.project-card-header{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:20px 20px 0;min-width:0}.project-card-header>.badge{flex-shrink:0;margin-top:5px;font-size:10px}.creator-link{display:flex;justify-content:flex-end;align-items:center;gap:10px;min-width:0;max-width:70%;color:var(--text);text-decoration:none;border-radius:8px}.creator-link:hover .creator-name{text-decoration:underline;text-underline-offset:3px}.creator-unlinked:hover .creator-name{text-decoration:none}.creator-name{font-size:13px;font-weight:650;text-align:right;line-height:1.35;overflow-wrap:anywhere;min-width:0}.creator-name small{display:block;color:var(--muted);font-size:11px;font-weight:400;margin-top:4px}.project-tile>.project-card{min-height:230px;padding:16px 20px 22px}.project-card h3{margin:8px 0 10px;font-size:24px;line-height:1.25;overflow-wrap:anywhere}.project-card>small{font-size:12px;color:var(--muted)}.project-card>.muted{font-size:14px;line-height:1.6;margin:14px 0 20px}.project-metrics{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:11px;color:var(--muted);margin-top:auto}.project-card .bottom{padding-top:16px;gap:14px;align-items:flex-end;font-size:12px}.project-card .bottom>span:first-child{min-width:0;overflow-wrap:anywhere}.project-card .bottom>span:last-child{white-space:nowrap;color:var(--accent)}.discover-card{display:block}.public-profile{padding:14px 0}.public-profile-hero{display:flex;justify-content:space-between;gap:48px;align-items:flex-start;padding:12px 0 36px;border-bottom:1px solid var(--border);margin-bottom:36px}.public-profile-hero>div{min-width:0;flex:1}.public-profile-hero h1{margin:14px 0 20px;overflow-wrap:anywhere}.public-profile-hero .profile-photo{width:160px;height:160px;flex:0 0 160px;margin:4px 0 0}.public-profile-hero .avatar-placeholder{font-size:42px}.profile-company{font-size:18px;font-weight:600}.profile-contact{display:flex;flex-wrap:wrap;gap:12px 24px;font-size:14px;margin-top:22px;overflow-wrap:anywhere}.profile-bio{font-size:15px;line-height:1.7}.profile-comparisons h2{font-size:28px;margin-bottom:24px}.profile-project-toolbar{display:grid;grid-template-columns:minmax(190px,1fr) minmax(190px,.8fr) minmax(160px,.8fr);gap:16px;align-items:end;margin-bottom:16px}.profile-project-toolbar input,.profile-project-toolbar select{width:100%;min-width:0}.public-profile .cards{margin-top:20px}.metrics-explanation{font-size:11px;color:var(--muted);margin:26px 0 0;line-height:1.6}#discover-count,#discover-profile-count,#profile-project-count{font-size:12px;margin:16px 0}.profile-directory-card:focus-visible,.creator-link:focus-visible{outline:2px solid var(--accent);outline-offset:4px}@media(max-width:760px){.profile-project-toolbar{grid-template-columns:1fr 1fr}.profile-project-toolbar>label:first-child{grid-column:1/-1}.public-profile-hero{gap:22px}.public-profile-hero .profile-photo{width:108px;height:108px;flex-basis:108px}.public-profile-hero h1{font-size:36px}.project-card-header{padding:16px 16px 0}.project-tile>.project-card{padding:14px 16px 20px}}@media(max-width:480px){.public-profile-hero{display:flex;flex-direction:column-reverse;gap:12px}.public-profile-hero .profile-photo{align-self:flex-end;width:96px;height:96px;flex-basis:96px}.profile-project-toolbar{grid-template-columns:1fr}.profile-project-toolbar>label:first-child{grid-column:auto}.discovery-toolbar{align-items:stretch;flex-direction:column}.creator-name{font-size:12px}.creator-avatar{width:38px;height:38px;flex-basis:38px}.project-card-header{gap:10px}.discovery-scopes button{padding:9px 12px}}
.guest-view-toolbar label{display:flex;align-items:center;gap:9px;font-size:12px}.guest-view-toolbar select{font-size:12px;min-height:38px}.quality-hint{font-size:12px;line-height:1.6;max-width:80ch}#studio-source-panel>.muted{font-size:12px;line-height:1.65;margin:14px 0 0;max-width:80ch}
.comparison-search-advanced{margin-top:14px;padding:14px 18px;border:1px solid var(--border);border-radius:12px}
.comparison-search-advanced>summary{cursor:pointer;font-weight:600}
.comparison-search-advanced[open]>.form-grid{margin-top:18px}
.comparison-search-advanced p,.catalog-help{font-size:13px;line-height:1.6}
.audio-search-hits{padding:10px 18px;border-top:1px solid var(--border);font-size:12px;overflow-wrap:anywhere}
.audio-search-hits p{margin:4px 0}.audio-search-hits small{display:block;margin-top:4px}
.catalog-suggestion{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:6px 0}
.catalog-suggestion button,.catalog-suggestion a{font-size:12px}

.discovery-match{min-width:0}

/* Compact category selection with clear hierarchy, without empty branches. */
.profile-category-editor{border:1px solid var(--border);border-radius:12px;padding:16px;min-width:0}.profile-category-editor legend{font-weight:650;font-size:14px}.profile-category-editor details{border-top:1px solid var(--border);padding:12px 0}.profile-category-editor summary{cursor:pointer;font-size:14px;font-weight:600}.profile-role-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px;margin-top:14px}.profile-role-options label{display:flex;align-items:center;gap:8px;font-size:13px;line-height:1.5;min-width:0}.profile-role-options input{width:17px;height:17px;flex:0 0 17px}.profile-roles{font-size:12px;color:var(--muted);line-height:1.6}.profile-directory-card .profile-roles{max-height:4.8em;overflow:auto}#profile-category-path{margin:18px 0}.category-browser button[aria-pressed=true]{border-color:var(--accent);background:var(--accent-bg)}#comparison-search-status:empty{display:none}@media(max-width:480px){.profile-role-options{grid-template-columns:1fr}}

/* Multi-role selection stays within the fixed directory taxonomy. */
.selected-role-tags,.profile-role-options{display:flex;flex-wrap:wrap;gap:8px}.selected-role-tags{margin:10px 0 16px}.selected-role-tags>button{padding:7px 12px;border-radius:999px;background:var(--accent-bg);color:var(--text);border-color:var(--accent);font-size:13px}.profile-role-options label.profile-role-tag{padding:7px 11px;border:1px solid var(--border);border-radius:999px;background:var(--surface);font-size:13px;min-height:36px;cursor:pointer}.profile-role-tag:has(input:checked){background:var(--accent-bg)!important;border-color:var(--accent)!important;font-weight:650}.profile-role-tag:focus-within{outline:2px solid var(--accent);outline-offset:2px}.public-result-link{padding:0 20px 18px}.public-result-link button{font-size:13px;padding:8px 12px}#public-results-page h2{overflow-wrap:anywhere}#public-results-page .actions{margin:24px 0}#public-results-page th,#public-results-page td{white-space:normal;overflow-wrap:anywhere}
