/* Study Space - Main Theme */
#study-space {
    --ss-bg: #080d1a;
    --ss-surface: #11182a;
    --ss-card: #141c30;
    --ss-card-hover: #19233b;
    --ss-border: #29344c;
    --ss-text: #f4f5ff;
    --ss-muted: #9aa6bd;
    --ss-purple: #a855f7;
    --ss-blue: #5865ff;
    --ss-primary: linear-gradient(135deg, #a855f7, #5865ff);
    --ss-radius: 16px;
    --ss-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);

    width: 100%;
    min-width: 0;
    color: var(--ss-text);
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
}

/* Room that defines consistent sizing */
#study-space,
#study-space *,
#studySpacePdfViewerModal,
#studySpacePdfViewerModal * {
    box-sizing: border-box;
}

/* Room that applies the default font to form elements */
#study-space button,
#study-space input,
#study-space textarea,
#study-space select {
    font: inherit;
}

/* Room that enables button interactions */
#study-space button {
    cursor: pointer;
}

#study-space button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

/* Room that highlights focused interactive elements */
#study-space button:focus-visible,
#study-space input:focus-visible,
#study-space textarea:focus-visible,
#study-space select:focus-visible,
#study-space a:focus-visible {
    outline: 2px solid var(--ss-purple);
    outline-offset: 3px;
}

/* Room that hides inactive elements */
#study-space .hidden {
    display: none !important;
}

/* Room that styles the main application header */
#study-space .app-header {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 76px;
    padding: 16px 28px;
    border-bottom: 1px solid var(--ss-border);
    background: rgba(8, 13, 26, 0.96);
}

/* Room that arranges the header content */
#study-space .header-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    min-width: 0;
}

/* Room that styles the brand logo container */
#study-space .brand-logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    cursor: pointer;
}

/* Room that styles the brand icon */
#study-space .brand-icon {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 14px;
    background: var(--ss-primary);
    color: #fff;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.25);
}

#study-space .brand-icon svg {
    width: 23px;
    height: 23px;
}

/* Room that organizes the brand title */
#study-space .brand-logo-group > div:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.35;
}

#study-space .brand-title-sub {
    color: var(--ss-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

#study-space .brand-title-main {
    color: var(--ss-text);
    font-size: 19px;
    font-weight: 800;
}

/* Room that styles the breadcrumb navigation */
#study-space .breadcrumb-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    min-width: 0;
}

#study-space .breadcrumb-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid var(--ss-border);
    border-radius: 12px;
    background: var(--ss-surface);
    color: var(--ss-text);
    transition: background 0.2s, border-color 0.2s;
}

#study-space .breadcrumb-btn:hover {
    border-color: var(--ss-purple);
    background: var(--ss-card-hover);
}

#study-space .breadcrumb-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 9px;
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}

#study-space .breadcrumb-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.4;
}

#study-space .breadcrumb-back-label {
    color: var(--ss-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

#study-space .breadcrumb-back-title {
    font-size: 12px;
    font-weight: 700;
}

#study-space .breadcrumb-divider {
    width: 16px;
    color: var(--ss-muted);
}

#study-space .breadcrumb-current {
    max-width: 280px;
    overflow: hidden;
    color: var(--ss-text);
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Room that controls the application viewport */
#study-space .app-viewport {
    width: 100%;
    min-width: 0;
}

/* Room that controls the main page width and spacing */
#study-space .main-content {
    width: 100%;
    max-width: 1500px;
    min-width: 0;
    margin: 0 auto;
    padding: 28px;
}

/* Room that styles the main welcome banner */
#study-space .hero-banner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid rgba(192, 132, 252, 0.3);
    border-radius: 24px;
    background:
        radial-gradient(ellipse at 85% 20%, rgba(88, 101, 255, 0.35), transparent 38%),
        radial-gradient(ellipse at 10% 100%, rgba(168, 85, 247, 0.25), transparent 40%),
        linear-gradient(125deg, #21133e 0%, #151a39 55%, #11182e 100%);
    box-shadow: var(--ss-shadow);
}

/* Room that adds decorative circles to the banner */
#study-space .hero-banner::after {
    position: absolute;
    z-index: -1;
    top: -100px;
    right: -70px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    content: "";
    box-shadow:
        0 0 0 35px rgba(255, 255, 255, 0.025),
        0 0 0 70px rgba(255, 255, 255, 0.02);
    pointer-events: none;
}

#study-space .hero-content {
    max-width: 780px;
}

#study-space .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 7px 13px;
    border: 1px solid rgba(216, 180, 254, 0.3);
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.13);
    color: #e9d5ff;
    font-size: 11px;
    font-weight: 700;
}

#study-space .hero-badge svg {
    width: 15px;
    height: 15px;
}

#study-space .hero-title {
    max-width: 700px;
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 4vw, 43px);
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1.2;
}

#study-space .hero-desc {
    max-width: 650px;
    margin: 18px 0 0;
    color: #c2c8df;
    font-size: 14px;
    line-height: 1.9;
}

/* Room that arranges the welcome banner buttons */
#study-space .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

#study-space .btn-hero-white,
#study-space .btn-hero-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

#study-space .btn-hero-white {
    background: #fff;
    color: #4c1d95;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.15);
}

#study-space .btn-hero-white:hover {
    transform: translateY(-2px);
    background: #f3e8ff;
}

#study-space .btn-hero-glass {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

#study-space .btn-hero-glass:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.14);
}

/* Room that arranges section headings and search controls */
#study-space .section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin: 36px 0 20px;
}

#study-space .section-title-group {
    min-width: 0;
}

#study-space .section-title-group h2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0;
    color: var(--ss-text);
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 800;
}

#study-space .section-title-group h2 svg {
    width: 21px;
    height: 21px;
}

#study-space .section-title-group > p {
    margin: 7px 0 0;
    color: var(--ss-muted);
    font-size: 12px;
}

#study-space .badge-count {
    display: inline-grid;
    min-width: 26px;
    height: 26px;
    padding: 0 7px;
    place-items: center;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 8px;
    background: rgba(168, 85, 247, 0.14);
    color: #d8b4fe;
    font-size: 11px;
    font-weight: 800;
}

/* Room that styles search fields */
#study-space .search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid var(--ss-border);
    border-radius: 12px;
    background: var(--ss-surface);
    color: var(--ss-muted);
    transition: border-color 0.2s, box-shadow 0.2s;
}

#study-space .search-input-wrapper:focus-within {
    border-color: var(--ss-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
}

#study-space .search-input-wrapper > svg {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
}

#study-space .search-input-wrapper input {
    width: 100%;
    min-width: 0;
    padding: 11px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ss-text);
    font-size: 12px;
}

#study-space .search-input-wrapper input::placeholder {
    color: #77839d;
}

#study-space .dashboard-search {
    width: min(100%, 360px);
}

/* Room that arranges study room cards */
#study-space .rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
    gap: 20px;
    align-items: stretch;
}

/* Room that styles individual study room cards */
#study-space .room-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius);
    background: linear-gradient(155deg, #151d32, #101729);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

#study-space .room-card:hover {
    transform: translateY(-3px);
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

#study-space .room-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

#study-space .room-card-icon {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 13px;
    background: rgba(168, 85, 247, 0.13);
    color: #c084fc;
}

#study-space .room-card-icon svg {
    width: 23px;
    height: 23px;
}

#study-space .room-role-badge,
#study-space .member-role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border: 1px solid rgba(129, 140, 248, 0.25);
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    color: #c7d2fe;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

#study-space .room-card-content {
    flex: 1;
    min-width: 0;
}

#study-space .room-subject {
    margin: 0 0 7px;
    color: #c084fc;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

#study-space .room-title {
    margin: 0;
    color: var(--ss-text);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* Room that limits the room description to three lines */
#study-space .room-description {
    display: -webkit-box;
    overflow: hidden;
    margin: 10px 0 20px;
    color: var(--ss-muted);
    font-size: 12px;
    line-height: 1.8;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

/* Room that displays room details and metadata */
#study-space .room-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: auto;
    padding: 14px 0;
    border-top: 1px solid var(--ss-border);
    color: var(--ss-muted);
    font-size: 10px;
}

#study-space .room-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

#study-space .room-card-meta svg {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    color: #a78bfa;
}

/* Room that arranges room action buttons */
#study-space .room-card-actions {
    display: flex;
    align-items: stretch;
    gap: 9px;
}

#study-space .btn-primary,
#study-space .btn-secondary,
#study-space .btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
    transition: transform 0.18s, background 0.18s, border-color 0.18s;
}

#study-space .btn-primary {
    background: var(--ss-primary);
    color: #fff;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.15);
}

#study-space .btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

#study-space .btn-secondary {
    border-color: var(--ss-border);
    background: #1a2338;
    color: #dbe2f2;
}

#study-space .btn-secondary:hover:not(:disabled) {
    border-color: #8b5cf6;
    background: #242d46;
}

#study-space .btn-danger {
    background: #dc2626;
    color: #fff;
}

#study-space .btn-danger:hover:not(:disabled) {
    background: #b91c1c;
}

#study-space .btn-primary svg,
#study-space .btn-secondary svg,
#study-space .btn-danger svg {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
}

#study-space .room-card-actions .btn-primary {
    flex: 1;
    min-width: 0;
}

#study-space .room-card-actions .btn-secondary {
    flex: 0 0 42px;
    padding: 8px;
}

/* Room that displays loading, error, and empty states */
#study-space .empty-state,
#study-space .room-loading-state,
#study-space .room-error-state,
#study-space .room-empty-search {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 38px 22px;
    border: 1px dashed var(--ss-border);
    border-radius: var(--ss-radius);
    background: rgba(17, 24, 42, 0.65);
    text-align: center;
}

#study-space .empty-state {
    margin-top: 20px;
}

#study-space .empty-icon-circle {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 20px;
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
}

#study-space .empty-icon-circle svg {
    width: 28px;
    height: 28px;
}

#study-space .empty-state h3,
#study-space .room-error-state p,
#study-space .room-empty-search p {
    margin: 0;
    color: var(--ss-text);
    font-size: 14px;
    font-weight: 700;
}

#study-space .empty-state > p {
    max-width: 430px;
    margin: 0;
    color: var(--ss-muted);
    font-size: 12px;
}

/* Room that arranges the study room detail page */
#study-space .room-detail-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

/* Room that styles the selected room header */
#study-space .room-header-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid rgba(168, 85, 247, 0.28);
    border-radius: 20px;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(88, 101, 255, 0.23), transparent 45%),
        linear-gradient(130deg, #21133d, #151a35 65%, #11182c);
    box-shadow: var(--ss-shadow);
}

#study-space .room-header-banner > div:first-child {
    flex: 1 1 280px;
    min-width: 0;
}

#study-space .room-banner-subject {
    display: inline-block;
    margin-bottom: 8px;
    color: #d8b4fe;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#study-space .room-banner-title {
    margin: 0;
    color: #fff;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

#study-space .room-banner-desc {
    max-width: 720px;
    margin: 12px 0 0;
    color: #c1c8de;
    font-size: 12px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

/* Room that displays the room invitation code */
#study-space .room-invite-pill {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    min-width: 0;
    padding: 15px 17px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(8px);
}

#study-space .room-invite-pill > div {
    min-width: 0;
}

#study-space .room-invite-pill .code {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-family: monospace;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 2px;
    overflow-wrap: anywhere;
}

#study-space .btn-copy-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 9px;
    background: #fff;
    color: #4c1d95;
    font-size: 11px;
    font-weight: 800;
}

#study-space .btn-copy-white:hover {
    background: #f3e8ff;
}

#study-space .btn-copy-white svg {
    width: 15px;
    height: 15px;
}

/* Room that styles the room navigation tabs */
#study-space .tabs-nav {
    display: flex;
    gap: 5px;
    width: 100%;
    padding: 6px;
    border: 1px solid var(--ss-border);
    border-radius: 14px;
    background: var(--ss-surface);
}

#study-space .tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: 1 1 0;
    min-width: 0;
    min-height: 47px;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--ss-muted);
    font-size: 12px;
    font-weight: 700;
    transition: background 0.2s, color 0.2s;
}

#study-space .tab-btn svg {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
}

#study-space .tab-btn:hover {
    background: var(--ss-card-hover);
    color: #fff;
}

#study-space .tab-btn.active {
    border-color: rgba(168, 85, 247, 0.28);
    background: var(--ss-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.15);
}

/* Room that keeps tab content within the layout */
#study-space #tabContent-stream,
#study-space #tabContent-classwork,
#study-space #tabContent-people {
    min-width: 0;
}

/* Room that styles the create announcement form */
#study-space .create-post-card {
    display: flex;
    flex-direction: column;
    gap: 17px;
    padding: 22px;
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius);
    background: var(--ss-surface);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

#study-space .author-head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

#study-space .author-head > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Room that styles user avatars */
#study-space .avatar {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    overflow: hidden;
    place-items: center;
    border: 2px solid rgba(192, 132, 252, 0.25);
    border-radius: 50%;
    background: var(--ss-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

/* Room that styles the announcement text area */
#study-space .post-textarea {
    display: block;
    width: 100%;
    min-height: 110px;
    resize: vertical;
    padding: 15px;
    border: 1px solid var(--ss-border);
    border-radius: 12px;
    outline: 0;
    background: #0c1323;
    color: var(--ss-text);
    font-size: 12px;
    line-height: 1.8;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#study-space .post-textarea::placeholder {
    color: #77839d;
}

#study-space .post-textarea:focus {
    border-color: var(--ss-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

/* Room that arranges attached file previews */
#study-space .file-previews-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

#study-space .attached-file-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--ss-border);
    border-radius: 10px;
    background: #0c1323;
}

#study-space .attached-file-preview > span {
    flex: 1;
    min-width: 0;
    color: #e2e8f0;
    font-size: 11px;
    overflow-wrap: anywhere;
}

#study-space .attached-file-preview small {
    flex-shrink: 0;
    color: var(--ss-muted);
    font-size: 10px;
}

#study-space .attached-file-preview button {
    display: grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid var(--ss-border);
    border-radius: 8px;
    background: #1a2338;
    color: #fca5a5;
}

#study-space .attached-file-preview button:hover {
    background: rgba(220, 38, 38, 0.15);
}

#study-space .attached-file-preview button svg {
    width: 15px;
    height: 15px;
}

/* Room that arranges announcement publishing controls */
#study-space .post-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid var(--ss-border);
}

#study-space .post-tools-left {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

/* Room that styles form controls and dropdowns */
#study-space .select-input,
#study-space .form-control {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--ss-border);
    border-radius: 10px;
    outline: 0;
    background: #0c1323;
    color: var(--ss-text);
    font-size: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#study-space .select-input {
    width: auto;
    max-width: 100%;
    min-height: 40px;
    padding: 9px 12px;
}

#study-space .select-input option,
#study-space .form-control option {
    background: #11182a;
    color: #fff;
}

#study-space .select-input:focus,
#study-space .form-control:focus {
    border-color: var(--ss-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

/* Room that arranges the announcement feed toolbar */
#study-space .feed-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin: 26px 0 15px;
    padding: 15px 18px;
    border: 1px solid var(--ss-border);
    border-radius: 12px;
    background: var(--ss-surface);
}

#study-space .feed-toolbar > div:first-child {
    color: var(--ss-text);
}

#study-space .feed-search {
    width: min(100%, 300px);
}

/* Room that stacks announcement posts */
#study-space #feedStreamContainer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

#study-space .feed-post-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius);
    background: var(--ss-surface);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.09);
    transition: border-color 0.2s;
}

#study-space .feed-post-card:hover {
    border-color: #414d6a;
}

/* Room that styles announcement headings and authors */
#study-space .feed-post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--ss-border);
}

#study-space .feed-post-header > span:last-child {
    color: var(--ss-muted);
    font-size: 10px;
}

#study-space .feed-post-tag {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 5px 10px;
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.12);
    color: #d8b4fe;
    font-size: 10px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

#study-space .feed-post-author {
    min-width: 0;
}

#study-space .feed-post-author strong {
    color: var(--ss-text);
    font-size: 12px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

/* Room that displays announcement text */
#study-space .feed-post-content {
    margin: 0;
    color: #d0d7e7;
    font-size: 12px;
    line-height: 1.9;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* Room that displays announcement attachments */
#study-space .feed-post-attachments {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding-top: 14px;
    border-top: 1px solid var(--ss-border);
}

#study-space .attached-file-link {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--ss-border);
    border-radius: 10px;
    background: #0c1323;
    color: #dbe2f2;
    text-align: left;
    transition: border-color 0.2s, background 0.2s;
}

#study-space .attached-file-link:hover {
    border-color: var(--ss-purple);
    background: #151b30;
}

#study-space .attached-file-link > svg {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    color: #c084fc;
}

#study-space .attached-file-link > span {
    flex: 1;
    min-width: 0;
    font-size: 11px;
    overflow-wrap: anywhere;
}

#study-space .attached-file-link small {
    flex-shrink: 0;
    color: var(--ss-muted);
    font-size: 10px;
}

/* Room that aligns announcement action buttons */
#study-space .feed-post-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 13px;
    border-top: 1px solid var(--ss-border);
}

/* Room that styles empty announcement and resource states */
#study-space .empty-feed-message,
#study-space .empty-resources-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    padding: 40px 20px;
    border: 1px dashed var(--ss-border);
    border-radius: var(--ss-radius);
    background: rgba(17, 24, 42, 0.6);
    text-align: center;
}

#study-space .empty-feed-message > svg,
#study-space .empty-resources-message > svg {
    width: 34px;
    height: 34px;
    color: #a78bfa;
}

#study-space .empty-feed-message h3,
#study-space .empty-resources-message h3 {
    margin: 0;
    color: var(--ss-text);
    font-size: 14px;
    font-weight: 800;
}

#study-space .empty-feed-message p,
#study-space .empty-resources-message p {
    margin: 0;
    color: var(--ss-muted);
    font-size: 12px;
}

/* Room that arranges the classwork heading and controls */
#study-space #tabContent-classwork > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

#study-space #tabContent-classwork > div:first-child h3 {
    margin: 0;
    color: var(--ss-text);
    font-size: 18px;
    font-weight: 800;
}

#study-space #tabContent-classwork > div:first-child p {
    margin: 5px 0 0;
    color: var(--ss-muted);
    font-size: 12px;
}

#study-space #tabContent-classwork > div:first-child > div:last-child {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

#study-space #tabContent-classwork > div:first-child .search-input-wrapper {
    width: 220px;
}

#study-space #tabContent-classwork > div:first-child label.btn-primary {
    position: relative;
    white-space: nowrap;
}

/* Room that arranges learning resource cards */
#study-space #resourcesLibraryList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)) !important;
    align-items: stretch;
    gap: 16px !important;
    min-width: 0;
}

#study-space .resource-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius);
    background: var(--ss-surface);
    transition: transform 0.2s, border-color 0.2s;
}

#study-space .resource-card:hover {
    transform: translateY(-2px);
    border-color: rgba(168, 85, 247, 0.6);
}

#study-space .resource-card > svg {
    width: 30px;
    height: 30px;
    margin-bottom: 15px;
    color: #c084fc;
}

#study-space .resource-card h4 {
    width: 100%;
    margin: 0;
    color: var(--ss-text);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

#study-space .resource-card > p {
    margin: 7px 0 17px;
    color: var(--ss-muted);
    font-size: 11px;
}

#study-space .resource-card > button {
    width: 100%;
    margin-top: 8px;
}

/* Room that styles the people and members tab */
#study-space #tabContent-people > div {
    padding: 24px;
    border: 1px solid var(--ss-border) !important;
    border-radius: var(--ss-radius) !important;
    background: var(--ss-surface) !important;
}

#study-space #tabContent-people h3 {
    margin: 0 0 18px;
    color: var(--ss-muted) !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.7px;
}

#study-space #leaveRoomAction {
    margin-bottom: 18px !important;
}

/* Room that stacks the room member list */
#study-space #membersListContainer {
    display: flex;
    flex-direction: column;
    gap: 10px !important;
    min-width: 0;
}

#study-space .member-row {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 13px 15px;
    border: 1px solid var(--ss-border);
    border-radius: 12px;
    background: #0c1323;
    transition: border-color 0.2s, background 0.2s;
}

#study-space .member-row:hover {
    border-color: #414d6a;
    background: #111a2d;
}

#study-space .member-row .avatar {
    overflow: hidden;
}

#study-space .member-avatar-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#study-space .member-info {
    flex: 1;
    min-width: 0;
}

#study-space .member-info strong {
    display: block;
    color: var(--ss-text);
    font-size: 12px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

#study-space .member-info p {
    margin: 3px 0 0;
    color: var(--ss-muted);
    font-size: 10px;
}

#study-space .member-role-badge {
    flex-shrink: 0;
}

#study-space #membersListContainer > p {
    margin: 0;
    padding: 18px 0;
    color: var(--ss-muted);
    font-size: 12px;
}

/* Room that controls modal backdrops */
#study-space .modal-backdrop {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    height: 100dvh;
    padding: 20px;
    background: rgba(3, 6, 16, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

#study-space .modal-backdrop.active,
#study-space .modal-backdrop.show {
    display: flex;
}

#study-space .modal-backdrop.hidden {
    display: none !important;
}

/* Room that styles standard modal windows */
#study-space .modal-card {
    width: 100%;
    max-width: 490px;
    max-height: calc(100dvh - 40px);
    margin: auto;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--ss-border);
    border-radius: 19px;
    background: #11182a;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    overscroll-behavior: contain;
}

#study-space .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 21px 24px;
    border-bottom: 1px solid var(--ss-border);
}

#study-space .modal-header h3 {
    margin: 0;
    color: var(--ss-text);
    font-size: 17px;
    font-weight: 800;
}

#study-space .icon-btn {
    display: grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--ss-border);
    border-radius: 10px;
    background: #1a2338;
    color: #cbd5e1;
}

#study-space .icon-btn:hover {
    border-color: var(--ss-purple);
    color: #fff;
}

#study-space .icon-btn svg {
    width: 18px;
    height: 18px;
}

/* Room that arranges modal form content */
#study-space .modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
}

#study-space .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

#study-space .form-group label {
    color: #dbe2f2;
    font-size: 12px;
    font-weight: 700;
}

#study-space .form-control {
    min-height: 45px;
    padding: 12px 13px;
}

#study-space textarea.form-control {
    min-height: 100px;
    resize: vertical;
    line-height: 1.7;
}

#study-space .form-control::placeholder {
    color: #77839d;
}

/* Room that aligns modal footer buttons */
#study-space .modal-footer {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--ss-border);
}

#study-space .modal-footer button {
    min-width: 100px;
}

#study-space #joinCodeInput {
    font-family: monospace;
    letter-spacing: 2px;
}

/* Room that places the leave confirmation above other modals */
#study-space #leaveRoomModal {
    z-index: 10001;
}

#study-space .leave-room-modal-card {
    width: 100%;
    max-width: 420px;
    max-height: calc(100dvh - 40px);
    margin: auto;
    padding: 30px;
    overflow-y: auto;
    border: 1px solid var(--ss-border);
    border-radius: 20px;
    background: #11182a;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    text-align: center;
}

#study-space .leave-room-icon {
    display: grid;
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    place-items: center;
    border: 1px solid rgba(248, 113, 113, 0.25);
    border-radius: 18px;
    background: rgba(220, 38, 38, 0.13);
    color: #fca5a5;
}

#study-space .leave-room-icon svg {
    width: 27px;
    height: 27px;
}

#study-space .leave-room-modal-card h3 {
    margin: 0;
    color: var(--ss-text);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.5;
}

#study-space .leave-room-modal-card > p {
    margin: 12px 0 24px;
    color: var(--ss-muted);
    font-size: 12px;
    line-height: 1.8;
}

/* Room that arranges leave confirmation actions */
#study-space .leave-room-modal-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Room that styles the PDF viewer panel */
#study-space .pdf-viewer-panel {
    display: flex;
    flex-direction: column;
    width: min(1100px, 100%);
    height: min(90dvh, 900px);
    overflow: hidden;
    border: 1px solid var(--ss-border);
    border-radius: 15px;
    background: #11182a;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

#study-space .pdf-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--ss-border);
    background: #11182a;
}

#study-space .pdf-viewer-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    color: var(--ss-text);
    font-size: 14px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

#study-space .pdf-viewer-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

#study-space .pdf-open-new-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--ss-border);
    border-radius: 9px;
    background: #1a2338;
    color: #d8b4fe;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

#study-space .pdf-open-new-tab:hover {
    border-color: var(--ss-purple);
    background: #242d46;
}

#study-space .pdf-close-button {
    min-height: 38px;
    padding: 8px 15px;
    border: 0;
    border-radius: 9px;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

#study-space .pdf-close-button:hover {
    background: #b91c1c;
}

#study-space .pdf-viewer-frame {
    display: block;
    flex: 1;
    width: 100%;
    min-height: 0;
    border: 0;
    background: #e5e7eb;
}

/* Room that positions the full-screen PDF viewer */
#study-space #study-space-pdf-viewer {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(3, 6, 16, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#study-space #study-space-pdf-viewer .pdf-viewer-panel {
    flex: 1;
    max-width: 1200px;
}

/* Room that styles loading and error messages */
#study-space .room-loading-state p,
#study-space .room-error-state p {
    margin: 0;
    color: var(--ss-muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}

#study-space .room-loading-state .btn-secondary,
#study-space .room-error-state .btn-secondary,
#study-space .room-empty-search .btn-secondary {
    margin-top: 5px;
}

/* Room that customizes the scrollbars */
#study-space ::-webkit-scrollbar,
#studySpacePdfViewerModal ::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

#study-space ::-webkit-scrollbar-track,
#studySpacePdfViewerModal ::-webkit-scrollbar-track {
    background: transparent;
}

#study-space ::-webkit-scrollbar-thumb,
#studySpacePdfViewerModal ::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #37415b;
}

#study-space ::-webkit-scrollbar-thumb:hover,
#studySpacePdfViewerModal ::-webkit-scrollbar-thumb:hover {
    background: #7c3aed;
}

/* Room that adjusts the layout for large screens */
@media (min-width: 1600px) {
    #study-space .main-content {
        padding: 36px;
    }

    #study-space .rooms-grid {
        grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    }
}

/* Room that adjusts the layout for tablets */
@media (max-width: 900px) {
    #study-space .app-header {
        padding: 15px 20px;
    }

    #study-space .main-content {
        padding: 22px;
    }

    #study-space .room-header-banner {
        align-items: flex-start;
    }

    #study-space .room-invite-pill {
        width: 100%;
        justify-content: space-between;
    }

    #study-space .section-header {
        align-items: stretch;
    }

    #study-space .dashboard-search {
        width: 100%;
    }
}

/* Room that adjusts the layout for mobile screens */
@media (max-width: 600px) {
    #study-space .app-header {
        min-height: 66px;
        padding: 12px 15px;
    }

    #study-space .header-left {
        gap: 12px;
    }

    #study-space .brand-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    #study-space .brand-title-main {
        font-size: 16px;
    }

    #study-space .brand-title-sub {
        font-size: 9px;
    }

    #study-space .breadcrumb-nav {
        gap: 7px;
    }

    #study-space .breadcrumb-btn {
        gap: 7px;
        padding: 6px 8px;
    }

    #study-space .breadcrumb-icon {
        width: 29px;
        height: 29px;
    }

    #study-space .breadcrumb-current {
        max-width: 115px;
        font-size: 11px;
    }

    #study-space .main-content {
        padding: 16px;
    }

    #study-space .hero-banner {
        padding: 25px 20px;
        border-radius: 18px;
    }

    #study-space .hero-badge {
        margin-bottom: 17px;
        font-size: 10px;
    }

    #study-space .hero-title {
        font-size: 28px;
        letter-spacing: -0.6px;
    }

    #study-space .hero-desc {
        margin-top: 13px;
        font-size: 12px;
    }

    #study-space .hero-actions {
        flex-direction: column;
        align-items: stretch;
        margin-top: 22px;
    }

    #study-space .hero-actions button {
        width: 100%;
    }

    #study-space .section-header {
        gap: 15px;
        margin-top: 28px;
    }

    #study-space .section-title-group h2 {
        font-size: 18px;
    }

    #study-space .rooms-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    #study-space .room-card {
        padding: 18px;
    }

    #study-space .room-detail-container {
        gap: 16px;
    }

    #study-space .room-header-banner {
        gap: 20px;
        padding: 22px 18px;
        border-radius: 17px;
    }

    #study-space .room-banner-title {
        font-size: 25px;
    }

    #study-space .room-invite-pill {
        gap: 12px;
        padding: 13px;
    }

    #study-space .room-invite-pill .code {
        font-size: 16px;
    }

    #study-space .tabs-nav {
        gap: 3px;
        padding: 4px;
    }

    #study-space .tab-btn {
        flex-direction: column;
        gap: 5px;
        min-height: 64px;
        padding: 9px 3px;
        font-size: 9px;
        text-align: center;
    }

    #study-space .tab-btn svg {
        width: 19px;
        height: 19px;
    }

    #study-space .create-post-card,
    #study-space .feed-post-card {
        padding: 16px;
    }

    #study-space .post-toolbar {
        align-items: stretch;
    }

    #study-space .post-tools-left {
        width: 100%;
    }

    #study-space .post-tools-left .select-input {
        width: 100%;
    }

    #study-space .post-toolbar > .btn-primary {
        width: 100%;
    }

    #study-space .feed-toolbar {
        align-items: stretch;
        padding: 13px;
    }

    #study-space .feed-search {
        width: 100%;
    }

    #study-space .feed-post-header {
        align-items: flex-start;
    }

    #study-space .attached-file-link {
        flex-wrap: wrap;
        gap: 8px;
    }

    #study-space .attached-file-link > span {
        flex-basis: calc(100% - 35px);
    }

    #study-space #tabContent-classwork > div:first-child > div:last-child {
        width: 100%;
    }

    #study-space #tabContent-classwork > div:first-child .search-input-wrapper {
        flex: 1 1 150px;
        width: auto;
    }

    #study-space #tabContent-classwork > div:first-child label.btn-primary {
        flex: 1 1 auto;
    }

    #study-space #resourcesLibraryList {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    #study-space #tabContent-people > div {
        padding: 16px;
    }

    #study-space .member-row {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px;
    }

    #study-space .member-role-badge {
        margin-left: 52px;
    }

    #study-space .modal-backdrop {
        padding: 12px;
    }

    #study-space .modal-card {
        max-height: calc(100dvh - 24px);
        border-radius: 15px;
    }

    #study-space .modal-header {
        padding: 17px;
    }

    #study-space .modal-body {
        gap: 17px;
        padding: 17px;
    }

    #study-space .modal-footer {
        flex-direction: column-reverse;
    }

    #study-space .modal-footer button {
        width: 100%;
    }

    #study-space .leave-room-modal-card {
        padding: 24px 19px;
    }

    #study-space .leave-room-modal-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    #study-space .leave-room-modal-actions button {
        width: 100%;
    }

    #study-space .pdf-viewer-panel {
        height: 92dvh;
        border-radius: 10px;
    }

    #study-space .pdf-viewer-header {
        align-items: flex-start;
        padding: 12px;
    }

    #study-space .pdf-viewer-controls {
        width: 100%;
    }

    #study-space .pdf-viewer-controls > * {
        flex: 1;
        text-align: center;
    }

    #study-space #study-space-pdf-viewer {
        padding: 8px;
    }
}

/* Room that respects reduced-motion accessibility settings */
@media (prefers-reduced-motion: reduce) {
    #study-space *,
    #study-space *::before,
    #study-space *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Manual grading scoring table */
#study-space .manual-scoring-table-section {
    min-width: 0;
    margin: 24px 0;
    padding: 24px;
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius);
    background: var(--ss-surface);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Table heading */
#study-space .manual-scoring-table-heading {
    margin-bottom: 22px;
}

#study-space .manual-scoring-table-heading h3 {
    margin: 5px 0 0;
    color: var(--ss-text);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.4px;
}

#study-space .manual-scoring-table-heading p {
    max-width: 650px;
    margin: 8px 0 0;
    color: var(--ss-muted);
    font-size: 13px;
    line-height: 1.7;
}

/* Scrollable table container */
#study-space .manual-scoring-table-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: auto;
    border: 1px solid var(--ss-border);
    border-radius: 14px;
    background: #0c1323;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #6550a4 #11182a;
}

#study-space .manual-scoring-table-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#study-space .manual-scoring-table-wrapper::-webkit-scrollbar-track {
    background: #11182a;
    border-radius: 10px;
}

#study-space .manual-scoring-table-wrapper::-webkit-scrollbar-thumb {
    background: #6550a4;
    border-radius: 10px;
}

#study-space .manual-scoring-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #8b70d6;
}

/* Main table */
#study-space .manual-scoring-table {
    width: 100%;
    min-width: 900px;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--ss-text);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

/* Table cells */
#study-space .manual-scoring-table th,
#study-space .manual-scoring-table td {
    min-width: 100px;
    padding: 15px 16px;
    border-right: 1px solid rgba(148, 163, 184, 0.12);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    white-space: nowrap;
    vertical-align: middle;
}

/* Column headings */
#study-space .manual-scoring-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #1a2340;
    color: #d9c5ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}

/* Student name column */
#study-space .manual-scoring-table th:first-child,
#study-space .manual-scoring-table td:first-child {
    position: sticky;
    left: 0;
    min-width: 210px;
    max-width: 260px;
    text-align: left;
    border-right: 1px solid rgba(167, 139, 250, 0.25);
}

/* Keep the top-left heading above all other sticky cells */
#study-space .manual-scoring-table thead th:first-child {
    z-index: 4;
    background: #292044;
    color: #e9ddff;
}

/* Sticky student names */
#study-space .manual-scoring-table tbody td:first-child {
    z-index: 1;
    background: #121a2d;
    color: var(--ss-text);
    font-weight: 700;
}

/* Alternating rows */
#study-space .manual-scoring-table tbody tr:nth-child(even) td {
    background-color: #10182a;
}

#study-space .manual-scoring-table tbody tr:nth-child(odd) td {
    background-color: #0c1323;
}

/* Keep the sticky name cell matching its row */
#study-space .manual-scoring-table tbody tr:nth-child(even) td:first-child {
    background-color: #172038;
}

#study-space .manual-scoring-table tbody tr:nth-child(odd) td:first-child {
    background-color: #121a2d;
}

/* Hover effect */
#study-space .manual-scoring-table tbody tr:hover td {
    background-color: #202b47;
}

#study-space .manual-scoring-table tbody tr:hover td:first-child {
    background-color: #2b2448;
    color: #e9ddff;
}

/* Score values */
#study-space .manual-scoring-table tbody td:not(:first-child) {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

/* Remove unnecessary borders at table edges */
#study-space .manual-scoring-table th:last-child,
#study-space .manual-scoring-table td:last-child {
    border-right: 0;
}

#study-space .manual-scoring-table tbody tr:last-child td {
    border-bottom: 0;
}

/* Empty table message */
#study-space .manual-scoring-table .manual-scoring-empty {
    padding: 36px 20px;
    background: #0c1323;
    color: var(--ss-muted);
    font-size: 13px;
    line-height: 1.8;
    text-align: center;
    white-space: normal;
}

/* Tablet and mobile */
@media (max-width: 768px) {
    #study-space .manual-scoring-table-section {
        margin: 18px 0;
        padding: 16px;
        border-radius: 14px;
    }

    #study-space .manual-scoring-table-heading {
        margin-bottom: 16px;
    }

    #study-space .manual-scoring-table-heading h3 {
        font-size: 17px;
    }

    #study-space .manual-scoring-table-heading p {
        font-size: 12px;
    }

    #study-space .manual-scoring-table {
        min-width: 760px;
        font-size: 12px;
    }

    #study-space .manual-scoring-table th,
    #study-space .manual-scoring-table td {
        min-width: 90px;
        padding: 12px;
    }

    #study-space .manual-scoring-table th:first-child,
    #study-space .manual-scoring-table td:first-child {
        min-width: 175px;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    #study-space .manual-scoring-table-section {
        padding: 12px;
    }

    #study-space .manual-scoring-table-heading h3 {
        font-size: 16px;
    }

    #study-space .manual-scoring-table th,
    #study-space .manual-scoring-table td {
        padding: 11px 10px;
    }
}

/* Manual grading toolbar and controls */
#study-space .manual-scoring-table-section {
    --ms-accent: #a78bfa;
    --ms-accent-hover: #8b5cf6;
    --ms-control-bg: #111a2e;
    --ms-control-border: #303c56;
    --ms-control-text: #e8edf8;
}

/* Upper section layout */
#study-space .manual-scoring-table-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

#study-space .manual-scoring-table-heading h3 {
    margin: 0;
    color: var(--ss-text);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
}

#study-space .manual-scoring-table-heading p {
    margin-top: 7px;
    max-width: 600px;
    color: var(--ss-muted);
    font-size: 13px;
    line-height: 1.7;
}

/* Inputs and dropdowns inside the grading section */
#study-space .manual-scoring-table-section input,
#study-space .manual-scoring-table-section select,
#study-space .manual-scoring-table-section textarea {
    min-height: 42px;
    max-width: 100%;
    padding: 10px 13px;
    border: 1px solid var(--ms-control-border);
    border-radius: 10px;
    outline: none;
    background: var(--ms-control-bg);
    color: var(--ms-control-text);
    font-family: inherit;
    font-size: 13px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

#study-space .manual-scoring-table-section input::placeholder,
#study-space .manual-scoring-table-section textarea::placeholder {
    color: #8995ad;
    opacity: 1;
}

#study-space .manual-scoring-table-section input:hover,
#study-space .manual-scoring-table-section select:hover,
#study-space .manual-scoring-table-section textarea:hover {
    border-color: #7563ad;
}

#study-space .manual-scoring-table-section input:focus,
#study-space .manual-scoring-table-section select:focus,
#study-space .manual-scoring-table-section textarea:focus {
    border-color: var(--ms-accent);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.16);
    background: #151f35;
}

#study-space .manual-scoring-table-section select {
    cursor: pointer;
}

#study-space .manual-scoring-table-section select option {
    background: #111a2e;
    color: #e8edf8;
}

/* Buttons */
#study-space .manual-scoring-table-section button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border: 1px solid var(--ms-control-border);
    border-radius: 10px;
    background: #202b43;
    color: #e8edf8;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

#study-space .manual-scoring-table-section button:hover {
    border-color: #7662b5;
    background: #2b3653;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

#study-space .manual-scoring-table-section button:active {
    transform: translateY(0);
    box-shadow: none;
}

#study-space .manual-scoring-table-section button:focus-visible {
    outline: 2px solid var(--ms-accent);
    outline-offset: 3px;
}

#study-space .manual-scoring-table-section button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Primary action buttons */
#study-space .manual-scoring-table-section button[type="submit"],
#study-space .manual-scoring-table-section .primary,
#study-space .manual-scoring-table-section .btn-primary {
    border-color: transparent;
    background: linear-gradient(135deg, #8b5cf6, #6d4bd1);
    color: #fff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

#study-space .manual-scoring-table-section button[type="submit"]:hover,
#study-space .manual-scoring-table-section .primary:hover,
#study-space .manual-scoring-table-section .btn-primary:hover {
    background: linear-gradient(135deg, #9b72ff, #7c5ce0);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.3);
}

/* Labels */
#study-space .manual-scoring-table-section label {
    color: var(--ss-text);
    font-size: 12px;
    font-weight: 700;
}

/* Checkboxes */
#study-space .manual-scoring-table-section input[type="checkbox"] {
    width: 16px;
    min-height: 16px;
    height: 16px;
    accent-color: #8b5cf6;
    cursor: pointer;
}

/* Date and number inputs */
#study-space .manual-scoring-table-section input[type="number"],
#study-space .manual-scoring-table-section input[type="date"] {
    color-scheme: dark;
}

/* Disabled and read-only fields */
#study-space .manual-scoring-table-section input:disabled,
#study-space .manual-scoring-table-section select:disabled,
#study-space .manual-scoring-table-section textarea:disabled,
#study-space .manual-scoring-table-section input[readonly] {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Responsive controls */
@media (max-width: 600px) {
    #study-space .manual-scoring-table-heading {
        gap: 10px;
    }

    #study-space .manual-scoring-table-heading h3 {
        font-size: 17px;
    }

    #study-space .manual-scoring-table-section input,
    #study-space .manual-scoring-table-section select,
    #study-space .manual-scoring-table-section textarea {
        font-size: 16px;
    }

    #study-space .manual-scoring-table-section button {
        min-height: 42px;
    }
}

/* Manual grading: improve week header controls */

/* Give each week header more breathing room */
#study-space .manual-scoring-table thead th {
    padding: 18px 14px;
    vertical-align: top;
}

/* Week title and status controls */
#study-space .manual-scoring-table thead th button {
    vertical-align: middle;
}

/* Improve input sizing inside week headers */
#study-space .manual-scoring-table thead input:not([type="checkbox"]) {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    margin: 7px 0;
    padding: 10px 12px;
    box-sizing: border-box;
    border: 1px solid #354360;
    border-radius: 10px;
    background: #101a2e;
    color: #f1f5ff;
    font-size: 13px;
    font-weight: 600;
}

/* Focus state for title and max-points fields */
#study-space .manual-scoring-table thead input:not([type="checkbox"]):focus {
    border-color: #a78bfa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}

/* Make action buttons compact and consistent */
#study-space .manual-scoring-table thead button,
#study-space .manual-scoring-table tbody button {
    min-width: 42px;
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* Save buttons */
#study-space .manual-scoring-table thead button[title*="Save"],
#study-space .manual-scoring-table thead button[aria-label*="Save"] {
    background: #7850e8;
    color: #fff;
}

/* Separate entry fields from action buttons */
#study-space .manual-scoring-table thead input + button {
    margin: 3px 3px 3px 0;
}

/* Student score inputs */
#study-space .manual-scoring-table tbody input:not([type="checkbox"]) {
    width: 100%;
    max-width: 190px;
    min-width: 0;
    min-height: 42px;
    padding: 10px 12px;
    box-sizing: border-box;
    border: 1px solid #354360;
    border-radius: 10px;
    background: #111b30;
    color: #f1f5ff;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}

/* Align score entry and confirmation button */
#study-space .manual-scoring-table tbody input:not([type="checkbox"]):focus {
    border-color: #a78bfa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}

/* Improve the appearance of the Complete and Add Entry buttons */
#study-space .manual-scoring-table button {
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

#study-space .manual-scoring-table button:hover {
    border-color: #a78bfa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

#study-space .manual-scoring-table button:active {
    transform: scale(0.97);
}

/* Keep score cells centered and readable */
#study-space .manual-scoring-table tbody td:not(:first-child) {
    padding: 16px 14px;
    vertical-align: middle;
}

/* Make saved score text easier to read */
#study-space .manual-scoring-table tbody td:not(:first-child) {
    line-height: 1.65;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #study-space .manual-scoring-table thead th {
        padding: 14px 10px;
    }

    #study-space .manual-scoring-table thead input:not([type="checkbox"]),
    #study-space .manual-scoring-table tbody input:not([type="checkbox"]) {
        min-height: 42px;
        font-size: 16px;
    }

    #study-space .manual-scoring-table thead button,
    #study-space .manual-scoring-table tbody button {
        min-height: 42px;
    }
}


/* Study Space notification bell */

.study-space-notification-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}

.study-space-notification-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--ss-border, #e5e7eb);
    border-radius: 13px;
    background: var(--ss-surface, #ffffff);
    color: var(--ss-text, #374151);
    font-size: 19px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease,
                border-color 0.2s ease, transform 0.2s ease;
}

.study-space-notification-bell:hover {
    background: var(--ss-primary, #f3e8ff);
    color: var(--ss-primary-dark, #7e22ce);
    border-color: #c4b5fd;
}

.study-space-notification-bell:active {
    transform: scale(0.96);
}

.study-space-notification-bell:focus-visible {
    outline: 2px solid #8b5cf6;
    outline-offset: 3px;
}

.study-space-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ss-surface, #ffffff);
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.2);
}

.study-space-notification-panel[hidden],
.study-space-notification-badge[hidden] {
    display: none !important;
}

/* Notification dropdown panel */

.study-space-notification-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    width: min(390px, calc(100vw - 28px));
    max-height: min(540px, calc(100vh - 110px));
    overflow: hidden;
    border: 1px solid var(--ss-border, #e5e7eb);
    border-radius: 18px;
    background: var(--ss-surface, #ffffff);
    color: var(--ss-text, #1f2937);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
    animation: studySpaceNotificationEnter 0.18s ease-out;
}

@keyframes studySpaceNotificationEnter {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Panel heading */

.study-space-notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 15px;
    border-bottom: 1px solid var(--ss-border, #e5e7eb);
    background: var(--ss-surface, #ffffff);
}

.study-space-notification-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 750;
    letter-spacing: -0.35px;
}

.study-space-notification-header h3::after {
    content: "";
    display: block;
    width: 27px;
    height: 3px;
    margin-top: 7px;
    border-radius: 999px;
    background: var(--ss-primary-dark, #8b5cf6);
}

.study-space-mark-all-read {
    flex-shrink: 0;
    padding: 7px 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ss-primary-dark, #7e22ce);
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
    transition: background 0.2s ease;
}

.study-space-mark-all-read:hover {
    background: rgba(139, 92, 246, 0.1);
}

.study-space-mark-all-read:focus-visible {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}

/* Scrollable notification list */

.study-space-notification-list {
    flex: 1;
    min-height: 0;
    max-height: 440px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #c4b5fd transparent;
}

.study-space-notification-list::-webkit-scrollbar {
    width: 6px;
}

.study-space-notification-list::-webkit-scrollbar-track {
    background: transparent;
}

.study-space-notification-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #c4b5fd;
}

/* Empty state */

.study-space-notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 38px 20px;
    color: var(--ss-muted, #6b7280);
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

/* Individual notification */

.study-space-notification-item {
    position: relative;
    display: block;
    width: 100%;
    padding: 16px 18px;
    border: 0;
    border-bottom: 1px solid var(--ss-border, #eef0f4);
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease;
}

.study-space-notification-item:last-child {
    border-bottom: 0;
}

.study-space-notification-item:hover {
    background: rgba(139, 92, 246, 0.055);
}

.study-space-notification-item.is-unread {
    background: rgba(139, 92, 246, 0.075);
}

.study-space-notification-item.is-unread:hover {
    background: rgba(139, 92, 246, 0.12);
}

/* Notification title */

.study-space-notification-item strong {
    display: block;
    margin: 0 0 7px;
    padding-right: 14px;
    color: var(--ss-text, #1f2937);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

/* Notification message */

.study-space-notification-item p {
    margin: 0 0 9px;
    color: var(--ss-muted, #626b7a);
    font-size: 12px;
    line-height: 1.65;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Notification metadata */

.study-space-notification-item small {
    display: block;
    margin-top: 4px;
    color: var(--ss-muted, #858b98);
    font-size: 10.5px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* Unread indicator */

.study-space-notification-item.is-unread::after {
    content: "";
    position: absolute;
    top: 21px;
    right: 17px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

/* Keyboard navigation */

.study-space-notification-item:focus-visible {
    position: relative;
    z-index: 1;
    outline: 2px solid #8b5cf6;
    outline-offset: -3px;
}

/* Responsive layout */

@media (max-width: 480px) {
    .study-space-notification-panel {
        position: fixed;
        top: 76px;
        right: 12px;
        width: calc(100vw - 24px);
        max-height: calc(100dvh - 96px);
        border-radius: 16px;
    }

    .study-space-notification-header {
        padding: 15px;
    }

    .study-space-notification-item {
        padding: 14px 15px;
    }

    .study-space-notification-item.is-unread::after {
        right: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .study-space-notification-panel {
        animation: none;
    }

    .study-space-notification-bell,
    .study-space-mark-all-read,
    .study-space-notification-item {
        transition: none;
    }
}

#studySpaceNotificationPanel {
    display: flex;
    flex-direction: column;
    width: min(410px, calc(100vw - 28px));
    max-height: min(560px, calc(100vh - 110px));
    overflow: hidden;
    border: 1px solid var(--ss-border, #e5e7eb);
    border-radius: 18px;
    background: var(--ss-surface, #ffffff);
    color: var(--ss-text, #1f2937);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
}

#studySpaceNotificationPanel[hidden] {
    display: none !important;
}

#studySpaceNotificationList {
    min-height: 0;
    max-height: 470px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #c4b5fd transparent;
}

#studySpaceNotificationList::-webkit-scrollbar {
    width: 5px;
}

#studySpaceNotificationList::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #c4b5fd;
}

/* Individual notification */

#studySpaceNotificationList .ss-notification-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 16px;
    border: 0;
    border-bottom: 1px solid var(--ss-border, #eef0f4);
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease;
}

#studySpaceNotificationList .ss-notification-item:last-child {
    border-bottom: 0;
}

#studySpaceNotificationList .ss-notification-item:hover {
    background: rgba(139, 92, 246, 0.06);
}

#studySpaceNotificationList .ss-notification-item.unread {
    background: rgba(139, 92, 246, 0.075);
}

#studySpaceNotificationList .ss-notification-item.unread:hover {
    background: rgba(139, 92, 246, 0.12);
}

#studySpaceNotificationList .ss-notification-item:focus-visible {
    outline: 2px solid #8b5cf6;
    outline-offset: -3px;
}

/* Type icon */

#studySpaceNotificationList .ss-notification-icon {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
}

#studySpaceNotificationList .ss-notification-icon svg {
    width: 20px;
    height: 20px;
}

#studySpaceNotificationList .ss-notification-icon.resource {
    background: #ede9fe;
    color: #6d28d9;
}

#studySpaceNotificationList .ss-notification-icon.announcement {
    background: #dcfce7;
    color: #15803d;
}

/* Text content */

#studySpaceNotificationList .ss-notification-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    gap: 7px;
}

#studySpaceNotificationList .ss-notification-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

#studySpaceNotificationList .ss-notification-title {
    display: block;
    min-width: 0;
    margin: 0;
    color: var(--ss-text, #1f2937);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

#studySpaceNotificationList .ss-notification-dot {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-top: 5px;
    border-radius: 50%;
    background: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

#studySpaceNotificationList .ss-notification-message {
    display: block;
    color: var(--ss-muted, #626b7a);
    font-size: 12px;
    line-height: 1.65;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#studySpaceNotificationList .ss-notification-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    color: var(--ss-muted, #7b8190);
    font-size: 10.5px;
    line-height: 1.6;
}

#studySpaceNotificationList .ss-notification-room {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

#studySpaceNotificationList .ss-notification-room svg,
#studySpaceNotificationList .ss-notification-time svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

#studySpaceNotificationList .ss-notification-separator {
    color: #a1a1aa;
}

#studySpaceNotificationList .ss-notification-actor {
    overflow-wrap: anywhere;
}

#studySpaceNotificationList .ss-notification-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--ss-muted, #8b909c);
    font-size: 10.5px;
    line-height: 1.5;
}

/* Right-side navigation indicator */

#studySpaceNotificationList .ss-notification-chevron {
    display: flex;
    flex: 0 0 16px;
    align-items: center;
    justify-content: center;
    align-self: center;
    color: #a1a1aa;
}

#studySpaceNotificationList .ss-notification-chevron svg {
    width: 16px;
    height: 16px;
}

/* Empty state */

#studySpaceNotificationList .ss-notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    padding: 38px 24px;
    color: var(--ss-muted, #6b7280);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

#studySpaceNotificationList .ss-notification-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 4px;
    border-radius: 16px;
    background: #f3e8ff;
    color: #7e22ce;
}

#studySpaceNotificationList .ss-notification-empty-icon svg {
    width: 23px;
    height: 23px;
}

#studySpaceNotificationList .ss-notification-empty strong {
    color: var(--ss-text, #1f2937);
    font-size: 14px;
}

/* Small screens */

@media (max-width: 480px) {
    #studySpaceNotificationPanel {
        position: fixed;
        top: 76px;
        right: 12px;
        width: calc(100vw - 24px);
        max-height: calc(100dvh - 96px);
        border-radius: 16px;
    }

    #studySpaceNotificationList .ss-notification-item {
        gap: 10px;
        padding: 14px 12px;
    }

    #studySpaceNotificationList .ss-notification-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #studySpaceNotificationList .ss-notification-item {
        transition: none;
    }
}