.state.offline,
.state.stopped {
    background: #e5e7eb;
    color: #374151;
}

.state.connecting {
    background: #dbeafe;
    color: #1e40af;
}

.state.standby {
    background: #fef3c7;
    color: #92400e;
}

.state.listening,
.state.running {
    background: #dcfce7;
    color: #166534;
}

.remote-transcript-panel {
    display: flex;
    flex-direction: column;
    padding: 14px 16px 12px;
}

.transcript-heading {
    flex: 0 0 auto;
}

.remote-transcript-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding: 3px 6px 4px 2px;
    -webkit-overflow-scrolling: touch;
}

.transcript-lines.newest-first .transcript-line.newest {
    outline: 3px solid rgba(31, 41, 55, .18);
}

.remote-control-dock {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 16px;
    align-items: center;
    padding: 7px 9px;
    border-top: 1px solid #d7dde5;
    background: #f8fafc;
}

.remote-state-buttons {
    display: flex;
    gap: 7px;
}

button.danger {
    background: #8b1e1e;
}

@media (max-width: 720px) {
    .remote-transcript-panel {
        padding: 10px;
    }

    .remote-control-dock {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .remote-state-buttons {
        justify-content: flex-end;
    }
}
