/* Community UI only. Shared KiwiV palette, heading, data and security remain authoritative. */
.community-page {
    --border-green: var(--profile-action-border);
    --community-surface: var(--profile-surface);
    --community-inset: var(--bg-main);
    --community-raised: var(--profile-secondary-surface);
    --community-line: var(--profile-border);
    --community-accent: var(--green);
    --community-tint: var(--profile-active-surface);
    --community-radius: 8px;
    max-width: 1360px;
    margin: 0 auto;
    padding: 124px 36px 72px;
    color: var(--text-main);
    font: 400 14px/1.75 Inter, sans-serif;
}
.community-page *, .community-page *::before, .community-page *::after { box-sizing: border-box; }
.community-page [hidden] { display: none !important; }
.community-stats { display: flex; gap: 28px; margin: 0; }
.community-stats dt { color: var(--text-soft); font-size: 12px; }
.community-stats dd { margin: 4px 0 0; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.community-category-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--community-line); }
.community-category-link strong, .community-category-link small { display: block; }
.community-category-link strong { font-size: 12px; }
.community-category-link small, .community-category-link > span:last-child { color: var(--text-soft); font-size: 11px; }
.community-category-link:hover strong { color: var(--community-accent); }



.community-page svg { width: 18px; height: 18px; flex: none; vertical-align: middle; }
.community-page :where(a) { color: inherit; text-decoration: none; }
.community-page :is(h2,h3,p,strong,a) { overflow-wrap: anywhere; }
.community-page h2, .community-page h3 { line-height: 1.4; letter-spacing: -.035em; }
.community-page h2 { margin: 0 0 16px; font-size: 20px; font-weight: 700; }
.community-page h3 { font-size: 16px; }
.community-page [id] { scroll-margin-top: 112px; }
.community-page :is(a,button,input,textarea,select,summary):focus-visible { outline: 2px solid var(--community-accent); outline-offset: 4px; }
.community-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 28px; margin-bottom: 32px; border-bottom: 1px solid var(--community-line); }
.community-heading > div { min-width: 0; }
.community-heading h1 { overflow: visible; }
.community-heading h1 > span { display: block; }
.community-heading p { max-width: 65ch; margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.85; }
/* Reuse Streamer's real hero rules, confined to the Community landing heading. */
.community-page .community-title-scope.stream-page {
    max-width: none;
    margin: -4px 0 0;
    padding: 0;
    container-type: inline-size;
}
.community-title-scope.stream-page .stream-title-lockup {
    width: 8.8em;
}
.community-title-scope.stream-page .stream-title-kiwi-mask {
    padding-inline-end: .16em;
}
.community-title-scope.stream-page .stream-hero h1.stream-title {
    font-size: min(clamp(76px, 11vw, 132px), 11cqi);
}
@media (max-width: 600px) {
    .community-title-scope.stream-page .stream-hero h1.stream-title {
        font-size: min(clamp(48px, 14vw, 76px), 11cqi);
    }
}
.community-eyebrow, .community-nav-label { font-size: 10px; font-weight: 600; line-height: 1.7; letter-spacing: .14em; color: var(--text-soft); }
.community-eyebrow { color: var(--community-accent); }

/* One interaction system for feed, editor, discussion and personal pages. */
.community-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; max-width: 100%; padding: 9px 14px; border: 1px solid var(--community-line); border-radius: 6px; background: var(--community-surface); color: var(--text-main); font: 600 12px/1.5 Inter,sans-serif; text-align: center; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.community-button:hover { background: var(--community-raised); border-color: var(--border-green); }
.community-button:active { transform: translateY(1px); }
.community-button.is-primary { background: var(--profile-action-surface); border-color: var(--profile-action-border); color: var(--green); font-weight: 700; }
.community-button.is-primary:hover { background: var(--profile-action-hover); border-color: var(--profile-action-hover-border); }
.community-button:disabled { opacity: .5; cursor: wait; transform: none; }
.community-button[aria-pressed=true] { color: var(--community-accent); border-color: var(--border-green); background: var(--community-tint); }
.community-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.community-actions form { margin: 0; }
.community-layout { display: grid; grid-template-columns: 184px minmax(0,1fr) 232px; gap: 28px; align-items: start; }
.community-layout > *, .community-editor-layout > * { min-width: 0; }
.community-stream { min-width: 0; }
.community-panel, .community-card { min-width: 0; margin-bottom: 20px; padding: 24px; border: 1px solid var(--community-line); border-radius: var(--community-radius); background: var(--community-surface); }
.community-card { transition: border-color .2s, background .2s; }
.community-card:hover { border-color: var(--border-green); }

/* Navigation stays open on desktop, collapses natively on small screens. */
.community-navigation { position: sticky; top: 112px; padding: 8px 0; }
.community-navigation > .community-nav-label { display: block; padding-inline: 12px; margin-bottom: 14px; }
.community-nav-disclosure > summary { display: none; }
.community-navigation nav { display: grid; gap: 4px; }
.community-navigation nav > a { position: relative; display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 10px 12px; border-radius: 6px; color: var(--text-soft); font-size: 12px; font-weight: 600; transition: color .2s, background .2s; }
.community-navigation nav > a:hover { color: var(--text-main); background: var(--community-surface); }
.community-navigation nav > a[aria-current=page] { color: var(--community-accent); background: var(--community-tint); }
.community-navigation nav > a[aria-current=page]::before { content: ''; position: absolute; inset: 13px auto 13px 0; width: 2px; border-radius: 2px; background: currentColor; }
.community-nav-foot { display: grid; gap: 12px; margin: 24px 12px 0; padding-top: 20px; border-top: 1px solid var(--community-line); color: var(--text-soft); font-size: 11px; }
.community-nav-foot a { display: inline-flex; align-items: center; gap: 6px; }
.community-nav-foot svg { width: 13px; height: 13px; }
.community-notice { margin: 0 0 22px; padding: 10px 0; color: var(--text-soft); font-size: 12px; }
.community-notice a { color: var(--community-accent); }
.community-page > .community-notice { margin-top: -12px; padding-bottom: 16px; border-bottom: 1px solid var(--community-line); }

/* Composer and GET filters: compact surfaces instead of nested dashboard cards. */
.community-composer { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 26px; padding: 20px; border: 1px solid var(--community-line); border-radius: var(--community-radius); background: var(--community-surface); }
.community-composer > div { flex: 1; min-width: 0; }
.community-composer-prompt { display: block; padding: 7px 0 17px; border-bottom: 1px solid var(--community-line); color: var(--text-soft); font-size: 14px; transition: color .2s; }
.community-composer-prompt:hover { color: var(--text-main); }
.community-composer form { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 14px; }
.community-composer form label { flex: 1; min-width: 110px; }
.community-composer form select { min-height: 40px; font-size: 11px; padding: 8px 24px 8px 10px; }
.community-composer form .community-button { min-height: 40px; font-size: 11px; }
.community-composer-media { display: inline-flex; align-items: center; gap: 7px; color: var(--text-soft); font-size: 11px; }
.community-composer-media svg { color: var(--community-accent); width: 17px; height: 17px; }
/* Feed composer shares the full editor without adding another card surface. */
.community-inline-composer { margin-bottom: 8px; border-radius: var(--community-radius); background: var(--community-surface); border: 1px solid var(--community-line); }
.community-inline-composer > summary { margin: 0; border: 0; background: transparent; cursor: pointer; list-style: none; }
.community-inline-composer > summary::-webkit-details-marker { display: none; }
.community-composer-summary { flex: 1; min-width: 0; }
.community-composer-shortcuts { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; flex-wrap: wrap; }
.community-composer-shortcuts .community-button { font-size: 11px; }
.community-inline-composer[open] > summary { border-bottom: 1px solid var(--community-line); }
.community-compose-panel { padding: 24px; }
.community-inline-composer .community-inline-layout { grid-template-columns: minmax(0,1fr); gap: 22px; }
.community-inline-layout .community-editor { border: 0; padding: 0; background: transparent; gap: 16px; }
.community-inline-layout .community-preview { position: static; padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--community-line); }
.community-inline-layout .community-preview h2 { font-size: 20px; }
.community-field-error { color: #f3a7a7; font-size: 12px; line-height: 1.6; }
.community-field-error:empty, .community-compose-status:empty { display: none; }
.community-editor [aria-invalid="true"] { border-color: #db8989; }
.community-editor [aria-busy="true"], .community-editor :disabled { cursor: wait; }
.community-inline-media { min-width: 0; }
.community-inline-composer .community-drop { border-color: var(--community-line); background: transparent; }
.community-inline-composer .community-drop:focus-within { border-color: var(--community-accent); }
.community-inline-composer .community-file-preview button { min-height: 40px; }
.community-compose-status { margin: 0 0 20px; }
@media (max-width: 600px) {
    .community-compose-panel { padding: 16px; }
    .community-inline-composer .community-composer-shortcuts { gap: 10px; }
    .community-inline-composer .community-composer-shortcuts .community-button { min-height: 44px; padding-inline: 10px; }
    .community-inline-composer .community-editor > .community-actions > .community-button { flex: 1 1 100%; min-height: 44px; }
    .community-inline-composer .community-drop input { width: 100%; min-width: 0; }
}
.community-reader-note { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--community-line); }
.community-reader-note > svg { color: var(--community-accent); margin-top: 3px; }
.community-reader-note strong { font-size: 14px; font-weight: 600; }
.community-reader-note p { margin: 5px 0 9px; color: var(--text-soft); font-size: 12px; }
.community-reader-note a { color: var(--community-accent); font-size: 11px; }
.community-reader-note a svg { width: 13px; height: 13px; }
.community-feed-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.community-feed-heading h2 { margin: 0; font-size: 17px; }
.community-feed-heading > span, .community-result { font-size: 11px; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.community-page :where(label) { display: grid; min-width: 0; gap: 8px; font-size: 12px; font-weight: 600; }
.community-page :where(input:not([type=hidden]):not([type=file]):not([type=checkbox]):not([type=radio]),select,textarea) { width: 100%; min-width: 0; max-width: 100%; padding: 11px 12px; border: 1px solid var(--community-line); border-radius: 6px; background: var(--community-inset); color: var(--text-main); color-scheme: dark; font: 400 13px/1.65 Inter,sans-serif; transition: border-color .2s, background .2s; }
.community-page :is(input,select,textarea):focus { border-color: var(--profile-action-hover-border); background: var(--community-inset); }
.community-page :is(input,textarea)::placeholder { color: var(--text-soft); opacity: .8; }
.community-page textarea { resize: vertical; min-height: 96px; }
.community-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.community-filters > .community-search { flex: 1 1 200px; }
.community-filters > label:not(.community-search) { flex: 0 1 145px; }
.community-filters :is(select,input) { min-height: 42px; padding-block: 9px; font-size: 12px; }
.community-search { position: relative; }
.community-search > svg { position: absolute; left: 12px; top: 13px; width: 16px; height: 16px; color: var(--text-soft); pointer-events: none; }
.community-search input { padding-left: 37px; }
.community-filters > a { padding: 8px 2px; color: var(--text-soft); font-size: 11px; }
.community-filter-more { position: relative; }
.community-filter-more > summary { padding: 10px 8px; font-size: 11px; white-space: nowrap; }
.community-filter-more > div { position: absolute; top: 100%; right: 0; z-index: 5; display: grid; gap: 14px; width: 260px; max-width: calc(100vw - 40px); margin-top: 8px; padding: 18px; border: 1px solid var(--community-line); border-radius: var(--community-radius); background: var(--community-surface); box-shadow: 0 12px 28px rgb(0 0 0 / .2); }
.community-categories { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 16px; border-bottom: 1px solid var(--community-line); }
.community-categories a { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; max-width: 100%; padding: 7px 10px; border: 1px solid transparent; border-radius: 5px; color: var(--text-soft); font: 600 11px/1.5 Inter,sans-serif; transition: color .2s, background .2s, border-color .2s; }
.community-categories a svg { width: 14px; height: 14px; }
.community-categories a:hover { color: var(--text-main); background: var(--community-raised); }
.community-categories a[aria-current=page] { color: var(--community-accent); border-color: var(--border-green); background: var(--community-tint); }
.community-result { margin: 14px 0; }

/* Readable author hierarchy and quiet, consistent social actions. */
.community-avatar { position: relative; display: grid; place-items: center; width: 38px; height: 38px; flex: none; overflow: hidden; border: 1px solid var(--community-line); border-radius: 50%; background: var(--community-raised); color: var(--community-accent); font-size: 13px; font-weight: 600; }
.community-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.community-avatar img[data-image-failed] { display: none; }
.community-post-author, .community-author { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.community-post-author > div, .community-author > div { min-width: 0; flex: 1; }
.community-post-author strong, .community-author strong { font-size: 13px; font-weight: 600; }
.community-author p { margin: 3px 0 0; font-size: 11px; color: var(--text-soft); }
.community-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--text-soft); font-size: 11px; line-height: 1.7; }
.community-card-meta a:hover { color: var(--community-accent); }
.community-post-more { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 5px; color: var(--text-soft); transition: background .2s; }
.community-post-more:hover { background: var(--community-raised); }
.community-card-flags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.community-card h2 { margin: 0 0 12px; font-size: clamp(20px,1.7vw,23px); font-weight: 700; line-height: 1.4; }
.community-card h2 a { transition: color .2s; }
.community-card h2 a:hover { color: var(--community-accent); }
.community-card .community-excerpt { display: block; margin-bottom: 0; color: var(--text-soft); font-size: 13px; line-height: 1.85; }
.community-card .community-excerpt p { margin-bottom: 6px; }
.community-social-actions { gap: 5px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--community-line); }
.community-social-actions .community-button { min-height: 38px; padding: 7px 9px; gap: 7px; border-color: transparent; background: transparent; color: var(--text-soft); font-size: 11px; white-space: nowrap; }
.community-social-actions .community-button svg { width: 17px; height: 17px; }
.community-social-actions .community-button:hover { color: var(--text-main); background: var(--community-raised); }
.community-social-actions .community-button[aria-pressed=true] { color: var(--community-accent); background: var(--community-tint); }
.community-social-actions [data-community-vote="-1"][aria-pressed=true] { color: #e5ac85; background: rgb(229 172 133 / .07); }
.community-social-actions [aria-pressed=true] svg { stroke-width: 2; }
.community-social-actions .community-share { margin-left: auto; }
.community-social-actions [data-count] { font-variant-numeric: tabular-nums; }
.community-social-actions form[aria-busy=true] .community-button { opacity: .5; }
.community-feedback { margin-top: 12px; color: var(--text-soft); font-size: 12px; }
.community-feedback:empty, .community-card .community-feedback:empty { display: none; }
.community-feedback.is-error { color: #e78383; }
.community-edit-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-soft); font-size: 12px; }
.community-owner-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.community-owner-actions > form { margin: 0; }
.community-owner-actions .community-button { min-height: 36px; background: transparent; font-size: 11px; }
.community-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; color: var(--community-accent); font-size: 11px; }
.community-tags a:hover { text-decoration: underline; }
.community-badge { --badge-accent: var(--text-soft); display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 8px; border: 1px solid color-mix(in srgb,var(--badge-accent) 20%,transparent); border-radius: 4px; background: color-mix(in srgb,var(--badge-accent) 5%,transparent); color: var(--badge-accent); font: 600 10px/1.5 Inter,sans-serif; overflow-wrap: anywhere; }
.community-badge::before { content: ''; width: 4px; height: 4px; flex: none; border-radius: 50%; background: currentColor; }
.community-badge.is-reviewing { --badge-accent: #e4c080; }
.community-badge.is-evaluating { --badge-accent: #a4b6c2; }
.community-badge.is-planned { --badge-accent: #c0dbac; }
.community-badge.is-developing { --badge-accent: #b6a6ca; }
.community-badge.is-implemented { --badge-accent: var(--community-accent); }
.community-badge.is-rejected { --badge-accent: #e78383; }

/* Unboxed discovery: secondary to the conversation. */
.community-aside { padding-top: 8px; }
.community-aside > section { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--community-line); }
.community-aside > section:last-child { border-bottom: 0; }
.community-aside h2 { margin: 8px 0 12px; font-size: 14px; font-weight: 600; }
.community-aside p { font-size: 12px; color: var(--text-soft); }
.community-discover-topic { display: flex; gap: 12px; padding: 12px 0; }
.community-discover-topic > span { padding-top: 2px; color: var(--text-soft); font: 600 11px/1.7 ui-monospace,monospace; }
.community-discover-topic > div { min-width: 0; }
.community-discover-topic strong { display: block; font-size: 12px; font-weight: 500; line-height: 1.75; }
.community-discover-topic small { display: block; margin-top: 4px; color: var(--text-soft); font-size: 11px; }
.community-discover-topic:hover strong { color: var(--community-accent); }
.community-related { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--community-line); font-size: 13px; }
.community-related:last-child { border-bottom: 0; }
.community-related:hover { color: var(--community-accent); }
.community-related svg { width: 14px; height: 14px; }
.community-status-list { display: grid; gap: 11px; }
.community-status-list > a { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.community-status-list > a > span:last-child { color: var(--text-soft); font-size: 11px; font-variant-numeric: tabular-nums; }
.community-discovery-rules > svg { color: var(--community-accent); }
.community-discovery-rules > a { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; color: var(--community-accent); font-size: 11px; }
.community-discovery-rules > a svg { width: 13px; height: 13px; }
.community-pagination { display: flex; justify-content: space-between; gap: 12px; margin: 24px 0; font-size: 12px; }
.community-page .community-empty { display:flex;flex-direction:column;align-items:center;gap:8px;min-height:0;margin:0;padding:24px 18px;text-align:center;background:var(--profile-surface);border:1px solid var(--profile-border);border-radius:var(--community-radius);box-shadow:var(--profile-green-glow); }
.community-page .community-empty > svg { width:20px;height:20px;margin:0;color:var(--community-accent); }
.community-page .community-empty :is(h2,h3) { margin:0;font-size:15px;line-height:1.5;font-weight:600; }
.community-page .community-empty p { max-width:46ch;margin:0;color:var(--text-soft);font-size:12px;line-height:1.7; }
.community-help, .community-muted { color: var(--text-soft); font-size: 12px; line-height: 1.85; }
.community-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Writing workspace, shared native form fields and honest attachment guidance. */
.community-editor-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(260px,.75fr); align-items: start; gap: 32px; max-width: 1120px; margin: auto; }
.community-editor { display: grid; gap: 22px; padding: 28px; }
.community-editor-header { padding-bottom: 20px; border-bottom: 1px solid var(--community-line); }
.community-editor-header h2 { margin: 7px 0 8px; font-size: 22px; }
.community-editor-header p { margin: 0; color: var(--text-soft); font-size: 12px; }
.community-editor-field { display: grid; gap: 8px; }
.community-writing-surface { overflow: hidden; border: 1px solid var(--community-line); border-radius: 6px; background: var(--community-inset); transition: border-color .2s; }
.community-writing-surface:focus-within { border-color: var(--border-green); }
.community-editor-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 7px; border-bottom: 1px solid var(--community-line); }
.community-editor-tools button { min-height: 34px; padding: 6px 10px; border: 0; border-radius: 4px; background: transparent; color: var(--text-soft); font: 600 12px/1.5 Inter,sans-serif; cursor: pointer; transition: background .2s,color .2s; }
.community-editor-tools button:hover { color: var(--community-accent); background: var(--community-tint); }
.community-writing-surface textarea { display: block; min-height: 240px; border: 0; border-radius: 0; background: transparent; padding: 16px; }
.community-writing-surface textarea:focus { background: transparent; outline-offset: -3px; }
.community-attachment-note { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 14px 0; border-block: 1px solid var(--community-line); color: var(--text-soft); font-size: 12px; }
.community-attachment-note svg { margin-top: 3px; color: var(--community-accent); }
.community-preview { position: sticky; top: 112px; padding: 8px 0 20px 24px; border: 0; border-left: 1px solid var(--community-line); border-radius: 0; background: transparent; }
.community-preview-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.community-preview-indicator { width: 5px; height: 5px; border-radius: 50%; background: var(--community-accent); }
.community-preview h2 { margin: 20px 0 14px; font-size: 23px; line-height: 1.45; }
.community-preview .community-eyebrow { color: var(--text-soft); }
.community-rich { font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
.community-rich p { margin: 0 0 15px; }
.community-rich strong { font-weight: 700; }
.community-rich em { font-style: italic; }
.community-rich blockquote { margin: 16px 0; padding: 9px 16px; border-left: 2px solid var(--community-accent); color: var(--text-main); background: var(--community-tint); }
.community-rich ul { padding-left: 22px; }
.community-rich a { color: var(--community-accent); text-decoration: underline; }
.community-detail-layout .community-stream > .community-panel:not(.community-post) { padding: 24px 0; border: 0; border-bottom: 1px solid var(--community-line); border-radius: 0; background: transparent; }
.community-post > h2 { margin: 20px 0 18px; font-size: clamp(25px,2.6vw,34px); font-weight: 750; line-height: 1.3; letter-spacing: -.04em; }
.community-post > .community-rich { max-width: 70ch; font-size: 15px; }
.community-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; margin: 20px 0; overflow: hidden; border: 1px solid var(--community-line); border-radius: 6px; background: var(--community-inset); }
.community-gallery > a { display: block; min-width: 0; background: var(--community-inset); }
.community-gallery img { display: block; width: 100%; max-height: 480px; aspect-ratio: 4/3; object-fit: contain; transition: opacity .2s; }
.community-gallery a:hover img { opacity: .92; }
.community-gallery.media-count-1 { grid-template-columns: minmax(0,1fr); }
.community-gallery.media-count-1 img { aspect-ratio: 16/10; }
.community-gallery.media-count-3 > a:first-child { grid-column: 1/-1; }
.community-gallery.media-count-3 > a:first-child img { aspect-ratio: 16/9; }
.community-lightbox { max-width: 95vw; max-height: 95dvh; margin: auto; padding: 30px 14px 12px; border: 1px solid var(--community-line); border-radius: 8px; background: var(--community-inset); color: var(--text-main); }
.community-lightbox::backdrop { background: rgb(0 0 0 / .9); }
.community-lightbox img { display: block; max-width: min(88vw, calc(95vw - 30px)); max-height: 76dvh; object-fit: contain; }
.community-lightbox > button:first-child { position: absolute; top: 5px; right: 6px; }
.community-lightbox button { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--community-line); border-radius: 5px; background: var(--community-surface); color: var(--text-main); font-size: 22px; cursor: pointer; }
.community-lightbox-controls { display: flex; align-items: center; justify-content: center; gap: 20px; padding-top: 12px; }
.community-lightbox-controls span { color: var(--text-soft); font-size: 12px; }
.community-drop { display: grid; justify-items: start; gap: 12px; padding: 22px; border: 1px dashed var(--border-green); border-radius: 6px; background: var(--community-inset); color: var(--text-soft); font-size: 12px; font-weight: 400; transition: background .2s,border-color .2s; }
.community-drop > svg { color: var(--community-accent); width: 22px; height: 22px; }
.community-drop.is-dragging { background: var(--community-tint); border-color: var(--community-accent); }
.community-drop input { max-width: 100%; font: inherit; font-size: 12px; }
.community-drop input::file-selector-button { margin-right: 10px; padding: 9px 12px; border: 1px solid var(--community-line); border-radius: 5px; background: var(--community-raised); color: var(--text-main); font: inherit; cursor: pointer; }
.community-page [data-community-feedback]:empty, .community-file-preview:empty { display: none; }
.community-file-preview, .community-image-order { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.community-file-preview > div, .community-image-order > div { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; width: 116px; min-width: 0; }
.community-file-preview img, .community-image-order img { width: 100%; height: 84px; border: 1px solid var(--community-line); border-radius: 5px; background: var(--community-inset); object-fit: contain; }
.community-file-preview button, .community-image-order button { min-height: 34px; padding: 6px 8px; border: 1px solid var(--community-line); border-radius: 4px; background: var(--community-inset); color: var(--text-main); font: 500 11px Inter,sans-serif; cursor: pointer; }
.community-history { display: grid; gap: 18px; margin: 0; padding-left: 20px; border-left: 1px solid var(--community-line); list-style: none; }
.community-history small { display: block; margin-top: 6px; color: var(--text-soft); font-size: 11px; }
.community-history p { margin: 6px 0; font-size: 13px; }

/* Conversation uses separators and threading, not nested cards. */
.community-section-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.community-section-header h2 { margin: 0; font-size: 19px; }
.community-section-header h2 > span { margin-left: 8px; color: var(--text-soft); font-size: 12px; font-weight: 500; }
.community-section-header > a { color: var(--text-soft); font-size: 11px; }
.community-comment-compose { display: flex; align-items: flex-start; gap: 12px; margin-top: 22px; }
.community-comment-compose > .community-avatar { margin-top: 26px; width: 32px; height: 32px; }
.community-comment-compose > form { flex: 1; min-width: 0; }
.community-comment-form { display: grid; gap: 12px; margin: 18px 0 24px; }
.community-comment-compose .community-comment-form { margin-top: 0; }
.community-comment-form > button { justify-self: end; }
.community-comment-list { display: grid; }
.community-comment { min-width: 0; padding: 22px 0; border-top: 1px solid var(--community-line); }
.community-comment.depth-1 { margin-left: 24px; padding-left: 18px; border-left: 1px solid var(--community-line); }
.community-comment.depth-2 { margin-left: 48px; padding-left: 18px; border-left: 1px solid var(--community-line); }
.community-comment header { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 11px; font-size: 12px; }
.community-comment header .community-avatar { width: 30px; height: 30px; font-size: 11px; }
.community-comment header strong { font-weight: 600; }
.community-comment time, .community-comment small, .community-comment header > a { color: var(--text-soft); font-size: 10px; }
.community-comment-likes { display: inline-flex; align-items: center; gap: 6px; color: var(--text-soft); font-size: 11px; }
.community-comment .community-rich { padding-left: 38px; font-size: 13px; }
.community-comment .community-actions { margin-top: 8px; padding-left: 38px; }
.community-comment .community-button { min-height: 36px; padding: 7px 9px; border-color: transparent; background: transparent; color: var(--text-soft); font-size: 11px; }
.community-comment .community-button[aria-pressed=true] { color: var(--community-accent); background: var(--community-tint); }
.community-comment details { margin-left: 38px; }
.community-page details > summary { cursor: pointer; color: var(--text-soft); font-size: 12px; }
.community-page details > summary:hover { color: var(--text-main); }
.community-page :where(details:not(.community-nav-disclosure):not(.community-filter-more):not(.community-card-controls)) > summary { margin-block: 9px; }
.community-page details:not(.community-card-controls) form, .community-page .community-panel > form { display: grid; gap: 12px; margin-top: 12px; }
.community-comments-empty { display: flex; align-items: center; gap: 12px; padding: 24px 0; color: var(--text-soft); font-size: 13px; }
.community-comments-empty p { margin: 0; }
.community-personal-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 22px; }
.community-personal-grid .community-section-header { justify-content: flex-start; margin-bottom: 14px; }
.community-personal-grid .community-section-header > svg { color: var(--community-accent); }
.community-personal-grid .community-panel { margin: 0; }

/* Admin navigation and permissions are unchanged; only Community surfaces adapt. */
.community-admin { --bg-main: var(--admin-bg); --bg-panel: var(--admin-card); --bg-soft: var(--admin-sidebar); --green: var(--admin-green); --kiwi-heading-accent: var(--admin-green); --text-main: var(--admin-text); --text-soft: var(--admin-muted); --border: var(--admin-border); --border-green: color-mix(in srgb,var(--admin-green) 22%,transparent); max-width: none; padding: 24px; }
.community-admin .community-admin-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.community-admin .community-panel { margin: 0; }
.community-admin .community-admin-row { padding: 20px 0; border-bottom: 1px solid var(--community-line); }
.community-admin .community-admin-row form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.community-admin .community-admin-row :is(input,select) { flex: 1; width: auto; min-width: 0; max-width: 100%; }
.community-admin .community-admin-row textarea { width: 100%; }

@media (max-width: 1199px) {
    .community-layout { grid-template-columns: 176px minmax(0,1fr); gap: 24px; }
    .community-aside { grid-column: 2; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--community-line); }
    .community-aside > section { margin: 0; }
}
@media (max-width: 800px) {
    .community-page { padding: 116px 24px 56px; }
    .community-layout { grid-template-columns: minmax(0,1fr); gap: 20px; }
    .community-navigation { position: static; padding: 0; }
    .community-navigation > .community-nav-label, .community-nav-foot { display: none; }
    .community-nav-disclosure { padding-block: 0 16px; border-bottom: 1px solid var(--community-line); }
    .community-nav-disclosure > summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 12px; padding: 8px 0; color: var(--text-main); font-size: 12px; font-weight: 600; list-style: none; }
    .community-nav-disclosure > summary::-webkit-details-marker { display: none; }
    .community-nav-disclosure > summary svg { transition: transform .2s; }
    .community-nav-disclosure[open] > summary svg { transform: rotate(90deg); }
    .community-navigation nav { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 8px; padding-top: 10px; }
    .community-navigation nav > a { min-height: 44px; font-size: 12px; padding: 10px; }
    .community-navigation nav > a svg { width: 16px; height: 16px; }
    .community-aside { grid-column: auto; }
    .community-editor-layout { grid-template-columns: minmax(0,1fr); gap: 24px; }
    .community-preview { position: static; padding: 22px 0; border-left: 0; border-top: 1px solid var(--community-line); }
    .community-admin .community-admin-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 600px) {
    .community-page { padding: 108px 16px 40px; }
    .community-heading { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 24px; padding-bottom: 22px; }
    .community-heading p { font-size: 13px; }
    .community-heading > .community-button { font-size: 11px; }
    .community-panel, .community-card { padding: 18px; margin-bottom: 16px; }
    .community-composer { gap: 10px; padding: 16px; }
    .community-composer > .community-avatar { width: 32px; height: 32px; }
    .community-composer-prompt { font-size: 13px; padding-top: 3px; }
    .community-composer form { gap: 8px; }
    .community-composer form label { flex-basis: 100%; order: 3; }
    .community-composer form :is(select,.community-button) { min-height: 44px; }
    .community-composer form .community-button { flex: 1; }
    .community-filters > .community-search { flex-basis: 100%; }
    .community-filters > label:not(.community-search) { flex: 1; min-width: 110px; }
    .community-filters :is(input,select,.community-button) { min-height: 44px; }
    .community-filter-more[open] { flex-basis: 100%; order: 4; }
    .community-filter-more > div { position: static; width: 100%; max-width: none; margin-top: 8px; box-shadow: none; }
    .community-categories { gap: 4px; }
    .community-categories a { min-height: 40px; padding: 8px; }
    .community-card h2 { font-size: 20px; }
    .community-post-author { gap: 10px; }
    .community-post-author .community-avatar { width: 34px; height: 34px; }
    .community-card-meta { gap: 5px; font-size: 10px; }
    .community-social-actions { justify-content: space-between; gap: 2px; }
    .community-social-actions .community-action-label { display: none; }
    .community-social-actions .community-button { min-width: 40px; min-height: 44px; padding: 9px 7px; gap: 5px; }
    .community-social-actions .community-share { margin-left: 0; }
    .community-social-actions .community-button svg { width: 17px; height: 17px; }
    .community-post > h2 { font-size: 25px; }
    .community-post > .community-rich { font-size: 14px; }
    .community-editor { padding: 18px; gap: 20px; }
    .community-editor-tools button { min-height: 40px; }
    .community-editor > .community-actions > .community-button { flex: 1 1 100%; min-height: 44px; }
    .community-comment-compose > .community-avatar { display: none; }
    .community-comment.depth-1 { margin-left: 10px; padding-left: 10px; }
    .community-comment.depth-2 { margin-left: 20px; padding-left: 10px; }
    .community-comment .community-rich, .community-comment .community-actions { padding-left: 0; }
    .community-comment details { margin-left: 0; }
    .community-comment :is(.community-button,summary) { min-height: 44px; }
    .community-comment summary { display: flex; align-items: center; }
    .community-comment-form > button { min-height: 44px; }
    .community-file-preview button, .community-image-order button { min-height: 40px; }
    .community-drop { padding: 16px; }
    .community-drop input { width: 100%; font-size: 11px; }
    .community-aside { grid-template-columns: minmax(0,1fr); gap: 20px; }
    .community-personal-grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
    .community-admin { padding: 18px; }
    .community-admin .community-admin-row form { display: grid; grid-template-columns: minmax(0,1fr); }
    .community-admin .community-admin-row :is(input,select,button) { width: 100%; min-height: 44px; }
}
@media (prefers-reduced-motion: no-preference) {
    .community-eyebrow { animation: ac-label-reveal 1s ease backwards; }
    .community-heading h1 > span { animation: ac-title-rise 1.2s .8s cubic-bezier(.2,.65,.2,1) backwards; }
    .community-heading p { --heading-rise-distance: 6px; animation: ac-title-rise .45s 2s ease backwards; }
    .community-card { --heading-rise-distance: 6px; animation: ac-title-rise .3s ease backwards; }
    .community-card:nth-child(2) { animation-delay: .04s; }
    .community-card:nth-child(3) { animation-delay: .08s; }
    .community-comment details[open] > form { --heading-rise-distance: 4px; animation: ac-title-rise .18s ease backwards; }
    .community-social-actions svg { transition: color .2s, transform .2s; }
    .community-social-actions button:active svg { transform: scale(.94); }
}
@media (prefers-reduced-motion: reduce) {
    .community-page *, .community-page *::before, .community-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .community-button:active { transform: none; }
}
