.athos-reactions { margin:0; padding:16px 0 0; border:0; position:relative; }
.athos-reactions::before { content:""; position:absolute; inset-inline:0; top:8px; height:1px; background:var(--wk-line-soft,#d5dde3); pointer-events:none; }
.athos-reactions-form { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0; padding:0; }
.athos-reactions .athos-reaction { appearance:none; box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:32px; min-width:56px; padding:4px 8px; border:1px solid #d5dde3; border-radius:4px; background:#fff; color:#526a79; font-weight:500; font-family:inherit; font-size:12px; line-height:1.3; box-shadow:none; text-decoration:none; }
.athos-reactions button.athos-reaction { cursor:pointer; }
.athos-reactions .athos-reaction .icon { color:inherit; margin:0; font-size:14px; }
.athos-reactions button.athos-reaction:hover,.athos-reactions button.athos-reaction.is-selected { color:var(--athos-sea,#255867); background:#e4eff1; border-color:#8baeb7; }
.athos-reactions button.athos-reaction:focus-visible { outline:2px solid #255867; outline-offset:2px; }
.athos-reactions button.athos-reaction:disabled { opacity:.65; cursor:default; }
.athos-reactions-status { display:block; font-size:12px; color:#526a79; }
.athos-reactions-status:not(:empty) { margin-top:8px; }
.athos-reactions-status.is-error { color:#983b43; }
.athos-reactions-status.is-success { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
@media (max-width:560px) { .athos-reactions .athos-reaction { min-height:40px; min-width:48px; } }

/* Athos: reakcje i powrót na górę w jednym dolnym wierszu posta.
   Wyłącznie posty z widocznymi reakcjami; bez zmian siatki profilu. */
#page-body .post.has-profile:not(.pm) > .inner > .postbody:has(> [id^="post_content"]:not([hidden]):not([style*="display: none"]) > .athos-reactions .athos-reaction) {
    display:flex;
    flex-direction:column;
}
#page-body .post.has-profile:not(.pm) > .inner > .postbody > [id^="post_content"]:has(> .athos-reactions .athos-reaction) {
    flex:1 1 auto;
    display:flex;
    flex-direction:column;
    min-width:0;
}
#page-body .post.has-profile:not(.pm) .postbody > [id^="post_content"] > .athos-reactions:has(.athos-reaction) {
    margin-top:auto;
    padding-top:16px;
    padding-inline-end:32px;
    position:relative;
}
#page-body .post.has-profile:not(.pm):has(> .inner > .postbody > [id^="post_content"]:not([hidden]):not([style*="display: none"]) > .athos-reactions .athos-reaction) > .inner > .back2top {
    position:absolute;
    inset-inline-end:16px;
    bottom:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    height:32px;
    width:24px;
    padding:0;
    margin:0;
}
@media (max-width:560px) {
    #page-body .post.has-profile:not(.pm):has(> .inner > .postbody > [id^="post_content"]:not([hidden]):not([style*="display: none"]) > .athos-reactions .athos-reaction) > .inner > .back2top { height:40px; }
}
