@font-face {
    font-family: "Snell Roundhand Web";
    src: url("../font.php?v=snell-roundhand-regular-1") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    --karma-bg: #fffaf6;
    --karma-surface: rgba(255, 253, 250, 0.94);
    --karma-ink: #765442;
    --karma-ink-strong: #664635;
    --karma-muted: #927567;
    --karma-line: #efd5c2;
    --karma-gold: #c9a575;
    --karma-gold-light: #f7e7bd;
    --karma-success: #e7f3cf;
    --karma-success-ink: #5f7440;
    --karma-danger: #f8d4d0;
    --karma-danger-ink: #8c504c;
    --karma-wait: #f9ebc9;
    --karma-inactive: #ece9e6;
    --karma-inactive-ink: #77706b;
    --karma-shadow: 0 18px 60px rgba(118, 84, 66, 0.08);
    --karma-radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.cabinet-demo-page {
    margin: 0;
    background:
        radial-gradient(circle at 90% 10%, rgba(251, 229, 201, 0.5), transparent 25rem),
        var(--karma-bg);
}

.karma-cabinet {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 26px 0 48px;
    color: var(--karma-ink);
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
}

.cabinet-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 20px;
    padding: 0 8px;
}

.cabinet-brand {
    display: grid;
    color: var(--karma-ink);
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.cabinet-brand > span,
.cabinet-brand > strong {
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-size: inherit;
    font-style: normal;
    font-weight: 500;
}

.student-picker {
    display: grid;
    gap: 7px;
    min-width: 290px;
}

.student-picker > span:first-child {
    color: var(--karma-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.student-picker-control {
    position: relative;
    display: block;
}

.student-picker select {
    width: 100%;
    min-height: 48px;
    appearance: none;
    border: 1px solid rgba(118, 84, 66, 0.38);
    border-radius: 15px;
    outline: none;
    background: rgba(255, 253, 250, 0.9);
    color: var(--karma-ink-strong);
    padding: 0 48px 0 17px;
    font: 500 15px/1 Arial, Helvetica, sans-serif;
    cursor: pointer;
    box-shadow: 0 8px 26px rgba(118, 84, 66, 0.05);
    transition-property: border-color, box-shadow, transform;
    transition-duration: 160ms;
    transition-timing-function: ease-out;
}

.student-picker select:hover {
    border-color: rgba(118, 84, 66, 0.7);
}

.student-picker select:focus-visible {
    border-color: var(--karma-gold);
    box-shadow: 0 0 0 4px rgba(201, 165, 117, 0.2);
}

.student-picker-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    pointer-events: none;
}

.student-picker-icon svg,
.cabinet-account-icon svg,
.cabinet-back-icon svg,
.task-calendar svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cabinet-account,
.cabinet-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    border: 1px solid rgba(118, 84, 66, 0.38);
    border-radius: 15px;
    background: rgba(255, 253, 250, 0.9);
    color: var(--karma-ink-strong);
    padding: 0 18px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 8px 26px rgba(118, 84, 66, 0.05);
    transition-property: border-color, box-shadow, transform;
    transition-duration: 160ms;
    transition-timing-function: ease-out;
}

.cabinet-account:hover,
.cabinet-back:hover {
    border-color: rgba(118, 84, 66, 0.7);
}

.cabinet-account:active,
.cabinet-back:active {
    transform: scale(0.98);
}

.cabinet-account:focus-visible,
.cabinet-back:focus-visible {
    outline: 3px solid rgba(201, 165, 117, 0.45);
    outline-offset: 3px;
}

.cabinet-account-icon,
.cabinet-back-icon {
    width: 21px;
    height: 21px;
}

.cabinet-account-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cabinet-content {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 18px;
}

.cabinet-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-width: 0;
    border: 1px solid var(--karma-line);
    border-radius: var(--karma-radius);
    background: var(--karma-surface);
    box-shadow: var(--karma-shadow);
}

.welcome-card {
    isolation: isolate;
    padding: 28px 36px 24px;
    background: linear-gradient(120deg, rgba(255, 253, 250, 0.98) 0%, rgba(255, 250, 242, 0.96) 58%, rgba(255, 240, 207, 0.88) 100%);
}

.welcome-card h1,
.progress-card h2,
.tasks-card h2 {
    margin: 0;
    color: var(--karma-ink-strong);
    font-family: "Snell Roundhand Web", "Snell Roundhand", "Segoe Script", "URW Chancery L", cursive;
    font-style: normal;
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.02;
    text-wrap: balance;
}

.welcome-card h1 {
    position: relative;
    z-index: 2;
    font-size: clamp(46px, 5.2vw, 64px);
}

.welcome-heading {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.welcome-heading h1 {
    flex: 1 1 600px;
    min-width: 0;
}

.cabinet-back-inline {
    flex: 0 0 auto;
    margin-top: 4px;
}

.cabinet-back-mobile {
    display: none;
}

.welcome-meta {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
    margin-top: 22px;
}

.welcome-meta > div {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.welcome-meta em {
    color: var(--karma-ink);
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-size: 17px;
    font-style: normal;
    font-weight: 500;
}

.welcome-meta span {
    max-width: 100%;
    border-radius: 12px;
    background: linear-gradient(90deg, #d4b27f, #f7e7bd);
    color: #3f322a;
    padding: 7px 13px;
    font-size: 14px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.progress-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 20px 32px;
    padding: 30px 34px 24px;
    background: linear-gradient(120deg, rgba(255, 253, 250, 0.98) 0%, rgba(255, 250, 242, 0.96) 58%, rgba(255, 240, 207, 0.88) 100%);
}

.progress-card h2,
.tasks-card h2 {
    font-size: clamp(40px, 4.2vw, 54px);
}

.progress-copy {
    align-self: center;
}

.progress-track {
    position: relative;
    overflow: hidden;
    height: 38px;
    margin-top: 24px;
    border: 1px solid var(--karma-line);
    border-radius: 999px;
    background: rgba(255, 251, 247, 0.75);
}

.progress-track > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #c8a67a 0%, #f8e9c0 100%);
    box-shadow: 12px 0 26px rgba(214, 180, 120, 0.3);
    transition: width 450ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.progress-scale {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin-top: 8px;
    color: var(--karma-muted);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.progress-scale span:not(:first-child):not(:last-child) {
    text-align: center;
}

.progress-scale span:last-child {
    text-align: right;
}

.progress-ring {
    --progress: 0;
    position: relative;
    display: grid;
    place-items: center;
    width: 150px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: conic-gradient(from 12deg, #a9743e 0%, #d8ad68 calc(var(--progress) * 0.62%), #f4d995 calc(var(--progress) * 1%), rgba(249, 232, 203, 0.7) 0);
    box-shadow: 0 18px 40px rgba(153, 111, 77, 0.08);
}

.progress-ring::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: inherit;
    background: rgba(255, 250, 245, 0.97);
}

.progress-ring-inner {
    position: relative;
    display: grid;
    place-items: center;
    text-align: center;
}

.progress-ring strong {
    color: var(--karma-ink-strong);
    font: 400 48px/0.9 "Baskerville Regular", Baskerville, "Baskerville Old Face", "Times New Roman", serif;
    font-variant-numeric: tabular-nums;
}

.progress-ring strong span {
    margin-left: 3px;
    font-size: 22px;
}

.progress-ring small {
    width: 110px;
    margin-top: 8px;
    color: var(--karma-ink);
    font-size: 15px;
    line-height: 1.3;
}

.summary-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--karma-line);
    border-radius: 22px;
    background: rgba(255, 249, 244, 0.78);
}

.summary-metric {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 142px;
    padding: 16px 12px;
    text-align: center;
}

.summary-metric + .summary-metric::before {
    content: "";
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--karma-gold), transparent);
}

.summary-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
}

.summary-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 10px rgba(102, 70, 53, 0.16));
}

.summary-metric strong {
    margin-top: 6px;
    color: var(--karma-ink-strong);
    font: 400 44px/0.9 "Baskerville Regular", Baskerville, "Baskerville Old Face", "Times New Roman", serif;
    font-variant-numeric: tabular-nums;
}

.summary-metric > span:last-child {
    color: var(--karma-muted);
    font-size: 14px;
}

.tasks-card {
    padding: 30px 28px 26px;
}

.tasks-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 145px;
    align-items: center;
    gap: 30px;
    padding: 0 8px 18px;
}

.tasks-heading p {
    max-width: 720px;
    margin: 12px 0 0;
    color: var(--karma-muted);
    font-size: 15px;
    text-wrap: pretty;
}

.tasks-heading .progress-ring {
    width: 135px;
    background: conic-gradient(
        from 18deg,
        #8f5f31 0deg,
        #c58a43 92deg,
        #f3d58d 184deg,
        #bd7e39 278deg,
        #8f5f31 360deg
    );
}

.tasks-heading .progress-ring strong {
    font-size: 47px;
}

.tasks-heading .progress-ring strong span {
    display: none;
}

.tasks-mobile-sort {
    display: none;
}

.tasks-table {
    overflow: hidden;
    border: 1px solid var(--karma-line);
    border-radius: 22px;
    background: rgba(255, 249, 244, 0.66);
}

.tasks-header,
.task-row {
    display: grid;
    grid-template-columns: 68px minmax(260px, 1.5fr) minmax(230px, 1fr) minmax(240px, 0.9fr);
    align-items: center;
    gap: 20px;
}

.tasks-header {
    min-height: 54px;
    padding: 0 28px;
    background: linear-gradient(90deg, #f8e8c7 0%, #fff4d8 100%);
    color: var(--karma-ink-strong);
    font-size: 17px;
    font-weight: 600;
}

.tasks-header button {
    width: fit-content;
    min-height: 44px;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.sort-indicator {
    display: inline-block;
    margin-left: 4px;
    opacity: 0.34;
    text-decoration: none;
    transition: opacity 150ms ease-out;
}

[data-sort-field][aria-pressed="true"] .sort-indicator {
    opacity: 0.92;
}

.tasks-header button[aria-pressed="true"] {
    text-decoration: underline;
    text-decoration-color: rgba(101, 69, 51, 0.35);
    text-underline-offset: 5px;
}

.tasks-header button:focus-visible,
.tasks-pagination button:focus-visible,
.state-button:focus-visible {
    outline: 3px solid rgba(201, 165, 117, 0.45);
    outline-offset: 3px;
}

.task-row {
    min-height: 98px;
    margin: 0 28px;
    border-bottom: 1px solid rgba(201, 165, 117, 0.7);
}

.task-row:last-child {
    border-bottom: 0;
}

.task-number {
    color: var(--karma-ink-strong);
    font: 400 42px/1 "Baskerville Regular", Baskerville, "Baskerville Old Face", "Times New Roman", serif;
    font-variant-numeric: tabular-nums;
}

.task-main {
    display: grid;
    gap: 7px;
}

.task-main strong {
    color: var(--karma-ink-strong);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    text-wrap: pretty;
}

.task-main span {
    color: var(--karma-muted);
    font-size: 13px;
}

.task-deadline,
.task-grade {
    display: flex;
    align-items: center;
    gap: 13px;
}

.task-deadline {
    color: var(--karma-ink);
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.task-calendar {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
}

.task-grade {
    justify-content: space-between;
}

.task-status {
    display: grid;
    place-items: center;
    min-height: 48px;
    min-width: 164px;
    border-radius: 16px;
    padding: 10px 16px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 7px 14px rgba(118, 84, 66, 0.05);
}

.task-status-accepted {
    background: var(--karma-success);
    color: var(--karma-success-ink);
}

.task-status-revision,
.task-status-not_submitted {
    background: var(--karma-danger);
    color: var(--karma-danger-ink);
}

.task-status-awaiting,
.task-status-pending {
    background: var(--karma-wait);
    color: #7a6337;
}

.task-status-inactive {
    background: var(--karma-inactive);
    color: var(--karma-inactive-ink);
    box-shadow: none;
}

.task-diamond {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    color: var(--karma-ink);
}

.task-diamond-muted {
    display: grid;
    place-items: center;
    opacity: 0.65;
    font-size: 22px;
}

.task-result-icon {
    display: grid;
    place-items: center;
    font-size: 25px;
    font-weight: 600;
    line-height: 1;
}

.task-result-success {
    color: var(--karma-success-ink);
}

.task-result-danger {
    color: var(--karma-danger-ink);
}

.task-result-neutral {
    color: var(--karma-inactive-ink);
}

.tasks-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 72px;
    border-top: 1px solid rgba(201, 165, 117, 0.26);
}

.tasks-pagination button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--karma-ink-strong);
    font: 500 30px/1 Arial, Helvetica, sans-serif;
    cursor: pointer;
    transition-property: background-color, transform, opacity;
    transition-duration: 150ms;
    transition-timing-function: ease-out;
}

.tasks-pagination button:hover:not(:disabled) {
    background: rgba(201, 165, 117, 0.16);
}

.tasks-pagination button:active:not(:disabled) {
    transform: scale(0.94);
}

.tasks-pagination button:disabled {
    opacity: 0.28;
    cursor: default;
}

.tasks-pagination span {
    min-width: 86px;
    border-radius: 13px;
    background: #fff;
    padding: 11px 16px;
    text-align: center;
    color: var(--karma-ink-strong);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 8px 18px rgba(118, 84, 66, 0.11);
}

.cabinet-support {
    margin: 26px 12px 0;
    color: var(--karma-muted);
    font-size: 14px;
    text-wrap: pretty;
}

.cabinet-support strong,
.cabinet-support a {
    color: var(--karma-ink);
    font-weight: 500;
}

.cabinet-support a {
    text-decoration-color: rgba(118, 84, 66, 0.42);
    text-underline-offset: 3px;
}

.cabinet-support a:hover {
    text-decoration-color: currentColor;
}

.cabinet-support a:focus-visible {
    border-radius: 3px;
    outline: 3px solid rgba(201, 165, 117, 0.45);
    outline-offset: 3px;
}

.cabinet-loading,
.cabinet-state {
    min-height: 360px;
    padding: 60px;
}

.cabinet-state {
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
}

.cabinet-state h2 {
    margin: 18px 0 8px;
    font: 400 36px/1.05 "Snell Roundhand Web", "Snell Roundhand", "Segoe Script", cursive;
}

.cabinet-state p {
    margin: 0 0 22px;
    color: var(--karma-muted);
}

.state-symbol {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--karma-danger);
    color: var(--karma-danger-ink);
    font: italic 600 32px/1 Georgia, "Times New Roman", serif;
}

.state-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 13px;
    background: var(--karma-ink);
    color: #fff8ee;
    padding: 0 22px;
    font: 500 14px/1 Arial, Helvetica, sans-serif;
    cursor: pointer;
    text-decoration: none;
}

.task-diamond img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.skeleton {
    border-radius: 999px;
    background: linear-gradient(90deg, #f7eee7 25%, #fffaf6 50%, #f7eee7 75%);
    background-size: 200% 100%;
    animation: cabinet-shimmer 1.4s infinite linear;
}

.skeleton-title {
    width: min(540px, 75%);
    height: 72px;
}

.skeleton-line {
    width: 88%;
    height: 22px;
    margin-top: 45px;
}

.skeleton-line-short {
    width: 56%;
    margin-top: 20px;
}

@keyframes cabinet-shimmer {
    to { background-position: -200% 0; }
}

@media (max-width: 980px) {
    .karma-cabinet {
        width: min(100% - 28px, 900px);
        padding-top: 28px;
    }

    .welcome-card,
    .progress-card,
    .tasks-card {
        padding-left: 28px;
        padding-right: 28px;
    }

    .progress-card {
        grid-template-columns: minmax(0, 1fr) 150px;
    }

    .progress-ring {
        width: 145px;
    }

    .summary-metric {
        min-height: 136px;
    }

    .tasks-header {
        display: none;
    }

    .tasks-mobile-sort {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 9px;
        margin: 0 0 14px;
        color: var(--karma-muted);
        font-size: 13px;
    }

    .tasks-mobile-sort button {
        min-height: 42px;
        padding: 0 15px;
        border: 1px solid var(--karma-line);
        border-radius: 999px;
        background: rgba(255, 252, 248, 0.86);
        color: var(--karma-ink);
        font: inherit;
        cursor: pointer;
        transition: transform 150ms ease-out, background-color 150ms ease-out, box-shadow 150ms ease-out;
    }

    .tasks-mobile-sort button[aria-pressed="true"] {
        background: linear-gradient(90deg, #e5c38a, #fff0bd);
        box-shadow: 0 8px 18px rgba(117, 78, 55, 0.1);
    }

    .tasks-mobile-sort button:active {
        transform: scale(0.97);
    }

    .tasks-mobile-sort button:focus-visible {
        outline: 3px solid rgba(201, 165, 117, 0.45);
        outline-offset: 2px;
    }

    .task-row {
        grid-template-columns: 52px minmax(0, 1fr) minmax(190px, 0.75fr);
        gap: 16px;
        min-height: 160px;
        padding: 22px 0;
    }

    .task-grade {
        grid-column: 2 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    :root { --karma-radius: 21px; }

    .karma-cabinet {
        width: min(100% - 20px, 620px);
        padding: 18px 0 42px;
        font-size: 15px;
    }

    .cabinet-toolbar {
        align-items: center;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 16px;
        padding: 0 4px;
    }

    .cabinet-back-inline {
        display: none;
    }

    .cabinet-back-mobile {
        display: inline-flex;
        width: 100%;
    }

    .cabinet-brand {
        justify-items: center;
        text-align: center;
        font-size: 17px;
    }

    .cabinet-account {
        align-self: center;
    }

    .student-picker {
        min-width: 0;
    }

    .cabinet-content {
        gap: 16px;
    }

    .welcome-card {
        padding: 26px 22px 22px;
    }

    .welcome-card h1 {
        font-size: clamp(36px, 10vw, 44px);
        line-height: 1;
    }

    .welcome-meta {
        display: grid;
        gap: 10px;
        margin-top: 18px;
    }

    .welcome-meta > div {
        display: flex;
        flex-wrap: wrap;
        gap: 6px 8px;
    }

    .welcome-meta em {
        font-size: 15px;
    }

    .welcome-meta span {
        width: fit-content;
        max-width: 100%;
        padding: 6px 11px;
        font-size: 13px;
    }

    .progress-card {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 26px 20px 20px;
    }

    .progress-card h2,
    .tasks-card h2 {
        font-size: clamp(38px, 11vw, 50px);
    }

    .progress-copy {
        width: 100%;
    }

    .progress-track {
        height: 30px;
        margin-top: 20px;
    }

    .progress-scale {
        font-size: 11px;
    }

    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .summary-metric {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        min-height: 132px;
        gap: 3px;
        padding: 14px 8px;
        text-align: center;
    }

    .summary-metric + .summary-metric::before {
        display: none;
    }

    .summary-metric:nth-child(even) {
        border-left: 1px solid rgba(201, 165, 117, 0.45);
    }

    .summary-metric:nth-child(n + 3) {
        border-top: 1px solid rgba(201, 165, 117, 0.45);
    }

    .summary-icon {
        width: 50px;
        height: 50px;
    }

    .summary-metric strong {
        margin: 0;
        font-size: 39px;
    }

    .summary-metric > span:last-child {
        font-size: 12px;
    }

    .tasks-card {
        padding: 26px 12px 24px;
    }

    .tasks-heading {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 0 10px 24px;
    }

    .tasks-heading p {
        font-size: 14px;
    }

    .tasks-heading .progress-ring {
        width: 142px;
        justify-self: center;
    }

    .tasks-heading .progress-ring strong {
        font-size: 52px;
    }

    .tasks-table {
        border-radius: 18px;
    }

    .task-row {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 12px;
        min-height: 0;
        margin: 0 16px;
        padding: 22px 0;
    }

    .task-number {
        align-self: start;
        font-size: 42px;
    }

    .task-main strong {
        font-size: 16px;
    }

    .task-deadline,
    .task-grade {
        grid-column: 2;
    }

    .task-deadline {
        align-items: flex-start;
        font-size: 13px;
    }

    .task-grade {
        justify-content: space-between;
    }

    .task-status {
        min-width: 0;
        min-height: 48px;
        font-size: 13px;
    }

    .cabinet-support {
        margin: 28px 10px 0;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .progress-track > span { transition: none; }
    .skeleton { animation: none; }
}
