.astrolabe-participants-intro {
    margin: .25rem 0 1rem;
    color: #646970;
}

.astrolabe-participant-add,
.astrolabe-participant-list-panel {
    max-width: 900px;
    padding: 1rem 1.1rem;
}

.astrolabe-participant-search-form {
    display: flex;
    align-items: flex-end;
    gap: .7rem;
    max-width: 620px;
}

.astrolabe-participant-search-form .astrolabe-form-field {
    flex: 1 1 24rem;
    margin-bottom: 0;
}

.astrolabe-participant-search-form .astrolabe-button,
.astrolabe-user-results .astrolabe-button,
.astrolabe-participant__controls .astrolabe-button {
    min-height: 2.15rem;
    padding: .4rem .72rem;
}

.astrolabe-user-results {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.astrolabe-user-results li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .7rem 0;
    border-top: 1px solid #e2dbd0;
}

.astrolabe-user-results form {
    margin: 0;
}

.astrolabe-user-result__identity {
    display: grid;
    gap: .15rem;
    min-width: 0;
}

.astrolabe-user-result__identity strong {
    color: #35291f;
}

.astrolabe-user-result__identity small {
    color: #766c61;
}

.astrolabe-user-result__statuses {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .25rem;
}

.astrolabe-form-error {
    margin: .75rem 0 0;
    color: #8f2424;
}

.astrolabe-participant-list {
    border-top: 1px solid #e2dbd0;
}

.astrolabe-participant {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: .85rem 0;
    border-bottom: 1px solid #e2dbd0;
}

.astrolabe-participant__identity {
    display: grid;
    gap: .18rem;
    min-width: 0;
}

.astrolabe-participant__identity strong {
    color: #35291f;
    font-size: 1rem;
}

.astrolabe-participant__identity span {
    color: #574b3f;
}

.astrolabe-participant__identity small,
.astrolabe-participant-add .astrolabe-form-help {
    color: #766c61;
    font-size: .8rem;
}

.astrolabe-participant__controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .45rem;
}

.astrolabe-participant__controls form {
    margin: 0;
}

.astrolabe-participant-rights {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.astrolabe-participant-rights__choices {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.astrolabe-participant-rights__choices label {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    white-space: nowrap;
}

.astrolabe-participant-rights__choices input {
    margin: 0;
}

/* The MJ view still uses the historical shared list. */
.astrolabe-participants-summary {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin: 1rem 0;
}

.astrolabe-participants-summary span {
    padding: .65rem .9rem;
    border: 1px solid #dcdcde;
    border-radius: 4px;
}

.astrolabe-participant-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr 2fr 1.3fr;
    gap: .75rem;
    align-items: center;
    padding: .75rem;
    border-bottom: 1px solid #dcdcde;
}

.astrolabe-participant-row--head {
    font-weight: 700;
    background: #f6f7f7;
}

.astrolabe-participant-row .astrolabe-participant-rights form {
    display: flex;
    gap: .65rem;
    align-items: center;
    flex-wrap: wrap;
}

.astrolabe-participant-actions form {
    margin: 0;
}

@media(max-width:780px) {
    .astrolabe-participant-search-form,
    .astrolabe-user-results li {
        align-items: stretch;
        flex-direction: column;
    }

    .astrolabe-participant-search-form .astrolabe-form-field {
        flex-basis: auto;
        width: 100%;
    }

    .astrolabe-participant-search-form .astrolabe-button,
    .astrolabe-user-results .astrolabe-button {
        align-self: flex-start;
    }

    .astrolabe-participant {
        grid-template-columns: 1fr;
        gap: .7rem;
    }

    .astrolabe-participant__controls {
        align-items: flex-start;
        justify-content: flex-start;
        flex-direction: column;
    }

    .astrolabe-participant-rights {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .astrolabe-participant-row {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #dcdcde;
    }

    .astrolabe-participant-row--head {
        display: none;
    }

    .astrolabe-participant-row > span,
    .astrolabe-participant-row > div {
        display: grid;
        grid-template-columns: 8rem minmax(0, 1fr);
        gap: .5rem;
        padding: .35rem 0;
    }

    .astrolabe-participant-row > span::before,
    .astrolabe-participant-row > div::before {
        content: attr(data-label);
        font-weight: 700;
    }
}
