.editorial-engagement {
    display: grid;
    gap: 12px;
    min-width: 0;
    margin-block: 28px;
}

.editorial-engagement [hidden] {
    display: none !important;
}

.editorial-engagement-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.editorial-engagement-head h2 {
    margin: 0;
}

.editorial-engagement :is(button, input) {
    min-height: 44px;
}

.editorial-engagement button[aria-disabled=true] {
    cursor: wait;
    opacity: .66;
}

.editorial-engagement :is(.editorial-compose, [data-editorial-more], button[type=submit]) {
    justify-self: start;
}

.editorial-engagement .editorial-like {
    gap: 8px;
    padding-inline: 14px;
}

.editorial-engagement .editorial-like[aria-pressed=true] {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-bg, var(--secondary));
}

.editorial-comment-form {
    display: grid;
    gap: 10px;
    width: min(100%, 680px);
}

.editorial-comment-form label {
    display: grid;
    gap: 4px;
    font-weight: 600;
}

.editorial-comment-form :is(input, textarea) {
    box-sizing: border-box;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    color: var(--text);
    font: inherit;
    font-weight: 400;
}

.editorial-comment-form textarea {
    min-height: 88px;
    resize: vertical;
}

.editorial-comment-form :is(input, textarea):focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.editorial-thread {
    display: grid;
    min-width: 0;
    gap: 8px;
}

.editorial-status:empty {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.editorial-comment {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    overflow-wrap: anywhere;
}

.editorial-comment-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    margin-block-end: 4px;
}

.editorial-comment-byline time,
.editorial-comment-guest {
    color: var(--muted);
    font-size: .8125rem;
}

.editorial-comment p {
    margin: 0;
    white-space: pre-wrap;
}

.editorial-comment-empty,
.editorial-status {
    margin: 0;
    color: var(--muted);
    overflow-wrap: anywhere;
}

@media (max-width: 479px) {
    .editorial-engagement .editorial-compose,
    .editorial-comment-form button[type=submit] {
        width: 100%;
    }
}
