/* Relay — tokens Streama (claro / escuro / mobile) */

.fox-relay-page {
    max-width: 880px;
}

.fox-relay-card {
    background: var(--fox-surface, #fff);
    border: 1px solid var(--fox-line, #ebe9ea);
    border-radius: var(--fox-radius, 10px);
    padding: 1.35rem 1.5rem 1.5rem;
}

.fox-relay-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.fox-relay-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--fox-text, #1c1a1d);
}

.fox-relay-lead {
    margin: .4rem 0 0;
    color: var(--fox-muted, #8b8990);
    font-size: .925rem;
    max-width: 36rem;
}

.fox-relay-state {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 1rem 0 1.25rem;
    color: var(--fox-muted, #8b8990);
    font-size: .875rem;
}

.fox-relay-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fox-muted, #8b8990);
    flex-shrink: 0;
}

.fox-relay-dot.is-on {
    background: #16a34a;
    box-shadow: 0 0 0 3px color-mix(in srgb, #16a34a 28%, transparent);
}

.fox-relay-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.15rem;
}

.fox-relay-field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    min-width: 0;
}

.fox-relay-field > span {
    font-weight: 600;
    color: var(--fox-text, #1c1a1d);
    font-size: .875rem;
}

.fox-relay-field small {
    color: var(--fox-muted, #8b8990);
}

.fox-relay-field-wide {
    grid-column: 1 / -1;
}

.fox-relay-auth {
    display: contents;
}

.fox-relay-auth[hidden] {
    display: none;
}

.fox-relay-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1rem;
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--fox-line, #ebe9ea);
}

.fox-relay-note {
    color: var(--fox-muted, #8b8990);
    font-size: .85rem;
}

.fox-relay-switch-form .fox-switch[disabled] {
    opacity: .45;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .fox-relay-card {
        padding: 1.1rem 1rem 1.2rem;
    }

    .fox-relay-head {
        flex-direction: column;
    }

    .fox-relay-grid {
        grid-template-columns: 1fr;
    }
}
