.chat-activity-notices {
    max-width: 100%;
    display: grid;
    gap: .3rem;
    padding: .4rem .65rem .1rem;
    color: #786552;
    font-size: .76rem;
    line-height: 1.6;
    font-style: italic;
    letter-spacing: .035em;
    overflow-wrap: anywhere;
}
.chat-activity-notice::before { content: '· '; }
html[data-theme="dark"] .chat-activity-notices { color: #c9b59d; }
.chat-activity-notice time {
    margin-right: .55em;
    font-style: normal;
    font-size: .9em;
}

/* Voice memo: one inherited chat colour, with opacity indicating progress. */
.voice-message-player {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 10px;
    width: 280px;
    max-width: 100%;
    color: inherit;
    white-space: normal;
}
.voice-message-toggle {
    display: grid;
    place-items: center;
    width: 40px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: color-mix(in srgb, currentColor 10%, transparent);
    color: inherit;
    font: 18px/1 sans-serif;
    cursor: pointer;
}
.voice-message-toggle:disabled { opacity: .45; cursor: wait; }
.voice-message-timeline { position: relative; height: 44px; min-width: 0; }
.voice-message-wave { display: flex; align-items: center; gap: 2px; height: 100%; pointer-events: none; }
.voice-message-wave span {
    flex: 1 1 0;
    min-width: 1px;
    border-radius: 2px;
    background: currentColor;
    opacity: .28;
    mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent);
    -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent);
}
.voice-message-wave span.is-played { opacity: .95; }
.voice-message-timeline input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.voice-message-timeline:focus-within, .voice-message-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 5px; }
.voice-message-time { font-size: 11px; font-variant-numeric: tabular-nums; opacity: .72; }
.voice-message-status { grid-column: 1 / -1; font-size: 12px; opacity: .75; }
.voice-message-status:empty, .voice-message-player audio { display: none; }

.chat-presence {
    flex: 0 0 auto;
    margin: 0;
    padding: 8px clamp(14px, 4vw, 30px);
    color: var(--text-primary);
    background: color-mix(in srgb, var(--color-primary) 9%, var(--surface-0));
    border-bottom: 1px solid var(--border-subtle);
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.chat-presence[hidden] { display: none; }
