:root {
    --ink: #7a4e56;
    --muted: #a07a80;
    --paper: #fff8f8;
    --card: #ffffff;
    --line: #f0d5d8;
    --copper: #b71923;
    --copper-deep: #730017;
    --night: #570010;
    --ok: #1d6b4f;
    --danger: #9c2b2b;
    --shadow: 0 24px 60px rgba(87, 0, 16, 0.22);
}

* { box-sizing: border-box; }
body.student-body {
    margin: 0;
    min-height: 100vh;
    font-family: Outfit, "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 50% 0, rgba(183, 25, 35, 0.35), transparent 28%),
        linear-gradient(180deg, #8d1020, var(--night) 46%);
}
a { color: var(--copper-deep); }
h1, h2 { margin: 0; letter-spacing: -0.03em; font-weight: 600; }
h1 { font-size: 2.15rem; line-height: 1.05; }
h2 { font-size: 1.05rem; }
p { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.st-shell {
    width: min(440px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    background: var(--paper);
    display: flex;
    flex-direction: column;
    position: relative;
}
.st-top, .st-tabs, .st-main { padding-left: 1.1rem; padding-right: 1.1rem; }
.st-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding-top: max(0.9rem, env(safe-area-inset-top));
    padding-bottom: 0.85rem;
    background: rgba(244, 239, 230, 0.92);
    position: sticky;
    top: 0;
    z-index: 5;
    backdrop-filter: blur(10px);
}
.st-brand { display: flex; gap: 0.65rem; align-items: center; text-decoration: none; color: inherit; min-width: 0; }
.st-logo { height: 48px; width: auto; max-width: 168px; object-fit: contain; display: block; }
.st-brand small { color: var(--copper); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.st-top-actions { display: flex; align-items: center; gap: 0.45rem; }
.st-download, .st-installed, .st-text-link, .st-icon-btn {
    border: 0;
    text-decoration: none;
}
.st-download {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--copper);
    color: white;
    border-radius: 999px;
    padding: 0.48rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 560;
}
.st-download svg, .st-icon-btn svg, .st-btn svg, .st-tabs svg, .st-type-icon svg { width: 1.05rem; height: 1.05rem; }
.st-installed, .st-installed-lg { display: none; }
html.is-installed .st-download, html.is-installed [data-install-app].st-btn { display: none; }
html.is-installed .st-installed { display: inline-flex; }
.st-installed {
    align-items: center;
    background: #e7f4ee;
    color: var(--ok);
    border-radius: 999px;
    padding: 0.42rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
}
.st-installed-lg { margin: 0; padding: 0.7rem 0.9rem; }
.st-icon-btn {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    background: white;
    color: var(--ink);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
}
.st-logout span { display: none; }
.st-text-link { font-weight: 600; font-size: 0.92rem; }
.st-main { flex: 1; padding-top: 0.4rem; padding-bottom: 1.4rem; display: grid; gap: 1rem; align-content: start; }
.st-kicker { margin: 0 0 0.35rem; color: var(--copper-deep); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.st-lead { color: var(--muted); margin-top: 0.55rem; line-height: 1.5; }
.st-hero, .st-panel, .st-install-card, .st-greeting { display: grid; gap: 0.15rem; }
.st-hero {
    background:
        linear-gradient(160deg, rgba(183, 25, 35, 0.12), transparent 42%),
        var(--card);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 1.2rem;
}
.st-hero-actions, .st-dialog-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1rem; }
.st-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 0;
    border-radius: 999px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
}
.st-btn-lg { padding: 0.95rem 1.15rem; font-size: 1.02rem; }
.st-btn-block { width: 100%; margin-top: 0.4rem; }
.st-btn-dark { background: var(--copper); color: white; }
.st-btn-copper { background: var(--copper); color: white; }
.st-btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.st-feature-list, .st-type-list { display: grid; gap: 0.65rem; }
.st-feature-list article, .st-type, .st-row, .st-panel, .st-install-card, .st-stats article {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
}
.st-feature-list article { display: flex; gap: 0.8rem; padding: 0.9rem; }
.st-feature-list span { font-weight: 600; color: var(--copper); }
.st-feature-list h2, .st-type strong, .st-row strong { display: block; }
.st-feature-list p, .st-type small, .st-row small, .st-empty { color: var(--muted); }
.st-panel { padding: 1.1rem; gap: 0.7rem; }
.st-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; }
.st-stats article { padding: 0.8rem 0.7rem; }
.st-stats strong { display: block; font-size: 1.55rem; }
.st-stats span, .st-meta { color: var(--muted); font-size: 0.82rem; }
.st-install-card { padding: 1rem; gap: 0.7rem; background: #b71923; color: white; border-color: transparent; }
.st-install-card p { color: #f6d5d8; }
.st-section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.55rem; }
.st-section-head a { font-weight: 600; text-decoration: none; }
.st-type, .st-row { display: flex; gap: 0.75rem; align-items: center; padding: 0.8rem; text-decoration: none; color: inherit; }
.st-type-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.st-type-card .st-btn { margin-left: 0; }
.st-type-icon { width: 2.4rem; height: 2.4rem; border-radius: 12px; display: grid; place-items: center; background: #fde8ea; color: var(--copper-deep); flex: 0 0 auto; }
.st-type small { display: block; margin-top: 0.15rem; }
.st-row { justify-content: space-between; margin-bottom: 0.55rem; }
.st-badge { font-style: normal; font-size: 0.72rem; font-weight: 600; border-radius: 999px; padding: 0.18rem 0.5rem; background: #fde8ea; color: var(--copper-deep); }
.st-badge-accepted { background: #e5f3ec; color: var(--ok); }
.st-badge-under_review { background: #e7eef8; color: #24507a; }
.st-empty { padding: 0.2rem 0 0.4rem; }
label { display: grid; gap: 0.35rem; font-weight: 560; margin-bottom: 0.75rem; }
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.78rem 0.8rem;
    background: white;
    color: var(--ink);
}
textarea { resize: vertical; }
.st-check { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.st-check input { width: auto; }
.st-switch { color: var(--muted); }
.st-switch a { font-weight: 600; }
.st-forgot { margin: -0.35rem 0 0.85rem; text-align: right; }
.st-forgot a { font-size: 0.88rem; font-weight: 600; }
.st-auth { width: min(440px, 100%); margin: 0 auto; }
.st-auth-logo { display: block; height: 72px; width: auto; max-width: 180px; margin: 0 auto 0.8rem; object-fit: contain; }
body.st-bare { background: var(--paper); }
body.st-bare .st-shell { width: 100%; background: var(--paper); }
body.st-bare .st-main {
    width: min(480px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    padding: 1.5rem 1.1rem 2rem;
    align-content: center;
}
.st-alert, .alert-success { border-radius: 14px; padding: 0.75rem 0.85rem; }
.alert-success { background: #e5f3ec; color: var(--ok); }
.st-alert-error { background: #fbe7e7; color: var(--danger); }
.st-alert-error ul { margin: 0; padding-left: 1.1rem; }
.st-tabs {
    position: sticky;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
    padding-top: 0.45rem;
    padding-bottom: max(0.45rem, env(safe-area-inset-bottom));
    background: rgba(255, 253, 249, 0.96);
    border-top: 1px solid var(--line);
}
.st-side-primary > a { display: grid; justify-items: center; gap: 0.15rem; text-decoration: none; color: var(--muted); font-size: 0.72rem; font-weight: 560; padding: 0.25rem; }
.st-side-primary > a.is-active { color: var(--copper-deep); }
.st-tabs .st-side-brand,
.st-tabs .st-nav-label,
.st-tabs .st-module-link { display: none; }
.st-side-primary { display: contents; }
.st-sheet[hidden] { display: none; }
.st-sheet {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    align-items: end;
}
.st-sheet-backdrop { position: absolute; inset: 0; border: 0; background: rgba(87, 0, 16, 0.46); }
.st-sheet-card {
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: min(78vh, 640px);
    background: #fff;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -16px 40px rgba(87, 0, 16, 0.18);
}
.st-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.95rem 1rem 0.7rem;
}
.st-sheet-head h2 { font-size: 1.2rem; }
.st-sheet-body { overflow: auto; padding: 0 1rem 1.15rem; padding-bottom: max(1.15rem, env(safe-area-inset-bottom)); }
.st-sheet-label { margin: 0.85rem 0 0.4rem; color: var(--copper); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.st-sheet-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
.st-sheet-links a {
    display: flex;
    align-items: center;
    min-height: 2.8rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 560;
    text-decoration: none;
}
.st-sheet-links a.is-active { background: #fde8ea; border-color: #f0c4c8; color: var(--copper); }
.st-dialog { position: fixed; inset: 0; background: rgba(16, 24, 32, 0.62); display: grid; place-items: center; z-index: 50; padding: 1rem; }
.st-pdf { padding: 0.75rem; }
.st-pdf-card {
    display: flex;
    flex-direction: column;
    width: min(1040px, 100%);
    height: min(920px, calc(100vh - 1.5rem));
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(87, 0, 16, 0.28);
}
.st-pdf-head { display: flex; align-items: center; gap: 0.7rem; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); }
.st-pdf-head h2 { flex: 1; min-width: 0; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-pdf-head .st-btn { padding: 0.55rem 0.8rem; }
.st-pdf-card iframe { flex: 1; width: 100%; border: 0; background: #f6f1f1; }
.st-dialog[hidden] { display: none; }
.st-dialog-card { width: min(420px, 100%); background: var(--card); border-radius: 24px; padding: 1.15rem; margin: 0; }
.st-steps { margin: 0.8rem 0 0; padding-left: 1.15rem; color: var(--muted); display: grid; gap: 0.45rem; }
#install-sheet .st-steps { color: #3d2a2e; font-size: 1rem; line-height: 1.45; }
#install-now { width: 100%; }
@media (max-width: 767px) {
    body.student-body { background: var(--paper); }
    .st-shell { width: 100%; }
    .st-top {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 30;
        min-height: 3.6rem;
        padding-top: max(0.45rem, env(safe-area-inset-top));
        padding-bottom: 0.45rem;
        padding-left: 0.85rem;
        padding-right: 0.85rem;
        background: #fff;
        border-bottom: 2px solid var(--copper);
        box-shadow: 0 8px 20px rgba(87, 0, 16, 0.06);
    }
    .st-brand small { display: none; }
    .st-logo { height: 40px; max-width: min(150px, 48vw); }
    .st-download {
        width: 2.4rem;
        height: 2.4rem;
        padding: 0;
        justify-content: center;
    }
    .st-download span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        border: 0;
    }
    .st-main { padding-top: calc(4.5rem + env(safe-area-inset-top)); }
    .st-shell:has(.st-tabs) .st-main { padding-bottom: calc(5.4rem + env(safe-area-inset-bottom)); }
    .st-tabs {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 30;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.3rem;
        padding: 0.4rem 0.55rem max(0.45rem, env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid var(--line);
        box-shadow: 0 -10px 24px rgba(87, 0, 16, 0.08);
    }
    .st-tabs .st-side-brand,
    .st-tabs .st-nav-label,
    .st-tabs .st-module-link { display: none; }
    .st-side-primary > a, .st-tab-menu {
        display: grid;
        justify-items: center;
        align-content: center;
        gap: 0.12rem;
        min-height: 3.15rem;
        margin: 0;
        padding: 0.3rem 0.2rem;
        border: 0;
        border-radius: 14px;
        background: transparent;
        color: var(--muted);
        font: inherit;
        font-size: 0.72rem;
        font-weight: 560;
        text-decoration: none;
    }
    .st-side-primary > a.is-active, .st-tab-menu.is-active { background: #fde8ea; color: var(--copper); }
    .st-tab-menu svg, .st-side-primary > a svg { width: 1.2rem; height: 1.2rem; }
}

@media (min-width: 768px) {
    body.student-body {
        background: #f7f1f1;
        display: block;
        padding: 0;
    }
    .st-shell {
        width: 100%;
        min-height: 100vh;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
    }
    .st-shell:has(.st-tabs) {
        display: grid;
        grid-template-columns: 280px minmax(0, 1fr);
        grid-template-rows: auto 1fr;
    }
    .st-brand { display: none; }
    .st-top {
        grid-column: 2;
        grid-row: 1;
        padding: 0.85rem 1.5rem;
        background: #fff;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
    }
    .st-logout {
        width: auto;
        height: 2.3rem;
        padding: 0 0.85rem;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
    }
    .st-logout span { display: inline; font-size: 0.88rem; font-weight: 560; }
    .st-download span { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
    .st-tab-menu, .st-sheet { display: none !important; }
    .st-main {
        padding: 1.5rem 1.6rem 2.4rem;
        gap: 1.15rem;
    }
    .st-shell:has(.st-tabs) .st-main { grid-column: 2; grid-row: 2; }
    .st-main > * { grid-column: 1 / -1; }
    .st-tabs {
        grid-column: 1;
        grid-row: 1 / span 2;
        position: sticky;
        top: 0;
        align-self: start;
        height: 100vh;
        overflow: auto;
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
        padding: 1rem 0.85rem 1.4rem;
        background: #b71923;
        border-top: 0;
        border-right: 0;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.45) transparent;
    }
    .st-tabs::-webkit-scrollbar { width: 8px; }
    .st-tabs::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.4); border-radius: 99px; }
    .st-tabs .st-side-brand {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        margin: 0 0.15rem 0.85rem;
        padding: 0.55rem 0.7rem;
        background: #fff;
        border-radius: 16px;
        text-decoration: none;
    }
    .st-side-brand img { height: 46px; width: auto; max-width: 150px; object-fit: contain; }
    .st-side-brand span { color: var(--copper-deep); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
    .st-side-primary { display: grid; gap: 0.25rem; margin-bottom: 0.45rem; }
    .st-tabs a:not(.st-side-brand) {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0.7rem;
        color: #fff;
        font-size: 0.95rem;
        font-weight: 500;
        padding: 0.72rem 0.85rem;
        border-radius: 12px;
    }
    .st-tabs a:not(.st-side-brand).is-active,
    .st-tabs a:not(.st-side-brand):hover { background: #fff; color: #b71923; }
    .st-tabs .st-nav-label {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        margin: 0.95rem 0.7rem 0.3rem;
        color: rgba(255, 255, 255, 0.82);
        font-size: 0.68rem;
        font-weight: 600;
        letter-spacing: 0.14em;
        text-transform: uppercase;
    }
    .st-nav-label::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.35); }
    .st-tabs .st-module-link {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        margin: 0 0.15rem;
        padding: 0.48rem 0.7rem;
        border-radius: 10px;
        color: #fff;
        font-size: 0.92rem;
        font-weight: 500;
        line-height: 1.25;
        text-decoration: none;
    }
    .st-module-link::before {
        content: "";
        width: 0.4rem;
        height: 0.4rem;
        border-radius: 99px;
        background: #fff;
        box-shadow: none;
        flex: 0 0 auto;
    }
    .st-module-link.is-active { background: #fff; color: #b71923; }
    .st-module-link.is-active::before { background: var(--copper); box-shadow: none; }
    .st-tabs svg { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; }
    .st-install-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 1.1rem 1.2rem;
    }
    .st-install-card .st-btn { width: auto; flex: 0 0 auto; }
    .st-hero h1 { font-size: 2.8rem; }
    .st-panel { max-width: 760px; padding: 1.4rem 1.5rem; }
    .st-form-wide { display: grid; grid-template-columns: 1fr 1fr; column-gap: 0.9rem; }
    .st-form-wide > .st-btn,
    .st-form-wide > .st-alert,
    .st-form-wide > .st-check,
    .st-form-wide > label:has(textarea),
    .st-form-wide > label:has(select) { grid-column: 1 / -1; }
    .st-dialog { place-items: center; }
    .st-dialog-card { margin-bottom: 0; }
    body.student-body:not(:has(.st-tabs)) .st-main {
        width: min(1080px, calc(100% - 3rem));
        margin: 1.5rem auto 2rem;
    }
    body.student-body:not(:has(.st-tabs)) .st-main {
        grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    }
    body.student-body:not(:has(.st-tabs)) .st-hero { grid-column: 1; align-self: stretch; }
    body.student-body:not(:has(.st-tabs)) .st-feature-list { grid-column: 2; }
    body.student-body:not(:has(.st-tabs)) .st-panel {
        grid-column: 1 / -1;
        justify-self: center;
        width: min(520px, 100%);
    }
}

@media (min-width: 1024px) {
    .st-type-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
    .st-shell:has(.st-tabs) { grid-template-columns: 300px minmax(0, 1fr); }
    .st-shell:has(.st-tabs) .st-main {
        width: min(1180px, 100%);
        padding-left: 2rem;
        padding-right: 2rem;
        grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
    }
    .st-shell:has(.st-tabs) .st-block-types { grid-column: 1; align-self: start; }
    .st-shell:has(.st-tabs) .st-block-recent { grid-column: 2; align-self: start; }
    .st-block-types .st-type-list { grid-template-columns: 1fr; }
}

@media (min-width: 1400px) {
    .st-main > .st-type-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.st-dash-hero {
    display: grid;
    gap: 1.1rem;
    padding: 1.35rem 1.25rem 1.2rem;
    border-radius: 24px;
    background: #b71923;
    color: #fff;
    box-shadow: 0 16px 36px rgba(87, 0, 16, 0.18);
}
.st-dash-hero h1 { color: #fff; font-size: 2rem; letter-spacing: -0.03em; }
.st-dash-hero .st-kicker { color: #ffd0d4; }
.st-dash-hero .st-lead { color: #f8e4e6; max-width: 36rem; }
.st-dash-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55rem; }
.st-dash-pills article {
    padding: 0.75rem 0.7rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
}
.st-dash-pills strong { display: block; color: #fff; font-size: 1.45rem; line-height: 1.1; }
.st-dash-pills span { color: #f6d5d8; font-size: 0.75rem; }
.st-dash-group { display: grid; gap: 0.7rem; }
.st-dash-group h2 { margin: 0.15rem 0 0; font-size: 1.05rem; }
.st-dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.st-dash-card {
    position: relative;
    display: grid;
    align-content: start;
    gap: 0.22rem;
    min-height: 8.6rem;
    padding: 0.95rem 0.95rem 0.9rem 1.05rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    scroll-margin-top: 5.5rem;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.st-dash-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #b71923;
}
.st-dash-card:hover {
    transform: translateY(-2px);
    border-color: #e7b4b8;
    box-shadow: 0 10px 24px rgba(115, 0, 23, 0.08);
}
.st-dash-count { color: var(--copper); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; }
.st-dash-card strong { font-size: 1rem; line-height: 1.25; }
.st-dash-card small, .st-dash-card em { color: var(--muted); font-style: normal; font-size: 0.8rem; line-height: 1.35; }
.st-dash-card em {
    margin-top: 0.25rem;
    color: var(--ink);
    font-weight: 560;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.st-latest-grid { display: grid; gap: 0.7rem; }
.st-latest {
    display: grid;
    gap: 0.2rem;
    padding: 0.95rem 1rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    color: inherit;
    text-decoration: none;
}
.st-latest span { color: var(--copper); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.st-latest small { color: var(--muted); }
.st-group-title { margin: 0.2rem 0 0.35rem; font-size: 0.95rem; }
.st-module { scroll-margin-top: 5rem; display: grid; gap: 0.65rem; margin-bottom: 1rem; }
.st-module-items { display: grid; gap: 0.65rem; }
.st-desk-group h2 { margin: 0.15rem 0 0.65rem; font-size: 1.05rem; }
.st-desk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.st-desk-card {
    display: grid;
    align-content: start;
    gap: 0.25rem;
    min-height: 7.4rem;
    padding: 0.85rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    color: inherit;
    text-decoration: none;
}
.st-desk-card span { color: var(--copper); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; }
.st-desk-card small { color: var(--muted); }
.st-mod-hero {
    display: grid;
    gap: 0.35rem;
    padding: 1.3rem 1.25rem 1.2rem;
    border-radius: 24px;
    background: #b71923;
    color: #fff;
    box-shadow: 0 16px 36px rgba(87, 0, 16, 0.16);
}
.st-mod-hero h1 { color: #fff; font-size: 2rem; letter-spacing: -0.03em; }
.st-mod-hero .st-kicker { color: #ffd0d4; }
.st-mod-hero .st-lead { color: #f8e4e6; max-width: 40rem; margin-top: 0.2rem; }
.st-mod-back {
    justify-self: start;
    margin-bottom: 0.35rem;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
}
.st-mod-count {
    justify-self: start;
    margin-top: 0.45rem;
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 0.4rem 0.7rem;
}
.st-mod-empty {
    display: grid;
    gap: 0.3rem;
    padding: 1.35rem 1.2rem;
    background: var(--card);
    border: 1px dashed #e7b4b8;
    border-radius: 20px;
}
.st-mod-empty p { color: var(--muted); }
.st-file-grid, .st-own-feedback { display: grid; gap: 0.75rem; }
.st-file {
    position: relative;
    display: grid;
    align-content: start;
    gap: 0.5rem;
    padding: 1.05rem 1.05rem 1.05rem 1.15rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
}
.st-file::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #b71923;
}
.st-file-top { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.st-chip {
    color: var(--copper-deep);
    background: #fde8ea;
    border-radius: 999px;
    padding: 0.22rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.st-file h2 { margin: 0.15rem 0 0; font-size: 1.35rem; line-height: 1.25; }
.st-file-summary { color: var(--ink); font-weight: 560; line-height: 1.45; }
.st-file-preview { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.st-file-preview img { display: block; width: 100%; max-height: 420px; object-fit: cover; }
.st-doc-row { display: grid; gap: 0.55rem; margin-top: 0.35rem; }
.st-doc {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 0.85rem;
    border-radius: 16px;
    background: #b71923;
    color: #fff;
    text-decoration: none;
}
.st-doc-mark {
    display: grid;
    place-items: center;
    min-width: 3.1rem;
    height: 3.1rem;
    padding: 0 0.35rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}
.st-doc-copy { display: grid; gap: 0.1rem; min-width: 0; flex: 1; }
.st-doc-copy strong { color: #fff; font-size: 0.98rem; }
.st-doc-copy small { color: #f6d5d8; }
.st-doc svg { width: 1.35rem; height: 1.35rem; flex: 0 0 auto; }
.st-doc-link { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.st-doc-link .st-doc-mark { background: #fde8ea; color: var(--copper); }
.st-doc-link .st-doc-copy strong { color: var(--ink); }
.st-doc-link .st-doc-copy small { color: var(--muted); }
.st-doc-link svg { color: var(--copper); }
.st-resource {
    display: grid;
    gap: 0.55rem;
    padding: 1rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
}
.st-resource header { display: flex; justify-content: space-between; gap: 0.8rem; align-items: flex-start; }
.st-resource h2 { font-size: 1.25rem; }
.st-resource time, .st-resource-body, .st-own-feedback span { color: var(--muted); }
.st-resource-body { white-space: pre-wrap; line-height: 1.5; }
.st-video { position: relative; padding-top: 56%; border-radius: 14px; overflow: hidden; background: var(--night); }
.st-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.st-own-feedback { display: grid; gap: 0.7rem; margin-top: 0.4rem; }
.st-own-feedback article { border-top: 1px solid var(--line); padding-top: 0.65rem; }
.pager { display: flex; gap: 1rem; align-items: center; color: var(--muted); }
.pager a { font-weight: 600; text-decoration: none; }
@media (min-width: 768px) {
    .st-mod-hero h1 { font-size: 2.4rem; }
    .st-file-grid { grid-template-columns: 1fr; }
    .st-file { padding: 1.2rem 1.25rem 1.15rem 1.35rem; }
    .st-desk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .st-dash-hero { grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.8fr); align-items: end; padding: 1.6rem 1.5rem; }
    .st-dash-hero h1 { font-size: 2.45rem; }
    .st-dash-grid, .st-latest-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
    .st-dash-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
    .st-desk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .st-shell:has(.st-tabs) .st-module-block { grid-column: 1 / -1; }
    .st-module-items { grid-template-columns: 1fr 1fr; }
}

@media (display-mode: standalone) and (max-width: 767px) {
    body.student-body { background: var(--paper); }
    .st-shell { width: 100%; min-height: 100vh; }
}
