.activity {
    margin-bottom: 26px;
}

.activity-title {
    margin: 0;
}

.activity-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
}

.activity-toggle:hover {
    color: #3e3f3a;
}

.activity-count {
    padding: 1px 8px;
    border-radius: 10px;
    background: #efece7;
    color: #6f6b64;
    font-size: 0.8rem;
    font-weight: 600;
}

.activity-chevron {
    color: #8a867e;
    font-size: 1.3rem;
    line-height: 1;
    transition: transform 0.15s ease-in-out;
}

.activity-toggle[aria-expanded="true"] .activity-chevron {
    transform: rotate(90deg);
}

.activity-note {
    margin: 14px 0 0;
    color: #8a867e;
    font-size: 0.85rem;
}

.activity-empty {
    margin: 14px 0 0;
    color: #b3ada3;
    font-style: italic;
}

.activity-feed {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    max-width: 760px;
}

.activity-event {
    position: relative;
    display: flex;
    gap: 14px;
    padding-bottom: 18px;
}

.activity-event:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 16px;
    bottom: 0;
    width: 2px;
    background: #e0dcd4;
}

.activity-marker {
    position: relative;
    z-index: 1;
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    margin-top: 5px;
    border: 2px solid #c9c4ba;
    border-radius: 50%;
    background: #fff;
}

.activity-event-comment .activity-marker {
    border-color: #507687;
}

.activity-body {
    flex: 1 1 auto;
    min-width: 0;
}

.activity-event-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.activity-summary {
    font-weight: 600;
}

.activity-time {
    color: #8a867e;
    font-size: 0.85rem;
    white-space: nowrap;
}

.activity-actor {
    margin: 0;
    color: #8a867e;
    font-size: 0.88rem;
}

.activity-scope {
    color: #6f6b64;
}

.activity-divergence {
    margin: 8px 0 0;
    padding: 7px 10px;
    border-left: 3px solid #d9a441;
    border-radius: 4px;
    background: #fdf6e7;
    color: #6b5420;
    font-size: 0.88rem;
}

.activity-comment {
    margin: 8px 0 0;
    padding-left: 10px;
    border-left: 3px solid #507687;
    overflow-wrap: anywhere;
}

.activity-changes {
    margin: 8px 0 0;
}

.activity-change {
    display: grid;
    grid-template-columns: minmax(120px, 200px) minmax(0, 1fr);
    gap: 10px;
    padding: 4px 0;
    align-items: baseline;
    font-size: 0.9rem;
}

.activity-change dt {
    color: #8a867e;
    font-weight: 500;
}

.activity-change dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.activity-before {
    color: #8a867e;
}

.activity-arrow {
    margin: 0 6px;
    color: #b3ada3;
}

.activity-changes-toggle {
    margin-top: 8px;
}

.activity-changes-toggle > summary {
    cursor: pointer;
    color: #6f6b64;
    font-size: 0.88rem;
}

.activity-changes-toggle > summary:hover {
    color: #3e3f3a;
}

.activity-changes-toggle .activity-changes {
    margin-top: 4px;
}

.activity-log-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.activity-log-subhead {
    margin: 0;
    color: #8a867e;
    font-size: 0.9rem;
}

.activity-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    align-items: end;
    padding: 14px 16px;
    margin-bottom: 22px;
    border: 1px solid #e0dcd4;
    border-radius: 6px;
    background: #faf8f5;
}

.activity-filters .form-label {
    margin-bottom: 3px;
    color: #6f6b64;
    font-size: 0.85rem;
    font-weight: 600;
}

.activity-filters-actions {
    display: flex;
    gap: 8px;
}

.activity-feed-wide {
    max-width: none;
}

.activity-subject {
    margin: 2px 0 0;
    font-size: 0.9rem;
}

.activity-subject-gone {
    color: #b3ada3;
    font-style: italic;
}

.activity-rebuilt {
    margin-left: 6px;
    padding: 1px 7px;
    border: 1px solid #e0dcd4;
    border-radius: 9px;
    background: #f3f0eb;
    color: #8a867e;
    font-size: 0.75rem;
    cursor: help;
}

.activity-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0dcd4;
    overflow-x: auto;
}

.activity-tab,
.activity-tab:hover {
    text-decoration: none;
}

.activity-tab {
    margin-bottom: -1px;
    padding: 8px 14px;
    border-bottom: 2px solid transparent;
    color: #8a867e;
    font-weight: 600;
    white-space: nowrap;
}

.activity-tab:hover {
    color: #3e3f3a;
}

.activity-tab.is-current {
    border-bottom-color: #325d88;
    color: #3e3f3a;
}
