.jks-lbp-dojo-members {
    margin: 22px 0;
}

.jks-lbp-dojo-members .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.jks-lbp-dojo-members-heading,
.jks-lbp-dojo-member-editor-heading,
.jks-lbp-manual-state,
.jks-lbp-dojo-editor-actions {
    display: flex;
    align-items: center;
}

.jks-lbp-dojo-members-heading {
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.jks-lbp-dojo-members-heading h2,
.jks-lbp-dojo-members-heading p,
.jks-lbp-dojo-member-editor-heading h3,
.jks-lbp-dojo-member-editor-heading p {
    margin: 0;
}

.jks-lbp-dojo-members-heading p,
.jks-lbp-dojo-member-editor-heading p,
.jks-lbp-manual-state span {
    color: var(--muted);
}

.jks-lbp-dojo-members-heading p,
.jks-lbp-dojo-member-editor-heading p {
    margin-top: 4px;
}

.jks-lbp-manual-state {
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
    border: 1px solid #bfdbfe;
    border-left: 5px solid #2563eb;
    border-radius: 12px;
    background: #eff6ff;
    padding: 14px 16px;
}

.jks-lbp-manual-state.is-ready {
    border-color: #86efac;
    border-left-color: #22c55e;
    background: #f0fdf4;
}

.jks-lbp-manual-state.is-locked {
    border-color: #fca5a5;
    border-left-color: #dc2626;
    background: #fff7f7;
}

.jks-lbp-manual-state.is-neutral {
    border-color: #e2e8f0;
    border-left-color: #94a3b8;
    background: #f8fafc;
}

.jks-lbp-manual-state > div {
    display: grid;
    gap: 4px;
}

.jks-lbp-manual-state form {
    flex: 0 0 auto;
    margin: 0;
}

.jks-lbp-dojo-member-editor {
    margin-bottom: 16px;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    background: #f8fbff;
    padding: 18px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
}

.jks-lbp-dojo-member-editor-heading {
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.jks-lbp-dojo-member-editor-heading > a {
    color: var(--muted);
    font-size: 13px;
}

.jks-lbp-dojo-member-editor > form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.jks-lbp-dojo-member-editor label {
    display: grid;
    gap: 5px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.jks-lbp-dojo-member-editor input,
.jks-lbp-dojo-member-editor select,
.jks-lbp-dojo-member-editor textarea {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    padding: 10px 11px;
    color: var(--navy);
    font: inherit;
}

.jks-lbp-dojo-member-editor input[readonly] {
    background: #f1f5f9;
    color: #64748b;
}

.jks-lbp-dojo-member-editor .is-comment {
    grid-column: span 2;
}

.jks-lbp-dojo-member-editor textarea {
    min-height: 78px;
    resize: vertical;
}

.jks-lbp-dojo-editor-actions {
    grid-column: 1 / -1;
    gap: 8px;
}

.jks-lbp-dojo-editor-actions .jks-lbp-button,
.jks-lbp-dojo-editor-actions .jks-lbp-secondary {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    min-height: 42px;
}

.jks-lbp-dojo-member-list {
    padding: 0;
}

.jks-lbp-dojo-list-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 16px;
}

.jks-lbp-dojo-member-search {
    flex: 1 1 420px;
    max-width: 720px;
}

.jks-lbp-dojo-member-search input {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    padding: 10px 12px;
    color: var(--navy);
    font: inherit;
}

.jks-lbp-dojo-member-search input:focus {
    border-color: #2563eb;
    outline: 3px solid rgba(37, 99, 235, .14);
}

.jks-lbp-search-clear {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    padding: 8px 4px;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

.jks-lbp-dojo-member-list .jks-lbp-table-wrap {
    overflow-x: hidden;
}

.jks-lbp-dojo-result-count {
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 16px;
    color: var(--muted);
    font-size: 13px;
}

.jks-lbp-dojo-edit-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.jks-lbp-dojo-edit-table th,
.jks-lbp-dojo-edit-table td {
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

.jks-lbp-sort-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.jks-lbp-sort-button:focus-visible {
    border-radius: 4px;
    outline: 2px solid #2563eb;
    outline-offset: 3px;
}

.jks-lbp-sort-indicator {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 12px;
}

th[aria-sort="ascending"] .jks-lbp-sort-indicator,
th[aria-sort="descending"] .jks-lbp-sort-indicator {
    color: #1d4ed8;
}

.jks-lbp-dojo-edit-table th:nth-child(1) { width: 13%; }
.jks-lbp-dojo-edit-table th:nth-child(2) { width: 9%; }
.jks-lbp-dojo-edit-table th:nth-child(3) { width: 12%; }
.jks-lbp-dojo-edit-table th:nth-child(4) { width: 13%; }
.jks-lbp-dojo-edit-table th:nth-child(5) { width: 5%; }
.jks-lbp-dojo-edit-table th:nth-child(6) { width: 12%; }
.jks-lbp-dojo-edit-table th:nth-child(7) { width: 13%; }
.jks-lbp-dojo-edit-table th:nth-child(8) { width: 13%; }

.jks-lbp-dojo-edit-table .jks-lbp-status,
.jks-lbp-dojo-edit-table th:nth-child(5),
.jks-lbp-dojo-edit-table td:nth-child(5) {
    white-space: nowrap;
}

.jks-lbp-dojo-edit-table.has-actions th:last-child,
.jks-lbp-dojo-edit-table.has-actions td:last-child {
    width: 10%;
    white-space: nowrap;
}

.jks-lbp-dojo-edit-link {
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 980px) {
    .jks-lbp-dojo-member-editor > form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .jks-lbp-dojo-members-heading,
    .jks-lbp-dojo-member-editor-heading,
    .jks-lbp-manual-state {
        align-items: flex-start;
        flex-direction: column;
    }

    .jks-lbp-dojo-member-editor > form {
        grid-template-columns: 1fr;
    }

    .jks-lbp-dojo-member-editor .is-comment,
    .jks-lbp-dojo-editor-actions {
        grid-column: auto;
    }

    .jks-lbp-manual-state form,
    .jks-lbp-manual-state .jks-lbp-button {
        width: 100%;
    }

    .jks-lbp-dojo-list-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .jks-lbp-dojo-member-search {
        flex-basis: auto;
        max-width: none;
    }

    .jks-lbp-search-clear {
        align-self: flex-start;
    }
}
