.mini-topic-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
    max-width: 190px;
}

.mini-topic-tags .category-label,
.mini-topic-tag {
    padding: 3px 5px;
    background: #eaf3f8;
    color: var(--blue);
    font: 9px var(--mono);
    text-transform: none;
}

.mini-topic-tags .category-label {
    background: #dbeaf1;
    text-transform: uppercase;
}

.active-topics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.home-topic-column {
    min-width: 0;
}

.home-topic-column-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: end;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--line);
}

.home-topic-column-head h3 {
    margin: 0;
    color: var(--navy);
    font: 600 17px/1.15 var(--sans);
}

.home-topic-column-head span {
    color: var(--muted);
    font: 9px var(--mono);
    white-space: nowrap;
}

.home-topic-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.home-topic-column .home-topic-row:last-child {
    border-bottom: 0;
}

.home-topic-row > div {
    min-width: 0;
}

.home-topic-title {
    display: block;
    overflow: hidden;
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-topic-people {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 7px;
}

.home-topic-person {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 5px 0 1px;
    color: var(--muted);
}

.home-topic-person + .home-topic-person {
    padding-left: 12px;
    border-left: 1px solid var(--line);
}

.home-topic-person:hover {
    color: var(--blue);
}

.home-topic-person .avatar {
    display: grid;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 7px;
}

.home-topic-person-copy {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.home-topic-person-role {
    overflow: hidden;
    color: var(--muted);
    font: 600 8px var(--sans);
    letter-spacing: .07em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.home-topic-person.last .home-topic-person-role {
    color: var(--navy);
}

.home-topic-person-name {
    overflow: hidden;
    color: var(--ink);
    font: 600 11px var(--sans);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-topic-person:hover .home-topic-person-name {
    color: var(--blue);
}

.home-topic-stats {
    display: grid;
    flex: 0 0 auto;
    align-self: flex-start;
    grid-template-columns: minmax(62px, 1fr) auto;
    grid-template-areas:
        "tags tags"
        "statuses count"
        "statuses time";
    column-gap: 8px;
    row-gap: 4px;
    color: var(--blue);
    text-align: right;
}

.home-topic-stats > .mini-topic-tags {
    grid-area: tags;
    justify-self: end;
}

.home-topic-statuses {
    display: flex;
    grid-area: statuses;
    align-items: center;
    align-self: center;
    justify-self: end;
    gap: 5px;
}

.home-topic-status {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
    color: var(--blue);
    font-size: 14px;
}

.home-topic-status.hot {
    border-color: color-mix(in srgb, var(--orange) 45%, var(--line));
    background: color-mix(in srgb, var(--orange) 10%, var(--white));
    color: var(--orange);
}

.home-topic-status.hot i {
    transform-origin: 50% 85%;
    animation: home-hot-topic 2.4s ease-in-out infinite;
}

.home-topic-status.unseen {
    background: color-mix(in srgb, var(--blue) 8%, var(--white));
}

.home-topic-status.new-activity {
    background: color-mix(in srgb, var(--sky) 45%, var(--white));
}

@keyframes home-hot-topic {
    0%, 100% {
        transform: rotate(-2deg) scale(1);
        filter: drop-shadow(0 0 0 transparent);
    }

    50% {
        transform: rotate(2deg) scale(1.12);
        filter: drop-shadow(0 0 3px color-mix(in srgb, var(--orange) 65%, transparent));
    }
}

.home-topic-count {
    display: flex;
    grid-area: count;
    align-items: baseline;
    justify-self: end;
    gap: 4px;
    font: 600 16px/1 var(--sans);
}

.home-topic-row em {
    color: var(--muted);
    font: 9px var(--mono);
    font-style: normal;
}

.home-topic-row time {
    grid-area: time;
    justify-self: end;
    color: var(--muted);
    font: 9px var(--mono);
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .home-topic-status.hot i {
        animation: none;
    }
}

.home-topic-row:hover .home-topic-title {
    color: var(--blue);
}

.home-topic-row.unread {
    padding-left: 11px;
}

.home-topic-row.unread::before {
    left: 0;
}

.home-topic-row .topic-freshness {
    margin-top: 4px;
}

@media (max-width: 800px) {
    .active-topics-grid {
        grid-template-columns: 1fr;
    }

    .home-topic-row {
        padding: 12px 0;
    }

    .home-topic-title {
        white-space: normal;
    }

    .mini-topic-tags {
        max-width: 160px;
    }

    .home-topic-people {
        grid-template-columns: 1fr;
    }

    .home-topic-person + .home-topic-person {
        margin-top: 3px;
        padding-top: 6px;
        padding-left: 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }
}
