.community-board{width:min(100%,820px);margin:0 auto 4rem;display:grid;gap:1.1rem}
.community-composer,.community-post{background:#1a2039;border:1px solid #343e5d;border-radius:20px;box-shadow:0 12px 32px rgba(0,0,0,.1)}
.community-composer{padding:1.25rem;display:grid;gap:.75rem}
.community-composer>label{font-weight:800;color:#f6f7ff}
.community-composer textarea,.community-report-dialog textarea,.community-report-dialog select{width:100%;box-sizing:border-box;min-height:100px;padding:.9rem 1rem;border:1px solid #46506d;border-radius:12px;background:#10162b;color:#fff;font:inherit;resize:vertical}
.community-composer textarea{font-size:16px;line-height:1.5;min-height:116px}
.community-editor-toolbar{display:flex;align-items:center;gap:.4rem;margin-bottom:-.25rem;min-width:0}
.community-format-button{display:grid;place-items:center;min-width:44px;min-height:44px;padding:0;border:1px solid #46506d;border-radius:10px;background:#222c47;color:#f6f7ff;font:inherit;font-size:1rem;cursor:pointer}
.community-format-button:hover{border-color:#78dfcd;background:#2b3956}
.community-share-preview .community-shared-card{margin:.3rem 0 0}
.community-share-preview[hidden]{display:none}
.community-share-warning{margin:.25rem 0 0;color:#ffd7a7;font-size:.81rem}
.community-share-valid{margin:.25rem 0 0;color:#a8efdc;font-size:.81rem}
.community-preview .community-share-warning{color:#ffd7a7}
.community-preview .community-share-valid{color:#a8efdc}
.community-mention-list[hidden]{display:none}
.community-mention-list{display:grid;gap:.2rem;margin-top:-.45rem;padding:.35rem;border:1px solid #4d6d73;border-radius:10px;background:#162d3c;box-shadow:0 14px 28px #0005}
.community-mention-option{display:flex;align-items:center;gap:.6rem;min-height:44px;padding:.45rem .65rem;border:0;border-radius:8px;background:transparent;color:#e7f7ff;font:inherit;text-align:left;cursor:pointer}
.community-mention-option span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#b0c5d1;font-size:.83rem}
.community-mention-option:hover,.community-mention-option[aria-selected=true]{background:#315466}
.community-emoji-group{display:flex;align-items:center;gap:.25rem;margin-left:.45rem;padding-left:.85rem;border-left:1px solid #45516c}
.community-emoji-button{display:grid;place-items:center;min-width:44px;min-height:44px;padding:0;border:1px solid transparent;border-radius:10px;background:transparent;color:#fff;font:inherit;font-size:1.25rem;line-height:1;cursor:pointer;transition:transform .15s ease,background .15s ease,border-color .15s ease}
.community-emoji-button:hover{transform:translateY(-2px);border-color:#46506d;background:#293651}
.community-format-button:focus-visible,.community-emoji-button:focus-visible,.community-mention-option:focus-visible{outline:3px solid #78dfcd;outline-offset:2px}
.community-preview{padding:.75rem .9rem;border:1px solid #34425c;border-radius:10px;background:#151d34;min-width:0}
.community-preview[hidden]{display:none}
.community-preview-label{display:block;margin-bottom:.35rem;color:#8de4d5;font-size:.74rem;font-weight:800}
.community-preview p{margin:0;color:#f2f4fc;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.community-preview p[hidden]{display:none}
.community-composer textarea:focus-visible,.community-report-dialog textarea:focus-visible,.community-report-dialog select:focus-visible,.community-action:focus-visible,.community-report-dialog button:focus-visible{outline:3px solid #78dfcd;outline-offset:3px}
.community-composer-footer{display:flex;align-items:center;justify-content:space-between;gap:1rem;color:#aeb9d2}
.community-composer-footer .button{min-height:44px}
.community-reply-target{display:flex;align-items:center;justify-content:space-between;gap:.7rem;padding:.45rem .7rem;background:#26304a;border-radius:9px;color:#85e5d3;font-size:.88rem}
.community-reply-target[hidden]{display:none}
.community-reply-target button{background:none;border:0;color:inherit;min-width:44px;min-height:44px;font-size:1.4rem;cursor:pointer}
.community-feed{display:grid;gap:.85rem}
.community-post{padding:1.2rem;min-width:0}
.community-post-highlighted{border-color:#78dfcd;box-shadow:0 0 0 2px #78dfcd33,0 12px 32px rgba(0,0,0,.14);scroll-margin-top:2rem}
.community-recent-link{display:inline-flex;align-items:center;min-height:44px;width:max-content;max-width:100%;color:#91eddd;font-size:.84rem;font-weight:800;text-decoration:none}
.community-recent-link:hover{text-decoration:underline}
.community-recent-link:focus-visible{outline:3px solid #78dfcd;outline-offset:3px}
.community-post-deleted{border-color:#756077;background:#211f35}
.community-moderation-note{margin:.9rem 0 0;padding:.7rem .85rem;border:1px solid #856070;border-radius:10px;background:#3a2739;color:#ffe0e8;font-size:.85rem;line-height:1.4}
.community-deleted-details>.community-body{margin:.85rem .15rem .2rem}
.community-post-head{display:flex;justify-content:space-between;align-items:center;gap:.8rem;min-width:0}
.community-profile{display:flex;align-items:center;gap:.7rem;min-width:0;color:#fff;text-decoration:none}
.community-avatar{width:42px;height:42px;flex:none;border-radius:50%;display:grid;place-items:center;background:#283758;color:#ffda57;font-weight:800;overflow:hidden}
.community-avatar-image{width:100%;height:100%;object-fit:cover}
.community-identity{display:grid;min-width:0;line-height:1.25}
.community-identity strong,.community-identity span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.community-identity span,.community-time{color:#aab6d0;font-size:.8rem}
.community-time{text-align:right;flex:none}
.community-body{margin:.95rem 0;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;color:#f2f4fc}
.community-context{margin:.9rem 0 0;padding:.25rem .8rem;border-left:3px solid #70d8ca;background:#222d47;border-radius:0 8px 8px 0;color:#8ee6d8;font-size:.82rem}
.community-context-unavailable{padding:.75rem .8rem}
.community-context-body{margin:0;padding:.35rem 0 .65rem;color:#d7e3f7;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.community-context>summary,.community-deleted-details>summary{display:flex;align-items:center;justify-content:space-between;gap:.75rem;min-height:48px;cursor:pointer;list-style:none;overflow-wrap:anywhere}
.community-context>summary::-webkit-details-marker,.community-deleted-details>summary::-webkit-details-marker{display:none}
.community-disclosure-cue{display:inline-flex;align-items:center;gap:.45rem;flex:none;padding:.32rem .42rem .32rem .7rem;border:1px solid #498178;border-radius:999px;background:#163d43;color:#b9f6e9;font-size:.75rem;font-weight:800;line-height:1.2}
.community-disclosure-deleted{border-color:#956778;background:#543346;color:#ffe1e8}
.community-disclosure-context .community-disclosure-label::before{content:'Leer completo'}
.community-disclosure-deleted .community-disclosure-label::before{content:'Ver mensaje'}
.community-context[open] .community-disclosure-label::before,.community-deleted-details[open] .community-disclosure-label::before{content:'Ocultar'}
.community-disclosure-arrow{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#ffffff21}
.community-disclosure-arrow::before{content:'';width:6px;height:6px;margin-top:-3px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .18s ease,margin .18s ease}
.community-context[open] .community-disclosure-arrow::before,.community-deleted-details[open] .community-disclosure-arrow::before{margin-top:3px;transform:rotate(225deg)}
.community-context>summary:hover .community-disclosure-cue,.community-deleted-details>summary:hover .community-disclosure-cue{filter:brightness(1.2)}
.community-context>summary:focus-visible,.community-deleted-details>summary:focus-visible{outline:3px solid #78dfcd;outline-offset:3px}
.community-inline-link{color:#80e8d5;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
.community-inline-link:hover{color:#c0fff2}
.community-shared-card{display:flex;align-items:center;gap:1rem;min-height:220px;margin:.95rem 0;padding:.8rem;border:1px solid #426976;border-radius:14px;background:#172d40;color:#fff;text-decoration:none;min-width:0;transition:border-color .16s ease,background .16s ease,transform .16s ease}
.community-shared-card:hover{border-color:#78dfcd;background:#1d3a4d;transform:translateY(-1px)}
.community-shared-card:focus-visible{outline:3px solid #78dfcd;outline-offset:3px}
.community-shared-image{width:145px;height:204px;flex:none;object-fit:contain;border-radius:8px;background:#111b2c}
.community-shared-image[hidden]{display:none}
.community-shared-placeholder{width:145px;height:204px;flex:none;display:grid;place-items:center;border-radius:8px;background:#254b56;color:#91f2df;font-size:.76rem;font-weight:800;text-align:center}
.community-shared-copy{display:grid;align-content:center;gap:.4rem;min-width:0}
.community-shared-kind{color:#8fe9d9;font-size:.69rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.community-shared-copy strong{font-size:1.08rem;line-height:1.3;overflow-wrap:anywhere}
.community-shared-subtitle{color:#bed0db;font-size:.81rem;line-height:1.4;overflow-wrap:anywhere}
.community-shared-open{margin-top:.35rem;color:#8fe9d9;font-size:.8rem;font-weight:800}
.community-body[hidden]{display:none}
.community-actions{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;border-top:1px solid #323b55;padding-top:.8rem}
.community-action{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:44px;padding:.48rem .78rem;border:1px solid #3d4a67;border-radius:999px;background:#222b45;color:#d7e2f7;font:inherit;font-size:.83rem;font-weight:700;line-height:1.2;cursor:pointer;transition:border-color .15s ease,background .15s ease,color .15s ease,transform .15s ease}
.community-action:hover{border-color:#78dfcd;background:#2b3a58;color:#f4fffd;transform:translateY(-1px)}
.community-action-icon{font-size:1.02rem;line-height:1}
.community-vote-count{min-width:1ch;color:#aebbd5;font-variant-numeric:tabular-nums}
.community-vote-like[aria-pressed=true]{border-color:#65d8c5;background:#234b4e;color:#abf4e7}
.community-vote-dislike[aria-pressed=true]{border-color:#e4b674;background:#594035;color:#ffe1b8}
.community-action[aria-pressed=true] .community-vote-count{color:inherit}
.community-action:disabled{opacity:.6;cursor:default}
.community-own-votes{padding:.45rem .7rem;color:#aebbd5;font-size:.85rem}
.community-report{margin-left:auto;color:#acbad4;background:transparent;border-color:transparent}
.community-report:hover{border-color:#bb8c9b;background:#413042;color:#ffe1e8}
.community-actions.is-moderator .community-report{margin-left:0}
.community-moderate{margin-left:auto}
.community-delete{color:#ffcad5;border-color:#755065;background:#382739}
.community-delete:hover{color:#fff0f3;border-color:#d98fa5;background:#613547}
.community-restore{color:#abeada;border-color:#4c7f78;background:#22413f}
.community-restore:hover{color:#effff8;border-color:#78dfcd;background:#315b53}
.community-more{justify-self:center;min-height:44px}
.community-notice{padding:1rem;color:#b8c5df;text-align:center}
.community-error{color:#ffc7c7;background:#442c3b;border-radius:10px}
.community-report-dialog{width:min(92vw,420px);padding:1.3rem;border:1px solid #495777;border-radius:18px;background:#1b243e;color:#fff;box-shadow:0 20px 60px #0009}
.community-report-dialog::backdrop{background:#050913bd}
.community-report-dialog form{display:grid;gap:.7rem}
.community-report-dialog h2{font-size:1.25rem;margin:0 0 .3rem}
.community-report-dialog label{font-size:.88rem;font-weight:700}
.community-report-dialog select{min-height:46px}
.community-report-actions{display:flex;justify-content:flex-end;gap:.6rem;margin-top:.4rem}
.community-report-actions .button{min-height:44px}
@media(max-width:600px){.community-board{gap:.8rem;margin-bottom:6rem}.community-composer,.community-post{border-radius:16px;padding:1rem}.community-composer textarea{min-height:130px}.community-emoji-group{display:none}.community-post-head{align-items:flex-start}.community-time{font-size:.72rem;max-width:6rem}.community-action{padding:.5rem .68rem}.community-action-label{font-size:.78rem}.community-report{margin-left:0}.community-report-actions{flex-wrap:wrap}.community-report-actions .button{flex:1}}
@media(max-width:600px){.community-shared-card{min-height:174px;gap:.75rem;padding:.65rem}.community-shared-image,.community-shared-placeholder{width:112px;height:157px}.community-shared-copy strong{font-size:.96rem}.community-shared-subtitle{font-size:.74rem}}
@media(max-width:380px){.community-vote .community-action-label{display:none}.community-report{margin-left:auto}.community-emoji-group{gap:.1rem}}

/* Each conversation owns its replies; only two levels consume horizontal space. */
.community-replies{margin-top:1rem;min-width:0}
.community-replies[hidden],.community-replies-panel[hidden],.community-replies-page[hidden]{display:none}
.community-replies-toggle{display:flex;align-items:center;justify-content:space-between;gap:.65rem;width:100%;min-height:46px;padding:.65rem .85rem;border:1px solid #40516c;border-radius:12px;background:#222e47;color:#a5f1df;font:inherit;font-weight:750;font-size:.88rem;text-align:left;cursor:pointer}
.community-replies-toggle:hover{background:#293e53;border-color:#71cdbd}
.community-replies-toggle[aria-expanded=true]{background:#203a47;border-color:#46786f}
.community-replies-toggle[aria-expanded=true] .community-disclosure-arrow::before{margin-top:3px;transform:rotate(225deg)}
.community-replies-panel{margin-top:.8rem;padding-left:16px;border-left:2px solid #3e596b;min-width:0}
.community-replies-list{display:grid;gap:1rem;min-width:0}
.community-replies-list>.community-post{padding:.6rem 0 0;border:0;border-radius:0;background:transparent;box-shadow:none;min-width:0}
.community-replies-list>.community-post+.community-post{border-top:1px solid #34415a;padding-top:1rem}
.community-post-depth-2>.community-replies>.community-replies-panel{padding-left:0;border-left:0}
.community-replies-list .community-post-head{gap:.5rem}
.community-replies-list .community-avatar{width:32px;height:32px;flex:0 0 32px}
.community-reply-context{margin:.3rem 0 .7rem;color:#a0b5ce;font-size:.78rem;overflow-wrap:anywhere}
.community-tombstone{color:#b0b9cd;font-size:.87rem;line-height:1.5;margin:.2rem 0}
.community-replies-page{min-height:44px;padding:.6rem .8rem;margin:.5rem 0;border:1px solid #40516c;border-radius:10px;background:#202b43;color:#a5f1df;font:inherit;font-size:.85rem;cursor:pointer}
.community-replies-page:disabled{opacity:.6;cursor:wait}
.community-replies-toggle:focus-visible,.community-replies-page:focus-visible{outline:3px solid #78dfcd;outline-offset:3px}
.community-branch-status{font-size:.85rem;color:#bac8df;line-height:1.5;overflow-wrap:anywhere}
.community-branch-status:empty{display:none}
.community-post>.community-composer{margin-top:1rem;box-shadow:none;border-color:#568a85}
.community-post-highlighted{outline:2px solid #78dfcd;outline-offset:4px}
@media(max-width:600px){
  .community-replies-panel{padding-left:10px}
  .community-replies-list .community-post-head{flex-wrap:wrap}
  .community-replies-list .community-time{max-width:none;margin-left:40px}
  .community-replies-list .community-profile{max-width:100%;min-width:0}
  .community-replies-list .community-identity{min-width:0;overflow-wrap:anywhere}
  .community-replies-list .community-shared-card{flex-wrap:wrap;justify-content:center}
  .community-replies-list .community-shared-copy{flex:1 1 100px}
  .community-post>.community-composer{padding:.75rem}
}
@media(prefers-reduced-motion:reduce){.community-disclosure-arrow::before{transition:none}}
