/* Community discovery: curated rail above a complete catalog. */
.community-page .shell { max-width:1680px; width:calc(100% - 48px); }
.community-page .page { padding-top:18px; }
.community-layout { display:grid; grid-template-columns:180px minmax(0,1fr) 216px; gap:22px; align-items:start; }
.community-main { min-width:0; container:storefront / inline-size; }
.community-sidebar,.community-ranking { position:sticky; top:104px; min-width:0; padding:18px 14px; border:1px solid var(--line); border-radius:14px; background:var(--ui-surface); }
.community-sidebar { max-height:calc(100vh - 124px); overflow-y:auto; scrollbar-width:thin; }
.community-panel-heading { font-size:15px; font-weight:650; padding:0 4px 14px; border-bottom:1px solid var(--line); margin-bottom:10px; }
.community-category-links { display:grid; gap:3px; }
.community-category-links>a { display:flex; align-items:center; justify-content:space-between; gap:8px; min-width:0; min-height:38px; padding:8px 10px; border:1px solid transparent; border-radius:8px; color:var(--muted); font-size:12px; line-height:1.5; text-decoration:none; }
.community-category-links>a small { flex-shrink:0; font-size:10px; font-variant-numeric:tabular-nums; }
.community-category-links .category-kind { margin-top:8px; font-weight:650; color:var(--ink); }
.community-category-links .category-child { padding-left:20px; min-height:33px; }
.community-category-links>a:hover { background:var(--subtle); color:var(--ink); }
.community-category-links>a[aria-current=page] { background:var(--subtle); border-color:var(--theme-accent-ink,var(--brand)); color:var(--theme-accent-ink,var(--brand)); }
.community-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; margin:6px 0 20px; }
.community-heading h1 { display:flex; flex-wrap:wrap; align-items:baseline; gap:12px; margin:0 0 7px; font-size:28px; letter-spacing:-.03em; line-height:1.4; }
.community-heading h1>span { color:var(--theme-accent-ink,var(--brand)); font-size:14px; font-weight:600; letter-spacing:0; }
.community-heading h1 small { color:var(--muted); font-size:11px; font-weight:400; }
.community-heading p { margin:0; color:var(--muted); font-size:13px; line-height:1.8; }
.community-heading>nav { display:flex; align-items:center; flex-wrap:wrap; gap:14px; font-size:12px; }
.community-heading>nav>a:not(.button) { color:var(--muted); }
.community-heading .button { min-height:40px; padding:8px 13px; font-size:12px; }
.community-section-heading { display:flex; align-items:end; justify-content:space-between; gap:14px; margin-bottom:14px; }
.community-section-heading .eyebrow { margin:0 0 5px; font-size:9px; letter-spacing:.16em; }
.community-section-heading h2 { margin:0; font-size:20px; line-height:1.4; }
.community-section-actions { display:flex; align-items:center; gap:14px; flex-shrink:0; }
.community-section-actions>a { color:var(--muted); font-size:12px; }
.featured-spotlight { margin-bottom:20px; }
.featured-rail { display:grid; grid-auto-flow:column; grid-auto-columns:200px; align-items:stretch; gap:12px; padding-bottom:12px; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x proximity; scrollbar-width:thin; scrollbar-color:var(--line) transparent; }
.featured-controls { display:flex; gap:8px; }
.featured-controls button { width:32px; height:32px; padding:0; border:1px solid var(--line); border-radius:50%; background:var(--ui-surface); color:var(--ink); font-size:16px; }
.featured-controls button:disabled { opacity:.35; cursor:default; }
.featured-controls button[hidden] { display:none; }
.community-page .app-card { box-shadow:none; transform:none; }
.community-page .app-card::before,.community-page .app-card::after { display:none; }
.community-page .app-card--featured { display:flex; flex-direction:column; gap:0; min-width:0; padding:0; border:1px solid var(--line); border-radius:12px; overflow:hidden; background:var(--ui-surface); scroll-snap-align:start; }
.community-page .app-card--featured .app-preview { flex-shrink:0; width:100%; margin:0; height:auto; aspect-ratio:16/9; align-self:auto; border-bottom:1px solid var(--line); }
.community-page .app-card--featured .app-preview>img { width:100%; height:100%; object-fit:cover; }
.community-page .app-card--featured .app-preview--icon>img { width:64px; height:64px; object-fit:contain; }
.preview-curated { position:absolute; top:9px; left:9px; padding:4px 7px; border:1px solid var(--line); border-radius:5px; background:var(--ui-surface); color:var(--theme-accent-ink,var(--brand)); font-size:10px; line-height:1.3; }
.community-page .card-identity { display:flex; align-items:start; gap:9px; }
.community-page .card-identity-copy { min-width:0; flex:1; }
.community-page .card-identity-icon { display:grid; place-items:center; flex:0 0 32px; width:32px; height:32px; overflow:hidden; border:1px solid var(--line); border-radius:10px; background:var(--subtle); color:var(--theme-accent-ink,var(--brand)); text-decoration:none; }
.community-page .card-identity-icon img { display:block; width:100%; height:100%; object-fit:cover; }
.community-page .app-copy { min-width:0; }
.community-page .app-card--featured .app-copy { flex:1; padding:13px 12px 8px; }
.community-page .app-title-row { display:block; margin:0; }
.community-page .app-title-row h2 { margin:0; font-size:15px; line-height:1.5; letter-spacing:-.01em; overflow-wrap:anywhere; }
.community-page .app-title-row h2 a { color:var(--ink); }
.community-page .version,.community-page .verified-pxa,.community-page .kind-badge { display:none; }
.community-page .card-byline { margin:5px 0 0; color:var(--muted); font-size:11px; line-height:1.6; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.community-page .card-byline a { color:inherit; }
.community-page .app-copy p { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; margin:9px 0; color:var(--muted); font-size:12px; line-height:1.8; overflow-wrap:anywhere; }
.community-page .meta-row { gap:9px; font-size:10px; color:var(--muted); }
.community-page .app-card-actions { display:flex; align-items:center; flex-wrap:wrap; gap:7px; margin:0; padding:0; }
.community-page .app-card--featured .app-card-actions { padding:0 12px 12px; }
.community-page .app-card-actions .button { flex:1; min-height:34px; padding:6px 8px; border-radius:7px; font-size:11px; line-height:1.5; }
.community-list-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; border-bottom:1px solid var(--line); margin-bottom:14px; padding-bottom:12px; }
.community-list-heading h2 { display:flex; gap:10px; align-items:baseline; margin:0; font-size:18px; }
.community-list-heading h2 small { font-size:11px; color:var(--muted); font-weight:400; }
.community-list-heading>span { color:var(--muted); font-size:11px; }
.community-catalog { scroll-margin-top:108px; }
.community-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:12px; justify-content:space-between; margin-bottom:18px; }
.community-search { flex:1 1 340px; display:grid; grid-template-columns:minmax(100px,1fr) 132px auto; align-items:center; gap:8px; margin:0; min-width:0; }
.community-search>label { min-width:0; margin:0; }
.community-search input,.community-search select { height:42px; min-width:0; border-radius:8px; font-size:12px; }
.community-search .button { min-height:42px; padding:8px 12px; font-size:12px; }
.community-search [data-catalog-feedback]:not(.sr-only) { grid-column:1/-1; }
.community-sort { display:flex; align-items:center; gap:3px; padding:3px; border:1px solid var(--line); border-radius:9px; background:var(--ui-surface); }
.community-sort a { padding:7px 9px; color:var(--muted); font-size:11px; border-radius:6px; white-space:nowrap; }
.community-sort a[aria-current=true] { color:var(--theme-accent-ink,var(--brand)); background:var(--subtle); }
.community-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr)); gap:12px; align-items:stretch; }
/* One media / identity / description / tags / actions rhythm for every work. */
.community-page .app-card--compact { display:flex; flex-direction:column; gap:0; min-width:0; padding:0; border:1px solid var(--line); border-radius:12px; background:var(--ui-surface); overflow:hidden; }
.community-page .app-card--compact .app-preview { flex-shrink:0; align-self:stretch; width:100%; height:auto; aspect-ratio:16/9; margin:0; border:0; border-bottom:1px solid var(--line); border-radius:0; background:var(--subtle); }
.community-page .app-card--compact .app-preview>img,.community-page .app-card--featured .app-preview>img { width:100%; height:100%; object-fit:contain; }
/* Artwork determines its own height: edge-to-edge without cropping titles. */
.community-page .app-card--compact .app-preview--cover:not(.app-preview--unavailable),.community-page .app-card--featured .app-preview--cover:not(.app-preview--unavailable) { display:block; aspect-ratio:auto; }
.community-page .app-card--compact .app-preview--cover>img,.community-page .app-card--featured .app-preview--cover>img { height:auto; }
.community-page .app-card--compact .app-preview--icon>img { width:76px; height:76px; border-radius:18px; }
.community-page .app-card--compact .preview-type,.community-page .app-card--compact .preview-play { display:none; }
.community-page .app-card--compact .preview-initial { font-size:44px; }
.community-page .card-curated { color:var(--theme-accent-ink,var(--brand)); }
.community-page .app-preview--screenshot { padding:14px 18px 30px; }
.community-page .preview-caption { display:block; position:absolute; right:12px; bottom:7px; color:var(--muted); font-size:10px; line-height:1.4; letter-spacing:.03em; pointer-events:none; }
.community-page .app-card--featured .app-preview--screenshot .preview-type,.community-page .app-card--featured .app-preview--screenshot .preview-play { display:none; }
.community-page .app-card--compact .app-copy,.community-page .app-card--featured .app-copy { display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(40px,auto) 3.3em minmax(22px,1fr) minmax(18px,auto); row-gap:6px; flex:1; width:100%; padding:12px 12px 9px; font-size:12px; }
.community-page .card-identity { grid-row:1; }
.community-page .app-copy>p { grid-row:2; min-height:0; max-height:3.3em; margin:0; font-size:12px; line-height:1.65; }
.community-page .app-copy>.app-tags { grid-row:3; align-self:start; margin:0; }
.community-page .app-copy>.meta-row { grid-row:4; align-self:end; gap:10px; font-size:11px; line-height:18px; }
.community-page .app-card--compact .app-title-row h2 { font-size:15px; line-height:1.5; }
.community-page .app-title-row h2 { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
.community-page .app-card--compact .card-byline { font-size:11px; line-height:1.5; margin-top:3px; }
.community-page .app-card--compact .app-card-actions { width:100%; padding:0 12px 12px; }
.community-page .app-card--compact .app-card-actions .button { flex:1; min-width:0; min-height:40px; font-size:12px; }
.community-page .app-card--featured .app-copy { grid-template-rows:minmax(36px,auto) 1.65em minmax(22px,1fr) minmax(18px,auto); padding:11px 11px 8px; font-size:12px; }
.community-page .app-card--featured .app-preview--icon>img { width:64px; height:64px; }
.community-page .app-card--featured .card-identity-icon { flex-basis:32px; width:32px; height:32px; border-radius:8px; }
.community-page .app-card--featured .app-copy>p { display:block; height:1.65em; max-height:1.65em; white-space:nowrap; text-overflow:ellipsis; font-size:12px; }
@media(max-width:540px),(any-pointer:coarse) { .community-page .app-card--compact .app-card-actions .button,.community-page .app-card--featured .app-card-actions .button { min-height:44px; } }
.community-ranking-head { display:flex; align-items:baseline; justify-content:space-between; gap:8px; padding-bottom:14px; border-bottom:1px solid var(--line); }
.community-ranking-head h2 { margin:0; font-size:17px; }
.community-ranking-head>span { color:var(--muted); font-size:10px; }
.community-ranking-list { list-style:none; margin:0; padding:0; }
.community-ranking-list>li { display:flex; align-items:center; gap:9px; min-width:0; padding:16px 0; border-bottom:1px solid var(--line); }
.community-ranking-list>li:last-child { border-bottom:0; padding-bottom:0; }
.rank-number { flex-shrink:0; color:var(--muted); font:11px/1.5 monospace; }
.community-ranking-list>li:nth-child(-n+3)>.rank-number { color:var(--theme-accent-ink,var(--brand)); }
.community-ranking-list a { display:flex; align-items:center; gap:9px; min-width:0; color:var(--ink); }
.community-ranking-list img,.rank-initial { flex-shrink:0; width:36px; height:36px; border-radius:8px; object-fit:cover; }
.rank-initial { display:grid; place-items:center; background:var(--subtle); color:var(--theme-accent-ink,var(--brand)); }
.community-ranking-list a>span:last-child { min-width:0; }
.community-ranking-list strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; font-weight:500; }
.community-ranking-list small { display:block; margin-top:4px; color:var(--muted); font-size:10px; }
.ranking-empty { color:var(--muted); font-size:12px; margin:18px 0 0; }
.community-mobile-categories,.community-mobile-ranking { display:none; }
@media(max-width:1399px) {
  .community-layout { grid-template-columns:180px minmax(0,1fr); }
  .community-ranking { display:none; }
  .community-mobile-ranking { display:block; margin-top:24px; padding:14px; border:1px solid var(--line); border-radius:10px; background:var(--ui-surface); }
  .community-mobile-ranking summary { cursor:pointer; font-size:14px; }
  .community-mobile-ranking summary>span { color:var(--muted); font-size:11px; margin-left:10px; }
  .community-mobile-ranking[open]>.community-ranking-head { display:none; }
}
@media(max-width:980px) {
  .community-page .shell { width:calc(100% - 32px); }
  .community-layout { grid-template-columns:minmax(0,1fr); }
  .community-sidebar { display:none; }
  .community-mobile-categories { display:block; margin-bottom:22px; padding:12px 14px; border:1px solid var(--line); border-radius:10px; background:var(--ui-surface); }
  .community-mobile-categories summary { cursor:pointer; font-size:13px; }
  .community-mobile-categories summary>span { float:right; color:var(--muted); font-size:12px; }
  .community-mobile-categories .community-category-links { margin-top:14px; max-height:50vh; overflow-y:auto; }
}
@media(max-width:540px) {
  .community-page .page { padding-top:12px; }
  .community-heading { margin:3px 0 18px; gap:12px; }
  .community-heading h1 { font-size:25px; }
  .community-heading p { font-size:12px; }
  .community-heading>nav { gap:13px; }
  .community-heading>nav>a[href='/dashboard/apps/new'] { display:none; }
  .community-mobile-categories { margin-bottom:18px; }
  .community-section-heading h2 { font-size:19px; }
  .featured-controls { display:none; }
  .community-search { flex-basis:100%; grid-template-columns:minmax(0,1fr) auto; }
  .community-search-field { grid-column:1/-1; }
  .community-search input,.community-search select { font-size:16px; }
  .community-sort { width:100%; justify-content:space-between; }
  .community-sort a { flex:1; text-align:center; font-size:12px; }
  .community-list-heading h2 { font-size:17px; }
}

.community-tag-row { display:flex; flex-wrap:wrap; align-items:start; gap:10px 16px; margin:-4px 0 18px; min-width:0; }
.community-tag-discovery { display:flex; flex:1 1 280px; align-items:center; gap:7px; overflow-x:auto; min-width:0; padding-bottom:5px; scrollbar-width:thin; }
.community-all-tags { flex-shrink:0; padding:5px 0; font-size:11px; color:var(--theme-accent-ink,var(--brand)); }
.community-tag-discovery>span { flex-shrink:0; color:var(--muted); font-size:11px; }
.community-tag-discovery a { flex-shrink:0; padding:4px 8px; border:1px solid var(--line); border-radius:6px; color:var(--muted); background:var(--ui-surface); font-size:11px; }
.community-tag-discovery a[aria-current=page],.community-tag-discovery a:hover { border-color:var(--theme-accent-ink,var(--brand)); color:var(--theme-accent-ink,var(--brand)); text-decoration:none; }
.community-tag-discovery small { margin-left:4px; font-size:10px; }

.community-list-heading h2 { min-width:0; flex-wrap:wrap; overflow-wrap:anywhere; }
