.community-entry{border-top:1px solid var(--border);background:linear-gradient(180deg,rgba(247,248,250,.35),rgba(255,255,255,.94))}
.community-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;border:0;background:transparent;color:var(--text);padding:14px 18px;font:750 13px var(--font);cursor:pointer;text-align:left}
.community-trigger:hover{background:rgba(89,101,216,.045)}
.community-trigger-main{display:flex;align-items:center;gap:10px}.community-trigger-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:rgba(89,101,216,.1);color:var(--blue2);font-size:15px}.community-trigger-label{display:flex;flex-direction:column;gap:2px}.community-trigger-label small{color:var(--text-dim);font-size:10px;font-weight:600}.community-count{min-width:28px;border:1px solid var(--border);border-radius:999px;background:#fff;padding:4px 8px;color:var(--text-dim);font-size:11px;text-align:center}
.community-panel{border-top:1px solid var(--border);padding:18px;background:#fbfbfa}.community-panel[hidden]{display:none}.community-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}.community-panel-head h3{margin:0;color:var(--text-bright);font-size:18px;letter-spacing:-.025em}.community-panel-head p{margin:4px 0 0;color:var(--text-dim);font-size:12px;line-height:1.5}.community-panel-actions{display:flex;gap:6px}.community-icon-button{display:grid;place-items:center;min-width:34px;height:34px;border:1px solid var(--border);border-radius:10px;background:#fff;color:var(--text-dim);font:700 14px var(--font);cursor:pointer}.community-icon-button:hover{border-color:var(--blue);color:var(--blue2)}
.community-composer{border:1px solid var(--border);border-radius:15px;background:#fff;padding:12px;margin-bottom:15px;box-shadow:0 8px 24px rgba(38,45,62,.035)}.community-replying{display:none;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px;border-radius:9px;background:rgba(89,101,216,.07);padding:8px 10px;color:var(--blue2);font-size:11px}.community-replying.show{display:flex}.community-replying button{border:0;background:transparent;color:inherit;cursor:pointer;font-weight:800}.community-composer textarea{box-sizing:border-box;width:100%;min-height:86px;max-height:240px;resize:vertical;border:0;outline:0;background:transparent;color:var(--text);font:500 13px/1.65 var(--font)}.community-composer textarea::placeholder{color:#a0a39d}.community-composer-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:10px;border-top:1px solid var(--border)}.community-spoiler-check{display:flex;align-items:center;gap:7px;color:var(--text-dim);font-size:11px;cursor:pointer}.community-spoiler-check input{accent-color:var(--blue2)}.community-submit{border:0;border-radius:10px;background:var(--blue2);color:#fff;padding:9px 14px;font:750 12px var(--font);cursor:pointer}.community-submit:disabled{opacity:.55;cursor:wait}.community-compose-status{min-height:17px;margin-top:7px;color:var(--text-dim);font-size:11px}.community-compose-status.error{color:#bb4a42}.community-signin{border:1px dashed var(--border);border-radius:14px;background:#fff;padding:15px;text-align:center;color:var(--text-dim);font-size:12px;margin-bottom:14px}.community-signin button{margin-left:7px;border:0;border-radius:9px;background:var(--text-bright);color:#fff;padding:8px 11px;font:700 11px var(--font);cursor:pointer}
.community-list{display:grid;gap:10px}.community-loading,.community-empty,.community-error{border:1px dashed var(--border);border-radius:14px;padding:22px;color:var(--text-dim);text-align:center;font-size:12px}.community-error button{margin-top:10px;border:1px solid var(--border);border-radius:9px;background:#fff;padding:7px 10px;color:var(--text);cursor:pointer}.community-post{position:relative;border:1px solid var(--border);border-radius:14px;background:#fff;padding:13px}.community-post.reply{margin-left:38px;border-left:3px solid rgba(89,101,216,.23)}.community-post.deleted{background:#f8f8f6}.community-post-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.community-author{display:flex;align-items:center;gap:9px;min-width:0}.community-avatar{width:34px;height:34px;flex:0 0 auto;border-radius:10px;object-fit:cover;background:linear-gradient(140deg,#5965d8,#26a58b);color:#fff;display:grid;place-items:center;font-size:11px;font-weight:850}.community-author-copy{min-width:0}.community-author-copy b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-bright);font-size:12px}.community-author-copy small{display:block;margin-top:2px;color:var(--text-dim);font-size:10px}.community-post-time{flex:0 0 auto;color:#a0a39d;font-size:10px}.community-post-body{margin:12px 0 10px;color:var(--text);font-size:13px;line-height:1.65;overflow-wrap:anywhere;white-space:pre-wrap}.community-post.deleted .community-post-body{color:#9a9b96;font-style:italic}.community-spoiler{position:relative;min-height:54px;border-radius:10px;background:#25272c;color:transparent;padding:12px;user-select:none;cursor:pointer}.community-spoiler:after{content:attr(data-label);position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:11px;font-weight:750}.community-spoiler.revealed{background:#f2f1ee;color:var(--text);user-select:text}.community-spoiler.revealed:after{display:none}.community-post-actions{display:flex;align-items:center;flex-wrap:wrap;gap:4px}.community-post-actions button{border:0;border-radius:8px;background:transparent;color:var(--text-dim);padding:6px 8px;font:650 10px var(--font);cursor:pointer}.community-post-actions button:hover{background:#f2f1ee;color:var(--text)}.community-post-actions button.liked{background:rgba(218,98,88,.09);color:#c34f46}.community-post-actions button.danger:hover{background:rgba(218,98,88,.09);color:#b9453d}.community-new-badge{display:inline-flex;margin-left:5px;border-radius:999px;background:rgba(22,134,111,.1);padding:2px 6px;color:#16866f;font-size:8px;font-weight:850;text-transform:uppercase}
.paper-card .community-entry{margin:14px -18px -18px;border-radius:0 0 16px 16px}.paper-card .community-panel{padding:15px}.paper-card:has(.community-panel:not([hidden])){grid-column:span 2}.paper-card:has(.community-panel:not([hidden])) .community-list{grid-template-columns:1fr}.paper-card:has(.community-panel:not([hidden])) .community-post.reply{margin-left:30px}
@media(max-width:900px){.paper-card:has(.community-panel:not([hidden])){grid-column:auto}.community-panel{padding:15px}.community-post.reply{margin-left:24px}}
@media(max-width:560px){.community-trigger{padding:13px 14px}.community-panel{padding:13px 10px}.community-panel-head h3{font-size:16px}.community-panel-head p{font-size:11px}.community-composer-foot{align-items:flex-end}.community-submit{min-height:38px}.community-post{padding:12px 10px}.community-post.reply{margin-left:12px}.community-post-time{font-size:9px}.community-author-copy b{max-width:150px}.community-post-actions button{padding:7px 6px}.paper-card .community-entry{margin-left:-16px;margin-right:-16px;margin-bottom:-16px}}
@media(prefers-reduced-motion:no-preference){.community-panel{animation:communityReveal .26s var(--motion-ease,cubic-bezier(.22,1,.36,1)) both}.community-post{animation:communityPostIn .25s ease both}@keyframes communityReveal{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}@keyframes communityPostIn{from{opacity:.25;transform:translateY(5px)}to{opacity:1;transform:none}}}

.community-composer{transition:border-color .2s ease,box-shadow .2s ease,background .2s ease}.community-composer.is-dragging{border-color:var(--blue2);background:rgba(89,101,216,.045);box-shadow:0 0 0 3px rgba(89,101,216,.1)}
.community-attachment-row{display:flex;align-items:center;gap:10px;margin:4px 0 10px}.community-attachment-row>small{color:var(--text-dim);font-size:10px;line-height:1.35}.community-image-picker{display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;border:1px solid var(--border);border-radius:9px;background:#f7f7f5;color:var(--text);padding:7px 10px;font-size:11px;cursor:pointer;transition:border-color .18s ease,background .18s ease,transform .18s ease}.community-image-picker:hover{border-color:var(--blue);background:#fff;transform:translateY(-1px)}.community-image-picker input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.community-image-picker span{color:var(--blue2);font-size:14px}.community-image-picker b{font-weight:750}
.community-image-preview{position:relative;display:grid;grid-template-columns:72px minmax(0,1fr) 30px;align-items:center;gap:10px;margin:5px 0 10px;border:1px solid var(--border);border-radius:12px;background:#f7f8fb;padding:8px}.community-image-preview[hidden]{display:none}.community-image-preview img{width:72px;height:58px;border-radius:8px;object-fit:cover;background:#e9ebef}.community-image-preview div{min-width:0}.community-image-preview b,.community-image-preview small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.community-image-preview b{color:var(--text-bright);font-size:11px}.community-image-preview small{margin-top:4px;color:var(--text-dim);font-size:9px}.community-image-preview button{display:grid;place-items:center;width:28px;height:28px;border:0;border-radius:8px;background:#fff;color:var(--text-dim);font:800 15px var(--font);cursor:pointer}.community-image-preview button:hover{background:rgba(218,98,88,.1);color:#b9453d}
.community-post-image{position:relative;display:block;width:min(100%,620px);margin:2px 0 11px;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#f1f2f4;line-height:0}.community-post-image img{display:block;width:100%;max-height:520px;object-fit:contain;background:#f1f2f4;transition:filter .22s ease,transform .22s ease}.community-post-image:hover img{transform:scale(1.006)}.community-post-image.is-spoiler img{filter:blur(24px) brightness(.5);transform:scale(1.04)}.community-post-image.is-spoiler:after{content:attr(data-label);position:absolute;inset:0;display:grid;place-items:center;color:#fff;font:750 11px var(--font);line-height:1}.community-post-image.is-spoiler.revealed img{filter:none;transform:none}.community-post-image.is-spoiler.revealed:after{display:none}
@media(max-width:560px){.community-attachment-row{align-items:flex-start;flex-direction:column}.community-image-picker{min-height:38px}.community-image-preview{grid-template-columns:64px minmax(0,1fr) 30px}.community-image-preview img{width:64px;height:54px}.community-post-image img{max-height:360px}}
