.comment-engagement-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    min-height: 34px;
    margin-top: 10px;
}

.comment-engagement-row > .comment-reply.comment-actions-right {
    flex: 0 0 auto;
    margin-top: 0;
}

.comment-reactions,
.comment-reaction-list,
.comment-reaction-chip,
.comment-reaction-add,
.comment-reaction-picker,
.comment-reaction-person-card,
.comment-reaction-scatter,
.comment-list .comment-reply,
.comment-list .comment-actions,
.comment-list .comment-actions a,
.comment-list .comment-meta a,
.comment-list .comment-expand__toggle,
.comment-list .pinned-comment-label,
.comment-list .homework-comment-label,
.comment-list .comment-author img {
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.comment-list .comment-reply a,
.comment-list .comment-actions a,
.comment-list .comment-meta a,
.comment-list .comment-expand__toggle,
.comment-list .comment-author img {
    -webkit-user-drag: none;
}

.comment-list .comment-reply a,
.comment-list .comment-actions a,
.comment-list .comment-expand__toggle {
    touch-action: manipulation;
}

.comment-expand__summary {
    display: block;
    cursor: default;
}

.comment-expand__summary[hidden],
.comment-expand .comment-full[hidden] {
    display: none !important;
}

.comment-expand__preview {
    cursor: text;
}

.comment-expand__footer {
    margin-top: 10px;
}

button.comment-expand__toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 27px;
    margin-left: 7px;
    padding: 3px 8px;
    border: 1px solid rgba(64, 126, 201, .16);
    border-radius: 6px;
    background: rgba(64, 126, 201, .055);
    color: #356fa8;
    font-size: 12px;
    font-weight: 650;
    line-height: 1;
    vertical-align: baseline;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 160ms ease;
}

button.comment-expand__toggle--less {
    margin-left: 0;
}

button.comment-expand__toggle:hover {
    border-color: rgba(64, 126, 201, .28);
    background: rgba(64, 126, 201, .1);
    color: #285f94;
}

button.comment-expand__toggle:active {
    transform: scale(.96);
}

html[data-theme="dark"] button.comment-expand__toggle {
    border-color: rgba(110, 176, 240, .18);
    background: rgba(70, 130, 190, .1);
    color: #9bc7ed;
}

html[data-theme="dark"] button.comment-expand__toggle:hover {
    border-color: rgba(110, 176, 240, .3);
    background: rgba(70, 130, 190, .17);
    color: #c2def5;
}

.comment-reactions {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    flex: 1 1 auto;
    gap: 6px;
    min-width: 30px;
    max-width: 100%;
}

.comment-reaction-list {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    flex: 1 1 auto;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
}

.comment-reaction-list:empty {
    display: none;
}

.comment-reaction-chip,
.comment-reaction-add,
.comment-reaction-picker button {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}

.comment-reaction-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    padding: 3px 4px 3px 8px;
    border: 1px solid rgba(40, 48, 60, .1);
    border-radius: 999px;
    background: rgba(248, 249, 251, .9);
    color: #343a43;
    box-sizing: border-box;
    flex: 0 0 auto;
    white-space: nowrap;
    cursor: default;
    box-shadow: 0 1px 2px rgba(24, 32, 44, .035);
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        box-shadow 180ms ease,
        transform 180ms cubic-bezier(.2, .85, .25, 1);
}

button.comment-reaction-chip {
    cursor: pointer;
}

button.comment-reaction-chip:not(.is-mine):hover {
    border-color: rgba(40, 48, 60, .17);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 4px 10px rgba(24, 32, 44, .08);
    transform: translateY(-1px);
}

button.comment-reaction-chip.is-mine:hover {
    border-color: rgba(64, 126, 201, .26);
    background: rgba(230, 241, 253, .82);
    box-shadow: 0 5px 12px rgba(36, 84, 135, .09);
}

button.comment-reaction-chip:active {
    transform: scale(.94);
}

.comment-reaction-chip.is-mine {
    border-color: rgba(64, 126, 201, .28);
    background: rgba(226, 240, 254, .88);
    color: #315f91;
}

.comment-reaction-chip.is-new {
    animation: comment-reaction-chip-in 380ms cubic-bezier(.18, 1.35, .42, 1) both;
}

.comment-reaction-chip__emoji {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    font-size: 16px;
    line-height: 1;
}

.comment-reaction-chip__avatar {
    display: block;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(255, 255, 255, .92);
    border-radius: 50%;
    background: #e9edf2;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
}

.comment-reaction-add {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: #757c86;
    cursor: pointer;
    transition:
        color 150ms ease,
        border-color 150ms ease,
        background-color 150ms ease,
        transform 180ms cubic-bezier(.2, .85, .25, 1);
}

.comment-reaction-add[hidden] {
    display: none;
}

button.comment-reaction-add:hover {
    border-color: rgba(40, 48, 60, .1);
    background: rgba(31, 41, 55, .05);
    color: #a84d45;
}

button.comment-reaction-add:active {
    transform: scale(.88);
}

.comment-reaction-add:focus-visible,
.comment-reaction-chip:focus-visible,
.comment-reaction-picker button:focus-visible {
    outline: 2px solid rgba(64, 126, 201, .34);
    outline-offset: 2px;
}

.comment-reaction-add__icon {
    display: block;
    width: 20px;
    height: 20px;
    overflow: hidden;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78L12 21.23l8.84-8.84a5.5 5.5 0 0 0 0-7.78Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78L12 21.23l8.84-8.84a5.5 5.5 0 0 0 0-7.78Z'/%3E%3C/svg%3E") center / contain no-repeat;
    text-indent: -999px;
}

.comment-reactions.is-loading {
    opacity: .52;
}

.comment-reaction-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.comment-reaction-picker {
    position: fixed;
    z-index: 4900;
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 48px;
    padding: 6px;
    border: 1px solid rgba(28, 35, 46, .1);
    border-radius: 12px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 16px 38px rgba(23, 30, 42, .17);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px) scale(.975);
    transform-origin: top left;
    transition:
        opacity 160ms ease,
        visibility 160ms ease,
        transform 210ms cubic-bezier(.2, .9, .25, 1);
}

.comment-reaction-picker.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.comment-reaction-picker.is-above {
    transform-origin: bottom left;
}

.comment-reaction-picker__option {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: inherit;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease, transform 180ms cubic-bezier(.2, .9, .25, 1);
}

button.comment-reaction-picker__option:hover {
    border-color: rgba(40, 48, 60, .08);
    background: rgba(31, 41, 55, .055);
    transform: translateY(-2px) scale(1.06);
}

.comment-reaction-picker__option.is-selected {
    border-color: rgba(64, 126, 201, .22);
    background: rgba(226, 240, 254, .9);
}

.comment-reaction-picker__remove {
    height: 32px;
    margin-left: 3px;
    padding: 0 9px;
    border: 0;
    border-left: 1px solid rgba(40, 48, 60, .1);
    border-radius: 0 7px 7px 0;
    background: transparent;
    color: #8b5250;
    font-size: 11px;
    font-weight: 650;
    cursor: pointer;
}

.comment-reaction-person-card {
    position: fixed;
    z-index: 5000;
    display: flex;
    align-items: center;
    gap: 11px;
    width: max-content;
    min-width: 196px;
    max-width: min(260px, calc(100vw - 20px));
    min-height: 62px;
    padding: 10px 12px;
    border: 1px solid rgba(28, 35, 46, .1);
    border-radius: 10px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 14px 34px rgba(23, 30, 42, .16);
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px) scale(.975);
    transform-origin: top center;
    transition:
        opacity 150ms ease,
        visibility 150ms ease,
        transform 200ms cubic-bezier(.2, .9, .25, 1);
}

.comment-reaction-person-card.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.comment-reaction-person-card.is-above {
    transform-origin: bottom center;
}

.comment-reaction-person-card__avatar {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(31, 41, 55, .08);
    border-radius: 50%;
    background: #e9edf2;
    object-fit: cover;
    -webkit-user-drag: none;
}

.comment-reaction-person-card__body {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.comment-reaction-person-card__name {
    overflow: hidden;
    color: #252b34;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.comment-reaction-person-card__reaction {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #707781;
    font-size: 11px;
    line-height: 1.3;
}

.comment-reaction-person-card__emoji {
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    font-size: 15px;
    line-height: 1;
}

button.comment-reaction-picker__remove:hover {
    background: rgba(170, 75, 67, .06);
    color: #983f39;
}

.comment-reaction-scatter {
    position: fixed;
    z-index: 5200;
    width: 1px;
    height: 1px;
    pointer-events: none;
    contain: layout style;
}

.comment-reaction-scatter__center,
.comment-reaction-scatter__particle {
    position: absolute;
    left: 0;
    top: 0;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    line-height: 1;
    backface-visibility: hidden;
}

.comment-reaction-scatter__center {
    font-size: 32px;
    animation: comment-reaction-center-pop 880ms cubic-bezier(.16, .86, .25, 1) both;
}

.comment-reaction-scatter__particle {
    font-size: 16px;
    opacity: 0;
    will-change: transform, opacity;
    animation: comment-reaction-scatter-out var(--scatter-duration, 1500ms) linear both;
    animation-delay: var(--scatter-delay, 0ms);
}

.comment-reaction-scatter__particle.uses-physics-animation {
    animation: none;
}

.comment-reaction-card-pulse {
    animation: comment-reaction-card-pulse 420ms cubic-bezier(.2, .8, .2, 1);
}

.comment-reactions.has-error .comment-reaction-add,
.comment-reactions.has-error .comment-reaction-chip.is-mine {
    animation: comment-reaction-error 320ms ease;
}

html[data-theme="dark"] .comment-reaction-chip {
    border-color: rgba(255, 255, 255, .09);
    background: rgba(255, 255, 255, .045);
    color: #c5ccd6;
    box-shadow: none;
}

html[data-theme="dark"] button.comment-reaction-chip:not(.is-mine):hover {
    border-color: rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .075);
}

html[data-theme="dark"] button.comment-reaction-chip.is-mine:hover {
    border-color: rgba(110, 176, 240, .24);
    background: rgba(70, 130, 190, .12);
}

html[data-theme="dark"] .comment-reaction-chip.is-mine {
    border-color: rgba(110, 176, 240, .28);
    background: rgba(70, 130, 190, .16);
    color: #b8d8f5;
}

html[data-theme="dark"] .comment-reaction-chip__avatar {
    border-color: rgba(20, 24, 33, .92);
    background: #252b36;
}

html[data-theme="dark"] .comment-reaction-add {
    color: #9ca6b3;
}

html[data-theme="dark"] button.comment-reaction-add:hover {
    border-color: rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .055);
    color: #e08b82;
}

html[data-theme="dark"] .comment-reaction-picker {
    border-color: rgba(255, 255, 255, .09);
    background: rgba(20, 24, 33, .98);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .42);
}

html[data-theme="dark"] .comment-reaction-person-card {
    border-color: rgba(255, 255, 255, .09);
    background: rgba(20, 24, 33, .98);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .42);
}

html[data-theme="dark"] .comment-reaction-person-card__avatar {
    border-color: rgba(255, 255, 255, .08);
    background: #252b36;
}

html[data-theme="dark"] .comment-reaction-person-card__name {
    color: #e5e9ef;
}

html[data-theme="dark"] .comment-reaction-person-card__reaction {
    color: #aab2be;
}

html[data-theme="dark"] button.comment-reaction-picker__option:hover {
    border-color: rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .06);
}

html[data-theme="dark"] .comment-reaction-picker__option.is-selected {
    border-color: rgba(110, 176, 240, .25);
    background: rgba(70, 130, 190, .18);
}

html[data-theme="dark"] .comment-reaction-picker__remove {
    border-left-color: rgba(255, 255, 255, .1);
    color: #d69791;
}

html[data-theme="dark"] button.comment-reaction-picker__remove:hover {
    background: rgba(215, 112, 102, .09);
    color: #efaaa2;
}

@keyframes comment-reaction-chip-in {
    0% { opacity: 0; transform: translateX(-8px) scale(.68); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes comment-reaction-center-pop {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(.35) rotate(-10deg); }
    28% { opacity: 1; transform: translate(-50%, -62%) scale(1.28) rotate(5deg); }
    68% { opacity: 1; transform: translate(-50%, -78%) scale(1.02) rotate(0); }
    100% { opacity: 0; transform: translate(-50%, -96%) scale(.94) rotate(0); }
}

@keyframes comment-reaction-scatter-out {
    0% { opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.28); }
    10% { opacity: 1; }
    42% { opacity: 1; transform: var(--scatter-apex-transform); }
    76% { opacity: 1; }
    100% {
        opacity: 0;
        transform: var(--scatter-end-transform);
    }
}

@keyframes comment-reaction-card-pulse {
    0%, 100% { box-shadow: none; }
    48% { box-shadow: 0 0 0 3px rgba(183, 75, 67, .08), 0 7px 18px rgba(35, 44, 57, .055); }
}

@keyframes comment-reaction-error {
    0%, 100% { transform: translateX(0); }
    30% { transform: translateX(-3px); }
    65% { transform: translateX(3px); }
}

@media (max-width: 560px) {
    .comment-engagement-row {
        gap: 9px;
        flex-wrap: wrap;
    }

    .comment-engagement-row > .comment-reply.comment-actions-right {
        margin-left: auto;
    }

    .comment-reactions {
        flex: 1 1 100%;
        width: 100%;
    }

    .comment-reaction-chip {
        height: 32px;
    }

    .comment-reaction-add {
        width: 32px;
        height: 32px;
    }

    .comment-reaction-picker {
        max-width: calc(100vw - 20px);
        overflow-x: auto;
    }
}

@media (hover: none) {
    button.comment-reaction-chip:not(.is-mine):hover {
        border-color: rgba(40, 48, 60, .1);
        background: rgba(248, 249, 251, .9);
        box-shadow: 0 1px 2px rgba(24, 32, 44, .035);
        transform: none;
    }

    button.comment-reaction-chip.is-mine:hover {
        border-color: rgba(64, 126, 201, .28);
        background: rgba(226, 240, 254, .88);
        box-shadow: 0 1px 2px rgba(24, 32, 44, .035);
        transform: none;
    }

    button.comment-reaction-add:hover {
        border-color: transparent;
        background: transparent;
        color: #757c86;
    }

    button.comment-expand__toggle:hover {
        border-color: rgba(64, 126, 201, .16);
        background: rgba(64, 126, 201, .055);
        color: #356fa8;
        transform: none;
    }

    html[data-theme="dark"] button.comment-reaction-chip:not(.is-mine):hover {
        border-color: rgba(255, 255, 255, .09);
        background: rgba(255, 255, 255, .045);
    }

    html[data-theme="dark"] button.comment-reaction-chip.is-mine:hover {
        border-color: rgba(110, 176, 240, .28);
        background: rgba(70, 130, 190, .16);
    }

    html[data-theme="dark"] button.comment-reaction-add:hover {
        border-color: transparent;
        background: transparent;
        color: #9ca6b3;
    }

    html[data-theme="dark"] button.comment-expand__toggle:hover {
        border-color: rgba(110, 176, 240, .18);
        background: rgba(70, 130, 190, .1);
        color: #9bc7ed;
    }
}

@media (prefers-reduced-motion: reduce) {
    .comment-reaction-chip,
    .comment-reaction-add,
    .comment-reaction-picker,
    .comment-reaction-person-card,
    .comment-reaction-picker button {
        transition-duration: 1ms !important;
    }

    .comment-reaction-chip.is-new,
    .comment-reaction-scatter,
    .comment-reaction-card-pulse,
    .comment-reactions.has-error .comment-reaction-add,
    .comment-reactions.has-error .comment-reaction-chip.is-mine {
        animation: none !important;
    }
}
