.community-section{max-width:980px;margin:clamp(3rem,8vw,7rem) auto;padding:clamp(1.1rem,3vw,2rem);border:1px solid rgba(17,28,83,.16);background:rgba(255,252,244,.86);box-shadow:0 24px 70px rgba(17,28,83,.08)}
.community-heading,.community-form-row,.community-note>header,.community-replies article>header,.community-actions,.community-pagination{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.community-heading{justify-content:space-between}.community-heading h2{margin:.1rem 0}.community-compose{display:grid;gap:.7rem;margin:1.5rem 0;padding:1rem;border-left:3px solid #b49343;background:#fff}.community-compose textarea,.community-reply-box textarea,.community-actions textarea,.piece-comment textarea{box-sizing:border-box;width:100%;padding:.75rem;border:1px solid rgba(17,28,83,.24);background:#fff;font:inherit}.community-form-row{justify-content:space-between}.community-list{display:grid;gap:1rem}.community-note{padding:1.1rem;border:1px solid rgba(17,28,83,.15);background:rgba(255,255,255,.82)}.community-note.is-pinned{border-color:#b49343;box-shadow:inset 4px 0 #b49343}.community-note>header time,.community-replies time{margin-left:auto;color:#6d6b75;font-size:.84rem}.community-badge{padding:.12rem .45rem;border-radius:999px;background:#111c53;color:#fff;font-size:.72rem}.community-badge-pin{background:#8d6a19}.community-item-label{width:100%;color:#735c2c;font-size:.86rem}.community-replies{display:grid;gap:.65rem;margin:1rem 0 1rem 1.25rem;padding-left:1rem;border-left:2px solid rgba(180,147,67,.35)}.community-replies article{padding:.8rem;background:rgba(246,231,175,.18)}.community-actions{margin-top:.7rem}.community-actions form{margin:0}.community-actions button,.community-reply-box button,.community-pagination a,.image-request-form button{border:0;background:none;color:#263983;text-decoration:underline;cursor:pointer;font:inherit}.community-closed,.community-login,.community-empty,.community-tombstone,.image-request-status{padding:.8rem 1rem;background:rgba(246,231,175,.35)}.community-spoiler summary,.community-reply-box summary{cursor:pointer;color:#263983}.community-pagination{justify-content:center;margin-top:1rem}.community-reply-pagination{justify-content:flex-start;font-size:.86rem}.piece-comment,.image-request-form,.image-request-status{margin-top:.55rem}.image-request-status span{display:block;margin-top:.3rem}.work-card form label{display:grid;gap:.35rem;margin:.65rem 0}.work-card textarea,.work-card input,.work-card select{box-sizing:border-box;max-width:100%;padding:.55rem;font:inherit}
.community-pagination a{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:44px;min-height:44px;max-width:100%;padding:.55rem .8rem;white-space:normal;overflow-wrap:anywhere;text-underline-offset:.2em}.community-pagination a:focus-visible{outline:3px solid #263983;outline-offset:2px;border-radius:4px}
.piece-login-link{display:block;margin-top:.55rem;color:#263983}
.community-list,.community-note,.community-replies article,.image-request-status{min-width:0;overflow-wrap:anywhere}
@media(max-width:640px){.community-section{margin:2rem .65rem}.community-note>header time{margin-left:0;width:100%}.community-replies{margin-left:.35rem}}
.community-image-upload{display:grid;gap:.45rem;margin-top:.6rem;color:#51485c;font-size:.9rem}.community-image-upload small{font-size:.78rem;color:#7d7580}.community-file-picker{position:relative;display:inline-flex;align-items:center;gap:.65rem;min-height:42px;width:fit-content;max-width:100%;color:#706879}.community-file-picker-button{display:inline-grid;place-items:center;min-height:38px;padding:0 .9rem;border:1px solid #c6a561;border-radius:7px;background:#f7e9ce;color:#8f2942;font-weight:600}.community-file-picker:hover .community-file-picker-button{background:#f0dfbb}.community-file-picker:focus-within .community-file-picker-button{outline:3px solid #c9962e;outline-offset:2px}.community-file-picker input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.community-upload-previews{display:flex;flex-wrap:wrap;gap:.5rem}.community-upload-preview{position:relative;display:grid;grid-template-columns:54px minmax(0,1fr);align-items:center;gap:.5rem;max-width:230px;min-width:0;padding:.35rem .5rem;border:1px solid rgba(180,147,67,.3);border-radius:8px;background:#fffaf1;font-size:.76rem}.community-upload-preview img{width:54px;height:54px;object-fit:cover;border-radius:5px;background:#eee4d2}.community-upload-preview span{overflow-wrap:anywhere}.community-upload-preview.is-invalid{border-color:#a32c46;background:#fff0ed;color:#9b273f}.community-upload-error{margin:0;color:#9b273f;font-size:.82rem}.community-comment-images{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:.75rem}.community-comment-images a{display:block;width:min(150px,30vw);aspect-ratio:1;overflow:hidden;border-radius:6px;background:#ede5d8}.community-comment-images img{width:100%;height:100%;object-fit:cover}.community-body-rich{display:flex;flex-wrap:wrap;align-items:flex-start;gap:.6rem .75rem;margin-top:.65rem;line-height:1.75}.community-body-rich>span{flex:1 1 100%;min-width:0}.community-inline-image{display:inline-flex;max-width:min(220px,42%);border:1px solid rgba(180,147,67,.4);border-radius:6px;overflow:hidden;background:#ede5d8}.community-inline-image img{display:block;width:100%;height:auto;max-height:240px;object-fit:contain}
.community-upload-state{display:grid;gap:.45rem;padding:.65rem .8rem;border:1px solid #c6a561;border-radius:8px;background:#fffaf1}.community-upload-state[hidden]{display:none}.community-upload-state progress{display:block;width:100%;height:14px;accent-color:#a32c46}.community-upload-state p{margin:0;color:#51485c;font-size:.85rem}.community-file-picker input:disabled{cursor:wait}
.community-upload-state progress[hidden]{display:none}
.community-note.is-pinned{border-left:3px solid #b49343;padding-left:20px;box-shadow:none}
