body.has-dmr-shell .container.student-assigned-home {
    display: grid;
    gap: 16px;
    max-width: var(--dmr-content-max) !important;
    box-sizing: border-box;
    width: 100%;
    padding: clamp(12px, 2vw, 20px);
}

.student-assigned-home [hidden] {
    display: none !important;
}

.student-assigned-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 5px solid #212121;
    background: #bde7fb;
}

.student-assigned-home[data-assignments-enabled="true"] .student-assigned-heading {
    grid-template-columns: minmax(0, 1fr) auto;
}

.student-self-review-start {
    display: grid;
    justify-items: start;
    gap: 12px;
    margin-top: 18px;
}

.student-self-review-start__action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    box-sizing: border-box;
    min-height: 56px;
    padding: 12px 18px;
    border: 4px solid #212121;
    background: #d1e8ca;
    color: #212121;
    font-size: clamp(16px, 2.5vw, 20px);
    font-weight: 900;
    text-decoration: none;
}

.student-self-review-start__action:hover { text-decoration: underline; }
.student-self-review-start__action:focus-visible { outline: 4px solid #212121; outline-offset: 3px; }
.student-self-review-start p { max-width: 660px; font-size: 13px; line-height: 1.5; }

.student-assigned-heading h1,
.student-assigned-heading p,
.student-assigned-heading__count strong,
.student-assigned-heading__count span {
    margin: 0;
}

.student-assigned-heading__eyebrow,
.student-assigned-section__eyebrow,
.student-assigned-card__tag,
.student-assigned-secondary__eyebrow {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.student-assigned-heading h1 {
    margin: 5px 0 7px;
    font-size: clamp(27px, 5vw, 44px);
    line-height: 1;
}

.student-assigned-heading__intro {
    max-width: 620px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
}

.student-assigned-heading__count {
    display: grid;
    place-items: center;
    min-width: 118px;
    min-height: 92px;
    padding: 10px;
    border: 4px solid #212121;
    background: #fffcf0;
    text-align: center;
}

.student-assigned-heading__count strong {
    font-size: 38px;
    line-height: 1;
}

.student-assigned-heading__count span {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.student-assigned-state:empty {
    display: none;
}

.student-assigned-groups {
    display: grid;
    gap: 14px;
}

.student-assigned-section {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 5px solid #212121;
    background: #fffcf0;
}

.student-assigned-section--now {
    background: #ffe298;
}

.student-assigned-section--completed {
    background: #d1e8ca;
}

.student-assigned-section--expired {
    background: #fff2df;
}

.student-assigned-section__heading {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    justify-content: space-between;
}

.student-assigned-section__heading h2,
.student-assigned-section__heading p,
.student-assigned-section__heading span {
    margin: 0;
}

.student-assigned-section__heading h2 {
    font-size: 22px;
    line-height: 1.05;
}

.student-assigned-section__heading > span {
    font-size: 12px;
    font-weight: 900;
}

.student-assigned-card-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.student-assigned-card-list--compact {
    grid-template-columns: 1fr;
}

.student-assigned-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    min-height: 264px;
    padding: 14px;
    border: 4px solid #212121;
    background: #fffcf0;
}

.student-assigned-card[data-assignment-state="overdue"] {
    border-left-width: 10px;
    border-left-color: #b64143;
}

.student-assigned-card[data-assignment-state="completed"] {
    min-height: 0;
    background: #fffcf0;
}

.student-assigned-card[data-assignment-state="expired"] {
    min-height: 0;
    background: #f3eee4;
}

.student-assigned-card__labels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.student-assigned-card__tag {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 4px 7px;
    border: 3px solid #212121;
    background: #d8cfe7;
}

.student-assigned-card__tag--timing {
    background: #fbdce9;
}

.student-assigned-card__tag--worksheet {
    background: #bde7fb;
}

.student-assigned-card__tag--overdue {
    background: #f7a4a6;
}

.student-assigned-card__tag--complete {
    background: #d1e8ca;
}

.student-assigned-card h3,
.student-assigned-card p {
    margin: 0;
}

.student-assigned-card h3 {
    font-size: 20px;
    line-height: 1.15;
}

.student-assigned-card__instructions {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.student-assigned-card__meta,
.student-assigned-card__timing-detail,
.student-assigned-card__lock {
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.student-assigned-card__timing-detail,
.student-assigned-card__lock {
    padding: 8px;
    border: 3px solid #212121;
    background: #fff2df;
}

.student-assigned-card__lock {
    background: #f7a4a6;
}

.student-assigned-card__progress {
    display: grid;
    gap: 5px;
    margin-top: auto;
}

.student-assigned-card__progress-label {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.student-assigned-card__progress-bar {
    height: 17px;
    border: 3px solid #212121;
    background: #fff;
}

.student-assigned-card__progress-bar span {
    display: block;
    height: 100%;
    background: #d1e8ca;
}

.student-assigned-card__action {
    display: grid;
    place-items: center;
    min-height: 48px;
    padding: 9px 12px;
    border: 4px solid #212121;
    background: #d1e8ca;
    color: #212121;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.student-assigned-card__action:hover,
.student-assigned-card__action:focus-visible {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.student-assigned-card__action:focus-visible,
.student-assigned-secondary a:focus-visible,
.student-assigned-secondary button:focus-visible {
    outline: 4px solid #212121;
    outline-offset: 3px;
}

.student-assigned-section__empty {
    margin: 0;
    padding: 9px 11px;
    border: 3px dashed #6a655f;
    background: rgb(255 252 240 / 75%);
    color: #514d48;
    font-size: 13px;
    font-weight: 800;
}

.student-assigned-secondary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 5px solid #212121;
    background: #d8cfe7;
}

.student-assigned-secondary h2,
.student-assigned-secondary p {
    margin: 0;
}

.student-assigned-secondary h2 {
    margin: 3px 0 5px;
    font-size: 20px;
}

.student-assigned-secondary p:not(.student-assigned-secondary__eyebrow) {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.student-assigned-secondary__actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}

.student-assigned-secondary a,
.student-assigned-secondary button {
    display: grid;
    place-items: center;
    min-height: 44px;
    padding: 8px 11px;
    border: 3px solid #212121;
    background: #fffcf0;
    color: #212121;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.student-assigned-secondary button {
    width: auto;
    margin: 0;
}

.student-assigned-secondary a:hover,
.student-assigned-secondary button:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.assigned-tests__boundary {
    padding: 10px;
    border: 3px solid #212121;
    background: #fbdce9;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

@media (max-width: 720px) {
    .student-assigned-home[data-assignments-enabled="true"] .student-assigned-heading,
    .student-assigned-heading,
    .student-assigned-secondary {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .student-assigned-heading__count {
        grid-template-columns: auto auto;
        gap: 8px;
        justify-content: center;
        min-height: 64px;
    }

    .student-assigned-heading__count strong {
        font-size: 32px;
    }

    .student-assigned-section__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .student-assigned-card-list {
        grid-template-columns: 1fr;
    }

    .student-assigned-card {
        min-height: 248px;
    }

    .student-assigned-card__action {
        width: 100%;
        min-height: 52px;
    }

    .student-assigned-secondary__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        justify-content: stretch;
    }
}

@media (max-width: 430px) {
    .student-assigned-heading,
    .student-assigned-section,
    .student-assigned-secondary {
        padding: 11px;
        border-width: 4px;
    }

    .student-assigned-card {
        padding: 12px;
    }

    .student-assigned-secondary__actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .student-assigned-card__progress-bar span {
        transition: none;
    }
}
