/* Liquid glass is limited to navigation and selected actions; opaque surfaces remain the fallback. */
@supports ((backdrop-filter:blur(20px)) or (-webkit-backdrop-filter:blur(20px))){
.topbar,.bottom-nav{background:color-mix(in srgb,var(--bg) 78%,transparent);-webkit-backdrop-filter:blur(24px) saturate(135%);backdrop-filter:blur(24px) saturate(135%);border-color:color-mix(in srgb,var(--border) 80%,#fff 20%);box-shadow:inset 0 1px 0 #ffffff0d,0 12px 35px #00000010}
.btn.primary{background:linear-gradient(155deg,#f4fff6e8,#b4cec2dc);color:#0c2119;border:1px solid #ffffff75;box-shadow:inset 0 1px 0 #fff9,0 8px 22px #0002;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
:root[data-theme=light] .btn.primary{background:linear-gradient(150deg,#ffffffed,#cde2d7d9);border-color:#fff;box-shadow:inset 0 1px 0 #fff,0 7px 20px #214e3020}
}
.community-page{display:grid;gap:22px;max-width:1120px;margin:0 auto}.community-intro{display:grid;gap:12px;max-width:750px}.community-intro h1{font-size:clamp(30px,4vw,44px)}.community-intro p{max-width:65ch}.community-profile-editor{border:1px solid var(--border);border-radius:18px;background:var(--surface);overflow:hidden}.community-profile-editor summary{padding:18px 22px;cursor:pointer;font-weight:600}.community-profile-editor form{padding:0 22px 22px;display:grid;gap:18px}.community-profile-editor label{display:grid;gap:7px}.community-profile-editor input:not([type=checkbox]),.community-profile-editor textarea,.community-search input{width:100%;background:var(--bg);border:1px solid var(--border);border-radius:12px;padding:12px;color:var(--text)}.community-profile-editor textarea{resize:vertical}.community-profile-editor fieldset{border:0;padding:0;margin:0;min-width:0}.community-profile-editor legend{margin-bottom:10px}.community-goals{display:flex;flex-wrap:wrap;gap:12px}.community-goals label,.community-optin{display:flex!important;align-items:center;gap:9px!important;font-size:14px}.community-profile-editor form>.btn{justify-self:start}.community-consent-note{display:flex;align-items:flex-start;gap:13px;border-left:2px solid var(--accent);padding:3px 0 3px 16px}.community-consent-note>span{color:var(--accent);font-size:25px;line-height:1.2}.community-consent-note p{font-size:14px;max-width:80ch}.community-tabs{display:flex;gap:8px;flex-wrap:wrap}.community-tabs .btn{min-height:42px;font-size:14px}.community-status:empty{display:none}.community-status{font-size:14px}.community-search{display:grid;gap:8px;font-size:14px;max-width:540px}.community-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:18px}.community-card{display:flex;flex-direction:column;gap:17px;padding:22px;border:1px solid var(--border);border-radius:22px;background:linear-gradient(145deg,color-mix(in srgb,var(--elevated) 70%,transparent),var(--surface));box-shadow:inset 0 1px 0 #ffffff09,0 10px 30px #0000000a;min-width:0}.community-person-head{display:flex;align-items:center;gap:13px}.community-person-head h2{font-size:21px;margin-bottom:5px;overflow-wrap:anywhere}.community-person-head .small{font-size:12px}.community-avatar{display:grid;place-items:center;width:52px;height:52px;flex:0 0 auto;aspect-ratio:1;border-radius:17px;background:linear-gradient(145deg,var(--accent-deep),var(--elevated));color:#e1fff0;border:1px solid #82cdbb44;font-size:24px}.community-bio{font-size:15px;overflow-wrap:anywhere;white-space:pre-wrap}.community-tags{display:flex;flex-wrap:wrap;gap:6px}.community-tags:empty{display:none}.community-pill{display:inline-flex;font-size:12px;line-height:1.4;padding:5px 9px;border:1px solid var(--border);border-radius:30px;background:var(--bg);color:var(--muted)}.community-projects{display:grid;gap:8px}.community-projects a{display:flex;justify-content:space-between;gap:8px;padding:10px 12px;background:var(--bg);border-radius:10px;font-size:14px;border:1px solid var(--border);overflow-wrap:anywhere}.community-projects a:hover{border-color:var(--accent)}.community-projects a span{color:var(--accent)}.community-card-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:auto}.community-card-actions>.btn{font-size:14px;min-height:42px}.community-more{margin-left:auto;background:transparent;color:var(--muted);font-size:13px;min-width:38px;height:38px;padding:0 8px;border-radius:12px}.community-more:hover{background:var(--bg);color:var(--error)}.community-empty{padding:35px 15px;display:grid;gap:12px;grid-column:1/-1;max-width:650px}.community-empty h2{font-size:23px}.community-state{display:grid;gap:18px;padding:30px 0}.community-state .btn{justify-self:start}
@media(max-width:650px){.community-page{gap:20px}.community-card{padding:18px;border-radius:18px}.community-profile-editor summary{padding:17px}.community-profile-editor form{padding:0 17px 17px}.community-tabs{gap:6px}.community-tabs .btn{padding:9px 11px;font-size:13px}.community-goals{display:grid;gap:12px}.community-intro p{font-size:15px}}
@media(prefers-reduced-transparency:reduce){.topbar,.bottom-nav{background:var(--bg);backdrop-filter:none;-webkit-backdrop-filter:none}.btn.primary{background:var(--silver);backdrop-filter:none;-webkit-backdrop-filter:none}}
@media(prefers-reduced-motion:reduce){.community-page *{animation:none!important;transition:none!important}}

/* Preserve native summary keyboard behaviour, replace its browser triangle. */
.community-profile-editor>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;list-style:none;min-height:64px}
.community-profile-editor>summary::-webkit-details-marker{display:none}
.community-profile-editor>summary::marker{content:'';font-size:0}
.community-profile-editor>summary>span{min-width:0}
.community-profile-chevron{display:block;width:30px;height:30px;flex:0 0 30px;padding:3px;border:1px solid var(--border);border-radius:50%;color:var(--muted);background:var(--bg);transition:transform .22s ease,color .22s ease}
.community-profile-editor[open]>summary .community-profile-chevron{transform:rotate(180deg);color:var(--accent)}
.community-profile-editor>summary:focus-visible{outline:2px solid var(--accent);outline-offset:-4px;border-radius:16px}
@media(prefers-reduced-motion:reduce){.community-profile-chevron{transition:none}}
/* Professional discovery keeps real projects beside their creators, with consent-based contact sharing. */
.community-project-link{align-items:center;justify-content:flex-start!important;min-height:60px}.community-project-link img{width:48px;height:48px;flex:0 0 48px;object-fit:cover;border-radius:9px}.community-project-title{display:grid;gap:4px;min-width:0;color:var(--text)!important}.community-project-title small{font-size:12px;line-height:1.4;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.community-author-page{max-width:850px}.community-author-page>.community-card{padding:28px}.community-author-page .community-projects{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}.community-author-page .community-projects>.small{grid-column:1/-1}.community-back{justify-self:start}.community-person-head h2 a{color:inherit}.community-person-head h2 a:hover{color:var(--accent)}
.community-preview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:16px}.community-preview-card{padding:20px;display:flex;flex-direction:column;gap:15px;min-width:0;background:var(--surface);border:1px solid var(--border);border-radius:20px}.community-preview-card h3{font-size:18px;line-height:1.35;overflow-wrap:anywhere}.community-preview-card .community-avatar{width:44px;height:44px;flex-basis:44px;font-size:21px}.community-preview-bio{font-size:14px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.community-preview-projects{display:grid;gap:8px}.community-preview-projects a{display:flex;align-items:center;gap:10px;min-height:44px;font-size:13px;line-height:1.4;overflow-wrap:anywhere}.community-preview-projects img{width:40px;height:40px;object-fit:cover;border-radius:8px;flex:0 0 40px}.community-preview-projects span{min-width:0}.community-preview-card>.btn{margin-top:auto;align-self:flex-start;min-height:44px}.community-preview-empty{border:1px dashed var(--border);padding:25px;border-radius:20px;display:grid;gap:14px}.community-preview-empty h3{font-size:21px;line-height:1.3}.community-preview-empty p{font-size:14px;color:var(--muted);line-height:1.65}.community-preview-empty>.btn{justify-self:start}.community-preview-card a:focus-visible,.community-author-page a:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:8px}
@media(max-width:700px){.community-author-page>.community-card{padding:20px}.community-preview-card{padding:18px}.community-preview-grid{grid-template-columns:minmax(0,1fr)}}
/* Pro is a server-derived public entitlement: a gold crown and restrained gold profile surfaces. */
.community-card-pro,.community-preview-pro,.community-pro-name{--community-gold:#e5c674;--community-gold-ink:#f0dba1;--community-gold-border:#bfa15b78;--community-gold-wash:#b68d2b12;--community-header-start:#3c2d16;--community-header-end:#261e12;--community-name-glow:#d7ae495c}
:root[data-theme=light] :is(.community-card-pro,.community-preview-pro,.community-pro-name){--community-gold:#876016;--community-gold-ink:#76500a;--community-gold-border:#a77a2c82;--community-gold-wash:#c99b2920;--community-header-start:#fff0bf;--community-header-end:#f0d78e;--community-name-glow:#a6742333}
.community-pro-crown{display:inline-block;width:21px;height:21px;flex:0 0 21px;color:var(--community-gold,#e5c674);vertical-align:-3px;margin-inline-start:7px;filter:drop-shadow(0 0 6px #d5aa3e35)}
.community-pro-header{min-width:0;border:1px solid var(--community-gold-border);border-radius:16px;padding:13px;background:linear-gradient(125deg,var(--community-header-start),var(--community-header-end));box-shadow:inset 0 1px 0 #ffedba26,0 0 18px #b8963420}
.community-pro-header>div{min-width:0}.community-pro-header h2,.community-pro-header h3{color:var(--community-gold-ink);min-width:0;font-weight:550;letter-spacing:.012em;text-shadow:0 0 16px var(--community-name-glow)}.community-pro-header .community-avatar{border-color:var(--community-gold-border);color:var(--community-gold-ink);background:linear-gradient(145deg,#5b421c,#33240f);box-shadow:0 0 14px #c29b3e35}
.community-card-pro{border-color:var(--community-gold-border);box-shadow:inset 0 1px 0 #ffe6a513,0 0 22px #c2a04a0c}.community-preview-pro{border-color:var(--community-gold-border);background:linear-gradient(155deg,var(--community-gold-wash),var(--surface) 65%)}
.community-author-title .community-pro-crown{width:30px;height:30px;vertical-align:-2px}.community-pro-name{color:var(--community-gold-ink);font-weight:550;letter-spacing:.012em;text-shadow:0 0 18px var(--community-name-glow)}.community-request-name .community-pro-crown{vertical-align:-3px}
.community-project-pro{border:1px solid var(--community-gold-border)!important;background:linear-gradient(135deg,var(--community-gold-wash),var(--bg))!important;border-radius:12px;padding:10px!important;box-shadow:inset 0 1px 0 #ffe7a515,0 0 14px #ba973315}.community-project-pro:hover{border-color:var(--community-gold)!important}
.community-consent-symbol{width:25px;height:25px;flex:0 0 25px;color:var(--accent)}
@media(max-width:650px){.community-pro-header{padding:11px;gap:10px}.community-author-title .community-pro-crown{width:25px;height:25px}.community-pro-crown{width:19px;height:19px}}
@media(prefers-reduced-transparency:reduce){.community-preview-pro,.community-project-pro{background:var(--surface)!important}.community-pro-header{background:#302414!important}:root[data-theme=light] .community-pro-header{background:#f7e3a7!important}}

/* The Pro nickname and inline crown are typography, never framed badges. */
.community-pro-header :is(h2,h3),.community-pro-header h2 a,.community-pro-name,.community-pro-crown{border:0;background:none;box-shadow:none;border-radius:0;padding:0}
.community-pro-header h2 a:hover{color:var(--community-gold-ink)}
.community-pro-header h2 a:focus-visible{outline-color:var(--community-gold);outline-offset:4px;border-radius:3px}
:root[data-theme=light] .community-pro-header .community-avatar{background:linear-gradient(145deg,#f2d78c,#e6bd56);color:#76500a;box-shadow:0 0 14px #aa7c282a}

/* A creator's name belongs to their card, not to a second framed surface. */
.community-pro-header{border:0!important;background:none!important;box-shadow:none!important;border-radius:0;padding:0}
@media(max-width:650px){.community-pro-header{padding:0}}
