.rlsc-page {
    --rlsc-accent: #ff7c18;
    --rlsc-accent-dark: #e66f14;
    --rlsc-text: #111827;
    --rlsc-muted: #6b7280;
    --rlsc-border: #e8e9ef;
    --rlsc-surface: #ffffff;
    --rlsc-bg: #f7f7fb;
    min-height: 100%;
    padding: 28px;
    color: var(--rlsc-text);
    background: var(--rlsc-bg);
}

.rlsc-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.rlsc-eyebrow {
    margin-bottom: 8px;
    color: var(--rlsc-accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.rlsc-title {
    margin: 0;
    color: #11121a;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 900;
    letter-spacing: -.04em;
}

.rlsc-subtitle {
    margin: 8px 0 0;
    color: var(--rlsc-muted);
    font-size: 15px;
}

.rlsc-header-actions {
    display: flex;
    gap: 10px;
}

.rlsc-btn {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid var(--rlsc-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
    cursor: pointer;
}

.rlsc-btn-secondary {
    background: #fff;
    color: #303341;
}

.rlsc-btn-primary {
    border-color: var(--rlsc-accent);
    background: var(--rlsc-accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(255, 124, 24, .24);
}

    .rlsc-btn-primary:hover {
        background: var(--rlsc-accent-dark);
    }

.rlsc-btn:disabled {
    opacity: .58;
    cursor: not-allowed;
}

.rlsc-filter-card,
.rlsc-table-card,
.rlsc-loading-card,
.rlsc-error-card {
    border: 1px solid var(--rlsc-border);
    border-radius: 18px;
    background: var(--rlsc-surface);
    box-shadow: 0 12px 32px rgba(17, 24, 39, .05);
}

.rlsc-filter-card {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.rlsc-filter-copy {
    display: flex;
    align-items: center;
    gap: 13px;
}

.rlsc-filter-icon,
.rlsc-summary-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: var(--rlsc-accent);
    background: rgba(255, 124, 24, .11);
}

.rlsc-filter-title {
    font-weight: 900;
    font-size: 15px;
}

.rlsc-filter-description {
    margin-top: 3px;
    color: var(--rlsc-muted);
    font-size: 13px;
}

.rlsc-class-picker {
    width: min(380px, 100%);
}

.rlsc-label {
    display: block;
    margin-bottom: 7px;
    color: #7a8090;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.rlsc-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.rlsc-summary-card {
    min-height: 104px;
    padding: 18px;
    border: 1px solid var(--rlsc-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(17, 24, 39, .04);
}

.rlsc-summary-label {
    color: var(--rlsc-muted);
    font-size: 12px;
    font-weight: 800;
}

.rlsc-summary-value {
    margin-top: 3px;
    color: #151722;
    font-size: 28px;
    font-weight: 900;
}

.rlsc-table-card {
    padding: 18px;
}

.rlsc-table-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

    .rlsc-table-heading h2 {
        margin: 0;
        font-size: 21px;
        font-weight: 900;
    }

    .rlsc-table-heading p {
        margin: 4px 0 0;
        color: var(--rlsc-muted);
        font-size: 13px;
    }

.rlsc-inline-loading {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--rlsc-muted);
    font-size: 13px;
    font-weight: 700;
}

.rlsc-loading-card {
    min-height: 280px;
    display: grid;
    place-items: center;
}

.rlsc-error-card {
    padding: 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border-color: #fecaca;
    background: #fffafa;
}

.rlsc-error-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 900;
}

.rlsc-error-title {
    color: #991b1b;
    font-weight: 900;
}

.rlsc-error-text {
    margin-top: 4px;
    color: #7f1d1d;
}

.rlsc-student-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.rlsc-avatar,
.rlsc-avatar-fallback {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

.rlsc-avatar-fallback {
    place-items: center;
    background: rgba(255, 124, 24, .12);
    color: #b45309;
    font-weight: 900;
}

.rlsc-student-copy {
    min-width: 0;
}

.rlsc-student-name {
    overflow: hidden;
    color: #191b25;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rlsc-student-number {
    margin-top: 3px;
    color: #8b90a0;
    font-size: 12px;
    font-weight: 700;
}

.rlsc-count-badge,
.rlsc-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.rlsc-count-badge {
    min-width: 38px;
    height: 28px;
    padding: 0 10px;
    color: #b45309;
    background: rgba(255, 124, 24, .13);
}

    .rlsc-count-badge.is-empty {
        color: #6b7280;
        background: #f1f2f5;
    }

.rlsc-status-badge {
    min-width: 72px;
    height: 27px;
    padding: 0 11px;
}

    .rlsc-status-badge.is-active {
        color: #047857;
        background: #d1fae5;
    }

    .rlsc-status-badge.is-inactive {
        color: #6b7280;
        background: #f1f2f5;
    }

.rlsc-page ::deep .rlsc-class-dropdown.e-control-wrapper,
.rlsc-page ::deep .rlsc-class-dropdown .e-input-group {
    min-height: 44px !important;
    border-radius: 10px !important;
}

.rlsc-page ::deep .rlsc-grid.e-grid {
    border-radius: 14px !important;
    box-shadow: none !important;
}

.rlsc-page ::deep .rlsc-grid .e-gridheader {
    background: #fafafe !important;
}

.rlsc-page ::deep .rlsc-grid .e-headercelldiv {
    color: #5c6272 !important;
    font-size: 11px !important;
    letter-spacing: .07em;
}

.rlsc-page ::deep .rlsc-grid .e-rowcell {
    padding-top: 11px !important;
    padding-bottom: 11px !important;
}

.rlsc-page ::deep .rlsc-grid .e-row:hover .e-rowcell {
    background: rgba(255, 124, 24, .035) !important;
}

@media (max-width: 900px) {
    .rlsc-header,
    .rlsc-filter-card {
        align-items: stretch;
        flex-direction: column;
    }

    .rlsc-class-picker {
        width: 100%;
    }

    .rlsc-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .rlsc-page {
        padding: 16px;
    }

    .rlsc-header-actions {
        flex-direction: column;
    }

    .rlsc-btn {
        width: 100%;
    }

    .rlsc-table-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Student profile action */
.rlsc-view-student-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 36px;
    padding: .45rem .8rem;
    border: 1px solid rgba(255, 124, 24, .32);
    border-radius: 10px;
    background: rgba(255, 124, 24, .08);
    color: #c65d0d;
    font-weight: 800;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

    .rlsc-view-student-btn:hover {
        background: #ff7c18;
        border-color: #ff7c18;
        color: #fff;
        transform: translateY(-1px);
    }

    .rlsc-view-student-btn:focus-visible {
        outline: none;
        box-shadow: 0 0 0 4px rgba(255, 124, 24, .18);
    }
