.study-hub {
    --study-ink: #182235;
    --study-muted: #69758a;
    --study-line: #e5e8f0;
    --study-purple: #6657e8;
    --study-purple-soft: #efedff;
    background: #f6f7fb;
    color: var(--study-ink);
    min-height: 720px;
    padding: 44px 0 88px;
}

.study-hub-container {
    max-width: 1440px;
}

.study-account-sidebar {
    position: sticky;
    top: 24px;
}

.study-account-card {
    background: #fff;
    border: 1px solid rgba(24, 34, 53, .08);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(42, 52, 78, .08);
    padding: 20px;
}

.study-account-profile {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 54px minmax(0, 1fr) 28px;
    padding: 4px 2px 20px;
}

.study-account-avatar-wrap {
    height: 54px;
    position: relative;
    width: 54px;
}

.study-account-avatar {
    border: 3px solid #f0efff;
    border-radius: 17px;
    height: 54px;
    object-fit: cover;
    width: 54px;
}

.study-account-avatar-edit {
    align-items: center;
    background: var(--study-ink);
    border: 2px solid #fff;
    border-radius: 50%;
    bottom: -4px;
    color: #fff;
    display: flex;
    font-size: 9px;
    height: 22px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: -4px;
    width: 22px;
}

.study-account-identity {
    min-width: 0;
}

.study-account-label,
.study-account-identity strong,
.study-account-identity > span:last-child {
    display: block;
}

.study-account-label {
    color: var(--study-purple);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.study-account-identity strong {
    color: var(--study-ink);
    font-size: 16px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.study-account-identity > span:last-child {
    color: #8790a2;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.study-account-profile-link {
    align-items: center;
    border: 1px solid var(--study-line);
    border-radius: 9px;
    color: var(--study-muted);
    display: flex;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.study-account-nav {
    border-top: 1px solid var(--study-line);
    padding-top: 16px;
}

.study-account-nav-group + .study-account-nav-group {
    border-top: 1px solid var(--study-line);
    margin-top: 14px;
    padding-top: 14px;
}

.study-account-nav-title {
    color: #9ba3b2;
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em;
    margin: 0 11px 6px;
    text-transform: uppercase;
}

.study-account-nav-group > a,
.study-account-more summary {
    align-items: center;
    border-radius: 12px;
    color: #5f6b7e;
    cursor: pointer;
    display: flex;
    font-size: 14px;
    font-weight: 600;
    gap: 11px;
    min-height: 42px;
    padding: 9px 11px;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.study-account-nav-group > a i,
.study-account-more summary > i:first-child {
    color: #8a94a7;
    font-size: 18px;
    width: 20px;
}

.study-account-nav-group > a:hover,
.study-account-nav-group > a.active,
.study-account-more summary:hover {
    background: var(--study-purple-soft);
    color: #4f43c7;
}

.study-account-nav-group > a.active {
    box-shadow: inset 3px 0 0 var(--study-purple);
}

.study-account-nav-group > a:hover i,
.study-account-nav-group > a.active i {
    color: var(--study-purple);
}

.study-account-more {
    border-top: 1px solid var(--study-line);
    margin-top: 14px;
    padding-top: 14px;
}

.study-account-more summary {
    list-style: none;
}

.study-account-more summary::-webkit-details-marker {
    display: none;
}

.study-account-more summary span {
    flex: 1;
}

.study-account-more summary > i:last-child {
    font-size: 18px;
    transition: transform .2s ease;
}

.study-account-more[open] summary > i:last-child {
    transform: rotate(180deg);
}

.study-account-more > div {
    display: grid;
    gap: 3px;
    padding: 5px 0 0 42px;
}

.study-account-more > div a {
    border-radius: 8px;
    color: var(--study-muted);
    font-size: 13px;
    padding: 7px 9px;
}

.study-account-more > div a:hover,
.study-account-more > div a.active {
    background: #f4f3ff;
    color: var(--study-purple);
}

.study-account-share {
    background: linear-gradient(145deg, #f5f3ff, #f8f9fd);
    border: 1px solid #e7e3ff;
    border-radius: 16px;
    display: grid;
    gap: 5px;
    margin-top: 18px;
    padding: 15px;
}

.study-account-share > span {
    color: var(--study-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.study-account-share strong {
    color: var(--study-ink);
    font-size: 14px;
}

.study-account-share button {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--study-purple);
    display: flex;
    font-size: 12px;
    font-weight: 700;
    gap: 7px;
    margin-top: 3px;
    padding: 0;
}

.study-account-footer {
    border-top: 1px solid var(--study-line);
    display: grid;
    gap: 4px;
    margin-top: 18px;
    padding-top: 13px;
}

.study-account-footer a {
    align-items: center;
    border-radius: 10px;
    color: var(--study-muted);
    display: flex;
    font-size: 13px;
    gap: 10px;
    padding: 8px 10px;
}

.study-account-footer a:hover {
    background: #f5f6fa;
    color: var(--study-ink);
}

.study-hub-main {
    min-width: 0;
}

.study-welcome {
    background: linear-gradient(120deg, #171f32 0%, #2b3155 58%, #6557da 130%);
    border-radius: 28px;
    box-shadow: 0 22px 50px rgba(24, 34, 53, .18);
    color: #fff;
    display: grid;
    gap: 30px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 38%);
    min-height: 318px;
    overflow: hidden;
    padding: 38px;
    position: relative;
}

.study-welcome::before,
.study-welcome::after {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    content: "";
    pointer-events: none;
    position: absolute;
}

.study-welcome::before {
    height: 250px;
    left: 46%;
    top: -160px;
    width: 250px;
}

.study-welcome::after {
    bottom: -210px;
    height: 340px;
    left: 33%;
    width: 340px;
}

.study-welcome-copy {
    align-self: center;
    position: relative;
    z-index: 1;
}

.study-eyebrow {
    align-items: center;
    color: #c8c2ff;
    display: flex;
    font-size: 11px;
    font-weight: 700;
    gap: 8px;
    letter-spacing: .13em;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.study-welcome h1 {
    color: #fff;
    font-size: clamp(34px, 3.4vw, 52px);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.03;
    margin: 0 0 16px;
}

.study-welcome-copy > p {
    color: rgba(255, 255, 255, .72);
    font-size: 15px;
    line-height: 1.65;
    margin: 0 0 26px;
    max-width: 560px;
}

.study-primary-action {
    align-items: center;
    background: #fff;
    border-radius: 13px;
    color: var(--study-ink);
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    gap: 12px;
    min-height: 48px;
    padding: 12px 18px;
}

.study-primary-action:hover {
    color: var(--study-purple);
    transform: translateY(-1px);
}

.study-featured {
    align-self: stretch;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 20px;
    min-height: 240px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.study-featured > img {
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
    width: 100%;
}

.study-featured:hover > img {
    transform: scale(1.035);
}

.study-featured-overlay {
    background: linear-gradient(180deg, transparent 10%, rgba(10, 15, 28, .92) 100%);
    bottom: 0;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    left: 0;
    padding: 52px 20px 18px;
    position: absolute;
    right: 0;
    top: 0;
}

.study-featured-overlay > span {
    color: #c9c4ff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.study-featured-overlay strong {
    color: #fff;
    display: -webkit-box;
    font-size: 17px;
    line-height: 1.35;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.study-featured-progress {
    background: rgba(255, 255, 255, .2);
    border-radius: 999px;
    height: 4px;
    margin-top: 13px;
    overflow: hidden;
}

.study-featured-progress span {
    background: #b7ffcf;
    border-radius: inherit;
    display: block;
    height: 100%;
}

.study-featured-overlay small {
    color: rgba(255, 255, 255, .68);
    font-size: 11px;
    margin-top: 6px;
}

.study-featured-empty {
    align-items: center;
    background: rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .7);
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    padding: 25px;
    text-align: center;
}

.study-featured-empty i {
    font-size: 42px;
}

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

.study-summary article {
    align-items: center;
    background: #fff;
    border: 1px solid var(--study-line);
    border-radius: 18px;
    display: flex;
    gap: 12px;
    min-width: 0;
    padding: 16px;
}

.study-summary-icon {
    align-items: center;
    border-radius: 12px;
    display: flex;
    flex: 0 0 40px;
    font-size: 17px;
    height: 40px;
    justify-content: center;
}

.study-summary-icon-purple { background: #efedff; color: #6557df; }
.study-summary-icon-blue { background: #e9f4ff; color: #2681cf; }
.study-summary-icon-green { background: #e8f8ee; color: #23945b; }
.study-summary-icon-amber { background: #fff4de; color: #b87613; }

.study-summary article > div {
    min-width: 0;
}

.study-summary strong,
.study-summary article > div span {
    display: block;
}

.study-summary strong {
    color: var(--study-ink);
    font-size: 22px;
    line-height: 1.05;
}

.study-summary article > div span {
    color: var(--study-muted);
    font-size: 11px;
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.study-section {
    margin-top: 44px;
}

.study-section-heading {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}

.study-section-kicker {
    color: var(--study-purple);
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.study-section-heading h2 {
    color: var(--study-ink);
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -.03em;
    margin: 0;
}

.study-shortcut-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.study-shortcut-grid > a {
    align-items: center;
    background: #fff;
    border: 1px solid var(--study-line);
    border-radius: 16px;
    color: var(--study-ink);
    display: grid;
    gap: 10px;
    grid-template-columns: 40px minmax(0, 1fr) 18px;
    min-width: 0;
    padding: 14px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.study-shortcut-grid > a:hover {
    border-color: #cbc6fb;
    box-shadow: 0 12px 26px rgba(45, 53, 76, .08);
    color: var(--study-purple);
    transform: translateY(-2px);
}

.study-shortcut-icon {
    align-items: center;
    background: #f2f1fc;
    border-radius: 12px;
    color: var(--study-purple);
    display: flex;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.study-shortcut-grid div {
    min-width: 0;
}

.study-shortcut-grid strong,
.study-shortcut-grid div span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.study-shortcut-grid strong {
    font-size: 13px;
}

.study-shortcut-grid div span {
    color: var(--study-muted);
    font-size: 10px;
    margin-top: 3px;
}

.study-shortcut-grid > a > i {
    color: #a0a8b7;
}

.study-library-heading > a {
    color: var(--study-purple);
    font-size: 13px;
    font-weight: 700;
}

.study-library-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.study-content-card {
    background: #fff;
    border: 1px solid var(--study-line);
    border-radius: 22px;
    box-shadow: 0 12px 32px rgba(42, 52, 78, .055);
    min-width: 0;
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease;
}

.study-content-card:hover {
    box-shadow: 0 20px 42px rgba(42, 52, 78, .11);
    transform: translateY(-3px);
}

.study-content-cover {
    aspect-ratio: 16 / 8.5;
    background: #eceef4;
    display: block;
    overflow: hidden;
    position: relative;
}

.study-content-cover img {
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
    width: 100%;
}

.study-content-card:hover .study-content-cover img {
    transform: scale(1.025);
}

.study-content-type,
.study-content-expired {
    backdrop-filter: blur(8px);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    left: 14px;
    padding: 6px 10px;
    position: absolute;
    top: 14px;
}

.study-content-type {
    background: rgba(255, 255, 255, .9);
    color: var(--study-ink);
}

.study-content-expired {
    background: rgba(131, 29, 38, .88);
    color: #fff;
    left: auto;
    right: 14px;
}

.study-content-body {
    padding: 19px;
}

.study-content-author {
    align-items: center;
    color: var(--study-muted);
    display: flex;
    font-size: 11px;
    gap: 8px;
    margin-bottom: 9px;
}

.study-content-author img {
    border-radius: 50%;
    height: 24px;
    object-fit: cover;
    width: 24px;
}

.study-content-title {
    color: var(--study-ink);
    display: -webkit-box;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.34;
    min-height: 48px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.study-content-title:hover {
    color: var(--study-purple);
}

.study-content-body > p {
    color: var(--study-muted);
    display: -webkit-box;
    font-size: 12px;
    line-height: 1.55;
    margin: 9px 0 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.study-content-progress-row {
    align-items: center;
    color: var(--study-muted);
    display: flex;
    font-size: 11px;
    justify-content: space-between;
    margin-top: 18px;
}

.study-content-progress-row strong {
    color: var(--study-ink);
    font-size: 12px;
}

.study-content-progress {
    background: #eaecf2;
    border-radius: 999px;
    height: 6px;
    margin-top: 7px;
    overflow: hidden;
}

.study-content-progress span {
    background: linear-gradient(90deg, #6557e8, #8a7cf4);
    border-radius: inherit;
    display: block;
    height: 100%;
}

.study-content-resource-note {
    align-items: center;
    background: #f5f6fa;
    border-radius: 10px;
    color: var(--study-muted);
    display: flex;
    font-size: 11px;
    gap: 8px;
    margin-top: 18px;
    min-height: 34px;
    padding: 8px 10px;
}

.study-content-resource-note i {
    color: #23945b;
}

.study-content-footer {
    align-items: center;
    border-top: 1px solid var(--study-line);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 17px;
    padding-top: 15px;
}

.study-content-footer > span {
    color: var(--study-muted);
    font-size: 10px;
}

.study-content-footer > a {
    align-items: center;
    background: var(--study-ink);
    border-radius: 10px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    gap: 6px;
    padding: 10px 12px;
}

.study-content-footer > a:hover {
    background: var(--study-purple);
    color: #fff;
}

.study-library-empty {
    align-items: center;
    background: #fff;
    border: 1px dashed #d8dbe5;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    padding: 54px 24px;
    text-align: center;
}

.study-library-empty > span {
    align-items: center;
    background: var(--study-purple-soft);
    border-radius: 18px;
    color: var(--study-purple);
    display: flex;
    font-size: 28px;
    height: 62px;
    justify-content: center;
    margin-bottom: 18px;
    width: 62px;
}

.study-library-empty h3 {
    color: var(--study-ink);
    font-size: 21px;
    margin-bottom: 8px;
}

.study-library-empty p {
    color: var(--study-muted);
    font-size: 13px;
    margin-bottom: 20px;
}

.study-library-empty > a {
    background: var(--study-ink);
    border-radius: 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 11px 16px;
}

.study-pagination {
    margin-top: 28px;
}

.study-hub a:focus-visible,
.study-hub button:focus-visible,
.study-account-card a:focus-visible,
.study-account-card button:focus-visible,
.study-account-card summary:focus-visible {
    outline: 3px solid rgba(102, 87, 232, .35);
    outline-offset: 3px;
}

@media (max-width: 1199px) {
    .study-welcome {
        grid-template-columns: minmax(0, 1fr) 250px;
        padding: 30px;
    }

    .study-shortcut-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .study-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .study-hub {
        padding-top: 24px;
    }

    .study-account-sidebar {
        position: static;
    }

    .study-account-card {
        border-radius: 20px;
        padding: 14px;
    }

    .study-account-profile {
        padding: 0 0 13px;
    }

    .study-account-nav {
        display: flex;
        gap: 8px;
        margin: 0 -14px;
        overflow-x: auto;
        padding: 13px 14px 2px;
        scrollbar-width: none;
    }

    .study-account-nav::-webkit-scrollbar {
        display: none;
    }

    .study-account-nav-group {
        display: contents;
    }

    .study-account-nav-group + .study-account-nav-group {
        border: 0;
        margin: 0;
        padding: 0;
    }

    .study-account-nav-title,
    .study-account-share {
        display: none;
    }

    .study-account-nav-group > a {
        background: #f5f6fa;
        flex: 0 0 auto;
        min-height: 38px;
        padding: 8px 12px;
    }

    .study-account-nav-group > a.active {
        box-shadow: none;
    }

    .study-account-more {
        border: 0;
        flex: 0 0 auto;
        margin: 0;
        padding: 0;
    }

    .study-account-more summary {
        background: #f5f6fa;
        min-height: 38px;
        padding: 8px 12px;
    }

    .study-account-more > div {
        background: #fff;
        border: 1px solid var(--study-line);
        border-radius: 12px;
        box-shadow: 0 12px 30px rgba(24, 34, 53, .12);
        margin-top: 5px;
        padding: 8px;
        position: absolute;
        z-index: 20;
    }

    .study-account-footer {
        display: none;
    }
}

@media (max-width: 767px) {
    .study-hub {
        padding: 18px 0 58px;
    }

    .study-hub-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .study-welcome {
        gap: 24px;
        grid-template-columns: 1fr;
        padding: 26px;
    }

    .study-welcome h1 {
        font-size: 36px;
    }

    .study-featured {
        min-height: 220px;
    }

    .study-section {
        margin-top: 36px;
    }

    .study-library-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .study-account-profile {
        grid-template-columns: 48px minmax(0, 1fr) 28px;
    }

    .study-account-avatar-wrap,
    .study-account-avatar {
        height: 48px;
        width: 48px;
    }

    .study-account-nav-group > a span,
    .study-account-more summary span {
        font-size: 12px;
    }

    .study-account-nav-group > a i,
    .study-account-more summary > i:first-child {
        font-size: 16px;
        width: auto;
    }

    .study-welcome {
        border-radius: 22px;
        padding: 23px;
    }

    .study-welcome h1 {
        font-size: 32px;
    }

    .study-welcome-copy > p {
        font-size: 14px;
    }

    .study-primary-action {
        justify-content: center;
        width: 100%;
    }

    .study-summary {
        gap: 9px;
    }

    .study-summary article {
        align-items: flex-start;
        flex-direction: column;
        min-height: 122px;
        padding: 14px;
    }

    .study-shortcut-grid {
        grid-template-columns: 1fr;
    }

    .study-section-heading {
        align-items: flex-start;
        gap: 12px;
    }

    .study-section-heading h2 {
        font-size: 23px;
    }

    .study-library-heading > a {
        white-space: nowrap;
    }

    .study-content-body {
        padding: 17px;
    }

    .study-content-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .study-content-footer > a {
        justify-content: center;
    }
}
