/* Shared rhythm within the existing account/academic workspace; cards stay intact. */
body.ca-learning-page #primary{margin-top:0;margin-bottom:0}body.ca-learning-page article.page>.entry-header{display:none}body.ca-learning-page article.page{background:transparent;padding:0}
.ca-app:not(.ca-login){background:transparent!important;box-shadow:none;border:0;border-radius:0;max-width:none}.ca-app:not(.ca-login) .ca-workspace{background:transparent}.ca-app:not(.ca-login) .ca-main{max-width:1280px;margin:0 auto;padding:40px 32px 64px;background:transparent}
body.ca-account-page{background:#080d13}.ca-app .ca-page-heading{margin-bottom:32px}.ca-app .ca-learning-hero{grid-template-columns:minmax(0,1fr) 240px;gap:24px;background:transparent;box-shadow:none;border:0;border-radius:0;padding:8px 0 32px;border-bottom:1px solid #263b50}
.ca-learning-hero>img.ca-learning-avatar{width:200px;height:200px;min-width:200px;object-fit:cover;aspect-ratio:1;border-radius:50%;border:2px solid #397eb3;padding:0;mask-image:none;-webkit-mask-image:none;justify-self:center;background:#0b1928}
@media(max-width:1024px){.ca-app:not(.ca-login) .ca-main{padding:32px 24px 52px}.ca-app .ca-learning-hero{grid-template-columns:minmax(0,1fr) 190px}.ca-learning-hero>img.ca-learning-avatar{width:180px;height:180px;min-width:180px}}
@media(max-width:650px){.ca-app:not(.ca-login) .ca-main{padding:24px 20px 44px}.ca-app .ca-learning-hero{grid-template-columns:1fr;gap:20px;padding-bottom:28px}.ca-learning-hero>img.ca-learning-avatar{width:140px;height:140px;min-width:140px;justify-self:start}.ca-app .ca-page-heading{margin-bottom:24px}}

/* A continuous workspace uses the page scroll; dialogs retain their own safe limits. */
body.ca-learning-page,body.ca-learning-page #content{background-color:#080d13}
body.ca-learning-page #content>.ast-container{max-width:1280px;width:100%;padding:0;display:block}
.ca-app:not(.ca-login):not(.ca-teacher){width:100%;max-width:1280px;margin-inline:auto;height:auto;max-height:none;overflow:visible}
.ca-app:not(.ca-login):not(.ca-teacher) :is(.ca-workspace,.ca-main,.ca-sidebar,.ca-center-layout,.ca-center-settings){height:auto;max-height:none;overflow:visible}
.ca-personal .ca-security{padding:20px 0;background:transparent;border:0;border-top:1px solid #263b50;border-radius:0;box-shadow:none}
.ca-personal .ca-security>details>summary{color:#e3ebf5}
.ca-personal .ca-security-danger>a:first-child{color:#d59a9e!important}
.ca-personal .ca-security-danger>.ca-delete-link{color:#ed7987!important}
