/* An open room: its title bar, the scrolling timeline, the reaction picker.
   Messages are in message.css, the box you type in is in composer.css. */

.room-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.room-head {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    min-height: var(--bar-height);
    flex: none;
    padding: 0 var(--space-8);
    border-bottom: 1px solid var(--color-border);
}

.room-head h2, .room-head .topic {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.room-head .topic {
    flex: 1;
    min-width: 0;
}

/* The buttons at the end of the bar. */
.room-head .room-tools {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-left: auto;
    flex: none;
}

.room-head .room-tools .link {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-m);
    font-size: var(--text-s);
}

.room-head .room-tools .link.on {
    background: var(--color-fill);
    color: var(--color-text);
}

.room-head .count {
    color: var(--color-text-muted);
    font-size: var(--text-xs);
}

.room-head h2 {
    margin: 0;
    font-size: var(--text-l);
}

.room-head .topic, .room-head .members {
    color: var(--color-text-muted);
    font-size: var(--text-s);
}


.timeline {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-8) 0;
    display: flex;
    flex-direction: column;
}

/* The date, on a line drawn across the timeline. */
.day-divider {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    font-weight: 600;
    margin: var(--space-7) var(--space-8) var(--space-3);
}

.day-divider::before, .day-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--color-border);
}

.timeline-top {
    text-align: center;
    padding: var(--space-4);
    font-size: var(--text-s);
}


.room-body {
    display: flex;
    flex: 1;
    min-height: 0;
}

.room-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}


@media (max-width: 720px) {
    .room-body {
        position: relative;
    }
}

.room-head .sealed {
    color: var(--color-text-muted);
    display: inline-flex;
}
