.w360-engagement{margin:24px 0;padding:18px;border:1px solid var(--bs-border-color,#665b4b);border-radius:12px;background:var(--bs-body-bg,#25221d);color:inherit}
.w360-eng-toolbar{display:flex;align-items:center;gap:14px;margin-bottom:15px}.w360-eng-toolbar button{background:transparent;color:inherit;border:1px solid #786d5c;border-radius:8px;padding:8px 13px;cursor:pointer}.w360-eng-like[aria-pressed=true]{color:#d6a85e}
.w360-eng-comments{display:flex;flex-direction:column;gap:12px}.w360-eng-comment{padding:10px 12px;background:rgba(127,127,127,.08);border-radius:8px;overflow-wrap:anywhere}.w360-eng-comment.is-reply{margin-left:20px;border-left:2px solid #a48351}.w360-eng-comment p{white-space:pre-wrap;margin:6px 0}.w360-eng-comment-actions{display:flex;gap:12px}.w360-eng-comment-actions button,.w360-eng-cancel{border:0;background:none;color:inherit;text-decoration:underline;cursor:pointer;padding:3px}.w360-eng-form{margin-top:15px}.w360-eng-form textarea{display:block;width:100%;min-height:75px;padding:10px;border-radius:8px;background:var(--bs-body-bg,#25221d);color:inherit;border:1px solid #786d5c}.w360-eng-form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:8px}.w360-eng-form-actions button[type=submit]{padding:8px 14px;border:0;border-radius:8px;background:#a48351;color:#17130f;cursor:pointer}.w360-eng-mention-menu{position:relative;max-height:180px;overflow:auto;border:1px solid #786d5c;border-radius:8px}.w360-eng-mention-menu button{display:block;width:100%;padding:8px;text-align:left;background:var(--bs-body-bg,#25221d);color:inherit;border:0;cursor:pointer}.w360-eng-highlight{outline:2px solid #c99a43}
#w360-lb-panel .w360-engagement{margin:0;border:0;border-radius:0}

.w360-lb-like{padding:8px 12px;background:transparent;border:1px solid #786d5c;border-radius:8px;color:inherit;cursor:pointer;margin:10px 0}

/* Shared comments: match the Feed's author identity and metadata. */
.w360-eng-comment-header{display:flex;align-items:center;gap:10px;min-height:38px}
.w360-eng-avatar{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;border-radius:50%;background:rgba(127,127,127,.16);color:inherit;overflow:hidden;text-decoration:none}
.w360-eng-avatar-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0}
.w360-eng-avatar-photo.is-loaded{opacity:1}
.w360-eng-avatar.has-avatar>i{display:none}
.w360-eng-comment-meta{display:flex;flex-direction:column;gap:2px;min-width:0}
.w360-eng-author{font-weight:600;color:inherit;text-decoration:none;overflow-wrap:anywhere}
.w360-eng-author:hover{text-decoration:underline;color:var(--bs-link-hover-color,#c99a43)}
.w360-eng-time{font-size:.78rem;color:var(--bs-secondary-color,#a8a19a)}
.w360-eng-comment>p{margin:8px 0 6px}

/* Author links use the same gold colour as Hobby Feed profile links. */
.w360-engagement .w360-eng-author,.w360-engagement .w360-eng-author:visited{color:var(--gold,#c99a43);text-decoration:none}
.w360-engagement .w360-eng-author:hover{color:var(--gold,#c99a43);text-decoration:underline}

/* Shared comment actions: Reply stays visible; other actions live in the three-dot menu. */
.w360-eng-comment-header{position:relative}
.w360-eng-comment-menu{position:relative;margin-left:auto;align-self:flex-start}
.w360-eng-menu-toggle{display:flex;align-items:center;justify-content:center;width:34px;height:32px;background:transparent;color:inherit;border:1px solid #a48351;border-radius:8px;cursor:pointer}
.w360-eng-menu-panel{position:absolute;right:0;top:calc(100% + 4px);z-index:30;min-width:145px;padding:5px;background:#29241e;border:1px solid #a48351;border-radius:8px;box-shadow:0 6px 20px rgba(0,0,0,.35)}
.w360-eng-menu-panel[hidden]{display:none}
.w360-eng-menu-panel button{display:block;width:100%;padding:9px 12px;text-align:left;background:none;border:0;color:inherit;cursor:pointer;border-radius:5px}
.w360-eng-menu-panel button:hover,.w360-eng-menu-panel button:focus-visible{background:rgba(164,131,81,.2)}
.w360-eng-edited{font-size:.75rem;color:#b9aa94}
.w360-eng-edit-form textarea{width:100%;min-height:75px;padding:10px;border:1px solid #786d5c;border-radius:8px;background:#25221d;color:inherit}
.w360-eng-edit-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:8px}
.w360-eng-edit-actions button{padding:7px 13px;border:1px solid #a48351;border-radius:7px;background:transparent;color:inherit;cursor:pointer}
.w360-eng-edit-actions button[type=submit]{background:#a48351;color:#17130f}

/* One canonical engagement row on Feed cards and original content pages. */
.w360-engagement{margin:12px 0 0;padding:0;border:0;border-radius:0;background:transparent}
.w360-eng-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:0 0 14px;padding:7px 0;border-top:1px solid var(--border,#665b4b);border-bottom:1px solid var(--border,#665b4b)}
.w360-eng-toolbar button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;border:0;border-radius:0;background:transparent;color:var(--muted,#b6ada2);font:inherit;font-size:.9rem;padding:8px 4px;cursor:pointer}
.w360-eng-toolbar button:hover,.w360-eng-toolbar button[aria-pressed=true]{color:var(--gold,#c99a43)}
.w360-eng-number{font-size:.78rem;font-variant-numeric:tabular-nums}
.w360-eng-comments:empty{display:none}
.w360-eng-form[hidden]{display:none!important}
.w360-eng-form{margin:12px 0 0}
.w360-engagement.is-feed{margin:12px 0 0}
@media(max-width:480px){.w360-eng-toolbar button{font-size:.82rem;gap:5px}}

/* Keep comment writing and editing typography consistent with the rest of 360v8. */
.w360-eng-form textarea,
.w360-eng-edit-form textarea {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: normal;
}
