/* GoToChat dashboard-only refinements. The OBS overlay keeps using gotochat.css alone. */
.gotochat__shell {
    width: min(1580px, 100%);
}

.gotochat__topbar {
    padding: 18px 20px;
    border-radius: 14px;
}

.gotochat__identity {
    align-items: flex-start;
}

.gotochat__avatar {
    border-radius: 12px;
}

.gotochat__subtitle {
    margin-top: 2px;
}

.gotochat__subtitle-owner,
.gotochat__subtitle-purpose {
    display: block;
}

.gotochat__subtitle-owner {
    color: rgba(248, 250, 252, 0.86);
    font-weight: 700;
}

.gotochat__subtitle-purpose {
    margin-top: 3px;
    color: rgba(226, 232, 240, 0.6);
    font-size: 0.84rem;
}

.gotochat__grid {
    grid-template-columns: minmax(230px, 260px) minmax(520px, 1fr) minmax(200px, 230px);
    gap: 12px;
}

.gotochat__panel {
    border-radius: 14px;
    overflow: hidden;
}

.gotochat__panel--timeline {
    min-width: 0;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(9, 12, 20, 0.9);
}

.gotochat__panel-head {
    min-height: 52px;
    padding: 13px 15px;
    background: rgba(255, 255, 255, 0.025);
}

.gotochat__panel-head h2 {
    font-size: 0.94rem;
    letter-spacing: 0.02em;
}

.gotochat__panel-head span {
    color: rgba(226, 232, 240, 0.54);
    font-size: 0.78rem;
}

[data-gotochat-live-count] {
    display: none !important;
}

.gotochat__channel-list {
    padding: 12px;
}

.gotochat__channel-card {
    position: relative;
    align-items: flex-start;
    padding: 12px 13px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.035);
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.gotochat__channel-card:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.055);
}

.gotochat__channel-card::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64748b;
}

.gotochat__channel-card.is-connected {
    border-color: rgba(34, 197, 94, 0.24);
}

.gotochat__channel-card.is-connected::after {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

.gotochat__channel-card.is-disconnected {
    border-color: rgba(248, 113, 113, 0.24);
}

.gotochat__channel-card.is-disconnected::after {
    background: #f87171;
}

.gotochat__channel-card > div:last-child {
    min-width: 0;
    padding-right: 12px;
}

.gotochat__channel-card strong {
    display: block;
    margin-bottom: 2px;
}

.gotochat__channel-card span {
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.gotochat__channel-link {
    margin-top: 7px;
    padding: 5px 8px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
}

.gotochat__channel-link:hover {
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
    text-decoration: none;
}

.gotochat__channel-link.is-secondary {
    padding-left: 0;
    padding-right: 0;
    background: transparent;
    color: rgba(226, 232, 240, 0.54);
    font-weight: 600;
}

.gotochat__channel-link.is-secondary:hover {
    color: #ffffff;
    text-decoration: underline;
}

.gotochat__filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.gotochat__filters button {
    min-height: 34px;
    padding: 7px 8px;
    font-size: 0.78rem;
}

.gotochat__filters button.is-active {
    background: #f8fafc;
    color: #111827;
    border-color: #f8fafc;
}

.gotochat__timeline {
    height: calc(100vh - 208px);
    min-height: 580px;
    padding: 14px;
    scroll-behavior: smooth;
}

.gotochat__event {
    position: relative;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    padding: 11px 12px;
    margin-bottom: 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-left-width: 3px;
    background: rgba(255, 255, 255, 0.035);
}

.gotochat__event--twitch {
    border-left-color: #9147ff;
}

.gotochat__event--kick {
    border-left-color: #53fc18;
}

.gotochat__event--youtube {
    border-left-color: #ff0033;
}

.gotochat__event-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    font-size: 1.05rem;
}

.gotochat__sender {
    font-size: 0.92rem;
}

.gotochat__badge {
    padding: 2px 6px;
    font-size: 0.66rem;
}

.gotochat__event-time {
    font-size: 0.72rem;
}

.gotochat__message {
    margin-top: 4px;
    color: rgba(241, 245, 249, 0.92);
    font-size: 0.94rem;
    line-height: 1.45;
}

.gotochat__panel--insights .gotochat__metric {
    margin: 10px 12px;
    padding: 11px 12px;
}

.gotochat__panel--insights .gotochat__metric strong {
    font-size: 1.25rem;
}

.gotochat__mini-feed {
    padding: 8px 12px 12px;
}

.gotochat__mini-item {
    padding: 8px 0;
    font-size: 0.78rem;
}

.gotochat__status-pill.is-configured:not(.is-online):not(.is-ready) span {
    background: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.gotochat__status-pill.is-not-configured {
    opacity: 0.62;
}

@media (max-width: 1240px) {
    .gotochat__grid {
        grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
    }

    .gotochat__panel--insights {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gotochat__panel--insights .gotochat__panel-head,
    .gotochat__panel--insights .gotochat__mini-feed {
        grid-column: 1 / -1;
    }
}

@media (max-width: 860px) {
    .gotochat__grid {
        grid-template-columns: 1fr;
    }

    .gotochat__timeline {
        height: 62vh;
        min-height: 440px;
    }

    .gotochat__panel--insights {
        grid-column: auto;
    }
}

@media (max-width: 620px) {
    .gotochat__topbar {
        padding: 14px;
    }

    .gotochat__statusbar {
        gap: 6px;
    }

    .gotochat__status-pill {
        min-height: 34px;
        padding: 0 9px;
        font-size: 0.78rem;
    }

    .gotochat__icon-button--wide span {
        display: none;
    }

    .gotochat__icon-button--wide {
        width: 38px;
        padding: 0;
        justify-content: center;
    }

    .gotochat__panel--insights {
        grid-template-columns: 1fr;
    }

    .gotochat__panel--insights .gotochat__panel-head,
    .gotochat__panel--insights .gotochat__mini-feed {
        grid-column: auto;
    }
}
