.sl-page h1,
.sl-page h2 {
    margin: 0;
}

.sl-page abbr {
    border-bottom: 0;
    text-decoration: none;
    cursor: help;
}

.sl-page .sl-livedot {
    display: inline-block;
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cp-success);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
}

.sl-page .cp-chip:not(.is-online) .sl-livedot {
    background: var(--cp-text-3);
    box-shadow: none;
}

.sl-page .sl-abbr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    min-width: 42px;
    height: 24px;
    padding: 0 7px;
    border-radius: 6px;
    background: var(--cp-accent-soft);
    color: #fca5a5;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
}

.sl-page .sl-abbr--sm {
    min-width: 0;
    height: 18px;
    padding: 0 6px;
    font-size: 9px;
    background: var(--cp-surface-3);
    color: var(--cp-text-3);
}

.sl-page .sl-hint {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--cp-text-3);
}

.sl-page .sl-hint i {
    display: inline-flex;
    margin-top: 2px;
}

.sl-page .sl-hint b {
    color: var(--cp-text-2);
    font-weight: 600;
}

.sl-page .sl-notice {
    align-items: center;
}

.sl-page .sl-avatar {
    position: relative;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2d2e30 0%, #222325 100%);
    color: var(--cp-text-2);
    font-size: 15px;
    font-weight: 700;
}

.sl-page .sl-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 50%;
    object-fit: cover;
    background: var(--cp-surface-3);
}

.sl-page .sl-avatar__dot {
    position: absolute;
    z-index: 1;
    right: -1px;
    bottom: -1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--cp-surface-2);
    background: var(--cp-text-3);
}

.sl-page .is-online > .sl-avatar .sl-avatar__dot,
.sl-page .is-online .sl-card__head .sl-avatar__dot {
    background: var(--cp-success);
}

.sl-page .sl-grid {
    display: grid;
    gap: 8px;
}

.sl-page .sl-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.sl-page .sl-grid--rich {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
    gap: 12px;
    align-items: start;
}

.sl-page [data-member][hidden],
.sl-page [data-sl-group][hidden] {
    display: none !important;
}

.sl-staff .sl-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    --sl-tone: var(--cp-text-3);
}

.sl-staff .sl-group + .sl-group {
    padding-top: 16px;
    border-top: 1px solid var(--cp-border);
}

.sl-staff .sl-tone--green  { --sl-tone: #62b92b; }
.sl-staff .sl-tone--orange { --sl-tone: #e0873a; }
.sl-staff .sl-tone--brown  { --sl-tone: #a87443; }
.sl-staff .sl-tone--red    { --sl-tone: #e5484d; }

.sl-staff .sl-group__head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sl-staff .sl-group__mark {
    flex: none;
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: var(--sl-tone);
}

.sl-staff .sl-group__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--cp-text-1);
}

.sl-staff .sl-group__head .cp-count {
    margin-left: 0;
}

.sl-page .sl-member {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: var(--cp-radius-sm);
    border: 1px solid var(--cp-border);
    background: var(--cp-surface-2);
    min-width: 0;
    transition: border-color .15s, background .15s;
}

.sl-page .sl-member:hover {
    border-color: #3a3b3e;
    background: #232425;
}

.sl-staff .sl-member {
    border-left: 3px solid var(--sl-tone);
}

.sl-page .sl-member__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.sl-page .sl-member__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--sl-name-color, var(--cp-text-1)) !important;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sl-page a.sl-member__name:hover {
    text-decoration: underline;
}

.sl-page .sl-member__sub {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    font-size: 11px;
    color: var(--cp-text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sl-page .sl-member__sub i {
    display: inline-flex;
    flex: none;
    font-size: 11px;
}

.cp-ui.sl-page .sl-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cp-ui.sl-page .sl-kpis.sl-kpis--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sl-helpers .sl-toolbar-card {
    padding: 14px 16px;
    gap: 10px;
}

.sl-helpers .sl-toolbar__right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.sl-helpers .sl-sections {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sl-helpers .sl-acc {
    padding: 0;
    gap: 0;
}

.sl-helpers .sl-acc__heading {
    font-size: inherit;
    font-weight: inherit;
}

.sl-helpers .sl-acc__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 13px 16px;
    border: 0;
    border-radius: var(--cp-radius);
    background: transparent;
    color: var(--cp-text-1);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .15s;
}

.sl-helpers .sl-acc__toggle:hover {
    background: var(--cp-surface-2);
}

.sl-helpers .sl-acc__toggle:focus-visible {
    outline: 2px solid var(--cp-info);
    outline-offset: -2px;
}

.sl-helpers .sl-acc.is-open .sl-acc__toggle {
    border-radius: var(--cp-radius) var(--cp-radius) 0 0;
}

.sl-helpers .sl-acc__title {
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sl-helpers .sl-acc__toggle .cp-count {
    margin-left: 0;
}

.sl-helpers .sl-acc__online {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--cp-success);
    white-space: nowrap;
}

.sl-helpers .sl-acc__chev {
    display: inline-flex;
    margin-left: auto;
    font-size: 16px;
    color: var(--cp-text-3);
    transition: transform .15s;
}

.sl-helpers .sl-acc.is-open .sl-acc__chev {
    transform: rotate(180deg);
}

.sl-helpers .sl-acc__body {
    padding: 14px 16px 16px;
    border-top: 1px solid var(--cp-border);
}

.sl-helpers .sl-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border-radius: var(--cp-radius-sm);
    border: 1px solid var(--cp-border);
    background: var(--cp-surface-2);
    transition: border-color .15s, opacity .15s;
}

.sl-helpers .sl-card:hover {
    border-color: #3a3b3e;
}

.sl-helpers .sl-card.is-busy {
    opacity: .6;
    pointer-events: none;
}

.sl-helpers .sl-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sl-helpers .sl-card__who {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.sl-helpers .sl-card__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--sl-name-color, #fff) !important;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sl-helpers a.sl-card__name:hover {
    text-decoration: underline;
}

.sl-helpers .sl-card__sub {
    font-size: 11px;
    color: var(--cp-text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sl-helpers .sl-seen {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    font-size: 11px;
    color: var(--cp-text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sl-helpers .sl-seen i {
    display: inline-flex;
    flex: none;
    font-size: 11px;
    color: var(--cp-text-3);
}

.sl-helpers .sl-seen.is-online {
    color: var(--cp-success);
}

.sl-helpers .sl-seen .sl-livedot {
    width: 6px;
    height: 6px;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, .18);
}

.sl-helpers .sl-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.sl-helpers .sl-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--cp-border);
    background: var(--cp-surface-3);
    color: var(--cp-text-2);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}

.sl-helpers .sl-tag[data-role="admin"] {
    border-color: rgba(184, 38, 38, .45);
    background: var(--cp-accent-soft);
    color: #fca5a5;
}

.sl-helpers .sl-tag[data-role="helper"] {
    border-color: rgba(34, 197, 94, .35);
    background: var(--cp-success-soft);
    color: #86efac;
}

.sl-helpers .sl-grid--compact .sl-card {
    padding: 10px;
    gap: 8px;
}

.sl-helpers .sl-grid--compact .sl-avatar {
    width: 36px;
    height: 36px;
    font-size: 14px;
}

.sl-helpers .sl-stats-wrap {
    border-radius: 6px;
    border: 1px solid var(--cp-border);
    background: var(--cp-surface);
}

.cp-ui .sl-helpers .sl-stats,
.cp-ui.sl-helpers .sl-stats {
    table-layout: fixed;
    min-width: 400px;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.cp-ui.sl-helpers .sl-stats thead > tr > th {
    padding: 6px 2px;
    border-bottom: 1px solid var(--cp-border);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .02em;
    text-align: center;
    color: var(--cp-text-3);
    white-space: nowrap;
}

.cp-ui.sl-helpers .sl-stats thead > tr > th:first-child {
    width: 40px;
    padding-left: 8px;
    text-align: left;
    color: var(--cp-text-2);
}

.cp-ui.sl-helpers .sl-stats tbody > tr > th {
    padding: 5px 2px 5px 8px;
    border-bottom: 1px solid var(--cp-border);
    font-size: 10px;
    font-weight: 600;
    color: var(--cp-text-2);
    white-space: nowrap;
}

.cp-ui.sl-helpers .sl-stats tbody > tr > td {
    max-width: none;
    padding: 5px 2px;
    text-align: center;
    color: var(--cp-text-1);
    overflow: visible;
}

.cp-ui.sl-helpers .sl-stats tbody > tr:last-child > th {
    border-bottom: 0;
}

.cp-ui.sl-helpers .sl-stats td.is-zero {
    color: var(--cp-text-3);
}

.cp-ui.sl-helpers .sl-stats td.is-future {
    color: #3f4043;
}

.cp-ui.sl-helpers .sl-stats .is-current {
    background: rgba(184, 38, 38, .1);
}

.cp-ui.sl-helpers .sl-stats thead > tr > th.is-current {
    color: #fca5a5;
}

.cp-ui.sl-helpers .sl-stats .sl-stats__total {
    width: 38px;
    border-left: 1px solid var(--cp-border);
    font-weight: 700;
}

.cp-ui.sl-helpers .sl-stats tbody td.sl-stats__total:not(.is-zero) {
    color: #fff;
}

.sl-helpers .sl-legend {
    padding-top: 2px;
}

.sl-helpers .sl-manage {
    border-top: 1px dashed var(--cp-border);
    padding-top: 8px;
}

.sl-helpers .sl-manage summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 4px 6px;
    border-radius: 6px;
    list-style: none;
    font-size: 12px;
    font-weight: 500;
    color: var(--cp-text-2);
    cursor: pointer;
    user-select: none;
}

.sl-helpers .sl-manage summary::-webkit-details-marker {
    display: none;
}

.sl-helpers .sl-manage summary:hover {
    color: var(--cp-text-1);
    background: var(--cp-surface-3);
}

.sl-helpers .sl-manage summary:focus-visible {
    outline: 2px solid var(--cp-info);
    outline-offset: 1px;
}

.sl-helpers .sl-manage summary i {
    display: inline-flex;
}

.sl-helpers .sl-manage__chev {
    transition: transform .15s;
}

.sl-helpers .sl-manage[open] .sl-manage__chev {
    transform: rotate(180deg);
}

.sl-helpers .sl-manage__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 2px 2px;
}

.sl-helpers .sl-manage__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.sl-helpers .sl-manage__label {
    width: 52px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--cp-text-3);
}

.sl-helpers .sl-stepper {
    display: inline-flex;
    align-items: center;
    border-radius: var(--cp-radius-sm);
    border: 1px solid var(--cp-border);
    background: var(--cp-surface-3);
    overflow: hidden;
}

.sl-helpers .sl-stepper__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--cp-text-2);
    font-size: 11px;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.sl-helpers .sl-stepper__btn:hover:not(:disabled) {
    background: #2d2e30;
    color: #fff;
}

.sl-helpers .sl-stepper__btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.sl-helpers .sl-stepper__btn:focus-visible {
    outline: 2px solid var(--cp-info);
    outline-offset: -2px;
}

.sl-helpers .sl-stepper__value {
    min-width: 64px;
    padding: 0 8px;
    border-left: 1px solid var(--cp-border);
    border-right: 1px solid var(--cp-border);
    font-size: 12px;
    font-weight: 600;
    line-height: 30px;
    text-align: center;
    color: var(--cp-text-1);
}

.sl-helpers .sl-rolebtns {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.sl-helpers .sl-rolebtn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 9px;
    border-radius: 6px;
    border: 1px dashed #3a3b3e;
    background: transparent;
    color: var(--cp-text-3);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}

.sl-helpers .sl-rolebtn:hover {
    border-color: var(--cp-text-3);
    color: var(--cp-text-1);
}

.sl-helpers .sl-rolebtn[aria-pressed="true"] {
    border-style: solid;
    border-color: rgba(34, 197, 94, .45);
    background: var(--cp-success-soft);
    color: #86efac;
}

.sl-helpers .sl-rolebtn[aria-pressed="true"]::before {
    content: "\2713";
    font-size: 10px;
}

.sl-helpers .sl-rolebtn[aria-pressed="true"]:hover {
    border-color: rgba(239, 68, 68, .5);
    background: var(--cp-danger-soft);
    color: #fca5a5;
}

.sl-helpers .sl-rolebtn:focus-visible {
    outline: 2px solid var(--cp-info);
    outline-offset: 1px;
}

.sl-page .is-loading {
    position: relative;
    color: transparent !important;
}

.sl-page .is-loading > * {
    visibility: hidden;
}

.sl-page .is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .25);
    border-top-color: #fff;
    animation: sl-spin .7s linear infinite;
}

@keyframes sl-spin {
    to { transform: rotate(360deg); }
}

.sl-helpers .sl-assign {
    display: block;
    padding: 0;
}

.sl-helpers .sl-assign__summary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 14px 16px;
    border-radius: var(--cp-radius);
    list-style: none;
    cursor: pointer;
    transition: background .15s;
}

.sl-helpers .sl-assign__summary::-webkit-details-marker {
    display: none;
}

.sl-helpers .sl-assign__summary:hover {
    background: var(--cp-surface-2);
}

.sl-helpers .sl-assign__summary:focus-visible {
    outline: 2px solid var(--cp-info);
    outline-offset: -2px;
}

.sl-helpers .sl-assign[open] .sl-assign__summary {
    border-radius: var(--cp-radius) var(--cp-radius) 0 0;
    border-bottom: 1px solid var(--cp-border);
}

.sl-helpers .sl-assign__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: var(--cp-radius-sm);
    background: var(--cp-accent-soft);
    color: #fca5a5;
    font-size: 15px;
}

.sl-helpers .sl-assign__icon i {
    display: inline-flex;
}

.sl-helpers .sl-assign__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sl-helpers .sl-assign__text b {
    font-size: 14px;
    font-weight: 600;
    color: var(--cp-text-1);
}

.sl-helpers .sl-assign__text small {
    font-size: 12px;
    color: var(--cp-text-3);
}

.sl-helpers .sl-assign__chev {
    display: inline-flex;
    margin-left: auto;
    font-size: 16px;
    color: var(--cp-text-3);
    transition: transform .15s;
}

.sl-helpers .sl-assign[open] .sl-assign__chev {
    transform: rotate(180deg);
}

.sl-helpers .sl-assign__form {
    color-scheme: dark;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 16px;
}

.sl-helpers .sl-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.sl-helpers .sl-field > span,
.sl-helpers .sl-roles legend {
    font-size: 12px;
    font-weight: 500;
    color: var(--cp-text-2);
}

.sl-helpers .sl-field--id {
    max-width: 220px;
}

.sl-helpers .sl-assign .cp-input {
    height: auto !important;
    min-height: 40px;
}

.sl-helpers input[type="number"].cp-input {
    width: 100%;
    padding-right: 12px !important;
}

.sl-helpers .sl-roles {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.sl-helpers .sl-roles legend {
    margin-bottom: 8px;
    padding: 0;
}

.sl-helpers .sl-roles__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 8px;
    align-items: start;
}

.sl-helpers .sl-role-opt {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 10px;
    border-radius: var(--cp-radius-sm);
    border: 1px solid var(--cp-border);
    background: var(--cp-surface-2);
    transition: border-color .15s, background .15s;
}

.sl-helpers .sl-role-opt:hover {
    border-color: #3a3b3e;
}

.sl-helpers .sl-role-opt:has(input:checked) {
    border-color: rgba(184, 38, 38, .55);
    background: rgba(184, 38, 38, .07);
}

.sl-helpers .sl-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 22px;
    font-size: 13px;
    color: var(--cp-text-1);
    cursor: pointer;
}

.sl-helpers .sl-check input {
    flex: none;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--cp-accent);
    cursor: pointer;
}

.sl-helpers .sl-check input:focus-visible {
    outline: 2px solid var(--cp-info);
    outline-offset: 2px;
}

.sl-helpers .sl-check__title {
    min-width: 0;
    flex: 1;
}

.sl-helpers select.sl-level {
    min-height: 34px !important;
    padding: 6px 30px 6px 10px !important;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a9a9a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
}

.sl-helpers select.sl-level option {
    background: var(--cp-surface-3);
    color: var(--cp-text-1);
}

.sl-helpers select.sl-level:focus-visible {
    outline: 2px solid var(--cp-info);
    outline-offset: 2px;
}

.sl-helpers .sl-assign__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding-top: 14px;
    border-top: 1px solid var(--cp-border);
}

.sl-helpers .sl-assign__actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

@media (max-width: 960px) {
    .sl-page .cp-search {
        flex-basis: 100%;
        max-width: none;
    }

    .cp-ui.sl-page .sl-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .sl-page .cp-search {
        max-width: none;
    }

    .sl-page .sl-grid--compact {
        grid-template-columns: minmax(0, 1fr);
    }

    .sl-helpers .sl-toolbar__right {
        width: 100%;
        justify-content: space-between;
    }

    .sl-helpers .sl-acc__toggle {
        flex-wrap: wrap;
        padding: 12px 14px;
    }

    .sl-helpers .sl-acc__title {
        flex: 1;
    }

    .sl-helpers .sl-acc__online {
        order: 5;
        width: 100%;
        padding-left: 44px;
    }

    .sl-helpers .sl-acc__body {
        padding: 12px;
    }

    .sl-helpers .sl-field--id {
        max-width: none;
    }

    .sl-helpers .sl-roles__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sl-helpers .sl-assign__actions {
        width: 100%;
    }

    .sl-helpers .sl-assign__actions .cp-btn {
        flex: 1;
    }

    .sl-helpers .sl-manage__label {
        width: 100%;
    }
}
